/external/clang/include/clang/AST/ |
H A D | ASTContext.h | 1673 QualType getQualifiedType(QualType T, Qualifiers Qs) const { 1674 if (!Qs.hasNonFastQualifiers()) 1675 return T.withFastQualifiers(Qs.getFastQualifiers()); 1676 QualifierCollector Qc(Qs); 1682 QualType getQualifiedType(const Type *T, Qualifiers Qs) const { 1683 if (!Qs.hasNonFastQualifiers()) 1684 return QualType(T, Qs.getFastQualifiers()); 1685 return getExtQualType(T, Qs); 1707 Qualifiers Qs = type.getQualifiers(); 1708 Qs [all...] |
H A D | Type.h | 206 Qualifiers Qs; local 207 Qs.addFastQualifiers(Mask); 208 return Qs; 212 Qualifiers Qs; local 213 Qs.addCVRQualifiers(CVR); 214 return Qs; 219 Qualifiers Qs; local 220 Qs.Mask = opaque; 221 return Qs; 5021 QualifierCollector(Qualifiers Qs [all...] |
/external/llvm/lib/Analysis/ |
H A D | ScalarEvolution.cpp | 800 SmallVector<const SCEV *, 2> Qs, Rs; local 811 Qs.push_back(Q); 815 if (Qs.size() == 1) { 816 Quotient = Qs[0]; 821 Quotient = SE.getAddExpr(Qs); 826 SmallVector<const SCEV *, 2> Qs; local 836 Qs.push_back(Op); 844 Qs.push_back(Op); 853 Qs.push_back(Q); 858 if (Qs [all...] |
/external/clang/lib/ARCMigrate/ |
H A D | ObjCMT.cpp | 510 Qualifiers Qs = CanResultTy.getQualifiers(); local 511 Qs.removeObjCLifetime(); 512 RT = Context.getQualifiedType(CanResultTy.getUnqualifiedType(), Qs);
|
/external/clang/lib/Sema/ |
H A D | SemaOverload.cpp | 2175 static QualType AdoptQualifiers(ASTContext &Context, QualType T, Qualifiers Qs){ argument 2179 if (TQs == Qs) 2182 if (Qs.compatiblyIncludes(TQs)) 2183 return Context.getQualifiedType(T, Qs); 2185 return Context.getQualifiedType(T.getUnqualifiedType(), Qs); 9284 QualifierCollector Qs; 9285 Qs.strip(Param); 9286 QualType NonCanonParam = Qs.apply(S.Context, TParam->getTypeForDecl());
|
H A D | SemaType.cpp | 1644 Qualifiers Qs, const DeclSpec *DS) { 1650 if (Qs.hasRestrict()) { 1677 Qs.removeRestrict(); 1681 return Context.getQualifiedType(T, Qs); 1643 BuildQualifiedType(QualType T, SourceLocation Loc, Qualifiers Qs, const DeclSpec *DS) argument
|
H A D | SemaTemplate.cpp | 3173 Qualifiers Qs; local 3174 Qs.setObjCLifetime(Qualifiers::OCL_Strong); 3175 ArgType = Context.getQualifiedType(ArgType, Qs);
|
H A D | TreeTransform.h | 3955 Qualifiers Qs = Replacement.getQualifiers(); local 3956 Qs.removeObjCLifetime(); 3959 Qs); 3967 Qualifiers Qs = Deduced.getQualifiers(); local 3968 Qs.removeObjCLifetime(); 3970 Qs);
|
H A D | SemaDecl.cpp | 5033 QualifierCollector Qs; 5034 const Type *Ty = Qs.strip(T); 5043 return Qs.apply(Context, FixedType); 5052 return Qs.apply(Context, FixedType);
|
/external/clang/lib/AST/ |
H A D | ItaniumMangle.cpp | 3821 Qualifiers Qs = T.getQualifiers(); 3822 return Qs.getCVRQualifiers() || Qs.hasAddressSpace();
|
H A D | Type.cpp | 239 QualifierCollector Qs; local 243 const Type *CurTy = Qs.strip(Cur); 250 return SplitQualType(Ty, Qs); \
|
H A D | ASTContext.cpp | 3025 Qualifiers Qs = CanResultType.getQualifiers(); local 3026 Qs.removeObjCLifetime(); 3028 getQualifiedType(CanResultType.getUnqualifiedType(), Qs));
|
/external/clang/lib/Serialization/ |
H A D | ASTWriter.cpp | 2716 Qualifiers Qs = T.getLocalQualifiers(); local 2718 Record.push_back(Qs.getAsOpaqueValue());
|
/external/webrtc/talk/media/testdata/ |
H A D | h264-svc-99-640x360.rtpdump | 1428 �Z��>����vRf��-x�/��U�Vo�RK4OG���=�1�?�G�m� _,���|��X�xU�x_��z�Ln�k��G��ǯ������NX�~/��h�Z���o���W��P�`#C����kr�<�����k�����KQ}�E�M����{��7�>�ix�..�"���C����y(��~Q�/�b�:.O~o@�����=��\m/�z-~��7����V������w�{y>���O�����O��^�}"E�.{^�r�~�|� >�/���/O��&��r�����G`U�M{;D+������E���������ɞ�ؾ iz|�_��u�u�>'����=l��;VMv�tM��f��\�axF���܅�'`�'���U�`l}O����E�Tz����:.x����
tu��z�c�.S����ខx�3/�xg��.߽��!!�^r�d6e'�Â^��'G��m�Qs���$O�f���a��bR�!�f��ՎH���/���?���î>%�~���
���D���_��}�ˇrkx�_|���K[6?����x7�
N���cl�~��7��P?��^�H��w�Z�"�~���Y�>��>�c��SN�Rg�?��E���O�2;n�S��+�Y�2š�������w�v���!Sñ��� ] U ��c%�����f�� f I��<�r � ��g�� ��g пh���8 ��g B�Z@W��F�Dw��@ � z ���%�����f�� f ("��T+r � �g�� �g�/� ~B^X{����x��3�K��@( /�g ��/� ~B^Xx.W�HĽ�"�F���t��0Q�W��k�̃ c [ ��c%��a��f�� f ("��T9r �8 >��G�� .��G !пh�KHl .��G !B�- &��MK7q�;�i���@�| ���%��a��f�� f ("��TEr �8 >�G�� q4�G�/� d%凂��4��J�5+�+�+J�/ �D�鼫�{{H*��y%d1<4�o�ݙk�@�$5q����8�/OӞxg^u������`I.PK��8"|u��B�p�4�G ��/� d%凂����:�?�#����H�i���b8+��f+�%�[�V,h@��kN������o�_��7���?�xe�����E��c�������M��� ��(�������p�����HM�60��p"���l�s��'�6���)��Jİ#��[�Aǯ� D��?��H�t/���^.���������j_�����g��]�6�����7�
c<;)~V�z���v瞰�w��x~C�37s���ư-L���?u"#ağ�9��_�[ӡ�j| �߉����_��!��6i�x��Z&^�9�Ӂ��/4H��iWB���B�FF��l^C�xW��Z3�{<��ǯ��0$�����dh�}�|>�m6?N=��b�/马�U��\�=K� ��v�t�����~vA�N��J$.a9\�X;',�����kSA� _ W ��c%����f�� f ���r � ��g�� ��g ���K� ��g /C��A4�.��s��� ���%����f�� f ��Sr � �g�� ��g ��1�����O~���t�E��k0��~-qs�he�'~�#�{D�m�:8�_�x ����8i��d�p���2��z|��<���0�E�~6^�$<m��Sc�(����4������RE�ہ �"rKёp����Xټ�D�E�-Ϻ����D����9��J���~ OO�(�@�:%�6u1����$}���t@ ��g�1������G�!~}����zA��0Y�P0�^?<�P�nO�;�6��C �16�8��Ѩ��zs �7�����"�;��TJ���F,�kPG�,���8Eq%2is>�"zh�_D��!���\��-�I�Ə��;���*�?�<4 ��c%�����f�� f ����lr �8 >���� .�� ]!��Jςv���C�/G�'�.�/&���.���|~��
���I`� 2059 7����� 5�qxU� ��c<O�`���}!��p���<�2�-�Ҷ��y�S{D>'��w�����C;������H0'�]8�;z�.� ��+���0����껁g~���=w�D$��Z��k]����<3�؟�_�- ���n�3(2fQ�2����G��������'�� xg���J�O��.�@�+��E�s���E�Lڋ�Qs�^L����?ug�W�L�KamgE�����ly|��� *��ci���+�s=RX���w���g�UUT�������{��wU���ZOI+�'���tH]�����Z'���ٳm<k]�^����1L傷�rl{Z��>ݾw�n&ey渟���H�� �G�UV'���F�{�@�� �c&����f�� f ���r �8 >��G�� .��G �!��h��1��e��@`)�2O釮~��ת�j5^ߛ��7���o@�,��� ����뛻c6~���u��*�>���_�g��-���<i4�T�g-���k���A,)U[*<S��?j:Ȥ~��SG�T�X����2�3��Aq���9�1�،���ekqu'�%�(Y������ֱuQ�W�7���w��9�����l��$���/ ����9~�Z��c5e��Q{��F�5 .��G f!C�3�`QJ
�q�18=O7����(�P\W,�Y0�좇��J��A()�U�.�l��
@���8�ѵ,Q����qf:�n���A��:���\���B���d��b2�8�(1�?���n��������Ⱦ�\\w��O�f�Ç��&t�ؿ���/��ͫ���o�P 2177 ^�j%x�))iT�PD� xZ]dJ�D���`�g���e�j;�أ��8��W\�檮�{e�[�a&�� ��<��>8�RsB`Z���dfs��Da~r(�9��#�����Qs�A�z��'���r�� 7954 �P�M��� f��K�}���)F�>m�laZ�����:U���z5{������VpG����Qs��@�>q�Xd��Uv[I��k�Z��� 8661 �B(\*�V�շ �����2�b�h9�y��F8�S;��k���{��?�2�'���ë����-ٴz��$�k=���;0c5�5�DZDZSߩ�q8�o6.o.��U�a*��o��Qs�oM<��õ�З�z5������-ey�\�[���T�pk���|�؟�i�?�+v'��eKܯ
�_F"ISO� h6|�~�\?K�NVm�x���;7�gp-�������lO� 11858 q��<p7�0~)�璒�C�|\*�Y �b���Qs�G������$�vc�M��)��n��e�h���� 11867 �vC���ΖQ�~P xd�����)�Rx�V/g��gE�~�BZ}~�������Qs��a�{g���#���P�A�kE��'i��b�v�pG���}����~����f���$l����;IP��V���/Cb�����g�K�F���}�h�G�a|��f�]�~�������v'���vl�a�0�:���h�d���+$�;pC�0��[�,J�����/�.�Fׄ��^�-��\���߰{?�t~�ç�ce��wK���<��C���pgAy���R�xWeo�U����&6;̖�O��E���;� 12242 R� �Sh��g ��I�s��±8���_ ZC� Rm*,�bt�l1���=ک�� p�h[Qs�J�DX���L,�X�͞2��ɨX+le'���S|x�f�K��a��2� cU�;�"�+4����_`�7 U�q��n����έt��2=v�x�9��ly'��V<f# 14326 `�� 9��c*J����f�� f Ц�/�r �8 >��^��4���h���JD�,=��V Z����Q�R���+���w�'j�Z%?�zD��fMG�s��kf`�.ji}}B��x!��F��?>��5����{�Qs�}�J��>[mD��V{�ر�����������I?w���c�|t^�aL��x_^�F���;
|
/external/clang/include/clang/Sema/ |
H A D | Sema.h | 1217 QualType BuildQualifiedType(QualType T, SourceLocation Loc, Qualifiers Qs,
|
/external/v8/test/mjsunit/asm/sqlite3/ |
H A D | sqlite-safe-heap.js | 6 function Yr(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();o=r;p=r+8|0;ea(p|0,0|0,4,0);a:do if(!b){ea(e|0,0|0,4,0);f=0}else{g=da(b>>0|0,1,0,0)|0|0;if(g<<24>>24==-98)do{b=da(b+12|0,4,0,0)|0|0;g=da(b>>0|0,1,0,0)|0|0}while(g<<24>>24==-98);if(g<<24>>24==-97)k=da(b+38>>0|0,1,0,1)|0|0;else k=g&255;if((k|0)==157){b=da(b+12|0,4,0,0)|0|0;k=da(b>>0|0,1,0,0)|0|0;if((k&-2)<<24>>24==-124){h=-1;g=-1;n=k&255;k=26016;q=12}else q=30}else if((k|0)==38){h=Wq(da(b+8|0,4,0,0)|0|0,0)|0;f=Yr(a,da(b+12|0,4,0,0)|0|0,c,h,e)|0;g=da(e|0,4,0,0)|0|0;if(!g)break;fm(g,h,1);em(da(e|0,4,0,0)|0|0,d,1);break}else{h=1;g=0;n=k;k=10360;q=12}b:do if((q|0)==12){c:do switch(n|0){case 101:{f=lh(a,40,0)|0;if(!f){ea(p|0,f|0,4,0);break c}else{l=f+0|0;m=l+40|0;do{ea(l>>0|0,0|0,1,0);l=l+1|0}while((l|0)<(m|0));ea(f+8|0,1|0,2,0);ea(f+32|0,a|0,4,0);ea(p|0,f|0,4,0);g=f;f=0;break b}}case 157:{b=da(b+12|0,4,0,0)|0|0;q=30;break b}case 134:{f=lh(a,40,0)|0;if(!f){ea(p|0,f|0,4,0);break c}l=f+0|0;m=l+40|0;do{ea(l>>0|0,0|0,1,0);l=l+1|0}while((l|0)<(m|0));ea(f+8|0,1|0,2,0);ea(f+32|0,a|0,4,0);ea(p|0,f|0,4,0);g=(da(b+8|0,4,0,0)|0|0)+2|0;b=g;while(1)if(!(da(b>>0|0,1,0,0)|0))break;else b=b+1|0;p=(b-g&1073741823)+-1|0;Wg(f,Xt(a,g,p)|0,(p|0)/2|0,0,75)|0;g=f;f=0;break b}case 97:case 132:case 133:{f=lh(a,40,0)|0;if(!f){ea(p|0,f|0,4,0);break c}l=f+0|0;m=l+40|0;do{ea(l>>0|0,0|0,1,0);l=l+1|0}while((l|0)<(m|0));ea(f+8|0,1|0,2,0);ea(f+32|0,a|0,4,0);ea(p|0,f|0,4,0);do if(!((da(b+4|0,4,0,0)|0)&1024)){h=da(b+8|0,4,0,0)|0|0;ea(o|0,k|0,4,0);ea(o+4|0,h|0,4,0);h=th(a,19456,o)|0;if(!h)break c;if(f)Wg(f,h,-1,1,75)|0}else{k=da(b+8|0,4,0,0)|0|0;k=rw(k|0,((k|0)<0)<<31>>31|0,h|0,g|0)|0;h=C;b=f+8|0;if(!((da(b|0,2,0,0)|0)&9312)){p=f;ea(p|0,k|0,4,0);ea(p+4|0,h|0,4,0);ea(b|0,4|0,2,0);break}else{Yg(f,k,h);break}}while(0);if((n&-2|0)==132&d<<24>>24==65)em(f,67,1);else em(f,d,1);g=f+8|0;b=da(g|0,2,0,1)|0|0;if(b&12)ea(g|0,b&65533|0,2,0);if(c<<24>>24==1){g=f;f=0;break b}g=f;f=Xl(f,c&255)|0;break b}default:{g=0;f=0;break b}}while(0);ea(a+65>>0|0,1|0,1,0);lg(a,0);Lh(f);f=7;break a}while(0);if((q|0)==30){o=(Yr(a,b,c,d,p)|0)==0;g=da(p|0,4,0,0)|0|0;if(o&(g|0)!=0){np(g);h=g+8|0;b=da(h|0,2,0,0)|0|0;do if(!(b&8)){k=g;f=da(k|0,4,0,0)|0|0;k=da(k+4|0,4,0,0)|0|0;if((f|0)==0&(k|0)==-2147483648){ea(g|0,+(9223372036854775808.0),8,1);ea(h|0,b&48640|8|0,2,0);break}else{o=cw(0,0,f|0,k|0)|0;p=g;ea(p|0,o|0,4,0);ea(p+4|0,C|0,4,0);break}}else ea(g|0,+-+(+da(g|0,8,1,0)),8,1);while(0);em(g,d,c);f=0}else f=0}ea(e|0,g|0,4,0)}while(0);i=r;return f|0}function Zr(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;do if((b|0)!=0?(e=a+19|0,f=da(e>>0|0,1,0,0)|0|0,(f&255)<8):0){d=0;c=a+116|0;while(1){if((da(c+12|0,4,0,0)|0|0)==(b|0)){d=5;break}d=d+1|0;if((d|0)>=10){d=7;break}else c=c+20|0}if((d|0)==5){ea(c+6>>0|0,1|0,1,0);break}else if((d|0)==7){ea(e>>0|0,f+1<<24>>24|0,1,0);ea(a+((f&255)<<2)+24|0,b|0,4,0);break}}while(0);return}function _r(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();l=m;c=a+484|0;h=da(c|0,4,0,0)|0|0;k=da(a|0,4,0,0)|0|0;do if((h|0)!=0?(as(a),ea(a+512|0,0|0,4,0),(da(h+52|0,4,0,0)|0|0)>=1):0){if(da(k+145>>0|0,1,0,0)|0)if(!(Hk((da(h+68|0,4,0,0)|0|0)+8|0,da(h|0,4,0,0)|0|0,h)|0)){ea(c|0,0|0,4,0);break}else{ea(k+65>>0|0,1|0,1,0);break}if(b)ea(a+500|0,(da(b|0,4,0,0)|0|0)-(da(a+496|0,4,0,0)|0|0)+(da(b+4|0,4,0,0)|0|0)|0,4,0);ea(l|0,a+496|0,4,0);g=th(k,25256,l)|0;b=da(h+68|0,4,0,0)|0|0;a:do if(b){d=da(k+20|0,4,0,0)|0|0;if((d|0)>0){e=da(k+16|0,4,0,0)|0|0;f=0;while(1){c=f+1|0;if((da(e+(f<<4)+12|0,4,0,0)|0|0)==(b|0)){c=f;break a}if((c|0)<(d|0))f=c;else break}}else c=0}else c=-1e6;while(0);e=da(h|0,4,0,0)|0|0;f=da(a+384|0,4,0,0)|0|0;ea(l|0,da((da(k+16|0,4,0,0)|0|0)+(c<<4)|0,4,0,0)|0|0,4,0);ea(l+4|0,((c|0)==1?13184:13208)|0,4,0);ea(l+8|0,e|0,4,0);ea(l+12|0,e|0,4,0);ea(l+16|0,g|0,4,0);ea(l+20|0,f|0,4,0);Ar(a,25280,l);lg(k,g);g=Nq(a)|0;Cr(a,c);vh(g,144,0,0,0)|0;ea(l|0,da(h|0,4,0,0)|0|0,4,0);Hr(g,c,th(k,25368,l)|0);a=a+72|0;l=(da(a|0,4,0,0)|0|0)+1|0;ea(a|0,l|0,4,0);a=da(h|0,4,0,0)|0|0;wh(g,vh(g,97,0,l,0)|0,a,0);vh(g,147,c,l,0)|0}while(0);i=m;return}function $r(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=b+52|0;h=da(g|0,4,0,0)|0|0;d=h+1|0;ea(g|0,d|0,4,0);f=(h<<2)+8|0;e=b+56|0;f=qo(a,da(e|0,4,0,0)|0|0,f,((f|0)<0)<<31>>31)|0;if(!f){if((h|0)>0){b=0;do{lg(a,da((da(e|0,4,0,0)|0|0)+(b<<2)|0,4,0,0)|0|0);b=b+1|0}while((b|0)!=(h|0))}lg(a,c);lg(a,da(e|0,4,0,0)|0|0);ea(g|0,0|0,4,0)}else{ea(f+(h<<2)|0,c|0,4,0);ea(f+(d<<2)|0,0|0,4,0)}ea(e|0,f|0,4,0);return}function as(a){a=a|0;var b=0,c=0,d=0,e=0;b=da(a+512|0,4,0,0)|0|0;if((b|0)!=0?(e=da(a+484|0,4,0,0)|0|0,(e|0)!=0):0){c=da(a+516|0,4,0,0)|0|0;d=da(a|0,4,0,0)|0|0;a=iw(c|0,((c|0)<0)<<31>>31|0,1,0)|0;a=lh(d,a,C)|0;if(!a)a=0;else{jw(a|0,b|0,c|0)|0;ea(a+c>>0|0,0|0,1,0)}$r(d,e,a)}return}function bs(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();h=m;k=da(a|0,4,0,0)|0|0;l=Vq(k,c)|0;g=(b|0)!=0;if((l|0)!=0&g?(f=da(b|0,4,0,0)|0|0,(f|0)>0):0){c=f;f=0;do{if(!(cd(l,da(b+(f<<4)+8|0,4,0,0)|0|0)|0)){ea(h|0,l|0,4,0);sh(a,25184,h);c=da(b|0,4,0,0)|0|0}f=f+1|0}while((f|0)<(c|0))}if(g){f=((da(b|0,4,0,0)|0)<<4)+24|0;f=qo(k,b,f,((f|0)<0)<<31>>31)|0;if(!f)c=10;else{b=f;c=11}}else{c=lh(k,24,0)|0;if(!c)c=10;else{f=c+0|0;b=f+24|0;do{ea(f>>0|0,0|0,1,0);f=f+1|0}while((f|0)<(b|0));b=c;c=11}}if((c|0)==10){Mk(k,d);Lk(k,e,1);lg(k,l)}else if((c|0)==11){k=b+8|0;ea(k+((da(b|0,4,0,0)|0)<<4)+8|0,e|0,4,0);e=da(b|0,4,0,0)|0|0;ea(k+(e<<4)+4|0,d|0,4,0);ea(k+(e<<4)|0,l|0,4,0);ea(k+(e<<4)+12|0,0|0,4,0);ea(b|0,e+1|0,4,0)}i=m;return b|0}function cs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+96|0;if((i|0)>=(j|0))ba();h=k+48|0;c=k;d=da(da(a+32|0,4,0,0)|0|0,4,0,0)|0|0;e=h+0|0;f=d+0|0;g=e+48|0;do{ea(e>>0|0,da(f>>0|0,1,0,0)|0|0|0,1,0);e=e+1|0;f=f+1|0}while((e|0)<(g|0));if((da(a+43>>0|0,1,0,0)|0|0)!=2){e=da(a+4|0,4,0,0)|0|0;bc[(fa(da((da(e|0,4,0,0)|0|0)+60|0,4,0,0)|0|0,31|0)|0)&31](e)}e=c+0|0;f=d+48|0;g=e+48|0;do{ea(e>>0|0,da(f>>0|0,1,0,0)|0|0|0,1,0);e=e+1|0;f=f+1|0}while((e|0)<(g|0));if((Yv(h,c,48)|0)==0?(da(h+12>>0|0,1,0,0)|0|0)!=0:0){f=h+40|0;g=h;d=0;c=0;do{d=d+c+(da(g|0,4,0,0)|0|0)|0;c=d+c+(da(g+4|0,4,0,0)|0|0)|0;g=g+8|0}while(g>>>0<f>>>0);if((d|0)==(da(f|0,4,0,0)|0|0)?(c|0)==(da(h+44|0,4,0,0)|0|0):0){c=a+52|0;if(!(Yv(c,h,48)|0))c=0;else{ea(b|0,1|0,4,0);e=c+0|0;f=h+0|0;g=e+48|0;do{ea(e|0,da(f|0,4,0,0)|0|0,4,0);e=e+4|0;f=f+4|0}while((e|0)<(g|0));c=da(a+66|0,2,0,1)|0|0;ea(a+36|0,c<<16&65536|c&65024|0,4,0);c=0}}else c=1}else c=1;i=k;return c|0}function ds(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;b=sc[(fa(da((da(a|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,31|0)|0)&31](a,e,4,b,c)|0;if(!b)ea(d|0,(da(e+1>>0|0,1,0,1)|0|0)<<16|(da(e>>0|0,1,0,1)|0|0)<<24|(da(e+2>>0|0,1,0,1)|0|0)<<8|(da(e+3>>0|0,1,0,1)|0|0)|0,4,0);i=f;return b|0}function es(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=hw(a|0,b|0,1)|0;b=C}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;e=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){d=b;c=40;while(1){c=(c&65535)+40|0;e=lw(a|0,d|0,4)|0;b=C;if(d>>>0>0|(d|0)==0&a>>>0>4095){a=e;d=b}else{a=e;break}}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){e=a;while(1){c=(c&65535)+10&65535;a=lw(e|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&e>>>0>31){e=a;b=C}else break}e=11}else e=11}if((e|0)==11)a=(c&65535)+65526+(da(13496+((a&7)<<1)|0,2,0,1)|0|0)&65535;return a|0}function fs(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=da(a+408|0,4,0,0)|0|0;i=(i|0)==0?a:i;g=i+396|0;f=da(g|0,4,0,0)|0|0;h=da(i+400|0,4,0,0)|0|0;a:do if((f|0)>0){a=0;while(1){if((da(h+(a<<4)|0,4,0,0)|0|0)==(b|0)?(da(h+(a<<4)+4|0,4,0,0)|0|0)==(c|0):0)break;a=a+1|0;if((a|0)>=(f|0)){j=8;break a}}a=h+(a<<4)+8|0;if(!(da(a>>0|0,1,0,0)|0))f=d<<24>>24!=0&1;else f=1;ea(a>>0|0,f|0,1,0)}else j=8;while(0);do if((j|0)==8){a=(f<<4)+16|0;a=Vl(da(i|0,4,0,0)|0|0,h,a,((a|0)<0)<<31>>31)|0;ea(i+400|0,a|0,4,0);if(!a){ea(g|0,0|0,4,0);ea((da(i|0,4,0,0)|0|0)+65>>0|0,1|0,1,0);break}else{f=da(g|0,4,0,0)|0|0;ea(g|0,f+1|0,4,0);ea(a+(f<<4)|0,b|0,4,0);ea(a+(f<<4)+4|0,c|0,4,0);ea(a+(f<<4)+8>>0|0,d|0,1,0);ea(a+(f<<4)+12|0,e|0,4,0);break}}while(0);return}function gs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=da(b+48|0,2,0,0)|0|0;h=e&65535;d=da(b+46|0,2,0,1)|0|0;i=a+64|0;if(!(da(i|0,4,0,0)|0)){c=da(a|0,4,0,0)|0|0;if(!((da(b+51>>0|0,1,0,0)|0)&8))g=Qs(c,h,0)|0;else g=Qs(c,d,h-d|0)|0;if(g){if(e<<16>>16){f=b+32|0;b=b+28|0;d=g+16|0;c=0;do{e=da((da(f|0,4,0,0)|0|0)+(c<<2)|0,4,0,0)|0|0;if(!(Zv(e,11152)|0))e=0;else e=br(a,e)|0;ea(g+(c<<2)+20|0,e|0,4,0);ea((da(d|0,4,0,0)|0|0)+c>>0|0,da((da(b|0,4,0,0)|0|0)+c>>0|0,1,0,0)|0|0|0,1,0);c=c+1|0}while((c|0)<(h|0))}c=(da(i|0,4,0,0)|0|0)==0;if(!c){c=(da(g|0,4,0,0)|0|0)+-1|0;ea(g|0,c|0,4,0);if(!c){Vc(g);c=0}else c=0}else c=c?g:0}else c=0}else c=0;return c|0}function hs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+112|0;if((i|0)>=(j|0))ba();w=B;y=B+100|0;z=B+96|0;g=B+48|0;x=da(a+8|0,4,0,0)|0|0;ea(y|0,0|0,4,0);ea(z|0,0|0,4,0);v=da(a|0,4,0,0)|0|0;a:do if(!x)c=0;else{b:do if(!b)A=16;else{m=da(b>>0|0,1,0,0)|0|0;l=m&255;do switch(l|0){case 155:{e=da(b+40|0,4,0,0)|0|0;if(!e){ea(w|0,da(b+8|0,4,0,0)|0|0,4,0);sh(a,28936,w);break b}else{c=da((da(e+40|0,4,0,0)|0|0)+((da(b+34|0,2,0,0)|0)<<4)+8|0,4,0,0)|0|0;break b}}case 132:{Yt(a,b,0,c);break b}case 79:case 78:case 83:case 80:case 81:case 82:{u=b+12|0;w=_t(a,da(u|0,4,0,0)|0|0,y)|0;v=b+16|0;x=_t(a,da(v|0,4,0,0)|0|0,z)|0;$t(a,da(u|0,4,0,0)|0|0,da(v|0,4,0,0)|0|0,l,w,x,c,32);break b}case 97:{w=da(b+8|0,4,0,0)|0|0;wh(x,vh(x,97,0,c,0)|0,w,0);break b}case 119:case 20:{c=du(a,b,0,0)|0;break b}case 75:{w=ws(x)|0;h=ws(x)|0;vh(x,28,0,c,0)|0;eu(a,b,w,h);vh(x,25,1,c,0)|0;e=x+24|0;d=da(e|0,4,0,0)|0|0;f=~w;if((w|0)<0?(k=da(d+112|0,4,0,0)|0|0,(k|0)!=0):0)ea(k+(f<<2)|0,da(x+32|0,4,0,0)|0|0,4,0);g=x+32|0;ea(d+88|0,(da(g|0,4,0,0)|0|0)+-1|0,4,0);vh(x,37,c,0,0)|0;f=da(e|0,4,0,0)|0|0;e=~h;if((h|0)<0?(n=da(f+112|0,4,0,0)|0|0,(n|0)!=0):0)ea(n+(e<<2)|0,da(g|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(g|0,4,0,0)|0|0)+-1|0,4,0);break b}case 24:{c=hs(a,da(b+12|0,4,0,0)|0|0,c)|0;break b}case 77:case 76:{vh(x,25,1,c,0)|0;d=vh(x,l,_t(a,da(b+12|0,4,0,0)|0|0,y)|0,0,0)|0;vh(x,25,0,c,0)|0;e=da(x+32|0,4,0,0)|0|0;if(e>>>0>d>>>0)ea((da(x+4|0,4,0,0)|0|0)+(d*20|0)+8|0,e|0,4,0);ea((da(x+24|0,4,0,0)|0|0)+88|0,e+-1|0,4,0);break b}case 159:{c=da(b+28|0,4,0,0)|0|0;break b}case 158:case 95:{c=hs(a,da(b+12|0,4,0,0)|0|0,c)|0;break b}case 62:{d=da(b+44|0,4,0,0)|0|0;e=b+32|0;vh(x,132,(_((da(d+38|0,2,0,0)|0|0)+1|0,da(b+28|0,4,0,0)|0|0)|0)+((da(e|0,2,0,0)|0|0)+1)|0,c,0)|0;e=da(e|0,2,0,0)|0|0;if(e<<16>>16<=-1)break b;if((da((da(d+4|0,4,0,0)|0|0)+((e<<16>>16)*24|0)+21>>0|0,1,0,0)|0|0)!=69)break b;vh(x,39,c,0,0)|0;break b}case 153:{k=da(v+62>>0|0,1,0,0)|0|0;t=b+4|0;if(((da(t|0,4,0,0)|0)&16384|0)==0?(h=da(b+20|0,4,0,0)|0|0,(h|0)!=0):0){u=da(h|0,4,0,0)|0|0;r=1;s=h}else{u=0;r=0;s=0}m=da(b+8|0,4,0,0)|0|0;if(!m)l=0;else{l=m;while(1)if(!(da(l>>0|0,1,0,0)|0))break;else l=l+1|0;l=l-m&1073741823}g=Rh(v,m,l,u,k,0)|0;if((g|0)!=0?(da(g+12|0,4,0,0)|0|0)!=0:0){q=g+2|0;h=da(q|0,2,0,1)|0|0;if(h&512){g=ws(x)|0;f=s+4|0;Qq(a,da(da(f|0,4,0,0)|0|0,4,0,0)|0|0,c);if((u|0)>1){e=a+100|0;d=1;do{vh(x,77,c,g,0)|0;ct(a,c,1);ea(e|0,(da(e|0,4,0,0)|0|0)+1|0,4,0);Qq(a,da((da(f|0,4,0,0)|0|0)+(d*20|0)|0,4,0,0)|0|0,c);au(a);d=d+1|0}while((d|0)!=(u|0))}f=da(x+24|0,4,0,0)|0|0;e=~g;if((g|0)<0?(p=da(f+112|0,4,0,0)|0|0,(p|0)!=0):0)ea(p+(e<<2)|0,da(x+32|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(x+32|0,4,0,0)|0|0)+-1|0,4,0);break b}if(h&1024){Qq(a,da(da(s+4|0,4,0,0)|0|0,4,0,0)|0|0,c);break b}p=(u|0)>0;if(p){l=s+4|0;k=w+20|0;h=w+4|0;e=w+24|0;m=0;d=0;f=0;do{if((d|0)<32?(b=da((da(l|0,4,0,0)|0|0)+(d*20|0)|0,4,0,0)|0|0,ea(w+0|0,0|0,4,0),ea(w+4|0,0|0,4,0),ea(w+8|0,0|0,4,0),ea(w+12|0,0|0,4,0),ea(w+16|0,0|0,4,0),ea(w+20|0,0|0,4,0),ea(k>>0|0,1|0,1,0),ea(w|0,78|0,4,0),ea(h|0,79|0,4,0),ea(e|0,0|0,4,0),qs(w,b)|0,(da(k>>0|0,1,0,0)|0|0)!=0):0)m=m|1<<d;if(!(((da(q|0,2,0,0)|0)&32)==0|(f|0)!=0))f=bu(a,da((da(l|0,4,0,0)|0|0)+(d*20|0)|0,4,0,0)|0|0)|0;d=d+1|0}while((d|0)!=(u|0));n=m}else{n=0;f=0}if(r){do if(!n){l=a+60|0;m=da(l|0,4,0,0)|0|0;k=a+56|0;h=da(k|0,4,0,0)|0|0;if((h|0)<(u|0)){w=a+72|0;m=da(w|0,4,0,0)|0|0;ea(w|0,m+u|0,4,0);m=m+1|0;break}else{ea(l|0,m+u|0,4,0);ea(k|0,h-u|0,4,0);break}}else{w=a+72|0;m=da(w|0,4,0,0)|0|0;ea(w|0,m+u|0,4,0);m=m+1|0}while(0);h=da(q|0,2,0,0)|0|0;if((h&192)!=0?(o=da(da(s+4|0,4,0,0)|0|0,4,0,0)|0|0,w=da(o>>0|0,1,0,0)|0|0,w<<24>>24==-100|w<<24>>24==-102):0)ea(o+38>>0|0,h&192|0,1,0);w=a+100|0;ea(w|0,(da(w|0,4,0,0)|0|0)+1|0,4,0);at(a,s,m,3);au(a)}else m=0;if((u|0)>1?((da(t|0,4,0,0)|0)&128|0)!=0:0)g=cu(v,g,u,da((da(s+4|0,4,0,0)|0|0)+20|0,4,0,0)|0|0)|0;else if(p)g=cu(v,g,u,da(da(s+4|0,4,0,0)|0|0,4,0,0)|0|0)|0;if((da(g+2|0,2,0,0)|0)&32){if(!f)f=da(v+8|0,4,0,0)|0|0;wh(x,vh(x,36,0,0,0)|0,f,-4)}wh(x,vh(x,1,n,m,c)|0,g,-5);f=da(x+4|0,4,0,0)|0|0;if(f)ea(f+(((da(x+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,u|0,1,0);if(!((u|0)!=0&(n|0)==0))break b;ct(a,m,u);e=a+56|0;if((da(e|0,4,0,0)|0|0)>=(u|0))break b;ea(e|0,u|0,4,0);ea(a+60|0,m|0,4,0);break b}ea(w|0,l|0,4,0);ea(w+4|0,m|0,4,0);sh(a,28968,w);break b}case 19:case 96:{vh(x,l,_t(a,da(b+12|0,4,0,0)|0|0,y)|0,c,0)|0;break b}case 154:break;case 148:case 73:{u=b+12|0;w=_t(a,da(u|0,4,0,0)|0|0,y)|0;v=b+16|0;x=_t(a,da(v|0,4,0,0)|0|0,z)|0;$t(a,da(u|0,4,0,0)|0|0,da(v|0,4,0,0)|0|0,m<<24>>24==73?79:78,w,x,c,160);break b}case 135:{e=b+32|0;vh(x,31,da(e|0,2,0,0)|0|0,c,0)|0;if(!(da((da(b+8|0,4,0,0)|0|0)+1>>0|0,1,0,0)|0))break b;wh(x,-1,da((da(a+472|0,4,0,0)|0|0)+((da(e|0,2,0,0)|0|0)+-1<<2)|0,4,0,0)|0|0,-2);break b}case 133:{Zt(x,da(b+8|0,4,0,0)|0|0,0,c);break b}case 74:{m=da(b+12|0,4,0,0)|0|0;h=da((da(b+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;d=da(h|0,4,0,0)|0|0;k=_t(a,m,y)|0;l=_t(a,d,z)|0;g=a+19|0;e=da(g>>0|0,1,0,0)|0|0;if(e<<24>>24){w=e+-1<<24>>24;ea(g>>0|0,w|0,1,0);f=da(a+((w&255)<<2)+24|0,4,0,0)|0|0;if(!(w<<24>>24))A=103;else{w=e+-2<<24>>24;ea(g>>0|0,w|0,1,0);g=da(a+((w&255)<<2)+24|0,4,0,0)|0|0}}else{A=a+72|0;f=(da(A|0,4,0,0)|0|0)+1|0;ea(A|0,f|0,4,0);A=103}if((A|0)==103){w=a+72|0;g=(da(w|0,4,0,0)|0|0)+1|0;ea(w|0,g|0,4,0)}$t(a,m,d,83,k,l,f,32);w=da(h+20|0,4,0,0)|0|0;Zr(a,da(z|0,4,0,0)|0|0);$t(a,m,w,81,k,_t(a,w,z)|0,g,32);vh(x,72,f,g,c)|0;Zr(a,f);Zr(a,g);break b}case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{w=_t(a,da(b+12|0,4,0,0)|0|0,y)|0;vh(x,l,_t(a,da(b+16|0,4,0,0)|0|0,z)|0,w,c)|0;break b}case 157:{e=b+12|0;d=da(e|0,4,0,0)|0|0;f=da(d>>0|0,1,0,0)|0|0;if(f<<24>>24==-123){Zt(x,da(d+8|0,4,0,0)|0|0,1,c);break b}else if(f<<24>>24==-124){Yt(a,d,1,c);break b}else{ea(g>>0|0,-124|0,1,0);ea(g+4|0,17408|0,4,0);ea(g+8|0,0|0,4,0);w=_t(a,g,y)|0;vh(x,90,_t(a,da(e|0,4,0,0)|0|0,z)|0,w,c)|0;break b}}case 101:{A=16;break b}case 156:{d=da(b+40|0,4,0,0)|0|0;e=da(b+34|0,2,0,0)|0|0;f=da(d+28|0,4,0,0)|0|0;if(!(da(d>>0|0,1,0,0)|0)){c=da(f+(e*24|0)+16|0,4,0,0)|0|0;break b}if(da(d+1>>0|0,1,0,0)|0){vh(x,47,da(d+8|0,4,0,0)|0|0,da(f+(e*24|0)+12|0,4,0,0)|0|0,c)|0;break b}break}case 38:{e=hs(a,da(b+12|0,4,0,0)|0|0,c)|0;if((e|0)!=(c|0))vh(x,34,e,c,0)|0;vh(x,40,c,(Wq(da(b+8|0,4,0,0)|0|0,0)|0)<<24>>24,0)|0;ct(a,c,1);break b}case 57:{if(!(da(a+412|0,4,0,0)|0)){sh(a,29e3,w);c=0;break a}f=da(b+1>>0|0,1,0,0)|0|0;if(f<<24>>24!=2){d=da(b+8|0,4,0,0)|0|0;if(f<<24>>24==4){wh(x,vh(x,24,0,4,0)|0,d,0);break b}}else{d=da(a+408|0,4,0,0)|0|0;ea(((d|0)==0?a:d)+21>>0|0,1|0,1,0);d=da(b+8|0,4,0,0)|0|0}ys(a,1811,f<<24>>24,d,0,0);break b}case 134:{d=(da(b+8|0,4,0,0)|0|0)+2|0;e=d;while(1)if(!(da(e>>0|0,1,0,0)|0))break;else e=e+1|0;v=(e-d&1073741823)+-1|0;w=Xt(da(x|0,4,0,0)|0|0,d,v)|0;wh(x,vh(x,30,(v|0)/2|0,c,0)|0,w,-1);break b}default:{q=da(b+20|0,4,0,0)|0|0;o=q+4|0;p=da(o|0,4,0,0)|0|0;q=da(q|0,4,0,0)|0|0;r=ws(x)|0;m=da(b+12|0,4,0,0)|0|0;b=(m|0)!=0;if(b){l=g+0|0;k=m+0|0;h=l+48|0;do{ea(l|0,da(k|0,4,0,0)|0|0,4,0);l=l+4|0;k=k+4|0}while((l|0)<(h|0));m=_t(a,m,y)|0;ea(g+38>>0|0,da(g>>0|0,1,0,0)|0|0|0,1,0);ea(g>>0|0,-97|0,1,0);ea(g+28|0,m|0,4,0);m=g+4|0;ea(m|0,(da(m|0,4,0,0)|0)&-4097|0,4,0);ea(w>>0|0,79|0,1,0);ea(w+12|0,g|0,4,0);ea(y|0,0|0,4,0);m=w}else m=0;n=q+-1|0;if((n|0)>0){d=a+100|0;h=w+16|0;g=x+24|0;f=x+32|0;e=0;l=m;while(1){ea(d|0,(da(d|0,4,0,0)|0|0)+1|0,4,0);m=da(p+(e*20|0)|0,4,0,0)|0|0;if(b){ea(h|0,m|0,4,0);m=l}w=ws(x)|0;ft(a,m,w,16);Qq(a,da(p+((e|1)*20|0)|0,4,0,0)|0|0,c);vh(x,16,0,r,0)|0;au(a);l=da(g|0,4,0,0)|0|0;k=~w;if((w|0)<0?(s=da(l+112|0,4,0,0)|0|0,(s|0)!=0):0)ea(s+(k<<2)|0,da(f|0,4,0,0)|0|0,4,0);ea(l+88|0,(da(f|0,4,0,0)|0|0)+-1|0,4,0);e=e+2|0;if((e|0)>=(n|0))break;else l=m}}if(!(q&1))vh(x,28,0,c,0)|0;else{w=a+100|0;ea(w|0,(da(w|0,4,0,0)|0|0)+1|0,4,0);Qq(a,da((da(o|0,4,0,0)|0|0)+(n*20|0)|0,4,0,0)|0|0,c);au(a)}f=da(x+24|0,4,0,0)|0|0;e=~r;if((r|0)<0?(t=da(f+112|0,4,0,0)|0|0,(t|0)!=0):0)ea(t+(e<<2)|0,da(x+32|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(x+32|0,4,0,0)|0|0)+-1|0,4,0);break b}}while(0);d=da(b+28|0,4,0,0)|0|0;do if((d|0)<0){d=da(a+92|0,4,0,0)|0|0;if((d|0)>0){c=(da(b+32|0,2,0,0)|0|0)+d|0;break b}else{d=da(a+96|0,4,0,0)|0|0;break}}while(0);c=bt(a,da(b+44|0,4,0,0)|0|0,da(b+32|0,2,0,0)|0|0,d,c,da(b+38>>0|0,1,0,0)|0|0)|0}while(0);if((A|0)==16)vh(x,28,0,c,0)|0;Zr(a,da(y|0,4,0,0)|0|0);Zr(a,da(z|0,4,0,0)|0|0)}while(0);i=B;return c|0}function is(a,b){a=a|0;b=b|0;var c=0;c=Nq(a)|0;fs(a,b,1,1,(b|0)==1?13184:13208);wh(c,vh(c,55,0,1,b)|0,5,-14);b=a+68|0;if(!(da(b|0,4,0,0)|0))ea(b|0,1|0,4,0);return}function js(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=b+48|0;if((da(d|0,2,0,1)|0|0|0)<(c|0)){e=c*7|0;a=lh(a,e,((e|0)<0)<<31>>31)|0;if(!a)a=7;else{ew(a|0,0,e|0)|0;e=b+32|0;jw(a|0,da(e|0,4,0,0)|0|0,(da(d|0,2,0,1)|0|0)<<2|0)|0;ea(e|0,a|0,4,0);e=a+(c<<2)|0;f=b+4|0;jw(e|0,da(f|0,4,0,0)|0|0,(da(d|0,2,0,1)|0|0)<<1|0)|0;ea(f|0,e|0,4,0);a=a+(c*6|0)|0;e=b+28|0;jw(a|0,da(e|0,4,0,0)|0|0,da(d|0,2,0,1)|0|0|0)|0;ea(e|0,a|0,4,0);ea(d|0,c|0,2,0);a=b+51|0;ea(a>>0|0,da(a>>0|0,1,0,0)|0|16|0,1,0);a=0}}else a=0;return a|0}function ks(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();f=m;l=m+4|0;do if(!b)c=0;else{g=da(a|0,4,0,0)|0|0;k=b+24|0;e=g+460|0;d=(da(e|0,4,0,0)|0|0)+(da(k|0,4,0,0)|0|0)|0;c=da((da(g|0,4,0,0)|0|0)+100|0,4,0,0)|0|0;if((c|0)<(d|0)){ea(f|0,c|0,4,0);sh(g,27152,f);c=1;break}ea(e|0,d|0,4,0);f=a+28|0;e=da(f|0,2,0,1)|0|0;h=e&4098;ea(f|0,e&61437|0,2,0);ea(l+0|0,0|0,4,0);ea(l+4|0,0|0,4,0);ea(l+8|0,0|0,4,0);ea(l+12|0,0|0,4,0);ea(l+16|0,0|0,4,0);ea(l+20|0,0|0,4,0);ea(l|0,82|0,4,0);ea(l+4|0,83|0,4,0);e=l+12|0;ea(e|0,g|0,4,0);ea(l+24|0,a|0,4,0);qs(l,b)|0;l=(da(a|0,4,0,0)|0|0)+460|0;ea(l|0,(da(l|0,4,0,0)|0|0)-(da(k|0,4,0,0)|0|0)|0,4,0);if(!((da(a+24|0,4,0,0)|0|0)<=0?(da((da(e|0,4,0,0)|0|0)+64|0,4,0,0)|0|0)<=0:0)){l=b+4|0;ea(l|0,da(l|0,4,0,0)|0|8|0,4,0)}e=da(f|0,2,0,0)|0|0;d=b+4|0;c=da(d|0,4,0,0)|0|0;if(e&2){c=c|2;ea(d|0,c|0,4,0)}ea(f|0,e&65535|h|0,2,0);c=c>>>3&1}while(0);i=m;return c|0}function ls(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=da((da(a+12|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;c=da(a+48|0,2,0,0)|0|0;if(!(c<<16>>16)){b=0;c=0}else{g=da(a+4|0,4,0,0)|0|0;d=c&65535;e=0;b=0;do{c=da(g+(e<<1)|0,2,0,0)|0|0;if(c<<16>>16<0)c=1;else c=da(f+((c<<16>>16)*24|0)+22>>0|0,1,0,1)|0|0;b=c+b|0;e=e+1|0}while((e|0)<(d|0));b=b<<2;c=0}ea(a+44|0,es(b,c)|0|0,2,0);return}function ms(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=da(a|0,4,0,0)|0|0;d=g+24|0;f=da(d|0,4,0,0)|0|0;ea(d|0,f&-97|64|0,4,0);Cs(a,b,0);if(!(da(a+64|0,4,0,0)|0)){while(1){c=da(b+52|0,4,0,0)|0|0;if(!c){e=b;break}else b=c}ea(d|0,f|0,4,0);b=lh(g,76,0)|0;if(b){c=b+0|0;d=c+76|0;do{ea(c>>0|0,0|0,1,0);c=c+1|0}while((c|0)<(d|0));ea(b+40|0,1|0,2,0);ea(b|0,0|0,4,0);ea(b+28|0,200|0,2,0);hu(a,da(e|0,4,0,0)|0|0,b+38|0,b+4|0);iu(a,b,e);ea(b+36|0,-1|0,2,0);if(da(g+65>>0|0,1,0,0)|0){jg(g,b);b=0}}else b=0}else b=0;return b|0}function ns(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=da(b|0,4,0,0)|0|0;e=da(c>>0|0,1,0,0)|0|0;a:do if(!(e<<24>>24)){g=0;f=0}else{g=e;h=0;while(1){f=h+1|0;if(!(g<<24>>24==95?1:((da(10368+(g&255)>>0|0,1,0,0)|0)&6)!=0)){f=h;break a}g=da(c+f>>0|0,1,0,0)|0|0;if(!(g<<24>>24)){g=0;break}else h=f}}while(0);if((((e&255)+-48|0)>>>0>=10?(ei(c,f)|0)==27:0)?!((f|0)==0|g<<24>>24!=0):0)i=0;else{ea(a+d>>0|0,34|0,1,0);i=1;e=da(c>>0|0,1,0,0)|0|0;d=d+1|0}if(e<<24>>24){f=c;h=0;do{g=d+1|0;ea(a+d>>0|0,e|0,1,0);if((da(f>>0|0,1,0,0)|0|0)==34){ea(a+g>>0|0,34|0,1,0);d=d+2|0}else d=g;h=h+1|0;f=c+h|0;e=da(f>>0|0,1,0,0)|0|0}while(e<<24>>24!=0)}if(i){ea(a+d>>0|0,34|0,1,0);d=d+1|0}ea(a+d>>0|0,0|0,1,0);ea(b|0,d|0,4,0);return}function os(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+20|0;d=da(c>>0|0,1,0,0)|0|0;if(d<<24>>24==2?((da(b+4|0,4,0,0)|0)&1|0)!=0:0){ea(c>>0|0,0|0,1,0);c=2}else e=4;a:do if((e|0)==4)switch(da(b>>0|0,1,0,1)|0|0|0){case 153:{if((d&255)>3){c=0;break a}if((da(b+4|0,4,0,0)|0)&524288){c=0;break a}ea(c>>0|0,0|0,1,0);c=2;break a}case 135:if(d<<24>>24==5){ea(b>>0|0,101|0,1,0);c=0;break a}else if(d<<24>>24==4){ea(c>>0|0,0|0,1,0);c=2;break a}else{c=0;break a}case 156:case 155:case 154:case 27:{if(d<<24>>24==3?(da(b+28|0,4,0,0)|0|0)==(da(a+24|0,4,0,0)|0|0):0){c=0;break a}ea(c>>0|0,0|0,1,0);c=2;break a}default:{c=0;break a}}while(0);return c|0}function ps(a,b){a=a|0;b=b|0;ea(a+20>>0|0,0|0,1,0);return 2}function qs(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!b)b=0;else{c=qc[(fa(da(a|0,4,0,0)|0|0,127|0)|0)&127](a,b)|0;do if((c|0)==0?(d=b+4|0,((da(d|0,4,0,0)|0)&16384|0)==0):0){if(qs(a,da(b+12|0,4,0,0)|0|0)|0){b=2;break a}if(qs(a,da(b+16|0,4,0,0)|0|0)|0){b=2;break a}b=b+20|0;if(!((da(d|0,4,0,0)|0)&2048))if(!(ku(a,da(b|0,4,0,0)|0|0)|0))break;else{b=2;break a}else if(!(ju(a,da(b|0,4,0,0)|0|0)|0))break;else{b=2;break a}}while(0);b=c&2}while(0);return b|0}function rs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;do if(b)if(!c)d=b;else{if((lu(b)|0)==0?(lu(c)|0)==0:0){d=lh(a,48,0)|0;if(d){e=d+0|0;f=e+48|0;do{ea(e>>0|0,0|0,1,0);e=e+1|0}while((e|0)<(f|0));ea(d>>0|0,72|0,1,0);ea(d+34|0,-1|0,2,0);ea(d+24|0,1|0,4,0)}ss(a,d,b,c);break}Fk(a,b);Fk(a,c);d=mr(a,132,20616,0)|0}else d=c;while(0);return d|0}function ss(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!b){Fk(a,c);Fk(a,d)}else{if(d){ea(b+16|0,d|0,4,0);a=b+4|0;ea(a|0,da(a|0,4,0,0)|0|(da(d+4|0,4,0,0)|0)&2097408|0,4,0)}if(c){ea(b+12|0,c|0,4,0);a=b+4|0;ea(a|0,da(a|0,4,0,0)|0|(da(c+4|0,4,0,0)|0)&2097408|0,4,0)}Ht(b)}return}function ts(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=b<<16>>16;h=(f<<2)+63&-8;i=f<<1;j=i+2|0;g=(f+7+i+j&-8)+h|0;e=g+c|0;c=lh(a,e,((e|0)<0)<<31>>31)|0;if(c){ew(c|0,0,e|0)|0;ea(c+32|0,c+56|0,4,0);ea(c+8|0,c+h|0,4,0);e=h+j|0;ea(c+4|0,c+e|0,4,0);ea(c+28|0,c+(e+i)|0,4,0);ea(c+48|0,b|0,2,0);ea(c+46|0,f+65535|0,2,0);ea(d|0,c+g|0,4,0)}return c|0}function us(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();q=w;m=da(b+12|0,4,0,0)|0|0;l=a+68|0;t=da(l|0,4,0,0)|0|0;v=t+1|0;ea(l|0,t+2|0,4,0);k=da(a|0,4,0,0)|0|0;g=da(b+24|0,4,0,0)|0|0;a:do if(g){e=da(k+20|0,4,0,0)|0|0;if((e|0)>0){d=da(k+16|0,4,0,0)|0|0;h=0;while(1){f=h+1|0;if((da(d+(h<<4)+12|0,4,0,0)|0|0)==(g|0)){f=h;break a}if((f|0)<(e|0))h=f;else break}}else f=0}else f=-1e6;while(0);if((Rq(a,27,da(b|0,4,0,0)|0|0,0,da((da(k+16|0,4,0,0)|0|0)+(f<<4)|0,4,0,0)|0|0)|0)==0?(fs(a,f,da(m+32|0,4,0,0)|0|0,1,da(m|0,4,0,0)|0|0),u=Nq(a)|0,(u|0)!=0):0){if((c|0)>-1)n=c;else n=da(b+40|0,4,0,0)|0|0;r=gs(a,b)|0;s=da(l|0,4,0,0)|0|0;ea(l|0,s+1|0,4,0);p=b+46|0;e=da(p|0,2,0,1)|0|0;if(r)ea(r|0,(da(r|0,4,0,0)|0|0)+1|0,4,0);wh(u,vh(u,58,s,0,e)|0,r,-6);Pq(a,t,f,m,54);k=vh(u,108,t,0,0)|0;e=a+19|0;d=da(e>>0|0,1,0,0)|0|0;if(!(d<<24>>24)){m=a+72|0;o=(da(m|0,4,0,0)|0|0)+1|0;ea(m|0,o|0,4,0)}else{o=d+-1<<24>>24;ea(e>>0|0,o|0,1,0);o=da(a+((o&255)<<2)+24|0,4,0,0)|0|0}Ot(a,b,t,o,0,q,0,0)|0;vh(u,109,s,o,0)|0;Pt(a,da(q|0,4,0,0)|0|0);vh(u,9,t,k+1|0,0)|0;m=u+32|0;h=da(m|0,4,0,0)|0|0;if(h>>>0>k>>>0)ea((da(u+4|0,4,0,0)|0|0)+(k*20|0)+8|0,h|0,4,0);g=u+24|0;ea((da(g|0,4,0,0)|0|0)+88|0,h+-1|0,4,0);if((c|0)<0)vh(u,118,n,f,0)|0;wh(u,vh(u,55,v,n,f)|0,r,-6);l=u+4|0;e=da(l|0,4,0,0)|0|0;if(e)ea(e+(((da(m|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,(c>>31)+4&252|1|0,1,0);k=vh(u,106,s,0,0)|0;e=da(m|0,4,0,0)|0|0;if((da(b+50>>0|0,1,0,0)|0|0)!=0&(r|0)!=0){h=e+3|0;vh(u,16,0,h,0)|0;e=da(m|0,4,0,0)|0|0;n=da(p|0,2,0,1)|0|0;wh(u,vh(u,99,s,h,o)|0,n,-14);mu(a,2,b)}vh(u,100,s,o,v)|0;vh(u,110,v,o,1)|0;d=da(l|0,4,0,0)|0|0;if(d)ea(d+(((da(m|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,16|0,1,0);Zr(a,o);vh(u,5,s,e,0)|0;d=da(m|0,4,0,0)|0|0;if(d>>>0>k>>>0)ea((da(l|0,4,0,0)|0|0)+(k*20|0)+8|0,d|0,4,0);ea((da(g|0,4,0,0)|0|0)+88|0,d+-1|0,4,0);vh(u,61,t,0,0)|0;vh(u,61,v,0,0)|0;vh(u,61,s,0,0)|0}i=w;return}function vs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;l=da(a|0,4,0,0)|0|0;if(!c){c=Xn(l,b,d,0)|0;if(!c)h=4;else h=3}else h=3;if((h|0)==3)if(!(da(c+12|0,4,0,0)|0))h=4;else h=14;if((h|0)==4){f=b&255;e=l+224|0;if(da(e|0,4,0,0)|0){g=jh(l,d)|0;if(g){pc[(fa(da(e|0,4,0,0)|0|0,15|0)|0)&15](da(l+232|0,4,0,0)|0|0,l,f,g);lg(l,g);h=7}}else h=7;if((h|0)==7?(k=l+228|0,(da(k|0,4,0,0)|0|0)!=0):0){e=lh(l,40,0)|0;if(!e)e=0;else{g=e+0|0;f=g+40|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(f|0));ea(e+8|0,1|0,2,0);ea(e+32|0,l|0,4,0);Wg(e,d,-1,1,0)|0}c=Rg(e,2)|0;if(c)pc[(fa(da(k|0,4,0,0)|0|0,15|0)|0)&15](da(l+232|0,4,0,0)|0|0,l,da(l+62>>0|0,1,0,1)|0|0,c);Lh(e)}c=Xn(l,b,d,0)|0;if(!c)h=19;else h=14}a:do if((h|0)==14)if(!(da(c+12|0,4,0,0)|0)){f=da(c|0,4,0,0)|0|0;g=0;while(1){e=Xn(l,da(26816+g>>0|0,1,0,0)|0|0,f,0)|0;g=g+1|0;if(da(e+12|0,4,0,0)|0)break;if((g|0)>=3){h=19;break a}}ea(c+0|0,da(e+0|0,4,0,0)|0|0,4,0);ea(c+4|0,da(e+4|0,4,0,0)|0|0,4,0);ea(c+8|0,da(e+8|0,4,0,0)|0|0,4,0);ea(c+12|0,da(e+12|0,4,0,0)|0|0,4,0);ea(c+16|0,0|0,4,0)}while(0);if((h|0)==19){ea(m|0,d|0,4,0);sh(a,26784,m);c=0}i=n;return c|0}function ws(a){a=a|0;var b=0,c=0;a=da(a+24|0,4,0,0)|0|0;c=a+108|0;b=da(c|0,4,0,0)|0|0;ea(c|0,b+1|0,4,0);if(!(b+-1&b)){c=a+112|0;a=Vl(da(a|0,4,0,0)|0|0,da(c|0,4,0,0)|0|0,b<<3|4,0)|0;ea(c|0,a|0,4,0)}else a=da(a+112|0,4,0,0)|0|0;if(a)ea(a+(b<<2)|0,-1|0,4,0);return ~b|0}function xs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;if(b){d=da(b|0,4,0,0)|0|0;if((d|0)>0){e=(d*72|0)+8|0;d=e;e=((e|0)<0)<<31>>31}else{d=80;e=0}d=lh(a,d,e)|0;if(d){e=da(b|0,4,0,0)|0|0;ea(d+4|0,e|0,4,0);ea(d|0,e|0,4,0);if((da(b|0,4,0,0)|0|0)>0){e=d+8|0;g=0;do{ea(e+(g*72|0)|0,da(b+(g*72|0)+8|0,4,0,0)|0|0,4,0);ea(e+(g*72|0)+4|0,jh(a,da(b+(g*72|0)+12|0,4,0,0)|0|0)|0|0,4,0);ea(e+(g*72|0)+8|0,jh(a,da(b+(g*72|0)+16|0,4,0,0)|0|0)|0|0,4,0);ea(e+(g*72|0)+12|0,jh(a,da(b+(g*72|0)+20|0,4,0,0)|0|0)|0|0,4,0);ea(e+(g*72|0)+36>>0|0,da(b+(g*72|0)+44>>0|0,1,0,0)|0|0|0,1,0);ea(e+(g*72|0)+40|0,da(b+(g*72|0)+48|0,4,0,0)|0|0,4,0);ea(e+(g*72|0)+24|0,da(b+(g*72|0)+32|0,4,0,0)|0|0,4,0);ea(e+(g*72|0)+28|0,da(b+(g*72|0)+36|0,4,0,0)|0|0,4,0);f=b+(g*72|0)+45|0;h=e+(g*72|0)+37|0;i=(da(h>>0|0,1,0,0)|0)&-3|(da(f>>0|0,1,0,0)|0)&2;ea(h>>0|0,i|0,1,0);i=i&-5|(da(f>>0|0,1,0,0)|0)&4;ea(h>>0|0,i|0,1,0);ea(h>>0|0,i&-9|(da(f>>0|0,1,0,0)|0)&8|0,1,0);ea(e+(g*72|0)+64|0,jh(a,da(b+(g*72|0)+72|0,4,0,0)|0|0)|0|0,4,0);ea(h>>0|0,(da(h>>0|0,1,0,0)|0)&-2|(da(f>>0|0,1,0,0)|0)&1|0,1,0);ea(e+(g*72|0)+68|0,da(b+(g*72|0)+76|0,4,0,0)|0|0,4,0);f=da(b+(g*72|0)+24|0,4,0,0)|0|0;ea(e+(g*72|0)+16|0,f|0,4,0);if(f){f=f+40|0;ea(f|0,(da(f|0,2,0,0)|0|0)+1<<16>>16|0,2,0)}ea(e+(g*72|0)+20|0,fr(a,da(b+(g*72|0)+28|0,4,0,0)|0|0,c)|0|0,4,0);ea(e+(g*72|0)+44|0,Lr(a,da(b+(g*72|0)+52|0,4,0,0)|0|0,c,0)|0|0,4,0);ea(e+(g*72|0)+48|0,Mr(a,da(b+(g*72|0)+56|0,4,0,0)|0|0)|0|0,4,0);i=b+(g*72|0)+64|0;f=da(i+4|0,4,0,0)|0|0;h=e+(g*72|0)+56|0;ea(h|0,da(i|0,4,0,0)|0|0,4,0);ea(h+4|0,f|0,4,0);g=g+1|0}while((g|0)<(da(b|0,4,0,0)|0|0))}}else d=0}else d=0;return d|0}function ys(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Nq(a)|0;if((c|0)==2){i=da(a+408|0,4,0,0)|0|0;ea(((i|0)==0?a:i)+21>>0|0,1|0,1,0)}wh(g,vh(g,24,b,c,0)|0,d,e<<24>>24);if(f<<24>>24!=0?(h=da(g+4|0,4,0,0)|0|0,(h|0)!=0):0)ea(h+(((da(g+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,f|0,1,0);return}function zs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=da((da((da(a|0,4,0,0)|0|0)+16|0,4,0,0)|0|0)+28|0,4,0,0)|0|0;do if(!(da(a+438>>0|0,1,0,0)|0)){f=da(b+68|0,4,0,0)|0|0;if((c|0)!=(f|0)?(d=da(c+48|0,4,0,0)|0|0,(d|0)!=0):0){e=b+64|0;c=0;while(1){a=da(d+8|0,4,0,0)|0|0;if((da(a+24|0,4,0,0)|0|0)==(f|0)?(cd(da(a+4|0,4,0,0)|0|0,da(b|0,4,0,0)|0|0)|0)==0:0){if(!c)c=da(e|0,4,0,0)|0|0;ea(a+32|0,c|0,4,0)}else a=c;d=da(d|0,4,0,0)|0|0;if(!d)break;else c=a}if(a)break}a=da(b+64|0,4,0,0)|0|0}else a=0;while(0);return a|0}function As(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=da(b+32|0,4,0,0)|0|0;j=b+8|0;h=b+68|0;e=0;while(1){f=(e|0)==0;b=f|(i|0)<(e|0)?i:0;c=da(j|0,4,0,0)|0|0;if(!c)g=b;else{do{d=da(c+40|0,4,0,0)|0|0;b=(f|(d|0)<(e|0))&(d|0)>(b|0)?d:b;c=da(c+20|0,4,0,0)|0|0}while((c|0)!=0);g=b}if(!g)break;b=da(a|0,4,0,0)|0|0;e=da(h|0,4,0,0)|0|0;a:do if(e){f=da(b+20|0,4,0,0)|0|0;if((f|0)>0){c=da(b+16|0,4,0,0)|0|0;d=0;while(1){b=d+1|0;if((da(c+(d<<4)+12|0,4,0,0)|0|0)==(e|0)){b=d;break a}if((b|0)<(f|0))d=b;else break}}else b=0}else b=-1e6;while(0);Dr(a,g,b);e=g}return}function Bs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(c=da(b|0,4,0,0)|0|0,(c|0)>0):0){g=a+68|0;e=0;f=b+8|0;while(1){d=f+40|0;if((da(d|0,4,0,0)|0|0)>-1)break a;h=da(g|0,4,0,0)|0|0;ea(g|0,h+1|0,4,0);ea(d|0,h|0,4,0);d=da(f+20|0,4,0,0)|0|0;if(d){Bs(a,da(d+32|0,4,0,0)|0|0);c=da(b|0,4,0,0)|0|0}e=e+1|0;if((e|0)>=(c|0))break;else f=f+72|0}}while(0);return}function Cs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))ba();h=k;if(((b|0)!=0?(g=(da(a|0,4,0,0)|0|0)+65|0,(da(g>>0|0,1,0,0)|0|0)==0):0)?(e=b+6|0,d=da(e|0,2,0,0)|0|0,(d&32)==0):0){ea(h+0|0,0|0,4,0);ea(h+4|0,0|0,4,0);ea(h+8|0,0|0,4,0);ea(h+12|0,0|0,4,0);ea(h+16|0,0|0,4,0);ea(h+20|0,0|0,4,0);ea(h+24|0,0|0,4,0);ea(h|0,84|0,4,0);ea(h+12|0,a|0,4,0);f=h+4|0;if(da(a+22>>0|0,1,0,0)|0){ea(f|0,85|0,4,0);ju(h,b)|0;d=da(e|0,2,0,0)|0|0}ea(f|0,86|0,4,0);if(!(d&256))ea(h+8|0,9|0,4,0);ju(h,b)|0;d=a+64|0;if((((da(d|0,4,0,0)|0|0)==0?(da(g>>0|0,1,0,0)|0|0)==0:0)?(ea(h+0|0,0|0,4,0),ea(h+4|0,0|0,4,0),ea(h+8|0,0|0,4,0),ea(h+12|0,0|0,4,0),ea(h+16|0,0|0,4,0),ea(h+20|0,0|0,4,0),ea(h|0,82|0,4,0),ea(h+4|0,83|0,4,0),ea(h+12|0,a|0,4,0),ea(h+24|0,c|0,4,0),ju(h,b)|0,(da(d|0,4,0,0)|0|0)==0):0)?(da(g>>0|0,1,0,0)|0|0)==0:0){ea(h+0|0,0|0,4,0);ea(h+4|0,0|0,4,0);ea(h+8|0,0|0,4,0);ea(h+12|0,0|0,4,0);ea(h+16|0,0|0,4,0);ea(h+20|0,0|0,4,0);ea(h+24|0,0|0,4,0);ea(h+8|0,10|0,4,0);ea(h|0,84|0,4,0);ea(h+12|0,a|0,4,0);ju(h,b)|0}}i=k;return}function Ds(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(a)do{c=da(a+36|0,4,0,0)|0|0;if((c|0)!=0?(g=da(c+24|0,4,0,0)|0|0,(g|0)>(da(b|0,4,0,0)|0|0)):0)ea(b|0,g|0,4,0);c=da(a+44|0,4,0,0)|0|0;if((c|0)!=0?(d=da(c+24|0,4,0,0)|0|0,(d|0)>(da(b|0,4,0,0)|0|0)):0)ea(b|0,d|0,4,0);c=da(a+60|0,4,0,0)|0|0;if((c|0)!=0?(e=da(c+24|0,4,0,0)|0|0,(e|0)>(da(b|0,4,0,0)|0|0)):0)ea(b|0,e|0,4,0);c=da(a+64|0,4,0,0)|0|0;if((c|0)!=0?(f=da(c+24|0,4,0,0)|0|0,(f|0)>(da(b|0,4,0,0)|0|0)):0)ea(b|0,f|0,4,0);su(da(a|0,4,0,0)|0|0,b);su(da(a+40|0,4,0,0)|0|0,b);su(da(a+48|0,4,0,0)|0|0,b);a=da(a+52|0,4,0,0)|0|0}while((a|0)!=0);return}function Es(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;e=da(b|0,4,0,0)|0|0;f=e+c|0;if(f>>>0>(da(b+4|0,4,0,0)|0|0)>>>0){g=qo(a,b,(f*72|0)+8|0,0)|0;if(g){do if(!a)b=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](g)|0;else{if((da(a+276|0,4,0,0)|0|0)>>>0<=g>>>0?(da(a+280|0,4,0,0)|0|0)>>>0>g>>>0:0){b=da(a+248|0,2,0,1)|0|0;break}b=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](g)|0}while(0);ea(g+4|0,(((b+-80|0)>>>0)/72|0)+1|0,4,0);b=g;e=da(g|0,4,0,0)|0|0;h=10}}else h=10;if((h|0)==10){if((e|0)>(d|0)){do{e=e+-1|0;f=b+((e+c|0)*72|0)+8|0;a=b+(e*72|0)+8|0;g=f+72|0;do{ea(f|0,da(a|0,4,0,0)|0|0,4,0);f=f+4|0;a=a+4|0}while((f|0)<(g|0))}while((e|0)>(d|0));e=da(b|0,4,0,0)|0|0}ea(b|0,e+c|0,4,0);ew(b+(d*72|0)+8|0,0,c*72|0)|0;e=d+c|0;if((c|0)>0)do{ea(b+(d*72|0)+48|0,-1|0,4,0);d=d+1|0}while((d|0)<(e|0))}return b|0}function Fs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;if((b|0)!=0?(da(b|0,4,0,0)|0|0)>0:0){e=b+4|0;f=da(e|0,4,0,0)|0|0;g=0;do{h=Gs(a,da(f+(g*20|0)|0,4,0,0)|0|0,c,d)|0;f=da(e|0,4,0,0)|0|0;ea(f+(g*20|0)|0,h|0,4,0);g=g+1|0}while((g|0)<(da(b|0,4,0,0)|0|0))}return}function Gs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;do if(b){if((da(b>>0|0,1,0,0)|0|0)==-102?(da(b+28|0,4,0,0)|0|0)==(c|0):0){e=da(b+32|0,2,0,0)|0|0;if(e<<16>>16<0){ea(b>>0|0,101|0,1,0);break}else{e=Lr(a,da((da(d+4|0,4,0,0)|0|0)+((e<<16>>16)*20|0)|0,4,0,0)|0|0,0,0)|0;Fk(a,b);b=e;break}}e=b+12|0;ea(e|0,Gs(a,da(e|0,4,0,0)|0|0,c,d)|0|0,4,0);e=b+16|0;ea(e|0,Gs(a,da(e|0,4,0,0)|0|0,c,d)|0|0,4,0);e=b+20|0;if(!((da(b+4|0,4,0,0)|0)&2048)){Fs(a,da(e|0,4,0,0)|0|0,c,d);break}else{tu(a,da(e|0,4,0,0)|0|0,c,d);break}}else b=0;while(0);return b|0}function Hs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=da(da(b|0,4,0,0)|0|0,4,0,0)|0|0;d=b;f=1;while(1){b=da(d+52|0,4,0,0)|0|0;if(!b){e=5;break}if((da(da(b|0,4,0,0)|0|0,4,0,0)|0|0)==(e|0)){d=b;f=f+1|0}else{e=3;break}}a:do if((e|0)==3){Is(a,b);b=1}else if((e|0)==5)if(!d)b=0;else{g=((f|0)<0)<<31>>31;e=0;while(1){h=d+52|0;ea(h|0,0|0,4,0);b=hr(a,d,c)|0;ea(h|0,e|0,4,0);if(b)break a;b=d+24|0;ea(b|0,f|0,4,0);ea(b+4|0,g|0,4,0);b=da(d+56|0,4,0,0)|0|0;if(!b){b=0;break a}d=b;e=da(b+52|0,4,0,0)|0|0}}while(0);return b|0}function Is(a,b){a=a|0;b=b|0;var c=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();c=d;if(!((da(b+6|0,2,0,0)|0)&128)){b=da(b+4>>0|0,1,0,1)|0|0;if((b|0)==116)b=35320;else if((b|0)==118)b=35336;else if((b|0)==117)b=35352;else b=35360;ea(c|0,b|0,4,0);sh(a,35232,c)}else sh(a,35184,c);i=d;return}function Js(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;A=i;i=i+32|0;if((i|0)>=(j|0))ba();r=A;e=da(b+32|0,4,0,0)|0|0;h=da(da(b|0,4,0,0)|0|0,4,0,0)|0|0;o=da(a+8|0,4,0,0)|0|0;p=b+52|0;q=da(p|0,4,0,0)|0|0;if(!(Rq(a,33,0,0,0)|0)){s=ws(o)|0;Ns(a,b,s);t=b+60|0;u=da(t|0,4,0,0)|0|0;v=b+64|0;w=da(v|0,4,0,0)|0|0;x=b+8|0;l=da(x|0,4,0,0)|0|0;y=b+12|0;m=da(y|0,4,0,0)|0|0;ea(v|0,0|0,4,0);ea(t|0,0|0,4,0);ea(y|0,0|0,4,0);ea(x|0,0|0,4,0);x=b+48|0;y=da(x|0,4,0,0)|0|0;f=da(e|0,4,0,0)|0|0;a:do if((f|0)>0){g=0;while(1){if((da(e+(g*72|0)+45>>0|0,1,0,0)|0)&8)break;g=g+1|0;if((g|0)>=(f|0)){k=0;break a}}k=da(e+(g*72|0)+48|0,4,0,0)|0|0}else k=0;while(0);g=a+68|0;e=da(g|0,4,0,0)|0|0;f=e+1|0;ea(g|0,f|0,4,0);d=(y|0)!=0;if((da(b+4>>0|0,1,0,0)|0|0)==115){ea(g|0,e+2|0,4,0);g=d?8:6}else{g=d?7:5;f=0}ea(r>>0|0,g|0,1,0);ea(r+4|0,e|0,4,0);ea(r+1>>0|0,0|0,1,0);ea(r+8|0,0|0,4,0);ea(r+12|0,0|0,4,0);B=a+72|0;g=(da(B|0,4,0,0)|0|0)+1|0;ea(B|0,g|0,4,0);vh(o,60,k,g,h)|0;if(d){h=uu(a,b)|0;wh(o,vh(o,57,e,(da(y|0,4,0,0)|0|0)+2|0,0)|0,h,-6);ea(r+16|0,y|0,4,0)}else vh(o,57,e,h,0)|0;if(f){ea(b+16|0,vh(o,57,f,0,0)|0|0,4,0);f=b+6|0;ea(f|0,da(f|0,2,0,1)|0|8|0,2,0)}ea(x|0,0|0,4,0);h=q+56|0;ea(h|0,0|0,4,0);f=hr(a,q,r)|0;ea(h|0,b|0,4,0);if(!f){h=vh(o,108,e,s,0)|0;vh(o,104,k,0,0)|0;if(d)vh(o,47,e,(da(y|0,4,0,0)|0|0)+1|0,g)|0;else vh(o,102,e,g,0)|0;vh(o,95,e,0,0)|0;f=ws(o)|0;ht(o,m,f);Os(a,b,da(b|0,4,0,0)|0|0,k,0,0,c,f,s);if(l)vh(o,140,l,s,0)|0;d=o+24|0;g=da(d|0,4,0,0)|0|0;e=~f;if((f|0)<0?(n=da(g+112|0,4,0,0)|0|0,(n|0)!=0):0)ea(n+(e<<2)|0,da(o+32|0,4,0,0)|0|0,4,0);f=o+32|0;ea(g+88|0,(da(f|0,4,0,0)|0|0)+-1|0,4,0);ea(p|0,0|0,4,0);hr(a,b,r)|0;ea(p|0,q|0,4,0);vh(o,16,0,h,0)|0;d=da(d|0,4,0,0)|0|0;e=~s;if((s|0)<0?(z=da(d+112|0,4,0,0)|0|0,(z|0)!=0):0)ea(z+(e<<2)|0,da(f|0,4,0,0)|0|0,4,0);ea(d+88|0,(da(f|0,4,0,0)|0|0)+-1|0,4,0)}Mk(da(a|0,4,0,0)|0|0,da(x|0,4,0,0)|0|0);ea(x|0,y|0,4,0);ea(t|0,u|0,4,0);ea(v|0,w|0,4,0)}i=A;return}function Ks(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;S=i;i=i+48|0;if((i|0)>=(j|0))ba();m=S+40|0;o=S+20|0;F=S;O=da(a|0,4,0,0)|0|0;L=da(a+8|0,4,0,0)|0|0;N=ws(L)|0;K=ws(L)|0;P=b+4|0;G=da(P>>0|0,1,0,0)|0|0;Q=b+52|0;R=da(Q|0,4,0,0)|0|0;p=b+48|0;f=da(p|0,4,0,0)|0|0;e=da(f|0,4,0,0)|0|0;I=G<<24>>24==116;a:do if(!I?(k=O+65|0,(da(k>>0|0,1,0,0)|0|0)==0):0){g=m+4|0;l=1;while(1){if((l|0)>(da(da(b|0,4,0,0)|0|0,4,0,0)|0|0)){H=e;n=14;break a}b:do if((e|0)>0){d=0;h=da(f+4|0,4,0,0)|0|0;while(1){if((da(h+16|0,2,0,1)|0|0)==(l|0))break b;d=d+1|0;if((d|0)<(e|0))h=h+20|0;else break}}else d=0;while(0);if((d|0)==(e|0)){ea(m|0,0|0,4,0);ea(g|0,0|0,4,0);d=mr(O,132,m,0)|0;if(!d){d=7;break a}A=d+4|0;ea(A|0,da(A|0,4,0,0)|0|1024|0,4,0);ea(d+8|0,l|0,4,0);d=kr(a,f,d)|0;if(!d)d=0;else{ea((da(d+4|0,4,0,0)|0|0)+(e*20|0)+16|0,l|0,2,0);e=e+1|0}}else d=f;if(!(da(k>>0|0,1,0,0)|0)){l=l+1|0;f=d}else{H=e;f=d;n=14;break}}}else{H=e;n=14}while(0);if((n|0)==14){E=lh(O,H<<2,0)|0;if(!E)B=0;else{if((H|0)>0){e=0;d=da(f+4|0,4,0,0)|0|0;while(1){ea(E+(e<<2)|0,(da(d+16|0,2,0,1)|0|0)+-1|0,4,0);e=e+1|0;if((e|0)==(H|0))break;else d=d+20|0}}B=uu(a,b)|0}ea(p|0,f|0,4,0);k=R+48|0;ea(k|0,Or(da(a|0,4,0,0)|0|0,f,0)|0|0,4,0);if(!I){f=da(da(b|0,4,0,0)|0|0,4,0,0)|0|0;A=a+72|0;e=da(A|0,4,0,0)|0|0;h=e+1|0;ea(A|0,f+1+e|0,4,0);vh(L,25,0,h,0)|0;e=Qs(O,f,1)|0;if(e)if((f|0)>0){d=e+16|0;g=0;do{ea(e+(g<<2)+20|0,Rs(a,b,g)|0|0,4,0);ea((da(d|0,4,0,0)|0|0)+g>>0|0,0|0,1,0);g=g+1|0}while((g|0)!=(f|0));d=e}else d=e;else d=0}else{d=0;h=0}ea(Q|0,0|0,4,0);D=R+56|0;ea(D|0,0|0,4,0);vu(a,b,da(p|0,4,0,0)|0|0,26880)|0;if(!(da(R+52|0,4,0,0)|0))vu(a,R,da(k|0,4,0,0)|0|0,26880)|0;Ns(a,b,N);g=b+8|0;e=da(g|0,4,0,0)|0|0;k=a+72|0;if((e|0)!=0&I){n=da(k|0,4,0,0)|0|0;l=n+1|0;n=n+2|0;ea(k|0,n|0,4,0);A=da(b+12|0,4,0,0)|0|0;vh(L,33,(A|0)==0?e:A+1|0,l,0)|0;vh(L,33,l,n,0)|0}else{l=0;n=0}s=b+60|0;Fk(O,da(s|0,4,0,0)|0|0);ea(s|0,0|0,4,0);s=b+64|0;Fk(O,da(s|0,4,0,0)|0|0);ea(s|0,0|0,4,0);s=da(k|0,4,0,0)|0|0;t=s+1|0;u=s+2|0;q=s+3|0;s=s+4|0;ea(k|0,s|0,4,0);ea(o>>0|0,13|0,1,0);ea(o+4|0,t|0,4,0);ea(o+1>>0|0,0|0,1,0);w=o+8|0;ea(w|0,0|0,4,0);ea(o+12|0,0|0,4,0);ea(F>>0|0,13|0,1,0);ea(F+4|0,u|0,4,0);ea(F+1>>0|0,0|0,1,0);x=F+8|0;ea(x|0,0|0,4,0);ea(F+12|0,0|0,4,0);z=L+32|0;m=vh(L,20,t,0,(da(z|0,4,0,0)|0|0)+1|0)|0;ea(R+8|0,l|0,4,0);k=a+468|0;A=da(k|0,4,0,0)|0|0;hr(a,R,o)|0;vh(L,21,t,0,0)|0;l=da(z|0,4,0,0)|0|0;if(l>>>0>m>>>0)ea((da(L+4|0,4,0,0)|0|0)+(m*20|0)+8|0,l|0,4,0);v=L+24|0;ea((da(v|0,4,0,0)|0|0)+88|0,l+-1|0,4,0);r=vh(L,20,u,0,l+1|0)|0;f=da(g|0,4,0,0)|0|0;p=b+12|0;e=da(p|0,4,0,0)|0|0;ea(g|0,n|0,4,0);ea(p|0,0|0,4,0);y=da(k|0,4,0,0)|0|0;hr(a,b,F)|0;ea(g|0,f|0,4,0);ea(p|0,e|0,4,0);vh(L,21,u,0,0)|0;e=wu(a,b,o,c,q,h,d,N)|0;p=(G+-115&255)<2;if(p)o=wu(a,b,F,c,s,h,d,N)|0;else o=0;if((d|0)!=0?(f=(da(d|0,4,0,0)|0|0)+-1|0,ea(d|0,f|0,4,0),(f|0)==0):0)Vc(d);f=G<<24>>24==118;if((G+-117&255)<2){h=N;d=N}else{h=vh(L,17,s,o,0)|0;d=vh(L,22,u,N,0)|0;vh(L,16,0,h,0)|0;k=R+24|0;g=b+24|0;l=g;k=iw(da(l|0,4,0,0)|0|0,da(l+4|0,4,0,0)|0|0,da(k|0,4,0,0)|0|0,da(k+4|0,4,0,0)|0|0)|0;ea(g|0,k|0,4,0);ea(g+4|0,C|0,4,0)}if(f){n=b+24|0;m=n;g=da(m+4|0,4,0,0)|0|0;k=R+24|0;l=da(k|0,4,0,0)|0|0;k=da(k+4|0,4,0,0)|0|0;if(g>>>0>k>>>0|((g|0)==(k|0)?(da(m|0,4,0,0)|0|0)>>>0>l>>>0:0)){g=n;ea(g|0,l|0,4,0);ea(g+4|0,k|0,4,0);g=h}else g=h}else{g=vh(L,17,q,e,0)|0;vh(L,22,t,N,0)|0;vh(L,16,0,g,0)|0}m=vh(L,17,q,e,0)|0;vh(L,22,t,h,0)|0;vh(L,16,0,K,0)|0;do if(!I)if(f){n=m;m=m+1|0;break}else{n=vh(L,22,t,h,0)|0;vh(L,16,0,K,0)|0;break}else n=m;while(0);l=da(z|0,4,0,0)|0|0;if(p)vh(L,17,s,o,0)|0;vh(L,22,u,g,0)|0;vh(L,16,0,K,0)|0;k=da(z|0,4,0,0)|0|0;if(k>>>0>r>>>0)ea((da(L+4|0,4,0,0)|0|0)+(r*20|0)+8|0,k|0,4,0);ea((da(v|0,4,0,0)|0|0)+88|0,k+-1|0,4,0);vh(L,22,t,d,0)|0;vh(L,22,u,g,0)|0;g=da(v|0,4,0,0)|0|0;f=~K;if((K|0)<0?(J=da(g+112|0,4,0,0)|0|0,(J|0)!=0):0)ea(J+(f<<2)|0,da(z|0,4,0,0)|0|0,4,0);ea(g+88|0,(da(z|0,4,0,0)|0|0)+-1|0,4,0);wh(L,vh(L,41,0,0,0)|0,E,-15);wh(L,vh(L,42,da(w|0,4,0,0)|0|0,da(x|0,4,0,0)|0|0,H)|0,B,-6);e=da(L+4|0,4,0,0)|0|0;if(e)ea(e+(((da(z|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,1|0,1,0);vh(L,43,m,n,l)|0;e=da(v|0,4,0,0)|0|0;d=~N;if((N|0)<0?(M=da(e+112|0,4,0,0)|0|0,(M|0)!=0):0)ea(M+(d<<2)|0,da(z|0,4,0,0)|0|0,4,0);ea(e+88|0,(da(z|0,4,0,0)|0|0)+-1|0,4,0);if((da(c>>0|0,1,0,0)|0|0)==9){d=R;while(1){e=da(d+52|0,4,0,0)|0|0;if(!e)break;else d=e}Ms(a,0,da(d|0,4,0,0)|0|0)}d=da(Q|0,4,0,0)|0|0;if(d)Lk(O,d,1);ea(Q|0,R|0,4,0);ea(D|0,b|0,4,0);Ps(a,da(P>>0|0,1,0,1)|0|0,A,y,0);d=0}i=S;return d|0}function Ls(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();d=e;do if(!((da(a+4|0,4,0,0)|0)&1024)){c=da(a>>0|0,1,0,1)|0|0;if((c|0)==158){c=Ls(da(a+12|0,4,0,0)|0|0,b)|0;break}else if((c|0)!=157){c=0;break}if(!(Ls(da(a+12|0,4,0,0)|0|0,d)|0))c=0;else{ea(b|0,0-(da(d|0,4,0,0)|0|0)|0,4,0);c=1}}else{ea(b|0,da(a+8|0,4,0,0)|0|0,4,0);c=1}while(0);i=e;return c|0}function Ms(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+32|0;if((i|0)>=(j|0))ba();w=x;v=a+8|0;s=da(v|0,4,0,0)|0|0;t=da(a|0,4,0,0)|0|0;if(((da(a+450>>0|0,1,0,0)|0|0)==0?(f=a+16|0,!((da(f>>0|0,1,0,0)|0|0)!=0|(s|0)==0)):0)?(da(t+65>>0|0,1,0,0)|0|0)==0:0){ea(f>>0|0,1|0,1,0);f=da(t+24|0,4,0,0)|0|0;r=(f&32|0)==0;hq(s,da(c|0,4,0,0)|0|0);e=da(c|0,4,0,0)|0|0;if((e|0)>0){q=c+4|0;p=(b|0)==0;m=(f&96|0)==0;n=(b|0)!=0;o=0;do{l=da(q|0,4,0,0)|0|0;e=da(l+(o*20|0)|0,4,0,0)|0|0;do if(e){f=da(l+(o*20|0)+4|0,4,0,0)|0|0;if(f){iq(s,o,0,f,-1);break}f=da(e>>0|0,1,0,0)|0|0;if(f<<24>>24==-102){if(p)u=25}else if(!(f<<24>>24==-100&n))u=25;if((u|0)==25){u=0;f=da(l+(o*20|0)+8|0,4,0,0)|0|0;if(!f){ea(w|0,o+1|0,4,0);f=th(t,34880,w)|0}else f=jh(t,f)|0;iq(s,o,0,f,75);break}k=da(e+32|0,2,0,0)|0|0;f=k<<16>>16;h=da(b|0,4,0,0)|0|0;a:do if((h|0)>0){d=da(e+28|0,4,0,0)|0|0;g=0;while(1){e=g+1|0;if((da(b+(g*72|0)+48|0,4,0,0)|0|0)==(d|0)){e=g;break a}if((e|0)<(h|0))g=e;else break}}else e=0;while(0);e=da(b+(e*72|0)+24|0,4,0,0)|0|0;if(k<<16>>16<0)f=da(e+36|0,2,0,0)|0|0;if((f|0)<0)f=20456;else f=da((da(e+4|0,4,0,0)|0|0)+(f*24|0)|0,4,0,0)|0|0;if(m){iq(s,o,0,jh(t,da(l+(o*20|0)+8|0,4,0,0)|0|0)|0,75);break}if(r){iq(s,o,0,f,-1);break}else{ea(w|0,da(e|0,4,0,0)|0|0,4,0);ea(w+4|0,f|0,4,0);iq(s,o,0,th(t,27824,w)|0,75);break}}while(0);o=o+1|0;e=da(c|0,4,0,0)|0|0}while((o|0)<(e|0))}f=da(v|0,4,0,0)|0|0;ea(w+4|0,b|0,4,0);ea(w|0,a|0,4,0);if((e|0)>0){d=c+4|0;e=0;do{iq(f,e,1,xu(w,da((da(d|0,4,0,0)|0|0)+(e*20|0)|0,4,0,0)|0|0,0)|0,-1);e=e+1|0}while((e|0)<(da(c|0,4,0,0)|0|0))}}i=x;return}function Ns(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();e=n;g=b+8|0;if((da(g|0,4,0,0)|0|0)==0?($s(a),f=b+60|0,(da(f|0,4,0,0)|0|0)!=0):0){k=a+72|0;l=(da(k|0,4,0,0)|0|0)+1|0;ea(k|0,l|0,4,0);ea(g|0,l|0,4,0);m=Nq(a)|0;do if(Ls(da(f|0,4,0,0)|0|0,e)|0){g=da(e|0,4,0,0)|0|0;vh(m,25,g,l,0)|0;if(!g){vh(m,16,0,c,0)|0;break}if((g|0)>-1?(h=b+24|0,e=h,c=da(e+4|0,4,0,0)|0|0,d=((g|0)<0)<<31>>31,c>>>0>d>>>0|((c|0)==(d|0)?(da(e|0,4,0,0)|0|0)>>>0>g>>>0:0)):0){c=h;ea(c|0,g|0,4,0);ea(c+4|0,d|0,4,0)}}else{Qq(a,da(f|0,4,0,0)|0|0,l);vh(m,38,l,0,0)|0;vh(m,46,l,c,0)|0}while(0);e=da(b+64|0,4,0,0)|0|0;if(e){h=da(k|0,4,0,0)|0|0;c=h+1|0;ea(b+12|0,c|0,4,0);ea(k|0,h+2|0,4,0);Qq(a,e,c);vh(m,38,c,0,0)|0;e=vh(m,137,c,0,0)|0;vh(m,25,0,c,0)|0;f=m+32|0;d=da(f|0,4,0,0)|0|0;if(d>>>0>e>>>0)ea((da(m+4|0,4,0,0)|0|0)+(e*20|0)+8|0,d|0,4,0);g=m+24|0;ea((da(g|0,4,0,0)|0|0)+88|0,d+-1|0,4,0);d=h+2|0;vh(m,89,l,c,d)|0;e=vh(m,137,l,0,0)|0;vh(m,25,-1,d,0)|0;d=da(f|0,4,0,0)|0|0;if(d>>>0>e>>>0)ea((da(m+4|0,4,0,0)|0|0)+(e*20|0)+8|0,d|0,4,0);ea((da(g|0,4,0,0)|0|0)+88|0,d+-1|0,4,0)}}i=n;return}function Os(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;B=da(a+8|0,4,0,0)|0|0;w=da(g>>0|0,1,0,0)|0|0;q=w&255;s=g+4|0;z=da(s|0,4,0,0)|0|0;if(!f)j=0;else j=da(f+1>>0|0,1,0,1)|0|0;if(!e)A=0;else A=(da(e|0,4,0,0)|0|0)==0?0:e;v=(A|0)!=0;r=(j|0)!=0;if(!(v|r))ht(B,da(b+12|0,4,0,0)|0|0,h);x=da(c|0,4,0,0)|0|0;m=g+8|0;e=da(m|0,4,0,0)|0|0;if(e){l=a+72|0;k=da(l|0,4,0,0)|0|0;if((e+x|0)>(k|0)){ea(l|0,k+x|0,4,0);y=e;t=0}else{y=e;t=0}}else{if(v){k=(((da(A+24>>0|0,1,0,0)|0)&1^1)&255)+(da(da(A|0,4,0,0)|0|0,4,0,0)|0|0)|0;y=a+72|0;l=k+(da(y|0,4,0,0)|0|0)|0;ea(y|0,l|0,4,0)}else{l=da(a+72|0,4,0,0)|0|0;k=0}y=l+1|0;ea(m|0,y|0,4,0);ea(a+72|0,l+x|0,4,0);t=k}ea(g+12|0,x|0,4,0);do if((d|0)>-1){if((x|0)>0){l=0;do{vh(B,47,d,l,l+y|0)|0;l=l+1|0}while((l|0)!=(x|0))}}else{if(w<<24>>24==3)break;else if(w<<24>>24==9)k=1;else k=w<<24>>24==13&1;at(a,c,y,k)}while(0);if(r){k=da(f+1>>0|0,1,0,1)|0|0;if((k|0)==1)yh(B,da(f+8|0,4,0,0)|0|0);else if((k|0)==2){d=a+72|0;k=da(d|0,4,0,0)|0|0;p=k+1|0;ea(d|0,k+x|0,4,0);k=f+8|0;yh(B,da(k|0,4,0,0)|0|0);k=da(k|0,4,0,0)|0|0;if((k|0)<0)k=(da(B+32|0,4,0,0)|0|0)+-1|0;if(!(da((da(B|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))k=(da(B+4|0,4,0,0)|0|0)+(k*20|0)|0;else k=29120;ea(k>>0|0,28|0,1,0);ea(k+4|0,1|0,4,0);ea(k+8|0,p|0,4,0);d=B+32|0;e=(da(d|0,4,0,0)|0|0)+x|0;if((x|0)>0){l=c+4|0;k=x+-1|0;m=B+4|0;o=0;do{r=bu(a,da((da(l|0,4,0,0)|0|0)+(o*20|0)|0,4,0,0)|0|0)|0;f=o+y|0;j=o+p|0;if((o|0)<(k|0))vh(B,78,f,e,j)|0;else vh(B,79,f,h,j)|0;wh(B,-1,r,-4);n=da(m|0,4,0,0)|0|0;if(n)ea(n+(((da(d|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-128|0,1,0);o=o+1|0}while((o|0)!=(x|0))}else k=x+-1|0;vh(B,33,y,p,k)|0}else yu(a,da(f+4|0,4,0,0)|0|0,h,x,y);if(!A)ht(B,da(b+12|0,4,0,0)|0|0,h)}a:do switch(q|0){case 7:case 8:{n=da(g+16|0,4,0,0)|0|0;d=da(n|0,4,0,0)|0|0;j=a+19|0;f=da(j>>0|0,1,0,0)|0|0;if(!(f<<24>>24)){v=a+72|0;o=(da(v|0,4,0,0)|0|0)+1|0;ea(v|0,o|0,4,0)}else{o=f+-1<<24>>24;ea(j>>0|0,o|0,1,0);o=da(a+((o&255)<<2)+24|0,4,0,0)|0|0}p=d+2|0;q=a+60|0;e=da(q|0,4,0,0)|0|0;r=a+56|0;j=da(r|0,4,0,0)|0|0;if((j|0)<(p|0)){v=a+72|0;e=da(v|0,4,0,0)|0|0;ea(v|0,e+p|0,4,0);e=e+1|0}else{ea(q|0,e+p|0,4,0);ea(r|0,j-p|0,4,0)}m=e+d|0;k=m+1|0;if(w<<24>>24==8){j=z+1|0;f=vh(B,69,j,0,y)|0;wh(B,f,x,-14);vh(B,49,y,x,k)|0;vh(B,110,j,k,0)|0;j=da(B+4|0,4,0,0)|0|0;if(!j)l=f;else{ea(j+(((da(B+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,16|0,1,0);l=f}}else{vh(B,49,y,x,k)|0;l=0}if((d|0)>0){k=n+4|0;j=y+-1|0;f=0;do{vh(B,34,j+(da((da(k|0,4,0,0)|0|0)+(f*20|0)+16|0,2,0,1)|0|0)|0,f+e|0,0)|0;f=f+1|0}while((f|0)!=(d|0))}vh(B,73,z,m,0)|0;vh(B,49,e,p,o)|0;vh(B,110,z,o,0)|0;if(l){j=da(B+32|0,4,0,0)|0|0;if(j>>>0>l>>>0)ea((da(B+4|0,4,0,0)|0|0)+(l*20|0)+8|0,j|0,4,0);ea((da(B+24|0,4,0,0)|0|0)+88|0,j+-1|0,4,0)}Zr(a,o);ct(a,e,p);if((da(r|0,4,0,0)|0|0)<(p|0)){ea(r|0,p|0,4,0);ea(q|0,e|0,4,0);u=94}else u=94;break}case 2:{vh(B,111,z,y,x)|0;u=94;break}case 3:{vh(B,25,1,z,0)|0;u=94;break}case 12:case 14:case 6:case 5:{l=t+1|0;k=a+60|0;e=da(k|0,4,0,0)|0|0;m=a+56|0;j=da(m|0,4,0,0)|0|0;if((j|0)<(l|0)){u=a+72|0;e=da(u|0,4,0,0)|0|0;ea(u|0,e+l|0,4,0);e=e+1|0}else{ea(k|0,e+l|0,4,0);ea(m|0,j-l|0,4,0)}j=e+t|0;vh(B,49,y,x,j)|0;if(w<<24>>24==6){y=z+1|0;wh(B,vh(B,69,y,(da(B+32|0,4,0,0)|0|0)+4|0,e)|0,0,-14);vh(B,110,y,e,0)|0}if(v)zu(a,A,b,j,1,t);else{j=a+19|0;f=da(j>>0|0,1,0,0)|0|0;if(!(f<<24>>24)){y=a+72|0;f=(da(y|0,4,0,0)|0|0)+1|0;ea(y|0,f|0,4,0)}else{f=f+-1<<24>>24;ea(j>>0|0,f|0,1,0);f=da(a+((f&255)<<2)+24|0,4,0,0)|0|0}vh(B,74,z,f,0)|0;vh(B,75,z,e,f)|0;j=da(B+4|0,4,0,0)|0|0;if(j)ea(j+(((da(B+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,8|0,1,0);Zr(a,f)}ct(a,e,l);if((da(m|0,4,0,0)|0|0)<(l|0)){ea(m|0,l|0,4,0);ea(k|0,e|0,4,0);u=94}else u=94;break}case 10:{if(v)zu(a,A,b,y,1,t);else u=95;break}case 9:case 13:{if(v){zu(a,A,b,y,x,t);break a}if(w<<24>>24==13){vh(B,22,da(s|0,4,0,0)|0|0,0,0)|0;u=95;break a}else{vh(B,35,y,x,0)|0;ct(a,y,x);u=94;break a}}case 1:{j=a+19|0;f=da(j>>0|0,1,0,0)|0|0;if(!(f<<24>>24)){w=a+72|0;f=(da(w|0,4,0,0)|0|0)+1|0;ea(w|0,f|0,4,0)}else{f=f+-1<<24>>24;ea(j>>0|0,f|0,1,0);f=da(a+((f&255)<<2)+24|0,4,0,0)|0|0}vh(B,49,y,x,f)|0;vh(B,110,z,f,0)|0;Zr(a,f);u=94;break}case 11:{e=g+1|0;ea(e>>0|0,Au(da(da(c+4|0,4,0,0)|0|0,4,0,0)|0|0,da(e>>0|0,1,0,0)|0|0)|0|0,1,0);if(v){zu(a,A,b,y,1,t);break a}f=a+19|0;j=da(f>>0|0,1,0,0)|0|0;if(!(j<<24>>24)){x=a+72|0;f=(da(x|0,4,0,0)|0|0)+1|0;ea(x|0,f|0,4,0)}else{x=j+-1<<24>>24;ea(f>>0|0,x|0,1,0);f=da(a+((x&255)<<2)+24|0,4,0,0)|0|0}wh(B,vh(B,49,y,1,f)|0,e,1);ct(a,y,1);vh(B,110,z,f,0)|0;Zr(a,f);u=94;break}default:u=94}while(0);if((u|0)==94?(A|0)==0:0)u=95;if((u|0)==95?(C=da(b+8|0,4,0,0)|0|0,(C|0)!=0):0)vh(B,140,C,i,0)|0;return}function Ps(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;if((da(a+450>>0|0,1,0,0)|0|0)==2){g=da(a+8|0,4,0,0)|0|0;h=da(a|0,4,0,0)|0|0;f=(e|0)!=0?35160:10360;if((b|0)==116)e=35320;else if((b|0)==118)e=35336;else if((b|0)==117)e=35352;else e=35360;ea(k|0,c|0,4,0);ea(k+4|0,d|0,4,0);ea(k+8|0,f|0,4,0);ea(k+12|0,e|0,4,0);e=th(h,35120,k)|0;wh(g,vh(g,157,da(a+464|0,4,0,0)|0|0,0,0)|0,e,-1)}i=l;return}function Qs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=c+b|0;e=(d*5|0)+24|0;f=pg(e,0)|0;if(!f)ea(a+65>>0|0,1|0,1,0);else{ew(f|0,0,e|0)|0;ea(f+16|0,f+20+(d<<2)|0,4,0);ea(f+6|0,b|0,2,0);ea(f+8|0,c|0,2,0);ea(f+4>>0|0,da(a+62>>0|0,1,0,0)|0|0|0,1,0);ea(f+12|0,a|0,4,0);ea(f|0,1|0,4,0)}return f|0}function Rs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=da(b+52|0,4,0,0)|0|0;if(!((e|0)!=0?(d=Rs(a,e,c)|0,(d|0)!=0):0)){d=da(b|0,4,0,0)|0|0;if((da(d|0,4,0,0)|0|0)>(c|0))d=bu(a,da((da(d+4|0,4,0,0)|0|0)+(c*20|0)|0,4,0,0)|0|0)|0;else d=0}return d|0}function Ss(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=(a|0)==0;d=(b|0)==0;a:do if(!(e&d))if(!(e|d)?(f=da(a|0,4,0,0)|0|0,(f|0)==(da(b|0,4,0,0)|0|0)):0)if((f|0)>0){a=da(a+4|0,4,0,0)|0|0;d=da(b+4|0,4,0,0)|0|0;e=0;while(1){if((da(a+(e*20|0)+12>>0|0,1,0,0)|0|0)!=(da(d+(e*20|0)+12>>0|0,1,0,0)|0|0)){d=1;break a}if(Bu(da(a+(e*20|0)|0,4,0,0)|0|0,da(d+(e*20|0)|0,4,0,0)|0|0,c)|0){d=1;break a}e=e+1|0;if((e|0)>=(f|0)){d=0;break}}}else d=0;else d=1;else d=0;while(0);return d|0}function Ts(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;e=da(a|0,4,0,0)|0|0;j=da(b|0,4,0,0)|0|0;i=Qs(e,j-c|0,d+1|0)|0;if((i|0)!=0&(j|0)>(c|0)){f=e+8|0;g=i+16|0;h=c;d=(da(b+4|0,4,0,0)|0|0)+(c*20|0)|0;while(1){e=bu(a,da(d|0,4,0,0)|0|0)|0;if(!e)e=da(f|0,4,0,0)|0|0;b=h-c|0;ea(i+(b<<2)+20|0,e|0,4,0);ea((da(g|0,4,0,0)|0|0)+b>>0|0,da(d+12>>0|0,1,0,0)|0|0|0,1,0);h=h+1|0;if((h|0)==(j|0))break;else d=d+20|0}}return i|0}function Us(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0;Ja=i;i=i+64|0;if((i|0)>=(j|0))ba();Ha=Ja;Ia=Ja+48|0;Ga=Ja+52|0;T=Ja+28|0;Ea=a+8|0;_=da(Ea|0,4,0,0)|0|0;Fa=da(a|0,4,0,0)|0|0;ea(T+0|0,0|0,4,0);ea(T+4|0,0|0,4,0);ea(T+8|0,0|0,4,0);ea(T+12|0,0|0,4,0);ea(T+16|0,0|0,4,0);if(!d)J=0;else J=(da(d|0,4,0,0)|0|0)>63?0:d;U=T+8|0;ea(U|0,J|0,4,0);X=Fa+60|0;if((da(X|0,2,0,0)|0)&32)f=f&64511;d=da(b|0,4,0,0)|0|0;a:do if((d|0)<=64){B=f&65535;K=(B&64|0)!=0;P=K?1:d;n=(P*80|0)+743&-16;h=n+72|0;d=lh(Fa,h,0)|0;Da=(d|0)==0;if(!Da)ew(d|0,0,h|0)|0;ua=Fa+65|0;if(da(ua>>0|0,1,0,0)|0){lg(Fa,d);d=0;break}Y=d+60|0;Z=d+64|0;ea(Z|0,-1|0,4,0);ea(Y|0,-1|0,4,0);va=d+41|0;ea(va>>0|0,P|0,1,0);ea(d|0,a|0,4,0);wa=d+4|0;ea(wa|0,b|0,4,0);W=d+8|0;ea(W|0,J|0,4,0);ea(d+12|0,e|0,4,0);ya=ws(_)|0;xa=d+48|0;ea(xa|0,ya|0,4,0);k=d+52|0;ea(k|0,ya|0,4,0);ya=d+34|0;ea(ya|0,f|0,2,0);za=a+424|0;Aa=d+56|0;ea(Aa|0,da(za|0,4,0,0)|0|0,4,0);Ba=d+68|0;ea(T|0,d|0,4,0);Ca=d+328|0;S=T+4|0;ea(S|0,Ca|0,4,0);N=T+12|0;ea(N|0,d+n|0,4,0);ea(d+(n+48)|0,d+(n+56)|0,4,0);ea(d+(n+40)|0,0|0,2,0);ea(d+(n+44)|0,3|0,2,0);ea(d+(n+36)|0,0|0,4,0);ea(Ba|0,0|0,4,0);ea(Ca|0,d|0,4,0);ea(d+332|0,0|0,4,0);sa=d+340|0;ea(sa|0,0|0,4,0);ea(d+344|0,8|0,4,0);ta=d+348|0;ea(ta|0,d+352|0,4,0);Cu(Ca,c,72);c=(P|0)==0;if((da(d+340|0,4,0,0)|0|0)>0){u=Ha+20|0;s=Ha+4|0;r=Ha+24|0;t=Ca;h=0;do{if(!c){t=da((da(t+20|0,4,0,0)|0|0)+(h*48|0)|0,4,0,0)|0|0;ea(Ha+0|0,0|0,4,0);ea(Ha+4|0,0|0,4,0);ea(Ha+8|0,0|0,4,0);ea(Ha+12|0,0|0,4,0);ea(Ha+16|0,0|0,4,0);ea(Ha+20|0,0|0,4,0);ea(u>>0|0,2|0,1,0);ea(Ha|0,78|0,4,0);ea(s|0,79|0,4,0);ea(r|0,0|0,4,0);qs(Ha,t)|0;t=da(S|0,4,0,0)|0|0;if(da(u>>0|0,1,0,0)|0)ra=15}else ra=15;if((ra|0)==15){ra=0;ft(a,da((da(t+20|0,4,0,0)|0|0)+(h*48|0)|0,4,0,0)|0|0,da(k|0,4,0,0)|0|0,16);t=da(S|0,4,0,0)|0|0;V=(da(t+20|0,4,0,0)|0|0)+(h*48|0)+20|0;ea(V|0,da(V|0,2,0,1)|0|4|0,2,0)}h=h+1|0}while((h|0)<(da(t+12|0,4,0,0)|0|0))}if(c){if(J)ea(d+36>>0|0,da(J|0,4,0,0)|0|0,1,0);if(B&1024)ea(d+40>>0|0,1|0,1,0)}if((da(b|0,4,0,0)|0|0)>0){n=0;do{V=da(b+(n*72|0)+48|0,4,0,0)|0|0;I=da(Ba|0,4,0,0)|0|0;ea(Ba|0,I+1|0,4,0);ea(Ba+(I<<2)+4|0,V|0,4,0);n=n+1|0}while((n|0)<(da(b|0,4,0,0)|0|0))}m=da(sa|0,4,0,0)|0|0;if((m|0)>0)do{m=m+-1|0;Du(Ca,m)}while((m|0)>0);b:do if(!(da(ua>>0|0,1,0,0)|0)){V=(B&1024|0)==0;c:do if(!V){d:do if((da(b|0,4,0,0)|0|0)==1){A=da(b+48|0,4,0,0)|0|0;h=da(b+24|0,4,0,0)|0|0;u=da(e|0,4,0,0)|0|0;e:do if((u|0)>0){s=da(e+4|0,4,0,0)|0|0;r=0;while(1){t=da(s+(r*20|0)|0,4,0,0)|0|0;f:do if(!t)t=0;else while(1){c=da(t+4|0,4,0,0)|0|0;if(!(c&4096))break f;if(!(c&262144))t=t+12|0;else t=da((da(t+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;t=da(t|0,4,0,0)|0|0;if(!t){t=0;break}}while(0);do if((da(t>>0|0,1,0,0)|0|0)==-102){if((da(t+28|0,4,0,0)|0|0)!=(A|0))break;if((da(t+32|0,2,0,0)|0|0)<0)break e}while(0);r=r+1|0;if((r|0)>=(u|0)){ra=41;break}}}else ra=41;while(0);g:do if((ra|0)==41){t=da(h+8|0,4,0,0)|0|0;if(!t)break d;l=e+4|0;k=h+4|0;while(1){if(da(t+50>>0|0,1,0,0)|0){x=t+46|0;h:do if(!(da(x|0,2,0,0)|0))c=0;else{z=t+4|0;y=t+32|0;c=0;do{w=da((da(z|0,4,0,0)|0|0)+(c<<1)|0,2,0,0)|0|0;if(!(Eu(Ca,A,w,-1,-1,2,t)|0)){h=da((da(y|0,4,0,0)|0|0)+(c<<2)|0,4,0,0)|0|0;if((da(e|0,4,0,0)|0|0)>0)u=0;else break h;i:while(1){v=da((da(l|0,4,0,0)|0|0)+(u*20|0)|0,4,0,0)|0|0;j:do if(!v)s=0;else{s=v;while(1){r=da(s+4|0,4,0,0)|0|0;if(!(r&4096))break j;if(!(r&262144))s=s+12|0;else s=da((da(s+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;s=da(s|0,4,0,0)|0|0;if(!s){s=0;break}}}while(0);do if((da(s>>0|0,1,0,0)|0|0)==-102){if((da(s+32|0,2,0,0)|0|0)!=(da((da(z|0,4,0,0)|0|0)+(c<<1)|0,2,0,0)|0|0))break;if((da(s+28|0,4,0,0)|0|0)!=(A|0))break;s=bu(a,v)|0;if(!s)break;if(!(cd(da(s|0,4,0,0)|0|0,h)|0))break i}while(0);u=u+1|0;if((u|0)>=(da(e|0,4,0,0)|0|0))break h}if((u|0)<0)break h;if(!(da((da(k|0,4,0,0)|0|0)+(w*24|0)+20>>0|0,1,0,0)|0))break h}c=c+1|0}while((c|0)<(da(x|0,2,0,1)|0|0))}while(0);if((c|0)==(da(x|0,2,0,1)|0|0))break g}t=da(t+20|0,4,0,0)|0|0;if(!t)break d}}while(0);ea(d+40>>0|0,1|0,1,0);break c}while(0);if(!J){ea(ya|0,da(ya|0,2,0,1)|0|512|0,2,0);ea(W|0,e|0,4,0)}}while(0);k:do if((((P|0)==1?(R=da(T|0,4,0,0)|0|0,Q=R+34|0,((da(Q|0,2,0,0)|0)&32)==0):0)?(M=da(R+4|0,4,0,0)|0|0,H=da(M+24|0,4,0,0)|0|0,((da(H+44>>0|0,1,0,0)|0)&16)==0):0)?(da(M+72|0,4,0,0)|0|0)==0:0){J=da(M+48|0,4,0,0)|0|0;v=R+328|0;I=da(N|0,4,0,0)|0|0;A=I+36|0;ea(A|0,0|0,4,0);ea(I+42|0,0|0,2,0);q=Eu(v,J,-1,0,0,2,0)|0;l:do if(!q){r=da(H+8|0,4,0,0)|0|0;m:do if(r){s=I+48|0;n:while(1){do if(da(r+50>>0|0,1,0,0)|0){if(da(r+36|0,4,0,0)|0)break;t=r+46|0;c=da(t|0,2,0,0)|0|0;if((c&65535)>3)break;k=r+4|0;o:do if(!(c<<16>>16)){c=0;u=0}else{u=0;while(1){c=Eu(v,J,da((da(k|0,4,0,0)|0|0)+(u<<1)|0,2,0,0)|0|0,0,0,2,r)|0;if(!c)break;ea((da(s|0,4,0,0)|0|0)+(u<<2)|0,c|0,4,0);u=u+1|0;c=da(t|0,2,0,0)|0|0;if((u|0)>=(c&65535|0))break o}c=da(t|0,2,0,0)|0|0}while(0);if((u|0)==(c&65535|0)){l=u;break n}}while(0);r=da(r+20|0,4,0,0)|0|0;if(!r)break m}ea(A|0,4609|0,4,0);if(!((da(r+51>>0|0,1,0,0)|0)&32)){s=M+64|0;t=da(s|0,4,0,0)|0|0;s=da(s+4|0,4,0,0)|0|0;h=0;q=0;c=da(r+48|0,2,0,1)|0|0;p:while(1){u=c;while(1){c=u+-1|0;if((u|0)<=0)break p;u=da((da(k|0,4,0,0)|0|0)+(c<<1)|0,2,0,0)|0|0;if((u&65535)<63)break;else u=c}T=hw(1,0,u<<16>>16|0)|0;h=T|h;q=C|q}if((t&~h|0)==0&(s&~q|0)==0)ra=91}else ra=91;if((ra|0)==91)ea(A|0,4673|0,4,0);T=l&65535;ea(I+40|0,T|0,2,0);ea(I+24|0,T|0,2,0);ea(I+28|0,r|0,4,0);ea(I+20|0,39|0,2,0);break l}while(0);if(!(da(A|0,4,0,0)|0)){ra=103;break k}}else{ea(A|0,4353|0,4,0);ea(da(I+48|0,4,0,0)|0|0,q|0,4,0);ea(I+40|0,1|0,2,0);ea(I+24|0,1|0,2,0);ea(I+20|0,33|0,2,0)}while(0);ea(I+22|0,1|0,2,0);ea(R+800|0,I|0,4,0);l=da(R+68|0,4,0,0)|0|0;q:do if((l|0)>0){m=0;while(1){if((da(R+(m<<2)+72|0,4,0,0)|0|0)==(J|0))break;m=m+1|0;if((m|0)>=(l|0)){m=0;l=0;break q}}m=hw(1,0,m|0)|0;l=C}else{m=0;l=0}while(0);k=I+8|0;ea(k|0,m|0,4,0);ea(k+4|0,l|0,4,0);ea(R+740|0,J|0,4,0);ea(R+32|0,1|0,2,0);k=da(R+8|0,4,0,0)|0|0;if(k)ea(R+36>>0|0,da(k|0,4,0,0)|0|0,1,0);if(!((da(Q|0,2,0,0)|0)&1024)){ra=120;break}ea(R+40>>0|0,1|0,1,0);ra=120}else ra=103;while(0);if((ra|0)==103){x=da(T|0,4,0,0)|0|0;c=da(x+4|0,4,0,0)|0|0;y=da(da(x|0,4,0,0)|0|0,4,0,0)|0|0;R=da(x+41>>0|0,1,0,0)|0|0;z=R&255;r=da(N|0,4,0,0)|0|0;ea(r+48|0,r+56|0,4,0);ea(r+40|0,0|0,2,0);ea(r+44|0,3|0,2,0);ea(r+36|0,0|0,4,0);h=y+65|0;r:do if(R<<24>>24){k=r+16|0;l=x+68|0;m=r+8|0;n=0;o=0;p=0;q=0;w=0;v=c+8|0;s=0;while(1){ea(k>>0|0,w|0,1,0);u=da(v+40|0,4,0,0)|0|0;t=da(l|0,4,0,0)|0|0;s:do if((t|0)>0){c=0;while(1){if((da(x+(c<<2)+72|0,4,0,0)|0|0)==(u|0))break;c=c+1|0;if((c|0)>=(t|0)){c=0;u=0;break s}}c=hw(1,0,c|0)|0;u=C}else{c=0;u=0}while(0);R=m;ea(R|0,c|0,4,0);ea(R+4|0,u|0,4,0);R=s;s=da(v+36>>0|0,1,0,0)|0|0;R=((s|R)&10)==0;o=R?o:n;q=R?q:p;if(!((da((da(v+16|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&16))c=Gu(T,o,q)|0;else c=Fu(T,o,q)|0;if(c)break;R=Hu(T,o,q)|0;c=m;if(R)break;if(da(h>>0|0,1,0,0)|0)break r;w=w+1|0;if((w|0)>=(z|0))break r;else{n=da(c|0,4,0,0)|0|n;p=da(c+4|0,4,0,0)|0|p;v=v+72|0}}Iu(y,r);break b}while(0);Iu(y,r);Ju(d,0);if(da(ua>>0|0,1,0,0)|0)break;if(da(W|0,4,0,0)|0){Ju(d,(da(d+32|0,2,0,1)|0|0)+1&65535);if(!(da(ua>>0|0,1,0,0)|0))ra=120;else break}else ra=121}if((ra|0)==120?(da(W|0,4,0,0)|0|0)==0:0)ra=121;if((ra|0)==121?((da(Fa+24|0,4,0,0)|0)&131072|0)!=0:0){W=d+24|0;ea(W|0,-1|0,4,0);ea(W+4|0,-1|0,4,0)}if((da(a+64|0,4,0,0)|0|0)==0?(da(ua>>0|0,1,0,0)|0|0)==0:0){q=da(va>>0|0,1,0,0)|0|0;t:do if((q&255)>1&(e|0)!=0?((da(X|0,2,0,0)|0)&1024)==0:0){k=Ku(Ba,e)|0;l=C;h=da(U|0,4,0,0)|0|0;if(h){X=Ku(Ba,h)|0;k=X|k;l=C|l}u=d+736|0;c=da(wa|0,4,0,0)|0|0;t=da(S|0,4,0,0)|0|0;s=t+20|0;t=t+12|0;r=q;h=P;do{m=da(u+(((r&255)+-1|0)*80|0)+64|0,4,0,0)|0|0;if(!((da(c+((da(m+16>>0|0,1,0,1)|0|0)*72|0)+44>>0|0,1,0,0)|0)&8))break t;if(V?((da(m+36|0,4,0,0)|0)&4096|0)==0:0)break t;p=m+8|0;o=da(p|0,4,0,0)|0|0;p=da(p+4|0,4,0,0)|0|0;if(!((o&k|0)==0&(p&l|0)==0))break t;m=da(s|0,4,0,0)|0|0;X=da(t|0,4,0,0)|0|0;q=m+(X*48|0)|0;if((X|0)>0)do{n=m+40|0;if(!((o&(da(n|0,4,0,0)|0)|0)==0?(p&(da(n+4|0,4,0,0)|0)|0)==0:0)?((da((da(m|0,4,0,0)|0|0)+4|0,4,0,0)|0)&1|0)==0:0)break t;m=m+48|0}while(m>>>0<q>>>0);r=r+-1<<24>>24;ea(va>>0|0,r|0,1,0);h=h+-1|0}while((r&255)>1)}else h=P;while(0);X=(da(d|0,4,0,0)|0|0)+424|0;ea(X|0,(da(X|0,4,0,0)|0|0)+(da(d+32|0,2,0,0)|0|0)|0,4,0);do if((B&4|0)!=0?(O=(da(d+800|0,4,0,0)|0|0)+36|0,L=da(O|0,4,0,0)|0|0,(L&4096|0)!=0):0){ea(d+38>>0|0,1|0,1,0);if((da((da(b+24|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&32)break;ea(O|0,L&-65|0,4,0)}while(0);qa=d+736|0;J=(h|0)>0;if(J){G=B&16;H=d+38|0;I=_+32|0;D=K^1;F=(g|0)==0|D;E=a+68|0;A=54-(B>>>12&1)|0;w=_+4|0;v=Fa+20|0;n=Fa+16|0;o=0;B=qa;while(1){u=da(B+44>>0|0,1,0,1)|0|0;x=b+(u*72|0)+24|0;c=da(x|0,4,0,0)|0|0;t=da(c+68|0,4,0,0)|0|0;u:do if(!t)k=-1e6;else{s=da(v|0,4,0,0)|0|0;if((s|0)<=0){k=0;break}r=da(n|0,4,0,0)|0|0;l=0;while(1){k=l+1|0;if((da(r+(l<<4)+12|0,4,0,0)|0|0)==(t|0)){k=l;break u}if((k|0)<(s|0))l=k;else break}}while(0);z=da(B+64|0,4,0,0)|0|0;y=c+44|0;t=da(y>>0|0,1,0,1)|0|0;do if(!(t&2)){if(da(c+12|0,4,0,0)|0)break;s=da(z+36|0,4,0,0)|0|0;if(s&1024){q=da(c+60|0,4,0,0)|0|0;v:do if(!q)q=0;else while(1){if((da(q|0,4,0,0)|0|0)==(Fa|0))break v;q=da(q+24|0,4,0,0)|0|0;if(!q){q=0;break}}while(0);wh(_,vh(_,149,da(b+(u*72|0)+48|0,4,0,0)|0|0,0,0)|0,q,-10);break}if(t&16)break;if(s&64|G){fs(a,k,da(c+32|0,4,0,0)|0|0,0,da(c|0,4,0,0)|0|0);break}r=b+(u*72|0)+48|0;if(!(da(H>>0|0,1,0,0)|0))t=54;else{ea(Y|0,da(r|0,4,0,0)|0|0,4,0);t=55}Pq(a,da(r|0,4,0,0)|0|0,k,c,t);if(da(H>>0|0,1,0,0)|0)break;if((da(c+38|0,2,0,0)|0|0)>=64)break;if((da(y>>0|0,1,0,0)|0)&32)break;r=b+(u*72|0)+64|0;q=da(r|0,4,0,0)|0|0;r=da(r+4|0,4,0,0)|0|0;if((q|0)==0&(r|0)==0)q=0;else{c=q;q=0;do{c=lw(c|0,r|0,1)|0;r=C;q=q+1|0}while(!((c|0)==0&(r|0)==0))}wh(_,(da(I|0,4,0,0)|0|0)+-1|0,q,-14)}while(0);u=z+36|0;w:do if((da(u|0,4,0,0)|0)&512){c=da(z+28|0,4,0,0)|0|0;do if((da(y>>0|0,1,0,0)|0)&32){if(((da(c+51>>0|0,1,0,0)|0)&3)!=2|D)break;ea(B+8|0,da(B+4|0,4,0,0)|0|0,4,0);break w}while(0);do if(!(da(H>>0|0,1,0,0)|0)){if(!F){q=g;p=A;break}q=da(E|0,4,0,0)|0|0;ea(E|0,q+1|0,4,0);p=54}else{p=da((da(x|0,4,0,0)|0|0)+8|0,4,0,0)|0|0;if((p|0)==0|(p|0)==(c|0))q=g;else{q=g;do{q=q+1|0;p=da(p+20|0,4,0,0)|0|0}while(!((p|0)==0|(p|0)==(c|0)))}ea(Z|0,q|0,4,0);p=55}while(0);ea(B+8|0,q|0,4,0);vh(_,p,q,da(c+40|0,4,0,0)|0|0,k)|0;X=da(Ea|0,4,0,0)|0|0;wh(X,-1,gs(a,c)|0,-6);X=da(u|0,4,0,0)|0|0;if(!((X&15|0)!=0&(X&32770|0)==0))break;if((da(ya|0,2,0,0)|0)&1)break;m=da(w|0,4,0,0)|0|0;if(!m)break;ea(m+(((da(I|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,2|0,1,0)}while(0);if((k|0)>-1)zr(a,k);o=o+1|0;if((o|0)==(h|0))break;else B=B+80|0}Z=(da(ua>>0|0,1,0,0)|0|0)==0;ea(d+44|0,da(I|0,4,0,0)|0|0,4,0);if(!Z)break}else{I=_+32|0;ea(d+44|0,da(I|0,4,0,0)|0|0,4,0)}if(!J)break a;ca=d+24|0;fa=d+36|0;ga=d+39|0;ha=a+80|0;ia=a+68|0;ja=a+100|0;ka=a+19|0;la=a+72|0;ma=Ha+20|0;na=Ha+4|0;oa=Ha+24|0;l=-1;k=-1;pa=0;while(1){Q=qa+(pa*80|0)|0;t=qa+(pa*80|0)+64|0;S=qa+(pa*80|0)+44|0;if((da((da(t|0,4,0,0)|0|0)+36|0,4,0,0)|0)&16384){A=da(S>>0|0,1,0,1)|0|0;M=b+(A*72|0)+8|0;R=da(Ea|0,4,0,0)|0|0;p=Nq(a)|0;T=da(ha|0,4,0,0)|0|0;ea(ha|0,T+1|0,4,0);T=vh(p,44,T,0,0)|0;p=da(b+(A*72|0)+24|0,4,0,0)|0|0;Z=da(sa|0,4,0,0)|0|0;c=da(ta|0,4,0,0)|0|0;L=c+(Z*48|0)|0;D=da(t|0,4,0,0)|0|0;x:do if((Z|0)>0){r=b+(A*72|0)+48|0;n=p+4|0;o=D+48|0;u=0;t=0;x=0;m=0;s=c;w=0;while(1){c=da(s|0,4,0,0)|0|0;Z=D;do if((da(Z|0,4,0,0)|0|0)==0&(da(Z+4|0,4,0,0)|0|0)==0){if((da(s+20|0,2,0,0)|0)&2)break;if((da(c+4|0,4,0,0)|0)&1)break;Z=da(r|0,4,0,0)|0|0;ea(Ha+0|0,0|0,4,0);ea(Ha+4|0,0|0,4,0);ea(Ha+8|0,0|0,4,0);ea(Ha+12|0,0|0,4,0);ea(Ha+16|0,0|0,4,0);ea(Ha+20|0,0|0,4,0);ea(ma>>0|0,3|0,1,0);ea(Ha|0,78|0,4,0);ea(na|0,79|0,4,0);ea(oa|0,Z|0,4,0);qs(Ha,c)|0;if(!(da(ma>>0|0,1,0,0)|0))break;Z=da(a|0,4,0,0)|0|0;m=rs(Z,m,Lr(Z,c,0,0)|0)|0}while(0);do if(!(Lu(s,M,l,k)|0))c=x;else{v=da(s+12|0,4,0,0)|0|0;if((v|0)>63){z=0;y=-2147483648}else{z=hw(1,0,v|0)|0;y=C}if(!(w<<24>>24)){w=da((da(n|0,4,0,0)|0|0)+(v*24|0)|0,4,0,0)|0|0;ea(Ha|0,da(p|0,4,0,0)|0|0,4,0);ea(Ha+4|0,w|0,4,0);ad(284,33960,Ha);w=1}if(!((z&u|0)==0&(y&t|0)==0)){c=x;break}c=x+1|0;if(Mu(da(a|0,4,0,0)|0|0,D,c)|0)break x;ea((da(o|0,4,0,0)|0|0)+(x<<2)|0,s|0,4,0);u=z|u;t=y|t}while(0);s=s+48|0;if(s>>>0>=L>>>0){ra=207;break}else x=c}}else{t=0;u=0;c=0;m=0;ra=207}while(0);do if((ra|0)==207){ra=0;s=c&65535;ea(D+40|0,s|0,2,0);ea(D+24|0,s|0,2,0);s=D+36|0;ea(s|0,16961|0,4,0);q=b+(A*72|0)+64|0;E=q;y=da(E+4|0,4,0,0)|0|0;E=(da(E|0,4,0,0)|0)&~u;G=y&((t|-2147483648)^2147483647);o=p+38|0;H=da(o|0,2,0,0)|0|0;z=H<<16>>16;H=H<<16>>16>63?63:z;J=(H|0)>0;if(J){v=0;do{Z=hw(1,0,v|0)|0;c=(((Z&E|0)!=0|(C&G|0)!=0)&1)+c|0;v=v+1|0}while((v|0)!=(H|0))}if((y|0)<0)c=c+-63+z|0;F=c+1|0;n=ts(da(a|0,4,0,0)|0|0,F&65535,0,Ia)|0;if(!n)break;ea(D+28|0,n|0,4,0);ea(n|0,33992|0,4,0);ea(n+12|0,p|0,4,0);v=da(ta|0,4,0,0)|0|0;if(v>>>0<L>>>0){u=n+4|0;t=n+32|0;y=0;z=0;r=0;do{do if(Lu(v,M,l,k)|0){x=da(v+12|0,4,0,0)|0|0;if((x|0)>63){w=0;c=-2147483648}else{w=hw(1,0,x|0)|0;c=C}if(!((w&y|0)==0&(c&z|0)==0))break;Z=da(v|0,4,0,0)|0|0;ea((da(u|0,4,0,0)|0|0)+(r<<1)|0,x|0,2,0);x=Nu(a,da(Z+12|0,4,0,0)|0|0,da(Z+16|0,4,0,0)|0|0)|0;if(!x)x=11152;else x=da(x|0,4,0,0)|0|0;ea((da(t|0,4,0,0)|0|0)+(r<<2)|0,x|0,4,0);y=w|y;z=c|z;r=r+1|0}while(0);v=v+48|0}while(v>>>0<L>>>0)}else r=0;if(J){c=n+4|0;u=n+32|0;t=0;do{Z=hw(1,0,t|0)|0;if(!((Z&E|0)==0&(C&G|0)==0)){ea((da(c|0,4,0,0)|0|0)+(r<<1)|0,t|0,2,0);ea((da(u|0,4,0,0)|0|0)+(r<<2)|0,11152|0,4,0);r=r+1|0}t=t+1|0}while((t|0)!=(H|0))}do if((da(q+4|0,4,0,0)|0|0)<0){if((da(o|0,2,0,0)|0|0)<=63)break;c=n+4|0;u=n+32|0;t=63;do{ea((da(c|0,4,0,0)|0|0)+(r<<1)|0,t|0,2,0);ea((da(u|0,4,0,0)|0|0)+(r<<2)|0,11152|0,4,0);r=r+1|0;t=t+1|0}while((t|0)<(da(o|0,2,0,0)|0|0))}while(0);ea((da(n+4|0,4,0,0)|0|0)+(r<<1)|0,-1|0,2,0);ea((da(n+32|0,4,0,0)|0|0)+(r<<2)|0,11152|0,4,0);r=da(ia|0,4,0,0)|0|0;ea(ia|0,r+1|0,4,0);u=qa+(pa*80|0)+8|0;ea(u|0,r|0,4,0);vh(R,56,r,F,0)|0;r=da(Ea|0,4,0,0)|0|0;wh(r,-1,gs(a,n)|0,-6);ea(ja|0,(da(ja|0,4,0,0)|0|0)+1|0,4,0);r=qa+(pa*80|0)+4|0;v=vh(R,108,da(r|0,4,0,0)|0|0,0,0)|0;t=(m|0)!=0;if(t){Z=ws(R)|0;ft(a,m,Z,16);ea(s|0,da(s|0,4,0,0)|0|131072|0,4,0);s=Z}else s=0;c=da(ka>>0|0,1,0,0)|0|0;if(!(c<<24>>24)){o=(da(la|0,4,0,0)|0|0)+1|0;ea(la|0,o|0,4,0)}else{o=c+-1<<24>>24;ea(ka>>0|0,o|0,1,0);o=da(a+((o&255)<<2)+24|0,4,0,0)|0|0}Ot(a,n,da(r|0,4,0,0)|0|0,o,0,0,0,0)|0;vh(R,110,da(u|0,4,0,0)|0|0,o,0)|0;n=R+4|0;c=da(n|0,4,0,0)|0|0;if(c)ea(c+(((da(R+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,16|0,1,0);if(t){u=da(R+24|0,4,0,0)|0|0;t=~s;do if((s|0)<0){c=da(u+112|0,4,0,0)|0|0;if(!c)break;ea(c+(t<<2)|0,da(R+32|0,4,0,0)|0|0,4,0)}while(0);ea(u+88|0,(da(R+32|0,4,0,0)|0|0)+-1|0,4,0)}vh(R,9,da(r|0,4,0,0)|0|0,v+1|0,0)|0;t=da(n|0,4,0,0)|0|0;s=da(R+32|0,4,0,0)|0|0;if(t)ea(t+((s+-1|0)*20|0)+3>>0|0,3|0,1,0);if(s>>>0>v>>>0)ea(t+(v*20|0)+8|0,s|0,4,0);t=R+24|0;ea((da(t|0,4,0,0)|0|0)+88|0,s+-1|0,4,0);Zr(a,o);au(a);q=da(R+32|0,4,0,0)|0|0;if(q>>>0>T>>>0)ea((da(n|0,4,0,0)|0|0)+(T*20|0)+8|0,q|0,4,0);ea((da(t|0,4,0,0)|0|0)+88|0,q+-1|0,4,0)}while(0);Fk(da(a|0,4,0,0)|0|0,m);if(da(ua>>0|0,1,0,0)|0)break b}Ou(a,b,Q,pa,da(S>>0|0,1,0,1)|0|0,f);ea(qa+(pa*80|0)+32|0,da(I|0,4,0,0)|0|0,4,0);aa=da(d|0,4,0,0)|0|0;F=aa+8|0;Y=da(F|0,4,0,0)|0|0;_=da(aa|0,4,0,0)|0|0;m=d+(pa*80|0)+736|0;E=da(d+(pa*80|0)+800|0,4,0,0)|0|0;W=d+(pa*80|0)+780|0;y=da(W>>0|0,1,0,1)|0|0;z=da(wa|0,4,0,0)|0|0;H=z+(y*72|0)+8|0;g=da(z+(y*72|0)+48|0,4,0,0)|0|0;u=da(Ba|0,4,0,0)|0|0;y:do if((u|0)>0){c=0;while(1){if((da(Ba+(c<<2)+4|0,4,0,0)|0|0)==(g|0))break;c=c+1|0;if((c|0)>=(u|0)){c=-1;u=-1;break y}}c=hw(1,0,c|0)|0;c=~c;u=~C}else{c=-1;u=-1}while(0);$=d+(pa*80|0)+808|0;G=$;ea(G|0,c&l|0,4,0);ea(G+4|0,u&k|0,4,0);G=ca;G=lw(da(G|0,4,0,0)|0|0,da(G+4|0,4,0,0)|0|0,pa|0)|0;V=G&1;P=E+36|0;if(!((da(P|0,4,0,0)|0)&64))K=0;else K=((da(ya|0,2,0,0)|0)&32)==0;x=ws(Y)|0;J=d+(pa*80|0)+752|0;ea(J|0,x|0,4,0);X=d+(pa*80|0)+748|0;ea(X|0,x|0,4,0);Z=ws(Y)|0;ea(d+(pa*80|0)+760|0,Z|0,4,0);do if(da(W>>0|0,1,0,0)|0){if(!((da(z+(y*72|0)+44>>0|0,1,0,0)|0)&8))break;U=aa+72|0;e=(da(U|0,4,0,0)|0|0)+1|0;ea(U|0,e|0,4,0);ea(m|0,e|0,4,0);vh(Y,25,0,e,0)|0}while(0);v=da(z+(y*72|0)+45>>0|0,1,0,0)|0|0;z:do if(!(v&4)){w=da(P|0,4,0,0)|0|0;if(w&1024){r=da(E+40|0,2,0,0)|0|0;n=r&65535;p=aa+100|0;ea(p|0,(da(p|0,4,0,0)|0|0)+1|0,4,0);p=n+2|0;q=aa+60|0;c=da(q|0,4,0,0)|0|0;A=aa+56|0;u=da(A|0,4,0,0)|0|0;if((u|0)<(p|0)){W=aa+72|0;o=da(W|0,4,0,0)|0|0;ea(W|0,o+p|0,4,0);o=o+1|0}else{ea(q|0,c+p|0,4,0);ea(A|0,u-p|0,4,0);o=c}t=da(X|0,4,0,0)|0|0;w=r<<16>>16==0;if(!w){y=o+2|0;x=E+48|0;z=0;do{v=y+z|0;c=da((da(x|0,4,0,0)|0|0)+(z<<2)|0,4,0,0)|0|0;do if(c)if(!((da(c+18|0,2,0,0)|0)&1)){Qq(aa,da((da(c|0,4,0,0)|0|0)+16|0,4,0,0)|0|0,v);break}else{Pu(aa,c,m,z,V,v)|0;t=da(J|0,4,0,0)|0|0;break}while(0);z=z+1|0}while((z|0)<(n|0))}vh(Y,25,da(E+24|0,4,0,0)|0|0,o,0)|0;vh(Y,25,n,o+1|0,0)|0;c=da(E+32|0,4,0,0)|0|0;u=E+28|0;X=(da(u>>0|0,1,0,0)|0|0)!=0?-11:-2;wh(Y,vh(Y,14,g,t,o)|0,c,X);ea(u>>0|0,0|0,1,0);if(!w){s=E+30|0;t=E+48|0;c=(r&65535)>1?0-n|0:-1;c=c>>>0>4294967280?0-c|0:16;u=0;do{if((da(s|0,2,0,1)|0)&1<<u)Qu(m,da((da(t|0,4,0,0)|0|0)+(u<<2)|0,4,0,0)|0|0);u=u+1|0}while((u|0)!=(c|0))}ea(d+(pa*80|0)+781>>0|0,-105|0,1,0);ea(d+(pa*80|0)+784|0,g|0,4,0);ea(d+(pa*80|0)+788|0,da(Y+32|0,4,0,0)|0|0,4,0);ct(aa,o,p);if((da(A|0,4,0,0)|0|0)<(p|0)){ea(A|0,p|0,4,0);ea(q|0,o|0,4,0)}au(aa);ra=459;break}if(!((w&256|0)==0|(w&5|0)==0)){q=da(da(E+48|0,4,0,0)|0|0,4,0,0)|0|0;X=aa+72|0;r=(da(X|0,4,0,0)|0|0)+1|0;ea(X|0,r|0,4,0);q=Pu(aa,q,m,0,V,r)|0;if((q|0)!=(r|0))Zr(aa,r);ra=da(J|0,4,0,0)|0|0;vh(Y,38,q,ra,0)|0;vh(Y,70,g,ra,q)|0;ct(aa,q,1);Ru(aa,g,-1,q);ea(d+(pa*80|0)+781>>0|0,-100|0,1,0);ra=459;break}if((w&258|0)==258){if(!(w&32)){c=0;t=0}else{c=1;t=da(da(E+48|0,4,0,0)|0|0,4,0,0)|0|0}if(!(w&16))c=0;else c=da((da(E+48|0,4,0,0)|0|0)+(c<<2)|0,4,0,0)|0|0;u=(V|0)!=0;s=u?t:c;c=u?c:t;if(!c)vh(Y,u?105:108,g,x,0)|0;else{W=da(c|0,4,0,0)|0|0;X=_t(aa,da(W+16|0,4,0,0)|0|0,Ha)|0;vh(Y,da(33536+((da(W>>0|0,1,0,1)|0|0)+-80)>>0|0,1,0,1)|0|0,g,x,X)|0;ct(aa,X,1);Zr(aa,da(Ha|0,4,0,0)|0|0);Qu(m,c)}if(!s){t=0;c=156}else{X=da(s|0,4,0,0)|0|0;W=aa+72|0;t=(da(W|0,4,0,0)|0|0)+1|0;ea(W|0,t|0,4,0);Qq(aa,da(X+16|0,4,0,0)|0|0,t);X=da(X>>0|0,1,0,0)|0|0;if(X<<24>>24==80|X<<24>>24==82)c=V<<1^83;else c=V<<1|80;Qu(m,s)}u=Y+32|0;X=da(u|0,4,0,0)|0|0;ea(d+(pa*80|0)+781>>0|0,V^9|0,1,0);ea(d+(pa*80|0)+784|0,g|0,4,0);ea(d+(pa*80|0)+788|0,X|0,4,0);if((c|0)==156){ra=459;break}X=aa+72|0;q=(da(X|0,4,0,0)|0|0)+1|0;ea(X|0,q|0,4,0);vh(Y,103,g,q,0)|0;Ru(aa,g,-1,q);vh(Y,c,t,x,q)|0;q=da(Y+4|0,4,0,0)|0|0;if(!q){ra=459;break}ea(q+(((da(u|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,83|0,1,0);ra=459;break}if(w&512){F=da(E+24|0,2,0,0)|0|0;ea(Ga>>0|0,0|0,1,0);N=da(E+28|0,4,0,0)|0|0;Q=da(d+(pa*80|0)+744|0,4,0,0)|0|0;do if(!((da(ya|0,2,0,0)|0)&1)){y=0;v=0}else{if((da(fa>>0|0,1,0,0)|0|0)<=0){y=0;v=0;break}v=(da(N+46|0,2,0,1)|0|0)>(F&65535);y=v&1;v=v&1}while(0);c=F&65535;if(!(w&32)){z=c;A=0}else{z=c+1|0;v=1;A=da((da(E+48|0,4,0,0)|0|0)+(c<<2)|0,4,0,0)|0|0}do if(!(w&16))t=0;else{t=da((da(E+48|0,4,0,0)|0|0)+(z<<2)|0,4,0,0)|0|0;if((da(t+20|0,2,0,0)|0)&256){W=aa+72|0;X=(da(W|0,4,0,0)|0|0)+1|0;ea(W|0,X|0,4,0);ea(d+(pa*80|0)+772|0,X|0,4,0);vh(Y,25,(da((da(N+28|0,4,0,0)|0|0)+c>>0|0,1,0,0)|0|0)==1^V,X,0)|0;ea(d+(pa*80|0)+776|0,da(Y+32|0,4,0,0)|0|0,4,0)}if(A){v=1;break}u=da((da(N+4|0,4,0,0)|0|0)+(c<<1)|0,2,0,0)|0|0;if(u<<16>>16<=-1){v=1;break}y=(da((da((da(N+12|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+((u<<16>>16)*24|0)+20>>0|0,1,0,0)|0|0)==0?1:y;v=1}while(0);D=Su(aa,m,V,v,Ia)|0;q=da(Ia|0,4,0,0)|0|0;s=(q|0)==0;if(!s)ea(Ga>>0|0,da(q+c>>0|0,1,0,0)|0|0|0,1,0);E=da(J|0,4,0,0)|0|0;w=da(N+46|0,2,0,0)|0|0;if((F&65535)<(w&65535)?!((da((da(N+28|0,4,0,0)|0|0)+c>>0|0,1,0,0)|0|0)==0^((G&1|0)!=0|0!=0)):0)ra=318;else if((V|0)!=0?w<<16>>16==F<<16>>16:0)ra=318;else{H=y;y=0;G=t;J=A}if((ra|0)==318){H=0;G=A;J=t}v=(J|0)!=0;if(v)w=((da(J+18|0,2,0,0)|0)&40)!=0;else w=1;x=w&1;A=(G|0)!=0;if(A)z=((da(G+18|0,2,0,0)|0)&40)!=0;else z=1;u=z&1;z=(v|F<<16>>16!=0)&1;do if(v){t=da((da(J|0,4,0,0)|0|0)+16|0,4,0,0)|0|0;v=D+c|0;Qq(aa,t,v);if((da(J+20|0,2,0,0)|0)&256){if(!(da((da(Y|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))w=(da(Y+4|0,4,0,0)|0|0)+(((da(Y+32|0,4,0,0)|0|0)+-1|0)*20|0)|0;else w=29120;ea(w+12|0,da(d+(pa*80|0)+772|0,4,0,0)|0|0,4,0);ea(w+3>>0|0,1|0,1,0)}if(Tu(t)|0)vh(Y,76,v,E,0)|0;do if(!s){w=q+c|0;if((Au(t,da(w>>0|0,1,0,0)|0|0)|0)<<24>>24==65){ea(w>>0|0,65|0,1,0);v=65}else v=da(w>>0|0,1,0,0)|0|0;if(!(Uu(t,v)|0))break;ea(w>>0|0,65|0,1,0)}while(0);w=c+1|0}else{if(!(H<<24>>24)){w=c;break}vh(Y,28,0,D+c|0,0)|0;w=c+1|0;x=0;z=1}while(0);Vu(aa,D,w-(H&255)|0,q);wh(Y,vh(Y,da(33544+(z<<2|V|x<<1)>>0|0,1,0,1)|0|0,Q,E,D)|0,w,-14);do if(A){s=da((da(G|0,4,0,0)|0|0)+16|0,4,0,0)|0|0;r=D+c|0;ct(aa,r,1);Qq(aa,s,r);if((da(G+20|0,2,0,0)|0)&256){if(!(da((da(Y|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))t=(da(Y+4|0,4,0,0)|0|0)+(((da(Y+32|0,4,0,0)|0|0)+-1|0)*20|0)|0;else t=29120;ea(t+12|0,da(d+(pa*80|0)+772|0,4,0,0)|0|0,4,0);ea(t+3>>0|0,1|0,1,0)}if(Tu(s)|0)vh(Y,76,r,E,0)|0;do if((Au(s,da(Ga>>0|0,1,0,0)|0|0)|0)<<24>>24!=65){if(Uu(s,da(Ga>>0|0,1,0,0)|0|0)|0)break;Vu(aa,r,1,Ga)}while(0);c=c+1|0}else{if(!(y<<24>>24))break;vh(Y,28,0,D+c|0,0)|0;u=0;c=c+1|0}while(0);lg(_,q);ea(d+(pa*80|0)+788|0,da(Y+32|0,4,0,0)|0|0,4,0);if(c)wh(Y,vh(Y,da(33552+(u|V<<1)>>0|0,1,0,1)|0|0,Q,E,D)|0,c,-14);Qu(m,J);Qu(m,G);do if(!K){t=da(N+12|0,4,0,0)|0|0;if(!((da(t+44>>0|0,1,0,0)|0)&32)){W=aa+72|0;X=(da(W|0,4,0,0)|0|0)+1|0;ea(W|0,X|0,4,0);vh(Y,112,Q,X,0)|0;Ru(aa,g,-1,X);vh(Y,66,g,X,0)|0;break}if((g|0)==(Q|0))break;c=da(t+8|0,4,0,0)|0|0;A:do if(!c)c=0;else while(1){if(((da(c+51>>0|0,1,0,0)|0)&3)==2)break A;c=da(c+20|0,4,0,0)|0|0;if(!c){c=0;break}}while(0);z=c+46|0;o=da(z|0,2,0,0)|0|0;t=o&65535;u=aa+60|0;s=da(u|0,4,0,0)|0|0;r=aa+56|0;n=da(r|0,4,0,0)|0|0;if((n|0)<(t|0)){X=aa+72|0;s=da(X|0,4,0,0)|0|0;ea(X|0,s+t|0,4,0);s=s+1|0}else{ea(u|0,s+t|0,4,0);ea(r|0,n-t|0,4,0)}if(o<<16>>16){n=c+4|0;o=N+48|0;v=N+4|0;w=0;do{t=da((da(n|0,4,0,0)|0|0)+(w<<1)|0,2,0,0)|0|0;c=da(o|0,2,0,0)|0|0;B:do if(!(c<<16>>16))c=-1;else{r=da(v|0,4,0,0)|0|0;u=c&65535;c=0;while(1){if((da(r+(c<<1)|0,2,0,0)|0|0)==t<<16>>16)break B;c=c+1|0;if((c|0)>=(u|0)){c=-1;break}}}while(0);vh(Y,47,Q,c<<16>>16,w+s|0)|0;w=w+1|0;t=da(z|0,2,0,1)|0|0}while((w|0)<(t|0))}wh(Y,vh(Y,68,g,Z,s)|0,t,-14)}while(0);r=da(P|0,4,0,0)|0|0;do if(!(r&4096)){n=d+(pa*80|0)+781|0;if(!V){ea(n>>0|0,9|0,1,0);break}else{ea(n>>0|0,8|0,1,0);break}}else ea(d+(pa*80|0)+781>>0|0,-100|0,1,0);while(0);ea(d+(pa*80|0)+784|0,Q|0,4,0);ea(d+(pa*80|0)+782>>0|0,r>>>16&1|0,1,0);if(r&15){ra=459;break}ea(d+(pa*80|0)+783>>0|0,1|0,1,0);ra=459;break}if(!(w&8192))if(!(v&8)){ea(d+(pa*80|0)+781>>0|0,da(33560+V>>0|0,1,0,0)|0|0|0,1,0);ea(d+(pa*80|0)+784|0,g|0,4,0);ea(d+(pa*80|0)+788|0,(vh(Y,da(33568+V>>0|0,1,0,1)|0|0,g,x,0)|0)+1|0,4,0);ea(d+(pa*80|0)+783>>0|0,1|0,1,0);ra=459;break}else{ea(d+(pa*80|0)+781>>0|0,-100|0,1,0);ra=459;break}A=aa+68|0;U=da(A|0,4,0,0)|0|0;ea(A|0,U+1|0,4,0);S=aa+72|0;T=(da(S|0,4,0,0)|0|0)+1|0;ea(S|0,T|0,4,0);V=ws(Y)|0;R=da(z+(y*72|0)+24|0,4,0,0)|0|0;e=da(da(E+48|0,4,0,0)|0|0,4,0,0)|0|0;J=da(e+12|0,4,0,0)|0|0;ea(d+(pa*80|0)+781>>0|0,18|0,1,0);ea(d+(pa*80|0)+784|0,T|0,4,0);c=da(va>>0|0,1,0,0)|0|0;do if((c&255)>1){z=(c&255)-pa|0;x=z+-1|0;w=lh(_,(x*72|0)+80|0,0)|0;if(!w)break z;v=z&255;ea(w+4|0,v|0,4,0);ea(w|0,v|0,4,0);v=w+8|0;n=v+0|0;c=H+0|0;r=n+72|0;do{ea(n|0,da(c|0,4,0,0)|0|0,4,0);n=n+4|0;c=c+4|0}while((n|0)<(r|0));y=da(wa|0,4,0,0)|0|0;if((z|0)<2)break;else z=1;while(1){n=v+(z*72|0)+0|0;c=y+((da(d+((z+pa|0)*80|0)+780>>0|0,1,0,1)|0|0)*72|0)+8|0;r=n+72|0;do{ea(n|0,da(c|0,4,0,0)|0|0,4,0);n=n+4|0;c=c+4|0}while((n|0)<(r|0));if((z|0)<(x|0))z=z+1|0;else break}}else w=da(wa|0,4,0,0)|0|0;while(0);if(!((da(ya|0,2,0,0)|0)&8)){if(!((da(R+44>>0|0,1,0,0)|0)&32)){c=(da(S|0,4,0,0)|0|0)+1|0;ea(S|0,c|0,4,0);vh(Y,28,0,c,0)|0}else{c=da(R+8|0,4,0,0)|0|0;C:do if(!c)c=0;else while(1){if(((da(c+51>>0|0,1,0,0)|0)&3)==2)break C;c=da(c+20|0,4,0,0)|0|0;if(!c){c=0;break}}while(0);Q=da(A|0,4,0,0)|0|0;ea(A|0,Q+1|0,4,0);vh(Y,57,Q,da(c+46|0,2,0,1)|0|0,0)|0;P=da(F|0,4,0,0)|0|0;wh(P,-1,gs(aa,c)|0,-6);c=Q}P=(da(S|0,4,0,0)|0|0)+1|0;ea(S|0,P|0,4,0);O=c}else{P=0;O=0}Q=vh(Y,25,0,T,0)|0;c=da(sa|0,4,0,0)|0|0;do if((c|0)>1){x=0;v=0;do{z=da(ta|0,4,0,0)|0|0;N=z+(x*48|0)|0;y=da(N|0,4,0,0)|0|0;do if((N|0)!=(e|0)){if((da(y+4|0,4,0,0)|0)&1)break;if((da(z+(x*48|0)+20|0,2,0,0)|0)&2)break;if(!((da(z+(x*48|0)+18|0,2,0,0)|0)&4095))break;v=rs(_,v,Lr(_,y,0,0)|0)|0;c=da(sa|0,4,0,0)|0|0}while(0);x=x+1|0}while((x|0)<(c|0));if(!v){N=0;break}N=Yq(aa,72,0,v,0)|0}else N=0;while(0);M=J+12|0;do if((da(M|0,4,0,0)|0|0)>0){o=J+20|0;n=(N|0)==0;r=R+44|0;s=Y+32|0;t=Y+4|0;v=Y+24|0;x=R+8|0;y=aa+60|0;B=aa+56|0;K=N+12|0;L=0;u=0;c=0;p=240;while(1){A=da(o|0,4,0,0)|0|0;if((da(A+(L*48|0)+8|0,4,0,0)|0|0)!=(g|0)?((da(A+(L*48|0)+18|0,2,0,0)|0)&512)==0:0)A=p;else ra=407;do if((ra|0)==407){ra=0;A=da(A+(L*48|0)|0,4,0,0)|0|0;do if(!n){if((da(A+4|0,4,0,0)|0)&1)break;ea(K|0,A|0,4,0);A=N}while(0);q=Us(aa,w,A,0,0,p,U)|0;if(!q){A=p;break}Ou(aa,w,q+736|0,pa,da(W>>0|0,1,0,1)|0|0,0);do if(!((da(ya|0,2,0,0)|0)&8)){F=(L|0)==((da(M|0,4,0,0)|0|0)+-1|0)?-1:L;do if(!((da(r>>0|0,1,0,0)|0)&32)){z=vh(Y,130,O,0,bt(aa,R,-1,g,P,0)|0)|0;wh(Y,z,F,-14)}else{A=da(x|0,4,0,0)|0|0;D:do if(!A)A=0;else while(1){if(((da(A+51>>0|0,1,0,0)|0)&3)==2)break D;A=da(A+20|0,4,0,0)|0|0;if(!A){A=0;break}}while(0);G=da(A+46|0,2,0,0)|0|0;D=G&65535;J=da(y|0,4,0,0)|0|0;H=da(B|0,4,0,0)|0|0;if((H|0)<(D|0)){E=da(S|0,4,0,0)|0|0;ea(S|0,E+D|0,4,0);E=E+1|0}else{ea(y|0,J+D|0,4,0);ea(B|0,H-D|0,4,0);E=J}if(G<<16>>16){H=A+4|0;J=0;do{bt(aa,R,da((da(H|0,4,0,0)|0|0)+(J<<1)|0,2,0,0)|0|0,g,J+E|0,0)|0;J=J+1|0}while((J|0)<(D|0))}J=(F|0)!=0;if(J){z=vh(Y,69,O,0,E)|0;wh(Y,z,D,-14);if((F|0)>-1)ra=426}else{z=0;ra=426}do if((ra|0)==426){ra=0;vh(Y,49,E,D,P)|0;vh(Y,110,O,P,0)|0;if(!J)break;F=da(t|0,4,0,0)|0|0;if(!F)break;ea(F+(((da(s|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,16|0,1,0)}while(0);ct(aa,E,D);if((da(B|0,4,0,0)|0|0)>=(D|0))break;ea(B|0,D|0,4,0);ea(y|0,E|0,4,0)}while(0);vh(Y,17,T,V,0)|0;if(!z)break;A=da(s|0,4,0,0)|0|0;if(A>>>0>z>>>0)ea((da(t|0,4,0,0)|0|0)+(z*20|0)+8|0,A|0,4,0);ea((da(v|0,4,0,0)|0|0)+88|0,A+-1|0,4,0)}else vh(Y,17,T,V,0)|0;while(0);c=(da(q+39>>0|0,1,0,0)|0|0)==0?c:1;A=da(q+800|0,4,0,0)|0|0;do if(!((da(A+36|0,4,0,0)|0)&512)){u=0;A=p}else{if((L|0)!=0?(da(A+28|0,4,0,0)|0|0)!=(u|0):0){u=0;A=p;break}u=da(A+28|0,4,0,0)|0|0;if(((da(r>>0|0,1,0,0)|0)&32)!=0?((da(u+51>>0|0,1,0,0)|0)&3)==2:0){u=0;A=p;break}A=(p&65535|4096)&65535}while(0);Ws(q)}while(0);L=L+1|0;if((L|0)>=(da(M|0,4,0,0)|0|0))break;else p=A}ea(d+(pa*80|0)+792|0,u|0,4,0);if(!u){r=c;break}ea(d+(pa*80|0)+744|0,U|0,4,0);r=c}else{ea(d+(pa*80|0)+792|0,0|0,4,0);r=0}while(0);if(N){ea(N+12|0,0|0,4,0);Fk(_,N)}s=Y+32|0;c=da(s|0,4,0,0)|0|0;if(c>>>0>Q>>>0)ea((da(Y+4|0,4,0,0)|0|0)+(Q*20|0)+4|0,c|0,4,0);vh(Y,16,0,da(X|0,4,0,0)|0|0,0)|0;u=da(Y+24|0,4,0,0)|0|0;t=~V;do if((V|0)<0){c=da(u+112|0,4,0,0)|0|0;if(!c)break;ea(c+(t<<2)|0,da(s|0,4,0,0)|0|0,4,0)}while(0);ea(u+88|0,(da(s|0,4,0,0)|0|0)+-1|0,4,0);if((da(va>>0|0,1,0,1)|0|0)>1)lg(_,w);if(r){ra=459;break}Qu(m,e);ra=459}else{ra=da(z+(y*72|0)+36|0,4,0,0)|0|0;vh(Y,20,ra,0,da(z+(y*72|0)+32|0,4,0,0)|0|0)|0;ea(d+(pa*80|0)+788|0,vh(Y,22,ra,x,0)|0|0,4,0);ea(d+(pa*80|0)+781>>0|0,16|0,1,0);ra=459}while(0);if((ra|0)==459){ra=0;c=da(sa|0,4,0,0)|0|0;do if((c|0)>0){o=d+(pa*80|0)+772|0;p=Y+32|0;q=Y+4|0;v=Y+24|0;n=da(ta|0,4,0,0)|0|0;while(1){r=n+20|0;s=da(r|0,2,0,0)|0|0;do if(!(s&6)){u=n+40|0;t=$;if(!(((da(t|0,4,0,0)|0)&(da(u|0,4,0,0)|0)|0)==0?((da(t+4|0,4,0,0)|0)&(da(u+4|0,4,0,0)|0)|0)==0:0)){ea(ga>>0|0,1|0,1,0);break}u=da(n|0,4,0,0)|0|0;if((da(m|0,4,0,0)|0|0)!=0?((da(u+4|0,4,0,0)|0)&1|0)==0:0)break;do if(!(s&512))ft(aa,u,Z,16);else{t=vh(Y,46,da(o|0,4,0,0)|0|0,0,0)|0;ft(aa,u,Z,16);if(!t)break;u=da(p|0,4,0,0)|0|0;if(u>>>0>t>>>0)ea((da(q|0,4,0,0)|0|0)+(t*20|0)+8|0,u|0,4,0);ea((da(v|0,4,0,0)|0|0)+88|0,u+-1|0,4,0)}while(0);ea(r|0,da(r|0,2,0,1)|0|4|0,2,0)}while(0);c=c+-1|0;if((c|0)<=0)break;else n=n+48|0}q=da(sa|0,4,0,0)|0|0;if((q|0)<=0){ra=475;break}s=da(ta|0,4,0,0)|0|0;while(1){do if(!((da(s+20|0,2,0,0)|0)&6)){if((da(s+18|0,2,0,0)|0|0)!=1026)break;if((da(s+8|0,4,0,0)|0|0)!=(g|0))break;if(da(m|0,4,0,0)|0)break;u=da(s|0,4,0,0)|0|0;c=Eu(Ca,g,da(s+12|0,4,0,0)|0|0,l,k,3,0)|0;if(!c)break;if((da(c+20|0,2,0,0)|0)&4)break;t=lh(_,48,0)|0;if(!t)break;n=t+0|0;c=(da(c|0,4,0,0)|0|0)+0|0;r=n+48|0;do{ea(n|0,da(c|0,4,0,0)|0|0,4,0);n=n+4|0;c=c+4|0}while((n|0)<(r|0));ea(t+12|0,da(u+12|0,4,0,0)|0|0,4,0);ft(aa,t,Z,16);lg(_,t)}while(0);q=q+-1|0;if((q|0)<=0)break;else s=s+48|0}}else ra=475;while(0);if((ra|0)==475)ra=0;m=da(m|0,4,0,0)|0|0;do if(m){ea(d+(pa*80|0)+764|0,da(Y+32|0,4,0,0)|0|0,4,0);vh(Y,25,1,m,0)|0;$s(aa);m=da(sa|0,4,0,0)|0|0;if((m|0)<=0)break;n=0;l=da(ta|0,4,0,0)|0|0;while(1){q=l+20|0;do if(!((da(q|0,2,0,0)|0)&6)){p=l+40|0;o=$;if(!(((da(o|0,4,0,0)|0)&(da(p|0,4,0,0)|0)|0)==0?((da(o+4|0,4,0,0)|0)&(da(p+4|0,4,0,0)|0)|0)==0:0))break;ft(aa,da(l|0,4,0,0)|0|0,Z,16);ea(q|0,da(q|0,2,0,1)|0|4|0,2,0);m=da(sa|0,4,0,0)|0|0}while(0);n=n+1|0;if((n|0)>=(m|0))break;else l=l+48|0}}while(0);k=$;l=da(k|0,4,0,0)|0|0;k=da(k+4|0,4,0,0)|0|0}ea(xa|0,da(qa+(pa*80|0)+24|0,4,0,0)|0|0,4,0);pa=pa+1|0;if((pa|0)>=(h|0))break a}}}while(0);if(Da)d=0;else{ea(za|0,da(Aa|0,4,0,0)|0|0,4,0);Wu(Fa,d);d=0}}else{ea(Ha|0,64|0,4,0);sh(a,33504,Ha);d=0}while(0);i=Ja;return d|0}function Vs(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=iw(a|0,b|0,-2,-1)|0;d=C}else{c=((a|0)!=0)<<31>>31;c=iw(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=C}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=iw(c|0,d|0,8,0)|0;a=lw(b|0,C|0,3-a|0)|0;b=C;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=iw(c|0,d|0,8,0)|0;a=hw(b|0,C|0,a+-3|0)|0;b=C}}else{b=0;a=1}while(0);C=b;return a|0}function Ws(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;y=da(a|0,4,0,0)|0|0;z=da(y+8|0,4,0,0)|0|0;B=da(a+4|0,4,0,0)|0|0;C=da(y|0,4,0,0)|0|0;$s(y);D=a+41|0;c=da(D>>0|0,1,0,0)|0|0;if(!(c<<24>>24))b=z+24|0;else{b=z+24|0;l=z+32|0;n=z+4|0;k=c&255;do{k=k+-1|0;e=da(a+(k*80|0)+800|0,4,0,0)|0|0;w=da(a+(k*80|0)+760|0,4,0,0)|0|0;c=da(b|0,4,0,0)|0|0;d=~w;if((w|0)<0?(o=da(c+112|0,4,0,0)|0|0,(o|0)!=0):0)ea(o+(d<<2)|0,da(l|0,4,0,0)|0|0,4,0);ea(c+88|0,(da(l|0,4,0,0)|0|0)+-1|0,4,0);x=a+(k*80|0)+781|0;d=da(x>>0|0,1,0,0)|0|0;if(d<<24>>24!=-100?(vh(z,d&255,da(a+(k*80|0)+784|0,4,0,0)|0|0,da(a+(k*80|0)+788|0,4,0,0)|0|0,da(a+(k*80|0)+782>>0|0,1,0,1)|0|0)|0,q=da(n|0,4,0,0)|0|0,(q|0)!=0):0)ea(q+(((da(l|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,da(a+(k*80|0)+783>>0|0,1,0,0)|0|0|0,1,0);p=e+36|0;if(((da(p|0,4,0,0)|0)&2048|0)!=0?(r=a+(k*80|0)+792|0,s=da(r|0,4,0,0)|0|0,(s|0)>0):0){w=da(a+(k*80|0)+752|0,4,0,0)|0|0;g=da(b|0,4,0,0)|0|0;d=~w;if((w|0)<0?(t=da(g+112|0,4,0,0)|0|0,(t|0)!=0):0){ea(t+(d<<2)|0,da(l|0,4,0,0)|0|0,4,0);h=da(r|0,4,0,0)|0|0;f=da(l|0,4,0,0)|0|0;ea(g+88|0,f+-1|0,4,0);c=a+(k*80|0)+796|0;if((h|0)>0)E=16}else{f=da(l|0,4,0,0)|0|0;ea(g+88|0,f+-1|0,4,0);c=a+(k*80|0)+796|0;h=s;E=16}if((E|0)==16){E=0;d=g;j=h;i=(da(c|0,4,0,0)|0|0)+((h+-1|0)*12|0)|0;while(1){h=i+4|0;g=da(h|0,4,0,0)|0|0;e=g+1|0;if(f>>>0>e>>>0)ea((da(n|0,4,0,0)|0|0)+(e*20|0)+8|0,f|0,4,0);ea(d+88|0,f+-1|0,4,0);vh(z,da(i+8>>0|0,1,0,1)|0|0,da(i|0,4,0,0)|0|0,g,0)|0;h=(da(h|0,4,0,0)|0|0)+-1|0;f=da(l|0,4,0,0)|0|0;if(f>>>0>h>>>0)ea((da(n|0,4,0,0)|0|0)+(h*20|0)+8|0,f|0,4,0);d=da(b|0,4,0,0)|0|0;ea(d+88|0,f+-1|0,4,0);j=j+-1|0;if((j|0)<=0)break;else i=i+-12|0}}lg(C,da(c|0,4,0,0)|0|0)}w=da(a+(k*80|0)+748|0,4,0,0)|0|0;e=da(b|0,4,0,0)|0|0;d=~w;if((w|0)<0?(m=da(e+112|0,4,0,0)|0|0,(m|0)!=0):0)ea(m+(d<<2)|0,da(l|0,4,0,0)|0|0,4,0);d=da(l|0,4,0,0)|0|0;ea(e+88|0,d+-1|0,4,0);e=a+(k*80|0)+756|0;c=da(e|0,4,0,0)|0|0;if(c){vh(z,16,0,c,0)|0;e=da(e|0,4,0,0)|0|0;d=da(l|0,4,0,0)|0|0;if(d>>>0>e>>>0)ea((da(n|0,4,0,0)|0|0)+(e*20|0)+8|0,d|0,4,0);f=d+-1|0;c=(da(b|0,4,0,0)|0|0)+88|0;ea(c|0,f|0,4,0);e=e+-2|0;if(d>>>0>e>>>0)ea((da(n|0,4,0,0)|0|0)+(e*20|0)+8|0,d|0,4,0);ea(c|0,f|0,4,0)}e=da(a+(k*80|0)+776|0,4,0,0)|0|0;if(e){if(!(da((da(z|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))d=(da(n|0,4,0,0)|0|0)+((((e|0)<1?d:e)+-1|0)*20|0)|0;else d=29120;vh(z,(da(d+4|0,4,0,0)|0|0)==0?141:140,da(a+(k*80|0)+772|0,4,0,0)|0|0,e,0)|0}c=da(a+(k*80|0)+736|0,4,0,0)|0|0;if(c){f=vh(z,137,c,0,0)|0;c=da(p|0,4,0,0)|0|0;if(!(c&64)){vh(z,104,da(B+(k*72|0)+48|0,4,0,0)|0|0,0,0)|0;c=da(p|0,4,0,0)|0|0}if(c&512)vh(z,104,da(a+(k*80|0)+744|0,4,0,0)|0|0,0,0)|0;c=da(a+(k*80|0)+764|0,4,0,0)|0|0;if((da(x>>0|0,1,0,0)|0|0)==18)vh(z,17,da(a+(k*80|0)+784|0,4,0,0)|0|0,c,0)|0;else vh(z,16,0,c,0)|0;c=da(l|0,4,0,0)|0|0;if(c>>>0>f>>>0)ea((da(n|0,4,0,0)|0|0)+(f*20|0)+8|0,c|0,4,0);ea((da(b|0,4,0,0)|0|0)+88|0,c+-1|0,4,0)}}while((k|0)>0)}w=da(a+52|0,4,0,0)|0|0;c=da(b|0,4,0,0)|0|0;b=~w;if((w|0)<0?(u=da(c+112|0,4,0,0)|0|0,(u|0)!=0):0)ea(u+(b<<2)|0,da(z+32|0,4,0,0)|0|0,4,0);x=z+32|0;ea(c+88|0,(da(x|0,4,0,0)|0|0)+-1|0,4,0);if(da(D>>0|0,1,0,0)|0){q=a+34|0;r=a+38|0;s=a+64|0;t=C+65|0;u=z+4|0;v=0;w=a+736|0;while(1){e=da(w+44>>0|0,1,0,1)|0|0;f=da(B+(e*72|0)+24|0,4,0,0)|0|0;d=da(w+64|0,4,0,0)|0|0;if(((da(B+(e*72|0)+45>>0|0,1,0,0)|0)&4)!=0?(da(t>>0|0,1,0,0)|0|0)==0:0){g=da(x|0,4,0,0)|0|0;d=da(w+32|0,4,0,0)|0|0;if(!(da((da(z|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))c=(da(u|0,4,0,0)|0|0)+(((d|0)<0?g+-1|0:d)*20|0)|0;else c=29120;if((d|0)<(g|0)){h=da(w+4|0,4,0,0)|0|0;f=B+(e*72|0)+40|0;e=c;while(1){c=e+4|0;do if((da(c|0,4,0,0)|0|0)==(h|0)){b=da(e>>0|0,1,0,0)|0|0;if(b<<24>>24==47){ea(e>>0|0,33|0,1,0);o=e+8|0;ea(c|0,(da(f|0,4,0,0)|0|0)+(da(o|0,4,0,0)|0|0)|0,4,0);p=e+12|0;ea(o|0,da(p|0,4,0,0)|0|0,4,0);ea(p|0,0|0,4,0);break}else if(b<<24>>24==103){ea(e>>0|0,28|0,1,0);ea(c|0,0|0,4,0);ea(e+12|0,0|0,4,0);break}else break}while(0);d=d+1|0;if((d|0)==(g|0))break;else e=e+20|0}}}else E=64;do if((E|0)==64){E=0;p=f+44|0;if((((da(p>>0|0,1,0,0)|0)&2)==0?(da(f+12|0,4,0,0)|0|0)==0:0)?((da(q|0,2,0,0)|0)&16)==0:0){c=da(d+36|0,4,0,0)|0|0;if((da(r>>0|0,1,0,0)|0|0)==0&(c&64|0)==0)vh(z,61,da(B+(e*72|0)+48|0,4,0,0)|0|0,0,0)|0;if((c&17152|0)==512?(A=da(w+8|0,4,0,0)|0|0,(A|0)!=(da(s|0,4,0,0)|0|0)):0)vh(z,61,A,0,0)|0}c=da(d+36|0,4,0,0)|0|0;if(!(c&576)){if(!(c&8192))break;c=w+56|0}else c=d+28|0;d=da(c|0,4,0,0)|0|0;if((d|0)!=0?(da(t>>0|0,1,0,0)|0|0)==0:0){n=da(x|0,4,0,0)|0|0;h=da(w+32|0,4,0,0)|0|0;if(!(da((da(z|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))g=(da(u|0,4,0,0)|0|0)+(((h|0)<0?n+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(n|0)){o=d+48|0;l=d+4|0;m=w+8|0;k=f+8|0;b=da(w+4|0,4,0,0)|0|0;c=g;while(1){d=c+4|0;a:do if((da(d|0,4,0,0)|0|0)==(b|0)){g=da(c>>0|0,1,0,0)|0|0;if(g<<24>>24==103){ea(d|0,da(m|0,4,0,0)|0|0,4,0);ea(c>>0|0,112|0,1,0);break}else if(g<<24>>24!=47)break;e=c+8|0;g=da(e|0,4,0,0)|0|0;if((da(p>>0|0,1,0,0)|0)&32){f=k;while(1){f=da(f|0,4,0,0)|0|0;if(((da(f+51>>0|0,1,0,0)|0)&3)==2)break;else f=f+20|0}g=da((da(f+4|0,4,0,0)|0|0)+(g<<1)|0,2,0,0)|0|0}j=g&65535;g=da(o|0,2,0,0)|0|0;if(g<<16>>16){f=da(l|0,4,0,0)|0|0;i=g&65535;g=0;while(1){if((da(f+(g<<1)|0,2,0,0)|0|0)==j<<16>>16)break;g=g+1|0;if((g|0)>=(i|0))break a}if((g&65535)<<16>>16>-1){ea(e|0,g<<16>>16|0,4,0);ea(d|0,da(m|0,4,0,0)|0|0,4,0)}}}while(0);h=h+1|0;if((h|0)==(n|0))break;else c=c+20|0}}}}while(0);v=v+1|0;if((v|0)>=(da(D>>0|0,1,0,1)|0|0))break;else w=w+80|0}}ea(y+424|0,da(a+56|0,4,0,0)|0|0,4,0);Wu(C,a);return}function Xs(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)!=0?(da(b|0,4,0,0)|0|0)>0:0){c=0;d=da(b+4|0,4,0,0)|0|0;while(1){Xu(a,da(d|0,4,0,0)|0|0);c=c+1|0;if((c|0)>=(da(b|0,4,0,0)|0|0))break;else d=d+20|0}}return}function Ys(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))ba();n=q;e=da(a+24|0,4,0,0)|0|0;o=da(e|0,4,0,0)|0|0;f=da(e+4|0,4,0,0)|0|0;p=da(e+12|0,4,0,0)|0|0;d=da(b>>0|0,1,0,1)|0|0;a:do if((d|0)==155)if(((da(e+28|0,2,0,0)|0)&8)==0?(da(a+16|0,4,0,0)|0|0)==(da(b+38>>0|0,1,0,1)|0|0):0){h=p+40|0;d=p+44|0;a=da(d|0,4,0,0)|0|0;b:do if((a|0)>0){c=0;e=da(h|0,4,0,0)|0|0;while(1){if(!(Bu(da(e|0,4,0,0)|0|0,b,-1)|0))break b;c=c+1|0;if((c|0)<(a|0))e=e+16|0;else break}}else c=0;while(0);do if((c|0)>=(a|0)){g=da(o|0,4,0,0)|0|0;k=da(g+62>>0|0,1,0,0)|0|0;g=Gt(g,da(h|0,4,0,0)|0|0,16,d,n)|0;ea(h|0,g|0,4,0);c=da(n|0,4,0,0)|0|0;if((c|0)>-1){ea(g+(c<<4)|0,b|0,4,0);f=o+72|0;d=(da(f|0,4,0,0)|0|0)+1|0;ea(f|0,d|0,4,0);ea(g+(c<<4)+8|0,d|0,4,0);d=da(o|0,4,0,0)|0|0;f=da(b+8|0,4,0,0)|0|0;if(!f)a=0;else{e=f;while(1)if(!(da(e>>0|0,1,0,0)|0))break;else e=e+1|0;a=e-f&1073741823}e=da(b+20|0,4,0,0)|0|0;if(!e)e=0;else e=da(e|0,4,0,0)|0|0;ea(g+(c<<4)+4|0,Rh(d,f,a,e,k,0)|0|0,4,0);if(!((da(b+4|0,4,0,0)|0)&16)){ea(g+(c<<4)+12|0,-1|0,4,0);break}else{l=o+68|0;m=da(l|0,4,0,0)|0|0;ea(l|0,m+1|0,4,0);ea(g+(c<<4)+12|0,m|0,4,0);break}}}while(0);ea(b+34|0,c|0,2,0);ea(b+40|0,p|0,4,0);c=1}else c=0;else if((d|0)==154|(d|0)==156)if((f|0)!=0?(h=da(f|0,4,0,0)|0|0,(h|0)>0):0){l=b+28|0;d=da(l|0,4,0,0)|0|0;a=0;e=f+8|0;while(1){if((d|0)==(da(e+40|0,4,0,0)|0|0))break;a=a+1|0;if((a|0)>=(h|0)){c=1;break a}else e=e+72|0}k=p+28|0;f=p+32|0;a=da(f|0,4,0,0)|0|0;c:do if((a|0)>0){h=b+32|0;c=0;g=da(k|0,4,0,0)|0|0;while(1){if((da(g+4|0,4,0,0)|0|0)==(d|0)?(da(g+8|0,4,0,0)|0|0)==(da(h|0,2,0,0)|0|0):0)break c;c=c+1|0;if((c|0)<(a|0))g=g+24|0;else break}}else c=0;while(0);d:do if((c|0)>=(a|0)){a=Gt(da(o|0,4,0,0)|0|0,da(k|0,4,0,0)|0|0,24,f,n)|0;ea(k|0,a|0,4,0);c=da(n|0,4,0,0)|0|0;if((c|0)>-1){ea(a+(c*24|0)|0,da(b+44|0,4,0,0)|0|0,4,0);f=da(l|0,4,0,0)|0|0;ea(a+(c*24|0)+4|0,f|0,4,0);g=da(b+32|0,2,0,0)|0|0;ea(a+(c*24|0)+8|0,g<<16>>16|0,4,0);e=o+72|0;h=(da(e|0,4,0,0)|0|0)+1|0;ea(e|0,h|0,4,0);ea(a+(c*24|0)+16|0,h|0,4,0);h=a+(c*24|0)+12|0;ea(h|0,-1|0,4,0);ea(a+(c*24|0)+20|0,b|0,4,0);e=da(p+24|0,4,0,0)|0|0;e:do if((e|0)!=0?(m=da(e|0,4,0,0)|0|0,(m|0)>0):0){d=0;a=da(e+4|0,4,0,0)|0|0;while(1){e=da(a|0,4,0,0)|0|0;if(((da(e>>0|0,1,0,0)|0|0)==-102?(da(e+28|0,4,0,0)|0|0)==(f|0):0)?(da(e+32|0,2,0,0)|0|0)==g<<16>>16:0)break;d=d+1|0;if((d|0)>=(m|0))break e;else a=a+20|0}ea(h|0,d|0,4,0);if((d|0)>=0)break d}while(0);l=p+12|0;m=da(l|0,4,0,0)|0|0;ea(l|0,m+1|0,4,0);ea(h|0,m|0,4,0)}}while(0);ea(b+40|0,p|0,4,0);ea(b>>0|0,-100|0,1,0);ea(b+34|0,c|0,2,0);c=1}else c=1;else c=0;while(0);i=q;return c|0}function Zs(a,b){a=a|0;b=b|0;return 0}function _s(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();c=d;if((da(a+450>>0|0,1,0,0)|0|0)==2){e=da(a+8|0,4,0,0)|0|0;f=da(a|0,4,0,0)|0|0;ea(c|0,b|0,4,0);c=th(f,35e3,c)|0;wh(e,vh(e,157,da(a+464|0,4,0,0)|0|0,0,0)|0,c,-1)}i=d;return}function $s(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=a+19|0;g=0;h=a+116|0;while(1){c=h+12|0;d=da(c|0,4,0,0)|0|0;if(d){e=h+6|0;if(da(e>>0|0,1,0,0)|0){f=da(b>>0|0,1,0,0)|0|0;if((f&255)<8){ea(b>>0|0,f+1<<24>>24|0,1,0);ea(a+((f&255)<<2)+24|0,d|0,4,0)}ea(e>>0|0,0|0,1,0)}ea(c|0,0|0,4,0)}g=g+1|0;if((g|0)==10)break;else h=h+20|0}return}function at(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+32|0;if((i|0)>=(j|0))ba();v=x;e=d&255;o=34-(e&1)|0;r=da(b|0,4,0,0)|0|0;if(!(da(a+23>>0|0,1,0,0)|0))d=e&253;if((r|0)>0){f=(d&2)==0;g=a+8|0;h=(o|0)==33;k=v+20|0;l=v+4|0;m=v+24|0;n=0;b=da(b+4|0,4,0,0)|0|0;while(1){e=da(b|0,4,0,0)|0|0;if(!f?(ea(v+0|0,0|0,4,0),ea(v+4|0,0|0,4,0),ea(v+8|0,0|0,4,0),ea(v+12|0,0|0,4,0),ea(v+16|0,0|0,4,0),ea(v+20|0,0|0,4,0),ea(k>>0|0,1|0,1,0),ea(v|0,78|0,4,0),ea(l|0,79|0,4,0),ea(m|0,0|0,4,0),qs(v,e)|0,(da(k>>0|0,1,0,0)|0|0)!=0):0)Ft(a,e,n+c|0,0);else w=8;do if((w|0)==8?(w=0,p=n+c|0,q=hs(a,e,p)|0,(q|0)!=(p|0)):0){d=da(g|0,4,0,0)|0|0;if(h){if(!(da((da(d|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))e=(da(d+4|0,4,0,0)|0|0)+(((da(d+32|0,4,0,0)|0|0)+-1|0)*20|0)|0;else e=29120;if(((da(e>>0|0,1,0,0)|0|0)==33?(s=e+12|0,t=da(s|0,4,0,0)|0|0,((da(e+4|0,4,0,0)|0|0)+1+t|0)==(q|0)):0)?(u=t+1|0,(u+(da(e+8|0,4,0,0)|0|0)|0)==(p|0)):0){ea(s|0,u|0,4,0);break}}vh(d,o,q,p,0)|0}while(0);n=n+1|0;if((n|0)==(r|0))break;else b=b+20|0}}i=x;return}function bt(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;k=da(a+8|0,4,0,0)|0|0;g=a+116|0;j=0;h=g;while(1){i=da(h+12|0,4,0,0)|0|0;if(((i|0)>0?(da(h|0,4,0,0)|0|0)==(d|0):0)?(da(h+4|0,2,0,0)|0|0)==(c|0):0){e=i;j=5;break}j=j+1|0;if((j|0)>=10){j=10;break}else h=h+20|0}do if((j|0)==5){k=a+104|0;f=da(k|0,4,0,0)|0|0;ea(k|0,f+1|0,4,0);ea(h+16|0,f|0,4,0);h=0;while(1){if((da(g+12|0,4,0,0)|0|0)==(e|0))ea(g+6>>0|0,0|0,1,0);h=h+1|0;if((h|0)==10)break;else g=g+20|0}}else if((j|0)==10){mt(k,b,d,c,e);if(!(f<<24>>24)){Ru(a,d,c,e);break}g=da(k+4|0,4,0,0)|0|0;if(g)ea(g+(((da(k+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,f|0,1,0)}while(0);return e|0}function ct(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=b+-1+c|0;e=a+19|0;i=0;j=a+116|0;while(1){f=j+12|0;g=da(f|0,4,0,0)|0|0;if(!((g|0)<(b|0)|(g|0)>(c|0))){h=j+6|0;if(da(h>>0|0,1,0,0)|0){d=da(e>>0|0,1,0,0)|0|0;if((d&255)<8){ea(e>>0|0,d+1<<24>>24|0,1,0);ea(a+((d&255)<<2)+24|0,g|0,4,0)}ea(h>>0|0,0|0,1,0)}ea(f|0,0|0,4,0)}i=i+1|0;if((i|0)==10)break;else j=j+20|0}return}function dt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=da(a+8|0,4,0,0)|0|0;ea(b>>0|0,1|0,1,0);p=b+44|0;if((da(p|0,4,0,0)|0|0)>0){q=x+4|0;s=a+56|0;t=a+60|0;l=x+24|0;m=x+32|0;n=b+36|0;o=a+72|0;u=0;v=da(b+40|0,4,0,0)|0|0;c=0;while(1){h=da((da(v|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;if(!h){d=0;f=0}else{d=da(h|0,4,0,0)|0|0;f=da(t|0,4,0,0)|0|0;e=da(s|0,4,0,0)|0|0;if((e|0)<(d|0)){f=da(o|0,4,0,0)|0|0;ea(o|0,f+d|0,4,0);f=f+1|0}else{ea(t|0,f+d|0,4,0);ea(s|0,e-d|0,4,0)}at(a,h,f,1)}e=v+12|0;if((da(e|0,4,0,0)|0|0)>-1){k=ws(x)|0;yu(a,da(e|0,4,0,0)|0|0,k,1,f)}else k=0;j=v+4|0;e=da(j|0,4,0,0)|0|0;if((da(e+2|0,2,0,0)|0)&32){if((d|0)>0){i=0;h=da(h+4|0,4,0,0)|0|0;while(1){e=bu(a,da(h|0,4,0,0)|0|0)|0;i=i+1|0;g=(e|0)!=0;if(!((i|0)<(d|0)&(g^1)))break;else h=h+20|0}if(!g)w=15}else w=15;if((w|0)==15){w=0;e=da((da(a|0,4,0,0)|0|0)+8|0,4,0,0)|0|0}if(!c)if(!(da(n|0,4,0,0)|0))c=0;else{c=(da(o|0,4,0,0)|0|0)+1|0;ea(o|0,c|0,4,0)}wh(x,vh(x,36,c,0,0)|0,e,-4);e=da(j|0,4,0,0)|0|0}wh(x,vh(x,10,0,f,da(v+8|0,4,0,0)|0|0)|0,e,-5);e=da(q|0,4,0,0)|0|0;if(e)ea(e+(((da(m|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,d|0,1,0);ct(a,f,d);ct(a,f,d);if((da(s|0,4,0,0)|0|0)<(d|0)){ea(s|0,d|0,4,0);ea(t|0,f|0,4,0)}if(k){f=da(l|0,4,0,0)|0|0;e=~k;if((k|0)<0?(r=da(f+112|0,4,0,0)|0|0,(r|0)!=0):0)ea(r+(e<<2)|0,da(m|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(m|0,4,0,0)|0|0)+-1|0,4,0);$s(a)}u=u+1|0;if((u|0)>=(da(p|0,4,0,0)|0|0))break;else v=v+16|0}if(c)f=vh(x,45,c,0,0)|0;else f=0}else f=0;$s(a);c=b+36|0;if((da(c|0,4,0,0)|0|0)>0){d=0;e=da(b+28|0,4,0,0)|0|0;while(1){Qq(a,da(e+20|0,4,0,0)|0|0,da(e+16|0,4,0,0)|0|0);d=d+1|0;if((d|0)>=(da(c|0,4,0,0)|0|0))break;else e=e+24|0}}ea(b>>0|0,0|0,1,0);$s(a);if(f){c=da(x+32|0,4,0,0)|0|0;if(c>>>0>f>>>0)ea((da(x+4|0,4,0,0)|0|0)+(f*20|0)+8|0,c|0,4,0);ea((da(x+24|0,4,0,0)|0|0)+88|0,c+-1|0,4,0)}return}function et(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=da(a+8|0,4,0,0)|0|0;d=b+44|0;if((da(d|0,4,0,0)|0|0)>0){e=0;b=da(b+40|0,4,0,0)|0|0;while(1){a=da((da(b|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;if(!a)a=0;else a=da(a|0,4,0,0)|0|0;f=da(b+4|0,4,0,0)|0|0;wh(c,vh(c,142,da(b+8|0,4,0,0)|0|0,a,0)|0,f,-5);e=e+1|0;if((e|0)>=(da(d|0,4,0,0)|0|0))break;else b=b+16|0}}return}function ft(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();k=m+4|0;l=m;h=da(a+8|0,4,0,0)|0|0;ea(k|0,0|0,4,0);ea(l|0,0|0,4,0);if(!((h|0)==0|(b|0)==0)){n=da(b>>0|0,1,0,1)|0|0;e=n^1;a:do switch(n|0){case 75:{if(d){eu(a,b,c,c);break a}f=ws(h)|0;eu(a,b,c,f);e=da(h+24|0,4,0,0)|0|0;d=~f;if((f|0)<0?(g=da(e+112|0,4,0,0)|0|0,(g|0)!=0):0)ea(g+(d<<2)|0,da(h+32|0,4,0,0)|0|0,4,0);ea(e+88|0,(da(h+32|0,4,0,0)|0|0)+-1|0,4,0);break}case 72:{ft(a,da(b+12|0,4,0,0)|0|0,c,d);h=a+100|0;ea(h|0,(da(h|0,4,0,0)|0|0)+1|0,4,0);ft(a,da(b+16|0,4,0,0)|0|0,c,d);au(a);break}case 19:{Yu(a,da(b+12|0,4,0,0)|0|0,c,d);break}case 148:case 73:{g=b+12|0;e=_t(a,da(g|0,4,0,0)|0|0,k)|0;h=b+16|0;d=_t(a,da(h|0,4,0,0)|0|0,l)|0;$t(a,da(g|0,4,0,0)|0|0,da(h|0,4,0,0)|0|0,(da(b>>0|0,1,0,0)|0|0)==73?78:79,e,d,c,128);break}case 74:{Zu(a,b,c,0,d);break}case 77:case 76:{vh(h,e,_t(a,da(b+12|0,4,0,0)|0|0,k)|0,c,0)|0;break}case 71:{g=ws(h)|0;Yu(a,da(b+12|0,4,0,0)|0|0,g,d^16);e=a+100|0;ea(e|0,(da(e|0,4,0,0)|0|0)+1|0,4,0);ft(a,da(b+16|0,4,0,0)|0|0,c,d);d=da(h+24|0,4,0,0)|0|0;e=~g;if((g|0)<0?(f=da(d+112|0,4,0,0)|0|0,(f|0)!=0):0)ea(f+(e<<2)|0,da(h+32|0,4,0,0)|0|0,4,0);ea(d+88|0,(da(h+32|0,4,0,0)|0|0)+-1|0,4,0);au(a);break}case 79:case 78:case 83:case 80:case 81:case 82:{f=b+12|0;g=_t(a,da(f|0,4,0,0)|0|0,k)|0;b=b+16|0;h=_t(a,da(b|0,4,0,0)|0|0,l)|0;$t(a,da(f|0,4,0,0)|0|0,da(b|0,4,0,0)|0|0,e,g,h,c,d);break}default:{if(lu(b)|0){vh(h,16,0,c,0)|0;break a}if(!(_u(b)|0))vh(h,46,_t(a,b,k)|0,c,(d|0)!=0&1)|0}}while(0);Zr(a,da(k|0,4,0,0)|0|0);Zr(a,da(l|0,4,0,0)|0|0)}i=m;return}function gt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;e=da(a+8|0,4,0,0)|0|0;f=b+44|0;if((da(f|0,4,0,0)|0|0)!=(0-(da(b+32|0,4,0,0)|0|0)|0)?(vh(e,28,0,da(b+16|0,4,0,0)|0|0,da(b+20|0,4,0,0)|0|0)|0,(da(f|0,4,0,0)|0|0)>0):0){g=0;d=da(b+40|0,4,0,0)|0|0;while(1){b=d+12|0;do if((da(b|0,4,0,0)|0|0)>-1){c=da((da(d|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;if((c|0)!=0?(da(c|0,4,0,0)|0|0)==1:0){c=Ts(a,c,0,0)|0;wh(e,vh(e,57,da(b|0,4,0,0)|0|0,0,0)|0,c,-6);break}sh(a,34944,h);ea(b|0,-1|0,4,0)}while(0);g=g+1|0;if((g|0)>=(da(f|0,4,0,0)|0|0))break;else d=d+16|0}}i=k;return}function ht(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if((b|0)>0){d=vh(a,138,b,0,-1)|0;vh(a,16,0,c,0)|0;b=da(a+32|0,4,0,0)|0|0;if(b>>>0>d>>>0)ea((da(a+4|0,4,0,0)|0|0)+(d*20|0)+8|0,b|0,4,0);ea((da(a+24|0,4,0,0)|0|0)+88|0,b+-1|0,4,0)}return}function it(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if(((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&8388608|0)!=0?(f=zs(a,b)|0,(f|0)!=0):0){a=0;b=f;do{if((da(b+8>>0|0,1,0,1)|0|0|0)==(c|0)?($u(da(b+16|0,4,0,0)|0|0,d)|0)!=0:0)a=da(b+9>>0|0,1,0,1)|0|0|a;b=da(b+32|0,4,0,0)|0|0}while((b|0)!=0)}else{a=0;f=0}if(e)ea(e|0,a|0,4,0);return ((a|0)!=0?f:0)|0}function jt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;f=da(b+44>>0|0,1,0,0)|0|0;if(f&16){e=da(a|0,4,0,0)|0|0;d=b+60|0;while(1){d=da(d|0,4,0,0)|0|0;if((da(d|0,4,0,0)|0|0)==(e|0))break;else d=d+24|0}if(!(da((da(da(d+4|0,4,0,0)|0|0,4,0,0)|0|0)+52|0,4,0,0)|0))e=8;else e=5}else e=5;do if((e|0)==5){if(((f&1)!=0?((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&2048|0)==0:0)?(da(a+18>>0|0,1,0,0)|0|0)==0:0){e=8;break}if((c|0)==0?(da(b+12|0,4,0,0)|0|0)!=0:0){ea(g|0,da(b|0,4,0,0)|0|0,4,0);sh(a,34456,g);d=1}else d=0}while(0);if((e|0)==8){ea(g|0,da(b|0,4,0,0)|0|0,4,0);sh(a,34424,g);d=1}i=h;return d|0}function kt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();m=n;l=da(a|0,4,0,0)|0|0;f=da(b+68|0,4,0,0)|0|0;a:do if(f){e=da(l+20|0,4,0,0)|0|0;if((e|0)>0){h=da(l+16|0,4,0,0)|0|0;k=0;while(1){g=k+1|0;if((da(h+(k<<4)+12|0,4,0,0)|0|0)==(f|0)){g=k;break a}if((g|0)<(e|0))k=g;else break}}else g=0}else g=-1e6;while(0);e=Lr(l,c,0,0)|0;f=or(l,0,0,0)|0;if(f){ea(f+16|0,jh(l,da(b|0,4,0,0)|0|0)|0|0,4,0);ea(f+12|0,jh(l,da((da(l+16|0,4,0,0)|0|0)+(g<<4)|0,4,0,0)|0|0)|0|0,4,0)}c=jr(a,0,f,e,0,0,0,0,0,0)|0;ea(m>>0|0,12|0,1,0);ea(m+4|0,d|0,4,0);ea(m+1>>0|0,0|0,1,0);ea(m+8|0,0|0,4,0);ea(m+12|0,0|0,4,0);hr(a,c,m)|0;Lk(l,c,1);i=n;return}function lt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n+4|0;f=n;a:do if((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&524288){if(!c){e=an((da(b+68|0,4,0,0)|0|0)+56|0,da(b|0,4,0,0)|0|0,f)|0;if((e|0)!=0?(da(e+8|0,4,0,0)|0|0)!=0:0)e=1;else e=(da(b+16|0,4,0,0)|0|0)!=0;e=e&1;break}a=da(b+16|0,4,0,0)|0|0;if(a){k=b+36|0;l=(d|0)!=0;do{f=da(a+20|0,4,0,0)|0|0;if((f|0)>0){h=0;do{g=da(a+(h<<3)+36|0,4,0,0)|0|0;if((da(c+(g<<2)|0,4,0,0)|0|0)>-1){e=1;break a}h=h+1|0;if((g|0)==(da(k|0,2,0,0)|0|0)&l){e=1;break a}}while((h|0)<(f|0))}a=da(a+4|0,4,0,0)|0|0}while((a|0)!=0)}f=an((da(b+68|0,4,0,0)|0|0)+56|0,da(b|0,4,0,0)|0|0,m)|0;if((f|0)!=0?(e=da(f+8|0,4,0,0)|0|0,(e|0)!=0):0)while(1){if(av(b,e,c,d)|0){e=1;break a}e=da(e+12|0,4,0,0)|0|0;if(!e){e=0;break}}else e=0}else e=0;while(0);i=n;return e|0}function mt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;if((d|0)>=0?(da(b+36|0,2,0,0)|0|0)!=(d|0):0){f=da(b+44>>0|0,1,0,1)|0|0;j=(f&16|0)!=0?150:47;if(!(f&32))f=d;else{f=da(b+8|0,4,0,0)|0|0;a:do if(!f)f=0;else while(1){if(((da(f+51>>0|0,1,0,0)|0)&3)==2)break a;f=da(f+20|0,4,0,0)|0|0;if(!f){f=0;break}}while(0);i=d&65535;g=da(f+48|0,2,0,0)|0|0;b:do if(!(g<<16>>16))f=-1;else{h=da(f+4|0,4,0,0)|0|0;g=g&65535;f=0;while(1){if((da(h+(f<<1)|0,2,0,0)|0|0)==i<<16>>16)break b;f=f+1|0;if((f|0)>=(g|0)){f=-1;break}}}while(0);f=f<<16>>16}vh(a,j,c,f,e)|0}else vh(a,103,c,e,0)|0;if((d|0)>-1)Mt(a,b,d,e);return}function nt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=b+16|0;c=da(f|0,4,0,0)|0|0;do if(!c){d=da(b+12|0,4,0,0)|0|0;c=da(a|0,4,0,0)|0|0;e=b+48|0;a=pg((da(e|0,2,0,1)|0|0)+1|0,0)|0;ea(f|0,a|0,4,0);if(!a){ea(c+65>>0|0,1|0,1,0);c=0;break}if(!(da(e|0,2,0,0)|0))c=0;else{b=b+4|0;d=d+4|0;c=0;do{a=da((da(b|0,4,0,0)|0|0)+(c<<1)|0,2,0,0)|0|0;if(a<<16>>16<0)a=68;else a=da((da(d|0,4,0,0)|0|0)+((a<<16>>16)*24|0)+21>>0|0,1,0,0)|0|0;ea((da(f|0,4,0,0)|0|0)+c>>0|0,a|0,1,0);c=c+1|0}while((c|0)<(da(e|0,2,0,1)|0|0));a=da(f|0,4,0,0)|0|0}ea(a+c>>0|0,0|0,1,0);c=da(f|0,4,0,0)|0|0}while(0);return c|0}function ot(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;p=b+44|0;if(!((da(p>>0|0,1,0,0)|0)&16)){i=da(a|0,4,0,0)|0|0;k=da(b+68|0,4,0,0)|0|0;a:do if(k){l=da(i+20|0,4,0,0)|0|0;if((l|0)>0){i=da(i+16|0,4,0,0)|0|0;j=0;while(1){h=j+1|0;if((da(i+(j<<4)+12|0,4,0,0)|0|0)==(k|0))break a;if((h|0)<(l|0))j=h;else{j=h;break}}}else j=0}else j=-1e6;while(0);o=Nq(a)|0;if((d|0)<0)d=da(a+68|0,4,0,0)|0|0;i=d+1|0;n=(f|0)!=0;if(n)ea(f|0,d|0,4,0);do if(!((da(p>>0|0,1,0,0)|0)&32)){if((e|0)!=0?(da(e>>0|0,1,0,0)|0|0)==0:0){m=15;break}Pq(a,d,j,b,c)}else m=15;while(0);if((m|0)==15)fs(a,j,da(b+32|0,4,0,0)|0|0,(c|0)==55&1,da(b|0,4,0,0)|0|0);if(g)ea(g|0,i|0,4,0);d=da(b+8|0,4,0,0)|0|0;if(!d)h=0;else{k=(e|0)==0;b=a+8|0;l=i;h=0;while(1){i=l+1|0;if(((da(d+51>>0|0,1,0,0)|0)&3)==2?((da(p>>0|0,1,0,0)|0)&32)!=0&n:0)ea(f|0,l|0,4,0);h=h+1|0;if(!(!k?(da(e+h>>0|0,1,0,0)|0|0)==0:0)){vh(o,c,l,da(d+40|0,4,0,0)|0|0,j)|0;m=da(b|0,4,0,0)|0|0;wh(m,-1,gs(a,d)|0,-6)}d=da(d+20|0,4,0,0)|0|0;if(!d)break;else l=i}}d=a+68|0;if((i|0)>(da(d|0,4,0,0)|0|0))ea(d|0,i|0,4,0)}else h=0;return h|0}function pt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=da(a+408|0,4,0,0)|0|0;f=(f|0)==0?a:f;e=f+452|0;a=da(e|0,4,0,0)|0|0;c=da(f+520|0,4,0,0)|0|0;a:do if((a|0)>0){d=0;while(1){if((da(c+(d<<2)|0,4,0,0)|0|0)==(b|0))break a;d=d+1|0;if((d|0)>=(a|0)){g=4;break}}}else g=4;while(0);do if((g|0)==4){a=Wc(c,(a<<2)+4|0)|0;if(!a){ea((da(f|0,4,0,0)|0|0)+65>>0|0,1|0,1,0);break}else{ea(f+520|0,a|0,4,0);c=da(e|0,4,0,0)|0|0;ea(e|0,c+1|0,4,0);ea(a+(c<<2)|0,b|0,4,0);break}}while(0);return}function qt(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;t=da(a+8|0,4,0,0)|0|0;u=ws(t)|0;r=((da(b+44>>0|0,1,0,0)|0)&32)>>>4^70;if(!(j<<24>>24))wh(t,vh(t,r,d,u,f)|0,g<<16>>16,-14);if((lt(a,b,0,0)|0)!=0|(c|0)!=0){n=i&255;o=ut(a,c,0,0,3,b,n)|0;o=tt(a,b)|0|o;l=a+72|0;k=da(l|0,4,0,0)|0|0;j=k+1|0;p=b+38|0;ea(l|0,j+(da(p|0,2,0,0)|0|0)|0,4,0);vh(t,33,f,j,0)|0;l=da(p|0,2,0,0)|0|0;if(l<<16>>16>0){q=(o|0)==-1;m=k+2|0;k=0;do{if(!q){if((k|0)<32?(1<<k&o|0)!=0:0)s=9}else s=9;if((s|0)==9){s=0;mt(t,b,d,k,m+k|0);l=da(p|0,2,0,0)|0|0}k=k+1|0}while((k|0)<(l<<16>>16|0))}q=t+32|0;p=da(q|0,4,0,0)|0|0;wt(a,c,109,0,1,b,j,n,u);if((p|0)<(da(q|0,4,0,0)|0|0))wh(t,vh(t,r,d,u,f)|0,g<<16>>16,-14);yt(a,b,j,0,0,0)}else j=0;if((da(b+12|0,4,0,0)|0|0)==0?(zt(a,b,d,e,0),vh(t,95,d,h<<24>>24!=0&1,0)|0,h<<24>>24!=0):0)wh(t,-1,da(b|0,4,0,0)|0|0,0);Bt(a,b,0,j,0,0);wt(a,c,109,0,2,b,j,i&255,u);k=da(t+24|0,4,0,0)|0|0;j=~u;if((u|0)<0?(v=da(k+112|0,4,0,0)|0|0,(v|0)!=0):0)ea(v+(j<<2)|0,da(t+32|0,4,0,0)|0|0,4,0);ea(k+88|0,(da(t+32|0,4,0,0)|0|0)+-1|0,4,0);return}function rt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;h=da(a+8|0,4,0,0)|0|0;b=da(a+404|0,4,0,0)|0|0;if(b){j=(da(a|0,4,0,0)|0|0)+16|0;k=a+19|0;l=a+72|0;m=h+32|0;n=h+4|0;i=h+24|0;do{d=da(b+8|0,4,0,0)|0|0;e=da(j|0,4,0,0)|0|0;g=da(b+12|0,4,0,0)|0|0;c=da(k>>0|0,1,0,0)|0|0;if(!(c<<24>>24)){f=(da(l|0,4,0,0)|0|0)+1|0;ea(l|0,f|0,4,0)}else{f=c+-1<<24>>24;ea(k>>0|0,f|0,1,0);f=da(a+((f&255)<<2)+24|0,4,0,0)|0|0}Pq(a,0,d,da((da(e+(d<<4)+12|0,4,0,0)|0|0)+72|0,4,0,0)|0|0,55);e=g+1|0;d=vh(h,77,e,0,0)|0;vh(h,74,0,e,0)|0;c=da(m|0,4,0,0)|0|0;if(c>>>0>d>>>0)ea((da(n|0,4,0,0)|0|0)+(d*20|0)+8|0,c|0,4,0);ea((da(i|0,4,0,0)|0|0)+88|0,c+-1|0,4,0);vh(h,49,g+-1|0,2,f)|0;vh(h,75,0,f,e)|0;c=da(n|0,4,0,0)|0|0;if(c)ea(c+(((da(m|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,8|0,1,0);vh(h,61,0,0,0)|0;Zr(a,f);b=da(b|0,4,0,0)|0|0}while((b|0)!=0)}return}function st(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;ea(e|0,c|0,4,0);if(!c)d=0;else{d=c;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-c&1073741823}ea(e+4|0,d|0,4,0);d=mr(a,b,e,0)|0;i=f;return d|0}function tt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();g=m+4|0;l=m;if((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&524288){d=da(b+16|0,4,0,0)|0|0;if(!d)c=0;else{c=0;do{e=da(d+20|0,4,0,0)|0|0;if((e|0)>0){f=0;do{n=da(d+(f<<3)+36|0,4,0,0)|0|0;c=((n|0)>31?-1:1<<n)|c;f=f+1|0}while((f|0)<(e|0))}d=da(d+4|0,4,0,0)|0|0}while((d|0)!=0)}d=an((da(b+68|0,4,0,0)|0|0)+56|0,da(b|0,4,0,0)|0|0,g)|0;if((d|0)!=0?(h=da(d+8|0,4,0,0)|0|0,(h|0)!=0):0)do{ea(l|0,0|0,4,0);Lt(a,b,h,l,0)|0;d=da(l|0,4,0,0)|0|0;if((d|0)!=0?(k=da(d+46|0,2,0,0)|0|0,k<<16>>16!=0):0){g=k&65535;f=da(d+4|0,4,0,0)|0|0;e=0;do{d=da(f+(e<<1)|0,2,0,0)|0|0;if(d<<16>>16>31)d=-1;else d=1<<(d<<16>>16);c=d|c;e=e+1|0}while((e|0)<(g|0))}h=da(h+12|0,4,0,0)|0|0}while((h|0)!=0)}else c=0;i=m;return c|0}function ut(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;i=(c|0)!=0?110:109;if(!b)h=0;else{h=0;do{if((((da(b+8>>0|0,1,0,1)|0|0|0)==(i|0)?((da(b+9>>0|0,1,0,1)|0|0)&e|0)!=0:0)?($u(da(b+16|0,4,0,0)|0|0,c)|0)!=0:0)?(j=bv(a,b,f,g)|0,(j|0)!=0):0)h=da(j+(d<<2)+16|0,4,0,0)|0|h;b=da(b+32|0,4,0,0)|0|0}while((b|0)!=0)}return h|0}function vt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=b+20|0;d=da(i|0,4,0,0)|0|0;do if(!d){f=da(a|0,4,0,0)|0|0;h=b+38|0;e=(da(h|0,2,0,0)|0|0)+1|0;e=pg(e,((e|0)<0)<<31>>31)|0;if(!e){ea(f+65>>0|0,1|0,1,0);break}if((da(h|0,2,0,0)|0|0)>0){f=b+4|0;d=0;do{ea(e+d>>0|0,da((da(f|0,4,0,0)|0|0)+(d*24|0)+21>>0|0,1,0,0)|0|0|0,1,0);d=d+1|0}while((d|0)<(da(h|0,2,0,0)|0|0))}else d=0;do{ea(e+d>>0|0,0|0,1,0);if((d|0)<=0)break;d=d+-1|0}while((da(e+d>>0|0,1,0,0)|0|0)==65);ea(i|0,e|0,4,0);g=10}else{e=d;g=10}while(0);do if((g|0)==10){d=e;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-e&1073741823;if(d)if(!c){wh(a,-1,e,d);break}else{wh(a,vh(a,48,c,d,0)|0,e,d);break}}while(0);return}function wt(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;if(b)do{if(((da(b+8>>0|0,1,0,1)|0|0|0)==(c|0)?(da(b+9>>0|0,1,0,1)|0|0|0)==(e|0):0)?($u(da(b+16|0,4,0,0)|0|0,d)|0)!=0:0)cv(a,b,f,g,h,i);b=da(b+32|0,4,0,0)|0|0}while((b|0)!=0);return}function xt(a,b,c,d,e,f,g,h,k,l,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,fa=0,ga=0,ha=0,ia=0,ja=0;ja=i;i=i+16|0;if((i|0)>=(j|0))ba();E=ja;aa=(g|0)!=0;J=da(a|0,4,0,0)|0|0;ia=Nq(a)|0;w=da(b+38|0,2,0,0)|0|0;ga=b+44|0;if(!((da(ga>>0|0,1,0,0)|0)&32)){$=1;_=0}else{q=b+8|0;while(1){q=da(q|0,4,0,0)|0|0;if(((da(q+51>>0|0,1,0,0)|0)&3)==2)break;else q=q+20|0}$=da(q+46|0,2,0,1)|0|0;_=q}if(w<<16>>16>0){s=b+36|0;r=b+4|0;q=k<<24>>24==10;p=a+408|0;o=f+1|0;x=ia+4|0;y=ia+32|0;z=ia+24|0;A=k&255;u=w<<16>>16;t=0;do{a:do if((t|0)!=(da(s|0,2,0,0)|0|0)?(B=da(r|0,4,0,0)|0|0,C=da(B+(t*24|0)+20>>0|0,1,0,0)|0|0,D=C&255,C<<24>>24!=0):0){if(q)if(C<<24>>24==10)ha=14;else{w=D;ha=11}else{w=A;ha=11}do if((ha|0)==11){ha=0;if((w|0)==5)w=(da(B+(t*24|0)+4|0,4,0,0)|0|0)==0?2:5;if((w|0)==3|(w|0)==1)break;else if((w|0)==2){ha=14;break}else if((w|0)==4){vh(ia,76,o+t|0,l,0)|0;break a}v=o+t|0;w=vh(ia,77,v,0,0)|0;Qq(a,da((da(r|0,4,0,0)|0|0)+(t*24|0)+4|0,4,0,0)|0|0,v);v=da(y|0,4,0,0)|0|0;if(v>>>0>w>>>0)ea((da(x|0,4,0,0)|0|0)+(w*20|0)+8|0,v|0,4,0);ea((da(z|0,4,0,0)|0|0)+88|0,v+-1|0,4,0);break a}while(0);if((ha|0)==14){ha=0;w=da(p|0,4,0,0)|0|0;ea(((w|0)==0?a:w)+21>>0|0,1|0,1,0);w=2}Z=da(B+(t*24|0)|0,4,0,0)|0|0;ea(E|0,da(b|0,4,0,0)|0|0,4,0);ea(E+4|0,Z|0,4,0);Z=th(J,27824,E)|0;wh(ia,vh(ia,23,1299,w,o+t|0)|0,Z,-1);w=da(x|0,4,0,0)|0|0;if(w)ea(w+(((da(y|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,1|0,1,0)}while(0);t=t+1|0}while((t|0)!=(u|0))}t=da(b+24|0,4,0,0)|0|0;if(((t|0)!=0?((da(J+24|0,4,0,0)|0)&8192|0)==0:0)?(ea(a+92|0,f+1|0,4,0),(da(t|0,4,0,0)|0|0)>0):0){s=t+4|0;o=ia+24|0;u=ia+32|0;w=0;q=k<<24>>24==10?2:k&255;while(1){v=ws(ia)|0;Yu(a,da((da(s|0,4,0,0)|0|0)+(w*20|0)|0,4,0,0)|0|0,v,16);if((q|0)==4){vh(ia,16,0,l,0)|0;p=4}else{r=da((da(s|0,4,0,0)|0|0)+(w*20|0)+4|0,4,0,0)|0|0;if(!r)r=da(b|0,4,0,0)|0|0;p=(q|0)==5?2:q;ys(a,275,p,r,0,3)}r=da(o|0,4,0,0)|0|0;q=~v;if((v|0)<0?(F=da(r+112|0,4,0,0)|0|0,(F|0)!=0):0)ea(F+(q<<2)|0,da(u|0,4,0,0)|0|0,4,0);ea(r+88|0,(da(u|0,4,0,0)|0|0)+-1|0,4,0);w=w+1|0;if((w|0)>=(da(t|0,4,0,0)|0|0))break;else q=p}}if(h<<24>>24!=0&(_|0)==0){s=ws(ia)|0;o=da(b+45>>0|0,1,0,0)|0|0;if(k<<24>>24==10)o=o<<24>>24==10?2:o&255;else o=k&255;if(aa?(vh(ia,79,f,s,g)|0,G=da(ia+4|0,4,0,0)|0|0,(G|0)!=0):0)ea(G+(((da(ia+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-112|0,1,0);b:do if(!((o|0)!=5|k<<24>>24==5)?(n=da(b+8|0,4,0,0)|0|0,(n|0)!=0):0){while(1){if(((da(n+50>>0|0,1,0,0)|0|0)+-3&255)<2)break;n=da(n+20|0,4,0,0)|0|0;if(!n){t=0;break b}}t=vh(ia,16,0,0,0)|0}else t=0;while(0);vh(ia,70,d,s,f)|0;c:do switch(o|0){case 4:{vh(ia,16,0,l,0)|0;o=0;break}case 3:case 2:case 1:{ha=49;break}case 5:{if(((da(J+24|0,4,0,0)|0)&262144|0)!=0?(H=it(a,b,109,0,0)|0,(H|0)!=0):0)o=H;else if(!(lt(a,b,0,0)|0)){if(!(da(b+8|0,4,0,0)|0)){o=1;break c}o=da(a+408|0,4,0,0)|0|0;ea(((o|0)==0?a:o)+20>>0|0,1|0,1,0);zt(a,b,d,e,0);o=1;break c}else o=0;Z=da(a+408|0,4,0,0)|0|0;ea(((Z|0)==0?a:Z)+20>>0|0,1|0,1,0);qt(a,b,o,d,e,f,1,0,5,1);o=1;break}default:{o=2;ha=49}}while(0);if((ha|0)==49){Et(a,o,b);o=0}r=ia+24|0;q=da(r|0,4,0,0)|0|0;p=~s;if((s|0)<0?(I=da(q+112|0,4,0,0)|0|0,(I|0)!=0):0)ea(I+(p<<2)|0,da(ia+32|0,4,0,0)|0|0,4,0);n=ia+32|0;ea(q+88|0,(da(n|0,4,0,0)|0|0)+-1|0,4,0);if(!t){p=0;t=0}else{p=vh(ia,16,0,0,0)|0;n=da(n|0,4,0,0)|0|0;if(n>>>0>t>>>0)ea((da(ia+4|0,4,0,0)|0|0)+(t*20|0)+8|0,n|0,4,0);ea((da(r|0,4,0,0)|0|0)+88|0,n+-1|0,4,0)}}else{p=0;t=0;o=0}w=da(b+8|0,4,0,0)|0|0;if(w){W=f+1|0;X=a+60|0;Y=a+56|0;Z=a+72|0;M=h<<24>>24==0;N=ia+24|0;O=ia+32|0;P=k<<24>>24==10;Q=ia+4|0;R=_+46|0;S=_+32|0;T=_+4|0;U=g+1|0;V=a+408|0;K=J+24|0;L=$&65535;s=k&255;r=b+36|0;q=a+92|0;A=0;n=0;v=-1;while(1){H=c+(n<<2)|0;do if(da(H|0,4,0,0)|0){if(!(A<<24>>24)){vt(ia,b,W);A=1}I=n+e|0;k=ws(ia)|0;G=w+36|0;if(da(G|0,4,0,0)|0){vh(ia,28,0,da(H|0,4,0,0)|0|0,0)|0;ea(q|0,W|0,4,0);ft(a,da(G|0,4,0,0)|0|0,k,16);ea(q|0,0|0,4,0)}J=w+48|0;B=da(J|0,2,0,0)|0|0;E=B&65535;D=da(X|0,4,0,0)|0|0;C=da(Y|0,4,0,0)|0|0;if((C|0)<(E|0)){h=da(Z|0,4,0,0)|0|0;ea(Z|0,h+E|0,4,0);h=h+1|0}else{ea(X|0,D+E|0,4,0);ea(Y|0,C-E|0,4,0);h=D}if(!(B<<16>>16))F=v;else{z=w+4|0;F=0;do{E=da((da(z|0,4,0,0)|0|0)+(F<<1)|0,2,0,0)|0|0;C=E<<16>>16;if(E<<16>>16>=0?E<<16>>16!=(da(r|0,2,0,0)|0|0):0){D=F+h|0;E=W+C|0;ha=81}else{E=F+h|0;if((v|0)!=(E|0)){D=E;v=(da(G|0,4,0,0)|0|0)==0?E:-1;E=f;ha=81}}if((ha|0)==81){ha=0;vh(ia,34,E,D,0)|0;B=da(J|0,2,0,0)|0|0}F=F+1|0;E=B&65535}while((F|0)<(E|0));F=v}vh(ia,49,h,E,da(H|0,4,0,0)|0|0)|0;ct(a,h,da(J|0,2,0,1)|0|0);G=(_|0)==(w|0);if(aa&G&M){v=da(N|0,4,0,0)|0|0;u=~k;if((k|0)<0?(ca=da(v+112|0,4,0,0)|0|0,(ca|0)!=0):0)ea(ca+(u<<2)|0,da(O|0,4,0,0)|0|0,4,0);ea(v+88|0,(da(O|0,4,0,0)|0|0)+-1|0,4,0);v=F;break}z=da(w+50>>0|0,1,0,0)|0|0;y=z&255;if(!(z<<24>>24)){v=da(J|0,2,0,1)|0|0;ct(a,h,v);if((da(Y|0,4,0,0)|0|0)<(v|0)){ea(Y|0,v|0,4,0);ea(X|0,h|0,4,0)}v=da(N|0,4,0,0)|0|0;u=~k;if((k|0)<0?(fa=da(v+112|0,4,0,0)|0|0,(fa|0)!=0):0)ea(fa+(u<<2)|0,da(O|0,4,0,0)|0|0,4,0);ea(v+88|0,(da(O|0,4,0,0)|0|0)+-1|0,4,0);v=F;break}if(P)H=z<<24>>24==10?2:y;else H=s;v=da(w+46|0,2,0,1)|0|0;wh(ia,vh(ia,67,I,k,h)|0,v,-14);do if(!G){E=da(X|0,4,0,0)|0|0;D=da(Y|0,4,0,0)|0|0;if((D|0)<($|0)){E=da(Z|0,4,0,0)|0|0;ea(Z|0,E+$|0,4,0);E=E+1|0;break}else{ea(X|0,E+$|0,4,0);ea(Y|0,D-$|0,4,0);break}}else E=h;while(0);do if(aa|(H|0)==5){if(!((da(ga>>0|0,1,0,0)|0)&32)){vh(ia,112,I,E,0)|0;if(!aa)break;vh(ia,79,E,k,g)|0;z=da(Q|0,4,0,0)|0|0;if(!z)break;ea(z+(((da(O|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-112|0,1,0);break}do if(!G){if(!(da(R|0,2,0,0)|0))break;y=w+4|0;x=0;do{B=da((da(T|0,4,0,0)|0|0)+(x<<1)|0,2,0,0)|0|0;D=da(J|0,2,0,0)|0|0;d:do if(!(D<<16>>16))D=-1;else{z=da(y|0,4,0,0)|0|0;C=D&65535;D=0;while(1){if((da(z+(D<<1)|0,2,0,0)|0|0)==B<<16>>16)break d;D=D+1|0;if((D|0)>=(C|0)){D=-1;break}}}while(0);vh(ia,47,I,D<<16>>16,x+E|0)|0;x=x+1|0}while((x|0)<(da(R|0,2,0,1)|0|0))}while(0);if(!aa)break;y=((da(w+51>>0|0,1,0,0)|0)&3)==2?h:E;D=da(R|0,2,0,0)|0|0;if(!(D<<16>>16))break;C=(D&65535)+(da(O|0,4,0,0)|0|0)|0;B=0;z=78;do{D=br(a,da((da(S|0,4,0,0)|0|0)+(B<<2)|0,4,0,0)|0|0)|0;v=(B|0)==((da(R|0,2,0,1)|0|0)+-1|0);C=v?k:C;z=v?79:z;wh(ia,vh(ia,z,U+(da((da(T|0,4,0,0)|0|0)+(B<<1)|0,2,0,0)|0|0)|0,C,B+y|0)|0,D,-4);D=da(Q|0,4,0,0)|0|0;if(D)ea(D+(((da(O|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-112|0,1,0);B=B+1|0}while((B|0)<(da(R|0,2,0,1)|0|0))}while(0);if((H|0)==3|(H|0)==2|(H|0)==1)mu(a,H,w);else if((H|0)==4)vh(ia,16,0,l,0)|0;else{v=da(V|0,4,0,0)|0|0;ea(((v|0)==0?a:v)+20>>0|0,1|0,1,0);if(!((da(K|0,4,0,0)|0)&262144))z=0;else z=it(a,b,109,0,0)|0;qt(a,b,z,d,e,E,L,0,5,G&1);o=1}D=da(N|0,4,0,0)|0|0;C=~k;do if((k|0)<0){z=da(D+112|0,4,0,0)|0|0;if(!z)break;ea(z+(C<<2)|0,da(O|0,4,0,0)|0|0,4,0)}while(0);ea(D+88|0,(da(O|0,4,0,0)|0|0)+-1|0,4,0);v=da(J|0,2,0,1)|0|0;ct(a,h,v);if((da(Y|0,4,0,0)|0|0)<(v|0)){ea(Y|0,v|0,4,0);ea(X|0,h|0,4,0)}if((E|0)==(h|0)){v=F;break}ct(a,E,$);if((da(Y|0,4,0,0)|0|0)>=($|0)){v=F;break}ea(Y|0,$|0,4,0);ea(X|0,E|0,4,0);v=F}while(0);w=da(w+20|0,4,0,0)|0|0;if(!w)break;else n=n+1|0}}if(t){vh(ia,16,0,t+1|0,0)|0;n=da(ia+32|0,4,0,0)|0|0;if(n>>>0>p>>>0)ea((da(ia+4|0,4,0,0)|0|0)+(p*20|0)+8|0,n|0,4,0);ea((da(ia+24|0,4,0,0)|0|0)+88|0,n+-1|0,4,0)}ea(m|0,o|0,4,0);i=ja;return}function yt(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;V=i;i=i+32|0;if((i|0)>=(j|0))ba();M=V+20|0;K=V+16|0;I=V+12|0;J=V+8|0;T=V+4|0;S=V;O=da(a|0,4,0,0)|0|0;H=a+438|0;N=da(H>>0|0,1,0,0)|0|0;R=O+24|0;a:do if((da(R|0,4,0,0)|0)&524288){L=b+68|0;g=da(L|0,4,0,0)|0|0;b:do if(g){k=da(O+20|0,4,0,0)|0|0;if((k|0)>0){h=da(O+16|0,4,0,0)|0|0;n=0;while(1){m=n+1|0;if((da(h+(n<<4)+12|0,4,0,0)|0|0)==(g|0)){m=n;break b}if((m|0)<(k|0))n=m;else break}}else m=0}else m=-1e6;while(0);G=da((da(O+16|0,4,0,0)|0|0)+(m<<4)|0,4,0,0)|0|0;t=da(b+16|0,4,0,0)|0|0;if(!t)h=b;else{v=(e|0)==0;w=N<<24>>24==0;x=O+65|0;y=c+1|0;z=a+68|0;A=(c|0)==0;B=(d|0)==0;C=a+408|0;D=b+36|0;E=O+284|0;F=(f|0)!=0;u=t;do{ea(K|0,0|0,4,0);ea(I|0,0|0,4,0);c:do if(!v){t=da(u+8|0,4,0,0)|0|0;if(cd(da(b|0,4,0,0)|0|0,t)|0){s=da(u+20|0,4,0,0)|0|0;if((s|0)>0){h=0;do{g=da(u+(h<<3)+36|0,4,0,0)|0|0;if((da(e+(g<<2)|0,4,0,0)|0|0)>-1){U=17;break c}h=h+1|0;if((g|0)==(da(D|0,2,0,0)|0|0)&F){U=17;break c}}while((h|0)<(s|0))}}else U=17}else{t=da(u+8|0,4,0,0)|0|0;U=17}while(0);do if((U|0)==17){U=0;if(!(da(H>>0|0,1,0,0)|0))r=rh(a,0,t,G)|0;else r=Zh(O,t,G)|0;t=(r|0)==0;if(!t?(Lt(a,r,u,K,I)|0)==0:0){t=da(I|0,4,0,0)|0|0;if(!t){ea(J|0,da(u+36|0,4,0,0)|0|0,4,0);t=J}h=u+20|0;if((da(h|0,4,0,0)|0|0)>0){p=da(K|0,4,0,0)|0|0;k=(p|0)==0;n=r+36|0;o=r+4|0;p=p+4|0;g=0;q=0;do{s=t+(q<<2)|0;if((da(s|0,4,0,0)|0|0)==(da(D|0,2,0,0)|0|0))ea(s|0,-1|0,4,0);if(da(E|0,4,0,0)|0){if(k)s=n;else s=(da(p|0,4,0,0)|0|0)+(q<<1)|0;g=(dv(a,da(r|0,4,0,0)|0|0,da((da(o|0,4,0,0)|0|0)+((da(s|0,2,0,0)|0|0)*24|0)|0,4,0,0)|0|0,m)|0)==2&1}q=q+1|0}while((q|0)<(da(h|0,4,0,0)|0|0));s=r}else{s=r;g=0}fs(a,m,da(r+32|0,4,0,0)|0|0,0,da(s|0,4,0,0)|0|0);ea(z|0,(da(z|0,4,0,0)|0|0)+1|0,4,0);if(!A)ev(a,m,r,da(K|0,4,0,0)|0|0,u,t,c,-1,g);d:do if(!B){s=da(C|0,4,0,0)|0|0;s=da(((s|0)==0?a:s)+528|0,4,0,0)|0|0;do if(s){s=da(s|0,4,0,0)|0|0;if((s|0)==(da(u+28|0,4,0,0)|0|0)?(da(u+25>>0|0,1,0,0)|0|0)==7:0)break d;if((s|0)!=(da(u+32|0,4,0,0)|0|0))break;if((da(u+26>>0|0,1,0,0)|0|0)==7)break d}while(0);ev(a,m,r,da(K|0,4,0,0)|0|0,u,t,d,1,g)}while(0);lg(O,da(I|0,4,0,0)|0|0);break}if(w)break a;if(da(x>>0|0,1,0,0)|0)break a;if(t){t=Nq(a)|0;s=u+20|0;h=da(s|0,4,0,0)|0|0;g=(da(t+32|0,4,0,0)|0|0)+1+h|0;if((h|0)>0){h=0;do{vh(t,76,y+(da(u+(h<<3)+36|0,4,0,0)|0|0)|0,g,0)|0;h=h+1|0}while((h|0)<(da(s|0,4,0,0)|0|0))}vh(t,134,da(u+24>>0|0,1,0,1)|0|0,-1,0)|0}}while(0);u=da(u+4|0,4,0,0)|0|0}while((u|0)!=0);h=b;g=da(L|0,4,0,0)|0|0}g=an(g+56|0,da(h|0,4,0,0)|0|0,M)|0;if((g|0)!=0?(l=da(g+8|0,4,0,0)|0|0,P=O+65|0,(l|0)!=0):0){n=(e|0)!=0;o=a+408|0;p=a+20|0;q=a+68|0;r=(d|0)==0;s=(c|0)==0;t=n&1;m=N<<24>>24==0;do{ea(T|0,0|0,4,0);ea(S|0,0|0,4,0);if(!(n?(av(b,l,e,f)|0)==0:0))U=57;do if((U|0)==57){U=0;h=l+24|0;if((((da(h>>0|0,1,0,0)|0|0)==0?((da(R|0,4,0,0)|0)&16777216|0)==0:0)?(da(o|0,4,0,0)|0|0)==0:0)?(da(p>>0|0,1,0,0)|0|0)==0:0)break;if(Lt(a,b,l,T,S)|0){if(m)break a;if(!(da(P>>0|0,1,0,0)|0))break;else break a}g=or(O,0,0,0)|0;if(g){D=da(l|0,4,0,0)|0|0;ea(g+24|0,D|0,4,0);k=g+16|0;ea(k|0,da(D|0,4,0,0)|0|0,4,0);D=D+40|0;ea(D|0,(da(D|0,2,0,0)|0|0)+1<<16>>16|0,2,0);D=da(q|0,4,0,0)|0|0;ea(q|0,D+1|0,4,0);ea(g+48|0,D|0,4,0);if(!r)fv(a,g,b,da(T|0,4,0,0)|0|0,l,da(S|0,4,0,0)|0|0,d,-1);if((!s?(Q=da(l+t+25>>0|0,1,0,0)|0|0,fv(a,g,b,da(T|0,4,0,0)|0|0,l,da(S|0,4,0,0)|0|0,c,1),(da(h>>0|0,1,0,0)|0|0)==0):0)?!(Q<<24>>24==7|Q<<24>>24==9):0){D=da(o|0,4,0,0)|0|0;ea(((D|0)==0?a:D)+21>>0|0,1|0,1,0)}ea(k|0,0|0,4,0);Co(O,g)}lg(O,da(S|0,4,0,0)|0|0)}while(0);l=da(l+12|0,4,0,0)|0|0}while((l|0)!=0)}}while(0);i=V;return}function zt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();o=p;n=da(a+8|0,4,0,0)|0|0;g=da(b+8|0,4,0,0)|0|0;a:do if((da(b+44>>0|0,1,0,0)|0)&32){if(g){f=g;while(1){if(((da(f+51>>0|0,1,0,0)|0)&3)==2){m=5;break a}f=da(f+20|0,4,0,0)|0|0;if(!f){f=0;m=5;break}}}}else{f=0;m=5}while(0);if((m|0)==5?(g|0)!=0:0){k=(e|0)==0;l=0;h=0;b=-1;while(1){if(k){if((g|0)!=(f|0))m=10}else if(!((g|0)==(f|0)?1:(da(e+(l<<2)|0,4,0,0)|0|0)==0))m=10;if((m|0)==10){m=0;b=Ot(a,g,c,0,1,o,h,b)|0;vh(n,111,l+d|0,b,da((((da(g+51>>0|0,1,0,0)|0)&8)==0?g+48|0:g+46|0)|0,2,0,1)|0|0)|0;Pt(a,da(o|0,4,0,0)|0|0);h=g}g=da(g+20|0,4,0,0)|0|0;if(!g)break;else l=l+1|0}}i=p;return}function At(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=Nq(a)|0;n=da(b+8|0,4,0,0)|0|0;if(!n){k=b+44|0;m=0}else{o=(i|0)!=0;k=b+44|0;p=o?17:1;q=t+4|0;r=t+32|0;m=0;s=0;j=n;while(1){l=f+(s<<2)|0;n=da(l|0,4,0,0)|0|0;do if(n){if(da(j+36|0,4,0,0)|0){vh(t,76,n,(da(r|0,4,0,0)|0|0)+2|0,0)|0;n=da(l|0,4,0,0)|0|0}vh(t,110,s+d|0,n,0)|0;if(((da(j+51>>0|0,1,0,0)|0)&3)==2){n=((da(k>>0|0,1,0,0)|0)&32)!=0;if(n|o)m=n?p:16;else{m=1;break}}else if(o)m=16;else{m=1;break}n=da(q|0,4,0,0)|0|0;if(!n)m=1;else{ea(n+(((da(r|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,m|0,1,0);m=1}}while(0);j=da(j+20|0,4,0,0)|0|0;if(!j)break;else s=s+1|0}}if(!((da(k>>0|0,1,0,0)|0)&32)){l=e+1|0;k=a+19|0;j=da(k>>0|0,1,0,0)|0|0;if(!(j<<24>>24)){f=a+72|0;n=(da(f|0,4,0,0)|0|0)+1|0;ea(f|0,n|0,4,0)}else{n=j+-1<<24>>24;ea(k>>0|0,n|0,1,0);n=da(a+((n&255)<<2)+24|0,4,0,0)|0|0}k=b+38|0;vh(t,49,l,da(k|0,2,0,0)|0|0,n)|0;if(!(m<<24>>24))vt(t,b,0);ct(a,l,da(k|0,2,0,0)|0|0);l=a+18|0;if(!(da(l>>0|0,1,0,0)|0))j=(g|0)!=0?5:3;else j=0;if(h)j=(j&255|8)&255;if(!i)k=j;else k=(j&255|16)&255;vh(t,75,c,n,e)|0;if(!(da(l>>0|0,1,0,0)|0))wh(t,-1,da(b|0,4,0,0)|0|0,0);j=da(t+4|0,4,0,0)|0|0;if(j)ea(j+(((da(t+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,k|0,1,0)}return}function Bt(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;V=i;i=i+64|0;if((i|0)>=(j|0))ba();O=V+52|0;N=V+48|0;S=V+8|0;R=V;Q=V+40|0;T=V+32|0;P=V+24|0;if((((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&524288|0)!=0?(M=b+68|0,g=an((da(M|0,4,0,0)|0|0)+56|0,da(b|0,4,0,0)|0|0,V+16|0)|0,(g|0)!=0):0)?(h=da(g+8|0,4,0,0)|0|0,(h|0)!=0):0){L=(e|0)==0;E=(c|0)!=0;F=E&1;G=T+4|0;H=Q+4|0;I=b+4|0;J=P+4|0;K=E?110:109;do{if(!(!L?(av(b,h,e,f)|0)==0:0)){B=da(a|0,4,0,0)|0|0;A=da(h+F+25>>0|0,1,0,0)|0|0;C=A&255;D=h+(F<<2)+28|0;c=da(D|0,4,0,0)|0|0;do if(!(A<<24>>24==0|(c|0)!=0)){ea(O|0,0|0,4,0);ea(N|0,0|0,4,0);if(!(Lt(a,b,h,O,N)|0)){o=h+20|0;if((da(o|0,4,0,0)|0|0)>0){u=34352;t=da(u|0,4,0,0)|0|0;u=da(u+4|0,4,0,0)|0|0;w=34360;v=da(w|0,4,0,0)|0|0;w=da(w+4|0,4,0,0)|0|0;x=h+36|0;z=A<<24>>24!=6&(A<<24>>24!=9|E);y=0;l=0;g=0;k=0;do{c=S;ea(c|0,t|0,4,0);ea(c+4|0,u|0,4,0);c=R;ea(c|0,v|0,4,0);ea(c+4|0,w|0,4,0);c=da(N|0,4,0,0)|0|0;if(!c)c=x;else c=c+(y<<2)|0;n=da(c|0,4,0,0)|0|0;p=da(O|0,4,0,0)|0|0;if(!p)r=34368;else r=da((da(I|0,4,0,0)|0|0)+((da((da(p+4|0,4,0,0)|0|0)+(y<<1)|0,2,0,0)|0|0)*24|0)|0,4,0,0)|0|0;ea(T|0,r|0,4,0);c=da((da((da(h|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(n*24|0)|0,4,0,0)|0|0;ea(Q|0,c|0,4,0);if(!r)q=0;else{s=r;while(1)if(!(da(s>>0|0,1,0,0)|0))break;else s=s+1|0;q=s-r&1073741823}ea(G|0,q|0,4,0);if(!c)m=0;else{r=c;while(1)if(!(da(r>>0|0,1,0,0)|0))break;else r=r+1|0;m=r-c&1073741823}ea(H|0,m|0,4,0);s=Yq(a,27,0,0,S)|0;s=Yq(a,122,s,Yq(a,27,0,0,T)|0,0)|0;k=rs(B,k,Yq(a,79,s,Yq(a,27,0,0,Q)|0,0)|0)|0;if(E){r=Yq(a,27,0,0,S)|0;r=Yq(a,122,r,Yq(a,27,0,0,T)|0,0)|0;s=Yq(a,27,0,0,R)|0;g=rs(B,g,Yq(a,73,r,Yq(a,122,s,Yq(a,27,0,0,T)|0,0)|0,0)|0)|0}if(z){do if(A<<24>>24==9){c=Yq(a,27,0,0,R)|0;c=Yq(a,122,c,Yq(a,27,0,0,T)|0,0)|0}else if(A<<24>>24==8){c=da((da((da(h|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(n*24|0)+4|0,4,0,0)|0|0;if(!c){c=Yq(a,101,0,0,0)|0;break}else{c=Lr(B,c,0,0)|0;break}}else c=Yq(a,101,0,0,0)|0;while(0);l=kr(a,l,c)|0;lr(a,l,Q,0)}y=y+1|0}while((y|0)<(da(o|0,4,0,0)|0|0));c=h}else{c=h;l=0;g=0;k=0}lg(B,da(N|0,4,0,0)|0|0);s=da(da(c|0,4,0,0)|0|0,4,0,0)|0|0;if(!s)m=0;else{c=s;while(1)if(!(da(c>>0|0,1,0,0)|0))break;else c=c+1|0;m=c-s&1073741823}if(A<<24>>24==6){ea(P|0,s|0,4,0);ea(J|0,m|0,4,0);c=st(B,57,34376)|0;if(c)ea(c+1>>0|0,2|0,1,0);r=kr(a,0,c)|0;r=jr(a,r,or(B,0,P,0)|0,k,0,0,0,0,0,0)|0;q=0}else{r=0;q=k}n=B+250|0;o=da(n>>0|0,1,0,0)|0|0;ea(n>>0|0,0|0,1,0);c=m+77|0;p=lh(B,c,0)|0;if(p){ew(p|0,0,c|0)|0;k=p+36|0;ea(p+28|0,k|0,4,0);A=p+76|0;ea(p+48|0,A|0,4,0);ea(p+52|0,m|0,4,0);jw(A|0,s|0,m|0)|0;ea(p+56|0,Lr(B,q,1,0)|0|0,4,0);ea(p+60|0,Or(B,l,1)|0|0,4,0);ea(p+44|0,fr(B,r,1)|0|0,4,0);if(!g){c=p;g=0}else{g=Yq(a,19,g,0,0)|0;ea(p+12|0,Lr(B,g,1,0)|0|0,4,0);c=p}}else{c=0;k=0}ea(n>>0|0,o|0,1,0);Fk(B,q);Fk(B,g);Mk(B,l);Lk(B,r,1);if((da(B+65>>0|0,1,0,0)|0|0)==1){Jk(B,c);c=0;break}if((C|0)==6)ea(k>>0|0,119|0,1,0);else if((C|0)==9?!E:0)ea(k>>0|0,109|0,1,0);else U=49;if((U|0)==49){U=0;ea(k>>0|0,110|0,1,0)}ea(k+4|0,c|0,4,0);C=da(M|0,4,0,0)|0|0;ea(p+20|0,C|0,4,0);ea(p+24|0,C|0,4,0);ea(D|0,c|0,4,0);ea(p+8>>0|0,K|0,1,0)}else c=0}while(0);if(c)cv(a,c,b,d,2,0)}h=da(h+12|0,4,0,0)|0|0}while((h|0)!=0)}i=V;return}function Ct(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;c=da(a+46|0,2,0,0)|0|0;a:do if(c<<16>>16==(da(b+46|0,2,0,0)|0|0)?(da(a+50>>0|0,1,0,0)|0|0)==(da(b+50>>0|0,1,0,0)|0|0):0){if(c<<16>>16){d=da(b+4|0,4,0,0)|0|0;e=da(a+4|0,4,0,0)|0|0;f=b+28|0;g=a+28|0;h=b+32|0;i=a+32|0;m=0;do{if((da(d+(m<<1)|0,2,0,0)|0|0)!=(da(e+(m<<1)|0,2,0,0)|0|0)){c=0;break a}if((da((da(f|0,4,0,0)|0|0)+m>>0|0,1,0,0)|0|0)!=(da((da(g|0,4,0,0)|0|0)+m>>0|0,1,0,0)|0|0)){c=0;break a}j=da((da(h|0,4,0,0)|0|0)+(m<<2)|0,4,0,0)|0|0;k=da((da(i|0,4,0,0)|0|0)+(m<<2)|0,4,0,0)|0|0;l=(k|0)==0;if(!j){if(!l){c=0;break a}}else{if(l){c=0;break a}if(cd(j,k)|0){c=0;break a}}m=m+1|0}while((m|0)<(c&65535|0))}c=(Bu(da(b+36|0,4,0,0)|0|0,da(a+36|0,4,0,0)|0|0,-1)|0)==0&1}else c=0;while(0);return c|0}function Dt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;do if(!((da(c+44>>0|0,1,0,0)|0)&8))d=0;else{f=da(a+408|0,4,0,0)|0|0;f=(f|0)==0?a:f;e=f+404|0;d=da(e|0,4,0,0)|0|0;a:do if(!d)g=5;else while(1){if((da(d+4|0,4,0,0)|0|0)==(c|0))break a;d=da(d|0,4,0,0)|0|0;if(!d){g=5;break}}while(0);if((g|0)==5){d=lh(da(a|0,4,0,0)|0|0,16,0)|0;if(!d){d=0;break}ea(d|0,da(e|0,4,0,0)|0|0,4,0);ea(e|0,d|0,4,0);ea(d+4|0,c|0,4,0);ea(d+8|0,b|0,4,0);e=f+72|0;a=da(e|0,4,0,0)|0|0;ea(d+12|0,a+2|0,4,0);ea(e|0,a+3|0,4,0)}d=da(d+12|0,4,0,0)|0|0}while(0);return d|0}function Et(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=da(c+36|0,2,0,0)|0|0;f=da(a|0,4,0,0)|0|0;d=da(c|0,4,0,0)|0|0;if(e<<16>>16>-1){e=da((da(c+4|0,4,0,0)|0|0)+((e<<16>>16)*24|0)|0,4,0,0)|0|0;ea(g|0,d|0,4,0);ea(g+4|0,e|0,4,0);e=1555;d=th(f,27824,g)|0}else{ea(g|0,d|0,4,0);e=2579;d=th(f,34408,g)|0}ys(a,e,b,d,-1,2);i=h;return}function Ft(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a+316|0;f=da(e|0,4,0,0)|0|0;b=kr(a,f,Lr(da(a|0,4,0,0)|0|0,b,0,0)|0)|0;if(b){a=(da(b|0,4,0,0)|0|0)+-1|0;f=da(b+4|0,4,0,0)|0|0;ea(f+(a*20|0)+16|0,c|0,4,0);a=f+(a*20|0)+13|0;ea(a>>0|0,(da(a>>0|0,1,0,0)|0)&-5|d<<2&4|0,1,0)}ea(e|0,b|0,4,0);return}function Gt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=da(d|0,4,0,0)|0|0;if(!(f+-1&f)){h=_((f|0)==0?1:f<<1,c)|0;a=qo(a,b,h,((h|0)<0)<<31>>31)|0;if(!a){ea(e|0,-1|0,4,0);a=b}else g=4}else{a=b;g=4}if((g|0)==4){ew(a+(_(f,c)|0)|0,0,c|0)|0;ea(e|0,f|0,4,0);ea(d|0,(da(d|0,4,0,0)|0|0)+1|0,4,0)}return a|0}function Ht(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;ea(g|0,0|0,4,0);b=da(a+12|0,4,0,0)|0|0;if((b|0)!=0?(c=da(b+24|0,4,0,0)|0|0,(c|0)>0):0){ea(g|0,c|0,4,0);b=c}else b=0;c=da(a+16|0,4,0,0)|0|0;if((c|0)!=0?(d=da(c+24|0,4,0,0)|0|0,(d|0)>(b|0)):0)ea(g|0,d|0,4,0);e=a+4|0;b=a+20|0;if(!((da(e|0,4,0,0)|0)&2048)){c=da(b|0,4,0,0)|0|0;if(c){su(c,g);b=da(b|0,4,0,0)|0|0;if((b|0)!=0?(f=da(b|0,4,0,0)|0|0,(f|0)>0):0){d=da(b+4|0,4,0,0)|0|0;c=0;b=0;do{b=da((da(d+(c*20|0)|0,4,0,0)|0|0)+4|0,4,0,0)|0|b;c=c+1|0}while((c|0)!=(f|0));b=b&2097408}else b=0;ea(e|0,da(e|0,4,0,0)|0|b|0,4,0)}}else Ds(da(b|0,4,0,0)|0|0,g);ea(a+24|0,(da(g|0,4,0,0)|0|0)+1|0,4,0);i=h;return}function It(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=Nq(a)|0;g=a+72|0;f=(da(g|0,4,0,0)|0|0)+1|0;ea(g|0,f|0,4,0);a=lh(da(a|0,4,0,0)|0|0,8,0)|0;if(a){g=a;ea(g|0,c|0,4,0);ea(g+4|0,d|0,4,0)}wh(e,vh(e,26,0,f,0)|0,a,-13);hq(e,1);if(!(da((da(e|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))Wg(da(e+16|0,4,0,0)|0|0,b,-1,1,0)|0;vh(e,35,f,1,0)|0;return}function Jt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;b=da(a|0,4,0,0)|0|0;c=b+16|0;d=da((da(c|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;do if(!d)b=0;else{if((da(b+63>>0|0,1,0,0)|0|0)!=0?(da(d+8>>0|0,1,0,0)|0|0)==0:0){Ll(d);ea((da(c|0,4,0,0)|0|0)+20|0,0|0,4,0);Dg(b);b=0;break}sh(a,32128,e);b=1}while(0);i=f;return b|0}function Kt(a){a=a|0;var b=0,c=0,d=0;if((da(a+63>>0|0,1,0,0)|0|0)!=0?(b=da(a+20|0,4,0,0)|0|0,(b|0)>0):0){d=a+24|0;c=da(a+16|0,4,0,0)|0|0;while(1){b=b+-1|0;a=da(c+4|0,4,0,0)|0|0;if(a)so(a,(da(d|0,4,0,0)|0)&28|(da(c+8>>0|0,1,0,1)|0));if((b|0)<=0)break;else c=c+16|0}}return}function Lt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();s=v;t=da(c+20|0,4,0,0)|0|0;g=da(c+40|0,4,0,0)|0|0;if((t|0)==1){o=da(b+36|0,2,0,0)|0|0;f=o<<16>>16;if(o<<16>>16>-1)if((g|0)!=0?(cd(da((da(b+4|0,4,0,0)|0|0)+(f*24|0)|0,4,0,0)|0|0,g)|0)!=0:0){r=0;u=8}else e=0;else{r=0;u=8}}else if(e){f=lh(da(a|0,4,0,0)|0|0,t<<2,0)|0;if(!f)e=1;else{ea(e|0,f|0,4,0);r=f;u=8}}else{r=0;u=8}a:do if((u|0)==8){e=da(b+8|0,4,0,0)|0|0;b:do if(e){o=(g|0)==0;q=(t|0)>0;n=b+4|0;p=(r|0)==0;c:while(1){do if((da(e+46|0,2,0,1)|0|0)==(t|0)?(da(e+50>>0|0,1,0,0)|0|0)!=0:0){if(o)if(((da(e+51>>0|0,1,0,0)|0)&3)==2){u=16;break c}else break;d:do if(q){h=da(e+4|0,4,0,0)|0|0;k=da(n|0,4,0,0)|0|0;l=da(e+32|0,4,0,0)|0|0;m=0;while(1){b=da(h+(m<<1)|0,2,0,0)|0|0;g=da(k+(b*24|0)+16|0,4,0,0)|0|0;if(cd(da(l+(m<<2)|0,4,0,0)|0|0,(g|0)!=0?g:11152)|0){g=m;break d}g=da(k+(b*24|0)|0,4,0,0)|0|0;f=0;while(1){b=f+1|0;if(!(cd(da(c+(f<<3)+40|0,4,0,0)|0|0,g)|0)){b=f;u=23;break}if((b|0)<(t|0))f=b;else break}if((u|0)==23){u=0;if(!p)ea(r+(m<<2)|0,da(c+(b<<3)+36|0,4,0,0)|0|0,4,0)}g=m+1|0;if((b|0)==(t|0)){g=m;break d}if((g|0)<(t|0))m=g;else break}}else g=0;while(0);if((g|0)==(t|0))break c}while(0);e=da(e+20|0,4,0,0)|0|0;if(!e)break b}if((u|0)==16)if(!(p|q^1)){f=0;do{ea(r+(f<<2)|0,da(c+(f<<3)+36|0,4,0,0)|0|0,4,0);f=f+1|0}while((f|0)!=(t|0))}ea(d|0,e|0,4,0);e=0;break a}while(0);if(!(da(a+438>>0|0,1,0,0)|0)){o=da(c+8|0,4,0,0)|0|0;ea(s|0,da(da(c|0,4,0,0)|0|0,4,0,0)|0|0,4,0);ea(s+4|0,o|0,4,0);sh(a,32008,s)}lg(da(a|0,4,0,0)|0|0,r);e=1}while(0);i=v;return e|0}function Mt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(!(da(b+12|0,4,0,0)|0)){ea(f|0,0|0,4,0);h=da(a|0,4,0,0)|0|0;e=b+4|0;b=da(e|0,4,0,0)|0|0;Yr(h,da(b+(c*24|0)+4|0,4,0,0)|0|0,da(h+62>>0|0,1,0,0)|0|0,da(b+(c*24|0)+21>>0|0,1,0,0)|0|0,f)|0;b=da(f|0,4,0,0)|0|0;if(b)wh(a,-1,b,-8);if((da((da(e|0,4,0,0)|0|0)+(c*24|0)+21>>0|0,1,0,0)|0|0)==69)vh(a,39,d,0,0)|0}i=g;return}function Nt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!b)d=0;else{d=b;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-b&1073741823}d=Rh(a,b,d,2,1,0)|0;if(d){d=d+2|0;ea(d|0,da(d|0,2,0,1)|0|c&255|0,2,0)}return}function Ot(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;n=da(a+8|0,4,0,0)|0|0;o=da(b+12|0,4,0,0)|0|0;do if(f){i=b+36|0;if(!(da(i|0,4,0,0)|0)){ea(f|0,0|0,4,0);break}else{ea(f|0,ws(n)|0|0,4,0);ea(a+96|0,c|0,4,0);m=a+100|0;ea(m|0,(da(m|0,4,0,0)|0|0)+1|0,4,0);ft(a,da(i|0,4,0,0)|0|0,da(f|0,4,0,0)|0|0,16);break}}while(0);if((e|0)!=0?((da(b+51>>0|0,1,0,0)|0)&8)!=0:0)i=b+46|0;else i=b+48|0;i=da(i|0,2,0,0)|0|0;k=i&65535;l=a+60|0;e=da(l|0,4,0,0)|0|0;m=a+56|0;f=da(m|0,4,0,0)|0|0;if((f|0)<(k|0)){e=a+72|0;j=da(e|0,4,0,0)|0|0;ea(e|0,j+k|0,4,0);j=j+1|0}else{ea(l|0,e+k|0,4,0);ea(m|0,f-k|0,4,0);j=e}do if(!g)e=0;else{if((j|0)==(h|0)?(da(g+36|0,4,0,0)|0|0)==0:0){e=g;break}e=0}while(0);if(i<<16>>16){g=(e|0)==0;h=b+4|0;f=e+4|0;i=0;do{if(!g){e=da((da(h|0,4,0,0)|0|0)+(i<<1)|0,2,0,0)|0|0;if((da((da(f|0,4,0,0)|0|0)+(i<<1)|0,2,0,0)|0|0)!=e<<16>>16)p=21}else{e=da((da(h|0,4,0,0)|0|0)+(i<<1)|0,2,0,0)|0|0;p=21}if((p|0)==21){p=0;mt(n,o,c,e<<16>>16,i+j|0);Oq(n,39)|0}i=i+1|0}while((i|0)<(k|0))}if(d)vh(n,49,j,k,d)|0;ct(a,j,k);if((da(m|0,4,0,0)|0|0)<(k|0)){ea(m|0,k|0,4,0);ea(l|0,j|0,4,0)}return j|0}function Pt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(b){c=da(a+8|0,4,0,0)|0|0;d=da(c+24|0,4,0,0)|0|0;e=~b;if((b|0)<0?(f=da(d+112|0,4,0,0)|0|0,(f|0)!=0):0)ea(f+(e<<2)|0,da(c+32|0,4,0,0)|0|0,4,0);ea(d+88|0,(da(c+32|0,4,0,0)|0|0)+-1|0,4,0);au(a)}return}function Qt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;c=da(b+16|0,4,0,0)|0|0;a:do if((c|0)!=0?(d=da(b+64|0,4,0,0)|0|0,(d|0)!=0):0){c=da(c+8|0,4,0,0)|0|0;b:do if(c){while(1){if(!(cd(da(c|0,4,0,0)|0|0,d)|0))break;c=da(c+20|0,4,0,0)|0|0;if(!c)break b}ea(b+68|0,c|0,4,0);c=0;break a}while(0);ea(e|0,d|0,4,0);ea(e+4|0,0|0,4,0);sh(a,28104,e);ea(a+17>>0|0,1|0,1,0);c=1}else c=0;while(0);i=f;return c|0}function Rt(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){c=St(a,b)|0;if(b&1){d=Rt(da(a+12|0,4,0,0)|0|0,b)|0;return d+c+(Rt(da(a+16|0,4,0,0)|0|0,b)|0)|0}}else c=0;return c|0} 9 function St(a,b){a=a|0;b=b|0;var c=0;if(b&1)if(!(da(a+12|0,4,0,0)|0))b=(da(a+20|0,4,0,0)|0|0)==0?12:28;else b=28;else b=48;if(((da(a+4|0,4,0,0)|0)&1024|0)==0?(c=da(a+8|0,4,0,0)|0|0,(c|0)!=0):0){a=c;while(1)if(!(da(a>>0|0,1,0,0)|0))break;else a=a+1|0;b=(b|1)+(a-c&1073741823)|0}return b+7&-8|0}function Tt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=da(a|0,4,0,0)|0|0;g=d+20|0;c=da(g|0,4,0,0)|0|0;if((c|0)>0){f=0;e=da(d+16|0,4,0,0)|0|0;while(1){d=da((da(e+12|0,4,0,0)|0|0)+16|0,4,0,0)|0|0;if(d){c=d;do{Ut(a,da(c+8|0,4,0,0)|0|0,b);c=da(c|0,4,0,0)|0|0}while((c|0)!=0);c=da(g|0,4,0,0)|0|0}f=f+1|0;if((f|0)>=(c|0))break;else e=e+16|0}}return}function Ut(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=da(b+8|0,4,0,0)|0|0;if(d){k=(c|0)==0;i=b+68|0;j=a+408|0;do{a:do if(!k){g=d+32|0;b=da(d+48|0,2,0,0)|0|0;if(b<<16>>16){f=da(d+4|0,4,0,0)|0|0;b=b&65535;e=0;do{if((da(f+(e<<1)|0,2,0,0)|0|0)>-1?(cd(da((da(g|0,4,0,0)|0|0)+(e<<2)|0,4,0,0)|0|0,c)|0)==0:0){l=9;break a}e=e+1|0}while((e|0)<(b|0))}}else l=9;while(0);if((l|0)==9){l=0;b=da(a|0,4,0,0)|0|0;e=da(i|0,4,0,0)|0|0;b:do if(e){h=da(b+20|0,4,0,0)|0|0;if((h|0)>0){f=da(b+16|0,4,0,0)|0|0;g=0;while(1){b=g+1|0;if((da(f+(g<<4)+12|0,4,0,0)|0|0)==(e|0)){b=g;break b}if((b|0)<(h|0))g=b;else break}}else b=0}else b=-1e6;while(0);h=da(j|0,4,0,0)|0|0;zr(a,b);h=((h|0)==0?a:h)+328|0;ea(h|0,da(h|0,4,0,0)|0|1<<b|0,4,0);us(a,d,-1)}d=da(d+20|0,4,0,0)|0|0}while((d|0)!=0)}return}function Vt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=da((da((da(a|0,4,0,0)|0|0)+16|0,4,0,0)|0|0)+(b<<4)+12|0,4,0,0)|0|0;f=da(a+408|0,4,0,0)|0|0;zr(a,b);f=((f|0)==0?a:f)+328|0;ea(f|0,da(f|0,4,0,0)|0|1<<b|0,4,0);f=a+68|0;d=da(f|0,4,0,0)|0|0;ea(f|0,d+3|0,4,0);gv(a,b,d,0,0);e=(da(a+72|0,4,0,0)|0|0)+1|0;f=da(f|0,4,0,0)|0|0;c=da(c+16|0,4,0,0)|0|0;if(c)do{hv(a,da(c+8|0,4,0,0)|0|0,0,d,e,f);c=da(c|0,4,0,0)|0|0}while((c|0)!=0);iv(a,b);return}function Wt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;d=da(a|0,4,0,0)|0|0;g=da(b+68|0,4,0,0)|0|0;a:do if(g){h=da(d+20|0,4,0,0)|0|0;if((h|0)>0){e=da(d+16|0,4,0,0)|0|0;d=0;while(1){f=d+1|0;if((da(e+(d<<4)+12|0,4,0,0)|0|0)==(g|0)){f=d;break a}if((f|0)<(h|0))d=f;else break}}else f=0}else f=-1e6;while(0);d=da(a+408|0,4,0,0)|0|0;zr(a,f);d=((d|0)==0?a:d)+328|0;ea(d|0,da(d|0,4,0,0)|0|1<<f|0,4,0);d=a+68|0;e=da(d|0,4,0,0)|0|0;ea(d|0,e+3|0,4,0);if(!c)gv(a,f,e,da(b|0,4,0,0)|0|0,28544);else gv(a,f,e,da(c|0,4,0,0)|0|0,28536);hv(a,b,c,e,(da(a+72|0,4,0,0)|0|0)+1|0,da(d|0,4,0,0)|0|0);iv(a,f);return}function Xt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;e=((c|0)/2|0)+1|0;e=lh(a,e,((e|0)<0)<<31>>31)|0;a=c+-1|0;if(e){if((a|0)>0){d=0;do{f=da(b+d>>0|0,1,0,0)|0|0;g=da(b+(d|1)>>0|0,1,0,0)|0|0;ea(e+((d|0)/2|0)>>0|0,(0-(g>>>6&1)&9)+g&15|(0-(f>>>6&1)&9)+f<<4|0,1,0);d=d+2|0}while((d|0)<(a|0));a=(c&-2|0)/2|0}else a=0;ea(e+a>>0|0,0|0,1,0)}return e|0}function Yt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();f=k+8|0;h=k;g=da(a+8|0,4,0,0)|0|0;e=b+8|0;do if(!((da(b+4|0,4,0,0)|0)&1024)){e=da(e|0,4,0,0)|0|0;b=ii(e,h)|0;if((b|0)!=0?!((b|0)==2&(c|0)!=0):0)if(!(Ec(e,29144,2)|0)){ea(f|0,e|0,4,0);sh(a,29152,f);break}else{Zt(g,e,c,d);break}if(c){if((b|0)==2){b=0;e=-2147483648}else{b=h;b=cw(0,0,da(b|0,4,0,0)|0|0,da(b+4|0,4,0,0)|0|0)|0;e=C}c=h;ea(c|0,b|0,4,0);ea(c+4|0,e|0,4,0)}b=lh(da(g|0,4,0,0)|0|0,8,0)|0;if(b){e=h;a=da(e|0,4,0,0)|0|0;e=da(e+4|0,4,0,0)|0|0;c=b;f=c;ea(f>>0|0,a|0,1,0);ea(f+1>>0|0,a>>8|0,1,0);ea(f+2>>0|0,a>>16|0,1,0);ea(f+3>>0|0,a>>24|0,1,0);c=c+4|0;ea(c>>0|0,e|0,1,0);ea(c+1>>0|0,e>>8|0,1,0);ea(c+2>>0|0,e>>16|0,1,0);ea(c+3>>0|0,e>>24|0,1,0)}wh(g,vh(g,26,0,d,0)|0,b,-13)}else{b=da(e|0,4,0,0)|0|0;vh(g,25,(c|0)==0?b:0-b|0,d,0)|0}while(0);i=k;return}function Zt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(b){e=b;while(1)if(!(da(e>>0|0,1,0,0)|0))break;else e=e+1|0;Sl(b,f,e-b&1073741823,1)|0;if(c)ea(f|0,+-+(+da(f|0,8,1,0)),8,1);e=lh(da(a|0,4,0,0)|0|0,8,0)|0;if(e){c=f;f=da(c|0,4,0,0)|0|0;c=da(c+4|0,4,0,0)|0|0;b=e;h=b;ea(h>>0|0,f|0,1,0);ea(h+1>>0|0,f>>8|0,1,0);ea(h+2>>0|0,f>>16|0,1,0);ea(h+3>>0|0,f>>24|0,1,0);b=b+4|0;ea(b>>0|0,c|0,1,0);ea(b+1>>0|0,c>>8|0,1,0);ea(b+2>>0|0,c>>16|0,1,0);ea(b+3>>0|0,c>>24|0,1,0)}wh(a,vh(a,133,0,d,0)|0,e,-12)}i=g;return}function _t(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))ba();e=k;a:do if(!b)g=0;else while(1){d=da(b+4|0,4,0,0)|0|0;if(!(d&4096)){g=b;break a}if(!(d&262144))b=b+12|0;else b=da((da(b+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;b=da(b|0,4,0,0)|0|0;if(!b){g=0;break}}while(0);b:do if(((da(a+23>>0|0,1,0,0)|0|0)!=0?(da(g>>0|0,1,0,0)|0|0)!=-97:0)?(ea(e+0|0,0|0,4,0),ea(e+4|0,0|0,4,0),ea(e+8|0,0|0,4,0),ea(e+12|0,0|0,4,0),ea(e+16|0,0|0,4,0),ea(e+20|0,0|0,4,0),d=e+20|0,ea(d>>0|0,2|0,1,0),ea(e|0,78|0,4,0),ea(e+4|0,79|0,4,0),ea(e+24|0,0|0,4,0),qs(e,g)|0,(da(d>>0|0,1,0,0)|0|0)!=0):0){d=da(a+316|0,4,0,0)|0|0;ea(c|0,0|0,4,0);c:do if((d|0)!=0?(f=da(d|0,4,0,0)|0|0,(f|0)>0):0){b=f;d=da(d+4|0,4,0,0)|0|0;while(1){if(((da(d+13>>0|0,1,0,0)|0)&4)!=0?(Bu(da(d|0,4,0,0)|0|0,g,-1)|0)==0:0)break;b=b+-1|0;if((b|0)<=0)break c;else d=d+20|0}d=da(d+16|0,4,0,0)|0|0;break b}while(0);b=a+72|0;d=(da(b|0,4,0,0)|0|0)+1|0;ea(b|0,d|0,4,0);Ft(a,g,d,1)}else h=18;while(0);do if((h|0)==18){b=a+19|0;d=da(b>>0|0,1,0,0)|0|0;if(!(d<<24>>24)){b=a+72|0;d=(da(b|0,4,0,0)|0|0)+1|0;ea(b|0,d|0,4,0)}else{d=d+-1<<24>>24;ea(b>>0|0,d|0,1,0);d=da(a+((d&255)<<2)+24|0,4,0,0)|0|0}b=hs(a,g,d)|0;if((b|0)==(d|0)){ea(c|0,d|0,4,0);break}else{Zr(a,d);ea(c|0,0|0,4,0);d=b;break}}while(0);i=k;return d|0}function $t(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;j=Nu(a,b,c)|0;i=Au(b,jv(c)|0)|0;c=a+8|0;b=da(c|0,4,0,0)|0|0;wh(b,vh(b,d,f,g,e)|0,j,-4);c=da(c|0,4,0,0)|0|0;b=da(c+4|0,4,0,0)|0|0;if(b)ea(b+(((da(c+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,i&255|h|0,1,0);return}function au(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0;b=a+100|0;ea(b|0,(da(b|0,4,0,0)|0|0)+-1|0,4,0);e=a+19|0;h=0;i=a+116|0;while(1){f=i+12|0;g=da(f|0,4,0,0)|0|0;if((g|0)!=0?(da(i+8|0,4,0,0)|0|0)>(da(b|0,4,0,0)|0|0):0){c=i+6|0;if(da(c>>0|0,1,0,0)|0){d=da(e>>0|0,1,0,0)|0|0;if((d&255)<8){ea(e>>0|0,d+1<<24>>24|0,1,0);ea(a+((d&255)<<2)+24|0,g|0,4,0)}ea(c>>0|0,0|0,1,0)}ea(f|0,0|0,4,0)}h=h+1|0;if((h|0)==10)break;else i=i+20|0}return}function bu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;g=da(a|0,4,0,0)|0|0;a:do if(b){b:while(1){d=da(b+4|0,4,0,0)|0|0;if(d&512){b=0;h=21;break a}switch(da(b>>0|0,1,0,0)|0|0){case 62:case -102:case -100:{h=8;break}case -97:{if((da(b+38>>0|0,1,0,0)|0|0)==95){h=7;break b}else h=8;break}case 95:{h=7;break b}case 38:case -98:{b=da(b+12|0,4,0,0)|0|0;break}default:h=11}if((h|0)==8){c=da(b+44|0,4,0,0)|0|0;if(!c)h=11;else{h=9;break}}c:do if((h|0)==11){h=0;if(!(d&256)){b=0;h=21;break a}c=da(b+12|0,4,0,0)|0|0;if((c|0)!=0?((da(c+4|0,4,0,0)|0)&256|0)!=0:0){b=c;continue b}e=da(b+16|0,4,0,0)|0|0;c=da(b+20|0,4,0,0)|0|0;if((c|0)!=0&(d&2048|0)==0?(f=da(c|0,4,0,0)|0|0,(f|0)>0):0){c=da(c+4|0,4,0,0)|0|0;d=0;while(1){b=da(c+(d*20|0)|0,4,0,0)|0|0;d=d+1|0;if((da(b+4|0,4,0,0)|0)&256)break c;if((d|0)>=(f|0)){b=e;break}}}else b=e}while(0);if(!b){b=0;h=21;break a}}if((h|0)==7)b=vs(a,da(g+62>>0|0,1,0,0)|0|0,0,da(b+8|0,4,0,0)|0|0)|0;else if((h|0)==9){b=da(b+32|0,2,0,0)|0|0;if(b<<16>>16<=-1){b=0;h=21;break}b=Xn(g,da(g+62>>0|0,1,0,0)|0|0,da((da(c+4|0,4,0,0)|0|0)+((b<<16>>16)*24|0)+16|0,4,0,0)|0|0,0)|0}if(b)if(!(vs(a,da((da(a|0,4,0,0)|0|0)+62>>0|0,1,0,0)|0|0,b,da(b|0,4,0,0)|0|0)|0))b=0;else h=21;else{b=0;h=21}}else{b=0;h=21}while(0);return b|0}function cu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n+4|0;l=n;ea(m|0,0|0,4,0);ea(l|0,0|0,4,0);if((((d|0)!=0?(da(d>>0|0,1,0,0)|0|0)==-102:0)?(g=da(d+44|0,4,0,0)|0|0,(g|0)!=0):0)?((da(g+44>>0|0,1,0,0)|0)&16)!=0:0){d=g+60|0;while(1){d=da(d|0,4,0,0)|0|0;if((da(d|0,4,0,0)|0|0)==(a|0))break;else d=d+24|0}f=da(d+8|0,4,0,0)|0|0;e=(da(f|0,4,0,0)|0|0)+72|0;if((da(e|0,4,0,0)|0|0)!=0?(k=b+24|0,h=jh(a,da(k|0,4,0,0)|0|0)|0,(h|0)!=0):0){g=da(h>>0|0,1,0,0)|0|0;if(g<<24>>24){d=h;do{ea(d>>0|0,da(9328+(g&255)>>0|0,1,0,0)|0|0|0,1,0);d=d+1|0;g=da(d>>0|0,1,0,0)|0|0}while(g<<24>>24!=0)}c=sc[(fa(da(e|0,4,0,0)|0|0,31|0)|0)&31](f,c,h,m,l)|0;lg(a,h);if(c){d=da(k|0,4,0,0)|0|0;if(!d){d=37;f=0}else{f=d;while(1)if(!(da(f>>0|0,1,0,0)|0))break;else f=f+1|0;d=(f-d&1073741823)+37|0;f=0}e=lh(a,d,f)|0;if(e){ew(e|0,0,d|0)|0;g=e+0|0;f=b+0|0;d=g+36|0;do{ea(g|0,da(f|0,4,0,0)|0|0,4,0);g=g+4|0;f=f+4|0}while((g|0)<(d|0));g=e+36|0;ea(e+24|0,g|0,4,0);d=da(k|0,4,0,0)|0|0;if(!d)f=1;else{f=d;while(1)if(!(da(f>>0|0,1,0,0)|0))break;else f=f+1|0;f=(f-d&1073741823)+1|0}jw(g|0,d|0,f|0)|0;ea(e+12|0,da(m|0,4,0,0)|0|0,4,0);ea(e+4|0,da(l|0,4,0,0)|0|0,4,0);l=e+2|0;ea(l|0,da(l|0,2,0,1)|0|16|0,2,0)}else e=b}else e=b}else e=b}else e=b;i=n;return e|0}function du(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))ba();w=y;u=y+72|0;m=y+52|0;v=y+48|0;l=y+28|0;x=Nq(a)|0;a:do if(!x)e=0;else{e=a+100|0;ea(e|0,(da(e|0,4,0,0)|0|0)+1|0,4,0);e=b+4|0;if(!((da(e|0,4,0,0)|0)&32)){t=Nq(a)|0;s=a+80|0;f=da(s|0,4,0,0)|0|0;ea(s|0,f+1|0,4,0);f=vh(t,44,f,0,0)|0}else f=-1;if((da(a+450>>0|0,1,0,0)|0|0)==2){h=da(a|0,4,0,0)|0|0;s=(da(b>>0|0,1,0,0)|0|0)==75?29104:29112;t=da(a+468|0,4,0,0)|0|0;ea(w|0,((f|0)>-1?10360:29088)|0,4,0);ea(w+4|0,s|0,4,0);ea(w+8|0,t|0,4,0);h=th(h,29056,w)|0;wh(x,vh(x,157,da(a+464|0,4,0,0)|0|0,0,0)|0,h,-1);h=b}else h=b;k=da(h>>0|0,1,0,0)|0|0;b:do if(k<<24>>24==75){l=b+12|0;g=jv(da(l|0,4,0,0)|0|0)|0;ea(u>>0|0,g|0,1,0);r=a+68|0;s=da(r|0,4,0,0)|0|0;ea(r|0,s+1|0,4,0);r=b+28|0;ea(r|0,s|0,4,0);q=(d|0)!=0;s=vh(x,57,s,q&1^1,0)|0;if(q)t=0;else t=Qs(da(a|0,4,0,0)|0|0,1,1)|0;k=b+20|0;do if(!((da(e|0,4,0,0)|0)&2048)){p=da(k|0,4,0,0)|0|0;if(p){if(!(g<<24>>24))ea(u>>0|0,65|0,1,0);if(t)ea(t+20|0,bu(a,da(l|0,4,0,0)|0|0)|0|0,4,0);d=a+19|0;g=da(d>>0|0,1,0,0)|0|0;if(g<<24>>24){e=g+-1<<24>>24;ea(d>>0|0,e|0,1,0);h=da(a+((e&255)<<2)+24|0,4,0,0)|0|0;if(!(e<<24>>24))n=24;else{o=g+-2<<24>>24;ea(d>>0|0,o|0,1,0);o=da(a+((o&255)<<2)+24|0,4,0,0)|0|0}}else{n=a+72|0;h=(da(n|0,4,0,0)|0|0)+1|0;ea(n|0,h|0,4,0);n=24}if((n|0)==24){e=a+72|0;o=(da(e|0,4,0,0)|0|0)+1|0;ea(e|0,o|0,4,0)}if(q)vh(x,28,0,o,0)|0;k=da(p|0,4,0,0)|0|0;if((k|0)>0){g=w+20|0;e=w+4|0;n=w+24|0;m=x+32|0;d=da(p+4|0,4,0,0)|0|0;while(1){l=da(d|0,4,0,0)|0|0;do if((f|0)>-1){ea(w+0|0,0|0,4,0);ea(w+4|0,0|0,4,0);ea(w+8|0,0|0,4,0);ea(w+12|0,0|0,4,0);ea(w+16|0,0|0,4,0);ea(w+20|0,0|0,4,0);ea(g>>0|0,1|0,1,0);ea(w|0,78|0,4,0);ea(e|0,79|0,4,0);ea(n|0,0|0,4,0);qs(w,l)|0;if(da(g>>0|0,1,0,0)|0)break;yh(x,f);f=-1}while(0);do if(q)if(!(Ls(l,v)|0)){p=hs(a,l,h)|0;vh(x,38,p,(da(m|0,4,0,0)|0|0)+2|0,0)|0;vh(x,75,da(r|0,4,0,0)|0|0,o,p)|0;break}else{vh(x,84,da(r|0,4,0,0)|0|0,o,da(v|0,4,0,0)|0|0)|0;break}else{p=hs(a,l,h)|0;wh(x,vh(x,49,p,1,o)|0,u,1);ct(a,p,1);vh(x,110,da(r|0,4,0,0)|0|0,o,0)|0}while(0);k=k+-1|0;if((k|0)<=0)break;else d=d+20|0}}Zr(a,h);Zr(a,o)}if(!t){g=f;e=0;break b}}else{h=da(k|0,4,0,0)|0|0;w=da(r|0,4,0,0)|0|0;ea(m>>0|0,11|0,1,0);ea(m+4|0,w|0,4,0);ea(m+8|0,0|0,4,0);ea(m+12|0,0|0,4,0);ea(m+1>>0|0,g|0,1,0);ea(h+8|0,0|0,4,0);if(!(hr(a,h,m)|0)){ea(t+20|0,Nu(a,da(l|0,4,0,0)|0|0,da(da((da(h|0,4,0,0)|0|0)+4|0,4,0,0)|0|0,4,0,0)|0|0)|0|0,4,0);break}if(!t){e=0;break a}a=(da(t|0,4,0,0)|0|0)+-1|0;ea(t|0,a|0,4,0);if(a){e=0;break a}Vc(t);e=0;break a}while(0);wh(x,s,t,-6);g=f;e=0}else{g=da(b+20|0,4,0,0)|0|0;h=a+72|0;e=(da(h|0,4,0,0)|0|0)+1|0;ea(h|0,e|0,4,0);ea(l>>0|0,0|0,1,0);h=l+4|0;ea(h|0,e|0,4,0);ea(l+1>>0|0,0|0,1,0);d=l+8|0;ea(d|0,0|0,4,0);ea(l+12|0,0|0,4,0);if(k<<24>>24==119){ea(l>>0|0,10|0,1,0);ea(d|0,e|0,4,0);vh(x,28,0,e,0)|0}else{ea(l>>0|0,3|0,1,0);vh(x,25,0,e,0)|0}w=g+60|0;Fk(da(a|0,4,0,0)|0|0,da(w|0,4,0,0)|0|0);ea(w|0,Yq(a,132,0,0,20624)|0|0,4,0);ea(g+8|0,0|0,4,0);if(hr(a,g,l)|0){e=0;break a}g=f;e=da(h|0,4,0,0)|0|0}while(0);if(c)kv(x,da(b+28|0,4,0,0)|0|0,c);if((g|0)>-1){f=da(x+32|0,4,0,0)|0|0;if(f>>>0>g>>>0)ea((da(x+4|0,4,0,0)|0|0)+(g*20|0)+8|0,f|0,4,0);ea((da(x+24|0,4,0,0)|0|0)+88|0,f+-1|0,4,0)}au(a)}while(0);i=y;return e|0}function eu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();h=v+4|0;s=v+8|0;q=v;ea(h|0,0|0,4,0);u=da(a+8|0,4,0,0)|0|0;e=(c|0)==(d|0);g=lv(a,b,3,e?0:h)|0;ea(s>>0|0,mv(b)|0|0,1,0);k=a+100|0;ea(k|0,(da(k|0,4,0,0)|0|0)+1|0,4,0);k=a+19|0;f=da(k>>0|0,1,0,0)|0|0;if(!(f<<24>>24)){o=a+72|0;t=(da(o|0,4,0,0)|0|0)+1|0;ea(o|0,t|0,4,0)}else{t=f+-1<<24>>24;ea(k>>0|0,t|0,1,0);t=da(a+((t&255)<<2)+24|0,4,0,0)|0|0}f=b+12|0;Qq(a,da(f|0,4,0,0)|0|0,t);do if((g|0)==5){o=da(b+20|0,4,0,0)|0|0;m=bu(a,da(f|0,4,0,0)|0|0)|0;p=ws(u)|0;n=(d|0)!=(c|0);if(n){f=da(k>>0|0,1,0,0)|0|0;if(!(f<<24>>24)){l=a+72|0;f=(da(l|0,4,0,0)|0|0)+1|0;ea(l|0,f|0,4,0)}else{f=f+-1<<24>>24;ea(k>>0|0,f|0,1,0);f=da(a+((f&255)<<2)+24|0,4,0,0)|0|0}vh(u,85,t,t,f)|0;l=f}else l=0;if((da(o|0,4,0,0)|0|0)>0){k=o+4|0;h=(l|0)==0;g=u+4|0;f=u+32|0;e=0;do{b=_t(a,da((da(k|0,4,0,0)|0|0)+(e*20|0)|0,4,0,0)|0|0,q)|0;if(!h?(Tu(da((da(k|0,4,0,0)|0|0)+(e*20|0)|0,4,0,0)|0|0)|0)!=0:0)vh(u,85,l,b,l)|0;if((e|0)<((da(o|0,4,0,0)|0|0)+-1|0)|n){wh(u,vh(u,79,t,p,b)|0,m,-4);b=da(g|0,4,0,0)|0|0;if(b)ea(b+(((da(f|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,da(s>>0|0,1,0,0)|0|0|0,1,0)}else{wh(u,vh(u,78,t,c,b)|0,m,-4);b=da(g|0,4,0,0)|0|0;if(b)ea(b+(((da(f|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,da(s>>0|0,1,0,1)|0|0|16|0,1,0)}Zr(a,da(q|0,4,0,0)|0|0);e=e+1|0}while((e|0)<(da(o|0,4,0,0)|0|0))}if(l){vh(u,76,l,d,0)|0;vh(u,16,0,c,0)|0}f=da(u+24|0,4,0,0)|0|0;e=~p;if((p|0)<0?(r=da(f+112|0,4,0,0)|0|0,(r|0)!=0):0)ea(r+(e<<2)|0,da(u+32|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(u+32|0,4,0,0)|0|0)+-1|0,4,0);Zr(a,l)}else{do if(Tu(da(f|0,4,0,0)|0|0)|0){if(e){vh(u,76,t,c,0)|0;break}f=vh(u,77,t,0,0)|0;vh(u,108,da(b+28|0,4,0,0)|0|0,c,0)|0;vh(u,16,0,d,0)|0;e=da(u+32|0,4,0,0)|0|0;if(e>>>0>f>>>0)ea((da(u+4|0,4,0,0)|0|0)+(f*20|0)+8|0,e|0,4,0);ea((da(u+24|0,4,0,0)|0|0)+88|0,e+-1|0,4,0)}while(0);if((g|0)==1){vh(u,38,t,c,0)|0;vh(u,70,da(b+28|0,4,0,0)|0|0,c,t)|0;break}wh(u,vh(u,48,t,1,0)|0,s,1);e=da(b+28|0,4,0,0)|0|0;if(!(da(h|0,4,0,0)|0)){wh(u,vh(u,68,e,c,t)|0,1,-14);break}f=vh(u,69,e,0,t)|0;wh(u,f,1,-14);vh(u,76,da(h|0,4,0,0)|0|0,d,0)|0;vh(u,16,0,c,0)|0;e=da(u+32|0,4,0,0)|0|0;if(e>>>0>f>>>0)ea((da(u+4|0,4,0,0)|0|0)+(f*20|0)+8|0,e|0,4,0);ea((da(u+24|0,4,0,0)|0|0)+88|0,e+-1|0,4,0)}while(0);Zr(a,t);au(a);i=v;return}function fu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0.0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+48|0;if((i|0)>=(j|0))ba();v=w;t=w+28|0;c=da(a+24|0,4,0,0)|0|0;u=da(c|0,4,0,0)|0|0;r=b+4|0;f=da(r|0,4,0,0)|0|0;a:do if(!(f&4)){ea(r|0,f|4|0,4,0);switch(da(b>>0|0,1,0,1)|0|0){case 135:{d=c+28|0;c=da(d|0,2,0,0)|0|0;if(c&4){ea(v|0,27456|0,4,0);sh(u,27472,v);c=da(d|0,2,0,0)|0|0}if(c&16){ea(v|0,27456|0,4,0);sh(u,27512,v)}break}case 153:{q=b+20|0;n=da(q|0,4,0,0)|0|0;if(!n)e=0;else e=da(n|0,4,0,0)|0|0;f=da((da(u|0,4,0,0)|0|0)+62>>0|0,1,0,0)|0|0;s=c+28|0;if((da(s|0,2,0,0)|0)&16){ea(v|0,27200|0,4,0);sh(u,27512,v)}o=da(b+8|0,4,0,0)|0|0;if(!o)l=0;else{g=o;while(1)if(!(da(g>>0|0,1,0,0)|0))break;else g=g+1|0;l=g-o&1073741823}d=Rh(da(u|0,4,0,0)|0|0,o,l,e,f,0)|0;do if(!d){if(Rh(da(u|0,4,0,0)|0|0,o,l,-2,f,0)|0){ea(v|0,l|0,4,0);ea(v+4|0,o|0,4,0);sh(u,27392,v);o=c+24|0;ea(o|0,(da(o|0,4,0,0)|0|0)+1|0,4,0);break}if(!(da((da(u|0,4,0,0)|0|0)+145>>0|0,1,0,0)|0)){ea(v|0,l|0,4,0);ea(v+4|0,o|0,4,0);sh(u,27368,v);o=c+24|0;ea(o|0,(da(o|0,4,0,0)|0|0)+1|0,4,0)}}else{k=(da(d+12|0,4,0,0)|0|0)==0;p=d+2|0;do if((da(p|0,2,0,0)|0)&1024){ea(r|0,da(r|0,4,0,0)|0|266240|0,4,0);if((e|0)!=2){ea(b+28|0,((da((da(d+24|0,4,0,0)|0)>>0|0,1,0,0)|0|0)==117?8388608:125829120)|0,4,0);break}g=da((da(n+4|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;ea(v|0,+(-1.0),8,1);if((da(g>>0|0,1,0,0)|0|0)==-123){f=da(g+8|0,4,0,0)|0|0;if(!f)g=0;else{g=f;while(1)if(!(da(g>>0|0,1,0,0)|0))break;else g=g+1|0;g=g-f&1073741823}Sl(f,v,g,1)|0;h=+(+da(v|0,8,1,0));if(!(h>1.0)){g=~~(h*134217728.0);ea(b+28|0,g|0,4,0);if((g|0)>=0)break}else m=22}else m=22;if((m|0)==22)ea(b+28|0,-1|0,4,0);sh(u,27216,v);m=c+24|0;ea(m|0,(da(m|0,4,0,0)|0|0)+1|0,4,0)}while(0);g=d+24|0;f=Rq(u,31,0,da(g|0,4,0,0)|0|0,0)|0;if(!f){if((da(p|0,2,0,0)|0)&2048)ea(r|0,da(r|0,4,0,0)|0|524288|0,4,0);if(!k)break;g=da(s|0,2,0,0)|0|0;if(!(g&1)){ea(v|0,l|0,4,0);ea(v+4|0,o|0,4,0);sh(u,27328,v);o=c+24|0;ea(o|0,(da(o|0,4,0,0)|0|0)+1|0,4,0);break}ea(s|0,g&65534|0,2,0);ku(a,n)|0;ea(b>>0|0,-101|0,1,0);f=b+38|0;ea(f>>0|0,0|0,1,0);b:do if(c){e=v+24|0;d=t+4|0;g=t+8|0;while(1){o=da(c+4|0,4,0,0)|0|0;ea(v+0|0,0|0,4,0);ea(v+4|0,0|0,4,0);ea(v+8|0,0|0,4,0);ea(v+12|0,0|0,4,0);ea(v+16|0,0|0,4,0);ea(v+20|0,0|0,4,0);ea(v|0,87|0,4,0);ea(e|0,t|0,4,0);ea(t|0,o|0,4,0);ea(d|0,0|0,4,0);ea(g|0,0|0,4,0);ku(v,da(q|0,4,0,0)|0|0)|0;if((da(d|0,4,0,0)|0|0)>0)break;if(!(da(g|0,4,0,0)|0))break;ea(f>>0|0,(da(f>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);c=da(c+16|0,4,0,0)|0|0;if(!c)break b}o=c+28|0;ea(o|0,(da(p|0,2,0,1)|0)&4096|(da(o|0,2,0,1)|0)|2|0,2,0)}while(0);ea(s|0,da(s|0,2,0,1)|0|1|0,2,0);c=1;break a}else if((f|0)==1){ea(v|0,da(g|0,4,0,0)|0|0,4,0);sh(u,27288,v);o=c+24|0;ea(o|0,(da(o|0,4,0,0)|0|0)+1|0,4,0)}ea(b>>0|0,101|0,1,0);c=1;break a}while(0);ku(a,n)|0;c=1;break a}case 27:{c=nv(u,0,0,da(b+8|0,4,0,0)|0|0,c,b)|0;break a}case 122:{d=da(b+16|0,4,0,0)|0|0;if((da(d>>0|0,1,0,0)|0|0)==27){f=d;d=b;e=0}else{f=da(d+16|0,4,0,0)|0|0;e=da((da(b+12|0,4,0,0)|0|0)+8|0,4,0,0)|0|0}c=nv(u,e,da((da(d+12|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,da(f+8|0,4,0,0)|0|0,c,b)|0;break a}case 75:case 20:case 119:{if(f&2048){g=c+20|0;d=da(g|0,4,0,0)|0|0;e=c+28|0;f=da(e|0,2,0,0)|0|0;if(f&4){ea(v|0,27440|0,4,0);sh(u,27472,v);f=da(e|0,2,0,0)|0|0}if(f&16){ea(v|0,27440|0,4,0);sh(u,27512,v)}ju(a,da(b+20|0,4,0,0)|0|0)|0;if((d|0)!=(da(g|0,4,0,0)|0|0))ea(r|0,da(r|0,4,0,0)|0|32|0,4,0)}break}default:{}}if(!(da(u+64|0,4,0,0)|0))c=(da((da(u|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0|0)!=0?2:0;else c=2}else c=1;while(0);i=w;return c|0}function gu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;I=i;i=i+80|0;if((i|0)>=(j|0))ba();H=I;F=I+64|0;A=I+32|0;g=da(b+6|0,2,0,0)|0|0;d=g&65535;a:do if(!(d&2)){z=da(a+24|0,4,0,0)|0|0;G=da(a+12|0,4,0,0)|0|0;a=da(G|0,4,0,0)|0|0;if(!(d&16)){Cs(G,b,z);if(da(G+64|0,4,0,0)|0){c=2;break}c=(da(a+65>>0|0,1,0,0)|0|0)!=0?2:1;break}B=b+52|0;c=(da(B|0,4,0,0)|0|0)!=0;C=(b|0)==0;b:do if(!C){d=A+28|0;k=A+4|0;w=A+16|0;x=A+8|0;s=a+65|0;r=G+492|0;q=(z|0)==0;p=H+4|0;o=H+12|0;n=H+24|0;m=G+64|0;t=b;c:while(1){u=t+6|0;ea(u|0,g&65535|2|0,2,0);ea(A+0|0,0|0,4,0);ea(A+4|0,0|0,4,0);ea(A+8|0,0|0,4,0);ea(A+12|0,0|0,4,0);ea(A+16|0,0|0,4,0);ea(A+20|0,0|0,4,0);ea(A+24|0,0|0,4,0);ea(A+28|0,0|0,4,0);ea(A|0,G|0,4,0);if(ks(A,da(t+60|0,4,0,0)|0|0)|0){c=2;break a}if(ks(A,da(t+64|0,4,0,0)|0|0)|0){c=2;break a}g=da(t+32|0,4,0,0)|0|0;if((da(u|0,2,0,0)|0)&8192){v=t+48|0;ea((da(g+28|0,4,0,0)|0|0)+48|0,da(v|0,4,0,0)|0|0,4,0);ea(v|0,0|0,4,0)}v=t+32|0;if((da(g|0,4,0,0)|0|0)>0){l=0;do{e=da(g+(l*72|0)+28|0,4,0,0)|0|0;if(e){a=da(r|0,4,0,0)|0|0;if(q)h=0;else{h=0;f=z;do{h=(da(f+20|0,4,0,0)|0|0)+h|0;f=da(f+16|0,4,0,0)|0|0}while((f|0)!=0)}f=da(g+(l*72|0)+16|0,4,0,0)|0|0;if(f)ea(r|0,f|0,4,0);ea(H+0|0,0|0,4,0);ea(H+4|0,0|0,4,0);ea(H+8|0,0|0,4,0);ea(H+12|0,0|0,4,0);ea(H+16|0,0|0,4,0);ea(H+20|0,0|0,4,0);ea(H|0,82|0,4,0);ea(p|0,83|0,4,0);ea(o|0,G|0,4,0);ea(n|0,z|0,4,0);ju(H,e)|0;ea(r|0,a|0,4,0);if(da(m|0,4,0,0)|0){c=2;break a}if(da(s>>0|0,1,0,0)|0){c=2;break a}if(!q){f=z;do{h=h-(da(f+20|0,4,0,0)|0|0)|0;f=da(f+16|0,4,0,0)|0|0}while((f|0)!=0)}g=g+(l*72|0)+45|0;ea(g>>0|0,(da(g>>0|0,1,0,0)|0)&-3|((h|0)!=0&1)<<1&255|0,1,0);g=da(v|0,4,0,0)|0|0}l=l+1|0}while((l|0)<(da(g|0,4,0,0)|0|0))}ea(d|0,1|0,2,0);ea(k|0,g|0,4,0);ea(w|0,z|0,4,0);h=da(t|0,4,0,0)|0|0;if((da(h|0,4,0,0)|0|0)>0){g=h+4|0;f=0;do{if(ks(A,da((da(g|0,4,0,0)|0|0)+(f*20|0)|0,4,0,0)|0|0)|0){c=2;break a}f=f+1|0}while((f|0)<(da(h|0,4,0,0)|0|0))}e=da(t+40|0,4,0,0)|0|0;g=(e|0)!=0;h=da(d|0,2,0,0)|0|0;if(!g?(y=h&65535,(y&2|0)==0):0)ea(d|0,y&65534|0,2,0);else ea(u|0,h&4096|(da(u|0,2,0,1)|0)|4|0,2,0);h=da(t+44|0,4,0,0)|0|0;if(!((h|0)==0|g)){D=32;break}ea(x|0,da(t|0,4,0,0)|0|0,4,0);if(ks(A,h)|0){c=2;break a}if(ks(A,da(t+36|0,4,0,0)|0|0)|0){c=2;break a}ea(w|0,0|0,4,0);ea(d|0,da(d|0,2,0,1)|0|1|0,2,0);if((da(u|0,2,0,0)|0)&8192){v=(da((da(v|0,4,0,0)|0|0)+28|0,4,0,0)|0|0)+48|0;ea(t+48|0,da(v|0,4,0,0)|0|0,4,0);ea(v|0,0|0,4,0)}if(!c?(pv(A,t,da(t+48|0,4,0,0)|0|0,26880)|0)!=0:0){c=2;break a}if(da(s>>0|0,1,0,0)|0){c=2;break a}do if(g){if(pv(A,t,e,26888)|0){c=2;break a}if(da(s>>0|0,1,0,0)|0){c=2;break a}f=da(e|0,4,0,0)|0|0;if((f|0)<=0)break;h=0;g=da(e+4|0,4,0,0)|0|0;while(1){if((da((da(g|0,4,0,0)|0|0)+4|0,4,0,0)|0)&2){D=46;break c}h=h+1|0;if((h|0)>=(f|0))break;else g=g+20|0}}while(0);f=da(t+52|0,4,0,0)|0|0;if(!f)break b;t=f;g=da(f+6|0,2,0,0)|0|0}if((D|0)==32){sh(G,26832,H);c=2;break a}else if((D|0)==46){sh(G,26896,H);c=2;break a}}while(0);if(c?(E=da(b+48|0,4,0,0)|0|0,(E|0)!=0):0){y=da(G|0,4,0,0)|0|0;d=da(E|0,4,0,0)|0|0;if((d|0)>(da(y+96|0,4,0,0)|0|0)){sh(G,26960,H);c=2;break}if((d|0)>0){a=E+4|0;c=0;do{d=(da(a|0,4,0,0)|0|0)+(c*20|0)+13|0;ea(d>>0|0,(da(d>>0|0,1,0,0)|0)&-2|0,1,0);c=c+1|0;d=da(E|0,4,0,0)|0|0}while((c|0)<(d|0))}ea(b+56|0,0|0,4,0);c=da(B|0,4,0,0)|0|0;if(!c)if(C)a=E+4|0;else D=60;else while(1){ea(c+56|0,b|0,4,0);b=da(c+52|0,4,0,0)|0|0;if(!b){b=c;D=60;break}else{x=c;c=b;b=x}}d:do if((D|0)==60){a=E+4|0;q=y+65|0;r=H+4|0;s=H+8|0;t=H+28|0;u=H+24|0;v=H+4|0;p=b;e:while(1){o=da(p|0,4,0,0)|0|0;if((d|0)<=0)break d;m=p+32|0;c=0;l=0;n=da(a|0,4,0,0)|0|0;while(1){ea(F|0,-1|0,4,0);k=n+13|0;do if(!((da(k>>0|0,1,0,0)|0)&1)){d=da(n|0,4,0,0)|0|0;f:do if(!d)d=0;else while(1){b=da(d+4|0,4,0,0)|0|0;if(!(b&4096))break f;if(!(b&262144))d=d+12|0;else d=da((da(d+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;d=da(d|0,4,0,0)|0|0;if(!d){d=0;break}}while(0);if(!(Ls(d,F)|0)){b=qv(o,d)|0;ea(F|0,b|0,4,0);if(!b){h=Lr(y,d,0,0)|0;if(!(da(q>>0|0,1,0,0)|0)){e=da(p|0,4,0,0)|0|0;ea(H+0|0,0|0,4,0);ea(H+4|0,0|0,4,0);ea(H+8|0,0|0,4,0);ea(H+12|0,0|0,4,0);ea(H+16|0,0|0,4,0);ea(H+20|0,0|0,4,0);ea(H+24|0,0|0,4,0);ea(H+28|0,0|0,4,0);ea(H|0,G|0,4,0);ea(r|0,da(m|0,4,0,0)|0|0,4,0);ea(s|0,e|0,4,0);ea(t|0,1|0,2,0);ea(u|0,0|0,4,0);b=(da(G|0,4,0,0)|0|0)+68|0;w=da(b>>0|0,1,0,0)|0|0;ea(b>>0|0,1|0,1,0);x=ks(H,h)|0;ea(b>>0|0,w|0,1,0);g:do if(!x){g=e+4|0;f=da(e|0,4,0,0)|0|0;e=0;while(1){if((e|0)>=(f|0)){b=0;break g}b=e+1|0;if((Bu(da((da(g|0,4,0,0)|0|0)+(e*20|0)|0,4,0,0)|0|0,h,-1)|0)<2)break;else e=b}}else b=0;while(0);ea(F|0,b|0,4,0)}else b=0;Fk(y,h)}if((b|0)<=0){b=1;break}}else{e=da(F|0,4,0,0)|0|0;b=da(o|0,4,0,0)|0|0;if((e|0)<1|(e|0)>(b|0))break e;else b=e}ea(H|0,0|0,4,0);ea(v|0,0|0,4,0);e=mr(y,132,H,0)|0;if(!e){c=2;break a}f=e+4|0;ea(f|0,da(f|0,4,0,0)|0|1024|0,4,0);ea(e+8|0,b|0,4,0);f=da(n|0,4,0,0)|0|0;if((f|0)==(d|0))ea(n|0,e|0,4,0);else ea(f+12|0,e|0,4,0);Fk(y,d);ea(n+16|0,b|0,2,0);ea(k>>0|0,da(k>>0|0,1,0,0)|0|1|0,1,0);b=l}else b=l;while(0);c=c+1|0;d=da(E|0,4,0,0)|0|0;if((c|0)>=(d|0))break;else{l=b;n=n+20|0}}p=da(p+56|0,4,0,0)|0|0;if(!((p|0)!=0&(b|0)!=0))break d}ea(H|0,c+1|0,4,0);ea(H+4|0,26880|0,4,0);ea(H+8|0,b|0,4,0);sh(G,27064,H);c=2;break a}while(0);b=0;while(1){if((b|0)>=(d|0)){c=1;break a}c=b+1|0;if(!((da((da(a|0,4,0,0)|0|0)+(b*20|0)+13>>0|0,1,0,0)|0)&1))break;else b=c}ea(H|0,c|0,4,0);sh(G,27e3,H);c=2}else c=1}else c=1;while(0);i=I;return c|0}function hu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))ba();s=v;t=da(a|0,4,0,0)|0|0;a:do if(b){o=da(b|0,4,0,0)|0|0;a=o*24|0;e=lh(t,a,0)|0;if(e)ew(e|0,0,a|0)|0;ea(c|0,o|0,2,0);ea(d|0,e|0,4,0);if((o|0)>0){m=b+4|0;p=t+65|0;a=0;n=e;while(1){k=da(m|0,4,0,0)|0|0;b=da(k+(a*20|0)|0,4,0,0)|0|0;b:do if(!b)b=0;else while(1){f=da(b+4|0,4,0,0)|0|0;if(!(f&4096))break b;if(!(f&262144))b=b+12|0;else b=da((da(b+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;b=da(b|0,4,0,0)|0|0;if(!b){b=0;break}}while(0);f=da(k+(a*20|0)+4|0,4,0,0)|0|0;do if(!f){while(1){f=da(b>>0|0,1,0,0)|0|0;if(f<<24>>24==27){u=24;break}else if(f<<24>>24==-102){r=b;u=18;break}else if(f<<24>>24!=122)break;b=da(b+16|0,4,0,0)|0|0}if((u|0)==24){u=0;ea(s|0,da(b+8|0,4,0,0)|0|0,4,0);b=th(t,10344,s)|0;break}if((u|0)==18?(u=0,q=da(r+44|0,4,0,0)|0|0,(q|0)!=0):0){b=da(r+32|0,2,0,0)|0|0;if(b<<16>>16<0)b=da(q+36|0,2,0,0)|0|0;else b=b<<16>>16;if((b|0)>-1)b=da((da(q+4|0,4,0,0)|0|0)+(b*24|0)|0,4,0,0)|0|0;else b=20456;ea(s|0,b|0,4,0);b=th(t,10344,s)|0;break}ea(s|0,da(k+(a*20|0)+8|0,4,0,0)|0|0,4,0);b=th(t,10344,s)|0}else b=jh(t,f)|0;while(0);if(da(p>>0|0,1,0,0)|0)break;if(!b){h=0;b=0}else{f=b;while(1)if(!(da(f>>0|0,1,0,0)|0))break;else f=f+1|0;h=f-b&1073741823}c:do if((a|0)>0){f=0;k=0;l=h;while(1){if(!(cd(da(e+(k*24|0)|0,4,0,0)|0|0,b)|0)){g=l;while(1){h=g+-1|0;if((h|0)<=1)break;if(((da(b+h>>0|0,1,0,1)|0|0)+-48|0)>>>0<10)g=h;else break}if((g|0)>0)g=(da(b+h>>0|0,1,0,0)|0|0)==58?h:l;else g=l;ea(b+g>>0|0,0|0,1,0);f=f+1|0;ea(s|0,b|0,4,0);ea(s+4|0,f|0,4,0);h=th(t,26824,s)|0;lg(t,b);if(!h){b=0;break c}else{k=-1;b=h}}else g=l;k=k+1|0;if((k|0)>=(a|0))break;else l=g}}while(0);ea(n|0,b|0,4,0);a=a+1|0;if((a|0)<(o|0))n=n+24|0;else{b=p;break a}}lg(t,b);b=p}else u=6}else{ea(c|0,0|0,2,0);ea(d|0,0|0,4,0);e=0;u=6}while(0);if((u|0)==6){b=t+65|0;a=0}if(da(b>>0|0,1,0,0)|0){if((a|0)>0){b=0;do{lg(t,da(e+(b*24|0)|0,4,0,0)|0|0);b=b+1|0}while((b|0)!=(a|0))}lg(t,e);ea(d|0,0|0,4,0);ea(c|0,0|0,2,0)}i=v;return}function iu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();m=n;l=da(a|0,4,0,0)|0|0;if(!(da(l+65>>0|0,1,0,0)|0)){ea(m+0|0,0|0,4,0);ea(m+4|0,0|0,4,0);ea(m+8|0,0|0,4,0);ea(m+12|0,0|0,4,0);ea(m+16|0,0|0,4,0);ea(m+20|0,0|0,4,0);ea(m+24|0,0|0,4,0);ea(m+28|0,0|0,4,0);ea(m+4|0,da(c+32|0,4,0,0)|0|0,4,0);g=da((da(c|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;f=b+38|0;if((da(f|0,2,0,0)|0|0)>0){c=0;d=0;h=0;k=da(b+4|0,4,0,0)|0|0;while(1){e=da(g+(h*20|0)|0,4,0,0)|0|0;o=k+22|0;ea(k+12|0,jh(l,xu(m,e,o)|0)|0|0,4,0);c=iw(da(o>>0|0,1,0,1)|0|0,0,c|0,d|0)|0;d=C;o=jv(e)|0;ea(k+21>>0|0,(o<<24>>24==0?65:o)|0,1,0);e=bu(a,e)|0;if(e)ea(k+16|0,jh(l,da(e|0,4,0,0)|0|0)|0|0,4,0);h=h+1|0;if((h|0)>=(da(f|0,2,0,0)|0|0))break;else k=k+24|0}d=hw(c|0,d|0,2)|0;c=C}else{d=0;c=0}ea(b+42|0,es(d,c)|0|0,2,0)}i=n;return}function ju(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;do if(!b)c=0;else{f=a+4|0;d=da(f|0,4,0,0)|0|0;if((d|0)==0?(da(a+8|0,4,0,0)|0|0)==0:0){c=0;break}i=a+16|0;ea(i|0,(da(i|0,4,0,0)|0|0)+1|0,4,0);g=a+8|0;a:while(1){if((d|0)!=0?(c=qc[(fa(d|0,127|0)|0)&127](a,b)|0,(c|0)!=0):0){j=24;break}if(ku(a,da(b|0,4,0,0)|0|0)|0){j=19;break}if(qs(a,da(b+36|0,4,0,0)|0|0)|0){j=19;break}if(ku(a,da(b+40|0,4,0,0)|0|0)|0){j=19;break}if(qs(a,da(b+44|0,4,0,0)|0|0)|0){j=19;break}if(ku(a,da(b+48|0,4,0,0)|0|0)|0){j=19;break}if(qs(a,da(b+60|0,4,0,0)|0|0)|0){j=19;break}if(qs(a,da(b+64|0,4,0,0)|0|0)|0){j=19;break}d=da(b+32|0,4,0,0)|0|0;if((d|0)!=0?(h=da(d|0,4,0,0)|0|0,(h|0)>0):0){e=h;d=d+8|0;while(1){if(ju(a,da(d+20|0,4,0,0)|0|0)|0){j=19;break a}e=e+-1|0;if((e|0)<=0)break;else d=d+72|0}}d=da(g|0,4,0,0)|0|0;if(d)ic[(fa(d|0,15|0)|0)&15](a,b);b=da(b+52|0,4,0,0)|0|0;if(!b){c=0;break}d=da(f|0,4,0,0)|0|0}if((j|0)==19){ea(i|0,(da(i|0,4,0,0)|0|0)+-1|0,4,0);c=2;break}else if((j|0)==24)c=c&2;ea(i|0,(da(i|0,4,0,0)|0|0)+-1|0,4,0)}while(0);return c|0}function ku(a,b){a=a|0;b=b|0;var c=0;a:do if((b|0)!=0?(c=da(b|0,4,0,0)|0|0,(c|0)>0):0){b=da(b+4|0,4,0,0)|0|0;while(1){if(qs(a,da(b|0,4,0,0)|0|0)|0){c=2;break a}c=c+-1|0;if((c|0)<=0){c=0;break}else b=b+20|0}}else c=0;while(0);return c|0}function lu(a){a=a|0;var b=0,c=0;c=i;i=i+16|0;if((i|0)>=(j|0))ba();b=c;ea(b|0,0|0,4,0);if(((da(a+4|0,4,0,0)|0)&1|0)==0?(Ls(a,b)|0)!=0:0)a=(da(b|0,4,0,0)|0|0)==0&1;else a=0;i=c;return a|0}function mu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+32|0;if((i|0)>=(j|0))ba();m=o;f=da(c+12|0,4,0,0)|0|0;ea(m+0|0,0|0,4,0);ea(m+4|0,0|0,4,0);ea(m+8|0,0|0,4,0);ea(m+12|0,0|0,4,0);ea(m+16|0,0|0,4,0);ea(m+20|0,200|0,4,0);ea(m+24>>0|0,1|0,1,0);ea(m+25>>0|0,0|0,1,0);ea(m|0,da(a|0,4,0,0)|0|0,4,0);k=c+46|0;if(da(k|0,2,0,0)|0){l=c+4|0;g=f+4|0;n=0;do{h=da((da(g|0,4,0,0)|0|0)+((da((da(l|0,4,0,0)|0|0)+(n<<1)|0,2,0,0)|0|0)*24|0)|0,4,0,0)|0|0;if(n)Rk(m,28920,2);e=da(f|0,4,0,0)|0|0;if(!e)d=0;else{d=e;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-e&1073741823}Rk(m,e,d);Rk(m,28928,1);if(!h)d=0;else{d=h;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-h&1073741823}Rk(m,h,d);n=n+1|0}while((n|0)<(da(k|0,2,0,1)|0|0))}d=sg(m)|0;ys(a,((da(c+51>>0|0,1,0,0)|0)&3)==2?1555:2067,b,d,-1,2);i=o;return}function nu(a,b){a=a|0;b=b|0;return 0}function ou(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n+8|0;k=n;l=b+52|0;a:do if((da(l|0,4,0,0)|0|0)!=0?(d=da(b+48|0,4,0,0)|0|0,!((d|0)==0|(b|0)==0)):0){c=b;while(1){h=da(c+4>>0|0,1,0,0)|0|0;if(!(h<<24>>24==119|h<<24>>24==116))break;c=da(c+52|0,4,0,0)|0|0;if(!c){c=0;break a}}e=da(d+4|0,4,0,0)|0|0;c=da(d|0,4,0,0)|0|0;while(1){d=c+-1|0;if((c|0)<=0){c=0;break a}if(!((da((da(e+(d*20|0)|0,4,0,0)|0|0)+4|0,4,0,0)|0)&256))c=d;else break}if((c|0)>=1){c=da(a+12|0,4,0,0)|0|0;f=da(c|0,4,0,0)|0|0;a=lh(f,72,0)|0;if(a){g=a+0|0;h=g+72|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(h|0));e=k;ea(e|0,0|0,4,0);ea(e+4|0,0|0,4,0);e=ir(c,0,0,0,k,a,0,0)|0;if(e){g=a+0|0;d=b+0|0;h=g+72|0;do{ea(g|0,da(d|0,4,0,0)|0|0,4,0);g=g+4|0;d=d+4|0}while((g|0)<(h|0));ea(b+32|0,e|0,4,0);ea(m|0,0|0,4,0);ea(m+4|0,0|0,4,0);ea(b|0,kr(c,0,mr(f,116,m,0)|0)|0|0,4,0);ea(b+4>>0|0,119|0,1,0);ea(b+36|0,0|0,4,0);ea(a+40|0,0|0,4,0);ea(a+44|0,0|0,4,0);ea(a+48|0,0|0,4,0);ea(l|0,0|0,4,0);ea(b+56|0,0|0,4,0);c=b+6|0;ea(c|0,(da(c|0,2,0,1)|0|0)&57279|8192|0,2,0);ea((da(a+52|0,4,0,0)|0|0)+56|0,a|0,4,0);ea(a+60|0,0|0,4,0);ea(a+64|0,0|0,4,0);c=0}else c=2}else c=2}else c=0}else c=0;while(0);i=n;return c|0}function pu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;S=i;i=i+32|0;if((i|0)>=(j|0))ba();R=S;O=S+16|0;B=a+12|0;Q=da(B|0,4,0,0)|0|0;P=da(Q|0,4,0,0)|0|0;M=b+6|0;g=da(M|0,2,0,1)|0|0;ea(M|0,g|16|0,2,0);N=P+65|0;a:do if(!(da(N>>0|0,1,0,0)|0)){A=b+32|0;K=da(A|0,4,0,0)|0|0;if((K|0)!=0&(g&16|0)==0){L=da(b|0,4,0,0)|0|0;if((da(a+8|0,4,0,0)|0|0)==9){g=b;while(1){f=da(g+56|0,4,0,0)|0|0;if(!f)break;else g=f}g=da(g+68|0,4,0,0)|0|0;if(g){x=Q+532|0;ea(g+4|0,da(x|0,4,0,0)|0|0,4,0);ea(x|0,g|0,4,0);ea(Q+449>>0|0,0|0,1,0)}}Bs(Q,K);J=K+8|0;g=da(K|0,4,0,0)|0|0;b:do if((g|0)>0){w=0;q=J;c:while(1){if(!((da(q+37>>0|0,1,0,0)|0)&8)){x=q+16|0;c=da(B|0,4,0,0)|0|0;if(da(x|0,4,0,0)|0){d=c;I=10;break}n=da(c|0,4,0,0)|0|0;f=c+532|0;h=da(f|0,4,0,0)|0|0;d:do if((da(q+4|0,4,0,0)|0|0)==0?(z=da(q+8|0,4,0,0)|0|0,!((z|0)==0|(h|0)==0)):0){e:while(1){k=da(h|0,4,0,0)|0|0;if((k|0)>0){e=0;do{g=h+(e<<4)+8|0;d=da(g|0,4,0,0)|0|0;if(!(cd(z,d)|0)){u=e;break e}e=e+1|0}while((e|0)<(k|0))}h=da(h+4|0,4,0,0)|0|0;if(!h){I=46;break d}}r=h+(u<<4)+20|0;k=da(r|0,4,0,0)|0|0;if(k){b=k;I=21;break c}t=lh(n,76,0)|0;if(!t){b=x;I=23;break c}l=t+0|0;k=l+76|0;do{ea(l>>0|0,0|0,1,0);l=l+1|0}while((l|0)<(k|0));ea(x|0,t|0,4,0);o=t+40|0;ea(o|0,1|0,2,0);ea(t|0,jh(n,da(g|0,4,0,0)|0|0)|0|0,4,0);ea(t+36|0,-1|0,2,0);ea(t+28|0,200|0,2,0);v=t+44|0;ea(v>>0|0,da(v>>0|0,1,0,1)|0|2|0,1,0);v=fr(n,da(h+(u<<4)+16|0,4,0,0)|0|0,0)|0;ea(q+20|0,v|0,4,0);if(da(n+65>>0|0,1,0,0)|0){b=2;break a}s=((da(v+4>>0|0,1,0,0)|0|0)+-115&255)<2;if(s?(p=da(v+32|0,4,0,0)|0|0,y=da(p|0,4,0,0)|0|0,(y|0)>0):0){k=v+6|0;l=y;n=0;do{do if(!(da(p+(n*72|0)+12|0,4,0,0)|0)){m=da(p+(n*72|0)+16|0,4,0,0)|0|0;if(!m)break;if(cd(m,da(g|0,4,0,0)|0|0)|0)break;ea(p+(n*72|0)+24|0,t|0,4,0);l=p+(n*72|0)+45|0;ea(l>>0|0,da(l>>0|0,1,0,0)|0|8|0,1,0);ea(o|0,(da(o|0,2,0,0)|0|0)+1<<16>>16|0,2,0);ea(k|0,da(k|0,2,0,1)|0|2048|0,2,0);l=da(p|0,4,0,0)|0|0}while(0);n=n+1|0}while((n|0)<(l|0))}if((da(o|0,2,0,1)|0|0)>2){b=g;I=34;break c}ea(r|0,28176|0,4,0);e=da(f|0,4,0,0)|0|0;ea(f|0,h|0,4,0);if(s)k=da(v+52|0,4,0,0)|0|0;else k=v;ju(a,k)|0;k=v;while(1){d=da(k+52|0,4,0,0)|0|0;if(!d)break;else k=d}d=da(k|0,4,0,0)|0|0;k=da(h+(u<<4)+12|0,4,0,0)|0|0;do if(k){if(!d)break;m=da(d|0,4,0,0)|0|0;d=da(k|0,4,0,0)|0|0;if((m|0)!=(d|0)){b=m;I=42;break c}}else k=d;while(0);hu(c,k,t+38|0,t+4|0);if(s){ea(r|0,(((da(v+6|0,2,0,0)|0)&2048)==0?28280:28240)|0,4,0);ju(a,v)|0}ea(r|0,0|0,4,0);ea(f|0,e|0,4,0);if(!(da(x|0,4,0,0)|0))I=46}else I=46;while(0);do if((I|0)==46){I=0;if(!(da(q+8|0,4,0,0)|0)){h=da(q+20|0,4,0,0)|0|0;if(ju(a,h)|0){b=2;break a}f=lh(P,76,0)|0;if(!f){b=x;I=49;break c}l=f+0|0;k=l+76|0;do{ea(l>>0|0,0|0,1,0);l=l+1|0}while((l|0)<(k|0));ea(x|0,f|0,4,0);ea(f+40|0,1|0,2,0);ea(R|0,f|0,4,0);ea(f|0,th(P,27760,R)|0|0,4,0);while(1){g=da(h+52|0,4,0,0)|0|0;if(!g)break;else h=g}hu(Q,da(h|0,4,0,0)|0|0,f+38|0,f+4|0);ea(f+36|0,-1|0,2,0);ea(f+28|0,200|0,2,0);x=f+44|0;ea(x>>0|0,da(x>>0|0,1,0,1)|0|2|0,1,0);break}c=Tr(Q,0,q)|0;ea(x|0,c|0,4,0);if(!c){b=2;break a}h=c+40|0;g=da(h|0,2,0,0)|0|0;if(g<<16>>16==-1){b=x;I=55;break c}ea(h|0,g+1<<16>>16|0,2,0);h=c+12|0;if((da(h|0,4,0,0)|0|0)==0?((da(c+44>>0|0,1,0,0)|0)&16)==0:0)break;if(gr(Q,c)|0){b=2;break a}x=fr(P,da(h|0,4,0,0)|0|0,0)|0;ea(q+20|0,x|0,4,0);ju(a,x)|0}while(0);if(Qt(Q,q)|0){b=2;break a}g=da(K|0,4,0,0)|0|0}w=w+1|0;if((w|0)>=(g|0))break b;else q=q+72|0}if((I|0)==10){while(1){c=da(b+56|0,4,0,0)|0|0;if(!c)break;else b=c}b=da(b+68|0,4,0,0)|0|0;if(!b){b=1;break a}ea(d+532|0,da(b+4|0,4,0,0)|0|0,4,0);b=1;break a}else if((I|0)==21){ea(R|0,d|0,4,0);sh(c,b,R);b=2;break a}else if((I|0)==23){ea(b|0,0|0,4,0);b=2;break a}else if((I|0)==34){ea(R|0,da(b|0,4,0,0)|0|0,4,0);sh(c,28128,R);b=2;break a}else if((I|0)==42){ea(R|0,da(g|0,4,0,0)|0|0,4,0);ea(R+4|0,b|0,4,0);ea(R+8|0,d|0,4,0);sh(c,28200,R);ea(f|0,e|0,4,0);b=2;break a}else if((I|0)==49){ea(b|0,0|0,4,0);b=2;break a}else if((I|0)==55){ea(R|0,da(c|0,4,0,0)|0|0,4,0);sh(Q,27776,R);ea(b|0,0|0,4,0);b=2;break a}}while(0);if(!(da(N>>0|0,1,0,0)|0)){q=da(A|0,4,0,0)|0|0;f:do if(((da(q|0,4,0,0)|0|0)+-1|0)>0){r=b+36|0;t=0;u=q+8|0;v=q+80|0;g:while(1){s=da(v+16|0,4,0,0)|0|0;if(!((da(u+16|0,4,0,0)|0|0)==0|(s|0)==0)){y=da(v+36>>0|0,1,0,1)|0|0;p=y&32;n=(p|0)==0;p=p>>>5;o=v+44|0;if(y&4){if(da(o|0,4,0,0)|0){I=73;break}g=v+48|0;if(da(g|0,4,0,0)|0){I=73;break}d=s+38|0;h=da(d|0,2,0,0)|0|0;if(h<<16>>16>0){c=s+4|0;m=t+1|0;l=0;do{f=da((da(c|0,4,0,0)|0|0)+(l*24|0)|0,4,0,0)|0|0;e=0;do{k=rv(da(q+(e*72|0)+24|0,4,0,0)|0|0,f)|0;if((k|0)>-1){h=e;I=77;break}e=e+1|0}while((e|0)<(m|0));if((I|0)==77){I=0;sv(Q,q,h,k,m,l,p,r);h=da(d|0,2,0,0)|0|0}l=l+1|0}while((l|0)<(h<<16>>16|0))}}else g=v+48|0;h=da(o|0,4,0,0)|0|0;if(h){if(da(g|0,4,0,0)|0){I=81;break}if(!n){tv(h,da(v+40|0,4,0,0)|0|0);h=da(o|0,4,0,0)|0|0}ea(r|0,rs(da(Q|0,4,0,0)|0|0,da(r|0,4,0,0)|0|0,h)|0|0,4,0);ea(o|0,0|0,4,0)}f=da(g|0,4,0,0)|0|0;if((f|0)!=0?(H=f+4|0,(da(H|0,4,0,0)|0|0)>0):0){e=t+1|0;k=0;do{c=da((da(f|0,4,0,0)|0|0)+(k<<3)|0,4,0,0)|0|0;d=rv(s,c)|0;if((d|0)<0){I=91;break g}else h=0;while(1){g=rv(da(q+(h*72|0)+24|0,4,0,0)|0|0,c)|0;if((g|0)>-1)break;h=h+1|0;if((h|0)>=(e|0)){I=91;break g}}sv(Q,q,h,g,e,d,p,r);k=k+1|0}while((k|0)<(da(H|0,4,0,0)|0|0))}}t=t+1|0;if((t|0)>=((da(q|0,4,0,0)|0|0)+-1|0))break f;else{u=u+72|0;v=v+72|0}}if((I|0)==73){ea(R|0,0|0,4,0);sh(Q,27928,R);b=2;break a}else if((I|0)==81){sh(Q,27984,R);b=2;break a}else if((I|0)==91){ea(R|0,c|0,4,0);sh(Q,28040,R);b=2;break a}}while(0);c=da(L|0,4,0,0)|0|0;h=(c|0)>0;h:do if(h){d=da(L+4|0,4,0,0)|0|0;g=0;do{f=da(d+(g*20|0)|0,4,0,0)|0|0;e=da(f>>0|0,1,0,0)|0|0;if(e<<24>>24==122){if((da((da(f+16|0,4,0,0)|0)>>0|0,1,0,0)|0|0)==116)break h}else if(e<<24>>24==116)break h;g=g+1|0}while((g|0)<(c|0))}else g=0;while(0);if((g|0)<(c|0)){H=da(L+4|0,4,0,0)|0|0;g=da((da(Q|0,4,0,0)|0|0)+24|0,4,0,0)|0|0;if(!(g&32))G=0;else G=(g&64|0)==0;if(h){C=P+20|0;D=P+16|0;E=O+4|0;F=0;c=0;do{f=H+(F*20|0)|0;h=da(f|0,4,0,0)|0|0;g=da(h>>0|0,1,0,0)|0|0;if(g<<24>>24==116){a=0;I=110}else if(g<<24>>24==122?(da((da(h+16|0,4,0,0)|0)>>0|0,1,0,0)|0|0)==116:0){a=da((da(h+12|0,4,0,0)|0|0)+8|0,4,0,0)|0|0;I=110}else I=106;do if((I|0)==106){c=kr(Q,c,h)|0;if(c){x=H+(F*20|0)+4|0;w=(da(c|0,4,0,0)|0|0)+-1|0;v=da(c+4|0,4,0,0)|0|0;ea(v+(w*20|0)+4|0,da(x|0,4,0,0)|0|0,4,0);y=H+(F*20|0)+8|0;ea(v+(w*20|0)+8|0,da(y|0,4,0,0)|0|0,4,0);ea(x|0,0|0,4,0);ea(y|0,0|0,4,0)}ea(f|0,0|0,4,0)}else if((I|0)==110){if((da(K|0,4,0,0)|0|0)>0){y=(a|0)==0;z=(a|0)!=0;A=0;B=J;g=0;while(1){n=da(B+16|0,4,0,0)|0|0;f=da(B+20|0,4,0,0)|0|0;h=da(B+12|0,4,0,0)|0|0;if(!h)h=da(n|0,4,0,0)|0|0;if(da(N>>0|0,1,0,0)|0)break;if((f|0)!=0?((da(f+6|0,2,0,0)|0)&512)!=0:0){x=0;I=125}else I=117;do if((I|0)==117){I=0;if(!y?(cd(a,h)|0)!=0:0)break;k=da(n+68|0,4,0,0)|0|0;if(!k){f=0;x=27816;I=125;break}e=da(C|0,4,0,0)|0|0;l=da(D|0,4,0,0)|0|0;if((e|0)>0){d=0;while(1){f=d+1|0;if((da(l+(d<<4)+12|0,4,0,0)|0|0)==(k|0)){f=d;break}if((f|0)<(e|0))d=f;else break}if((f|0)>-1)e=f;else{f=0;x=27816;I=125;break}}else e=0;f=0;x=da(l+(e<<4)|0,4,0,0)|0|0;I=125}while(0);do if((I|0)==125){I=0;w=n+38|0;o=da(w|0,2,0,0)|0|0;if(o<<16>>16<=0)break;s=n+4|0;r=(f|0)!=0;l=z&r;t=(A|0)>0;m=t&y;q=B+36|0;t=t^1;p=B+48|0;k=(x|0)==0;u=0;do{n=da(s|0,4,0,0)|0|0;d=da(n+(u*24|0)|0,4,0,0)|0|0;if(!(l?(uv(da((da((da(f|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(u*20|0)+8|0,4,0,0)|0|0,0,a,0)|0)==0:0))I=129;i:do if((I|0)==129){I=0;if((da(n+(u*24|0)+23>>0|0,1,0,0)|0)&2)break;if(m){if(!(((da(q>>0|0,1,0,0)|0)&4)==0|t)){n=0;do{if((rv(da(K+(n*72|0)+24|0,4,0,0)|0|0,d)|0)>-1){g=1;break i}n=n+1|0}while((n|0)<(A|0))}if((vv(da(p|0,4,0,0)|0|0,d)|0)>-1){g=1;break}}o=st(P,27,d)|0;if(!G?(da(K|0,4,0,0)|0|0)<=1:0){e=d;v=0}else I=137;do if((I|0)==137){I=0;o=Yq(Q,122,st(P,27,h)|0,o,0)|0;if(!k)o=Yq(Q,122,st(P,27,x)|0,o,0)|0;if(!G){e=d;v=0;break}ea(R|0,h|0,4,0);ea(R+4|0,d|0,4,0);v=th(P,27824,R)|0;e=v}while(0);c=kr(Q,c,o)|0;ea(O|0,e|0,4,0);if(!e)o=0;else{o=e;while(1)if(!(da(o>>0|0,1,0,0)|0))break;else o=o+1|0;o=o-e&1073741823}ea(E|0,o|0,4,0);lr(Q,c,O,0);do if(c){if(!((da(M|0,2,0,0)|0)&512))break;n=(da(c|0,4,0,0)|0|0)+-1|0;d=da(c+4|0,4,0,0)|0|0;if(r)o=jh(P,da((da((da(f|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(u*20|0)+8|0,4,0,0)|0|0)|0;else{ea(R|0,x|0,4,0);ea(R+4|0,h|0,4,0);ea(R+8|0,e|0,4,0);o=th(P,27832,R)|0}ea(d+(n*20|0)+8|0,o|0,4,0);o=d+(n*20|0)+13|0;ea(o>>0|0,da(o>>0|0,1,0,0)|0|2|0,1,0)}while(0);lg(P,v);o=da(w|0,2,0,0)|0|0;g=1}while(0);u=u+1|0}while((u|0)<(o<<16>>16|0))}while(0);A=A+1|0;if((A|0)>=(da(K|0,4,0,0)|0|0))break;else B=B+72|0}if(g)break}if(!a){sh(Q,27872,R);break}else{ea(R|0,a|0,4,0);sh(Q,27848,R);break}}while(0);F=F+1|0}while((F|0)<(da(L|0,4,0,0)|0|0))}else c=0;Mk(P,L);ea(b|0,c|0,4,0)}else c=da(b|0,4,0,0)|0|0;if((c|0)!=0?(da(c|0,4,0,0)|0|0)>(da(P+96|0,4,0,0)|0|0):0){sh(Q,27896,R);b=0}else b=0}else b=2}else b=1}else b=2;while(0);i=S;return b|0}function qu(a,b){a=a|0;b=b|0;var c=0;c=da(a+12|0,4,0,0)|0|0;while(1){a=da(b+56|0,4,0,0)|0|0;if(!a)break;else b=a}b=da(b+68|0,4,0,0)|0|0;if(b)ea(c+532|0,da(b+4|0,4,0,0)|0|0,4,0);return}function ru(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=b+6|0;e=da(d|0,2,0,1)|0|0;if((e&32|0)==0?(ea(d|0,e|32|0,2,0),h=da(a+12|0,4,0,0)|0|0,f=da(b+32|0,4,0,0)|0|0,c=da(f|0,4,0,0)|0|0,(c|0)>0):0){b=0;d=f+8|0;while(1){a=da(d+16|0,4,0,0)|0|0;if(((a|0)!=0?((da(a+44>>0|0,1,0,0)|0)&2)!=0:0)?(g=da(d+20|0,4,0,0)|0|0,(g|0)!=0):0){c=g;while(1){e=da(c+52|0,4,0,0)|0|0;if(!e)break;else c=e}iu(h,a,c);c=da(f|0,4,0,0)|0|0}b=b+1|0;if((b|0)>=(c|0))break;else d=d+72|0}}return}function su(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if((a|0)!=0?(c=da(a|0,4,0,0)|0|0,(c|0)>0):0){f=da(a+4|0,4,0,0)|0|0;e=0;do{d=da(f+(e*20|0)|0,4,0,0)|0|0;if((d|0)!=0?(g=da(d+24|0,4,0,0)|0|0,(g|0)>(da(b|0,4,0,0)|0|0)):0){ea(b|0,g|0,4,0);c=da(a|0,4,0,0)|0|0}e=e+1|0}while((e|0)<(c|0))}return}function tu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;if(((b|0)!=0?(Fs(a,da(b|0,4,0,0)|0|0,c,d),Fs(a,da(b+40|0,4,0,0)|0|0,c,d),Fs(a,da(b+48|0,4,0,0)|0|0,c,d),f=b+44|0,ea(f|0,Gs(a,da(f|0,4,0,0)|0|0,c,d)|0|0,4,0),f=b+36|0,ea(f|0,Gs(a,da(f|0,4,0,0)|0|0,c,d)|0|0,4,0),tu(a,da(b+52|0,4,0,0)|0|0,c,d),f=da(b+32|0,4,0,0)|0|0,(f|0)!=0):0)?(e=da(f|0,4,0,0)|0|0,(e|0)>0):0){b=e;e=f+8|0;while(1){tu(a,da(e+20|0,4,0,0)|0|0,c,d);b=b+-1|0;if((b|0)<=0)break;else e=e+72|0}}return}function uu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=da(b+48|0,4,0,0)|0|0;i=da(c|0,4,0,0)|0|0;d=da(a|0,4,0,0)|0|0;j=Qs(d,i+1|0,1)|0;if((j|0)!=0&(i|0)>0){h=c+4|0;f=d+8|0;e=j+16|0;g=0;do{d=da(h|0,4,0,0)|0|0;c=da(d+(g*20|0)|0,4,0,0)|0|0;if(!((da(c+4|0,4,0,0)|0)&256)){d=Rs(a,b,(da(d+(g*20|0)+16|0,2,0,1)|0|0)+-1|0)|0;if(!d)d=da(f|0,4,0,0)|0|0;c=wv(a,c,da(d|0,4,0,0)|0|0)|0;ea((da(h|0,4,0,0)|0|0)+(g*20|0)|0,c|0,4,0)}else d=bu(a,c)|0;ea(j+(g<<2)+20|0,d|0,4,0);ea((da(e|0,4,0,0)|0|0)+g>>0|0,da((da(h|0,4,0,0)|0|0)+(g*20|0)+12>>0|0,1,0,0)|0|0|0,1,0);g=g+1|0}while((g|0)!=(i|0))}return j|0}function vu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;e=da(a|0,4,0,0)|0|0;a:do if((c|0)!=0?(da(e+65>>0|0,1,0,0)|0|0)==0:0){f=da(c|0,4,0,0)|0|0;if((f|0)>(da(e+96|0,4,0,0)|0|0)){ea(k|0,d|0,4,0);sh(a,27120,k);b=1;break}h=da(b|0,4,0,0)|0|0;if((f|0)>0){e=f;b=0;g=da(c+4|0,4,0,0)|0|0;while(1){f=da(g+16|0,2,0,0)|0|0;if(f<<16>>16){f=f&65535;e=da(h|0,4,0,0)|0|0;if((f|0)>(e|0))break;xv(a,h,f+-1|0,da(g|0,4,0,0)|0|0,d,0);e=da(c|0,4,0,0)|0|0}b=b+1|0;if((b|0)>=(e|0)){b=0;break a}else g=g+20|0}ea(k|0,b+1|0,4,0);ea(k+4|0,d|0,4,0);ea(k+8|0,e|0,4,0);sh(a,27064,k);b=1}else b=0}else b=0;while(0);i=l;return b|0}function wu(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;q=a+8|0;r=da(q|0,4,0,0)|0|0;t=r+32|0;i=da(t|0,4,0,0)|0|0;u=ws(r)|0;if(f){k=vh(r,46,f,0,0)|0;j=c+8|0;m=da(j|0,4,0,0)|0|0;o=f+1|0;l=c+12|0;n=da(l|0,4,0,0)|0|0;if(g)ea(g|0,(da(g|0,4,0,0)|0|0)+1|0,4,0);m=vh(r,42,m,o,n)|0;wh(r,m,g,-6);m=m+2|0;vh(r,43,m,u,m)|0;m=da(t|0,4,0,0)|0|0;if(m>>>0>k>>>0)ea((da(r+4|0,4,0,0)|0|0)+(k*20|0)+8|0,m|0,4,0);ea((da(r+24|0,4,0,0)|0|0)+88|0,m+-1|0,4,0);vh(r,33,da(j|0,4,0,0)|0|0,o,(da(l|0,4,0,0)|0|0)+-1|0)|0;vh(r,25,1,f,0)|0}if(!(da((da(a|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0)){ht(r,da(b+12|0,4,0,0)|0|0,u);switch(da(d>>0|0,1,0,1)|0|0){case 12:case 14:{j=a+19|0;l=da(j>>0|0,1,0,0)|0|0;if(l<<24>>24){f=l+-1<<24>>24;ea(j>>0|0,f|0,1,0);k=da(a+((f&255)<<2)+24|0,4,0,0)|0|0;if(!(f<<24>>24))p=12;else{l=l+-2<<24>>24;ea(j>>0|0,l|0,1,0);l=da(a+((l&255)<<2)+24|0,4,0,0)|0|0;j=k}}else{p=a+72|0;k=(da(p|0,4,0,0)|0|0)+1|0;ea(p|0,k|0,4,0);p=12}if((p|0)==12){j=a+72|0;l=(da(j|0,4,0,0)|0|0)+1|0;ea(j|0,l|0,4,0);j=k}vh(r,49,da(c+8|0,4,0,0)|0|0,da(c+12|0,4,0,0)|0|0,j)|0;k=d+4|0;vh(r,74,da(k|0,4,0,0)|0|0,l,0)|0;vh(r,75,da(k|0,4,0,0)|0|0,j,l)|0;k=da(r+4|0,4,0,0)|0|0;if(k)ea(k+(((da(t|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,8|0,1,0);Zr(a,l);Zr(a,j);break}case 11:{l=d+1|0;ea(l>>0|0,Au(da(da((da(b|0,4,0,0)|0|0)+4|0,4,0,0)|0|0,4,0,0)|0|0,da(l>>0|0,1,0,0)|0|0)|0|0,1,0);k=a+19|0;j=da(k>>0|0,1,0,0)|0|0;if(!(j<<24>>24)){p=a+72|0;k=(da(p|0,4,0,0)|0|0)+1|0;ea(p|0,k|0,4,0)}else{p=j+-1<<24>>24;ea(k>>0|0,p|0,1,0);k=da(a+((p&255)<<2)+24|0,4,0,0)|0|0}p=c+8|0;wh(r,vh(r,49,da(p|0,4,0,0)|0|0,1,k)|0,l,1);ct(a,da(p|0,4,0,0)|0|0,1);vh(r,110,da(d+4|0,4,0,0)|0|0,k,0)|0;Zr(a,k);break}case 10:{p=da(c+8|0,4,0,0)|0|0;vh(da(q|0,4,0,0)|0|0,32,p,da(d+4|0,4,0,0)|0|0,1)|0;ct(a,p,1);break}case 13:{n=d+8|0;k=da(n|0,4,0,0)|0|0;if(!k){k=da(c+12|0,4,0,0)|0|0;l=a+60|0;j=da(l|0,4,0,0)|0|0;g=a+56|0;m=da(g|0,4,0,0)|0|0;if((m|0)<(k|0)){p=a+72|0;j=da(p|0,4,0,0)|0|0;ea(p|0,j+k|0,4,0);j=j+1|0}else{ea(l|0,j+k|0,4,0);ea(g|0,m-k|0,4,0)}ea(n|0,j|0,4,0);ea(d+12|0,k|0,4,0)}else{j=k;k=da(d+12|0,4,0,0)|0|0}p=da(c+8|0,4,0,0)|0|0;vh(da(q|0,4,0,0)|0|0,32,p,j,k)|0;ct(a,p,k);vh(r,22,da(d+4|0,4,0,0)|0|0,0,0)|0;break}default:{f=c+8|0;p=c+12|0;vh(r,35,da(f|0,4,0,0)|0|0,da(p|0,4,0,0)|0|0,0)|0;ct(a,da(f|0,4,0,0)|0|0,da(p|0,4,0,0)|0|0)}}j=da(b+8|0,4,0,0)|0|0;if(j)vh(r,140,j,h,0)|0;j=da(r+24|0,4,0,0)|0|0;k=~u;if((u|0)<0?(s=da(j+112|0,4,0,0)|0|0,(s|0)!=0):0)ea(s+(k<<2)|0,da(t|0,4,0,0)|0|0,4,0);ea(j+88|0,(da(t|0,4,0,0)|0|0)+-1|0,4,0);vh(r,18,e,0,0)|0}else i=0;return i|0}function xu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+80|0;if((i|0)>=(j|0))ba();n=o+64|0;m=o+32|0;d=o;ea(n>>0|0,1|0,1,0);if((b|0)!=0?(da(a+4|0,4,0,0)|0|0)!=0:0){e=da(b>>0|0,1,0,1)|0|0;a:do if((e|0)==154|(e|0)==156){l=da(b+32|0,2,0,0)|0|0;d=l<<16>>16;if(a){k=b+28|0;b:while(1){while(1){h=da(a+4|0,4,0,0)|0|0;g=da(h|0,4,0,0)|0|0;c:do if((g|0)>0){b=da(k|0,4,0,0)|0|0;e=0;while(1){f=e+1|0;if((da(h+(e*72|0)+48|0,4,0,0)|0|0)==(b|0)){f=e;break c}if((f|0)<(g|0))e=f;else break}}else f=0;while(0);if((f|0)>=(g|0))break;g=da(h+(f*72|0)+24|0,4,0,0)|0|0;f=da(h+(f*72|0)+28|0,4,0,0)|0|0;b=(g|0)==0;if(!((a|0)!=0&b))break b}a=da(a+16|0,4,0,0)|0|0;if(!a){d=0;break a}}if(!b){if(f){if(l<<16>>16<=-1){d=0;break}e=da(f|0,4,0,0)|0|0;if((d|0)>=(da(e|0,4,0,0)|0|0)){d=0;break}d=da((da(e+4|0,4,0,0)|0|0)+(d*20|0)|0,4,0,0)|0|0;ea(m+4|0,da(f+32|0,4,0,0)|0|0,4,0);ea(m+16|0,a|0,4,0);ea(m|0,da(a|0,4,0,0)|0|0,4,0);d=xu(m,d,n)|0;break}if(da(g+68|0,4,0,0)|0){if(l<<16>>16<0)d=da(g+36|0,2,0,0)|0|0;if((d|0)<0)d=11144;else{l=da(g+4|0,4,0,0)|0|0;m=da(l+(d*24|0)+12|0,4,0,0)|0|0;ea(n>>0|0,da(l+(d*24|0)+22>>0|0,1,0,0)|0|0|0,1,0);d=m}}else d=0}else d=0}else d=0}else if((e|0)==119){l=da(b+20|0,4,0,0)|0|0;m=da(da((da(l|0,4,0,0)|0|0)+4|0,4,0,0)|0|0,4,0,0)|0|0;ea(d+4|0,da(l+32|0,4,0,0)|0|0,4,0);ea(d+16|0,a|0,4,0);ea(d|0,da(a|0,4,0,0)|0|0,4,0);d=xu(d,m,n)|0}else d=0;while(0);if(c)ea(c>>0|0,da(n>>0|0,1,0,0)|0|0|0,1,0)}else d=0;i=o;return d|0}function yu(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=da(a+8|0,4,0,0)|0|0;f=a+19|0;g=da(f>>0|0,1,0,0)|0|0;if(!(g<<24>>24)){g=a+72|0;f=(da(g|0,4,0,0)|0|0)+1|0;ea(g|0,f|0,4,0)}else{g=g+-1<<24>>24;ea(f>>0|0,g|0,1,0);f=da(a+((g&255)<<2)+24|0,4,0,0)|0|0}wh(h,vh(h,69,b,c,e)|0,d,-14);vh(h,49,e,d,f)|0;vh(h,110,b,f,0)|0;Zr(a,f);return}function zu(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;r=a+8|0;w=da(r|0,4,0,0)|0|0;v=b+24|0;h=(da(v>>0|0,1,0,0)|0)&1;k=h<<24>>24==0;h=(h^1)&255;g=da(b|0,4,0,0)|0|0;l=da(g|0,4,0,0)|0|0;m=l+e+h|0;p=a+72|0;j=da(p|0,4,0,0)|0|0;u=j+1|0;ea(p|0,u|0,4,0);s=b+4|0;n=da(s|0,4,0,0)|0|0;f=(f|0)==0;if(f){ea(p|0,u+m|0,4,0);q=j+2|0}else q=d-l-h|0;at(a,g,q,1);if(k)vh(w,73,da(b+8|0,4,0,0)|0|0,q+l|0,0)|0;if(f){vh(da(r|0,4,0,0)|0|0,32,d,h+l+q|0,e)|0;ct(a,d,e)}vh(w,49,q+n|0,m-n|0,u)|0;if((n|0)>0){g=da(p|0,4,0,0)|0|0;e=g+1|0;f=da(s|0,4,0,0)|0|0;ea(p|0,f+g|0,4,0);if(k)d=vh(w,46,q+l|0,0,0)|0;else d=vh(w,59,da(b+8|0,4,0,0)|0|0,0,0)|0;vh(w,42,e,q,da(s|0,4,0,0)|0|0)|0;j=da(b+20|0,4,0,0)|0|0;if((j|0)<0)j=(da(w+32|0,4,0,0)|0|0)+-1|0;if(!(da((da(w|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0))j=(da(w+4|0,4,0,0)|0|0)+(j*20|0)|0;else j=29120;if(!(da((da(a|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0)){ea(j+8|0,m-f|0,4,0);f=j+16|0;j=da(f|0,4,0,0)|0|0;ew(da(j+16|0,4,0,0)|0|0,0,da(j+6|0,2,0,1)|0|0)|0;wh(w,-1,j,-6);ea(f|0,Ts(a,da(b|0,4,0,0)|0|0,n,(da(j+8|0,2,0,1)|0|0)+-1|0)|0|0,4,0);j=w+32|0;f=da(j|0,4,0,0)|0|0;i=f+1|0;vh(w,43,i,0,i)|0;i=ws(w)|0;ea(b+16|0,i|0,4,0);h=(da(p|0,4,0,0)|0|0)+1|0;ea(p|0,h|0,4,0);ea(b+12|0,h|0,4,0);vh(w,17,h,i,0)|0;i=b+8|0;vh(w,119,da(i|0,4,0,0)|0|0,0,0)|0;h=da(j|0,4,0,0)|0|0;if(h>>>0>d>>>0)ea((da(w+4|0,4,0,0)|0|0)+(d*20|0)+8|0,h|0,4,0);g=w+24|0;ea((da(g|0,4,0,0)|0|0)+88|0,h+-1|0,4,0);h=da(s|0,4,0,0)|0|0;vh(da(r|0,4,0,0)|0|0,32,q,e,h)|0;ct(a,q,h);h=da(j|0,4,0,0)|0|0;if(h>>>0>f>>>0)ea((da(w+4|0,4,0,0)|0|0)+(f*20|0)+8|0,h|0,4,0);ea((da(g|0,4,0,0)|0|0)+88|0,h+-1|0,4,0);o=23}}else{i=b+8|0;o=23}if((o|0)==23?(vh(w,110-((da(v>>0|0,1,0,0)|0)&1)|0,da(i|0,4,0,0)|0|0,u,0)|0,t=da(c+8|0,4,0,0)|0|0,(t|0)!=0):0){h=da(c+12|0,4,0,0)|0|0;h=vh(w,139,(h|0)==0?t:h+1|0,0,-1)|0;vh(w,105,da(i|0,4,0,0)|0|0,0,0)|0;vh(w,95,da(i|0,4,0,0)|0|0,0,0)|0;g=da(w+32|0,4,0,0)|0|0;if(g>>>0>h>>>0)ea((da(w+4|0,4,0,0)|0|0)+(h*20|0)+8|0,g|0,4,0);ea((da(w+24|0,4,0,0)|0|0)+88|0,g+-1|0,4,0)}return}function Au(a,b){a=a|0;b=b|0;a=jv(a)|0;if(!(a<<24>>24==0|b<<24>>24==0))return (a<<24>>24>66|b<<24>>24>66?67:65)|0;if(!((a|b)<<24>>24))a=65;else a=(b&255)+(a&255)&255;return a|0}function Bu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;do if(!((a|0)==0|(b|0)==0)){g=da(a+4|0,4,0,0)|0|0;h=da(b+4|0,4,0,0)|0|0;i=h|g;if(i&1024){if((g&1024&h|0)!=0?(da(a+8|0,4,0,0)|0|0)==(da(b+8|0,4,0,0)|0|0):0){d=0;break}d=2;break}d=da(a>>0|0,1,0,0)|0|0;e=da(b>>0|0,1,0,0)|0|0;if(d<<24>>24!=e<<24>>24){if(d<<24>>24==95?(Bu(da(a+12|0,4,0,0)|0|0,b,c)|0)<2:0){d=1;break}if(e<<24>>24==95?(Bu(a,da(b+12|0,4,0,0)|0|0,c)|0)<2:0){d=1;break}d=2;break}if((!(d<<24>>24==-100|d<<24>>24==-102)?(f=da(a+8|0,4,0,0)|0|0,(f|0)!=0):0)?(Zv(f,da(b+8|0,4,0,0)|0|0)|0)!=0:0){d=d<<24>>24==95?1:2;break}if(!((h^g)&16)){if(!(i&16384)){if(i&2048){d=2;break}if(Bu(da(a+12|0,4,0,0)|0|0,da(b+12|0,4,0,0)|0|0,c)|0){d=2;break}if(Bu(da(a+16|0,4,0,0)|0|0,da(b+16|0,4,0,0)|0|0,c)|0){d=2;break}if(Ss(da(a+20|0,4,0,0)|0|0,da(b+20|0,4,0,0)|0|0,c)|0){d=2;break}if(!(i&8192)){if((da(a+32|0,2,0,0)|0|0)!=(da(b+32|0,2,0,0)|0|0)){d=2;break}e=da(a+28|0,4,0,0)|0|0;d=da(b+28|0,4,0,0)|0|0;if((e|0)!=(d|0)?(e|0)!=(c|0)|(d|0)>-1:0){d=2;break}}}d=0}else d=2}else d=(b|0)==(a|0)?0:2;while(0);return d|0}function Cu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=a+8|0;ea(d>>0|0,c|0,1,0);a:do if(b){while(1){if((da(b>>0|0,1,0,0)|0|0)!=c<<24>>24)break;Cu(a,da(b+12|0,4,0,0)|0|0,c);b=da(b+16|0,4,0,0)|0|0;ea(d>>0|0,c|0,1,0);if(!b)break a}yv(a,b,0)|0}while(0);return}function Du(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0;x=da(a|0,4,0,0)|0|0;L=da(x|0,4,0,0)|0|0;N=da(L|0,4,0,0)|0|0;G=N+65|0;do if(!(da(G>>0|0,1,0,0)|0)){O=a+20|0;f=da(O|0,4,0,0)|0|0;c=f+(b*48|0)|0;V=x+68|0;M=da(c|0,4,0,0)|0|0;n=M+12|0;g=da(n|0,4,0,0)|0|0;s=zv(V,g)|0;r=C;e=da(M>>0|0,1,0,0)|0|0;p=e&255;do if(e<<24>>24==76){d=f+(b*48|0)+32|0;ea(d|0,0|0,4,0);ea(d+4|0,0|0,4,0);d=0;o=0}else if(e<<24>>24==75){h=M+20|0;if(!((da(M+4|0,4,0,0)|0)&2048)){d=Ku(V,da(h|0,4,0,0)|0|0)|0;o=C;K=f+(b*48|0)+32|0;ea(K|0,d|0,4,0);ea(K+4|0,o|0,4,0);break}else{d=Av(V,da(h|0,4,0,0)|0|0)|0;o=C;K=f+(b*48|0)+32|0;ea(K|0,d|0,4,0);ea(K+4|0,o|0,4,0);break}}else{d=zv(V,da(M+16|0,4,0,0)|0|0)|0;o=C;K=f+(b*48|0)+32|0;ea(K|0,d|0,4,0);ea(K+4|0,o|0,4,0)}while(0);l=zv(V,M)|0;h=C;I=M+4|0;if(!((da(I|0,4,0,0)|0)&1)){J=0;K=0;q=h}else{j=da(M+36|0,2,0,0)|0|0;i=da(V|0,4,0,0)|0|0;a:do if((i|0)>0){k=0;while(1){if((da(x+(k<<2)+72|0,4,0,0)|0|0)==(j|0))break;k=k+1|0;if((k|0)>=(i|0)){k=0;j=0;break a}}k=hw(1,0,k|0)|0;j=C}else{k=0;j=0}while(0);J=iw(k|0,j|0,-1,-1)|0;K=C;l=k|l;q=j|h}m=f+(b*48|0)+40|0;ea(m|0,l|0,4,0);ea(m+4|0,q|0,4,0);m=f+(b*48|0)+8|0;ea(m|0,-1|0,4,0);ea(f+(b*48|0)+4|0,-1|0,4,0);u=f+(b*48|0)+18|0;ea(u|0,0|0,2,0);k=p+-75|0;if(k>>>0<9?(499>>>(k&511)&1)!=0:0){b:do if(!g)g=0;else while(1){k=da(g+4|0,4,0,0)|0|0;if(!(k&4096))break b;if(!(k&262144))i=g+12|0;else i=da((da(g+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;g=da(i|0,4,0,0)|0|0;if(!g){g=0;break}}while(0);k=da(M+16|0,4,0,0)|0|0;c:do if(!k)k=0;else while(1){j=da(k+4|0,4,0,0)|0|0;if(!(j&4096))break c;if(!(j&262144))k=k+12|0;else k=da((da(k+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;k=da(k|0,4,0,0)|0|0;if(!k){k=0;break}}while(0);o=(d&s|0)==0&(o&r|0)==0?4095:1024;if((da(g>>0|0,1,0,0)|0|0)==-102){h=da(g+28|0,4,0,0)|0|0;ea(m|0,h|0,4,0);ea(f+(b*48|0)+12|0,da(g+32|0,2,0,0)|0|0,4,0);if((p|0)==75)i=1;else if((p|0)==76)i=128;else i=2<<p+-79&65535;ea(u|0,i&o|0,2,0)}else h=-1;if((k|0)!=0?(da(k>>0|0,1,0,0)|0|0)==-102:0){if((h|0)>-1){g=Lr(N,M,0,0)|0;if(da(G>>0|0,1,0,0)|0){Fk(N,g);break}h=yv(a,g,3)|0;if(!h)break;i=da(O|0,4,0,0)|0|0;f=i+(h*48|0)|0;ea(i+(h*48|0)+4|0,b|0,4,0);ea(i+(h*48|0)+16|0,da(i+(b*48|0)+16|0,2,0,0)|0|0|0,2,0);c=i+(b*48|0)+22|0;ea(c>>0|0,(da(c>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);c=i+(b*48|0)|0;k=i+(b*48|0)+20|0;ea(k|0,da(k|0,2,0,1)|0|8|0,2,0);if(((da(M>>0|0,1,0,0)|0|0)==79?((da(I|0,4,0,0)|0)&1|0)==0:0)?((da(N+60|0,2,0,0)|0)&512)==0:0){n=i+(b*48|0)+18|0;ea(n|0,da(n|0,2,0,1)|0|1024|0,2,0);n=1024}else n=0}else{n=0;g=M;f=c}e=g+16|0;j=(da(e|0,4,0,0)|0|0)+4|0;i=da(j|0,4,0,0)|0|0;h=i&256;d=g+12|0;k=da(d|0,4,0,0)|0|0;do if((h|0)==((da(k+4|0,4,0,0)|0)&256|0)){if(h){ea(j|0,i&-257|0,4,0);break}k=(bu(L,k)|0)==0;i=da(d|0,4,0,0)|0|0;if(k)k=i;else{k=i+4|0;ea(k|0,da(k|0,4,0,0)|0|256|0,4,0);k=i}}while(0);i=da(e|0,4,0,0)|0|0;ea(e|0,k|0,4,0);ea(d|0,i|0,4,0);h=da(g>>0|0,1,0,0)|0|0;if((h&255)>79){h=((h&255)+176^2)+80&255;ea(g>>0|0,h|0,1,0)}g=da(i+4|0,4,0,0)|0|0;if(g&4096)do{if(!(g&262144))i=i+12|0;else i=da((da(i+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;i=da(i|0,4,0,0)|0|0;g=da(i+4|0,4,0,0)|0|0}while((g&4096|0)!=0);ea(f+8|0,da(i+28|0,4,0,0)|0|0,4,0);ea(f+12|0,da(i+32|0,2,0,0)|0|0,4,0);g=f+32|0;ea(g|0,J|s|0,4,0);ea(g+4|0,K|r|0,4,0);g=f+40|0;ea(g|0,l|0,4,0);ea(g+4|0,q|0,4,0);g=h&255;if((g|0)==75)g=1;else if((g|0)==76)g=128;else g=2<<g+-79&65535;ea(f+18|0,g+n&(o&65535)|0,2,0)}}else B=59;do if((B|0)==59){if(e<<24>>24==74){if((da(a+8>>0|0,1,0,0)|0|0)!=72)break;h=(da(M+20|0,4,0,0)|0|0)+4|0;d=M+36|0;e=0;while(1){l=da(34144+e>>0|0,1,0,1)|0|0;g=Lr(N,g,0,0)|0;g=Yq(L,l,g,Lr(N,da((da(h|0,4,0,0)|0|0)+(e*20|0)|0,4,0,0)|0|0,0,0)|0,0)|0;if(g){l=g+4|0;ea(l|0,da(l|0,4,0,0)|0|(da(I|0,4,0,0)|0)&1|0,4,0);ea(g+36|0,da(d|0,2,0,0)|0|0|0,2,0)}l=yv(a,g,3)|0;Du(a,l);f=da(O|0,4,0,0)|0|0;ea(f+(l*48|0)+4|0,b|0,4,0);ea(f+(l*48|0)+16|0,da(f+(b*48|0)+16|0,2,0,0)|0|0|0,2,0);l=f+(b*48|0)+22|0;ea(l>>0|0,(da(l>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);e=e+1|0;if((e|0)==2)break;g=da(n|0,4,0,0)|0|0}c=f+(b*48|0)|0;break}else if(e<<24>>24!=71)break;s=lh(N,416,0)|0;d:do if(s){ew(s|0,0,416)|0;ea(f+(b*48|0)+12|0,s|0,4,0);v=f+(b*48|0)+20|0;ea(v|0,da(v|0,2,0,1)|0|16|0,2,0);ea(s|0,x|0,4,0);ea(s+4|0,0|0,4,0);v=s+12|0;ea(v|0,0|0,4,0);ea(s+16|0,8|0,4,0);w=s+20|0;ea(w|0,s+24|0,4,0);Cu(s,M,71);h=da(v|0,4,0,0)|0|0;if((h|0)>0)do{h=h+-1|0;Du(s,h)}while((h|0)>0);if(!(da(G>>0|0,1,0,0)|0)){k=da(v|0,4,0,0)|0|0;if((k|0)>0){r=x+68|0;q=-1;p=-1;d=-1;c=-1;o=da(w|0,4,0,0)|0|0;while(1){k=k+-1|0;j=o+18|0;n=da(j|0,2,0,0)|0|0;if(!(n&255)){g=lh(N,408,0)|0;if(!g){h=q;i=p;d=0;c=0}else{ea(o+12|0,g|0,4,0);i=o+20|0;ea(i|0,da(i|0,2,0,1)|0|32|0,2,0);ea(j|0,512|0,2,0);ea(g|0,da(a|0,4,0,0)|0|0,4,0);i=g+4|0;ea(i|0,0|0,4,0);h=g+12|0;ea(h|0,0|0,4,0);ea(g+16|0,8|0,4,0);l=g+20|0;ea(l|0,g+24|0,4,0);Cu(g,da(o|0,4,0,0)|0|0,72);j=da(h|0,4,0,0)|0|0;if((j|0)>0)do{j=j+-1|0;Du(g,j)}while((j|0)>0);ea(i|0,a|0,4,0);if((da(G>>0|0,1,0,0)|0|0)==0?(t=da(h|0,4,0,0)|0|0,(t|0)>0):0){j=0;i=0;c=0;m=da(l|0,4,0,0)|0|0;while(1){h=(da((da(m|0,4,0,0)|0)>>0|0,1,0,1)|0|0)+-75|0;do if(h>>>0<9){if(!(499>>>(h&511)&1))break;g=da(m+8|0,4,0,0)|0|0;e=da(r|0,4,0,0)|0|0;e:do if((e|0)>0){h=0;while(1){if((da(x+(h<<2)+72|0,4,0,0)|0|0)==(g|0))break;h=h+1|0;if((h|0)>=(e|0)){h=0;g=0;break e}}h=hw(1,0,h|0)|0;g=C}else{h=0;g=0}while(0);j=h|j;i=g|i}while(0);c=c+1|0;if((c|0)>=(t|0))break;else m=m+48|0}}else{j=0;i=0}h=j&q;i=i&p;d=0;c=0}}else{i=da(o+20|0,2,0,0)|0|0;if(!(i&8)){l=da(o+8|0,4,0,0)|0|0;g=da(r|0,4,0,0)|0|0;h=(g|0)>0;f:do if(h){j=0;while(1){if((da(x+(j<<2)+72|0,4,0,0)|0|0)==(l|0))break;j=j+1|0;if((j|0)>=(g|0)){e=0;m=0;break f}}e=hw(1,0,j|0)|0;m=C}else{e=0;m=0}while(0);if(!(i&2)){j=e;l=m}else{l=da((da(w|0,4,0,0)|0|0)+((da(o+4|0,4,0,0)|0|0)*48|0)+8|0,4,0,0)|0|0;g:do if(h){j=0;while(1){if((da(x+(j<<2)+72|0,4,0,0)|0|0)==(l|0))break;j=j+1|0;if((j|0)>=(g|0)){j=0;l=0;break g}}j=hw(1,0,j|0)|0;l=C}else{j=0;l=0}while(0);j=j|e;l=l|m}g=(n&2)==0;h=j&q;i=l&p;d=g?0:j&d;c=g?0:l&c}else{h=q;i=p}}j=(h|0)!=0|(i|0)!=0;if(!((k|0)>0&j))break;else{q=h;p=i;o=o+48|0}}l=s+408|0;ea(l|0,h|0,4,0);ea(l+4|0,i|0,4,0);ea(u|0,((h|0)==0&(i|0)==0?0:256)|0,2,0);if(j)B=104}else{d=s+408|0;ea(d|0,-1|0,4,0);ea(d+4|0,-1|0,4,0);ea(u|0,256|0,2,0);d=-1;c=-1;B=104}h:do if((B|0)==104)if((da(v|0,4,0,0)|0|0)==2){g=da(w|0,4,0,0)|0|0;h=0;i:while(1){e=h+1|0;if((da(g+18|0,2,0,0)|0|0)!=512)if(!h)j=g;else break h;else{i=da(g+12|0,4,0,0)|0|0;if((da(i+12|0,4,0,0)|0|0)<=(h|0))break h;j=(da(i+20|0,4,0,0)|0|0)+(h*48|0)|0}if(!j)break h;else k=0;while(1){if((da(g+66|0,2,0,0)|0|0)==512){i=da(g+60|0,4,0,0)|0|0;if((da(i+12|0,4,0,0)|0|0)<=(k|0)){h=e;continue i}i=(da(i+20|0,4,0,0)|0|0)+(k*48|0)|0;if(!i){h=e;continue i}}else if(!k)i=g+48|0;else{h=e;continue i}Bv(a,j,i);g=da(w|0,4,0,0)|0|0;k=k+1|0}}}while(0);if(!((d|0)==0&(c|0)==0)){m=x+68|0;l=-1;n=0;while(1){i=da(v|0,4,0,0)|0|0;if((i|0)<=0)break d;k=da(w|0,4,0,0)|0|0;while(1){e=i;i=i+-1|0;g=k+20|0;ea(g|0,(da(g|0,2,0,1)|0)&65471|0,2,0);g=da(k+8|0,4,0,0)|0|0;if((g|0)!=(l|0)){h=da(m|0,4,0,0)|0|0;j:do if((h|0)>0){j=0;while(1){if((da(x+(j<<2)+72|0,4,0,0)|0|0)==(g|0))break;j=j+1|0;if((j|0)>=(h|0)){j=0;h=0;break j}}j=hw(1,0,j|0)|0;h=C}else{j=0;h=0}while(0);if(!((j&d|0)==0&(h&c|0)==0)){j=e;break}}if((i|0)<=0)break d;else k=k+48|0}h=da(k+12|0,4,0,0)|0|0;if((j|0)<1)break d;else j=g;while(1){if((j|0)==(g|0)){if((da(k+12|0,4,0,0)|0|0)!=(h|0)){i=g;h=1;break}l=jv(da((da(k|0,4,0,0)|0|0)+16|0,4,0,0)|0|0)|0;if(!(l<<24>>24==0|l<<24>>24==(jv(da((da(k|0,4,0,0)|0|0)+12|0,4,0,0)|0|0)|0)<<24>>24)){i=g;h=1;break}l=k+20|0;ea(l|0,da(l|0,2,0,1)|0|64|0,2,0)}else{l=k+20|0;ea(l|0,(da(l|0,2,0,1)|0)&65471|0,2,0)}if((i|0)<=0){i=g;h=0;break}j=da(k+56|0,4,0,0)|0|0;i=i+-1|0;k=k+48|0}n=n+1|0;if(!((n|0)<2&h))break;else l=i}if(!h){g=da(v|0,4,0,0)|0|0;if((g|0)>0){h=0;d=0;e=da(w|0,4,0,0)|0|0;while(1){g=g+-1|0;if((da(e+20|0,2,0,0)|0)&64){h=Lr(N,da((da(e|0,4,0,0)|0|0)+16|0,4,0,0)|0|0,0,0)|0;d=kr(da(x|0,4,0,0)|0|0,d,h)|0;h=da((da(e|0,4,0,0)|0|0)+12|0,4,0,0)|0|0}if((g|0)<=0){g=h;break}else e=e+48|0}}else{g=0;d=0}e=Yq(L,75,Lr(N,g,0,0)|0,0,0)|0;if(!e)Mk(N,d);else{l=e+4|0;ea(l|0,da(l|0,4,0,0)|0|(da(I|0,4,0,0)|0)&1|0,4,0);ea(e+36|0,da(M+36|0,2,0,0)|0|0|0,2,0);ea(e+20|0,d|0,4,0);l=yv(a,e,3)|0;Du(a,l);f=da(O|0,4,0,0)|0|0;ea(f+(l*48|0)+4|0,b|0,4,0);ea(f+(l*48|0)+16|0,da(f+(b*48|0)+16|0,2,0,0)|0|0|0,2,0);l=f+(b*48|0)+22|0;ea(l>>0|0,(da(l>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0)}ea(f+(b*48|0)+18|0,2048|0,2,0)}}}}else ea(f+(b*48|0)+12|0,0|0,4,0);while(0);c=(da(O|0,4,0,0)|0|0)+(b*48|0)|0}while(0);k:do if((da(a+8>>0|0,1,0,0)|0|0)==72){p=da(L|0,4,0,0)|0|0;if((da(M>>0|0,1,0,0)|0|0)==-103){o=M+20|0;g=da(o|0,4,0,0)|0|0;if((g|0)!=0?(da(g|0,4,0,0)|0|0)==2:0){h=da(M+8|0,4,0,0)|0|0;if(!h)g=0;else{g=h;while(1)if(!(da(g>>0|0,1,0,0)|0))break;else g=g+1|0;g=g-h&1073741823}g=Rh(p,h,g,2,1,0)|0;if(((((g|0)!=0?(y=da(g+2|0,2,0,0)|0|0,(y&4)!=0):0)?(F=da(g+4|0,4,0,0)|0|0,D=da(F>>0|0,1,0,0)|0|0,E=da(F+1>>0|0,1,0,0)|0|0,F=da(F+2>>0|0,1,0,0)|0|0,H=(y&65535)>>>3&1,z=(da(o|0,4,0,0)|0|0)+4|0,A=da((da(z|0,4,0,0)|0|0)+20|0,4,0,0)|0|0,(da(A>>0|0,1,0,0)|0|0)==-102):0)?(jv(A)|0)<<24>>24==66:0)?((da((da(A+44|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&16)==0:0){f=da(da(z|0,4,0,0)|0|0,4,0,0)|0|0;l:do if(!f)f=0;else while(1){e=da(f+4|0,4,0,0)|0|0;if(!(e&4096))break l;if(!(e&262144))f=f+12|0;else f=da((da(f+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;f=da(f|0,4,0,0)|0|0;if(!f){f=0;break}}while(0);e=da(f>>0|0,1,0,0)|0|0;m=e<<24>>24==-121;do if(m){g=da(L+476|0,4,0,0)|0|0;j=da(f+32|0,2,0,0)|0|0;k=j<<16>>16;do if(!g){d=0;h=0}else{B=k+-1|0;A=da(g+60|0,4,0,0)|0|0;d=A+(B*40|0)|0;if((da(A+(B*40|0)+8|0,2,0,0)|0)&1){d=0;h=0;break}h=da(g|0,4,0,0)|0|0;i=lh(h,40,0)|0;if(!i){d=0;h=0;break}g=i+0|0;e=g+40|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(e|0));B=i+8|0;ea(B|0,1|0,2,0);ea(i+32|0,h|0,4,0);Zg(i,d)|0;if(((da(B|0,2,0,0)|0)&15)!=2){d=i;h=0;break}d=i;h=Rg(i,1)|0}while(0);g=da(L+8|0,4,0,0)|0|0;if(j<<16>>16>32){ea(g+188|0,-1|0,4,0);l=h;B=177;break}else{l=g+188|0;ea(l|0,da(l|0,4,0,0)|0|1<<k+-1|0,4,0);l=h;B=177;break}}else if(e<<24>>24==97){d=0;l=da(f+8|0,4,0,0)|0|0;B=177}else d=0;while(0);do if((B|0)==177)if(l){h=0;while(1){B=da(l+h>>0|0,1,0,0)|0|0;e=B<<24>>24==D<<24>>24;g=h+1|0;if(B<<24>>24!=F<<24>>24&((B<<24>>24==0|e|B<<24>>24==E<<24>>24)^1))h=g;else break}if(h){if((da(l+(h+-1)>>0|0,1,0,0)|0|0)==-1)break;if(e)g=(da(l+g>>0|0,1,0,0)|0|0)==0;else g=0;i=g&1;n=st(p,97,l)|0;if(n)ea((da(n+8|0,4,0,0)|0|0)+h>>0|0,0|0,1,0);do if(m){h=da(L+8|0,4,0,0)|0|0;e=da(f+32|0,2,0,0)|0|0;if(e<<16>>16>32)ea(h+188|0,-1|0,4,0);else{F=h+188|0;ea(F|0,da(F|0,4,0,0)|0|1<<(e<<16>>16)+-1|0,4,0)}if(!g){i=0;break}if(!(da((da(f+8|0,4,0,0)|0|0)+1>>0|0,1,0,0)|0))break;e=L+19|0;g=da(e>>0|0,1,0,0)|0|0;if(!(g<<24>>24)){F=L+72|0;e=(da(F|0,4,0,0)|0|0)+1|0;ea(F|0,e|0,4,0)}else{F=g+-1<<24>>24;ea(e>>0|0,F|0,1,0);e=da(L+((F&255)<<2)+24|0,4,0,0)|0|0}hs(L,f,e)|0;f=da(h+32|0,4,0,0)|0|0;if(f>>>0>0)ea((da(h+4|0,4,0,0)|0|0)+((f+-1|0)*20|0)+12|0,0|0,4,0);Zr(L,e)}while(0);Lh(d);if(!l){B=217;break k}j=da((da((da(o|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;h=Lr(N,n,0,0)|0;k=H<<16>>16!=0;do if(!k){if(da((da(L|0,4,0,0)|0|0)+65>>0|0,1,0,0)|0)break;d=c+20|0;ea(d|0,da(d|0,2,0,1)|0|1024|0,2,0);d=n+8|0;g=da(d|0,4,0,0)|0|0;f=da(g>>0|0,1,0,0)|0|0;if(!(f<<24>>24))break;c=h+8|0;e=0;do{F=f&255;ea(g>>0|0,((da(10368+F>>0|0,1,0,1)|0|223)^32)&F|0,1,0);ea((da(c|0,4,0,0)|0|0)+e>>0|0,da(9328+F>>0|0,1,0,0)|0|0|0,1,0);e=e+1|0;g=(da(d|0,4,0,0)|0|0)+e|0;f=da(g>>0|0,1,0,0)|0|0}while(f<<24>>24!=0)}while(0);if(!(da(G>>0|0,1,0,0)|0)){f=da(h+8|0,4,0,0)|0|0;if(!f)e=-1;else{e=f;while(1)if(!(da(e>>0|0,1,0,0)|0))break;else e=e+1|0;e=(e-f&1073741823)+-1|0}f=f+e|0;e=da(f>>0|0,1,0,0)|0|0;if(k)d=i;else{d=e<<24>>24==64?0:i;e=da(9328+(e&255)>>0|0,1,0,0)|0|0}ea(f>>0|0,(e&255)+1|0,1,0);g=d}else g=i;d=H<<16>>16==0?13752:11152;e=Yq(L,83,wv(L,Lr(N,j,0,0)|0,d)|0,n,0)|0;if(e){H=e+4|0;ea(H|0,da(H|0,4,0,0)|0|(da(I|0,4,0,0)|0)&1|0,4,0);ea(e+36|0,da(M+36|0,2,0,0)|0|0|0,2,0)}f=yv(a,e,259)|0;Du(a,f);d=Yq(L,82,wv(L,Lr(N,j,0,0)|0,d)|0,h,0)|0;if(d){H=d+4|0;ea(H|0,da(H|0,4,0,0)|0|(da(I|0,4,0,0)|0)&1|0,4,0);ea(d+36|0,da(M+36|0,2,0,0)|0|0|0,2,0)}d=yv(a,d,259)|0;Du(a,d);e=da(O|0,4,0,0)|0|0;c=e+(b*48|0)|0;if(!g){B=217;break k}ea(e+(f*48|0)+4|0,b|0,4,0);I=e+(b*48|0)+16|0;ea(e+(f*48|0)+16|0,da(I|0,2,0,0)|0|0|0,2,0);B=e+(b*48|0)+22|0;ea(B>>0|0,(da(B>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);ea(e+(d*48|0)+4|0,b|0,4,0);ea(e+(d*48|0)+16|0,da(I|0,2,0,0)|0|0|0,2,0);ea(B>>0|0,(da(B>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);B=217;break k}}while(0);Lh(d);B=217}else B=217}else B=217}}else B=217;while(0);if((B|0)==217)if(((((da(M>>0|0,1,0,0)|0|0)==-103?(cd(da(M+8|0,4,0,0)|0|0,31416)|0)==0:0)?(P=da(M+20|0,4,0,0)|0|0,(da(P|0,4,0,0)|0|0)==2):0)?(Q=da(P+4|0,4,0,0)|0|0,R=da(Q+20|0,4,0,0)|0|0,(da(R>>0|0,1,0,0)|0|0)==-102):0)?(S=da(Q|0,4,0,0)|0|0,T=zv(V,S)|0,U=C,V=zv(V,R)|0,(V&T|0)==0&(C&U|0)==0):0){S=yv(a,Yq(L,51,0,Lr(N,S,0,0)|0,0)|0,3)|0;c=da(O|0,4,0,0)|0|0;V=c+(S*48|0)+32|0;ea(V|0,T|0,4,0);ea(V+4|0,U|0,4,0);ea(c+(S*48|0)+8|0,da(R+28|0,4,0,0)|0|0,4,0);ea(c+(S*48|0)+12|0,da(R+32|0,2,0,0)|0|0,4,0);ea(c+(S*48|0)+18|0,64|0,2,0);ea(c+(S*48|0)+4|0,b|0,4,0);ea(c+(S*48|0)+16|0,da(c+(b*48|0)+16|0,2,0,0)|0|0|0,2,0);T=c+(b*48|0)+22|0;ea(T>>0|0,(da(T>>0|0,1,0,0)|0|0)+1<<24>>24|0,1,0);T=c+(b*48|0)+20|0;ea(T|0,da(T|0,2,0,1)|0|8|0,2,0);T=c+(b*48|0)+40|0;V=da(T+4|0,4,0,0)|0|0;U=c+(S*48|0)+40|0;ea(U|0,da(T|0,4,0,0)|0|0,4,0);ea(U+4|0,V|0,4,0);c=c+(b*48|0)|0}V=c+32|0;U=V;b=da(U+4|0,4,0,0)|0|K;ea(V|0,da(U|0,4,0,0)|0|J|0,4,0);ea(V+4|0,b|0,4,0)}while(0);return}function Eu(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0;k=i;i=i+112|0;if((i|0)>=(j|0))ba();h=k;f=Cv(h,a,b,c,f,g)|0;a:do if(!f)f=0;else{g=f;f=0;do{b=g+32|0;c=da(b|0,4,0,0)|0|0;b=da(b+4|0,4,0,0)|0|0;if((c&d|0)==0&(b&e|0)==0){if((c|0)==0&(b|0)==0?((da(g+18|0,2,0,0)|0)&2)!=0:0){f=g;break a}f=(f|0)==0?g:f}g=Dv(h)|0}while((g|0)!=0)}while(0);i=k;return f|0}function Fu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0,aa=0,ca=0,ga=0,ha=0,ia=0,ja=0,ka=0;ja=i;i=i+16|0;if((i|0)>=(j|0))ba();ga=ja;q=da(a|0,4,0,0)|0|0;aa=da(q|0,4,0,0)|0|0;ha=da(aa|0,4,0,0)|0|0;_=da(a+4|0,4,0,0)|0|0;ca=da(a+12|0,4,0,0)|0|0;p=da(ca+16>>0|0,1,0,1)|0|0;q=da(q+4|0,4,0,0)|0|0;X=da(q+(p*72|0)+24|0,4,0,0)|0|0;s=da(a+8|0,4,0,0)|0|0;Y=_+20|0;_=_+12|0;d=da(_|0,4,0,0)|0|0;if((d|0)>0){f=da(q+(p*72|0)+48|0,4,0,0)|0|0;g=0;e=0;h=da(Y|0,4,0,0)|0|0;while(1){if((da(h+8|0,4,0,0)|0|0)==(f|0))e=(((da(h+18|0,2,0,0)|0)&-1153)<<16>>16!=0&1)+e|0;g=g+1|0;if((g|0)==(d|0))break;else h=h+48|0}}else e=0;if(!s)o=0;else{m=da(s|0,4,0,0)|0|0;a:do if((m|0)>0){h=da(s+4|0,4,0,0)|0|0;g=q+(p*72|0)+48|0;l=0;while(1){f=da(h+(l*20|0)|0,4,0,0)|0|0;if((da(f>>0|0,1,0,0)|0|0)!=-102){d=l;break a}d=l+1|0;if((da(f+28|0,4,0,0)|0|0)!=(da(g|0,4,0,0)|0|0)){d=l;break a}if((d|0)<(m|0))l=d;else break}}else d=0;while(0);o=(d|0)==(m|0)?m:0}d=(e*20|0)+56+(o<<3)|0;W=lh(ha,d,0)|0;do if(!W){sh(aa,15776,ga);d=7}else{ew(W|0,0,d|0)|0;d=W+56|0;n=d+(e*12|0)|0;ea(W|0,e|0,4,0);T=W+8|0;ea(T|0,o|0,4,0);U=W+4|0;ea(U|0,d|0,4,0);ea(W+12|0,n|0,4,0);V=W+16|0;ea(V|0,n+(o<<3)|0,4,0);f=da(_|0,4,0,0)|0|0;if((f|0)>0){l=da(q+(p*72|0)+48|0,4,0,0)|0|0;h=0;m=0;g=da(Y|0,4,0,0)|0|0;while(1){if((da(g+8|0,4,0,0)|0|0)==(l|0)?(t=da(g+18|0,2,0,0)|0|0,(t&-1153)<<16>>16!=0):0){ea(d+(m*12|0)|0,da(g+12|0,4,0,0)|0|0,4,0);ea(d+(m*12|0)+8|0,h|0,4,0);ea(d+(m*12|0)+4>>0|0,((t&255)==1?2:t&255)|0,1,0);m=m+1|0}h=h+1|0;if((h|0)==(f|0))break;else g=g+48|0}}if((o|0)>0){d=da(s+4|0,4,0,0)|0|0;e=0;do{ea(n+(e<<3)|0,da((da(d+(e*20|0)|0,4,0,0)|0|0)+32|0,2,0,0)|0|0,4,0);ea(n+(e<<3)+4>>0|0,da(d+(e*20|0)+12>>0|0,1,0,0)|0|0|0,1,0);e=e+1|0}while((e|0)!=(o|0))}v=ca;ea(v|0,0|0,4,0);ea(v+4|0,0|0,4,0);v=ca+18|0;ea(v|0,0|0,2,0);ea(ca+36|0,1024|0,4,0);w=ca+40|0;ea(w|0,0|0,2,0);x=ca+28|0;ea(x>>0|0,0|0,1,0);y=da(V|0,4,0,0)|0|0;z=da(W|0,4,0,0)|0|0;if(Mu(ha,ca,z)|0){lg(ha,W);d=7;break}R=W+28|0;S=W+24|0;A=W+20|0;B=W+32|0;D=W+40|0;E=W+48|0;F=X+60|0;G=aa+64|0;H=(z|0)>0;I=ca+30|0;J=ca+24|0;K=ca+32|0;L=ca+29|0;O=ca+20|0;P=ca+22|0;Q=ca+48|0;q=0;t=0;s=0;b:while(1){if(!((t|0)!=0|(q&1|0)==0))if((q|0)>2){d=0;break}else u=q+1|0;else u=q;if((s|0)==0&(u|0)>1){d=0;break}h=da(W|0,4,0,0)|0|0;if((h|0)>0){e=da(Y|0,4,0,0)|0|0;f=0;g=da(U|0,4,0,0)|0|0;while(1){q=da(g+8|0,4,0,0)|0|0;if((u|0)==2)ea(g+5>>0|0,(da(e+(q*48|0)+18|0,2,0,0)|0)&1^1|0,1,0);else if(!u){d=g+5|0;ea(d>>0|0,0|0,1,0);p=((da(e+(q*48|0)+18|0,2,0,0)|0)&1)==0;t=p?t:1;q=e+(q*48|0)+32|0;q=(da(q|0,4,0,0)|0|0)!=0|(da(q+4|0,4,0,0)|0|0)!=0;if(q|p^1)s=q?1:s;else ea(d>>0|0,1|0,1,0)}else if((u|0)==1){p=e+(q*48|0)+32|0;ea(g+5>>0|0,(da(p|0,4,0,0)|0|0)==0&(da(p+4|0,4,0,0)|0|0)==0&1|0,1,0)}else ea(g+5>>0|0,1|0,1,0);f=f+1|0;if((f|0)>=(h|0)){p=t;break}else g=g+12|0}}else p=t;ew(y|0,0,h<<3|0)|0;if(da(R|0,4,0,0)|0)Vc(da(S|0,4,0,0)|0|0);ea(A+0|0,0|0,4,0);ea(A+4|0,0|0,4,0);ea(A+8|0,0|0,4,0);ea(A+12|0,0|0,4,0);ea(D|0,+(5.e+98),8,1);d=E;ea(d|0,25|0,4,0);ea(d+4|0,0|0,4,0);d=da(aa|0,4,0,0)|0|0;q=F;while(1){q=da(q|0,4,0,0)|0|0;if((da(q|0,4,0,0)|0|0)==(d|0))break;else q=q+24|0}t=da(q+8|0,4,0,0)|0|0;q=qc[(fa(da((da(t|0,4,0,0)|0|0)+12|0,4,0,0)|0|0,127|0)|0)&127](t,W)|0;do if((q|0)==7)ea((da(aa|0,4,0,0)|0|0)+65>>0|0,1|0,1,0);else if(q){d=da(t+8|0,4,0,0)|0|0;if(d){ea(ga|0,d|0,4,0);sh(aa,10344,ga);break}if((q|0)!=516){q=q&255;if(q>>>0>26|(q|0)==2)q=16328;else q=da(15488+(q<<2)|0,4,0,0)|0|0}else q=16344;ea(ga|0,q|0,4,0);sh(aa,10344,ga)}while(0);q=t+8|0;Vc(da(q|0,4,0,0)|0|0);ea(q|0,0|0,4,0);q=da(W|0,4,0,0)|0|0;if((q|0)>0){d=0;do{if((da((da(U|0,4,0,0)|0|0)+(d*12|0)+5>>0|0,1,0,0)|0|0)==0?(da((da(V|0,4,0,0)|0|0)+(d<<3)|0,4,0,0)|0|0)>0:0){ea(ga|0,da(X|0,4,0,0)|0|0,4,0);sh(aa,34096,ga);q=da(W|0,4,0,0)|0|0}d=d+1|0}while((d|0)<(q|0))}d=da(G|0,4,0,0)|0|0;if(d)break;t=da(U|0,4,0,0)|0|0;o=ca;ea(o|0,b|0,4,0);ea(o+4|0,c|0,4,0);c:do if(H){q=0;do{ea((da(Q|0,4,0,0)|0|0)+(q<<2)|0,0|0,4,0);q=q+1|0}while((q|0)!=(z|0));ea(I|0,0|0,2,0);if(H){f=b;e=c;d=0;o=0;q=-1;while(1){h=da(y+(o<<3)|0,4,0,0)|0|0;l=h+-1|0;do if((h|0)>0){m=da(t+8|0,4,0,0)|0|0;if((h|0)>(z|0)|(m|0)<0){ia=65;break b}if((m|0)>=(da(_|0,4,0,0)|0|0)){ia=65;break b}g=(da(Q|0,4,0,0)|0|0)+(l<<2)|0;if(da(g|0,4,0,0)|0){ia=65;break b}n=da(Y|0,4,0,0)|0|0;ka=n+(m*48|0)+32|0;f=f|(da(ka|0,4,0,0)|0);e=e|(da(ka+4|0,4,0,0)|0);ka=ca;ea(ka|0,f|0,4,0);ea(ka+4|0,e|0,4,0);ea(g|0,n+(m*48|0)|0,4,0);q=(l|0)>(q|0)?l:q;do if((h|0)<17){if(!(da(y+(o<<3)+4>>0|0,1,0,0)|0))break;d=(d&65535|1<<l)&65535;ea(I|0,d|0,2,0)}while(0);if(!((da(n+(m*48|0)+18|0,2,0,0)|0)&1))break;if(!(da(y+(o<<3)+4>>0|0,1,0,0)|0))break c;ea(B|0,0|0,4,0)}while(0);o=o+1|0;if((o|0)>=(z|0)){ia=73;break}else t=t+12|0}}else{q=-1;ia=73}}else{ea(I|0,0|0,2,0);q=-1;ia=73}while(0);if((ia|0)==73){ia=0;ea(w|0,q+1|0,2,0);ea(J|0,da(A|0,4,0,0)|0|0,4,0);ea(x>>0|0,da(R|0,4,0,0)|0|0,1,0);ea(R|0,0|0,4,0);ea(K|0,da(S|0,4,0,0)|0|0,4,0);if(!(da(B|0,4,0,0)|0))q=0;else q=(da(T|0,4,0,0)|0)&255;ea(L>>0|0,q|0,1,0);ea(v|0,0|0,2,0);r=+(+da(D|0,8,1,0));ea(k|0,+r,8,1);q=da(k|0,4,0,0)|0|0;d=da(k+4|0,4,0,0)|0|0;do if(!(r<=1.0))if(!(r<=2.0e9)){q=lw(q|0,d|0,52)|0;q=iw(q|0,C|0,64514,0)|0;q=(q<<16>>16)*10&65535;break}else{q=es(~~r>>>0,+N(r)>=1.0?(r>0.0?~~+$(+M(r/4294967296.0),4294967295.0)>>>0:~~+Z((r-+(~~r>>>0))/4294967296.0)>>>0):0)|0;break}else q=0;while(0);ea(O|0,q|0,2,0);o=E;ea(P|0,es(da(o|0,4,0,0)|0|0,da(o+4|0,4,0,0)|0|0)|0|0,2,0);Ev(a,ca)|0;if(da(x>>0|0,1,0,0)|0){Vc(da(K|0,4,0,0)|0|0);ea(x>>0|0,0|0,1,0)}}q=u+1|0;if((q|0)>=4){d=0;break}else t=p}if((ia|0)==65){ea(ga|0,da(X|0,4,0,0)|0|0,4,0);sh(aa,34064,ga);d=1}if(da(R|0,4,0,0)|0)Vc(da(S|0,4,0,0)|0|0);lg(ha,W)}while(0);i=ja;return d|0}function Gu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=i;i=i+64|0;if((i|0)>=(j|0))ba();k=Y;h=Y+56|0;g=Y+52|0;ea(g|0,-1|0,2,0);V=da(a+12|0,4,0,0)|0|0;W=da(a|0,4,0,0)|0|0;D=da(W+4|0,4,0,0)|0|0;E=da(V+16>>0|0,1,0,1)|0|0;Q=D+(E*72|0)+8|0;f=D+(E*72|0)+24|0;F=da(f|0,4,0,0)|0|0;R=da(a+4|0,4,0,0)|0|0;S=D+(E*72|0)+76|0;d=da(S|0,4,0,0)|0|0;do if(!d){if((da(F+44>>0|0,1,0,0)|0)&32){k=da(F+8|0,4,0,0)|0|0;break}d=k+0|0;e=d+52|0;do{ea(d|0,0|0,4,0);d=d+4|0}while((d|0)<(e|0));ea(k+46|0,1|0,2,0);ea(k+48|0,1|0,2,0);ea(k+4|0,g|0,4,0);ea(k+8|0,h|0,4,0);ea(k+50>>0|0,5|0,1,0);ea(k+12|0,F|0,4,0);ea(k+44|0,da(F+42|0,2,0,0)|0|0|0,2,0);ea(h|0,da(F+28|0,2,0,0)|0|0|0,2,0);ea(h+2|0,0|0,2,0);if(!((da(D+(E*72|0)+45>>0|0,1,0,0)|0)&1))ea(k+20|0,da((da(f|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,4,0)}else k=d;while(0);h=da(F+28|0,2,0,0)|0|0;if(h<<16>>16<11)y=0;else{y=h<<16>>16;y=((es(y,((y|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((da(a+16|0,4,0,0)|0|0)==0?((da(W+34|0,2,0,0)|0)&128)==0:0)?((da((da(da(W|0,4,0,0)|0|0,4,0,0)|0|0)+24|0,4,0,0)|0)&1048576|0)!=0:0)?(da(S|0,4,0,0)|0|0)==0:0)?(l=da(D+(E*72|0)+45>>0|0,1,0,0)|0|0,(l&5)==0):0)?(B=F+44|0,(l&10|(da(B>>0|0,1,0,0)|0)&32)<<24>>24==0):0)?(z=da(R+20|0,4,0,0)|0|0,P=da(R+12|0,4,0,0)|0|0,A=z+(P*48|0)|0,(P|0)>0):0){s=V+8|0;t=V+24|0;u=V+42|0;v=V+28|0;w=V+40|0;x=V+48|0;o=(y&65535)+(h&65535)|0;e=o+4&65535;m=V+18|0;n=F+12|0;o=o+28&65535;p=V+22|0;q=V+20|0;r=V+36|0;f=z;do{l=f+32|0;h=l;g=s;if((((da(g|0,4,0,0)|0)&(da(h|0,4,0,0)|0)|0)==0?((da(g+4|0,4,0,0)|0)&(da(h+4|0,4,0,0)|0)|0)==0:0)?(Lu(f,Q,0,0)|0)!=0:0){ea(t|0,1|0,2,0);ea(u|0,0|0,2,0);ea(v|0,0|0,4,0);ea(w|0,1|0,2,0);ea(da(x|0,4,0,0)|0|0,f|0,4,0);ea(m|0,e|0,2,0);if((da(n|0,4,0,0)|0|0)==0?((da(B>>0|0,1,0,0)|0)&2)==0:0)ea(m|0,o|0,2,0);ea(p|0,43|0,2,0);ea(q|0,Fv(y,43)|0|0,2,0);ea(r|0,16384|0,4,0);O=l;d=da(O+4|0,4,0,0)|0|c;P=V;ea(P|0,da(O|0,4,0,0)|0|b|0,4,0);ea(P+4|0,d|0,4,0);d=Ev(a,V)|0}else d=0;f=f+48|0}while((d|0)==0&f>>>0<A>>>0)}else d=0;P=V+36|0;a:do if((d|0)==0&(k|0)!=0){G=V+24|0;H=V+42|0;I=V+40|0;J=V+17|0;K=V+18|0;L=V+22|0;M=V+28|0;N=D+(E*72|0)+48|0;O=V+20|0;u=D+(E*72|0)+64|0;A=F+42|0;D=F+44|0;p=W+34|0;q=R+12|0;s=R+20|0;t=1;while(1){l=da(k+36|0,4,0,0)|0|0;d=da(N|0,4,0,0)|0|0;b:do if(l){h=da(q|0,4,0,0)|0|0;if((h|0)>0){f=0;e=da(s|0,4,0,0)|0|0;while(1){g=da(e|0,4,0,0)|0|0;if(Gv(g,l,d)|0){if(!((da(g+4|0,4,0,0)|0)&1)){X=32;break b}if((da(g+36|0,2,0,0)|0|0)==(d|0)){X=32;break b}}f=f+1|0;if((f|0)>=(h|0)){d=0;break}else e=e+48|0}}else d=0}else X=32;while(0);if((X|0)==32){X=0;E=da(da(k+8|0,4,0,0)|0|0,2,0,0)|0|0;ea(G|0,0|0,2,0);ea(H|0,0|0,2,0);ea(I|0,0|0,2,0);ea(J>>0|0,0|0,1,0);ea(K|0,0|0,2,0);F=V;ea(F|0,b|0,4,0);ea(F+4|0,c|0,4,0);ea(L|0,E|0,2,0);ea(M|0,k|0,4,0);F=k+51|0;l=da(F>>0|0,1,0,0)|0|0;c:do if(((l&4)==0?(T=da((da(a|0,4,0,0)|0|0)+8|0,4,0,0)|0|0,(T|0)!=0):0)?(U=da(T|0,4,0,0)|0|0,(U|0)>0):0){B=da(T+4|0,4,0,0)|0|0;o=k+46|0;n=k+4|0;m=0;while(1){r=da(B+(m*20|0)|0,4,0,0)|0|0;d:do if(!r)r=0;else while(1){y=da(r+4|0,4,0,0)|0|0;if(!(y&4096))break d;if(!(y&262144))r=r+12|0;else r=da((da(r+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;r=da(r|0,4,0,0)|0|0;if(!r){r=0;break}}while(0);if((da(r>>0|0,1,0,0)|0|0)!=-102){B=0;break c}if((da(r+28|0,4,0,0)|0|0)==(d|0)){x=da(r+32|0,2,0,0)|0|0;if(x<<16>>16<0){B=1;break c}y=da(o|0,2,0,0)|0|0;if(y<<16>>16){w=da(n|0,4,0,0)|0|0;y=y&65535;z=0;do{if(x<<16>>16==(da(w+(z<<1)|0,2,0,0)|0|0)){B=1;break c}z=z+1|0}while((z|0)<(y|0))}}m=m+1|0;if((m|0)>=(U|0)){B=0;break}}}else B=0;while(0);do if((da(k+40|0,4,0,0)|0|0)<1){ea(P|0,256|0,4,0);ea(J>>0|0,((B|0)!=0?t&255:0)|0,1,0);ea(O|0,(E&65535)+16|0,2,0);Hv(R,V,E);d=Ev(a,V)|0;ea(L|0,E|0,2,0);if(d)break a}else{if(!(l&32)){v=u;w=da(v|0,4,0,0)|0|0;v=da(v+4|0,4,0,0)|0|0;z=k+4|0;r=0;l=0;x=da(k+48|0,2,0,1)|0|0;e:while(1){y=x;while(1){x=y+-1|0;if((y|0)<=0)break e;y=da((da(z|0,4,0,0)|0|0)+(x<<1)|0,2,0,0)|0|0;if((y&65535)<63)break;else y=x}o=hw(1,0,y<<16>>16|0)|0;r=o|r;l=C|l}o=w&~r;l=v&~l;x=o;w=l;l=(o|0)==0&(l|0)==0?576:512}else{x=0;w=0;l=576}ea(P|0,l|0,4,0);l=(B|0)!=0;if(!l?((da(D>>0|0,1,0,0)|0)&32)==0:0){if(!((x|0)==0&(w|0)==0))break;if((da(F>>0|0,1,0,0)|0)&4)break;if((da(k+44|0,2,0,0)|0|0)>=(da(A|0,2,0,0)|0|0))break;if(!(((da(p|0,2,0,0)|0)&4)==0&(da(2190*4|0,4,0,0)|0|0)!=0))break;if((da((da(da(W|0,4,0,0)|0|0,4,0,0)|0|0)+60|0,2,0,0)|0)&64)break}ea(J>>0|0,(l?t&255:0)|0,1,0);h=E<<16>>16;l=h+1+(((da(k+44|0,2,0,0)|0|0)*15|0)/(da(A|0,2,0,0)|0|0)|0)&65535;if(!((x|0)==0&(w|0)==0))l=Fv(l,h+16&65535)|0;ea(O|0,l|0,2,0);Hv(R,V,E);d=Ev(a,V)|0;ea(L|0,E|0,2,0);if(d)break a}while(0);d=Iv(a,Q,k,0)|0;if(da(S|0,4,0,0)|0)break a}k=da(k+20|0,4,0,0)|0|0;if(!((d|0)==0&(k|0)!=0))break;else t=t+1|0}}while(0);i=Y;return d|0}function Hu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;W=i;i=i+608|0;if((i|0)>=(j|0))ba();U=W+168|0;S=W+576|0;T=W+112|0;Q=W+56|0;R=W;d=da(a|0,4,0,0)|0|0;N=da(a+4|0,4,0,0)|0|0;h=da(N+20|0,4,0,0)|0|0;g=da(N+12|0,4,0,0)|0|0;P=h+(g*48|0)|0;M=da(a+12|0,4,0,0)|0|0;e=T+0|0;f=e+56|0;do{ea(e|0,0|0,4,0);e=e+4|0}while((e|0)<(f|0));f=da(d+4|0,4,0,0)|0|0;e=da(M+16>>0|0,1,0,1)|0|0;L=da(f+(e*72|0)+48|0,4,0,0)|0|0;a:do if((g|0)>0){v=M+8|0;w=S+8|0;x=S+16|0;y=M+40|0;z=M+48|0;A=M+36|0;B=M+18|0;C=M+17|0;D=M+24|0;E=M+20|0;F=M+22|0;G=U+4|0;H=U+8|0;I=U+12|0;J=U+20|0;K=S+4|0;r=f+(e*72|0)+24|0;s=R+8|0;t=T+8|0;u=Q+8|0;while(1){b:do if(((da(h+18|0,2,0,0)|0)&256)!=0?(O=da(h+12|0,4,0,0)|0|0,g=O+408|0,f=v,!(((da(f|0,4,0,0)|0)&(da(g|0,4,0,0)|0)|0)==0?((da(f+4|0,4,0,0)|0)&(da(g+4|0,4,0,0)|0)|0)==0:0)):0){g=O+20|0;q=(da(g|0,4,0,0)|0|0)+((da(O+12|0,4,0,0)|0|0)*48|0)|0;ea(S+0|0,da(a+0|0,4,0,0)|0|0,4,0);ea(S+4|0,da(a+4|0,4,0,0)|0|0,4,0);ea(S+8|0,da(a+8|0,4,0,0)|0|0,4,0);ea(S+12|0,da(a+12|0,4,0,0)|0|0,4,0);ea(w|0,0|0,4,0);ea(x|0,Q|0,4,0);g=da(g|0,4,0,0)|0|0;c:do if(g>>>0<q>>>0){e=1;d=0;d:while(1){if(!((da(g+18|0,2,0,0)|0)&512))if((da(g+8|0,4,0,0)|0|0)==(L|0)){ea(U|0,da(N|0,4,0,0)|0|0,4,0);ea(G|0,N|0,4,0);ea(H>>0|0,72|0,1,0);ea(I|0,1|0,4,0);ea(J|0,g|0,4,0);f=U;V=10}else f=e;else{f=da(g+12|0,4,0,0)|0|0;V=10}do if((V|0)==10){V=0;ea(K|0,f|0,4,0);ea(Q|0,0|0,2,0);if(!((da((da(r|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&16))d=Gu(S,b,c)|0;else d=Fu(S,b,c)|0;if(!d)d=Hu(S,b,c)|0;f=da(Q|0,2,0,0)|0|0;if(!(f<<16>>16))break d;if(e){ea(T|0,f|0,2,0);jw(t|0,u|0,(f&65535)<<4|0)|0;f=0;break}o=da(T|0,2,0,0)|0|0;ea(R|0,o|0,2,0);p=o&65535;jw(s|0,t|0,p<<4|0)|0;ea(T|0,0|0,2,0);if(!(o<<16>>16))f=0;else{o=0;do{if(!(f<<16>>16))f=0;else{k=R+(o<<4)+8|0;e=da(k|0,4,0,0)|0|0;k=da(k+4|0,4,0,0)|0|0;l=da(R+(o<<4)+16|0,2,0,0)|0|0;m=da(R+(o<<4)+18|0,2,0,0)|0|0;n=0;do{X=Q+(n<<4)+8|0;Y=da(X|0,4,0,0)|0|e;X=da(X+4|0,4,0,0)|0|k;f=Fv(l,da(Q+(n<<4)+16|0,2,0,0)|0|0)|0;Jv(T,Y,X,f,Fv(m,da(Q+(n<<4)+18|0,2,0,0)|0|0)|0);n=n+1|0;f=da(Q|0,2,0,0)|0|0}while((n|0)<(f&65535|0))}o=o+1|0}while((o|0)<(p|0));f=0}}while(0);g=g+48|0;if(g>>>0>=q>>>0)break c;else e=f}ea(T|0,0|0,2,0)}else d=0;while(0);ea(y|0,1|0,2,0);ea(da(z|0,4,0,0)|0|0,h|0,4,0);ea(A|0,8192|0,4,0);ea(B|0,0|0,2,0);ea(C>>0|0,0|0,1,0);ea(D+0|0,0|0,4,0);ea(D+4|0,0|0,4,0);ea(D+8|0,0|0,4,0);if(d)break a;g=da(T|0,2,0,1)|0|0;f=0;while(1){if((f|0)>=(g|0))break b;ea(E|0,(da(T+(f<<4)+16|0,2,0,1)|0|0)+1|0,2,0);ea(F|0,da(T+(f<<4)+18|0,2,0,0)|0|0|0,2,0);n=T+(f<<4)+8|0;d=da(n+4|0,4,0,0)|0|0;o=M;ea(o|0,da(n|0,4,0,0)|0|0,4,0);ea(o+4|0,d|0,4,0);d=Ev(a,M)|0;if(!d)f=f+1|0;else break a}}while(0);h=h+48|0;if(h>>>0>=P>>>0){d=0;break}}}else d=0;while(0);i=W;return d|0}function Iu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=b+48|0;d=da(c|0,4,0,0)|0|0;e=b+56|0;if((d|0)!=(e|0))lg(a,d);Kv(a,b);ea(c|0,e|0,4,0);ea(b+40|0,0|0,2,0);ea(b+44|0,3|0,2,0);ea(b+36|0,0|0,4,0);return}function Ju(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,$=0,aa=0,ca=0,fa=0,ga=0,ha=0,ia=0,ja=0;ja=i;i=i+32|0;if((i|0)>=(j|0))ba();Y=ja+24|0;V=ja+16|0;aa=ja+8|0;ia=ja;X=da(a|0,4,0,0)|0|0;fa=da(X|0,4,0,0)|0|0;k=da(a+41>>0|0,1,0,0)|0|0;ga=k&255;if((k&255)<2)R=1;else R=k<<24>>24==2?5:10;ha=a+8|0;f=da(ha|0,4,0,0)|0|0;Z=b<<16>>16==0;if((f|0)==0|Z)Q=0;else Q=da(f|0,4,0,0)|0|0;g=Q<<1;ca=g+(_((ga<<3)+64|0,R)|0)|0;ca=lh(fa,ca,((ca|0)<0)<<31>>31)|0;do if(ca){f=ca+(R<<5)|0;ea(f+0|0,0|0,4,0);ea(f+4|0,0|0,4,0);ea(f+8|0,0|0,4,0);ea(f+12|0,0|0,4,0);ea(f+16|0,0|0,4,0);ea(f+20|0,0|0,4,0);ea(f+24|0,0|0,4,0);ea(f+28|0,0|0,4,0);c=R<<1;h=_(R,-2)|0;h=ca+((_((((h|0)>-1?h:1073741823)+(R<<1)<<2)+4|0,ga)|0)+(R<<6))|0;e=c;d=ca;c=ca+(c<<5)|0;while(1){ea(d+24|0,c|0,4,0);e=e+-1|0;if((e|0)<=0)break;else{d=d+32|0;c=c+(ga<<2)|0}}e=(Q|0)!=0;if(e)ew(h|0,0,g|0)|0;else h=0;P=da(X+424|0,4,0,0)|0|0;ea(ca+(R<<5)+16|0,(P>>>0<48?P&65535:48)|0,2,0);if(e)ea(ca+(R<<5)+22>>0|0,(k<<24>>24!=0?-1:Q&255)|0,1,0);P=k<<24>>24==0;if(!P){L=a+16|0;M=a+34|0;N=b<<16>>16<11;O=(b&65535)+16|0;I=b<<16>>16;J=((I|0)<0)<<31>>31;K=R>>>0>1;c=ca;H=0;g=0;k=0;b=0;d=1;while(1){if((d|0)>0){C=H&65535;D=H<<2;E=c+18|0;F=c+16|0;G=0;e=0;B=f;while(1){l=da(L|0,4,0,0)|0|0;if(l){w=B+22|0;x=B+16|0;y=B+20|0;z=B+24|0;A=B+8|0;v=e;while(1){o=da(w>>0|0,1,0,0)|0|0;e=V;ea(e|0,0|0,4,0);ea(e+4|0,0|0,4,0);e=l;n=B;m=da(n|0,4,0,0)|0|0;n=da(n+4|0,4,0,0)|0|0;a:do if((((da(e|0,4,0,0)|0)&~m|0)==0?((da(e+4|0,4,0,0)|0)&~n|0)==0:0)?(S=l+8|0,U=S,T=da(U|0,4,0,0)|0|0,U=da(U+4|0,4,0,0)|0|0,(T&m|0)==0&(U&n|0)==0):0){s=da(x|0,2,0,1)|0|0;t=Fv(da(l+18|0,2,0,0)|0|0,s+(da(l+20|0,2,0,1)|0|0)&65535)|0;t=Fv(t,da(y|0,2,0,0)|0|0)|0;s=(da(l+22|0,2,0,1)|0|0)+s|0;u=s&65535;r=T|m;q=U|n;if(o<<24>>24<0)o=Lv(a,da(ha|0,4,0,0)|0|0,B,da(M|0,2,0,0)|0|0,C,l,V)|0;else{n=A;m=da(n+4|0,4,0,0)|0|0;e=V;ea(e|0,da(n|0,4,0,0)|0|0,4,0);ea(e+4|0,m|0,4,0)}n=o<<24>>24;if(o<<24>>24>-1&(Q|0)>(n|0)){p=h+(n<<1)|0;m=da(p|0,2,0,0)|0|0;if(!(m<<16>>16)){n=((Q-n|0)*100|0)/(Q|0)|0;n=(es(n,((n|0)<0)<<31>>31)|0)&65535;if(N)e=0;else e=((es(I,J)|0)&65535)+65503&65535;n=O+(((n<<16)+-4325376|0)>>>16)+e|0;if((da(M|0,2,0,0)|0)&1024)n=(n&65535)+16|0;m=n&65535;ea(p|0,m|0,2,0)}p=Fv(t,m)|0}else p=t;b:do if((v|0)>0){e=0;m=c;while(1){n=m;if(((da(n|0,4,0,0)|0|0)==(r|0)?(da(n+4|0,4,0,0)|0|0)==(q|0):0)?((da(m+22>>0|0,1,0,0)|0)^o)<<24>>24>-1:0)break;e=e+1|0;if((e|0)>=(v|0)){W=35;break b}else m=m+32|0}e=da(m+18|0,2,0,0)|0|0;if(e<<16>>16<p<<16>>16){e=v;break a}if(e<<16>>16!=p<<16>>16){e=v;break}if((da(m+16|0,2,0,0)|0|0)>(s<<16>>16|0))e=v;else{e=v;break a}}else W=35;while(0);if((W|0)==35){W=0;m=(v|0)<(R|0);if(!m){if(p<<16>>16>g<<16>>16){e=v;break}if(!(p<<16>>16!=g<<16>>16?1:t<<16>>16<b<<16>>16)){e=v;break}}e=(m&1)+v|0;m=c+((m?v:k)<<5)|0}q=B;s=S;r=da(s+4|0,4,0,0)|0|(da(q+4|0,4,0,0)|0);n=m;ea(n|0,da(s|0,4,0,0)|0|(da(q|0,4,0,0)|0)|0,4,0);ea(n+4|0,r|0,4,0);r=V;n=da(r+4|0,4,0,0)|0|0;q=m+8|0;ea(q|0,da(r|0,4,0,0)|0|0,4,0);ea(q+4|0,n|0,4,0);ea(m+16|0,u|0,2,0);ea(m+18|0,p|0,2,0);ea(m+20|0,t|0,2,0);ea(m+22>>0|0,o|0,1,0);m=m+24|0;jw(da(m|0,4,0,0)|0|0,da(z|0,4,0,0)|0|0,D|0)|0;ea((da(m|0,4,0,0)|0|0)+(H<<2)|0,l|0,4,0);if((e|0)<(R|0))break;g=da(E|0,2,0,0)|0|0;b=da(F|0,2,0,0)|0|0;if(K){o=c;p=1;n=g;k=0;m=b}else{k=0;break}while(1){g=da(o+50|0,2,0,0)|0|0;do if(g<<16>>16<=n<<16>>16){if(g<<16>>16!=n<<16>>16){g=n;b=m;break}b=da(o+52|0,2,0,0)|0|0;if(b<<16>>16>m<<16>>16)W=48;else{g=n;b=m}}else{b=da(o+52|0,2,0,0)|0|0;W=48}while(0);o=o+32|0;if((W|0)==48){W=0;k=p}p=p+1|0;if((p|0)>=(R|0))break;else{n=g;m=b}}}else e=v;while(0);l=da(l+52|0,4,0,0)|0|0;if(!l)break;else v=e}}G=G+1|0;if((G|0)==(d|0)){d=e;break}else B=B+32|0}}else d=0;H=H+1|0;if((H|0)>=(ga|0))break;else{G=c;c=f;f=G}}if(!d){sh(X,34008,Y);lg(fa,ca);break}if((d|0)>1){e=1;f=c;do{if((da(f+18|0,2,0,0)|0|0)>(da(c+(e<<5)+18|0,2,0,0)|0|0))f=c+(e<<5)|0;e=e+1|0}while((e|0)!=(d|0))}else f=c;if(!P){d=a+4|0;e=da(f+24|0,4,0,0)|0|0;c=0;do{W=da(e+(c<<2)|0,4,0,0)|0|0;ea(a+(c*80|0)+800|0,W|0,4,0);W=da(W+16>>0|0,1,0,0)|0|0;ea(a+(c*80|0)+780>>0|0,W|0,1,0);ea(a+(c*80|0)+740|0,da((da(d|0,4,0,0)|0|0)+((W&255)*72|0)+48|0,4,0,0)|0|0,4,0);c=c+1|0}while((c|0)<(ga|0))}}d=a+34|0;if((((da(d|0,2,0,0)|0)&1536)==1024?($=a+40|0,!((da($>>0|0,1,0,0)|0|0)!=0|Z)):0)?(W=a+12|0,V=ga+-1|0,V=(Lv(a,da(W|0,4,0,0)|0|0,f,512,V&65535,da((da(f+24|0,4,0,0)|0|0)+(V<<2)|0,4,0,0)|0|0,aa)|0)<<24>>24,(V|0)==(da(da(W|0,4,0,0)|0|0,4,0,0)|0|0)):0)ea($>>0|0,2|0,1,0);e=da(ha|0,4,0,0)|0|0;if(e){c=da(d|0,2,0,0)|0|0;d=da(f+22>>0|0,1,0,0)|0|0;if(c&512){if((d<<24>>24|0)==(da(e|0,4,0,0)|0|0))ea(a+40>>0|0,2|0,1,0)}else{ea(a+36>>0|0,(d<<24>>24<0?0:d)|0,1,0);U=f+8|0;W=da(U+4|0,4,0,0)|0|0;V=a+24|0;ea(V|0,da(U|0,4,0,0)|0|0,4,0);ea(V+4|0,W|0,4,0)}if(((c&2048)!=0?(da(a+36>>0|0,1,0,0)|0|0)==(da(e|0,4,0,0)|0|0):0)?(W=ia,ea(W|0,0|0,4,0),ea(W+4|0,0|0,4,0),W=ga+-1|0,W=(Lv(a,e,f,0,W&65535,da((da(f+24|0,4,0,0)|0|0)+(W<<2)|0,4,0,0)|0|0,ia)|0)<<24>>24,(W|0)==(da(da(ha|0,4,0,0)|0|0,4,0,0)|0|0)):0){ea(a+37>>0|0,1|0,1,0);U=ia;W=da(U+4|0,4,0,0)|0|0;V=a+24|0;ea(V|0,da(U|0,4,0,0)|0|0,4,0);ea(V+4|0,W|0,4,0)}}ea(a+32|0,da(f+16|0,2,0,0)|0|0|0,2,0);lg(fa,ca)}while(0);i=ja;return}function Ku(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if((b|0)!=0?(f=da(b|0,4,0,0)|0|0,(f|0)>0):0){d=da(b+4|0,4,0,0)|0|0;c=0;b=0;e=0;do{g=zv(a,da(d+(e*20|0)|0,4,0,0)|0|0)|0;c=g|c;b=C|b;e=e+1|0}while((e|0)<(f|0))}else{b=0;c=0}C=b;return c|0}function Lu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;do if((((da(a+8|0,4,0,0)|0|0)==(da(b+40|0,4,0,0)|0|0)?((da(a+18|0,2,0,0)|0)&2)!=0:0)?(e=a+32|0,((da(e|0,4,0,0)|0)&c|0)==0?((da(e+4|0,4,0,0)|0)&d|0)==0:0):0)?(f=da(a+12|0,4,0,0)|0|0,(f|0)>=0):0){c=da((da((da(b+16|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(f*24|0)+21>>0|0,1,0,0)|0|0;d=(mv(da(a|0,4,0,0)|0|0)|0)<<24>>24;if((d|0)==66){d=c<<24>>24==66&1;break}else if((d|0)==65){d=1;break}else{d=c<<24>>24>66&1;break}}else d=0;while(0);return d|0}function Mu(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;g=b+44|0;if((da(g|0,2,0,1)|0|0|0)<(c|0)){d=c+7&-8;e=lh(a,d<<2,0)|0;if(!e)c=7;else{f=b+48|0;jw(e|0,da(f|0,4,0,0)|0|0,(da(g|0,2,0,1)|0|0)<<2|0)|0;c=da(f|0,4,0,0)|0|0;if((c|0)!=(b+56|0))lg(a,c);ea(f|0,e|0,4,0);ea(g|0,d|0,2,0);c=0}}else c=0;return c|0}function Nu(a,b,c){a=a|0;b=b|0;c=c|0;do if(!((da(b+4|0,4,0,0)|0)&256)){if((c|0)!=0?((da(c+4|0,4,0,0)|0)&256|0)!=0:0){b=bu(a,c)|0;break}b=bu(a,b)|0;if(!b)b=bu(a,c)|0}else b=bu(a,b)|0;while(0);return b|0}function Ou(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+144|0;if((i|0)>=(j|0))ba();p=u;t=u+8|0;k=u+36|0;if(((da(a+450>>0|0,1,0,0)|0|0)==2?(m=da(c+44>>0|0,1,0,1)|0|0,s=da(a+8|0,4,0,0)|0|0,h=da(a|0,4,0,0)|0|0,r=da(a+464|0,4,0,0)|0|0,o=da(c+64|0,4,0,0)|0|0,q=o+36|0,n=da(q|0,4,0,0)|0|0,(n&8192|0)==0):0)?(g=f&65535,(g&64|0)==0):0){f=n&48;do if(!f){if((n&1024|0)==0?(da(o+24|0,2,0,0)|0|0)!=0:0){l=1;break}l=(g&3|0)!=0}else l=1;while(0);ea(t+4|0,k|0,4,0);ea(t+8|0,k|0,4,0);ea(t+12|0,0|0,4,0);ea(t+16|0,100|0,4,0);ea(t+20|0,1e9|0,4,0);ea(t+24>>0|0,1|0,1,0);ea(t+25>>0|0,0|0,1,0);ea(t|0,h|0,4,0);a=l?33576:33584;c=a;while(1)if(!(da(c>>0|0,1,0,0)|0))break;else c=c+1|0;Rk(t,a,c-a&1073741823);if(!(da(b+(m*72|0)+28|0,4,0,0)|0)){ea(p|0,da(b+(m*72|0)+16|0,4,0,0)|0|0,4,0);Dn(t,0,33608,p)}else{ea(p|0,da(b+(m*72|0)+46>>0|0,1,0,1)|0|0,4,0);Dn(t,0,33592,p)}a=da(b+(m*72|0)+20|0,4,0,0)|0|0;if(a){ea(p|0,a|0,4,0);Dn(t,0,33624,p)}do if(!(n&1280)){g=o+28|0;c=da(g|0,4,0,0)|0|0;f=b+(m*72|0)+24|0;if(((da((da(f|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&32)!=0?((da(c+51>>0|0,1,0,0)|0)&3)==2:0)if(l)a=33632;else break;else if(!(n&131072))if(!(n&16384))a=(n&64|0)==0?33744:33720;else a=33688;else a=33648;Rk(t,33760,7);ea(p|0,da(c|0,4,0,0)|0|0,4,0);Dn(t,0,a,p);n=da(o+24|0,2,0,0)|0|0;l=da((da(f|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;k=da((da(g|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;c=n&65535;if(!(n<<16>>16)){if(!((da(q|0,4,0,0)|0)&48))break;Rk(t,33904,2);g=0}else{f=da(o+42|0,2,0,0)|0|0;Rk(t,33904,2);f=f&65535;g=0;do{a=da(k+(g<<1)|0,2,0,0)|0|0;if(a<<16>>16<0)a=20456;else a=da(l+((a<<16>>16)*24|0)|0,4,0,0)|0|0;if((g|0)<(f|0)){if(g)Rk(t,33920,5);ea(p|0,a|0,4,0);Dn(t,0,33928,p)}else Mv(t,g,a,33912);g=g+1|0}while((g|0)<(c|0));g=c>>>0>1?c:1}f=da(q|0,4,0,0)|0|0;if(!(f&32))a=g;else{f=da(k+(g<<1)|0,2,0,0)|0|0;if(f<<16>>16<0)f=20456;else f=da(l+((f<<16>>16)*24|0)|0,4,0,0)|0|0;Mv(t,g,f,33936);f=da(q|0,4,0,0)|0|0;a=g+1|0}if(f&16){g=da(k+(g<<1)|0,2,0,0)|0|0;if(g<<16>>16<0)g=20456;else g=da(l+((g<<16>>16)*24|0)|0,4,0,0)|0|0;Mv(t,a,g,33944)}Rk(t,33952,1)}else{if((n&256|0)==0|(n&15|0)==0){if(!(n&1024))break;n=da(o+32|0,4,0,0)|0|0;ea(p|0,da(o+24|0,4,0,0)|0|0,4,0);ea(p+4|0,n|0,4,0);Dn(t,0,33872,p);break}if(!(n&5))if((f|0)==48)f=33784;else f=(n&32|0)==0?33824:33808;else f=33768;Rk(t,33840,27);g=f;while(1)if(!(da(g>>0|0,1,0,0)|0))break;else g=g+1|0;Rk(t,f,g-f&1073741823)}while(0);n=sg(t)|0;wh(s,vh(s,157,r,d,e)|0,n,-1)}i=u;return}function Pu(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;j=da(b|0,4,0,0)|0|0;l=da(a+8|0,4,0,0)|0|0;g=da(j>>0|0,1,0,0)|0|0;do if(g<<24>>24==76)vh(l,28,0,f,0)|0;else if(g<<24>>24==79)f=hs(a,da(j+16|0,4,0,0)|0|0,f)|0;else{h=da(c+64|0,4,0,0)|0|0;g=h+36|0;if((((da(g|0,4,0,0)|0)&1024|0)==0?(i=da(h+28|0,4,0,0)|0|0,(i|0)!=0):0)?(da((da(i+28|0,4,0,0)|0|0)+d>>0|0,1,0,0)|0|0)!=0:0)e=(e|0)==0&1;k=lv(a,j,4,0)|0;if((k|0)==4)e=(e|0)==0&1;j=da(j+28|0,4,0,0)|0|0;d=(e|0)!=0;vh(l,d?105:108,j,0,0)|0;ea(g|0,da(g|0,4,0,0)|0|2048|0,4,0);i=c+56|0;g=da(i|0,4,0,0)|0|0;if(!g){ea(c+16|0,ws(l)|0|0,4,0);g=da(i|0,4,0,0)|0|0}h=g+1|0;ea(i|0,h|0,4,0);g=c+60|0;h=Vl(da(a|0,4,0,0)|0|0,da(g|0,4,0,0)|0|0,h*12|0,0)|0;ea(g|0,h|0,4,0);if(!h){ea(i|0,0|0,4,0);break}g=(da(i|0,4,0,0)|0|0)+-1|0;ea(h+(g*12|0)|0,j|0,4,0);if((k|0)==1)e=vh(l,103,j,f,0)|0;else e=vh(l,47,j,0,f)|0;ea(h+(g*12|0)+4|0,e|0,4,0);ea(h+(g*12|0)+8>>0|0,(d?6:7)|0,1,0);vh(l,76,f,0,0)|0}while(0);Qu(c,b);return f|0}function Qu(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:do if(b){h=a+72|0;g=0;while(1){d=b+20|0;f=da(d|0,2,0,0)|0|0;if(f&4)break a;if((da(a|0,4,0,0)|0|0)!=0?((da((da(b|0,4,0,0)|0|0)+4|0,4,0,0)|0)&1|0)==0:0)break a;c=h;e=b+40|0;if(!(((da(e|0,4,0,0)|0)&(da(c|0,4,0,0)|0)|0)==0?((da(e+4|0,4,0,0)|0)&(da(c+4|0,4,0,0)|0)|0)==0:0))break a;c=f&65535;ea(d|0,c|((g|0)==0|(c&1024|0)==0?4:512)|0,2,0);c=da(b+4|0,4,0,0)|0|0;if((c|0)<0)break a;b=da((da(b+24|0,4,0,0)|0|0)+20|0,4,0,0)|0|0;e=b+(c*48|0)+22|0;d=(da(e>>0|0,1,0,0)|0|0)+-1<<24>>24;ea(e>>0|0,d|0,1,0);if(d<<24>>24)break a;b=b+(c*48|0)|0;if(!b)break;else g=g+1|0}}while(0);return}function Ru(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;do if(!((da((da(a|0,4,0,0)|0|0)+60|0,2,0,0)|0)&2)){h=a+116|0;g=0;e=h;while(1){f=e+12|0;if(!(da(f|0,4,0,0)|0)){k=4;break}g=g+1|0;if((g|0)>=10){i=0;e=-1;j=2147483647;break}else e=e+20|0}if((k|0)==4){ea(e+8|0,da(a+100|0,4,0,0)|0|0,4,0);ea(e|0,b|0,4,0);ea(e+4|0,c|0,2,0);ea(f|0,d|0,4,0);ea(e+6>>0|0,0|0,1,0);d=a+104|0;b=da(d|0,4,0,0)|0|0;ea(d|0,b+1|0,4,0);ea(e+16|0,b|0,4,0);break}while(1){g=da(h+16|0,4,0,0)|0|0;f=(g|0)<(j|0);e=f?i:e;i=i+1|0;if((i|0)==10)break;else{j=f?g:j;h=h+20|0}}if((e|0)>-1){ea(a+(e*20|0)+124|0,da(a+100|0,4,0,0)|0|0,4,0);ea(a+(e*20|0)+116|0,b|0,4,0);ea(a+(e*20|0)+120|0,c|0,2,0);ea(a+(e*20|0)+128|0,d|0,4,0);ea(a+(e*20|0)+122>>0|0,0|0,1,0);d=a+104|0;b=da(d|0,4,0,0)|0|0;ea(d|0,b+1|0,4,0);ea(a+(e*20|0)+132|0,b|0,4,0)}}while(0);return}function Su(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;o=da(a+8|0,4,0,0)|0|0;j=da(b+64|0,4,0,0)|0|0;k=da(j+24|0,2,0,0)|0|0;m=da(j+42|0,2,0,0)|0|0;q=da(j+28|0,4,0,0)|0|0;i=a+72|0;n=da(i|0,4,0,0)|0|0;f=n+1|0;p=k&65535;l=p+d|0;ea(i|0,n+l|0,4,0);n=da(a|0,4,0,0)|0|0;q=jh(n,nt(o,q)|0)|0;n=(q|0)!=0;if(!n)ea((da(a|0,4,0,0)|0|0)+65>>0|0,1|0,1,0);if(m<<16>>16){d=da(b+8|0,4,0,0)|0|0;g=(c|0)!=0;vh(o,g?105:108,d,0,0)|0;h=vh(o,16,0,0,0)|0;i=m&65535;g=vh(o,g?62:65,d,0,f)|0;wh(o,g,i,-14);ea(b+20|0,g|0,4,0);g=da(o+32|0,4,0,0)|0|0;if(g>>>0>h>>>0)ea((da(o+4|0,4,0,0)|0|0)+(h*20|0)+8|0,g|0,4,0);ea((da(o+24|0,4,0,0)|0|0)+88|0,g+-1|0,4,0);h=0;do{vh(o,47,d,h,h+f|0)|0;h=h+1|0}while((h|0)<(i|0))}if((m&65535)<(k&65535)){j=j+48|0;i=b+12|0;k=(l|0)==1;l=m&65535;h=f;while(1){g=da((da(j|0,4,0,0)|0|0)+(l<<2)|0,4,0,0)|0|0;d=l+h|0;f=Pu(a,g,b,l,c,d)|0;do if((f|0)!=(d|0))if(k){Zr(a,h);break}else{vh(o,34,f,d,0)|0;f=h;break}else f=h;while(0);if(!((da(g+18|0,2,0,0)|0)&129)){d=da((da(g|0,4,0,0)|0|0)+16|0,4,0,0)|0|0;if(Tu(d)|0)vh(o,76,f+l|0,da(i|0,4,0,0)|0|0,0)|0;if(n){g=q+l|0;if((Au(d,da(g>>0|0,1,0,0)|0|0)|0)<<24>>24==65){ea(g>>0|0,65|0,1,0);h=65}else h=da(g>>0|0,1,0,0)|0|0;if(Uu(d,h)|0)ea(g>>0|0,65|0,1,0)}}l=l+1|0;if((l|0)>=(p|0))break;else h=f}}ea(e|0,q|0,4,0);return f|0}function Tu(a){a=a|0;var b=0;b=da(a>>0|0,1,0,0)|0|0;if((b+99&255)<2)do{a=da(a+12|0,4,0,0)|0|0;b=da(a>>0|0,1,0,0)|0|0}while((b+99&255)<2);if(b<<24>>24==-97)b=da(a+38>>0|0,1,0,0)|0|0;switch(b&255|0){case 134:case 133:case 97:case 132:{a=0;break}case 154:{if(!((da(a+4|0,4,0,0)|0)&1048576)){b=da(a+32|0,2,0,0)|0|0;if(b<<16>>16>-1)a=(da((da((da(a+44|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+((b<<16>>16)*24|0)+20>>0|0,1,0,0)|0|0)==0;else a=0}else a=1;a=a&1;break}default:a=1}return a|0}function Uu(a,b){a=a|0;b=b|0;var c=0;a:do if(b<<24>>24==65)a=1;else{c=da(a>>0|0,1,0,0)|0|0;if((c+99&255)<2)do{a=da(a+12|0,4,0,0)|0|0;c=da(a>>0|0,1,0,0)|0|0}while((c+99&255)<2);if(c<<24>>24==-97)c=da(a+38>>0|0,1,0,0)|0|0;switch(c&255|0){case 132:{a=(b+-67&255)<2&1;break a}case 133:{a=(b<<24>>24==69|b<<24>>24==67)&1;break a}case 154:{if((da(a+32|0,2,0,0)|0|0)<0)a=(b+-67&255)<2;else a=0;a=a&1;break a}case 134:{a=1;break a}case 97:{a=b<<24>>24==66&1;break a}default:{a=0;break a}}}while(0);return a|0}function Vu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=da(a+8|0,4,0,0)|0|0;do if(d){a:do if((c|0)>0)while(1){if((da(d>>0|0,1,0,0)|0|0)!=65){e=d;break a}c=c+-1|0;b=b+1|0;d=d+1|0;if((c|0)<=0){e=d;break}}else e=d;while(0);while(1){if((c|0)<=1){g=8;break}d=c+-1|0;if((da(e+d>>0|0,1,0,0)|0|0)==65)c=d;else break}if((g|0)==8)if((c|0)<=0)break;vh(f,48,b,c,0)|0;wh(f,-1,e,c);ct(a,b,c)}while(0);return}function Wu(a,b){a=a|0;b=b|0;var c=0,d=0;if(b){Nv(b+328|0);d=b+16|0;c=da(d|0,4,0,0)|0|0;if(c)do{ea(d|0,da(c+52|0,4,0,0)|0|0,4,0);Iu(a,c);lg(a,c);c=da(d|0,4,0,0)|0|0}while((c|0)!=0);lg(a,b)}return}function Xu(a,b){a=a|0;b=b|0;var c=0,d=0;c=i;i=i+32|0;if((i|0)>=(j|0))ba();d=c;ea(d+0|0,0|0,4,0);ea(d+4|0,0|0,4,0);ea(d+8|0,0|0,4,0);ea(d+12|0,0|0,4,0);ea(d+16|0,0|0,4,0);ea(d+20|0,0|0,4,0);ea(d|0,80|0,4,0);ea(d+4|0,81|0,4,0);ea(d+24|0,a|0,4,0);qs(d,b)|0;i=c;return}function Yu(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();l=n+4|0;m=n;k=da(a+8|0,4,0,0)|0|0;ea(l|0,0|0,4,0);ea(m|0,0|0,4,0);if(!((k|0)==0|(b|0)==0)){f=da(b>>0|0,1,0,0)|0|0;e=f&255;a:do switch(e|0){case 79:case 78:case 83:case 80:case 81:case 82:{f=b+12|0;h=_t(a,da(f|0,4,0,0)|0|0,l)|0;g=b+16|0;k=_t(a,da(g|0,4,0,0)|0|0,m)|0;$t(a,da(f|0,4,0,0)|0|0,da(g|0,4,0,0)|0|0,e,h,k,c,d);break}case 71:{Yu(a,da(b+12|0,4,0,0)|0|0,c,d);k=a+100|0;ea(k|0,(da(k|0,4,0,0)|0|0)+1|0,4,0);Yu(a,da(b+16|0,4,0,0)|0|0,c,d);au(a);break}case 19:{ft(a,da(b+12|0,4,0,0)|0|0,c,d);break}case 72:{h=ws(k)|0;ft(a,da(b+12|0,4,0,0)|0|0,h,d^16);e=a+100|0;ea(e|0,(da(e|0,4,0,0)|0|0)+1|0,4,0);Yu(a,da(b+16|0,4,0,0)|0|0,c,d);e=da(k+24|0,4,0,0)|0|0;f=~h;if((h|0)<0?(g=da(e+112|0,4,0,0)|0|0,(g|0)!=0):0)ea(g+(f<<2)|0,da(k+32|0,4,0,0)|0|0,4,0);ea(e+88|0,(da(k+32|0,4,0,0)|0|0)+-1|0,4,0);au(a);break}case 148:case 73:{d=b+12|0;h=_t(a,da(d|0,4,0,0)|0|0,l)|0;g=b+16|0;k=_t(a,da(g|0,4,0,0)|0|0,m)|0;$t(a,da(d|0,4,0,0)|0|0,da(g|0,4,0,0)|0|0,f<<24>>24==73?79:78,h,k,c,128);break}case 77:case 76:{vh(k,e,_t(a,da(b+12|0,4,0,0)|0|0,l)|0,c,0)|0;break}case 74:{Zu(a,b,c,1,d);break}case 75:{g=ws(k)|0;eu(a,b,g,(d|0)!=0?c:g);vh(k,16,0,c,0)|0;f=da(k+24|0,4,0,0)|0|0;e=~g;if((g|0)<0?(h=da(f+112|0,4,0,0)|0|0,(h|0)!=0):0)ea(h+(e<<2)|0,da(k+32|0,4,0,0)|0|0,4,0);ea(f+88|0,(da(k+32|0,4,0,0)|0|0)+-1|0,4,0);break}default:{if(_u(b)|0){vh(k,16,0,c,0)|0;break a}if(!(lu(b)|0))vh(k,45,_t(a,b,l)|0,c,(d|0)!=0&1)|0}}while(0);Zr(a,da(l|0,4,0,0)|0|0);Zr(a,da(m|0,4,0,0)|0|0)}i=n;return}function Zu(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;n=i;i=i+208|0;if((i|0)>=(j|0))ba();h=n+152|0;f=n+104|0;g=n+56|0;k=n+8|0;l=n;ea(l|0,0|0,4,0);m=k+0|0;o=(da(b+12|0,4,0,0)|0|0)+0|0;p=m+48|0;do{ea(m|0,da(o|0,4,0,0)|0|0,4,0);m=m+4|0;o=o+4|0}while((m|0)<(p|0));ea(h>>0|0,72|0,1,0);ea(h+12|0,f|0,4,0);ea(h+16|0,g|0,4,0);ea(f>>0|0,83|0,1,0);ea(f+12|0,k|0,4,0);b=da((da(b+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;ea(f+16|0,da(b|0,4,0,0)|0|0,4,0);ea(g>>0|0,81|0,1,0);ea(g+12|0,k|0,4,0);ea(g+16|0,da(b+20|0,4,0,0)|0|0,4,0);b=_t(a,k,l)|0;ea(k+38>>0|0,da(k>>0|0,1,0,0)|0|0|0,1,0);ea(k>>0|0,-97|0,1,0);ea(k+28|0,b|0,4,0);b=k+4|0;ea(b|0,(da(b|0,4,0,0)|0)&-4097|0,4,0);if(!d)ft(a,h,c,e);else Yu(a,h,c,e);Zr(a,da(l|0,4,0,0)|0|0);i=n;return}function _u(a){a=a|0;var b=0,c=0;c=i;i=i+16|0;if((i|0)>=(j|0))ba();b=c;ea(b|0,0|0,4,0);if(((da(a+4|0,4,0,0)|0)&1|0)==0?(Ls(a,b)|0)!=0:0)a=(da(b|0,4,0,0)|0|0)!=0&1;else a=0;i=c;return a|0}function $u(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!((a|0)==0|(b|0)==0)){d=da(b|0,4,0,0)|0|0;if((d|0)>0){b=da(b+4|0,4,0,0)|0|0;c=0;while(1){if((vv(a,da(b+(c*20|0)+4|0,4,0,0)|0|0)|0)>-1){b=1;break a}c=c+1|0;if((c|0)>=(d|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function av(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;j=da(b+20|0,4,0,0)|0|0;a:do if((j|0)>0){k=da(a+38|0,2,0,0)|0|0;l=k<<16>>16>0;m=a+4|0;i=a+36|0;f=(d|0)!=0;g=0;while(1){d=da(b+(g<<3)+40|0,4,0,0)|0|0;if(l){a=(d|0)==0;h=0;do{if(!((da(c+(h<<2)|0,4,0,0)|0|0)<=-1?!((h|0)==(da(i|0,2,0,0)|0|0)&f):0))n=7;do if((n|0)==7){n=0;e=da(m|0,4,0,0)|0|0;if(a)if(!((da(e+(h*24|0)+23>>0|0,1,0,0)|0)&1))break;else{a=1;break a}else if(!(cd(da(e+(h*24|0)|0,4,0,0)|0|0,d)|0)){a=1;break a}else break}while(0);h=h+1|0}while((h|0)<(k<<16>>16|0))}g=g+1|0;if((g|0)>=(j|0)){a=0;break}}}else a=0;while(0);return a|0}function bv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;t=i;i=i+48|0;if((i|0)>=(j|0))ba();k=t;o=t+8|0;s=da(a+408|0,4,0,0)|0|0;s=(s|0)==0?a:s;h=s+528|0;e=da(h|0,4,0,0)|0|0;a:do if(!e)g=5;else while(1){if((da(e|0,4,0,0)|0|0)==(b|0)?(da(e+12|0,4,0,0)|0|0)==(d|0):0)break a;e=da(e+4|0,4,0,0)|0|0;if(!e){g=5;break}}while(0);do if((g|0)==5){q=da(a|0,4,0,0)|0|0;e=lh(q,24,0)|0;if(e){g=e+0|0;f=g+24|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(f|0));ea(e+4|0,da(h|0,4,0,0)|0|0,4,0);ea(h|0,e|0,4,0);p=lh(q,28,0)|0;if(!p){ea(e+8|0,0|0,4,0);e=0;break}g=p+0|0;f=g+24|0;do{ea(g>>0|0,0|0,1,0);g=g+1|0}while((g|0)<(f|0));ea(e+8|0,p|0,4,0);l=(da(s+8|0,4,0,0)|0|0)+192|0;ea(p+24|0,da(l|0,4,0,0)|0|0,4,0);ea(l|0,p|0,4,0);ea(e|0,b|0,4,0);ea(e+12|0,d|0,4,0);l=e+16|0;ea(l|0,-1|0,4,0);m=e+20|0;ea(m|0,-1|0,4,0);n=lh(q,536,0)|0;if(n){ew(n|0,0,536)|0;ea(o+0|0,0|0,4,0);ea(o+4|0,0|0,4,0);ea(o+8|0,0|0,4,0);ea(o+12|0,0|0,4,0);ea(o+16|0,0|0,4,0);ea(o+20|0,0|0,4,0);ea(o+24|0,0|0,4,0);ea(o+28|0,0|0,4,0);ea(o|0,n|0,4,0);ea(n|0,q|0,4,0);ea(n+412|0,c|0,4,0);ea(n+408|0,s|0,4,0);ea(n+492|0,da(b|0,4,0,0)|0|0,4,0);ea(n+436>>0|0,da(b+8>>0|0,1,0,0)|0|0|0,1,0);ea(n+424|0,da(a+424|0,4,0,0)|0|0,4,0);c=Nq(n)|0;if(c){ea(k|0,da(b|0,4,0,0)|0|0,4,0);wh(c,-1,th(q,34152,k)|0,-1);g=da(b+12|0,4,0,0)|0|0;if(!g)h=0;else{f=Lr(q,g,0,0)|0;if((ks(o,f)|0)==0?(da(q+65>>0|0,1,0,0)|0|0)==0:0){g=ws(c)|0;ft(n,f,g,16)}else g=0;Fk(q,f);h=g}Ov(n,da(b+28|0,4,0,0)|0|0,d);if(h){g=da(c+24|0,4,0,0)|0|0;f=~h;if((h|0)<0?(r=da(g+112|0,4,0,0)|0|0,(r|0)!=0):0)ea(r+(f<<2)|0,da(c+32|0,4,0,0)|0|0,4,0);ea(g+88|0,(da(c+32|0,4,0,0)|0|0)+-1|0,4,0)}vh(c,24,0,0,0)|0;f=a+64|0;g=da(n+4|0,4,0,0)|0|0;if(!(da(f|0,4,0,0)|0)){ea(a+4|0,g|0,4,0);ea(f|0,da(n+64|0,4,0,0)|0|0,4,0)}else lg(da(n|0,4,0,0)|0|0,g);if(!(da(q+65>>0|0,1,0,0)|0)){k=c+4|0;o=da(k|0,4,0,0)|0|0;In(c,s+392|0);ea(p+4|0,da(c+32|0,4,0,0)|0|0,4,0);ea(k|0,0|0,4,0);ea(p|0,o|0,4,0)}ea(p+8|0,da(n+72|0,4,0,0)|0|0,4,0);ea(p+12|0,da(n+68|0,4,0,0)|0|0,4,0);ea(p+16|0,da(n+80|0,4,0,0)|0|0,4,0);ea(p+20|0,b|0,4,0);ea(l|0,da(n+428|0,4,0,0)|0|0,4,0);ea(m|0,da(n+432|0,4,0,0)|0|0,4,0);Ol(c)}Bh(n);lg(q,n)}else e=0}else e=0}while(0);i=t;return e|0}function cv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0;g=Nq(a)|0;c=bv(a,b,c,e)|0;if(c){if(!(da(b|0,4,0,0)|0))e=0;else e=((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0|0)>>>18&1^1)&255;a=a+72|0;b=(da(a|0,4,0,0)|0|0)+1|0;ea(a|0,b|0,4,0);vh(g,131,d,f,b)|0;wh(g,-1,da(c+8|0,4,0,0)|0|0,-18);c=da(g+4|0,4,0,0)|0|0;if(c)ea(c+(((da(g+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,e|0,1,0)}return}function dv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;e=da(a|0,4,0,0)|0|0;g=da((da(e+16|0,4,0,0)|0|0)+(d<<4)|0,4,0,0)|0|0;f=jc[(fa(da(e+284|0,4,0,0)|0|0,7|0)|0)&7](da(e+288|0,4,0,0)|0|0,20,b,c,g,da(a+492|0,4,0,0)|0|0)|0;if((f|0)==1){if((d|0)!=0?1:(da(e+20|0,4,0,0)|0|0)>2){ea(h|0,g|0,4,0);ea(h+4|0,b|0,4,0);ea(h+8|0,c|0,4,0);sh(a,27688,h)}else{ea(h|0,b|0,4,0);ea(h+4|0,c|0,4,0);sh(a,27728,h)}ea(a+12|0,23|0,4,0)}else if(!((f|0)==0|(f|0)==2)){sh(a,25232,h);ea(a+12|0,1|0,4,0)}i=k;return f|0}function ev(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;u=Nq(a)|0;w=(da(a+68|0,4,0,0)|0|0)+-1|0;x=ws(u)|0;if((h|0)<0)vh(u,135,da(e+24>>0|0,1,0,1)|0|0,x,0)|0;j=e+20|0;k=da(j|0,4,0,0)|0|0;if((k|0)>0){m=g+1|0;l=0;do{vh(u,76,m+(da(f+(l<<2)|0,4,0,0)|0|0)|0,x,0)|0;l=l+1|0;k=da(j|0,4,0,0)|0|0}while((l|0)<(k|0))}do if(!i){if(!d){k=a+19|0;j=da(k>>0|0,1,0,0)|0|0;if(!(j<<24>>24)){d=a+72|0;m=(da(d|0,4,0,0)|0|0)+1|0;ea(d|0,m|0,4,0)}else{m=j+-1<<24>>24;ea(k>>0|0,m|0,1,0);m=da(a+((m&255)<<2)+24|0,4,0,0)|0|0}vh(u,34,g+1+(da(f|0,4,0,0)|0|0)|0,m,0)|0;l=vh(u,38,m,0,0)|0;if(((h|0)==1?(da(e|0,4,0,0)|0|0)==(c|0):0)?(vh(u,79,g,x,m)|0,n=da(u+4|0,4,0,0)|0|0,(n|0)!=0):0)ea(n+(((da(u+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-112|0,1,0);Pq(a,w,b,c,54);vh(u,70,w,0,m)|0;vh(u,16,0,x,0)|0;j=da(u+32|0,4,0,0)|0|0;if(j>>>0>1)ea((da(u+4|0,4,0,0)|0|0)+((j+-2|0)*20|0)+8|0,j|0,4,0);i=j+-1|0;k=(da(u+24|0,4,0,0)|0|0)+88|0;ea(k|0,i|0,4,0);if(j>>>0>l>>>0)ea((da(u+4|0,4,0,0)|0|0)+(l*20|0)+8|0,j|0,4,0);ea(k|0,i|0,4,0);Zr(a,m);break}s=a+60|0;m=da(s|0,4,0,0)|0|0;t=a+56|0;l=da(t|0,4,0,0)|0|0;if((l|0)<(k|0)){r=a+72|0;m=da(r|0,4,0,0)|0|0;ea(r|0,m+k|0,4,0);m=m+1|0}else{ea(s|0,m+k|0,4,0);ea(t|0,l-k|0,4,0)}l=a+19|0;j=da(l>>0|0,1,0,0)|0|0;if(!(j<<24>>24)){i=a+72|0;r=(da(i|0,4,0,0)|0|0)+1|0;ea(i|0,r|0,4,0)}else{r=j+-1<<24>>24;ea(l>>0|0,r|0,1,0);r=da(a+((r&255)<<2)+24|0,4,0,0)|0|0}vh(u,54,w,da(d+40|0,4,0,0)|0|0,b)|0;i=da(a+8|0,4,0,0)|0|0;wh(i,-1,gs(a,d)|0,-6);i=(k|0)>0;if(i){l=g+1|0;j=0;do{vh(u,33,l+(da(f+(j<<2)|0,4,0,0)|0|0)|0,j+m|0,0)|0;j=j+1|0}while((j|0)!=(k|0))}if((h|0)==1?(da(e|0,4,0,0)|0|0)==(c|0):0){p=u+32|0;q=k+1+(da(p|0,4,0,0)|0|0)|0;if(i){b=g+1|0;o=d+4|0;j=c+36|0;i=u+4|0;n=0;do{l=da((da(o|0,4,0,0)|0|0)+(n<<1)|0,2,0,0)|0|0;vh(u,78,b+(da(f+(n<<2)|0,4,0,0)|0|0)|0,q,(l<<16>>16==(da(j|0,2,0,0)|0|0)?0:(l<<16>>16)+1|0)+g|0)|0;l=da(i|0,4,0,0)|0|0;if(l)ea(l+(((da(p|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,16|0,1,0);n=n+1|0}while((n|0)!=(k|0))}vh(u,16,0,x,0)|0}g=nt(u,d)|0;wh(u,vh(u,49,m,k,r)|0,g,k);wh(u,vh(u,69,w,x,r)|0,0,-14);Zr(a,r);ct(a,m,k);if((da(t|0,4,0,0)|0|0)<(k|0)){ea(t|0,k|0,4,0);ea(s|0,m|0,4,0)}}while(0);j=da(e+24>>0|0,1,0,0)|0|0;i=j<<24>>24==0;if(((i?((da((da(a|0,4,0,0)|0|0)+24|0,4,0,0)|0)&16777216|0)==0:0)?(da(a+408|0,4,0,0)|0|0)==0:0)?(da(a+20>>0|0,1,0,0)|0|0)==0:0)ys(a,787,2,0,-2,4);else{if(!((h|0)<1|i^1)){e=da(a+408|0,4,0,0)|0|0;ea(((e|0)==0?a:e)+21>>0|0,1|0,1,0)}vh(u,134,j&255,h,0)|0}i=da(u+24|0,4,0,0)|0|0;j=~x;if((x|0)<0?(v=da(i+112|0,4,0,0)|0|0,(v|0)!=0):0)ea(v+(j<<2)|0,da(u+32|0,4,0,0)|0|0,4,0);ea(i+88|0,(da(u+32|0,4,0,0)|0|0)+-1|0,4,0);vh(u,61,w,0,0)|0;return}function fv(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+48|0;if((i|0)>=(j|0))ba();t=y+32|0;u=y;v=da(a|0,4,0,0)|0|0;w=Nq(a)|0;if((h|0)<0)x=vh(w,135,da(e+24>>0|0,1,0,1)|0|0,0,0)|0;else x=0;s=e+20|0;if((da(s|0,4,0,0)|0|0)>0){r=(d|0)==0;q=(f|0)==0;p=e+36|0;o=d+4|0;n=0;k=0;do{if(r)m=-1;else m=da((da(o|0,4,0,0)|0|0)+(n<<1)|0,2,0,0)|0|0;l=Pv(a,c,g,m)|0;if(q)m=p;else m=f+(n<<2)|0;k=rs(v,k,Yq(a,79,l,st(v,27,da((da((da(e|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(((da(m|0,4,0,0)|0)<<16>>16)*24|0)|0,4,0,0)|0|0)|0,0)|0)|0;n=n+1|0}while((n|0)<(da(s|0,4,0,0)|0|0));m=e}else{m=e;k=0}if((h|0)>0?(da(m|0,4,0,0)|0|0)==(c|0):0){if(!((da(c+44>>0|0,1,0,0)|0)&32)){f=da(a|0,4,0,0)|0|0;ea(t|0,0|0,4,0);ea(t+4|0,0|0,4,0);f=mr(f,159,t,0)|0;if(!f)f=0;else{ea(f+28|0,g|0,4,0);ea(f+1>>0|0,68|0,1,0)}m=da(b+48|0,4,0,0)|0|0;ea(t|0,0|0,4,0);ea(t+4|0,0|0,4,0);l=mr(v,154,t,0)|0;if(l){ea(l+44|0,c|0,4,0);ea(l+28|0,m|0,4,0);ea(l+32|0,-1|0,2,0)}f=Yq(a,78,f,l,0)|0}else{m=c+8|0;while(1){m=da(m|0,4,0,0)|0|0;if(((da(m+51>>0|0,1,0,0)|0)&3)==2)break;m=m+20|0}s=m+46|0;if(!(da(s|0,2,0,0)|0))f=0;else{o=d+4|0;p=b+48|0;q=t+4|0;r=0;f=0;do{m=da((da(o|0,4,0,0)|0|0)+(r<<1)|0,2,0,0)|0|0;l=Pv(a,c,g,m)|0;n=da(p|0,4,0,0)|0|0;ea(t|0,0|0,4,0);ea(q|0,0|0,4,0);d=mr(v,154,t,0)|0;if(d){ea(d+44|0,c|0,4,0);ea(d+28|0,n|0,4,0);ea(d+32|0,m|0,2,0)}f=rs(v,f,Yq(a,79,l,d,0)|0)|0;r=r+1|0}while((r|0)<(da(s|0,2,0,1)|0|0))}f=Yq(a,19,f,0,0)|0}k=rs(v,k,f)|0};ea(u+0|0,0|0,4,0);ea(u+4|0,0|0,4,0);ea(u+8|0,0|0,4,0);ea(u+12|0,0|0,4,0);ea(u+16|0,0|0,4,0);ea(u+20|0,0|0,4,0);ea(u+24|0,0|0,4,0);ea(u+28|0,0|0,4,0);ea(u+4|0,b|0,4,0);ea(u|0,a|0,4,0);ks(u,k)|0;f=Us(a,b,k,0,0,0,0)|0;vh(w,134,da(e+24>>0|0,1,0,1)|0|0,h,0)|0;if(f)Ws(f);Fk(v,k);if(x){f=da(w+32|0,4,0,0)|0|0;if(f>>>0>x>>>0)ea((da(w+4|0,4,0,0)|0|0)+(x*20|0)+8|0,f|0,4,0);ea((da(w+24|0,4,0,0)|0|0)+88|0,f+-1|0,4,0)}i=y;return}function gv(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();p=s;n=s+16|0;r=s+28|0;g=da(a|0,4,0,0)|0|0;q=Nq(a)|0;if(q){k=(da(g+16|0,4,0,0)|0|0)+(b<<4)|0;l=a+388|0;m=(d|0)==0;o=0;a:while(1){h=da(28744+(o<<3)|0,4,0,0)|0|0;f=Zh(g,h,da(k|0,4,0,0)|0|0)|0;do if(!f){if(!o){ea(p|0,da(k|0,4,0,0)|0|0,4,0);ea(p+4|0,h|0,4,0);ea(p+8|0,28768|0,4,0);Ar(a,28816,p);ea(n|0,da(l|0,4,0,0)|0|0,4,0);ea(r>>0|0,4|0,1,0);o=o+1|0;continue a}}else{f=da(f+32|0,4,0,0)|0|0;ea(n+(o<<2)|0,f|0,4,0);ea(r+o>>0|0,0|0,1,0);fs(a,b,f,1,h);if(m){vh(q,118,f,b,0)|0;break}else{ea(p|0,da(k|0,4,0,0)|0|0,4,0);ea(p+4|0,h|0,4,0);ea(p+8|0,e|0,4,0);ea(p+12|0,d|0,4,0);Ar(a,28840,p);break}}while(0);o=o+1|0;if((o|0)==3)break}wh(q,vh(q,55,c,da(n|0,4,0,0)|0|0,b)|0,3,-14);f=da(q+4|0,4,0,0)|0|0;if(f)ea(f+(((da(q+32|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,da(r>>0|0,1,0,0)|0|0|0,1,0)}i=s;return}function hv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;z=da(a|0,4,0,0)|0|0;A=e+1|0;B=e+2|0;F=e+3|0;G=e+4|0;H=e+5|0;E=e+6|0;C=e+7|0;D=a+72|0;I=da(D|0,4,0,0)|0|0;ea(D|0,((I|0)>(C|0)?I:C)|0,4,0);I=Nq(a)|0;if((!((I|0)==0|(b|0)==0)?(l=b+32|0,(da(l|0,4,0,0)|0|0)!=0):0)?(m=da(b|0,4,0,0)|0|0,(Ec(m,25568,7)|0)!=0):0){i=da(b+68|0,4,0,0)|0|0;a:do if(i){h=da(z+20|0,4,0,0)|0|0;if((h|0)>0){g=da(z+16|0,4,0,0)|0|0;k=0;while(1){j=k+1|0;if((da(g+(k<<4)+12|0,4,0,0)|0|0)==(i|0)){j=k;break a}if((j|0)<(h|0))k=j;else break}}else j=0}else j=-1e6;while(0);if(!(Rq(a,28,m,0,da((da(z+16|0,4,0,0)|0|0)+(j<<4)|0,4,0,0)|0|0)|0)){fs(a,j,da(l|0,4,0,0)|0|0,0,da(b|0,4,0,0)|0|0);s=f+1|0;m=f+2|0;x=a+68|0;y=da(x|0,4,0,0)|0|0;ea(x|0,((y|0)>(m|0)?y:m)|0,4,0);Pq(a,f,j,b,54);m=da(b|0,4,0,0)|0|0;wh(I,vh(I,97,0,G,0)|0,m,0);m=da(b+8|0,4,0,0)|0|0;y=(c|0)==0;if(!m)i=1;else{t=b+44|0;u=a+8|0;v=I+4|0;w=I+32|0;x=I+24|0;i=1;do{do if(y|(m|0)==(c|0)){i=(da(m+36|0,4,0,0)|0|0)==0?0:i;l=da(m+51>>0|0,1,0,0)|0|0;if(!(((da(t>>0|0,1,0,0)|0)&32)!=0&(l&3)==2)){g=da(m+48|0,2,0,1)|0|0;k=da(m|0,4,0,0)|0|0;h=m+46|0;if(!(l&8)){o=h;n=g;l=g}else{o=h;n=g;l=da(h|0,2,0,1)|0|0}}else{o=m+46|0;l=da(o|0,2,0,1)|0|0;n=l;k=da(b|0,4,0,0)|0|0}q=l+-1|0;wh(I,vh(I,97,0,H,0)|0,k,0);r=da(D|0,4,0,0)|0|0;l=q+C|0;ea(D|0,((r|0)>(l|0)?r:l)|0,4,0);vh(I,54,s,da(m+40|0,4,0,0)|0|0,j)|0;l=da(u|0,4,0,0)|0|0;wh(l,-1,gs(a,m)|0,-6);vh(I,25,n,B,0)|0;vh(I,25,da(o|0,2,0,1)|0|0,F,0)|0;vh(I,1,0,B,A)|0;wh(I,-1,28552,-5);l=da(v|0,4,0,0)|0|0;if(l)ea(l+(((da(w|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,2|0,1,0);r=vh(I,108,s,0,0)|0;vh(I,25,0,B,0)|0;k=da(w|0,4,0,0)|0|0;if((q|0)>0){n=ws(I)|0;p=lh(z,q<<2,0)|0;if(!p)break;vh(I,16,0,0,0)|0;k=da(w|0,4,0,0)|0|0;if(((q|0)==1?(da(o|0,2,0,0)|0|0)==1:0)?(da(m+50>>0|0,1,0,0)|0|0)!=0:0)vh(I,77,C,n,0)|0;l=m+32|0;g=0;do{o=br(a,da((da(l|0,4,0,0)|0|0)+(g<<2)|0,4,0,0)|0|0)|0;vh(I,25,g,B,0)|0;vh(I,47,s,g,F)|0;h=vh(I,78,F,0,g+C|0)|0;wh(I,h,o,-4);ea(p+(g<<2)|0,h|0,4,0);h=da(v|0,4,0,0)|0|0;if(h)ea(h+(((da(w|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,-128|0,1,0);g=g+1|0}while((g|0)!=(q|0));vh(I,25,q,B,0)|0;vh(I,16,0,n,0)|0;l=k+-1|0;h=da(w|0,4,0,0)|0|0;if(h>>>0>l>>>0)ea((da(v|0,4,0,0)|0|0)+(l*20|0)+8|0,h|0,4,0);ea((da(x|0,4,0,0)|0|0)+88|0,h+-1|0,4,0);l=0;while(1){g=da(p+(l<<2)|0,4,0,0)|0|0;if(h>>>0>g>>>0)ea((da(v|0,4,0,0)|0|0)+(g*20|0)+8|0,h|0,4,0);ea((da(x|0,4,0,0)|0|0)+88|0,h+-1|0,4,0);vh(I,47,s,l,l+C|0)|0;l=l+1|0;if((l|0)==(q|0))break;h=da(w|0,4,0,0)|0|0}h=da(x|0,4,0,0)|0|0;g=~n;do if((n|0)<0){l=da(h+112|0,4,0,0)|0|0;if(!l)break;ea(l+(g<<2)|0,da(w|0,4,0,0)|0|0,4,0)}while(0);ea(h+88|0,(da(w|0,4,0,0)|0|0)+-1|0,4,0);lg(z,p)}vh(I,1,1,A,F)|0;wh(I,-1,28592,-5);l=da(v|0,4,0,0)|0|0;if(l)ea(l+(((da(w|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,2|0,1,0);vh(I,9,s,k,0)|0;vh(I,1,0,A,E)|0;wh(I,-1,28640,-5);l=da(v|0,4,0,0)|0|0;if(l)ea(l+(((da(w|0,4,0,0)|0|0)+-1|0)*20|0)+3>>0|0,1|0,1,0);wh(I,vh(I,49,G,3,F)|0,28632,0);vh(I,74,d,e,0)|0;vh(I,75,d,F,e)|0;k=da(v|0,4,0,0)|0|0;l=da(w|0,4,0,0)|0|0;if(k)ea(k+((l+-1|0)*20|0)+3>>0|0,8|0,1,0);if(l>>>0>r>>>0)ea(k+(r*20|0)+8|0,l|0,4,0);ea((da(x|0,4,0,0)|0|0)+88|0,l+-1|0,4,0)}while(0);m=da(m+20|0,4,0,0)|0|0}while((m|0)!=0)}if(!(i<<24>>24==0|y^1)){vh(I,50,f,E,0)|0;i=vh(I,46,E,0,0)|0;vh(I,28,0,H,0)|0;wh(I,vh(I,49,G,3,F)|0,28632,0);vh(I,74,d,e,0)|0;vh(I,75,d,F,e)|0;h=da(I+4|0,4,0,0)|0|0;g=da(I+32|0,4,0,0)|0|0;if(h)ea(h+((g+-1|0)*20|0)+3>>0|0,8|0,1,0);if(g>>>0>i>>>0)ea(h+(i*20|0)+8|0,g|0,4,0);ea((da(I+24|0,4,0,0)|0|0)+88|0,g+-1|0,4,0)}}}return}function iv(a,b){a=a|0;b=b|0;a=Nq(a)|0;if(a)vh(a,123,b,0,0)|0;return}function jv(a){a=a|0;var b=0,c=0,d=0;a:while(1){b=da(a+4|0,4,0,0)|0|0;do if(b&4096)if(!(b&262144)){a=a+12|0;break}else{a=da((da(a+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;break}else{if(b&512){a=0;break a}switch(da(a>>0|0,1,0,0)|0|0){case -102:case -100:case -97:{d=11;break a}case 38:{d=10;break a}case 119:break;default:{d=14;break a}}a=da((da(da(a+20|0,4,0,0)|0|0,4,0,0)|0|0)+4|0,4,0,0)|0|0}while(0);a=da(a|0,4,0,0)|0|0}if((d|0)==10)a=Wq(da(a+8|0,4,0,0)|0|0,0)|0;else if((d|0)==11){c=da(a+44|0,4,0,0)|0|0;if(c){b=da(a+32|0,2,0,0)|0|0;if(b<<16>>16<0)a=68;else a=da((da(c+4|0,4,0,0)|0|0)+((b<<16>>16)*24|0)+21>>0|0,1,0,0)|0|0}else d=14}if((d|0)==14)a=da(a+1>>0|0,1,0,0)|0|0;return a|0}function kv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;vh(a,25,0,c,0)|0;d=vh(a,108,b,0,0)|0;vh(a,47,b,0,c)|0;b=da(a+4|0,4,0,0)|0|0;c=da(a+32|0,4,0,0)|0|0;if(b)ea(b+((c+-1|0)*20|0)+3>>0|0,-128|0,1,0);if(c>>>0>d>>>0)ea(b+(d*20|0)+8|0,c|0,4,0);ea((da(a+24|0,4,0,0)|0|0)+88|0,c+-1|0,4,0);return}function lv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))ba();v=A;y=a+68|0;z=da(y|0,4,0,0)|0|0;ea(y|0,z+1|0,4,0);y=Nq(a)|0;w=(c&4|0)!=0;x=b+4|0;a:do if(((((((((((((da(x|0,4,0,0)|0)&2048|0)!=0?(h=da(b+20|0,4,0,0)|0|0,!((da(a+64|0,4,0,0)|0|0)!=0|(h|0)==0)):0)?(da(h+52|0,4,0,0)|0|0)==0:0)?((da(h+6|0,2,0,0)|0)&5)==0:0)?(da(h+60|0,4,0,0)|0|0)==0:0)?(da(h+36|0,4,0,0)|0|0)==0:0)?(g=da(h+32|0,4,0,0)|0|0,(da(g|0,4,0,0)|0|0)==1):0)?(da(g+28|0,4,0,0)|0|0)==0:0)?(p=da(g+24|0,4,0,0)|0|0,(p|0)!=0):0)?((da(p+44>>0|0,1,0,0)|0)&16)==0:0)?(f=da(h|0,4,0,0)|0|0,(da(f|0,4,0,0)|0|0)==1):0)?(l=da(da(f+4|0,4,0,0)|0|0,4,0,0)|0|0,(da(l>>0|0,1,0,0)|0|0)==-102):0){t=da(a|0,4,0,0)|0|0;u=da(l+32|0,2,0,0)|0|0;k=da(p+68|0,4,0,0)|0|0;b:do if(k){g=da(t+20|0,4,0,0)|0|0;if((g|0)>0){f=da(t+16|0,4,0,0)|0|0;e=0;while(1){h=e+1|0;if((da(f+(e<<4)+12|0,4,0,0)|0|0)==(k|0)){h=e;break b}if((h|0)<(g|0))e=h;else break}}else h=0}else h=-1e6;while(0);r=h<<16>>16;zr(a,r);fs(a,r,da(p+32|0,4,0,0)|0|0,0,da(p|0,4,0,0)|0|0);s=u<<16>>16;if(u<<16>>16<0){e=Nq(a)|0;d=a+80|0;f=da(d|0,4,0,0)|0|0;ea(d|0,f+1|0,4,0);f=vh(e,44,f,0,0)|0;Pq(a,z,r,p,54);e=da(y+32|0,4,0,0)|0|0;if(e>>>0>f>>>0)ea((da(y+4|0,4,0,0)|0|0)+(f*20|0)+8|0,e|0,4,0);ea((da(y+24|0,4,0,0)|0|0)+88|0,e+-1|0,4,0);e=1;k=49;break}e=Nu(a,da(b+12|0,4,0,0)|0|0,l)|0;q=p+4|0;k=da((da(q|0,4,0,0)|0|0)+(s*24|0)+21>>0|0,1,0,0)|0|0;h=(mv(b)|0)<<24>>24;if((h|0)==65)h=1;else if((h|0)==66)h=k<<24>>24==66&1;else h=k<<24>>24>66&1;k=da(p+8|0,4,0,0)|0|0;if((k|0)!=0&(h|0)!=0){l=t+62|0;h=a+80|0;g=a+8|0;f=(d|0)==0;m=y+32|0;o=y+4|0;p=y+24|0;n=a+72|0;c:while(1){do if((da(da(k+4|0,4,0,0)|0|0,2,0,0)|0|0)==u<<16>>16?(Xn(t,da(l>>0|0,1,0,0)|0|0,da(da(k+32|0,4,0,0)|0|0,4,0,0)|0|0,0)|0)==(e|0):0){if(!w)break c;if((da(k+46|0,2,0,0)|0|0)!=1)break;if(da(k+50>>0|0,1,0,0)|0)break c}while(0);k=da(k+20|0,4,0,0)|0|0;if(!k){k=38;break a}}x=Nq(a)|0;e=da(h|0,4,0,0)|0|0;ea(h|0,e+1|0,4,0);h=vh(x,44,e,0,0)|0;vh(y,54,z,da(k+40|0,4,0,0)|0|0,r)|0;e=da(g|0,4,0,0)|0|0;wh(e,-1,gs(a,k)|0,-6);e=(da((da(k+28|0,4,0,0)|0)>>0|0,1,0,1)|0|0)+3|0;if(!f?(da((da(q|0,4,0,0)|0|0)+(s*24|0)+20>>0|0,1,0,0)|0|0)==0:0){x=(da(n|0,4,0,0)|0|0)+1|0;ea(n|0,x|0,4,0);ea(d|0,x|0,4,0);kv(y,z,x)}f=da(m|0,4,0,0)|0|0;if(f>>>0>h>>>0)ea((da(o|0,4,0,0)|0|0)+(h*20|0)+8|0,f|0,4,0);ea((da(p|0,4,0,0)|0|0)+88|0,f+-1|0,4,0);k=49}else k=38}else k=38;while(0);do if((k|0)==38){if((c&1|0)!=0?((da(x|0,4,0,0)|0)&2048|0)==0:0){u=b+12|0;c=da(u|0,4,0,0)|0|0;ea(u|0,0|0,4,0);ea(v+0|0,0|0,4,0);ea(v+4|0,0|0,4,0);ea(v+8|0,0|0,4,0);ea(v+12|0,0|0,4,0);ea(v+16|0,0|0,4,0);ea(v+20|0,0|0,4,0);y=v+20|0;ea(y>>0|0,1|0,1,0);ea(v|0,78|0,4,0);ea(v+4|0,79|0,4,0);ea(v+24|0,0|0,4,0);qs(v,b)|0;y=da(y>>0|0,1,0,0)|0|0;ea(u|0,c|0,4,0);if(!(y<<24>>24)){e=5;k=49;break}if((da(da(b+20|0,4,0,0)|0|0,4,0,0)|0|0)<3){e=5;k=49;break}}g=a+424|0;h=da(g|0,4,0,0)|0|0;if(w){ea(g|0,0|0,4,0);if((da((da(b+12|0,4,0,0)|0|0)+32|0,2,0,0)|0|0)<0){e=((da(x|0,4,0,0)|0|0)>>>11&1)+1|0;f=0}else{e=2;f=0}}else if(!d){e=2;f=0}else{e=a+72|0;f=(da(e|0,4,0,0)|0|0)+1|0;ea(e|0,f|0,4,0);ea(d|0,f|0,4,0);e=2}du(a,b,f,(e|0)==1&1)|0;ea(g|0,h|0,4,0)}while(0);if((k|0)==49)ea(b+28|0,z|0,4,0);i=A;return e|0}function mv(a){a=a|0;var b=0,c=0;b=jv(da(a+12|0,4,0,0)|0|0)|0;c=da(a+16|0,4,0,0)|0|0;do if(!c)if(!((da(a+4|0,4,0,0)|0)&2048))return (b<<24>>24==0?65:b)|0;else{b=Au(da(da((da(da(a+20|0,4,0,0)|0|0,4,0,0)|0|0)+4|0,4,0,0)|0|0,4,0,0)|0|0,b)|0;break}else b=Au(c,b)|0;while(0);return b|0}function nv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0;W=i;i=i+16|0;if((i|0)>=(j|0))ba();T=W;R=da(a|0,4,0,0)|0|0;U=f+28|0;ea(U|0,-1|0,4,0);Q=f+44|0;ea(Q|0,0|0,4,0);a:do if((b|0)!=0?((da(e+28|0,2,0,0)|0)&20)==0:0){n=da(R+20|0,4,0,0)|0|0;if((n|0)>0){l=da(R+16|0,4,0,0)|0|0;m=0;while(1){if(!(cd(da(l+(m<<4)|0,4,0,0)|0|0,b)|0))break;m=m+1|0;if((m|0)>=(n|0)){P=b;b=0;break a}}P=b;b=da(l+(m<<4)+12|0,4,0,0)|0|0}else{P=b;b=0}}else{P=0;b=0}while(0);N=(P|0)==0;K=N&(c|0)!=0;h=a+412|0;G=a+436|0;H=f+1|0;V=f+32|0;I=a+428|0;J=a+432|0;O=(c|0)==0;M=f+4|0;g=e;o=0;k=0;n=0;m=0;b:while(1){F=(g|0)!=0;l=g+4|0;E=g+8|0;p=0;q=o;while(1){o=(p|0)==0;if(!(F&o)){S=82;break b}p=da(l|0,4,0,0)|0|0;if(p){D=da(p|0,4,0,0)|0|0;if((D|0)>0){o=0;B=0;A=p+8|0;while(1){z=da(A+16|0,4,0,0)|0|0;r=da(A+20|0,4,0,0)|0|0;if((r|0)!=0?((da(r+6|0,2,0,0)|0)&512)!=0:0){r=da(r|0,4,0,0)|0|0;w=da(r|0,4,0,0)|0|0;if((w|0)>0){x=da(r+4|0,4,0,0)|0|0;r=0;t=0;do{if(uv(da(x+(t*20|0)+8|0,4,0,0)|0|0,d,c,P)|0){ea(V|0,t|0,2,0);o=o+1|0;q=2;r=1;m=A}t=t+1|0}while((t|0)<(w|0))}else r=0;if(!((r|0)!=0|O))S=21}else S=21;c:do if((S|0)==21){S=0;if(!N?(da(z+68|0,4,0,0)|0|0)!=(b|0):0)break;if(!O){r=da(A+12|0,4,0,0)|0|0;if(!r)r=da(z|0,4,0,0)|0|0;if(cd(r,c)|0)break}y=q+1|0;m=(q|0)==0?A:m;r=da(z+38|0,2,0,0)|0|0;if(r<<16>>16>0){p=(o|0)==1;u=A+36|0;v=A+48|0;q=0;x=da(z+4|0,4,0,0)|0|0;d:while(1){e:do if(!(cd(da(x|0,4,0,0)|0|0,d)|0)){if(!p)break d;if(!((da(u>>0|0,1,0,0)|0)&4)){t=da(v|0,4,0,0)|0|0;if(!t)break d;w=da(t+4|0,4,0,0)|0|0;if((w|0)<=0)break d;t=da(t|0,4,0,0)|0|0;s=0;while(1){if(!(cd(da(t+(s<<3)|0,4,0,0)|0|0,d)|0))break e;s=s+1|0;if((s|0)>=(w|0))break d}}}while(0);q=q+1|0;if((q|0)>=(r<<16>>16|0)){q=y;break c}else x=x+24|0}ea(V|0,((q|0)==(da(z+36|0,2,0,0)|0|0)?-1:q&65535)|0,2,0);o=o+1|0;q=y;m=A}else q=y}while(0);B=B+1|0;if((B|0)>=(D|0))break;else A=A+72|0}}else o=0;if(!m)y=0;else{ea(U|0,da(m+40|0,4,0,0)|0|0,4,0);p=da(m+16|0,4,0,0)|0|0;ea(Q|0,p|0,4,0);if((da(m+36>>0|0,1,0,0)|0)&8)ea(M|0,da(M|0,4,0,0)|0|1048576|0,4,0);y=m;b=da(p+68|0,4,0,0)|0|0}}else{o=0;y=m}do if(K&(q|0)==0)if(da(h|0,4,0,0)|0){p=da(G>>0|0,1,0,0)|0|0;if(p<<24>>24!=109)if(cd(27560,c)|0)if(p<<24>>24==108){s=o;q=0;t=k;break}else S=49;else t=1;else S=49;if((S|0)==49){S=0;if(!(cd(27568,c)|0))t=0;else{s=o;q=0;t=k;break}}ea(U|0,t|0,4,0);s=da(h|0,4,0,0)|0|0;if(s){b=da(s+68|0,4,0,0)|0|0;r=da(s+38|0,2,0,0)|0|0;f:do if(r<<16>>16>0){p=0;q=da(s+4|0,4,0,0)|0|0;while(1){if(!(cd(da(q|0,4,0,0)|0|0,d)|0))break;p=p+1|0;if((p|0)<(r<<16>>16|0))q=q+24|0;else break f}p=(p|0)==(da(s+36|0,2,0,0)|0|0)?-1:p}else p=0;while(0);m=r<<16>>16;if((p|0)>=(m|0)?(_h(d)|0)!=0:0)q=((da(s+44>>0|0,1,0,0)|0)&32)==0?-1:p;else q=p;if((q|0)<(m|0)){o=o+1|0;do if((q|0)>=0){p=(q|0)>31?-1:1<<q;if(!t){ea(I|0,da(I|0,4,0,0)|0|p|0,4,0);break}else{ea(J|0,da(J|0,4,0,0)|0|p|0,4,0);break}}else ea(H>>0|0,68|0,1,0);while(0);ea(V|0,q|0,2,0);ea(Q|0,s|0,4,0);q=1;k=1;S=66}else{q=1;S=66}}else{s=o;q=0;t=k}}else{s=o;q=0;t=k}else S=66;while(0);if((S|0)==66){S=0;if((o|0)==0&(q|0)==1&(y|0)!=0)if((_h(d)|0)!=0?((da((da(y+16|0,4,0,0)|0|0)+44>>0|0,1,0,0)|0)&32)==0:0){ea(V|0,-1|0,2,0);ea(H>>0|0,68|0,1,0);p=1;m=y;continue}else{s=0;t=k}else{s=o;t=k}}o=da(E|0,4,0,0)|0|0;r=(s|0)==0;if((o|0)!=0&O&r?(L=da(o|0,4,0,0)|0|0,(L|0)>0):0){k=da(o+4|0,4,0,0)|0|0;m=0;do{p=da(k+(m*20|0)+4|0,4,0,0)|0|0;if((p|0)!=0?(cd(p,d)|0)==0:0){S=75;break b}m=m+1|0}while((m|0)<(L|0))}if(r){p=q;k=t;m=y;break}else{p=s;k=t;m=y}}g=da(g+16|0,4,0,0)|0|0;o=p;n=n+1|0}do if((S|0)==75){if(((da(g+28|0,2,0,0)|0)&1)==0?((da((da(k+(m*20|0)|0,4,0,0)|0|0)+4|0,4,0,0)|0)&2|0)!=0:0){ea(T|0,p|0,4,0);sh(a,27576,T);e=2;break}xv(a,o,m,f,10360,n);if((da(f>>0|0,1,0,0)|0|0)==24)S=115;else S=96}else if((S|0)==82){if(o&O?((da(M|0,4,0,0)|0)&64|0)!=0:0){ea(f>>0|0,97|0,1,0);ea(Q|0,0|0,4,0);e=1;break}p=(p|0)==1;if(!p){o=o?27608:27624;do if(N)if(O){ea(T|0,o|0,4,0);ea(T+4|0,d|0,4,0);sh(a,27680,T);break}else{ea(T|0,o|0,4,0);ea(T+4|0,c|0,4,0);ea(T+8|0,d|0,4,0);sh(a,27664,T);break}else{ea(T|0,o|0,4,0);ea(T+4|0,P|0,4,0);ea(T+8|0,c|0,4,0);ea(T+12|0,d|0,4,0);sh(a,27648,T)}while(0);ea(a+17>>0|0,1|0,1,0);B=e+24|0;ea(B|0,(da(B|0,4,0,0)|0|0)+1|0,4,0)}n=da(V|0,2,0,0)|0|0;if(n<<16>>16>-1&(m|0)!=0){y=n<<16>>16>63;z=hw(1,0,n<<16>>16|0)|0;A=m+56|0;x=A;B=da(x+4|0,4,0,0)|0|(y?-2147483648:C);ea(A|0,da(x|0,4,0,0)|0|(y?0:z)|0,4,0);ea(A+4|0,B|0,4,0)}B=f+12|0;Fk(R,da(B|0,4,0,0)|0|0);ea(B|0,0|0,4,0);B=f+16|0;Fk(R,da(B|0,4,0,0)|0|0);ea(B|0,0|0,4,0);ea(f>>0|0,((k|0)!=0?62:-102)|0,1,0);if(p)S=96;else e=2}while(0);g:do if((S|0)==96){o=da(l|0,4,0,0)|0|0;k=da(a|0,4,0,0)|0|0;if(!((da(k+284|0,4,0,0)|0|0)==0|(b|0)==0)){n=da(k+20|0,4,0,0)|0|0;if((n|0)>0){l=da(k+16|0,4,0,0)|0|0;m=0;while(1){k=m+1|0;if((da(l+(m<<4)+12|0,4,0,0)|0|0)==(b|0)){k=m;break}if((k|0)<(n|0))m=k;else break}if((k|0)<0){S=115;break}else b=k}else b=0;if((da(f>>0|0,1,0,0)|0|0)!=62){l=da(o|0,4,0,0)|0|0;if((l|0)<=0){S=115;break}h=da(U|0,4,0,0)|0|0;k=0;while(1){if((h|0)==(da(o+(k*72|0)+48|0,4,0,0)|0|0))break;k=k+1|0;if((k|0)>=(l|0)){S=115;break g}}h=o+(k*72|0)+24|0}l=da(h|0,4,0,0)|0|0;h=da(V|0,2,0,0)|0|0;k=h<<16>>16;if(l){if(h<<16>>16<=-1){h=da(l+36|0,2,0,0)|0|0;if(h<<16>>16>-1)h=da((da(l+4|0,4,0,0)|0|0)+((h<<16>>16)*24|0)|0,4,0,0)|0|0;else h=12944}else h=da((da(l+4|0,4,0,0)|0|0)+(k*24|0)|0,4,0,0)|0|0;if((dv(a,da(l|0,4,0,0)|0|0,h,b)|0)==2){ea(f>>0|0,101|0,1,0);S=115}else S=115}else S=115}else S=115}while(0);if((S|0)==115){B=e+20|0;ea(B|0,(da(B|0,4,0,0)|0|0)+1|0,4,0);if((g|0)==(e|0))e=1;else{do{e=da(e+16|0,4,0,0)|0|0;B=e+20|0;ea(B|0,(da(B|0,4,0,0)|0|0)+1|0,4,0)}while((e|0)!=(g|0));e=1}}i=W;return e|0}function ov(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=da(b>>0|0,1,0,0)|0|0;a:do if(c<<24>>24==-100|c<<24>>24==-102){c=da(a+24|0,4,0,0)|0|0;d=da(c|0,4,0,0)|0|0;b:do if((d|0)!=0?(e=da(d|0,4,0,0)|0|0,(e|0)>0):0){a=da(b+28|0,4,0,0)|0|0;b=0;while(1){if((a|0)==(da(d+(b*72|0)+48|0,4,0,0)|0|0))break;b=b+1|0;if((b|0)>=(e|0))break b}a=c+4|0;ea(a|0,(da(a|0,4,0,0)|0|0)+1|0,4,0);break a}while(0);a=c+8|0;ea(a|0,(da(a|0,4,0,0)|0|0)+1|0,4,0)}while(0);return 0}function pv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+16|0;if((i|0)>=(j|0))ba();s=t;n=t+12|0;a:do if(!c)e=0;else{q=da(da(b|0,4,0,0)|0|0,4,0,0)|0|0;r=da(a|0,4,0,0)|0|0;b:do if((da(c|0,4,0,0)|0|0)>0){e=0;o=da(c+4|0,4,0,0)|0|0;c:while(1){l=da(o|0,4,0,0)|0|0;d:do if(!l)f=0;else{f=l;while(1){g=da(f+4|0,4,0,0)|0|0;if(!(g&4096))break d;if(!(g&262144))f=f+12|0;else f=da((da(f+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;f=da(f|0,4,0,0)|0|0;if(!f){f=0;break}}}while(0);if((da(d>>0|0,1,0,0)|0|0)!=71?(m=qv(da(b|0,4,0,0)|0|0,f)|0,ea(n|0,m|0,4,0),(m|0)>0):0)ea(o+16|0,m|0,2,0);else p=13;do if((p|0)==13){p=0;if(Ls(f,n)|0){f=da(n|0,4,0,0)|0|0;if((f+-1|0)>>>0>65534)break c;ea(o+16|0,f|0,2,0);break}h=o+16|0;ea(h|0,0|0,2,0);if(ks(a,l)|0){e=1;break a}g=da(b|0,4,0,0)|0|0;k=da(g|0,4,0,0)|0|0;if((k|0)>0){g=da(g+4|0,4,0,0)|0|0;f=0;do{u=f;f=f+1|0;if(!(Bu(l,da(g+(u*20|0)|0,4,0,0)|0|0,-1)|0))ea(h|0,f|0,2,0)}while((f|0)<(k|0))}}while(0);e=e+1|0;if((e|0)>=(da(c|0,4,0,0)|0|0))break b;else o=o+20|0}ea(s|0,e+1|0,4,0);ea(s+4|0,d|0,4,0);ea(s+8|0,q|0,4,0);sh(r,27064,s);e=1;break a}while(0);e=vu(r,b,c,d)|0}while(0);i=t;return e|0}function qv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;a:do if((da(b>>0|0,1,0,0)|0|0)==27?(d=da(b+8|0,4,0,0)|0|0,e=da(a|0,4,0,0)|0|0,(e|0)>0):0){a=da(a+4|0,4,0,0)|0|0;b=0;while(1){c=da(a+(b*20|0)+4|0,4,0,0)|0|0;if((c|0)!=0?(cd(c,d)|0)==0:0)break;b=b+1|0;if((b|0)>=(e|0)){b=0;break a}}b=b+1|0}else b=0;while(0);return b|0}function rv(a,b){a=a|0;b=b|0;var c=0,d=0;c=da(a+38|0,2,0,0)|0|0;a:do if(c<<16>>16>0){d=da(a+4|0,4,0,0)|0|0;c=c<<16>>16;a=0;while(1){if(!(cd(da(d+(a*24|0)|0,4,0,0)|0|0,b)|0))break a;a=a+1|0;if((a|0)>=(c|0)){a=-1;break}}}else a=-1;while(0);return a|0}function sv(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;i=da(a|0,4,0,0)|0|0;c=Qv(i,b,c,d)|0;d=Qv(i,b,e,f)|0;f=Yq(a,79,c,d,0)|0;if((f|0)!=0&(g|0)!=0){c=f+4|0;ea(c|0,da(c|0,4,0,0)|0|1|0,4,0);ea(f+36|0,da(d+28|0,4,0,0)|0|0,2,0)}ea(h|0,rs(i,da(h|0,4,0,0)|0|0,f)|0|0,4,0);return}function tv(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){c=b&65535;do{d=a+4|0;ea(d|0,da(d|0,4,0,0)|0|1|0,4,0);ea(a+36|0,c|0,2,0);tv(da(a+12|0,4,0,0)|0|0,b);a=da(a+16|0,4,0,0)|0|0}while((a|0)!=0)}return}function uv(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;e=0;while(1){f=da(a+e>>0|0,1,0,0)|0|0;if(f<<24>>24==46|f<<24>>24==0)break;e=e+1|0}if(d)if((Ec(a,d,e)|0)==0?(da(d+e>>0|0,1,0,0)|0|0)==0:0)g=7;else e=0;else g=7;do if((g|0)==7){d=e+1|0;g=a+d|0;f=0;while(1){h=da(a+(f+d)>>0|0,1,0,0)|0|0;if(h<<24>>24==46|h<<24>>24==0)break;f=f+1|0}if(c){if(Ec(g,c,f)|0){e=0;break}if(da(c+f>>0|0,1,0,0)|0){e=0;break}}if((b|0)!=0?(cd(a+(e+2+f)|0,b)|0)!=0:0){e=0;break}e=1}while(0);return e|0}function vv(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if((a|0)!=0?(d=da(a+4|0,4,0,0)|0|0,(d|0)>0):0){c=da(a|0,4,0,0)|0|0;a=0;while(1){if(!(cd(da(c+(a<<3)|0,4,0,0)|0|0,b)|0))break a;a=a+1|0;if((a|0)>=(d|0)){a=-1;break}}}else a=-1;while(0);return a|0}function wv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;ea(e|0,c|0,4,0);if(!c)d=0;else{d=c;while(1)if(!(da(d>>0|0,1,0,0)|0))break;else d=d+1|0;d=d-c&1073741823}ea(e+4|0,d|0,4,0);d=ur(a,b,e,0)|0;i=f;return d|0}function xv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();l=p;h=b+4|0;k=da((da(h|0,4,0,0)|0|0)+(c*20|0)|0,4,0,0)|0|0;m=da(a|0,4,0,0)|0|0;g=Lr(m,k,0,0)|0;do if(g){if((da(k>>0|0,1,0,0)|0|0)!=-102?(da(e>>0|0,1,0,0)|0|0)!=71:0){if((f|0)>0){ea(l+0|0,0|0,4,0);ea(l+4|0,0|0,4,0);ea(l+8|0,0|0,4,0);ea(l+12|0,0|0,4,0);ea(l+16|0,0|0,4,0);ea(l+20|0,0|0,4,0);ea(l|0,88|0,4,0);ea(l+24|0,f|0,4,0);qs(l,g)|0}g=Yq(a,24,g,0,0)|0;if(!g)break;b=g+4|0;ea(b|0,da(b|0,4,0,0)|0|4096|0,4,0);b=(da(h|0,4,0,0)|0|0)+(c*20|0)+18|0;f=da(b|0,2,0,0)|0|0;if(!(f<<16>>16)){c=a+456|0;f=(da(c|0,4,0,0)|0|0)+1|0;ea(c|0,f|0,4,0);f=f&65535;ea(b|0,f|0,2,0)}ea(g+28|0,f&65535|0,4,0)}if((da(d>>0|0,1,0,0)|0|0)==95)g=wv(a,g,da(d+8|0,4,0,0)|0|0)|0;b=d+4|0;ea(b|0,da(b|0,4,0,0)|0|32768|0,4,0);Fk(m,d);f=d+0|0;h=g+0|0;k=f+48|0;do{ea(f|0,da(h|0,4,0,0)|0|0,4,0);f=f+4|0;h=h+4|0}while((f|0)<(k|0));if(((da(b|0,4,0,0)|0)&1024|0)==0?(n=d+8|0,o=da(n|0,4,0,0)|0|0,(o|0)!=0):0){ea(n|0,jh(m,o)|0|0,4,0);ea(b|0,da(b|0,4,0,0)|0|65536|0,4,0)}lg(m,g)}while(0);i=p;return}function yv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;k=a+12|0;d=da(k|0,4,0,0)|0|0;h=a+16|0;f=da(h|0,4,0,0)|0|0;j=a+20|0;do if((d|0)<(f|0))i=15;else{d=da(j|0,4,0,0)|0|0;g=da(da(da(a|0,4,0,0)|0|0,4,0,0)|0|0,4,0,0)|0|0;e=lh(g,f*96|0,0)|0;ea(j|0,e|0,4,0);if(!e){if(c&1)Fk(g,b);ea(j|0,d|0,4,0);d=0;break}jw(e|0,d|0,(da(k|0,4,0,0)|0|0)*48|0)|0;if((d|0)!=(a+24|0))lg(g,d);e=da(j|0,4,0,0)|0|0;do if(!g)e=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](e)|0;else{if((da(g+276|0,4,0,0)|0|0)>>>0<=e>>>0?(da(g+280|0,4,0,0)|0|0)>>>0>e>>>0:0){e=da(g+248|0,2,0,1)|0|0;break}e=kc[(fa(da(8744+48|0,4,0,0)|0|0,127|0)|0)&127](e)|0}while(0);i=(e>>>0)/48|0;ea(h|0,i|0,4,0);d=da(k|0,4,0,0)|0|0;ew((da(j|0,4,0,0)|0|0)+(d*48|0)|0,0,(i-d|0)*48|0)|0;d=da(k|0,4,0,0)|0|0;i=15}while(0);if((i|0)==15){ea(k|0,d+1|0,4,0);f=da(j|0,4,0,0)|0|0;a:do if(!b){ea(f+(d*48|0)+16|0,1|0,2,0);b=0}else{if(!((da(b+4|0,4,0,0)|0)&262144))e=1;else{e=da(b+28|0,4,0,0)|0|0;e=((es(e,((e|0)<0)<<31>>31)|0)&65535)+65266&65535}ea(f+(d*48|0)+16|0,e|0,2,0);while(1){e=da(b+4|0,4,0,0)|0|0;if(!(e&4096))break a;if(!(e&262144))b=b+12|0;else b=da((da(b+20|0,4,0,0)|0|0)+4|0,4,0,0)|0|0;b=da(b|0,4,0,0)|0|0;if(!b){b=0;break}}}while(0);ea(f+(d*48|0)|0,b|0,4,0);ea(f+(d*48|0)+20|0,c|0,2,0);ea(f+(d*48|0)+24|0,a|0,4,0);ea(f+(d*48|0)+4|0,-1|0,4,0)}return d|0}function zv(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:do if(b)if((da(b>>0|0,1,0,0)|0|0)==-102){b=da(b+28|0,4,0,0)|0|0;d=da(a|0,4,0,0)|0|0;if((d|0)>0)c=0;else{d=0;c=0;break}while(1){if((da(a+(c<<2)+4|0,4,0,0)|0|0)==(b|0))break;c=c+1|0;if((c|0)>=(d|0)){d=0;c=0;break a}}c=hw(1,0,c|0)|0;d=C;break}else{e=zv(a,da(b+16|0,4,0,0)|0|0)|0;c=C;f=zv(a,da(b+12|0,4,0,0)|0|0)|0;c=C|c;d=b+20|0;if(!((da(b+4|0,4,0,0)|0)&2048)){b=Ku(a,da(d|0,4,0,0)|0|0)|0;d=C}else{b=Av(a,da(d|0,4,0,0)|0|0)|0;d=C}d=c|d;c=f|e|b;break}else{d=0;c=0}while(0);C=d;return c|0}function Av(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(!b){b=0;c=0}else{f=b;c=0;b=0;do{e=da(f+32|0,4,0,0)|0|0;k=Ku(a,da(f|0,4,0,0)|0|0)|0;b=C|b;j=Ku(a,da(f+40|0,4,0,0)|0|0)|0;b=b|C;i=Ku(a,da(f+48|0,4,0,0)|0|0)|0;b=b|C;h=zv(a,da(f+36|0,4,0,0)|0|0)|0;b=b|C;d=zv(a,da(f+44|0,4,0,0)|0|0)|0;c=k|c|j|i|h|d;b=b|C;if((e|0)!=0?(g=da(e|0,4,0,0)|0|0,(g|0)>0):0){d=0;do{i=Av(a,da(e+(d*72|0)+28|0,4,0,0)|0|0)|0;b=C|b;j=zv(a,da(e+(d*72|0)+52|0,4,0,0)|0|0)|0;c=i|c|j;b=b|C;d=d+1|0}while((d|0)<(g|0))}f=da(f+52|0,4,0,0)|0|0}while((f|0)!=0)}C=b;return c|0}function Bv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=da(b+18|0,2,0,0)|0|0;h=da(c+18|0,2,0,0)|0|0;e=h|i;if(((!((i&62)==0|(h&62)==0)?(d=e&65535,(d&26|0)==(d|0)|(d&38|0)==(d|0)):0)?(g=da(b|0,4,0,0)|0|0,f=da(c|0,4,0,0)|0|0,(Bu(da(g+12|0,4,0,0)|0|0,da(f+12|0,4,0,0)|0|0,-1)|0)==0):0)?(Bu(da(g+16|0,4,0,0)|0|0,da(f+16|0,4,0,0)|0|0,-1)|0)==0:0){if(d+65535&d)e=(d&24|0)==0?32:8;f=Lr(da(da(da(a|0,4,0,0)|0|0,4,0,0)|0|0,4,0,0)|0|0,g,0,0)|0;if(f){e=e&65535;d=79;while(1)if((e|0)==(2<<d+-79|0))break;else d=d+1|0;ea(f>>0|0,d|0,1,0);Du(a,yv(a,f,3)|0)}}return}function Cv(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;ea(a|0,b|0,4,0);ea(a+4|0,b|0,4,0);a:do if((f|0)!=0&(d|0)>-1){ea(a+12>>0|0,da((da((da(f+12|0,4,0,0)|0|0)+4|0,4,0,0)|0|0)+(d*24|0)+21>>0|0,1,0,0)|0|0|0,1,0);g=da(f+4|0,4,0,0)|0|0;if((da(g|0,2,0,0)|0|0)==(d|0))b=0;else{h=da(f+48|0,2,0,1)|0|0;i=0;while(1){b=i+1|0;if((i|0)>(h|0)){b=0;break a}if((da(g+(b<<1)|0,2,0,0)|0|0)==(d|0))break;else i=b}}ea(a+8|0,da((da(f+32|0,4,0,0)|0|0)+(b<<2)|0,4,0,0)|0|0,4,0);j=8}else{ea(a+12>>0|0,0|0,1,0);ea(a+8|0,0|0,4,0);j=8}while(0);if((j|0)==8){ea(a+16|0,e|0,4,0);ea(a+20|0,0|0,4,0);ea(a+24|0,c|0,4,0);ea(a+28|0,d|0,4,0);ea(a+13>>0|0,2|0,1,0);ea(a+14>>0|0,2|0,1,0);b=Dv(a)|0}return b|0} [all...] |
H A D | sqlite.js | 6 function Vr(f,g,k,l,m){f=f|0;g=g|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))ba();u=x;v=x+8|0;c[v>>2]=0;a:do if(!g){c[m>>2]=0;n=0}else{o=a[g>>0]|0;if(o<<24>>24==-98)do{g=c[g+12>>2]|0;o=a[g>>0]|0}while(o<<24>>24==-98);if(o<<24>>24==-97)q=d[g+38>>0]|0;else q=o&255;if((q|0)==38){p=Tq(c[g+8>>2]|0,0)|0;n=Vr(f,c[g+12>>2]|0,k,p,m)|0;o=c[m>>2]|0;if(!o)break;cm(o,p,1);bm(c[m>>2]|0,l,1);break}else if((q|0)==157){g=c[g+12>>2]|0;q=a[g>>0]|0;if((q&-2)<<24>>24==-124){p=-1;o=-1;t=q&255;q=26016;w=12}else w=30}else{p=1;o=0;t=q;q=10360;w=12}b:do if((w|0)==12){c:do switch(t|0){case 134:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;o=(c[g+8>>2]|0)+2|0;g=o;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;v=(g-o&1073741823)+-1|0;Tg(n,Ut(f,o,v)|0,(v|0)/2|0,0,75)|0;o=n;n=0;break b}case 157:{g=c[g+12>>2]|0;w=30;break b}case 101:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}else{r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;o=n;n=0;break b}}case 97:case 132:case 133:{n=ih(f,40,0)|0;if(!n){c[v>>2]=n;break c}r=n+0|0;s=r+40|0;do{a[r>>0]=0;r=r+1|0}while((r|0)<(s|0));b[n+8>>1]=1;c[n+32>>2]=f;c[v>>2]=n;do if(!(c[g+4>>2]&1024)){p=c[g+8>>2]|0;c[u>>2]=q;c[u+4>>2]=p;p=qh(f,19456,u)|0;if(!p)break c;if(n)Tg(n,p,-1,1,75)|0}else{q=c[g+8>>2]|0;q=ow(q|0,((q|0)<0)<<31>>31|0,p|0,o|0)|0;p=C;g=n+8|0;if(!(b[g>>1]&9312)){v=n;c[v>>2]=q;c[v+4>>2]=p;b[g>>1]=4;break}else{Vg(n,q,p);break}}while(0);if((t&-2|0)==132&l<<24>>24==65)bm(n,67,1);else bm(n,l,1);o=n+8|0;g=e[o>>1]|0;if(g&12)b[o>>1]=g&65533;if(k<<24>>24==1){o=n;n=0;break b}o=n;n=Ul(n,k&255)|0;break b}default:{o=0;n=0;break b}}while(0);a[f+65>>0]=1;ig(f,0);Ih(n);n=7;break a}while(0);if((w|0)==30){u=(Vr(f,g,k,l,v)|0)==0;o=c[v>>2]|0;if(u&(o|0)!=0){kp(o);p=o+8|0;g=b[p>>1]|0;do if(!(g&8)){q=o;n=c[q>>2]|0;q=c[q+4>>2]|0;if((n|0)==0&(q|0)==-2147483648){h[o>>3]=9223372036854775808.0;b[p>>1]=g&48640|8;break}else{u=$v(0,0,n|0,q|0)|0;v=o;c[v>>2]=u;c[v+4>>2]=C;break}}else h[o>>3]=-+h[o>>3];while(0);bm(o,l,k);n=0}else n=0}c[m>>2]=o}while(0);i=x;return n|0}function Wr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if((d|0)!=0?(g=b+19|0,h=a[g>>0]|0,(h&255)<8):0){f=0;e=b+116|0;while(1){if((c[e+12>>2]|0)==(d|0)){f=5;break}f=f+1|0;if((f|0)>=10){f=7;break}else e=e+20|0}if((f|0)==5){a[e+6>>0]=1;break}else if((f|0)==7){a[g>>0]=h+1<<24>>24;c[b+((h&255)<<2)+24>>2]=d;break}}while(0);return}function Xr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+32|0;if((i|0)>=(j|0))ba();n=o;e=b+484|0;l=c[e>>2]|0;m=c[b>>2]|0;do if((l|0)!=0?(Zr(b),c[b+512>>2]=0,(c[l+52>>2]|0)>=1):0){if(a[m+145>>0]|0)if(!(Ek((c[l+68>>2]|0)+8|0,c[l>>2]|0,l)|0)){c[e>>2]=0;break}else{a[m+65>>0]=1;break}if(d)c[b+500>>2]=(c[d>>2]|0)-(c[b+496>>2]|0)+(c[d+4>>2]|0);c[n>>2]=b+496;k=qh(m,25256,n)|0;d=c[l+68>>2]|0;a:do if(d){f=c[m+20>>2]|0;if((f|0)>0){g=c[m+16>>2]|0;h=0;while(1){e=h+1|0;if((c[g+(h<<4)+12>>2]|0)==(d|0)){e=h;break a}if((e|0)<(f|0))h=e;else break}}else e=0}else e=-1e6;while(0);g=c[l>>2]|0;h=c[b+384>>2]|0;c[n>>2]=c[(c[m+16>>2]|0)+(e<<4)>>2];c[n+4>>2]=(e|0)==1?13184:13208;c[n+8>>2]=g;c[n+12>>2]=g;c[n+16>>2]=k;c[n+20>>2]=h;xr(b,25280,n);ig(m,k);k=Kq(b)|0;zr(b,e);sh(k,144,0,0,0)|0;c[n>>2]=c[l>>2];Er(k,e,qh(m,25368,n)|0);b=b+72|0;n=(c[b>>2]|0)+1|0;c[b>>2]=n;b=c[l>>2]|0;th(k,sh(k,97,0,n,0)|0,b,0);sh(k,147,e,n,0)|0}while(0);i=o;return}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+52|0;i=c[h>>2]|0;e=i+1|0;c[h>>2]=e;g=(i<<2)+8|0;f=b+56|0;g=no(a,c[f>>2]|0,g,((g|0)<0)<<31>>31)|0;if(!g){if((i|0)>0){b=0;do{ig(a,c[(c[f>>2]|0)+(b<<2)>>2]|0);b=b+1|0}while((b|0)!=(i|0))}ig(a,d);ig(a,c[f>>2]|0);c[h>>2]=0}else{c[g+(i<<2)>>2]=d;c[g+(e<<2)>>2]=0}c[f>>2]=g;return}function Zr(b){b=b|0;var d=0,e=0,f=0,g=0;d=c[b+512>>2]|0;if((d|0)!=0?(g=c[b+484>>2]|0,(g|0)!=0):0){e=c[b+516>>2]|0;f=c[b>>2]|0;b=fw(e|0,((e|0)<0)<<31>>31|0,1,0)|0;b=ih(f,b,C)|0;if(!b)b=0;else{gw(b|0,d|0,e|0)|0;a[b+e>>0]=0}Yr(f,g,b)}return}function _r(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();l=o;m=c[b>>2]|0;n=Sq(m,e)|0;k=(d|0)!=0;if((n|0)!=0&k?(h=c[d>>2]|0,(h|0)>0):0){e=h;h=0;do{if(!($c(n,c[d+(h<<4)+8>>2]|0)|0)){c[l>>2]=n;ph(b,25184,l);e=c[d>>2]|0}h=h+1|0}while((h|0)<(e|0))}if(k){h=(c[d>>2]<<4)+24|0;h=no(m,d,h,((h|0)<0)<<31>>31)|0;if(!h)e=10;else{d=h;e=11}}else{e=ih(m,24,0)|0;if(!e)e=10;else{h=e+0|0;d=h+24|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(d|0));d=e;e=11}}if((e|0)==10){Jk(m,f);Ik(m,g,1);ig(m,n)}else if((e|0)==11){m=d+8|0;c[m+(c[d>>2]<<4)+8>>2]=g;g=c[d>>2]|0;c[m+(g<<4)+4>>2]=f;c[m+(g<<4)>>2]=n;c[m+(g<<4)+12>>2]=0;c[d>>2]=g+1}i=o;return d|0}function $r(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+96|0;if((i|0)>=(j|0))ba();m=n+48|0;f=n;g=c[c[b+32>>2]>>2]|0;h=m+0|0;k=g+0|0;l=h+48|0;do{a[h>>0]=a[k>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((a[b+43>>0]|0)!=2){h=c[b+4>>2]|0;_b[c[(c[h>>2]|0)+60>>2]&31](h)}h=f+0|0;k=g+48|0;l=h+48|0;do{a[h>>0]=a[k>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((Vv(m,f,48)|0)==0?(a[m+12>>0]|0)!=0:0){k=m+40|0;l=m;g=0;f=0;do{g=g+f+(c[l>>2]|0)|0;f=g+f+(c[l+4>>2]|0)|0;l=l+8|0}while(l>>>0<k>>>0);if((g|0)==(c[k>>2]|0)?(f|0)==(c[m+44>>2]|0):0){f=b+52|0;if(!(Vv(f,m,48)|0))f=0;else{c[d>>2]=1;h=f+0|0;k=m+0|0;l=h+48|0;do{c[h>>2]=c[k>>2];h=h+4|0;k=k+4|0}while((h|0)<(l|0));f=e[b+66>>1]|0;c[b+36>>2]=f<<16&65536|f&65024;f=0}}else f=1}else f=1;i=n;return f|0}function as(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;b=pc[c[(c[a>>2]|0)+8>>2]&31](a,g,4,b,e)|0;if(!b)c[f>>2]=(d[g+1>>0]|0)<<16|(d[g>>0]|0)<<24|(d[g+2>>0]|0)<<8|(d[g+3>>0]|0);i=h;return b|0}function bs(a,b){a=a|0;b=b|0;var c=0,d=0,f=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=ew(a|0,b|0,1)|0;b=C}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;d=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){f=a;d=b;c=40;while(1){c=(c&65535)+40|0;a=iw(f|0,d|0,4)|0;b=C;if(d>>>0>0|(d|0)==0&f>>>0>4095){f=a;d=b}else break}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){f=a;while(1){c=(c&65535)+10&65535;a=iw(f|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&f>>>0>31){f=a;b=C}else break}d=11}else d=11}if((d|0)==11)a=(c&65535)+65526+(e[13496+((a&7)<<1)>>1]|0)&65535;return a|0}function cs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;k=c[b+408>>2]|0;k=(k|0)==0?b:k;i=k+396|0;h=c[i>>2]|0;j=c[k+400>>2]|0;a:do if((h|0)>0){b=0;while(1){if((c[j+(b<<4)>>2]|0)==(d|0)?(c[j+(b<<4)+4>>2]|0)==(e|0):0)break;b=b+1|0;if((b|0)>=(h|0)){l=8;break a}}b=j+(b<<4)+8|0;if(!(a[b>>0]|0))h=f<<24>>24!=0&1;else h=1;a[b>>0]=h}else l=8;while(0);do if((l|0)==8){b=(h<<4)+16|0;b=Sl(c[k>>2]|0,j,b,((b|0)<0)<<31>>31)|0;c[k+400>>2]=b;if(!b){c[i>>2]=0;a[(c[k>>2]|0)+65>>0]=1;break}else{h=c[i>>2]|0;c[i>>2]=h+1;c[b+(h<<4)>>2]=d;c[b+(h<<4)+4>>2]=e;a[b+(h<<4)+8>>0]=f;c[b+(h<<4)+12>>2]=g;break}}while(0);return}function ds(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=b[f+48>>1]|0;l=i&65535;h=e[f+46>>1]|0;m=d+64|0;if(!(c[m>>2]|0)){g=c[d>>2]|0;if(!(a[f+51>>0]&8))k=Ns(g,l,0)|0;else k=Ns(g,h,l-h|0)|0;if(k){if(i<<16>>16){j=f+32|0;f=f+28|0;h=k+16|0;g=0;do{i=c[(c[j>>2]|0)+(g<<2)>>2]|0;if(!(Wv(i,11152)|0))i=0;else i=_q(d,i)|0;c[k+(g<<2)+20>>2]=i;a[(c[h>>2]|0)+g>>0]=a[(c[f>>2]|0)+g>>0]|0;g=g+1|0}while((g|0)<(l|0))}g=(c[m>>2]|0)==0;if(!g){g=(c[k>>2]|0)+-1|0;c[k>>2]=g;if(!g){Sc(k);g=0}else g=0}else g=g?k:0}else g=0}else g=0;return g|0}function es(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=i;i=i+112|0;if((i|0)>=(j|0))ba();A=F;C=F+100|0;D=F+96|0;m=F+48|0;B=c[d+8>>2]|0;c[C>>2]=0;c[D>>2]=0;z=c[d>>2]|0;a:do if(!B)g=0;else{b:do if(!f)E=16;else{q=a[f>>0]|0;p=q&255;do switch(p|0){case 19:case 96:{sh(B,p,Xt(d,c[f+12>>2]|0,C)|0,g,0)|0;break b}case 157:{k=f+12|0;h=c[k>>2]|0;l=a[h>>0]|0;if(l<<24>>24==-124){Vt(d,h,1,g);break b}else if(l<<24>>24==-123){Wt(B,c[h+8>>2]|0,1,g);break b}else{a[m>>0]=-124;c[m+4>>2]=17408;c[m+8>>2]=0;A=Xt(d,m,C)|0;sh(B,90,Xt(d,c[k>>2]|0,D)|0,A,g)|0;break b}}case 134:{h=(c[f+8>>2]|0)+2|0;k=h;while(1)if(!(a[k>>0]|0))break;else k=k+1|0;z=(k-h&1073741823)+-1|0;A=Ut(c[B>>2]|0,h,z)|0;th(B,sh(B,30,(z|0)/2|0,g,0)|0,A,-1);break b}case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{A=Xt(d,c[f+12>>2]|0,C)|0;sh(B,p,Xt(d,c[f+16>>2]|0,D)|0,A,g)|0;break b}case 79:case 78:case 83:case 80:case 81:case 82:{y=f+12|0;A=Xt(d,c[y>>2]|0,C)|0;z=f+16|0;B=Xt(d,c[z>>2]|0,D)|0;Yt(d,c[y>>2]|0,c[z>>2]|0,p,A,B,g,32);break b}case 97:{A=c[f+8>>2]|0;th(B,sh(B,97,0,g,0)|0,A,0);break b}case 133:{Wt(B,c[f+8>>2]|0,0,g);break b}case 24:{g=es(d,c[f+12>>2]|0,g)|0;break b}case 155:{k=c[f+40>>2]|0;if(!k){c[A>>2]=c[f+8>>2];ph(d,28936,A);break b}else{g=c[(c[k+40>>2]|0)+(b[f+34>>1]<<4)+8>>2]|0;break b}}case 135:{k=f+32|0;sh(B,31,b[k>>1]|0,g,0)|0;if(!(a[(c[f+8>>2]|0)+1>>0]|0))break b;th(B,-1,c[(c[d+472>>2]|0)+((b[k>>1]|0)+-1<<2)>>2]|0,-2);break b}case 74:{q=c[f+12>>2]|0;n=c[(c[f+20>>2]|0)+4>>2]|0;h=c[n>>2]|0;o=Xt(d,q,C)|0;p=Xt(d,h,D)|0;m=d+19|0;k=a[m>>0]|0;if(k<<24>>24){A=k+-1<<24>>24;a[m>>0]=A;l=c[d+((A&255)<<2)+24>>2]|0;if(!(A<<24>>24))E=103;else{A=k+-2<<24>>24;a[m>>0]=A;m=c[d+((A&255)<<2)+24>>2]|0}}else{E=d+72|0;l=(c[E>>2]|0)+1|0;c[E>>2]=l;E=103}if((E|0)==103){A=d+72|0;m=(c[A>>2]|0)+1|0;c[A>>2]=m}Yt(d,q,h,83,o,p,l,32);A=c[n+20>>2]|0;Wr(d,c[D>>2]|0);Yt(d,q,A,81,o,Xt(d,A,D)|0,m,32);sh(B,72,l,m,g)|0;Wr(d,l);Wr(d,m);break b}case 119:case 20:{g=au(d,f,0,0)|0;break b}case 101:{E=16;break b}case 159:{g=c[f+28>>2]|0;break b}case 156:{h=c[f+40>>2]|0;k=b[f+34>>1]|0;l=c[h+28>>2]|0;if(!(a[h>>0]|0)){g=c[l+(k*24|0)+16>>2]|0;break b}if(a[h+1>>0]|0){sh(B,47,c[h+8>>2]|0,c[l+(k*24|0)+12>>2]|0,g)|0;break b}break}case 154:break;case 148:case 73:{y=f+12|0;A=Xt(d,c[y>>2]|0,C)|0;z=f+16|0;B=Xt(d,c[z>>2]|0,D)|0;Yt(d,c[y>>2]|0,c[z>>2]|0,q<<24>>24==73?79:78,A,B,g,160);break b}case 62:{h=c[f+44>>2]|0;A=_((b[h+38>>1]|0)+1|0,c[f+28>>2]|0)|0;k=f+32|0;sh(B,132,(b[k>>1]|0)+1+A|0,g,0)|0;k=b[k>>1]|0;if(k<<16>>16<=-1)break b;if((a[(c[h+4>>2]|0)+((k<<16>>16)*24|0)+21>>0]|0)!=69)break b;sh(B,39,g,0,0)|0;break b}case 57:{if(!(c[d+412>>2]|0)){ph(d,29e3,A);g=0;break a}l=a[f+1>>0]|0;if(l<<24>>24!=2){h=c[f+8>>2]|0;if(l<<24>>24==4){th(B,sh(B,24,0,4,0)|0,h,0);break b}}else{h=c[d+408>>2]|0;a[((h|0)==0?d:h)+21>>0]=1;h=c[f+8>>2]|0}vs(d,1811,l<<24>>24,h,0,0);break b}case 77:case 76:{sh(B,25,1,g,0)|0;h=sh(B,p,Xt(d,c[f+12>>2]|0,C)|0,0,0)|0;sh(B,25,0,g,0)|0;k=c[B+32>>2]|0;if(k>>>0>h>>>0)c[(c[B+4>>2]|0)+(h*20|0)+8>>2]=k;c[(c[B+24>>2]|0)+88>>2]=k+-1;break b}case 153:{o=a[z+62>>0]|0;x=f+4|0;if((c[x>>2]&16384|0)==0?(n=c[f+20>>2]|0,(n|0)!=0):0){y=c[n>>2]|0;v=1;w=n}else{y=0;v=0;w=0}q=c[f+8>>2]|0;if(!q)p=0;else{p=q;while(1)if(!(a[p>>0]|0))break;else p=p+1|0;p=p-q&1073741823}m=Oh(z,q,p,y,o,0)|0;if((m|0)!=0?(c[m+12>>2]|0)!=0:0){u=m+2|0;n=e[u>>1]|0;if(n&512){m=ts(B)|0;l=w+4|0;Nq(d,c[c[l>>2]>>2]|0,g);if((y|0)>1){k=d+100|0;h=1;do{sh(B,77,g,m,0)|0;$s(d,g,1);c[k>>2]=(c[k>>2]|0)+1;Nq(d,c[(c[l>>2]|0)+(h*20|0)>>2]|0,g);Zt(d);h=h+1|0}while((h|0)!=(y|0))}l=c[B+24>>2]|0;k=~m;if((m|0)<0?(t=c[l+112>>2]|0,(t|0)!=0):0)c[t+(k<<2)>>2]=c[B+32>>2];c[l+88>>2]=(c[B+32>>2]|0)+-1;break b}if(n&1024){Nq(d,c[c[w+4>>2]>>2]|0,g);break b}t=(y|0)>0;if(t){p=w+4|0;o=A+20|0;n=A+4|0;k=A+24|0;q=0;h=0;l=0;do{if((h|0)<32?(f=c[(c[p>>2]|0)+(h*20|0)>>2]|0,c[A+0>>2]=0,c[A+4>>2]=0,c[A+8>>2]=0,c[A+12>>2]=0,c[A+16>>2]=0,c[A+20>>2]=0,a[o>>0]=1,c[A>>2]=78,c[n>>2]=79,c[k>>2]=0,ns(A,f)|0,(a[o>>0]|0)!=0):0)q=q|1<<h;if(!((b[u>>1]&32)==0|(l|0)!=0))l=_t(d,c[(c[p>>2]|0)+(h*20|0)>>2]|0)|0;h=h+1|0}while((h|0)!=(y|0));r=q}else{r=0;l=0}if(v){do if(!r){p=d+60|0;q=c[p>>2]|0;o=d+56|0;n=c[o>>2]|0;if((n|0)<(y|0)){A=d+72|0;q=c[A>>2]|0;c[A>>2]=q+y;q=q+1|0;break}else{c[p>>2]=q+y;c[o>>2]=n-y;break}}else{A=d+72|0;q=c[A>>2]|0;c[A>>2]=q+y;q=q+1|0}while(0);n=b[u>>1]|0;if((n&192)!=0?(s=c[c[w+4>>2]>>2]|0,A=a[s>>0]|0,A<<24>>24==-100|A<<24>>24==-102):0)a[s+38>>0]=n&192;A=d+100|0;c[A>>2]=(c[A>>2]|0)+1;Zs(d,w,q,3);Zt(d)}else q=0;if((y|0)>1?(c[x>>2]&128|0)!=0:0)m=$t(z,m,y,c[(c[w+4>>2]|0)+20>>2]|0)|0;else if(t)m=$t(z,m,y,c[c[w+4>>2]>>2]|0)|0;if(b[m+2>>1]&32){if(!l)l=c[z+8>>2]|0;th(B,sh(B,36,0,0,0)|0,l,-4)}th(B,sh(B,1,r,q,g)|0,m,-5);l=c[B+4>>2]|0;if(l)a[l+(((c[B+32>>2]|0)+-1|0)*20|0)+3>>0]=y;if(!((y|0)!=0&(r|0)==0))break b;$s(d,q,y);k=d+56|0;if((c[k>>2]|0)>=(y|0))break b;c[k>>2]=y;c[d+60>>2]=q;break b}c[A>>2]=p;c[A+4>>2]=q;ph(d,28968,A);break b}case 75:{A=ts(B)|0;n=ts(B)|0;sh(B,28,0,g,0)|0;bu(d,f,A,n);sh(B,25,1,g,0)|0;k=B+24|0;h=c[k>>2]|0;l=~A;if((A|0)<0?(o=c[h+112>>2]|0,(o|0)!=0):0)c[o+(l<<2)>>2]=c[B+32>>2];m=B+32|0;c[h+88>>2]=(c[m>>2]|0)+-1;sh(B,37,g,0,0)|0;l=c[k>>2]|0;k=~n;if((n|0)<0?(r=c[l+112>>2]|0,(r|0)!=0):0)c[r+(k<<2)>>2]=c[m>>2];c[l+88>>2]=(c[m>>2]|0)+-1;break b}case 158:case 95:{g=es(d,c[f+12>>2]|0,g)|0;break b}case 132:{Vt(d,f,0,g);break b}case 38:{k=es(d,c[f+12>>2]|0,g)|0;if((k|0)!=(g|0))sh(B,34,k,g,0)|0;sh(B,40,g,(Tq(c[f+8>>2]|0,0)|0)<<24>>24,0)|0;$s(d,g,1);break b}default:{u=c[f+20>>2]|0;s=u+4|0;t=c[s>>2]|0;u=c[u>>2]|0;v=ts(B)|0;q=c[f+12>>2]|0;f=(q|0)!=0;if(f){p=m+0|0;o=q+0|0;n=p+48|0;do{c[p>>2]=c[o>>2];p=p+4|0;o=o+4|0}while((p|0)<(n|0));q=Xt(d,q,C)|0;a[m+38>>0]=a[m>>0]|0;a[m>>0]=-97;c[m+28>>2]=q;q=m+4|0;c[q>>2]=c[q>>2]&-4097;a[A>>0]=79;c[A+12>>2]=m;c[C>>2]=0;q=A}else q=0;r=u+-1|0;if((r|0)>0){h=d+100|0;n=A+16|0;m=B+24|0;l=B+32|0;k=0;p=q;while(1){c[h>>2]=(c[h>>2]|0)+1;q=c[t+(k*20|0)>>2]|0;if(f){c[n>>2]=q;q=p}A=ts(B)|0;ct(d,q,A,16);Nq(d,c[t+((k|1)*20|0)>>2]|0,g);sh(B,16,0,v,0)|0;Zt(d);p=c[m>>2]|0;o=~A;if((A|0)<0?(w=c[p+112>>2]|0,(w|0)!=0):0)c[w+(o<<2)>>2]=c[l>>2];c[p+88>>2]=(c[l>>2]|0)+-1;k=k+2|0;if((k|0)>=(r|0))break;else p=q}}if(!(u&1))sh(B,28,0,g,0)|0;else{A=d+100|0;c[A>>2]=(c[A>>2]|0)+1;Nq(d,c[(c[s>>2]|0)+(r*20|0)>>2]|0,g);Zt(d)}l=c[B+24>>2]|0;k=~v;if((v|0)<0?(x=c[l+112>>2]|0,(x|0)!=0):0)c[x+(k<<2)>>2]=c[B+32>>2];c[l+88>>2]=(c[B+32>>2]|0)+-1;break b}}while(0);h=c[f+28>>2]|0;do if((h|0)<0){h=c[d+92>>2]|0;if((h|0)>0){g=(b[f+32>>1]|0)+h|0;break b}else{h=c[d+96>>2]|0;break}}while(0);g=_s(d,c[f+44>>2]|0,b[f+32>>1]|0,h,g,a[f+38>>0]|0)|0}while(0);if((E|0)==16)sh(B,28,0,g,0)|0;Wr(d,c[C>>2]|0);Wr(d,c[D>>2]|0)}while(0);i=F;return g|0}function fs(a,b){a=a|0;b=b|0;var d=0;d=Kq(a)|0;cs(a,b,1,1,(b|0)==1?13184:13208);th(d,sh(d,55,0,1,b)|0,5,-14);b=a+68|0;if(!(c[b>>2]|0))c[b>>2]=1;return}function gs(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0;h=f+48|0;if((e[h>>1]|0|0)<(g|0)){i=g*7|0;d=ih(d,i,((i|0)<0)<<31>>31)|0;if(!d)d=7;else{bw(d|0,0,i|0)|0;j=f+32|0;gw(d|0,c[j>>2]|0,(e[h>>1]|0)<<2|0)|0;c[j>>2]=d;j=d+(g<<2)|0;i=f+4|0;gw(j|0,c[i>>2]|0,(e[h>>1]|0)<<1|0)|0;c[i>>2]=j;i=d+(g*6|0)|0;d=f+28|0;gw(i|0,c[d>>2]|0,e[h>>1]|0|0)|0;c[d>>2]=i;b[h>>1]=g;d=f+51|0;a[d>>0]=a[d>>0]|16;d=0}}else d=0;return d|0}function hs(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();k=p;o=p+4|0;do if(!d)f=0;else{l=c[a>>2]|0;n=d+24|0;h=l+460|0;g=(c[h>>2]|0)+(c[n>>2]|0)|0;f=c[(c[l>>2]|0)+100>>2]|0;if((f|0)<(g|0)){c[k>>2]=f;ph(l,27152,k);f=1;break}c[h>>2]=g;k=a+28|0;h=e[k>>1]|0;m=h&4098;b[k>>1]=h&61437;c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[o+16>>2]=0;c[o+20>>2]=0;c[o>>2]=82;c[o+4>>2]=83;h=o+12|0;c[h>>2]=l;c[o+24>>2]=a;ns(o,d)|0;o=(c[a>>2]|0)+460|0;c[o>>2]=(c[o>>2]|0)-(c[n>>2]|0);if(!((c[a+24>>2]|0)<=0?(c[(c[h>>2]|0)+64>>2]|0)<=0:0)){o=d+4|0;c[o>>2]=c[o>>2]|8}h=b[k>>1]|0;g=d+4|0;f=c[g>>2]|0;if(h&2){f=f|2;c[g>>2]=f}b[k>>1]=h&65535|m;f=f>>>3&1}while(0);i=p;return f|0}function is(a){a=a|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=c[(c[a+12>>2]|0)+4>>2]|0;f=b[a+48>>1]|0;if(!(f<<16>>16)){e=0;f=0}else{j=c[a+4>>2]|0;g=f&65535;h=0;e=0;do{f=b[j+(h<<1)>>1]|0;if(f<<16>>16<0)f=1;else f=d[i+((f<<16>>16)*24|0)+22>>0]|0;e=f+e|0;h=h+1|0}while((h|0)<(g|0));e=e<<2;f=0}b[a+44>>1]=bs(e,f)|0;return}function js(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;j=c[d>>2]|0;g=j+24|0;i=c[g>>2]|0;c[g>>2]=i&-97|64;zs(d,e,0);if(!(c[d+64>>2]|0)){while(1){f=c[e+52>>2]|0;if(!f){h=e;break}else e=f}c[g>>2]=i;e=ih(j,76,0)|0;if(e){f=e+0|0;g=f+76|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(g|0));b[e+40>>1]=1;c[e>>2]=0;b[e+28>>1]=200;eu(d,c[h>>2]|0,e+38|0,e+4|0);fu(d,e,h);b[e+36>>1]=-1;if(a[j+65>>0]|0){gg(j,e);e=0}}else e=0}else e=0;return e|0}function ks(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[d>>2]|0;g=a[e>>0]|0;a:do if(!(g<<24>>24)){i=0;h=0}else{i=g;j=0;while(1){h=j+1|0;if(!(i<<24>>24==95?1:(a[10368+(i&255)>>0]&6)!=0)){h=j;break a}i=a[e+h>>0]|0;if(!(i<<24>>24)){i=0;break}else j=h}}while(0);if((((g&255)+-48|0)>>>0>=10?(bi(e,h)|0)==27:0)?!((h|0)==0|i<<24>>24!=0):0)k=0;else{a[b+f>>0]=34;k=1;g=a[e>>0]|0;f=f+1|0}if(g<<24>>24){h=e;j=0;do{i=f+1|0;a[b+f>>0]=g;if((a[h>>0]|0)==34){a[b+i>>0]=34;f=f+2|0}else f=i;j=j+1|0;h=e+j|0;g=a[h>>0]|0}while(g<<24>>24!=0)}if(k){a[b+f>>0]=34;f=f+1|0}a[b+f>>0]=0;c[d>>2]=f;return}function ls(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=b+20|0;g=a[f>>0]|0;if(g<<24>>24==2?(c[e+4>>2]&1|0)!=0:0){a[f>>0]=0;f=2}else h=4;a:do if((h|0)==4)switch(d[e>>0]|0|0){case 135:if(g<<24>>24==5){a[e>>0]=101;f=0;break a}else if(g<<24>>24==4){a[f>>0]=0;f=2;break a}else{f=0;break a}case 153:{if((g&255)>3){f=0;break a}if(c[e+4>>2]&524288){f=0;break a}a[f>>0]=0;f=2;break a}case 156:case 155:case 154:case 27:{if(g<<24>>24==3?(c[e+28>>2]|0)==(c[b+24>>2]|0):0){f=0;break a}a[f>>0]=0;f=2;break a}default:{f=0;break a}}while(0);return f|0}function ms(b,c){b=b|0;c=c|0;a[b+20>>0]=0;return 2}function ns(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!b)b=0;else{d=nc[c[a>>2]&127](a,b)|0;do if((d|0)==0?(e=b+4|0,(c[e>>2]&16384|0)==0):0){if(ns(a,c[b+12>>2]|0)|0){b=2;break a}if(ns(a,c[b+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(c[e>>2]&2048))if(!(hu(a,c[b>>2]|0)|0))break;else{b=2;break a}else if(!(gu(a,c[b>>2]|0)|0))break;else{b=2;break a}}while(0);b=d&2}while(0);return b|0}function os(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;do if(e)if(!f)g=e;else{if((iu(e)|0)==0?(iu(f)|0)==0:0){g=ih(d,48,0)|0;if(g){h=g+0|0;i=h+48|0;do{a[h>>0]=0;h=h+1|0}while((h|0)<(i|0));a[g>>0]=72;b[g+34>>1]=-1;c[g+24>>2]=1}ps(d,g,e,f);break}Ck(d,e);Ck(d,f);g=jr(d,132,20616,0)|0}else g=f;while(0);return g|0}function ps(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if(!b){Ck(a,d);Ck(a,e)}else{if(e){c[b+16>>2]=e;a=b+4|0;c[a>>2]=c[a>>2]|c[e+4>>2]&2097408}if(d){c[b+12>>2]=d;a=b+4|0;c[a>>2]=c[a>>2]|c[d+4>>2]&2097408}Et(b)}return}function qs(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=d<<16>>16;j=(h<<2)+63&-8;k=h<<1;l=k+2|0;i=(h+7+k+l&-8)+j|0;g=i+e|0;e=ih(a,g,((g|0)<0)<<31>>31)|0;if(e){bw(e|0,0,g|0)|0;c[e+32>>2]=e+56;c[e+8>>2]=e+j;g=j+l|0;c[e+4>>2]=e+g;c[e+28>>2]=e+(g+k);b[e+48>>1]=d;b[e+46>>1]=h+65535;c[f>>2]=e+i}return e|0}function rs(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();t=z;p=c[d+12>>2]|0;o=b+68|0;w=c[o>>2]|0;y=w+1|0;c[o>>2]=w+2;n=c[b>>2]|0;l=c[d+24>>2]|0;a:do if(l){h=c[n+20>>2]|0;if((h|0)>0){g=c[n+16>>2]|0;m=0;while(1){k=m+1|0;if((c[g+(m<<4)+12>>2]|0)==(l|0)){k=m;break a}if((k|0)<(h|0))m=k;else break}}else k=0}else k=-1e6;while(0);if((Oq(b,27,c[d>>2]|0,0,c[(c[n+16>>2]|0)+(k<<4)>>2]|0)|0)==0?(cs(b,k,c[p+32>>2]|0,1,c[p>>2]|0),x=Kq(b)|0,(x|0)!=0):0){if((f|0)>-1)q=f;else q=c[d+40>>2]|0;u=ds(b,d)|0;v=c[o>>2]|0;c[o>>2]=v+1;s=d+46|0;h=e[s>>1]|0;if(u)c[u>>2]=(c[u>>2]|0)+1;th(x,sh(x,58,v,0,h)|0,u,-6);Mq(b,w,k,p,54);n=sh(x,108,w,0,0)|0;h=b+19|0;g=a[h>>0]|0;if(!(g<<24>>24)){p=b+72|0;r=(c[p>>2]|0)+1|0;c[p>>2]=r}else{r=g+-1<<24>>24;a[h>>0]=r;r=c[b+((r&255)<<2)+24>>2]|0}Lt(b,d,w,r,0,t,0,0)|0;sh(x,109,v,r,0)|0;Mt(b,c[t>>2]|0);sh(x,9,w,n+1|0,0)|0;p=x+32|0;m=c[p>>2]|0;if(m>>>0>n>>>0)c[(c[x+4>>2]|0)+(n*20|0)+8>>2]=m;l=x+24|0;c[(c[l>>2]|0)+88>>2]=m+-1;if((f|0)<0)sh(x,118,q,k,0)|0;th(x,sh(x,55,y,q,k)|0,u,-6);o=x+4|0;h=c[o>>2]|0;if(h)a[h+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=(f>>31)+4&252|1;n=sh(x,106,v,0,0)|0;h=c[p>>2]|0;if((a[d+50>>0]|0)!=0&(u|0)!=0){m=h+3|0;sh(x,16,0,m,0)|0;h=c[p>>2]|0;q=e[s>>1]|0;th(x,sh(x,99,v,m,r)|0,q,-14);ju(b,2,d)}sh(x,100,v,r,y)|0;sh(x,110,y,r,1)|0;g=c[o>>2]|0;if(g)a[g+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=16;Wr(b,r);sh(x,5,v,h,0)|0;g=c[p>>2]|0;if(g>>>0>n>>>0)c[(c[o>>2]|0)+(n*20|0)+8>>2]=g;c[(c[l>>2]|0)+88>>2]=g+-1;sh(x,61,w,0,0)|0;sh(x,61,y,0,0)|0;sh(x,61,v,0,0)|0}i=z;return}function ss(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r;p=c[e>>2]|0;if(!g){g=Un(p,f,h,0)|0;if(!g)n=4;else n=3}else n=3;if((n|0)==3)if(!(c[g+12>>2]|0))n=4;else n=14;if((n|0)==4){l=f&255;k=p+224|0;if(c[k>>2]|0){m=gh(p,h)|0;if(m){mc[c[k>>2]&15](c[p+232>>2]|0,p,l,m);ig(p,m);n=7}}else n=7;if((n|0)==7?(o=p+228|0,(c[o>>2]|0)!=0):0){k=ih(p,40,0)|0;if(!k)k=0;else{m=k+0|0;l=m+40|0;do{a[m>>0]=0;m=m+1|0}while((m|0)<(l|0));b[k+8>>1]=1;c[k+32>>2]=p;Tg(k,h,-1,1,0)|0}g=Og(k,2)|0;if(g)mc[c[o>>2]&15](c[p+232>>2]|0,p,d[p+62>>0]|0,g);Ih(k)}g=Un(p,f,h,0)|0;if(!g)n=19;else n=14}a:do if((n|0)==14)if(!(c[g+12>>2]|0)){l=c[g>>2]|0;m=0;while(1){k=Un(p,a[26816+m>>0]|0,l,0)|0;m=m+1|0;if(c[k+12>>2]|0)break;if((m|0)>=3){n=19;break a}}c[g+0>>2]=c[k+0>>2];c[g+4>>2]=c[k+4>>2];c[g+8>>2]=c[k+8>>2];c[g+12>>2]=c[k+12>>2];c[g+16>>2]=0}while(0);if((n|0)==19){c[q>>2]=h;ph(e,26784,q);g=0}i=r;return g|0}function ts(a){a=a|0;var b=0,d=0;a=c[a+24>>2]|0;d=a+108|0;b=c[d>>2]|0;c[d>>2]=b+1;if(!(b+-1&b)){d=a+112|0;a=Sl(c[a>>2]|0,c[d>>2]|0,b<<3|4,0)|0;c[d>>2]=a}else a=c[a+112>>2]|0;if(a)c[a+(b<<2)>>2]=-1;return ~b|0}function us(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;if(e){g=c[e>>2]|0;if((g|0)>0){h=(g*72|0)+8|0;g=h;h=((h|0)<0)<<31>>31}else{g=80;h=0}g=ih(d,g,h)|0;if(g){h=c[e>>2]|0;c[g+4>>2]=h;c[g>>2]=h;if((c[e>>2]|0)>0){h=g+8|0;j=0;do{c[h+(j*72|0)>>2]=c[e+(j*72|0)+8>>2];c[h+(j*72|0)+4>>2]=gh(d,c[e+(j*72|0)+12>>2]|0)|0;c[h+(j*72|0)+8>>2]=gh(d,c[e+(j*72|0)+16>>2]|0)|0;c[h+(j*72|0)+12>>2]=gh(d,c[e+(j*72|0)+20>>2]|0)|0;a[h+(j*72|0)+36>>0]=a[e+(j*72|0)+44>>0]|0;c[h+(j*72|0)+40>>2]=c[e+(j*72|0)+48>>2];c[h+(j*72|0)+24>>2]=c[e+(j*72|0)+32>>2];c[h+(j*72|0)+28>>2]=c[e+(j*72|0)+36>>2];k=e+(j*72|0)+45|0;i=h+(j*72|0)+37|0;l=a[i>>0]&-3|a[k>>0]&2;a[i>>0]=l;l=l&-5|a[k>>0]&4;a[i>>0]=l;a[i>>0]=l&-9|a[k>>0]&8;c[h+(j*72|0)+64>>2]=gh(d,c[e+(j*72|0)+72>>2]|0)|0;a[i>>0]=a[i>>0]&-2|a[k>>0]&1;c[h+(j*72|0)+68>>2]=c[e+(j*72|0)+76>>2];i=c[e+(j*72|0)+24>>2]|0;c[h+(j*72|0)+16>>2]=i;if(i){i=i+40|0;b[i>>1]=(b[i>>1]|0)+1<<16>>16}c[h+(j*72|0)+20>>2]=cr(d,c[e+(j*72|0)+28>>2]|0,f)|0;c[h+(j*72|0)+44>>2]=Ir(d,c[e+(j*72|0)+52>>2]|0,f,0)|0;c[h+(j*72|0)+48>>2]=Jr(d,c[e+(j*72|0)+56>>2]|0)|0;l=e+(j*72|0)+64|0;k=c[l+4>>2]|0;i=h+(j*72|0)+56|0;c[i>>2]=c[l>>2];c[i+4>>2]=k;j=j+1|0}while((j|0)<(c[e>>2]|0))}}else g=0}else g=0;return g|0}function vs(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;i=Kq(b)|0;if((e|0)==2){k=c[b+408>>2]|0;a[((k|0)==0?b:k)+21>>0]=1}th(i,sh(i,24,d,e,0)|0,f,g<<24>>24);if(h<<24>>24!=0?(j=c[i+4>>2]|0,(j|0)!=0):0)a[j+(((c[i+32>>2]|0)+-1|0)*20|0)+3>>0]=h;return}function ws(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(c[(c[b>>2]|0)+16>>2]|0)+28>>2]|0;do if(!(a[b+438>>0]|0)){h=c[d+68>>2]|0;if((e|0)!=(h|0)?(f=c[e+48>>2]|0,(f|0)!=0):0){g=d+64|0;e=0;while(1){b=c[f+8>>2]|0;if((c[b+24>>2]|0)==(h|0)?($c(c[b+4>>2]|0,c[d>>2]|0)|0)==0:0){if(!e)e=c[g>>2]|0;c[b+32>>2]=e}else b=e;f=c[f>>2]|0;if(!f)break;else e=b}if(b)break}b=c[d+64>>2]|0}else b=0;while(0);return b|0}function xs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=c[b+32>>2]|0;k=b+8|0;i=b+68|0;f=0;while(1){g=(f|0)==0;b=g|(j|0)<(f|0)?j:0;d=c[k>>2]|0;if(!d)h=b;else{do{e=c[d+40>>2]|0;b=(g|(e|0)<(f|0))&(e|0)>(b|0)?e:b;d=c[d+20>>2]|0}while((d|0)!=0);h=b}if(!h)break;b=c[a>>2]|0;f=c[i>>2]|0;a:do if(f){g=c[b+20>>2]|0;if((g|0)>0){d=c[b+16>>2]|0;e=0;while(1){b=e+1|0;if((c[d+(e<<4)+12>>2]|0)==(f|0)){b=e;break a}if((b|0)<(g|0))e=b;else break}}else b=0}else b=-1e6;while(0);Ar(a,h,b);f=h}return}function ys(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;a:do if((b|0)!=0?(d=c[b>>2]|0,(d|0)>0):0){h=a+68|0;f=0;g=b+8|0;while(1){e=g+40|0;if((c[e>>2]|0)>-1)break a;i=c[h>>2]|0;c[h>>2]=i+1;c[e>>2]=i;e=c[g+20>>2]|0;if(e){ys(a,c[e+32>>2]|0);d=c[b>>2]|0}f=f+1|0;if((f|0)>=(d|0))break;else g=g+72|0}}while(0);return}function zs(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))ba();m=n;if(((e|0)!=0?(l=(c[d>>2]|0)+65|0,(a[l>>0]|0)==0):0)?(h=e+6|0,g=b[h>>1]|0,(g&32)==0):0){c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;c[m+24>>2]=0;c[m>>2]=84;c[m+12>>2]=d;k=m+4|0;if(a[d+22>>0]|0){c[k>>2]=85;gu(m,e)|0;g=b[h>>1]|0}c[k>>2]=86;if(!(g&256))c[m+8>>2]=9;gu(m,e)|0;g=d+64|0;if((((c[g>>2]|0)==0?(a[l>>0]|0)==0:0)?(c[m+0>>2]=0,c[m+4>>2]=0,c[m+8>>2]=0,c[m+12>>2]=0,c[m+16>>2]=0,c[m+20>>2]=0,c[m>>2]=82,c[m+4>>2]=83,c[m+12>>2]=d,c[m+24>>2]=f,gu(m,e)|0,(c[g>>2]|0)==0):0)?(a[l>>0]|0)==0:0){c[m+0>>2]=0;c[m+4>>2]=0;c[m+8>>2]=0;c[m+12>>2]=0;c[m+16>>2]=0;c[m+20>>2]=0;c[m+24>>2]=0;c[m+8>>2]=10;c[m>>2]=84;c[m+12>>2]=d;gu(m,e)|0}}i=n;return}function As(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if(a)do{d=c[a+36>>2]|0;if((d|0)!=0?(h=c[d+24>>2]|0,(h|0)>(c[b>>2]|0)):0)c[b>>2]=h;d=c[a+44>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(c[b>>2]|0)):0)c[b>>2]=e;d=c[a+60>>2]|0;if((d|0)!=0?(f=c[d+24>>2]|0,(f|0)>(c[b>>2]|0)):0)c[b>>2]=f;d=c[a+64>>2]|0;if((d|0)!=0?(g=c[d+24>>2]|0,(g|0)>(c[b>>2]|0)):0)c[b>>2]=g;pu(c[a>>2]|0,b);pu(c[a+40>>2]|0,b);pu(c[a+48>>2]|0,b);a=c[a+52>>2]|0}while((a|0)!=0);return}function Bs(a,b,d,f){a=a|0;b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;g=c[b>>2]|0;h=g+d|0;if(h>>>0>(c[b+4>>2]|0)>>>0){i=no(a,b,(h*72|0)+8|0,0)|0;if(i){do if(!a)b=hc[c[8744+48>>2]&127](i)|0;else{if((c[a+276>>2]|0)>>>0<=i>>>0?(c[a+280>>2]|0)>>>0>i>>>0:0){b=e[a+248>>1]|0;break}b=hc[c[8744+48>>2]&127](i)|0}while(0);c[i+4>>2]=(((b+-80|0)>>>0)/72|0)+1;b=i;g=c[i>>2]|0;j=10}}else j=10;if((j|0)==10){if((g|0)>(f|0)){do{g=g+-1|0;h=b+((g+d|0)*72|0)+8|0;a=b+(g*72|0)+8|0;i=h+72|0;do{c[h>>2]=c[a>>2];h=h+4|0;a=a+4|0}while((h|0)<(i|0))}while((g|0)>(f|0));g=c[b>>2]|0}c[b>>2]=g+d;bw(b+(f*72|0)+8|0,0,d*72|0)|0;g=f+d|0;if((d|0)>0)do{c[b+(f*72|0)+48>>2]=-1;f=f+1|0}while((f|0)<(g|0))}return b|0}function Cs(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;if((b|0)!=0?(c[b>>2]|0)>0:0){f=b+4|0;g=c[f>>2]|0;h=0;do{i=Ds(a,c[g+(h*20|0)>>2]|0,d,e)|0;g=c[f>>2]|0;c[g+(h*20|0)>>2]=i;h=h+1|0}while((h|0)<(c[b>>2]|0))}return}function Ds(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0;do if(e){if((a[e>>0]|0)==-102?(c[e+28>>2]|0)==(f|0):0){h=b[e+32>>1]|0;if(h<<16>>16<0){a[e>>0]=101;break}else{h=Ir(d,c[(c[g+4>>2]|0)+((h<<16>>16)*20|0)>>2]|0,0,0)|0;Ck(d,e);e=h;break}}h=e+12|0;c[h>>2]=Ds(d,c[h>>2]|0,f,g)|0;h=e+16|0;c[h>>2]=Ds(d,c[h>>2]|0,f,g)|0;h=e+20|0;if(!(c[e+4>>2]&2048)){Cs(d,c[h>>2]|0,f,g);break}else{qu(d,c[h>>2]|0,f,g);break}}else e=0;while(0);return e|0}function Es(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[c[b>>2]>>2]|0;e=b;g=1;while(1){b=c[e+52>>2]|0;if(!b){f=5;break}if((c[c[b>>2]>>2]|0)==(f|0)){e=b;g=g+1|0}else{f=3;break}}a:do if((f|0)==3){Fs(a,b);b=1}else if((f|0)==5)if(!e)b=0;else{h=((g|0)<0)<<31>>31;f=0;while(1){i=e+52|0;c[i>>2]=0;b=er(a,e,d)|0;c[i>>2]=f;if(b)break a;b=e+24|0;c[b>>2]=g;c[b+4>>2]=h;b=c[e+56>>2]|0;if(!b){b=0;break a}e=b;f=c[b+52>>2]|0}}while(0);return b|0}function Fs(a,e){a=a|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;if(!(b[e+6>>1]&128)){e=d[e+4>>0]|0;if((e|0)==117)e=35352;else if((e|0)==118)e=35336;else if((e|0)==116)e=35320;else e=35360;c[f>>2]=e;ph(a,35232,f)}else ph(a,35184,f);i=g;return}function Gs(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;E=i;i=i+32|0;if((i|0)>=(j|0))ba();v=E;k=c[f+32>>2]|0;n=c[c[f>>2]>>2]|0;s=c[d+8>>2]|0;t=f+52|0;u=c[t>>2]|0;if(!(Oq(d,33,0,0,0)|0)){w=ts(s)|0;Ks(d,f,w);x=f+60|0;y=c[x>>2]|0;z=f+64|0;A=c[z>>2]|0;B=f+8|0;p=c[B>>2]|0;C=f+12|0;q=c[C>>2]|0;c[z>>2]=0;c[x>>2]=0;c[C>>2]=0;c[B>>2]=0;B=f+48|0;C=c[B>>2]|0;l=c[k>>2]|0;a:do if((l|0)>0){m=0;while(1){if(a[k+(m*72|0)+45>>0]&8)break;m=m+1|0;if((m|0)>=(l|0)){o=0;break a}}o=c[k+(m*72|0)+48>>2]|0}else o=0;while(0);m=d+68|0;k=c[m>>2]|0;l=k+1|0;c[m>>2]=l;h=(C|0)!=0;if((a[f+4>>0]|0)==115){c[m>>2]=k+2;m=h?8:6}else{m=h?7:5;l=0}a[v>>0]=m;c[v+4>>2]=k;a[v+1>>0]=0;c[v+8>>2]=0;c[v+12>>2]=0;F=d+72|0;m=(c[F>>2]|0)+1|0;c[F>>2]=m;sh(s,60,o,m,n)|0;if(h){n=ru(d,f)|0;th(s,sh(s,57,k,(c[C>>2]|0)+2|0,0)|0,n,-6);c[v+16>>2]=C}else sh(s,57,k,n,0)|0;if(l){c[f+16>>2]=sh(s,57,l,0,0)|0;l=f+6|0;b[l>>1]=e[l>>1]|8}c[B>>2]=0;n=u+56|0;c[n>>2]=0;l=er(d,u,v)|0;c[n>>2]=f;if(!l){n=sh(s,108,k,w,0)|0;sh(s,104,o,0,0)|0;if(h)sh(s,47,k,(c[C>>2]|0)+1|0,m)|0;else sh(s,102,k,m,0)|0;sh(s,95,k,0,0)|0;l=ts(s)|0;et(s,q,l);Ls(d,f,c[f>>2]|0,o,0,0,g,l,w);if(p)sh(s,140,p,w,0)|0;h=s+24|0;m=c[h>>2]|0;k=~l;if((l|0)<0?(r=c[m+112>>2]|0,(r|0)!=0):0)c[r+(k<<2)>>2]=c[s+32>>2];l=s+32|0;c[m+88>>2]=(c[l>>2]|0)+-1;c[t>>2]=0;er(d,f,v)|0;c[t>>2]=u;sh(s,16,0,n,0)|0;h=c[h>>2]|0;k=~w;if((w|0)<0?(D=c[h+112>>2]|0,(D|0)!=0):0)c[D+(k<<2)>>2]=c[l>>2];c[h+88>>2]=(c[l>>2]|0)+-1}Jk(c[d>>2]|0,c[B>>2]|0);c[B>>2]=C;c[x>>2]=y;c[z>>2]=A}i=E;return}function Hs(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=i;i=i+48|0;if((i|0)>=(j|0))ba();r=Y+40|0;K=Y+20|0;L=Y;U=c[f>>2]|0;R=c[f+8>>2]|0;T=ts(R)|0;Q=ts(R)|0;V=g+4|0;M=a[V>>0]|0;W=g+52|0;X=c[W>>2]|0;t=g+48|0;m=c[t>>2]|0;l=c[m>>2]|0;O=M<<24>>24==116;a:do if(!O?(p=U+65|0,(a[p>>0]|0)==0):0){n=r+4|0;q=1;while(1){if((q|0)>(c[c[g>>2]>>2]|0)){N=l;s=14;break a}b:do if((l|0)>0){k=0;o=c[m+4>>2]|0;while(1){if((e[o+16>>1]|0)==(q|0))break b;k=k+1|0;if((k|0)<(l|0))o=o+20|0;else break}}else k=0;while(0);if((k|0)==(l|0)){c[r>>2]=0;c[n>>2]=0;k=jr(U,132,r,0)|0;if(!k){k=7;break a}G=k+4|0;c[G>>2]=c[G>>2]|1024;c[k+8>>2]=q;k=hr(f,m,k)|0;if(!k)k=0;else{b[(c[k+4>>2]|0)+(l*20|0)+16>>1]=q;l=l+1|0}}else k=m;if(!(a[p>>0]|0)){q=q+1|0;m=k}else{N=l;m=k;s=14;break}}}else{N=l;s=14}while(0);if((s|0)==14){J=ih(U,N<<2,0)|0;if(!J)H=0;else{if((N|0)>0){l=0;k=c[m+4>>2]|0;while(1){c[J+(l<<2)>>2]=(e[k+16>>1]|0)+-1;l=l+1|0;if((l|0)==(N|0))break;else k=k+20|0}}H=ru(f,g)|0}c[t>>2]=m;p=X+48|0;c[p>>2]=Lr(c[f>>2]|0,m,0)|0;if(!O){m=c[c[g>>2]>>2]|0;l=f+72|0;G=c[l>>2]|0;o=G+1|0;c[l>>2]=m+1+G;sh(R,25,0,o,0)|0;l=Ns(U,m,1)|0;if(l)if((m|0)>0){k=l+16|0;n=0;do{c[l+(n<<2)+20>>2]=Os(f,g,n)|0;a[(c[k>>2]|0)+n>>0]=0;n=n+1|0}while((n|0)!=(m|0));u=l}else u=l;else u=0}else{u=0;o=0}c[W>>2]=0;I=X+56|0;c[I>>2]=0;su(f,g,c[t>>2]|0,26880)|0;if(!(c[X+52>>2]|0))su(f,X,c[p>>2]|0,26880)|0;Ks(f,g,T);n=g+8|0;l=c[n>>2]|0;p=f+72|0;if((l|0)!=0&O){s=c[p>>2]|0;q=s+1|0;s=s+2|0;c[p>>2]=s;G=c[g+12>>2]|0;sh(R,33,(G|0)==0?l:G+1|0,q,0)|0;sh(R,33,q,s,0)|0}else{q=0;s=0}x=g+60|0;Ck(U,c[x>>2]|0);c[x>>2]=0;x=g+64|0;Ck(U,c[x>>2]|0);c[x>>2]=0;x=c[p>>2]|0;y=x+1|0;z=x+2|0;v=x+3|0;x=x+4|0;c[p>>2]=x;a[K>>0]=13;c[K+4>>2]=y;a[K+1>>0]=0;B=K+8|0;c[B>>2]=0;c[K+12>>2]=0;a[L>>0]=13;c[L+4>>2]=z;a[L+1>>0]=0;D=L+8|0;c[D>>2]=0;c[L+12>>2]=0;F=R+32|0;r=sh(R,20,y,0,(c[F>>2]|0)+1|0)|0;c[X+8>>2]=q;p=f+468|0;G=c[p>>2]|0;er(f,X,K)|0;sh(R,21,y,0,0)|0;q=c[F>>2]|0;if(q>>>0>r>>>0)c[(c[R+4>>2]|0)+(r*20|0)+8>>2]=q;A=R+24|0;c[(c[A>>2]|0)+88>>2]=q+-1;w=sh(R,20,z,0,q+1|0)|0;k=c[n>>2]|0;m=g+12|0;t=c[m>>2]|0;c[n>>2]=s;c[m>>2]=0;E=c[p>>2]|0;er(f,g,L)|0;c[n>>2]=k;c[m>>2]=t;sh(R,21,z,0,0)|0;m=tu(f,g,K,h,v,o,u,T)|0;t=(M+-115&255)<2;if(t)k=tu(f,g,L,h,x,o,u,T)|0;else k=0;if((u|0)!=0?(l=(c[u>>2]|0)+-1|0,c[u>>2]=l,(l|0)==0):0)Sc(u);o=M<<24>>24==118;if((M+-117&255)<2){s=T;l=T}else{s=sh(R,17,x,k,0)|0;l=sh(R,22,z,T,0)|0;sh(R,16,0,s,0)|0;n=X+24|0;u=g+24|0;p=u;n=fw(c[p>>2]|0,c[p+4>>2]|0,c[n>>2]|0,c[n+4>>2]|0)|0;c[u>>2]=n;c[u+4>>2]=C}if(o){r=g+24|0;u=r;n=c[u+4>>2]|0;p=X+24|0;q=c[p>>2]|0;p=c[p+4>>2]|0;if(n>>>0>p>>>0|((n|0)==(p|0)?(c[u>>2]|0)>>>0>q>>>0:0)){n=r;c[n>>2]=q;c[n+4>>2]=p;n=s}else n=s}else{n=sh(R,17,v,m,0)|0;sh(R,22,y,T,0)|0;sh(R,16,0,n,0)|0}r=sh(R,17,v,m,0)|0;sh(R,22,y,s,0)|0;sh(R,16,0,Q,0)|0;do if(!O)if(o){s=r;r=r+1|0;break}else{s=sh(R,22,y,s,0)|0;sh(R,16,0,Q,0)|0;break}else s=r;while(0);q=c[F>>2]|0;if(t)sh(R,17,x,k,0)|0;sh(R,22,z,n,0)|0;sh(R,16,0,Q,0)|0;p=c[F>>2]|0;if(p>>>0>w>>>0)c[(c[R+4>>2]|0)+(w*20|0)+8>>2]=p;c[(c[A>>2]|0)+88>>2]=p+-1;sh(R,22,y,l,0)|0;sh(R,22,z,n,0)|0;n=c[A>>2]|0;m=~Q;if((Q|0)<0?(P=c[n+112>>2]|0,(P|0)!=0):0)c[P+(m<<2)>>2]=c[F>>2];c[n+88>>2]=(c[F>>2]|0)+-1;th(R,sh(R,41,0,0,0)|0,J,-15);th(R,sh(R,42,c[B>>2]|0,c[D>>2]|0,N)|0,H,-6);l=c[R+4>>2]|0;if(l)a[l+(((c[F>>2]|0)+-1|0)*20|0)+3>>0]=1;sh(R,43,r,s,q)|0;l=c[A>>2]|0;k=~T;if((T|0)<0?(S=c[l+112>>2]|0,(S|0)!=0):0)c[S+(k<<2)>>2]=c[F>>2];c[l+88>>2]=(c[F>>2]|0)+-1;if((a[h>>0]|0)==9){k=X;while(1){l=c[k+52>>2]|0;if(!l)break;else k=l}Js(f,0,c[k>>2]|0)}k=c[W>>2]|0;if(k)Ik(U,k,1);c[W>>2]=X;c[I>>2]=g;Ms(f,d[V>>0]|0,G,E,0);k=0}i=Y;return k|0}function Is(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))ba();f=g;do if(!(c[a+4>>2]&1024)){e=d[a>>0]|0;if((e|0)==158){e=Is(c[a+12>>2]|0,b)|0;break}else if((e|0)!=157){e=0;break}if(!(Is(c[a+12>>2]|0,f)|0))e=0;else{c[b>>2]=0-(c[f>>2]|0);e=1}}else{c[b>>2]=c[a+8>>2];e=1}while(0);i=g;return e|0}function Js(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))ba();z=A;y=d+8|0;v=c[y>>2]|0;w=c[d>>2]|0;if(((a[d+450>>0]|0)==0?(k=d+16|0,!((a[k>>0]|0)!=0|(v|0)==0)):0)?(a[w+65>>0]|0)==0:0){a[k>>0]=1;k=c[w+24>>2]|0;u=(k&32|0)==0;eq(v,c[f>>2]|0);h=c[f>>2]|0;if((h|0)>0){t=f+4|0;s=(e|0)==0;p=(k&96|0)==0;q=(e|0)!=0;r=0;do{o=c[t>>2]|0;h=c[o+(r*20|0)>>2]|0;do if(h){k=c[o+(r*20|0)+4>>2]|0;if(k){fq(v,r,0,k,-1);break}k=a[h>>0]|0;if(k<<24>>24==-102){if(s)x=25}else if(!(k<<24>>24==-100&q))x=25;if((x|0)==25){x=0;k=c[o+(r*20|0)+8>>2]|0;if(!k){c[z>>2]=r+1;k=qh(w,34880,z)|0}else k=gh(w,k)|0;fq(v,r,0,k,75);break}n=b[h+32>>1]|0;k=n<<16>>16;m=c[e>>2]|0;a:do if((m|0)>0){g=c[h+28>>2]|0;l=0;while(1){h=l+1|0;if((c[e+(l*72|0)+48>>2]|0)==(g|0)){h=l;break a}if((h|0)<(m|0))l=h;else break}}else h=0;while(0);h=c[e+(h*72|0)+24>>2]|0;if(n<<16>>16<0)k=b[h+36>>1]|0;if((k|0)<0)k=20456;else k=c[(c[h+4>>2]|0)+(k*24|0)>>2]|0;if(p){fq(v,r,0,gh(w,c[o+(r*20|0)+8>>2]|0)|0,75);break}if(u){fq(v,r,0,k,-1);break}else{c[z>>2]=c[h>>2];c[z+4>>2]=k;fq(v,r,0,qh(w,27824,z)|0,75);break}}while(0);r=r+1|0;h=c[f>>2]|0}while((r|0)<(h|0))}k=c[y>>2]|0;c[z+4>>2]=e;c[z>>2]=d;if((h|0)>0){g=f+4|0;h=0;do{fq(k,h,1,uu(z,c[(c[g>>2]|0)+(h*20|0)>>2]|0,0)|0,-1);h=h+1|0}while((h|0)<(c[f>>2]|0))}}i=A;return}function Ks(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();f=o;h=b+8|0;if((c[h>>2]|0)==0?(Ys(a),g=b+60|0,(c[g>>2]|0)!=0):0){l=a+72|0;m=(c[l>>2]|0)+1|0;c[l>>2]=m;c[h>>2]=m;n=Kq(a)|0;do if(Is(c[g>>2]|0,f)|0){f=c[f>>2]|0;sh(n,25,f,m,0)|0;if(!f){sh(n,16,0,d,0)|0;break}if((f|0)>-1?(e=b+24|0,d=e,h=c[d+4>>2]|0,k=((f|0)<0)<<31>>31,h>>>0>k>>>0|((h|0)==(k|0)?(c[d>>2]|0)>>>0>f>>>0:0)):0){d=e;c[d>>2]=f;c[d+4>>2]=k}}else{Nq(a,c[g>>2]|0,m);sh(n,38,m,0,0)|0;sh(n,46,m,d,0)|0}while(0);f=c[b+64>>2]|0;if(f){k=c[l>>2]|0;d=k+1|0;c[b+12>>2]=d;c[l>>2]=k+2;Nq(a,f,d);sh(n,38,d,0,0)|0;f=sh(n,137,d,0,0)|0;sh(n,25,0,d,0)|0;g=n+32|0;e=c[g>>2]|0;if(e>>>0>f>>>0)c[(c[n+4>>2]|0)+(f*20|0)+8>>2]=e;h=n+24|0;c[(c[h>>2]|0)+88>>2]=e+-1;e=k+2|0;sh(n,89,m,d,e)|0;f=sh(n,137,m,0,0)|0;sh(n,25,-1,e,0)|0;e=c[g>>2]|0;if(e>>>0>f>>>0)c[(c[n+4>>2]|0)+(f*20|0)+8>>2]=e;c[(c[h>>2]|0)+88>>2]=e+-1}}i=o;return}function Ls(b,f,g,h,i,j,k,l,m){b=b|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;F=c[b+8>>2]|0;A=a[k>>0]|0;u=A&255;w=k+4|0;D=c[w>>2]|0;if(!j)n=0;else n=d[j+1>>0]|0;if(!i)E=0;else E=(c[i>>2]|0)==0?0:i;z=(E|0)!=0;v=(n|0)!=0;if(!(z|v))et(F,c[f+12>>2]|0,l);B=c[g>>2]|0;q=k+8|0;i=c[q>>2]|0;if(i){p=b+72|0;o=c[p>>2]|0;if((i+B|0)>(o|0)){c[p>>2]=o+B;C=i;x=0}else{C=i;x=0}}else{if(z){o=((a[E+24>>0]&1^1)&255)+(c[c[E>>2]>>2]|0)|0;C=b+72|0;p=o+(c[C>>2]|0)|0;c[C>>2]=p}else{p=c[b+72>>2]|0;o=0}C=p+1|0;c[q>>2]=C;c[b+72>>2]=p+B;x=o}c[k+12>>2]=B;do if((h|0)>-1){if((B|0)>0){p=0;do{sh(F,47,h,p,p+C|0)|0;p=p+1|0}while((p|0)!=(B|0))}}else{if(A<<24>>24==3)break;else if(A<<24>>24==9)o=1;else o=A<<24>>24==13&1;Zs(b,g,C,o)}while(0);if(v){o=d[j+1>>0]|0;if((o|0)==2){o=b+72|0;h=c[o>>2]|0;t=h+1|0;c[o>>2]=h+B;o=j+8|0;vh(F,c[o>>2]|0);o=c[o>>2]|0;if((o|0)<0)o=(c[F+32>>2]|0)+-1|0;if(!(a[(c[F>>2]|0)+65>>0]|0))o=(c[F+4>>2]|0)+(o*20|0)|0;else o=29120;a[o>>0]=28;c[o+4>>2]=1;c[o+8>>2]=t;h=F+32|0;i=(c[h>>2]|0)+B|0;if((B|0)>0){p=g+4|0;o=B+-1|0;q=F+4|0;s=0;do{v=_t(b,c[(c[p>>2]|0)+(s*20|0)>>2]|0)|0;j=s+C|0;n=s+t|0;if((s|0)<(o|0))sh(F,78,j,i,n)|0;else sh(F,79,j,l,n)|0;th(F,-1,v,-4);r=c[q>>2]|0;if(r)a[r+(((c[h>>2]|0)+-1|0)*20|0)+3>>0]=-128;s=s+1|0}while((s|0)!=(B|0))}else o=B+-1|0;sh(F,33,C,t,o)|0}else if((o|0)==1)vh(F,c[j+8>>2]|0);else vu(b,c[j+4>>2]|0,l,B,C);if(!E)et(F,c[f+12>>2]|0,l)}a:do switch(u|0){case 12:case 14:case 6:case 5:{p=x+1|0;o=b+60|0;i=c[o>>2]|0;q=b+56|0;n=c[q>>2]|0;if((n|0)<(p|0)){y=b+72|0;i=c[y>>2]|0;c[y>>2]=i+p;i=i+1|0}else{c[o>>2]=i+p;c[q>>2]=n-p}n=i+x|0;sh(F,49,C,B,n)|0;if(A<<24>>24==6){C=D+1|0;th(F,sh(F,69,C,(c[F+32>>2]|0)+4|0,i)|0,0,-14);sh(F,110,C,i,0)|0}if(z)wu(b,E,f,n,1,x);else{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){C=b+72|0;j=(c[C>>2]|0)+1|0;c[C>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,74,D,j,0)|0;sh(F,75,D,i,j)|0;n=c[F+4>>2]|0;if(n)a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=8;Wr(b,j)}$s(b,i,p);if((c[q>>2]|0)<(p|0)){c[q>>2]=p;c[o>>2]=i;y=94}else y=94;break}case 1:{n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){A=b+72|0;j=(c[A>>2]|0)+1|0;c[A>>2]=j}else{j=j+-1<<24>>24;a[n>>0]=j;j=c[b+((j&255)<<2)+24>>2]|0}sh(F,49,C,B,j)|0;sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 2:{sh(F,111,D,C,B)|0;y=94;break}case 11:{i=k+1|0;a[i>>0]=xu(c[c[g+4>>2]>>2]|0,a[i>>0]|0)|0;if(z){wu(b,E,f,C,1,x);break a}j=b+19|0;n=a[j>>0]|0;if(!(n<<24>>24)){B=b+72|0;j=(c[B>>2]|0)+1|0;c[B>>2]=j}else{B=n+-1<<24>>24;a[j>>0]=B;j=c[b+((B&255)<<2)+24>>2]|0}th(F,sh(F,49,C,1,j)|0,i,1);$s(b,C,1);sh(F,110,D,j,0)|0;Wr(b,j);y=94;break}case 3:{sh(F,25,1,D,0)|0;y=94;break}case 10:{if(z)wu(b,E,f,C,1,x);else y=95;break}case 9:case 13:{if(z){wu(b,E,f,C,B,x);break a}if(A<<24>>24==13){sh(F,22,c[w>>2]|0,0,0)|0;y=95;break a}else{sh(F,35,C,B,0)|0;$s(b,C,B);y=94;break a}}case 7:case 8:{r=c[k+16>>2]|0;h=c[r>>2]|0;n=b+19|0;j=a[n>>0]|0;if(!(j<<24>>24)){z=b+72|0;s=(c[z>>2]|0)+1|0;c[z>>2]=s}else{s=j+-1<<24>>24;a[n>>0]=s;s=c[b+((s&255)<<2)+24>>2]|0}t=h+2|0;u=b+60|0;i=c[u>>2]|0;v=b+56|0;n=c[v>>2]|0;if((n|0)<(t|0)){z=b+72|0;i=c[z>>2]|0;c[z>>2]=i+t;i=i+1|0}else{c[u>>2]=i+t;c[v>>2]=n-t}q=i+h|0;o=q+1|0;if(A<<24>>24==8){n=D+1|0;j=sh(F,69,n,0,C)|0;th(F,j,B,-14);sh(F,49,C,B,o)|0;sh(F,110,n,o,0)|0;n=c[F+4>>2]|0;if(!n)p=j;else{a[n+(((c[F+32>>2]|0)+-1|0)*20|0)+3>>0]=16;p=j}}else{sh(F,49,C,B,o)|0;p=0}if((h|0)>0){o=r+4|0;n=C+-1|0;j=0;do{sh(F,34,n+(e[(c[o>>2]|0)+(j*20|0)+16>>1]|0)|0,j+i|0,0)|0;j=j+1|0}while((j|0)!=(h|0))}sh(F,73,D,q,0)|0;sh(F,49,i,t,s)|0;sh(F,110,D,s,0)|0;if(p){n=c[F+32>>2]|0;if(n>>>0>p>>>0)c[(c[F+4>>2]|0)+(p*20|0)+8>>2]=n;c[(c[F+24>>2]|0)+88>>2]=n+-1}Wr(b,s);$s(b,i,t);if((c[v>>2]|0)<(t|0)){c[v>>2]=t;c[u>>2]=i;y=94}else y=94;break}default:y=94}while(0);if((y|0)==94?(E|0)==0:0)y=95;if((y|0)==95?(G=c[f+8>>2]|0,(G|0)!=0):0)sh(F,140,G,m,0)|0;return}function Ms(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))ba();m=n;if((a[b+450>>0]|0)==2){k=c[b+8>>2]|0;l=c[b>>2]|0;h=(g|0)!=0?35160:10360;if((d|0)==117)g=35352;else if((d|0)==118)g=35336;else if((d|0)==116)g=35320;else g=35360;c[m>>2]=e;c[m+4>>2]=f;c[m+8>>2]=h;c[m+12>>2]=g;g=qh(l,35120,m)|0;th(k,sh(k,157,c[b+464>>2]|0,0,0)|0,g,-1)}i=n;return}function Ns(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=f+e|0;h=(g*5|0)+24|0;i=mg(h,0)|0;if(!i)a[d+65>>0]=1;else{bw(i|0,0,h|0)|0;c[i+16>>2]=i+20+(g<<2);b[i+6>>1]=e;b[i+8>>1]=f;a[i+4>>0]=a[d+62>>0]|0;c[i+12>>2]=d;c[i>>2]=1}return i|0}function Os(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[b+52>>2]|0;if(!((f|0)!=0?(e=Os(a,f,d)|0,(e|0)!=0):0)){e=c[b>>2]|0;if((c[e>>2]|0)>(d|0))e=_t(a,c[(c[e+4>>2]|0)+(d*20|0)>>2]|0)|0;else e=0}return e|0}function Ps(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=(b|0)==0;f=(d|0)==0;a:do if(!(g&f))if(!(g|f)?(h=c[b>>2]|0,(h|0)==(c[d>>2]|0)):0)if((h|0)>0){b=c[b+4>>2]|0;f=c[d+4>>2]|0;g=0;while(1){if((a[b+(g*20|0)+12>>0]|0)!=(a[f+(g*20|0)+12>>0]|0)){f=1;break a}if(yu(c[b+(g*20|0)>>2]|0,c[f+(g*20|0)>>2]|0,e)|0){f=1;break a}g=g+1|0;if((g|0)>=(h|0)){f=0;break}}}else f=0;else f=1;else f=0;while(0);return f|0}function Qs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[b>>2]|0;l=c[d>>2]|0;k=Ns(g,l-e|0,f+1|0)|0;if((k|0)!=0&(l|0)>(e|0)){h=g+8|0;i=k+16|0;j=e;f=(c[d+4>>2]|0)+(e*20|0)|0;while(1){g=_t(b,c[f>>2]|0)|0;if(!g)g=c[h>>2]|0;d=j-e|0;c[k+(d<<2)+20>>2]=g;a[(c[i>>2]|0)+d>>0]=a[f+12>>0]|0;j=j+1|0;if((j|0)==(l|0))break;else f=f+20|0}}return k|0}function Rs(f,g,h,k,l,m,n){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0;Ma=i;i=i+64|0;if((i|0)>=(j|0))ba();Ka=Ma;La=Ma+48|0;Ja=Ma+52|0;Y=Ma+28|0;Ha=f+8|0;ea=c[Ha>>2]|0;Ia=c[f>>2]|0;c[Y+0>>2]=0;c[Y+4>>2]=0;c[Y+8>>2]=0;c[Y+12>>2]=0;c[Y+16>>2]=0;if(!k)P=0;else P=(c[k>>2]|0)>63?0:k;Z=Y+8|0;c[Z>>2]=P;_=Ia+60|0;if(b[_>>1]&32)m=m&64511;k=c[g>>2]|0;a:do if((k|0)<=64){I=m&65535;L=(I&64|0)!=0;U=L?1:k;u=(U*80|0)+743&-16;o=u+72|0;k=ih(Ia,o,0)|0;Ga=(k|0)==0;if(!Ga)bw(k|0,0,o|0)|0;xa=Ia+65|0;if(a[xa>>0]|0){ig(Ia,k);k=0;break}ca=k+60|0;da=k+64|0;c[da>>2]=-1;c[ca>>2]=-1;ya=k+41|0;a[ya>>0]=U;c[k>>2]=f;za=k+4|0;c[za>>2]=g;$=k+8|0;c[$>>2]=P;c[k+12>>2]=l;Ba=ts(ea)|0;Aa=k+48|0;c[Aa>>2]=Ba;q=k+52|0;c[q>>2]=Ba;Ba=k+34|0;b[Ba>>1]=m;Ca=f+424|0;Da=k+56|0;c[Da>>2]=c[Ca>>2];Ea=k+68|0;c[Y>>2]=k;Fa=k+328|0;X=Y+4|0;c[X>>2]=Fa;S=Y+12|0;c[S>>2]=k+u;c[k+(u+48)>>2]=k+(u+56);b[k+(u+40)>>1]=0;b[k+(u+44)>>1]=3;c[k+(u+36)>>2]=0;c[Ea>>2]=0;c[Fa>>2]=k;c[k+332>>2]=0;va=k+340|0;c[va>>2]=0;c[k+344>>2]=8;wa=k+348|0;c[wa>>2]=k+352;zu(Fa,h,72);y=(U|0)==0;if((c[k+340>>2]|0)>0){x=Ka+20|0;w=Ka+4|0;o=Ka+24|0;h=Fa;p=0;do{if(!y){h=c[(c[h+20>>2]|0)+(p*48|0)>>2]|0;c[Ka+0>>2]=0;c[Ka+4>>2]=0;c[Ka+8>>2]=0;c[Ka+12>>2]=0;c[Ka+16>>2]=0;c[Ka+20>>2]=0;a[x>>0]=2;c[Ka>>2]=78;c[w>>2]=79;c[o>>2]=0;ns(Ka,h)|0;h=c[X>>2]|0;if(a[x>>0]|0)ua=15}else ua=15;if((ua|0)==15){ua=0;ct(f,c[(c[h+20>>2]|0)+(p*48|0)>>2]|0,c[q>>2]|0,16);h=c[X>>2]|0;aa=(c[h+20>>2]|0)+(p*48|0)+20|0;b[aa>>1]=e[aa>>1]|4}p=p+1|0}while((p|0)<(c[h+12>>2]|0))}if(y){if(P)a[k+36>>0]=c[P>>2];if(I&1024)a[k+40>>0]=1}if((c[g>>2]|0)>0){u=0;do{O=c[g+(u*72|0)+48>>2]|0;aa=c[Ea>>2]|0;c[Ea>>2]=aa+1;c[Ea+(aa<<2)+4>>2]=O;u=u+1|0}while((u|0)<(c[g>>2]|0))}r=c[va>>2]|0;if((r|0)>0)do{r=r+-1|0;Au(Fa,r)}while((r|0)>0);b:do if(!(a[xa>>0]|0)){aa=(I&1024|0)==0;c:do if(!aa){d:do if((c[g>>2]|0)==1){H=c[g+48>>2]|0;p=c[g+24>>2]|0;x=c[l>>2]|0;e:do if((x|0)>0){w=c[l+4>>2]|0;o=0;while(1){h=c[w+(o*20|0)>>2]|0;f:do if(!h)h=0;else while(1){y=c[h+4>>2]|0;if(!(y&4096))break f;if(!(y&262144))h=h+12|0;else h=c[(c[h+20>>2]|0)+4>>2]|0;h=c[h>>2]|0;if(!h){h=0;break}}while(0);do if((a[h>>0]|0)==-102){if((c[h+28>>2]|0)!=(H|0))break;if((b[h+32>>1]|0)<0)break e}while(0);o=o+1|0;if((o|0)>=(x|0)){ua=41;break}}}else ua=41;while(0);g:do if((ua|0)==41){h=c[p+8>>2]|0;if(!h)break d;q=l+4|0;p=p+4|0;while(1){if(a[h+50>>0]|0){D=h+46|0;h:do if(!(b[D>>1]|0))y=0;else{F=h+4|0;E=h+32|0;y=0;do{B=b[(c[F>>2]|0)+(y<<1)>>1]|0;if(!(Bu(Fa,H,B,-1,-1,2,h)|0)){o=c[(c[E>>2]|0)+(y<<2)>>2]|0;if((c[l>>2]|0)>0)x=0;else break h;i:while(1){z=c[(c[q>>2]|0)+(x*20|0)>>2]|0;j:do if(!z)w=0;else{w=z;while(1){A=c[w+4>>2]|0;if(!(A&4096))break j;if(!(A&262144))w=w+12|0;else w=c[(c[w+20>>2]|0)+4>>2]|0;w=c[w>>2]|0;if(!w){w=0;break}}}while(0);do if((a[w>>0]|0)==-102){if((b[w+32>>1]|0)!=(b[(c[F>>2]|0)+(y<<1)>>1]|0))break;if((c[w+28>>2]|0)!=(H|0))break;w=_t(f,z)|0;if(!w)break;if(!($c(c[w>>2]|0,o)|0))break i}while(0);x=x+1|0;if((x|0)>=(c[l>>2]|0))break h}if((x|0)<0)break h;if(!(a[(c[p>>2]|0)+(B*24|0)+20>>0]|0))break h}y=y+1|0}while((y|0)<(e[D>>1]|0))}while(0);if((y|0)==(e[D>>1]|0))break g}h=c[h+20>>2]|0;if(!h)break d}}while(0);a[k+40>>0]=1;break c}while(0);if(!P){b[Ba>>1]=e[Ba>>1]|512;c[$>>2]=l}}while(0);k:do if((((U|0)==1?(W=c[Y>>2]|0,V=W+34|0,(b[V>>1]&32)==0):0)?(R=c[W+4>>2]|0,N=c[R+24>>2]|0,(a[N+44>>0]&16)==0):0)?(c[R+72>>2]|0)==0:0){P=c[R+48>>2]|0;z=W+328|0;O=c[S>>2]|0;H=O+36|0;c[H>>2]=0;b[O+42>>1]=0;v=Bu(z,P,-1,0,0,2,0)|0;l:do if(!v){x=c[N+8>>2]|0;m:do if(x){A=O+48|0;n:while(1){do if(a[x+50>>0]|0){if(c[x+36>>2]|0)break;w=x+46|0;h=b[w>>1]|0;if((h&65535)>3)break;q=x+4|0;o:do if(!(h<<16>>16)){h=0;y=0}else{y=0;while(1){h=Bu(z,P,b[(c[q>>2]|0)+(y<<1)>>1]|0,0,0,2,x)|0;if(!h)break;c[(c[A>>2]|0)+(y<<2)>>2]=h;y=y+1|0;h=b[w>>1]|0;if((y|0)>=(h&65535|0))break o}h=b[w>>1]|0}while(0);if((y|0)==(h&65535|0)){A=y;break n}}while(0);x=c[x+20>>2]|0;if(!x)break m}c[H>>2]=4609;if(!(a[x+51>>0]&32)){p=R+64|0;o=c[p>>2]|0;p=c[p+4>>2]|0;w=0;v=0;h=e[x+48>>1]|0;p:while(1){y=h;while(1){h=y+-1|0;if((y|0)<=0)break p;y=b[(c[q>>2]|0)+(h<<1)>>1]|0;if((y&65535)<63)break;else y=h}Y=ew(1,0,y<<16>>16|0)|0;w=Y|w;v=C|v}if((o&~w|0)==0&(p&~v|0)==0)ua=91}else ua=91;if((ua|0)==91)c[H>>2]=4673;Y=A&65535;b[O+40>>1]=Y;b[O+24>>1]=Y;c[O+28>>2]=x;b[O+20>>1]=39;break l}while(0);if(!(c[H>>2]|0)){ua=103;break k}}else{c[H>>2]=4353;c[c[O+48>>2]>>2]=v;b[O+40>>1]=1;b[O+24>>1]=1;b[O+20>>1]=33}while(0);b[O+22>>1]=1;c[W+800>>2]=O;q=c[W+68>>2]|0;q:do if((q|0)>0){r=0;while(1){if((c[W+(r<<2)+72>>2]|0)==(P|0))break;r=r+1|0;if((r|0)>=(q|0)){r=0;q=0;break q}}r=ew(1,0,r|0)|0;q=C}else{r=0;q=0}while(0);p=O+8|0;c[p>>2]=r;c[p+4>>2]=q;c[W+740>>2]=P;b[W+32>>1]=1;p=c[W+8>>2]|0;if(p)a[W+36>>0]=c[p>>2];if(!(b[V>>1]&1024)){ua=120;break}a[W+40>>0]=1;ua=120}else ua=103;while(0);if((ua|0)==103){D=c[Y>>2]|0;h=c[D+4>>2]|0;E=c[c[D>>2]>>2]|0;W=a[D+41>>0]|0;F=W&255;w=c[S>>2]|0;c[w+48>>2]=w+56;b[w+40>>1]=0;b[w+44>>1]=3;c[w+36>>2]=0;o=E+65|0;r:do if(W<<24>>24){p=w+16|0;q=D+68|0;r=w+8|0;s=0;t=0;u=0;v=0;B=0;A=h+8|0;z=0;while(1){a[p>>0]=B;y=c[A+40>>2]|0;x=c[q>>2]|0;s:do if((x|0)>0){h=0;while(1){if((c[D+(h<<2)+72>>2]|0)==(y|0))break;h=h+1|0;if((h|0)>=(x|0)){h=0;y=0;break s}}h=ew(1,0,h|0)|0;y=C}else{h=0;y=0}while(0);W=r;c[W>>2]=h;c[W+4>>2]=y;W=z;z=a[A+36>>0]|0;W=((z|W)&10)==0;t=W?t:s;v=W?v:u;if(!(a[(c[A+16>>2]|0)+44>>0]&16))h=Du(Y,t,v)|0;else h=Cu(Y,t,v)|0;if(h)break;W=Eu(Y,t,v)|0;h=r;if(W)break;if(a[o>>0]|0)break r;B=B+1|0;if((B|0)>=(F|0))break r;else{s=c[h>>2]|s;u=c[h+4>>2]|u;A=A+72|0}}Fu(E,w);break b}while(0);Fu(E,w);Gu(k,0);if(a[xa>>0]|0)break;if(c[$>>2]|0){Gu(k,(e[k+32>>1]|0)+1&65535);if(!(a[xa>>0]|0))ua=120;else break}else ua=121}if((ua|0)==120?(c[$>>2]|0)==0:0)ua=121;if((ua|0)==121?(c[Ia+24>>2]&131072|0)!=0:0){$=k+24|0;c[$>>2]=-1;c[$+4>>2]=-1}if((c[f+64>>2]|0)==0?(a[xa>>0]|0)==0:0){u=a[ya>>0]|0;t:do if((u&255)>1&(l|0)!=0?(b[_>>1]&1024)==0:0){p=Hu(Ea,l)|0;q=C;o=c[Z>>2]|0;if(o){$=Hu(Ea,o)|0;p=$|p;q=C|q}y=k+736|0;h=c[za>>2]|0;x=c[X>>2]|0;w=x+20|0;x=x+12|0;v=u;o=U;do{r=c[y+(((v&255)+-1|0)*80|0)+64>>2]|0;if(!(a[h+((d[r+16>>0]|0)*72|0)+44>>0]&8))break t;if(aa?(c[r+36>>2]&4096|0)==0:0)break t;t=r+8|0;s=c[t>>2]|0;t=c[t+4>>2]|0;if(!((s&p|0)==0&(t&q|0)==0))break t;r=c[w>>2]|0;$=c[x>>2]|0;u=r+($*48|0)|0;if(($|0)>0)do{$=r+40|0;if(!((s&c[$>>2]|0)==0?(t&c[$+4>>2]|0)==0:0)?(c[(c[r>>2]|0)+4>>2]&1|0)==0:0)break t;r=r+48|0}while(r>>>0<u>>>0);v=v+-1<<24>>24;a[ya>>0]=v;o=o+-1|0}while((v&255)>1)}else o=U;while(0);aa=(c[k>>2]|0)+424|0;c[aa>>2]=(c[aa>>2]|0)+(b[k+32>>1]|0);do if((I&4|0)!=0?(T=(c[k+800>>2]|0)+36|0,Q=c[T>>2]|0,(Q&4096|0)!=0):0){a[k+38>>0]=1;if(a[(c[g+24>>2]|0)+44>>0]&32)break;c[T>>2]=Q&-65}while(0);ta=k+736|0;P=(o|0)>0;if(P){M=I&16;N=k+38|0;O=ea+32|0;J=L^1;L=(n|0)==0|J;K=f+68|0;H=54-(I>>>12&1)|0;G=ea+4|0;B=Ia+20|0;z=Ia+16|0;s=0;I=ta;while(1){A=d[I+44>>0]|0;D=g+(A*72|0)+24|0;q=c[D>>2]|0;h=c[q+68>>2]|0;u:do if(!h)w=-1e6;else{y=c[B>>2]|0;if((y|0)<=0){w=0;break}x=c[z>>2]|0;p=0;while(1){w=p+1|0;if((c[x+(p<<4)+12>>2]|0)==(h|0)){w=p;break u}if((w|0)<(y|0))p=w;else break}}while(0);F=c[I+64>>2]|0;E=q+44|0;h=d[E>>0]|0;do if(!(h&2)){if(c[q+12>>2]|0)break;y=c[F+36>>2]|0;if(y&1024){v=c[q+60>>2]|0;v:do if(!v)v=0;else while(1){if((c[v>>2]|0)==(Ia|0))break v;v=c[v+24>>2]|0;if(!v){v=0;break}}while(0);th(ea,sh(ea,149,c[g+(A*72|0)+48>>2]|0,0,0)|0,v,-10);break}if(h&16)break;if(y&64|M){cs(f,w,c[q+32>>2]|0,0,c[q>>2]|0);break}x=g+(A*72|0)+48|0;if(!(a[N>>0]|0))h=54;else{c[ca>>2]=c[x>>2];h=55}Mq(f,c[x>>2]|0,w,q,h);if(a[N>>0]|0)break;if((b[q+38>>1]|0)>=64)break;if(a[E>>0]&32)break;x=g+(A*72|0)+64|0;v=c[x>>2]|0;x=c[x+4>>2]|0;if((v|0)==0&(x|0)==0)u=0;else{u=0;do{v=iw(v|0,x|0,1)|0;x=C;u=u+1|0}while(!((v|0)==0&(x|0)==0))}th(ea,(c[O>>2]|0)+-1|0,u,-14)}while(0);y=F+36|0;w:do if(c[y>>2]&512){h=c[F+28>>2]|0;do if(a[E>>0]&32){if((a[h+51>>0]&3)!=2|J)break;c[I+8>>2]=c[I+4>>2];break w}while(0);do if(!(a[N>>0]|0)){if(!L){u=n;t=H;break}u=c[K>>2]|0;c[K>>2]=u+1;t=54}else{t=c[(c[D>>2]|0)+8>>2]|0;if((t|0)==0|(t|0)==(h|0))u=n;else{u=n;do{u=u+1|0;t=c[t+20>>2]|0}while(!((t|0)==0|(t|0)==(h|0)))}c[da>>2]=u;t=55}while(0);c[I+8>>2]=u;sh(ea,t,u,c[h+40>>2]|0,w)|0;aa=c[Ha>>2]|0;th(aa,-1,ds(f,h)|0,-6);aa=c[y>>2]|0;if(!((aa&15|0)!=0&(aa&32770|0)==0))break;if(b[Ba>>1]&1)break;r=c[G>>2]|0;if(!r)break;a[r+(((c[O>>2]|0)+-1|0)*20|0)+3>>0]=2}while(0);if((w|0)>-1)wr(f,w);s=s+1|0;if((s|0)==(o|0))break;else I=I+80|0}da=(a[xa>>0]|0)==0;c[k+44>>2]=c[O>>2];if(!da)break}else{O=ea+32|0;c[k+44>>2]=c[O>>2]}if(!P)break a;ha=k+24|0;ia=k+36|0;ja=k+39|0;ka=f+80|0;la=f+68|0;ma=f+100|0;na=f+19|0;oa=f+72|0;pa=Ka+20|0;qa=Ka+4|0;ra=Ka+24|0;q=-1;p=-1;sa=0;while(1){V=ta+(sa*80|0)|0;h=ta+(sa*80|0)+64|0;X=ta+(sa*80|0)+44|0;if(c[(c[h>>2]|0)+36>>2]&16384){H=d[X>>0]|0;R=g+(H*72|0)+8|0;W=c[Ha>>2]|0;v=Kq(f)|0;Y=c[ka>>2]|0;c[ka>>2]=Y+1;Y=sh(v,44,Y,0,0)|0;v=c[g+(H*72|0)+24>>2]|0;da=c[va>>2]|0;y=c[wa>>2]|0;Q=y+(da*48|0)|0;J=c[h>>2]|0;x:do if((da|0)>0){w=g+(H*72|0)+48|0;s=v+4|0;t=J+48|0;D=0;z=0;x=0;r=0;B=0;while(1){A=c[y>>2]|0;da=J;do if((c[da>>2]|0)==0&(c[da+4>>2]|0)==0){if(b[y+20>>1]&2)break;if(c[A+4>>2]&1)break;da=c[w>>2]|0;c[Ka+0>>2]=0;c[Ka+4>>2]=0;c[Ka+8>>2]=0;c[Ka+12>>2]=0;c[Ka+16>>2]=0;c[Ka+20>>2]=0;a[pa>>0]=3;c[Ka>>2]=78;c[qa>>2]=79;c[ra>>2]=da;ns(Ka,A)|0;if(!(a[pa>>0]|0))break;da=c[f>>2]|0;r=os(da,r,Ir(da,A,0,0)|0)|0}while(0);do if(!(Iu(y,R,q,p)|0)){F=D;A=z;h=x}else{A=c[y+12>>2]|0;if((A|0)>63){F=0;E=-2147483648}else{F=ew(1,0,A|0)|0;E=C}if(!(B<<24>>24)){B=c[(c[s>>2]|0)+(A*24|0)>>2]|0;c[Ka>>2]=c[v>>2];c[Ka+4>>2]=B;Zc(284,33960,Ka);B=1}if(!((F&D|0)==0&(E&z|0)==0)){F=D;A=z;h=x;break}h=x+1|0;if(Ju(c[f>>2]|0,J,h)|0)break x;c[(c[t>>2]|0)+(x<<2)>>2]=y;F=F|D;A=E|z}while(0);y=y+48|0;if(y>>>0>=Q>>>0){y=F;ua=207;break}else{D=F;z=A;x=h}}}else{A=0;y=0;h=0;r=0;ua=207}while(0);do if((ua|0)==207){ua=0;s=h&65535;b[J+40>>1]=s;b[J+24>>1]=s;s=J+36|0;c[s>>2]=16961;I=g+(H*72|0)+64|0;K=I;E=c[K+4>>2]|0;K=c[K>>2]&~y;M=E&((A|-2147483648)^2147483647);u=v+38|0;N=b[u>>1]|0;F=N<<16>>16;N=N<<16>>16>63?63:F;P=(N|0)>0;if(P){A=0;do{da=ew(1,0,A|0)|0;h=(((da&K|0)!=0|(C&M|0)!=0)&1)+h|0;A=A+1|0}while((A|0)!=(N|0))}if((E|0)<0)h=h+-63+F|0;L=h+1|0;G=qs(c[f>>2]|0,L&65535,0,La)|0;if(!G)break;c[J+28>>2]=G;c[G>>2]=33992;c[G+12>>2]=v;A=c[wa>>2]|0;if(A>>>0<Q>>>0){h=G+4|0;y=G+32|0;E=0;F=0;x=0;do{do if(Iu(A,R,q,p)|0){D=c[A+12>>2]|0;if((D|0)>63){B=0;z=-2147483648}else{B=ew(1,0,D|0)|0;z=C}if(!((B&E|0)==0&(z&F|0)==0))break;da=c[A>>2]|0;b[(c[h>>2]|0)+(x<<1)>>1]=D;D=Ku(f,c[da+12>>2]|0,c[da+16>>2]|0)|0;if(!D)D=11152;else D=c[D>>2]|0;c[(c[y>>2]|0)+(x<<2)>>2]=D;E=B|E;F=z|F;x=x+1|0}while(0);A=A+48|0}while(A>>>0<Q>>>0)}else x=0;if(P){A=G+4|0;z=G+32|0;h=0;do{da=ew(1,0,h|0)|0;if(!((da&K|0)==0&(C&M|0)==0)){b[(c[A>>2]|0)+(x<<1)>>1]=h;c[(c[z>>2]|0)+(x<<2)>>2]=11152;x=x+1|0}h=h+1|0}while((h|0)!=(N|0))}do if((c[I+4>>2]|0)<0){if((b[u>>1]|0)<=63)break;h=G+4|0;y=G+32|0;w=63;do{b[(c[h>>2]|0)+(x<<1)>>1]=w;c[(c[y>>2]|0)+(x<<2)>>2]=11152;x=x+1|0;w=w+1|0}while((w|0)<(b[u>>1]|0))}while(0);b[(c[G+4>>2]|0)+(x<<1)>>1]=-1;c[(c[G+32>>2]|0)+(x<<2)>>2]=11152;A=c[la>>2]|0;c[la>>2]=A+1;y=ta+(sa*80|0)+8|0;c[y>>2]=A;sh(W,56,A,L,0)|0;A=c[Ha>>2]|0;th(A,-1,ds(f,G)|0,-6);c[ma>>2]=(c[ma>>2]|0)+1;A=ta+(sa*80|0)+4|0;t=sh(W,108,c[A>>2]|0,0,0)|0;x=(r|0)!=0;if(x){w=ts(W)|0;ct(f,r,w,16);c[s>>2]=c[s>>2]|131072}else w=0;h=a[na>>0]|0;if(!(h<<24>>24)){s=(c[oa>>2]|0)+1|0;c[oa>>2]=s}else{s=h+-1<<24>>24;a[na>>0]=s;s=c[f+((s&255)<<2)+24>>2]|0}Lt(f,G,c[A>>2]|0,s,0,0,0,0)|0;sh(W,110,c[y>>2]|0,s,0)|0;z=W+4|0;h=c[z>>2]|0;if(h)a[h+(((c[W+32>>2]|0)+-1|0)*20|0)+3>>0]=16;if(x){y=c[W+24>>2]|0;x=~w;do if((w|0)<0){h=c[y+112>>2]|0;if(!h)break;c[h+(x<<2)>>2]=c[W+32>>2]}while(0);c[y+88>>2]=(c[W+32>>2]|0)+-1}sh(W,9,c[A>>2]|0,t+1|0,0)|0;h=c[z>>2]|0;y=c[W+32>>2]|0;if(h)a[h+((y+-1|0)*20|0)+3>>0]=3;if(y>>>0>t>>>0)c[h+(t*20|0)+8>>2]=y;h=W+24|0;c[(c[h>>2]|0)+88>>2]=y+-1;Wr(f,s);Zt(f);u=c[W+32>>2]|0;if(u>>>0>Y>>>0)c[(c[z>>2]|0)+(Y*20|0)+8>>2]=u;c[(c[h>>2]|0)+88>>2]=u+-1}while(0);Ck(c[f>>2]|0,r);if(a[xa>>0]|0)break b}Lu(f,g,V,sa,d[X>>0]|0,m);c[ta+(sa*80|0)+32>>2]=c[O>>2];ga=c[k>>2]|0;L=ga+8|0;ca=c[L>>2]|0;ea=c[ga>>2]|0;r=k+(sa*80|0)+736|0;K=c[k+(sa*80|0)+800>>2]|0;$=k+(sa*80|0)+780|0;H=d[$>>0]|0;F=c[za>>2]|0;N=F+(H*72|0)+8|0;n=c[F+(H*72|0)+48>>2]|0;y=c[Ea>>2]|0;y:do if((y|0)>0){h=0;while(1){if((c[Ea+(h<<2)+4>>2]|0)==(n|0))break;h=h+1|0;if((h|0)>=(y|0)){h=-1;y=-1;break y}}h=ew(1,0,h|0)|0;h=~h;y=~C}else{h=-1;y=-1}while(0);fa=k+(sa*80|0)+808|0;M=fa;c[M>>2]=h&q;c[M+4>>2]=y&p;M=ha;M=iw(c[M>>2]|0,c[M+4>>2]|0,sa|0)|0;_=M&1;T=K+36|0;if(!(c[T>>2]&64))v=0;else v=(b[Ba>>1]&32)==0;G=ts(ca)|0;P=k+(sa*80|0)+752|0;c[P>>2]=G;aa=k+(sa*80|0)+748|0;c[aa>>2]=G;da=ts(ca)|0;c[k+(sa*80|0)+760>>2]=da;do if(a[$>>0]|0){if(!(a[F+(H*72|0)+44>>0]&8))break;Z=ga+72|0;l=(c[Z>>2]|0)+1|0;c[Z>>2]=l;c[r>>2]=l;sh(ca,25,0,l,0)|0}while(0);A=a[F+(H*72|0)+45>>0]|0;z:do if(!(A&4)){D=c[T>>2]|0;if(D&1024){s=b[K+40>>1]|0;t=s&65535;v=ga+100|0;c[v>>2]=(c[v>>2]|0)+1;v=t+2|0;G=ga+60|0;h=c[G>>2]|0;H=ga+56|0;y=c[H>>2]|0;if((y|0)<(v|0)){$=ga+72|0;u=c[$>>2]|0;c[$>>2]=u+v;u=u+1|0}else{c[G>>2]=h+v;c[H>>2]=y-v;u=h}h=c[aa>>2]|0;B=s<<16>>16==0;if(!B){E=u+2|0;D=K+48|0;F=0;do{A=E+F|0;z=c[(c[D>>2]|0)+(F<<2)>>2]|0;do if(z)if(!(b[z+18>>1]&1)){Nq(ga,c[(c[z>>2]|0)+16>>2]|0,A);break}else{Mu(ga,z,r,F,_,A)|0;h=c[P>>2]|0;break}while(0);F=F+1|0}while((F|0)<(t|0))}sh(ca,25,c[K+24>>2]|0,u,0)|0;sh(ca,25,t,u+1|0,0)|0;_=c[K+32>>2]|0;aa=K+28|0;$=(a[aa>>0]|0)!=0?-11:-2;th(ca,sh(ca,14,n,h,u)|0,_,$);a[aa>>0]=0;if(!B){w=K+30|0;x=K+48|0;h=(s&65535)>1?0-t|0:-1;h=h>>>0>4294967280?0-h|0:16;y=0;do{if(e[w>>1]&1<<y)Nu(r,c[(c[x>>2]|0)+(y<<2)>>2]|0);y=y+1|0}while((y|0)!=(h|0))}a[k+(sa*80|0)+781>>0]=-105;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=c[ca+32>>2];$s(ga,u,v);if((c[H>>2]|0)<(v|0)){c[H>>2]=v;c[G>>2]=u}Zt(ga);ua=459;break}if(!((D&256|0)==0|(D&5|0)==0)){v=c[c[K+48>>2]>>2]|0;aa=ga+72|0;x=(c[aa>>2]|0)+1|0;c[aa>>2]=x;v=Mu(ga,v,r,0,_,x)|0;if((v|0)!=(x|0))Wr(ga,x);ua=c[P>>2]|0;sh(ca,38,v,ua,0)|0;sh(ca,70,n,ua,v)|0;$s(ga,v,1);Ou(ga,n,-1,v);a[k+(sa*80|0)+781>>0]=-100;ua=459;break}if((D&258|0)==258){if(!(D&32)){h=0;x=0}else{h=1;x=c[c[K+48>>2]>>2]|0}if(!(D&16))h=0;else h=c[(c[K+48>>2]|0)+(h<<2)>>2]|0;y=(_|0)!=0;w=y?x:h;h=y?h:x;if(!h)sh(ca,y?105:108,n,G,0)|0;else{$=c[h>>2]|0;aa=Xt(ga,c[$+16>>2]|0,Ka)|0;sh(ca,d[33536+((d[$>>0]|0)+-80)>>0]|0,n,G,aa)|0;$s(ga,aa,1);Wr(ga,c[Ka>>2]|0);Nu(r,h)}if(!w){h=0;y=156}else{aa=c[w>>2]|0;$=ga+72|0;h=(c[$>>2]|0)+1|0;c[$>>2]=h;Nq(ga,c[aa+16>>2]|0,h);aa=a[aa>>0]|0;if(aa<<24>>24==80|aa<<24>>24==82)y=_<<1^83;else y=_<<1|80;Nu(r,w)}x=ca+32|0;aa=c[x>>2]|0;a[k+(sa*80|0)+781>>0]=_^9;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=aa;if((y|0)==156){ua=459;break}aa=ga+72|0;u=(c[aa>>2]|0)+1|0;c[aa>>2]=u;sh(ca,103,n,u,0)|0;Ou(ga,n,-1,u);sh(ca,y,h,G,u)|0;u=c[ca+4>>2]|0;if(!u){ua=459;break}a[u+(((c[x>>2]|0)+-1|0)*20|0)+3>>0]=83;ua=459;break}if(D&512){L=b[K+24>>1]|0;a[Ja>>0]=0;S=c[K+28>>2]|0;U=c[k+(sa*80|0)+744>>2]|0;do if(!(b[Ba>>1]&1)){E=0;A=0}else{if((a[ia>>0]|0)<=0){E=0;A=0;break}A=(e[S+46>>1]|0)>(L&65535);E=A&1;A=A&1}while(0);h=L&65535;if(!(D&32)){F=h;H=0}else{F=h+1|0;A=1;H=c[(c[K+48>>2]|0)+(h<<2)>>2]|0}do if(!(D&16))z=0;else{z=c[(c[K+48>>2]|0)+(F<<2)>>2]|0;if(b[z+20>>1]&256){$=ga+72|0;aa=(c[$>>2]|0)+1|0;c[$>>2]=aa;c[k+(sa*80|0)+772>>2]=aa;sh(ca,25,(a[(c[S+28>>2]|0)+h>>0]|0)==1^_,aa,0)|0;c[k+(sa*80|0)+776>>2]=c[ca+32>>2]}if(H){A=1;break}A=b[(c[S+4>>2]|0)+(h<<1)>>1]|0;if(A<<16>>16<=-1){A=1;break}E=(a[(c[(c[S+12>>2]|0)+4>>2]|0)+((A<<16>>16)*24|0)+20>>0]|0)==0?1:E;A=1}while(0);J=Pu(ga,r,_,A,La)|0;I=c[La>>2]|0;G=(I|0)==0;if(!G)a[Ja>>0]=a[I+h>>0]|0;K=c[P>>2]|0;B=b[S+46>>1]|0;if((L&65535)<(B&65535)?!((a[(c[S+28>>2]|0)+h>>0]|0)==0^((M&1|0)!=0|0!=0)):0)ua=318;else if((_|0)!=0?B<<16>>16==L<<16>>16:0)ua=318;else{N=E;E=0;M=z;P=H}if((ua|0)==318){N=0;M=H;P=z}z=(P|0)!=0;if(z)B=(b[P+18>>1]&40)!=0;else B=1;D=B&1;H=(M|0)!=0;if(H)F=(b[M+18>>1]&40)!=0;else F=1;A=F&1;F=(z|L<<16>>16!=0)&1;do if(z){y=c[(c[P>>2]|0)+16>>2]|0;z=J+h|0;Nq(ga,y,z);if(b[P+20>>1]&256){if(!(a[(c[ca>>2]|0)+65>>0]|0))B=(c[ca+4>>2]|0)+(((c[ca+32>>2]|0)+-1|0)*20|0)|0;else B=29120;c[B+12>>2]=c[k+(sa*80|0)+772>>2];a[B+3>>0]=1}if(Qu(y)|0)sh(ca,76,z,K,0)|0;do if(!G){B=I+h|0;if((xu(y,a[B>>0]|0)|0)<<24>>24==65){a[B>>0]=65;z=65}else z=a[B>>0]|0;if(!(Ru(y,z)|0))break;a[B>>0]=65}while(0);B=h+1|0}else{if(!(N<<24>>24)){B=h;break}sh(ca,28,0,J+h|0,0)|0;B=h+1|0;D=0;F=1}while(0);Su(ga,J,B-(N&255)|0,I);th(ca,sh(ca,d[33544+(F<<2|_|D<<1)>>0]|0,U,K,J)|0,B,-14);do if(H){y=c[(c[M>>2]|0)+16>>2]|0;x=J+h|0;$s(ga,x,1);Nq(ga,y,x);if(b[M+20>>1]&256){if(!(a[(c[ca>>2]|0)+65>>0]|0))z=(c[ca+4>>2]|0)+(((c[ca+32>>2]|0)+-1|0)*20|0)|0;else z=29120;c[z+12>>2]=c[k+(sa*80|0)+772>>2];a[z+3>>0]=1}if(Qu(y)|0)sh(ca,76,x,K,0)|0;do if((xu(y,a[Ja>>0]|0)|0)<<24>>24!=65){if(Ru(y,a[Ja>>0]|0)|0)break;Su(ga,x,1,Ja)}while(0);h=h+1|0}else{if(!(E<<24>>24))break;sh(ca,28,0,J+h|0,0)|0;A=0;h=h+1|0}while(0);ig(ea,I);c[k+(sa*80|0)+788>>2]=c[ca+32>>2];if(h)th(ca,sh(ca,d[33552+(A|_<<1)>>0]|0,U,K,J)|0,h,-14);Nu(r,P);Nu(r,M);do if(!v){h=c[S+12>>2]|0;if(!(a[h+44>>0]&32)){$=ga+72|0;aa=(c[$>>2]|0)+1|0;c[$>>2]=aa;sh(ca,112,U,aa,0)|0;Ou(ga,n,-1,aa);sh(ca,66,n,aa,0)|0;break}if((n|0)==(U|0))break;h=c[h+8>>2]|0;A:do if(!h)A=0;else while(1){if((a[h+51>>0]&3)==2){A=h;break A}h=c[h+20>>2]|0;if(!h){A=0;break}}while(0);F=A+46|0;t=b[F>>1]|0;h=t&65535;y=ga+60|0;x=c[y>>2]|0;w=ga+56|0;s=c[w>>2]|0;if((s|0)<(h|0)){aa=ga+72|0;x=c[aa>>2]|0;c[aa>>2]=x+h;x=x+1|0}else{c[y>>2]=x+h;c[w>>2]=s-h}if(t<<16>>16){s=A+4|0;t=S+48|0;w=S+4|0;B=0;do{A=b[(c[s>>2]|0)+(B<<1)>>1]|0;h=b[t>>1]|0;B:do if(!(h<<16>>16))h=-1;else{z=c[w>>2]|0;y=h&65535;h=0;while(1){if((b[z+(h<<1)>>1]|0)==A<<16>>16)break B;h=h+1|0;if((h|0)>=(y|0)){h=-1;break}}}while(0);sh(ca,47,U,h<<16>>16,B+x|0)|0;B=B+1|0;h=e[F>>1]|0}while((B|0)<(h|0))}th(ca,sh(ca,68,n,da,x)|0,h,-14)}while(0);x=c[T>>2]|0;do if(!(x&4096)){w=k+(sa*80|0)+781|0;if(!_){a[w>>0]=9;break}else{a[w>>0]=8;break}}else a[k+(sa*80|0)+781>>0]=-100;while(0);c[k+(sa*80|0)+784>>2]=U;a[k+(sa*80|0)+782>>0]=x>>>16&1;if(x&15){ua=459;break}a[k+(sa*80|0)+783>>0]=1;ua=459;break}if(!(D&8192))if(!(A&8)){a[k+(sa*80|0)+781>>0]=a[33560+_>>0]|0;c[k+(sa*80|0)+784>>2]=n;c[k+(sa*80|0)+788>>2]=(sh(ca,d[33568+_>>0]|0,n,G,0)|0)+1;a[k+(sa*80|0)+783>>0]=1;ua=459;break}else{a[k+(sa*80|0)+781>>0]=-100;ua=459;break}G=ga+68|0;Z=c[G>>2]|0;c[G>>2]=Z+1;X=ga+72|0;Y=(c[X>>2]|0)+1|0;c[X>>2]=Y;_=ts(ca)|0;W=c[F+(H*72|0)+24>>2]|0;l=c[c[K+48>>2]>>2]|0;P=c[l+12>>2]|0;a[k+(sa*80|0)+781>>0]=18;c[k+(sa*80|0)+784>>2]=Y;A=a[ya>>0]|0;do if((A&255)>1){F=(A&255)-sa|0;D=F+-1|0;B=ih(ea,(D*72|0)+80|0,0)|0;if(!B)break z;A=F&255;c[B+4>>2]=A;c[B>>2]=A;A=B+8|0;H=A+0|0;z=N+0|0;h=H+72|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));E=c[za>>2]|0;if((F|0)<2){V=B;break}else F=1;while(1){H=A+(F*72|0)+0|0;z=E+((d[k+((F+sa|0)*80|0)+780>>0]|0)*72|0)+8|0;h=H+72|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));if((F|0)<(D|0))F=F+1|0;else{V=B;break}}}else V=c[za>>2]|0;while(0);if(!(b[Ba>>1]&8)){if(!(a[W+44>>0]&32)){A=(c[X>>2]|0)+1|0;c[X>>2]=A;sh(ca,28,0,A,0)|0}else{A=c[W+8>>2]|0;C:do if(!A)A=0;else while(1){if((a[A+51>>0]&3)==2)break C;A=c[A+20>>2]|0;if(!A){A=0;break}}while(0);U=c[G>>2]|0;c[G>>2]=U+1;sh(ca,57,U,e[A+46>>1]|0,0)|0;T=c[L>>2]|0;th(T,-1,ds(ga,A)|0,-6);A=U}T=(c[X>>2]|0)+1|0;c[X>>2]=T}else{T=0;A=0}U=sh(ca,25,0,Y,0)|0;z=c[va>>2]|0;do if((z|0)>1){B=0;F=0;do{E=c[wa>>2]|0;S=E+(B*48|0)|0;D=c[S>>2]|0;do if((S|0)!=(l|0)){if(c[D+4>>2]&1)break;if(b[E+(B*48|0)+20>>1]&2)break;if(!(b[E+(B*48|0)+18>>1]&4095))break;F=os(ea,F,Ir(ea,D,0,0)|0)|0;z=c[va>>2]|0}while(0);B=B+1|0}while((B|0)<(z|0));z=F;if(!z){S=0;break}S=Vq(ga,72,0,z,0)|0}else S=0;while(0);R=P+12|0;do if((c[R>>2]|0)>0){u=P+20|0;t=(S|0)==0;s=W+44|0;w=ca+32|0;x=ca+4|0;z=ca+24|0;B=W+8|0;D=ga+60|0;E=ga+56|0;F=S+12|0;Q=0;y=0;h=0;v=240;while(1){H=c[u>>2]|0;if((c[H+(Q*48|0)+8>>2]|0)!=(n|0)?(b[H+(Q*48|0)+18>>1]&512)==0:0)H=v;else ua=407;do if((ua|0)==407){ua=0;H=c[H+(Q*48|0)>>2]|0;do if(!t){if(c[H+4>>2]&1)break;c[F>>2]=H;H=S}while(0);I=Rs(ga,V,H,0,0,v,Z)|0;if(!I){H=v;break}Lu(ga,V,I+736|0,sa,d[$>>0]|0,0);do if(!(b[Ba>>1]&8)){L=(Q|0)==((c[R>>2]|0)+-1|0)?-1:Q;do if(!(a[s>>0]&32)){G=sh(ca,130,A,0,_s(ga,W,-1,n,T,0)|0)|0;th(ca,G,L,-14)}else{H=c[B>>2]|0;D:do if(!H)H=0;else while(1){if((a[H+51>>0]&3)==2)break D;H=c[H+20>>2]|0;if(!H){H=0;break}}while(0);M=b[H+46>>1]|0;J=M&65535;P=c[D>>2]|0;N=c[E>>2]|0;if((N|0)<(J|0)){K=c[X>>2]|0;c[X>>2]=K+J;K=K+1|0}else{c[D>>2]=P+J;c[E>>2]=N-J;K=P}if(M<<16>>16){N=H+4|0;P=0;do{_s(ga,W,b[(c[N>>2]|0)+(P<<1)>>1]|0,n,P+K|0,0)|0;P=P+1|0}while((P|0)<(J|0))}P=(L|0)!=0;if(P){G=sh(ca,69,A,0,K)|0;th(ca,G,J,-14);if((L|0)>-1)ua=426}else{G=0;ua=426}do if((ua|0)==426){ua=0;sh(ca,49,K,J,T)|0;sh(ca,110,A,T,0)|0;if(!P)break;L=c[x>>2]|0;if(!L)break;a[L+(((c[w>>2]|0)+-1|0)*20|0)+3>>0]=16}while(0);$s(ga,K,J);if((c[E>>2]|0)>=(J|0))break;c[E>>2]=J;c[D>>2]=K}while(0);sh(ca,17,Y,_,0)|0;if(!G)break;H=c[w>>2]|0;if(H>>>0>G>>>0)c[(c[x>>2]|0)+(G*20|0)+8>>2]=H;c[(c[z>>2]|0)+88>>2]=H+-1}else sh(ca,17,Y,_,0)|0;while(0);h=(a[I+39>>0]|0)==0?h:1;H=c[I+800>>2]|0;do if(!(c[H+36>>2]&512)){y=0;H=v}else{if((Q|0)!=0?(c[H+28>>2]|0)!=(y|0):0){y=0;H=v;break}y=c[H+28>>2]|0;if((a[s>>0]&32)!=0?(a[y+51>>0]&3)==2:0){y=0;H=v;break}H=(v&65535|4096)&65535}while(0);Ts(I)}while(0);Q=Q+1|0;if((Q|0)>=(c[R>>2]|0))break;else v=H}c[k+(sa*80|0)+792>>2]=y;if(!y){s=h;break}c[k+(sa*80|0)+744>>2]=Z;s=h}else{c[k+(sa*80|0)+792>>2]=0;s=0}while(0);if(S){c[S+12>>2]=0;Ck(ea,S)}w=ca+32|0;h=c[w>>2]|0;if(h>>>0>U>>>0)c[(c[ca+4>>2]|0)+(U*20|0)+4>>2]=h;sh(ca,16,0,c[aa>>2]|0,0)|0;y=c[ca+24>>2]|0;x=~_;do if((_|0)<0){h=c[y+112>>2]|0;if(!h)break;c[h+(x<<2)>>2]=c[w>>2]}while(0);c[y+88>>2]=(c[w>>2]|0)+-1;if((d[ya>>0]|0)>1)ig(ea,V);if(s){ua=459;break}Nu(r,l);ua=459}else{ua=c[F+(H*72|0)+36>>2]|0;sh(ca,20,ua,0,c[F+(H*72|0)+32>>2]|0)|0;c[k+(sa*80|0)+788>>2]=sh(ca,22,ua,G,0)|0;a[k+(sa*80|0)+781>>0]=16;ua=459}while(0);if((ua|0)==459){ua=0;h=c[va>>2]|0;do if((h|0)>0){u=k+(sa*80|0)+772|0;v=ca+32|0;z=ca+4|0;A=ca+24|0;t=c[wa>>2]|0;while(1){s=t+20|0;y=b[s>>1]|0;do if(!(y&6)){aa=t+40|0;$=fa;if(!((c[$>>2]&c[aa>>2]|0)==0?(c[$+4>>2]&c[aa+4>>2]|0)==0:0)){a[ja>>0]=1;break}x=c[t>>2]|0;if((c[r>>2]|0)!=0?(c[x+4>>2]&1|0)==0:0)break;do if(!(y&512))ct(ga,x,da,16);else{w=sh(ca,46,c[u>>2]|0,0,0)|0;ct(ga,x,da,16);if(!w)break;y=c[v>>2]|0;if(y>>>0>w>>>0)c[(c[z>>2]|0)+(w*20|0)+8>>2]=y;c[(c[A>>2]|0)+88>>2]=y+-1}while(0);b[s>>1]=e[s>>1]|4}while(0);h=h+-1|0;if((h|0)<=0)break;else t=t+48|0}u=c[va>>2]|0;if((u|0)<=0){ua=475;break}w=c[wa>>2]|0;while(1){do if(!(b[w+20>>1]&6)){if((b[w+18>>1]|0)!=1026)break;if((c[w+8>>2]|0)!=(n|0))break;if(c[r>>2]|0)break;y=c[w>>2]|0;h=Bu(Fa,n,c[w+12>>2]|0,q,p,3,0)|0;if(!h)break;if(b[h+20>>1]&4)break;x=ih(ea,48,0)|0;if(!x)break;H=x+0|0;z=(c[h>>2]|0)+0|0;h=H+48|0;do{c[H>>2]=c[z>>2];H=H+4|0;z=z+4|0}while((H|0)<(h|0));c[x+12>>2]=c[y+12>>2];ct(ga,x,da,16);ig(ea,x)}while(0);u=u+-1|0;if((u|0)<=0)break;else w=w+48|0}}else ua=475;while(0);if((ua|0)==475)ua=0;r=c[r>>2]|0;do if(r){c[k+(sa*80|0)+764>>2]=c[ca+32>>2];sh(ca,25,1,r,0)|0;Ys(ga);r=c[va>>2]|0;if((r|0)<=0)break;u=0;t=c[wa>>2]|0;while(1){q=t+20|0;do if(!(b[q>>1]&6)){ca=t+40|0;aa=fa;if(!((c[aa>>2]&c[ca>>2]|0)==0?(c[aa+4>>2]&c[ca+4>>2]|0)==0:0))break;ct(ga,c[t>>2]|0,da,16);b[q>>1]=e[q>>1]|4;r=c[va>>2]|0}while(0);u=u+1|0;if((u|0)>=(r|0))break;else t=t+48|0}}while(0);p=fa;q=c[p>>2]|0;p=c[p+4>>2]|0}c[Aa>>2]=c[ta+(sa*80|0)+24>>2];sa=sa+1|0;if((sa|0)>=(o|0))break a}}}while(0);if(Ga)k=0;else{c[Ca>>2]=c[Da>>2];Tu(Ia,k);k=0}}else{c[Ka>>2]=64;ph(f,33504,Ka);k=0}while(0);i=Ma;return k|0}function Ss(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=fw(a|0,b|0,-2,-1)|0;d=C}else{c=((a|0)!=0)<<31>>31;c=fw(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=C}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=fw(c|0,d|0,8,0)|0;a=iw(b|0,C|0,3-a|0)|0;b=C;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=fw(c|0,d|0,8,0)|0;a=ew(b|0,C|0,a+-3|0)|0;b=C}}else{b=0;a=1}while(0);C=b;return a|0}function Ts(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;C=c[e>>2]|0;D=c[C+8>>2]|0;F=c[e+4>>2]|0;G=c[C>>2]|0;Ys(C);H=e+41|0;g=a[H>>0]|0;if(!(g<<24>>24))f=D+24|0;else{f=D+24|0;p=D+32|0;r=D+4|0;o=g&255;do{o=o+-1|0;i=c[e+(o*80|0)+800>>2]|0;A=c[e+(o*80|0)+760>>2]|0;g=c[f>>2]|0;h=~A;if((A|0)<0?(s=c[g+112>>2]|0,(s|0)!=0):0)c[s+(h<<2)>>2]=c[p>>2];c[g+88>>2]=(c[p>>2]|0)+-1;B=e+(o*80|0)+781|0;h=a[B>>0]|0;if(h<<24>>24!=-100?(sh(D,h&255,c[e+(o*80|0)+784>>2]|0,c[e+(o*80|0)+788>>2]|0,d[e+(o*80|0)+782>>0]|0)|0,u=c[r>>2]|0,(u|0)!=0):0)a[u+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=a[e+(o*80|0)+783>>0]|0;t=i+36|0;if((c[t>>2]&2048|0)!=0?(v=e+(o*80|0)+792|0,w=c[v>>2]|0,(w|0)>0):0){A=c[e+(o*80|0)+752>>2]|0;k=c[f>>2]|0;h=~A;if((A|0)<0?(x=c[k+112>>2]|0,(x|0)!=0):0){c[x+(h<<2)>>2]=c[p>>2];l=c[v>>2]|0;j=c[p>>2]|0;c[k+88>>2]=j+-1;g=e+(o*80|0)+796|0;if((l|0)>0)I=16}else{j=c[p>>2]|0;c[k+88>>2]=j+-1;g=e+(o*80|0)+796|0;l=w;I=16}if((I|0)==16){I=0;h=k;n=l;m=(c[g>>2]|0)+((l+-1|0)*12|0)|0;while(1){l=m+4|0;k=c[l>>2]|0;i=k+1|0;if(j>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=j;c[h+88>>2]=j+-1;sh(D,d[m+8>>0]|0,c[m>>2]|0,k,0)|0;l=(c[l>>2]|0)+-1|0;j=c[p>>2]|0;if(j>>>0>l>>>0)c[(c[r>>2]|0)+(l*20|0)+8>>2]=j;h=c[f>>2]|0;c[h+88>>2]=j+-1;n=n+-1|0;if((n|0)<=0)break;else m=m+-12|0}}ig(G,c[g>>2]|0)}A=c[e+(o*80|0)+748>>2]|0;i=c[f>>2]|0;h=~A;if((A|0)<0?(q=c[i+112>>2]|0,(q|0)!=0):0)c[q+(h<<2)>>2]=c[p>>2];h=c[p>>2]|0;c[i+88>>2]=h+-1;i=e+(o*80|0)+756|0;g=c[i>>2]|0;if(g){sh(D,16,0,g,0)|0;i=c[i>>2]|0;h=c[p>>2]|0;if(h>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=h;j=h+-1|0;g=(c[f>>2]|0)+88|0;c[g>>2]=j;i=i+-2|0;if(h>>>0>i>>>0)c[(c[r>>2]|0)+(i*20|0)+8>>2]=h;c[g>>2]=j}i=c[e+(o*80|0)+776>>2]|0;if(i){if(!(a[(c[D>>2]|0)+65>>0]|0))h=(c[r>>2]|0)+((((i|0)<1?h:i)+-1|0)*20|0)|0;else h=29120;sh(D,(c[h+4>>2]|0)==0?141:140,c[e+(o*80|0)+772>>2]|0,i,0)|0}g=c[e+(o*80|0)+736>>2]|0;if(g){j=sh(D,137,g,0,0)|0;g=c[t>>2]|0;if(!(g&64)){sh(D,104,c[F+(o*72|0)+48>>2]|0,0,0)|0;g=c[t>>2]|0}if(g&512)sh(D,104,c[e+(o*80|0)+744>>2]|0,0,0)|0;g=c[e+(o*80|0)+764>>2]|0;if((a[B>>0]|0)==18)sh(D,17,c[e+(o*80|0)+784>>2]|0,g,0)|0;else sh(D,16,0,g,0)|0;g=c[p>>2]|0;if(g>>>0>j>>>0)c[(c[r>>2]|0)+(j*20|0)+8>>2]=g;c[(c[f>>2]|0)+88>>2]=g+-1}}while((o|0)>0)}A=c[e+52>>2]|0;g=c[f>>2]|0;f=~A;if((A|0)<0?(y=c[g+112>>2]|0,(y|0)!=0):0)c[y+(f<<2)>>2]=c[D+32>>2];B=D+32|0;c[g+88>>2]=(c[B>>2]|0)+-1;if(a[H>>0]|0){u=e+34|0;v=e+38|0;w=e+64|0;x=G+65|0;y=D+4|0;z=0;A=e+736|0;while(1){i=d[A+44>>0]|0;j=c[F+(i*72|0)+24>>2]|0;h=c[A+64>>2]|0;if((a[F+(i*72|0)+45>>0]&4)!=0?(a[x>>0]|0)==0:0){k=c[B>>2]|0;h=c[A+32>>2]|0;if(!(a[(c[D>>2]|0)+65>>0]|0))g=(c[y>>2]|0)+(((h|0)<0?k+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(k|0)){l=c[A+4>>2]|0;j=F+(i*72|0)+40|0;i=g;while(1){g=i+4|0;do if((c[g>>2]|0)==(l|0)){f=a[i>>0]|0;if(f<<24>>24==47){a[i>>0]=33;s=i+8|0;c[g>>2]=(c[j>>2]|0)+(c[s>>2]|0);t=i+12|0;c[s>>2]=c[t>>2];c[t>>2]=0;break}else if(f<<24>>24==103){a[i>>0]=28;c[g>>2]=0;c[i+12>>2]=0;break}else break}while(0);h=h+1|0;if((h|0)==(k|0))break;else i=i+20|0}}}else I=64;do if((I|0)==64){I=0;t=j+44|0;if(((a[t>>0]&2)==0?(c[j+12>>2]|0)==0:0)?(b[u>>1]&16)==0:0){g=c[h+36>>2]|0;if((a[v>>0]|0)==0&(g&64|0)==0)sh(D,61,c[F+(i*72|0)+48>>2]|0,0,0)|0;if((g&17152|0)==512?(E=c[A+8>>2]|0,(E|0)!=(c[w>>2]|0)):0)sh(D,61,E,0,0)|0}g=c[h+36>>2]|0;if(!(g&576)){if(!(g&8192))break;g=A+56|0}else g=h+28|0;h=c[g>>2]|0;if((h|0)!=0?(a[x>>0]|0)==0:0){r=c[B>>2]|0;l=c[A+32>>2]|0;if(!(a[(c[D>>2]|0)+65>>0]|0))k=(c[y>>2]|0)+(((l|0)<0?r+-1|0:l)*20|0)|0;else k=29120;if((l|0)<(r|0)){s=h+48|0;p=h+4|0;q=A+8|0;o=j+8|0;f=c[A+4>>2]|0;g=k;while(1){h=g+4|0;a:do if((c[h>>2]|0)==(f|0)){k=a[g>>0]|0;if(k<<24>>24==103){c[h>>2]=c[q>>2];a[g>>0]=112;break}else if(k<<24>>24!=47)break;i=g+8|0;k=c[i>>2]|0;if(a[t>>0]&32){j=o;while(1){j=c[j>>2]|0;if((a[j+51>>0]&3)==2)break;else j=j+20|0}k=b[(c[j+4>>2]|0)+(k<<1)>>1]|0}n=k&65535;k=b[s>>1]|0;if(k<<16>>16){j=c[p>>2]|0;m=k&65535;k=0;while(1){if((b[j+(k<<1)>>1]|0)==n<<16>>16)break;k=k+1|0;if((k|0)>=(m|0))break a}if((k&65535)<<16>>16>-1){c[i>>2]=k<<16>>16;c[h>>2]=c[q>>2]}}}while(0);l=l+1|0;if((l|0)==(r|0))break;else g=g+20|0}}}}while(0);z=z+1|0;if((z|0)>=(d[H>>0]|0))break;else A=A+80|0}}c[C+424>>2]=c[e+56>>2];Tu(G,e);return}function Us(a,b){a=a|0;b=b|0;var d=0,e=0;if((b|0)!=0?(c[b>>2]|0)>0:0){d=0;e=c[b+4>>2]|0;while(1){Uu(a,c[e>>2]|0);d=d+1|0;if((d|0)>=(c[b>>2]|0))break;else e=e+20|0}}return}function Vs(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))ba();r=u;h=c[e+24>>2]|0;s=c[h>>2]|0;m=c[h+4>>2]|0;t=c[h+12>>2]|0;g=d[f>>0]|0;a:do if((g|0)==154|(g|0)==156)if((m|0)!=0?(l=c[m>>2]|0,(l|0)>0):0){p=f+28|0;o=c[p>>2]|0;g=0;h=m+8|0;while(1){if((o|0)==(c[h+40>>2]|0))break;g=g+1|0;if((g|0)>=(l|0)){e=1;break a}else h=h+72|0}n=t+28|0;k=t+32|0;h=c[k>>2]|0;b:do if((h|0)>0){m=f+32|0;e=0;l=c[n>>2]|0;while(1){if((c[l+4>>2]|0)==(o|0)?(c[l+8>>2]|0)==(b[m>>1]|0):0)break b;e=e+1|0;if((e|0)<(h|0))l=l+24|0;else break}}else e=0;while(0);c:do if((e|0)>=(h|0)){h=Dt(c[s>>2]|0,c[n>>2]|0,24,k,r)|0;c[n>>2]=h;e=c[r>>2]|0;if((e|0)>-1){c[h+(e*24|0)>>2]=c[f+44>>2];k=c[p>>2]|0;c[h+(e*24|0)+4>>2]=k;l=b[f+32>>1]|0;c[h+(e*24|0)+8>>2]=l<<16>>16;p=s+72|0;m=(c[p>>2]|0)+1|0;c[p>>2]=m;c[h+(e*24|0)+16>>2]=m;m=h+(e*24|0)+12|0;c[m>>2]=-1;c[h+(e*24|0)+20>>2]=f;h=c[t+24>>2]|0;d:do if((h|0)!=0?(q=c[h>>2]|0,(q|0)>0):0){g=0;h=c[h+4>>2]|0;while(1){p=c[h>>2]|0;if(((a[p>>0]|0)==-102?(c[p+28>>2]|0)==(k|0):0)?(b[p+32>>1]|0)==l<<16>>16:0)break;g=g+1|0;if((g|0)>=(q|0))break d;else h=h+20|0}c[m>>2]=g;if((g|0)>=0)break c}while(0);p=t+12|0;q=c[p>>2]|0;c[p>>2]=q+1;c[m>>2]=q}}while(0);c[f+40>>2]=t;a[f>>0]=-100;b[f+34>>1]=e;e=1}else e=1;else if(((g|0)==155?(b[h+28>>1]&8)==0:0)?(c[e+16>>2]|0)==(d[f+38>>0]|0):0){l=t+40|0;m=t+44|0;g=c[m>>2]|0;e:do if((g|0)>0){e=0;h=c[l>>2]|0;while(1){if(!(yu(c[h>>2]|0,f,-1)|0))break e;e=e+1|0;if((e|0)<(g|0))h=h+16|0;else break}}else e=0;while(0);do if((e|0)>=(g|0)){k=c[s>>2]|0;n=a[k+62>>0]|0;k=Dt(k,c[l>>2]|0,16,m,r)|0;c[l>>2]=k;e=c[r>>2]|0;if((e|0)>-1){c[k+(e<<4)>>2]=f;l=s+72|0;m=(c[l>>2]|0)+1|0;c[l>>2]=m;c[k+(e<<4)+8>>2]=m;m=c[s>>2]|0;l=c[f+8>>2]|0;if(!l)g=0;else{h=l;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;g=h-l&1073741823}h=c[f+20>>2]|0;if(!h)h=0;else h=c[h>>2]|0;c[k+(e<<4)+4>>2]=Oh(m,l,g,h,n,0)|0;if(!(c[f+4>>2]&16)){c[k+(e<<4)+12>>2]=-1;break}else{p=s+68|0;q=c[p>>2]|0;c[p>>2]=q+1;c[k+(e<<4)+12>>2]=q;break}}}while(0);b[f+34>>1]=e;c[f+40>>2]=t;e=1}else e=0;while(0);i=u;return e|0}function Ws(a,b){a=a|0;b=b|0;return 0}function Xs(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;i=i+16|0;if((i|0)>=(j|0))ba();e=f;if((a[b+450>>0]|0)==2){g=c[b+8>>2]|0;h=c[b>>2]|0;c[e>>2]=d;e=qh(h,35e3,e)|0;th(g,sh(g,157,c[b+464>>2]|0,0,0)|0,e,-1)}i=f;return}function Ys(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=b+19|0;i=0;j=b+116|0;while(1){e=j+12|0;f=c[e>>2]|0;if(f){g=j+6|0;if(a[g>>0]|0){h=a[d>>0]|0;if((h&255)<8){a[d>>0]=h+1<<24>>24;c[b+((h&255)<<2)+24>>2]=f}a[g>>0]=0}c[e>>2]=0}i=i+1|0;if((i|0)==10)break;else j=j+20|0}return}function Zs(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+32|0;if((i|0)>=(j|0))ba();x=z;g=f&255;q=34-(g&1)|0;t=c[d>>2]|0;if(!(a[b+23>>0]|0))f=g&253;if((t|0)>0){h=(f&2)==0;k=b+8|0;l=(q|0)==33;m=x+20|0;n=x+4|0;o=x+24|0;p=0;d=c[d+4>>2]|0;while(1){g=c[d>>2]|0;if(!h?(c[x+0>>2]=0,c[x+4>>2]=0,c[x+8>>2]=0,c[x+12>>2]=0,c[x+16>>2]=0,c[x+20>>2]=0,a[m>>0]=1,c[x>>2]=78,c[n>>2]=79,c[o>>2]=0,ns(x,g)|0,(a[m>>0]|0)!=0):0)Ct(b,g,p+e|0,0);else y=8;do if((y|0)==8?(y=0,r=p+e|0,s=es(b,g,r)|0,(s|0)!=(r|0)):0){f=c[k>>2]|0;if(l){if(!(a[(c[f>>2]|0)+65>>0]|0))g=(c[f+4>>2]|0)+(((c[f+32>>2]|0)+-1|0)*20|0)|0;else g=29120;if(((a[g>>0]|0)==33?(u=g+12|0,v=c[u>>2]|0,((c[g+4>>2]|0)+1+v|0)==(s|0)):0)?(w=v+1|0,(w+(c[g+8>>2]|0)|0)==(r|0)):0){c[u>>2]=w;break}}sh(f,q,s,r,0)|0}while(0);p=p+1|0;if((p|0)==(t|0))break;else d=d+20|0}}i=z;return}function _s(d,e,f,g,h,i){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0;n=c[d+8>>2]|0;j=d+116|0;m=0;k=j;while(1){l=c[k+12>>2]|0;if(((l|0)>0?(c[k>>2]|0)==(g|0):0)?(b[k+4>>1]|0)==(f|0):0){h=l;m=5;break}m=m+1|0;if((m|0)>=10){m=10;break}else k=k+20|0}do if((m|0)==5){n=d+104|0;i=c[n>>2]|0;c[n>>2]=i+1;c[k+16>>2]=i;k=0;while(1){if((c[j+12>>2]|0)==(h|0))a[j+6>>0]=0;k=k+1|0;if((k|0)==10)break;else j=j+20|0}}else if((m|0)==10){jt(n,e,g,f,h);if(!(i<<24>>24)){Ou(d,g,f,h);break}j=c[n+4>>2]|0;if(j)a[j+(((c[n+32>>2]|0)+-1|0)*20|0)+3>>0]=i}while(0);return h|0}function $s(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=d+-1+e|0;g=b+19|0;k=0;l=b+116|0;while(1){h=l+12|0;i=c[h>>2]|0;if(!((i|0)<(d|0)|(i|0)>(e|0))){j=l+6|0;if(a[j>>0]|0){f=a[g>>0]|0;if((f&255)<8){a[g>>0]=f+1<<24>>24;c[b+((f&255)<<2)+24>>2]=i}a[j>>0]=0}c[h>>2]=0}k=k+1|0;if((k|0)==10)break;else l=l+20|0}return}function at(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=c[d+8>>2]|0;a[e>>0]=1;s=e+44|0;if((c[s>>2]|0)>0){t=A+4|0;v=d+56|0;w=d+60|0;o=A+24|0;p=A+32|0;q=e+36|0;r=d+72|0;x=0;y=c[e+40>>2]|0;f=0;while(1){k=c[(c[y>>2]|0)+20>>2]|0;if(!k){g=0;i=0}else{g=c[k>>2]|0;i=c[w>>2]|0;h=c[v>>2]|0;if((h|0)<(g|0)){i=c[r>>2]|0;c[r>>2]=i+g;i=i+1|0}else{c[w>>2]=i+g;c[v>>2]=h-g}Zs(d,k,i,1)}h=y+12|0;if((c[h>>2]|0)>-1){n=ts(A)|0;vu(d,c[h>>2]|0,n,1,i)}else n=0;m=y+4|0;h=c[m>>2]|0;if(b[h+2>>1]&32){if((g|0)>0){l=0;k=c[k+4>>2]|0;while(1){h=_t(d,c[k>>2]|0)|0;l=l+1|0;j=(h|0)!=0;if(!((l|0)<(g|0)&(j^1)))break;else k=k+20|0}if(!j)z=15}else z=15;if((z|0)==15){z=0;h=c[(c[d>>2]|0)+8>>2]|0}if(!f)if(!(c[q>>2]|0))f=0;else{f=(c[r>>2]|0)+1|0;c[r>>2]=f}th(A,sh(A,36,f,0,0)|0,h,-4);h=c[m>>2]|0}th(A,sh(A,10,0,i,c[y+8>>2]|0)|0,h,-5);h=c[t>>2]|0;if(h)a[h+(((c[p>>2]|0)+-1|0)*20|0)+3>>0]=g;$s(d,i,g);$s(d,i,g);if((c[v>>2]|0)<(g|0)){c[v>>2]=g;c[w>>2]=i}if(n){i=c[o>>2]|0;h=~n;if((n|0)<0?(u=c[i+112>>2]|0,(u|0)!=0):0)c[u+(h<<2)>>2]=c[p>>2];c[i+88>>2]=(c[p>>2]|0)+-1;Ys(d)}x=x+1|0;if((x|0)>=(c[s>>2]|0))break;else y=y+16|0}if(f)i=sh(A,45,f,0,0)|0;else i=0}else i=0;Ys(d);f=e+36|0;if((c[f>>2]|0)>0){g=0;h=c[e+28>>2]|0;while(1){Nq(d,c[h+20>>2]|0,c[h+16>>2]|0);g=g+1|0;if((g|0)>=(c[f>>2]|0))break;else h=h+24|0}}a[e>>0]=0;Ys(d);if(i){f=c[A+32>>2]|0;if(f>>>0>i>>>0)c[(c[A+4>>2]|0)+(i*20|0)+8>>2]=f;c[(c[A+24>>2]|0)+88>>2]=f+-1}return}function bt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[a+8>>2]|0;e=b+44|0;if((c[e>>2]|0)>0){f=0;b=c[b+40>>2]|0;while(1){a=c[(c[b>>2]|0)+20>>2]|0;if(!a)a=0;else a=c[a>>2]|0;g=c[b+4>>2]|0;th(d,sh(d,142,c[b+8>>2]|0,a,0)|0,g,-5);f=f+1|0;if((f|0)>=(c[e>>2]|0))break;else b=b+16|0}}return}function ct(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p+4|0;o=p;m=c[b+8>>2]|0;c[n>>2]=0;c[o>>2]=0;if(!((m|0)==0|(e|0)==0)){q=d[e>>0]|0;h=q^1;a:do switch(q|0){case 71:{l=ts(m)|0;Vu(b,c[e+12>>2]|0,l,g^16);h=b+100|0;c[h>>2]=(c[h>>2]|0)+1;ct(b,c[e+16>>2]|0,f,g);f=c[m+24>>2]|0;h=~l;if((l|0)<0?(k=c[f+112>>2]|0,(k|0)!=0):0)c[k+(h<<2)>>2]=c[m+32>>2];c[f+88>>2]=(c[m+32>>2]|0)+-1;Zt(b);break}case 74:{Wu(b,e,f,0,g);break}case 19:{Vu(b,c[e+12>>2]|0,f,g);break}case 72:{ct(b,c[e+12>>2]|0,f,g);m=b+100|0;c[m>>2]=(c[m>>2]|0)+1;ct(b,c[e+16>>2]|0,f,g);Zt(b);break}case 77:case 76:{sh(m,h,Xt(b,c[e+12>>2]|0,n)|0,f,0)|0;break}case 79:case 78:case 83:case 80:case 81:case 82:{q=e+12|0;l=Xt(b,c[q>>2]|0,n)|0;k=e+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[q>>2]|0,c[k>>2]|0,h,l,m,f,g);break}case 148:case 73:{g=e+12|0;l=Xt(b,c[g>>2]|0,n)|0;k=e+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[g>>2]|0,c[k>>2]|0,(a[e>>0]|0)==73?78:79,l,m,f,128);break}case 75:{if(g){bu(b,e,f,f);break a}k=ts(m)|0;bu(b,e,f,k);h=c[m+24>>2]|0;f=~k;if((k|0)<0?(l=c[h+112>>2]|0,(l|0)!=0):0)c[l+(f<<2)>>2]=c[m+32>>2];c[h+88>>2]=(c[m+32>>2]|0)+-1;break}default:{if(iu(e)|0){sh(m,16,0,f,0)|0;break a}if(!(Xu(e)|0))sh(m,46,Xt(b,e,n)|0,f,(g|0)!=0&1)|0}}while(0);Wr(b,c[n>>2]|0);Wr(b,c[o>>2]|0)}i=p;return}function dt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;f=c[a+8>>2]|0;g=b+44|0;if((c[g>>2]|0)!=(0-(c[b+32>>2]|0)|0)?(sh(f,28,0,c[b+16>>2]|0,c[b+20>>2]|0)|0,(c[g>>2]|0)>0):0){h=0;e=c[b+40>>2]|0;while(1){b=e+12|0;do if((c[b>>2]|0)>-1){d=c[(c[e>>2]|0)+20>>2]|0;if((d|0)!=0?(c[d>>2]|0)==1:0){d=Qs(a,d,0,0)|0;th(f,sh(f,57,c[b>>2]|0,0,0)|0,d,-6);break}ph(a,34944,k);c[b>>2]=-1}while(0);h=h+1|0;if((h|0)>=(c[g>>2]|0))break;else e=e+16|0}}i=l;return}function et(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)>0){e=sh(a,138,b,0,-1)|0;sh(a,16,0,d,0)|0;b=c[a+32>>2]|0;if(b>>>0>e>>>0)c[(c[a+4>>2]|0)+(e*20|0)+8>>2]=b;c[(c[a+24>>2]|0)+88>>2]=b+-1}return}function ft(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0;if((c[(c[a>>2]|0)+24>>2]&8388608|0)!=0?(h=ws(a,b)|0,(h|0)!=0):0){a=0;b=h;do{if((d[b+8>>0]|0|0)==(e|0)?(Yu(c[b+16>>2]|0,f)|0)!=0:0)a=d[b+9>>0]|0|a;b=c[b+32>>2]|0}while((b|0)!=0)}else{a=0;h=0}if(g)c[g>>2]=a;return ((a|0)!=0?h:0)|0}function gt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;h=a[d+44>>0]|0;if(h&16){g=c[b>>2]|0;f=d+60|0;while(1){f=c[f>>2]|0;if((c[f>>2]|0)==(g|0))break;else f=f+24|0}if(!(c[(c[c[f+4>>2]>>2]|0)+52>>2]|0))g=8;else g=5}else g=5;do if((g|0)==5){if(((h&1)!=0?(c[(c[b>>2]|0)+24>>2]&2048|0)==0:0)?(a[b+18>>0]|0)==0:0){g=8;break}if((e|0)==0?(c[d+12>>2]|0)!=0:0){c[k>>2]=c[d>>2];ph(b,34456,k);f=1}else f=0}while(0);if((g|0)==8){c[k>>2]=c[d>>2];ph(b,34424,k);f=1}i=l;return f|0}function ht(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+32|0;if((i|0)>=(j|0))ba();o=p;n=c[b>>2]|0;h=c[d+68>>2]|0;a:do if(h){g=c[n+20>>2]|0;if((g|0)>0){l=c[n+16>>2]|0;m=0;while(1){k=m+1|0;if((c[l+(m<<4)+12>>2]|0)==(h|0)){k=m;break a}if((k|0)<(g|0))m=k;else break}}else k=0}else k=-1e6;while(0);g=Ir(n,e,0,0)|0;h=lr(n,0,0,0)|0;if(h){c[h+16>>2]=gh(n,c[d>>2]|0)|0;c[h+12>>2]=gh(n,c[(c[n+16>>2]|0)+(k<<4)>>2]|0)|0}e=gr(b,0,h,g,0,0,0,0,0,0)|0;a[o>>0]=12;c[o+4>>2]=f;a[o+1>>0]=0;c[o+8>>2]=0;c[o+12>>2]=0;er(b,e,o)|0;Ik(n,e,1);i=p;return}function it(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();o=p+4|0;h=p;a:do if(c[(c[a>>2]|0)+24>>2]&524288){if(!e){f=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,h)|0;if((f|0)!=0?(c[f+8>>2]|0)!=0:0)g=1;else g=(c[d+16>>2]|0)!=0;g=g&1;break}a=c[d+16>>2]|0;if(a){m=d+36|0;n=(f|0)!=0;do{h=c[a+20>>2]|0;if((h|0)>0){l=0;do{k=c[a+(l<<3)+36>>2]|0;if((c[e+(k<<2)>>2]|0)>-1){g=1;break a}l=l+1|0;if((k|0)==(b[m>>1]|0)&n){g=1;break a}}while((l|0)<(h|0))}a=c[a+4>>2]|0}while((a|0)!=0)}h=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,o)|0;if((h|0)!=0?(g=c[h+8>>2]|0,(g|0)!=0):0)while(1){if(Zu(d,g,e,f)|0){g=1;break a}g=c[g+12>>2]|0;if(!g){g=0;break}}else g=0}else g=0;while(0);i=p;return g|0}function jt(e,f,g,h,i){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0;if((h|0)>=0?(b[f+36>>1]|0)!=(h|0):0){j=d[f+44>>0]|0;n=(j&16|0)!=0?150:47;if(!(j&32))j=h;else{j=c[f+8>>2]|0;a:do if(!j)j=0;else while(1){if((a[j+51>>0]&3)==2)break a;j=c[j+20>>2]|0;if(!j){j=0;break}}while(0);m=h&65535;k=b[j+48>>1]|0;b:do if(!(k<<16>>16))j=-1;else{l=c[j+4>>2]|0;k=k&65535;j=0;while(1){if((b[l+(j<<1)>>1]|0)==m<<16>>16)break b;j=j+1|0;if((j|0)>=(k|0)){j=-1;break}}}while(0);j=j<<16>>16}sh(e,n,g,j,i)|0}else sh(e,103,g,i,0)|0;if((h|0)>-1)Jt(e,f,h,i);return}function kt(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=f+16|0;g=c[j>>2]|0;do if(!g){h=c[f+12>>2]|0;g=c[d>>2]|0;i=f+48|0;d=mg((e[i>>1]|0)+1|0,0)|0;c[j>>2]=d;if(!d){a[g+65>>0]=1;g=0;break}if(!(b[i>>1]|0))g=0;else{f=f+4|0;h=h+4|0;g=0;do{d=b[(c[f>>2]|0)+(g<<1)>>1]|0;if(d<<16>>16<0)d=68;else d=a[(c[h>>2]|0)+((d<<16>>16)*24|0)+21>>0]|0;a[(c[j>>2]|0)+g>>0]=d;g=g+1|0}while((g|0)<(e[i>>1]|0));d=c[j>>2]|0}a[d+g>>0]=0;g=c[j>>2]|0}while(0);return g|0}function lt(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=d+44|0;if(!(a[r>>0]&16)){k=c[b>>2]|0;m=c[d+68>>2]|0;a:do if(m){n=c[k+20>>2]|0;if((n|0)>0){k=c[k+16>>2]|0;l=0;while(1){j=l+1|0;if((c[k+(l<<4)+12>>2]|0)==(m|0))break a;if((j|0)<(n|0))l=j;else{l=j;break}}}else l=0}else l=-1e6;while(0);q=Kq(b)|0;if((f|0)<0)f=c[b+68>>2]|0;k=f+1|0;p=(h|0)!=0;if(p)c[h>>2]=f;do if(!(a[r>>0]&32)){if((g|0)!=0?(a[g>>0]|0)==0:0){o=15;break}Mq(b,f,l,d,e)}else o=15;while(0);if((o|0)==15)cs(b,l,c[d+32>>2]|0,(e|0)==55&1,c[d>>2]|0);if(i)c[i>>2]=k;f=c[d+8>>2]|0;if(!f)j=0;else{m=(g|0)==0;d=b+8|0;n=k;j=0;while(1){k=n+1|0;if((a[f+51>>0]&3)==2?(a[r>>0]&32)!=0&p:0)c[h>>2]=n;j=j+1|0;if(!(!m?(a[g+j>>0]|0)==0:0)){sh(q,e,n,c[f+40>>2]|0,l)|0;o=c[d>>2]|0;th(o,-1,ds(b,f)|0,-6)}f=c[f+20>>2]|0;if(!f)break;else n=k}}f=b+68|0;if((k|0)>(c[f>>2]|0))c[f>>2]=k}else j=0;return j|0}function mt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+452|0;b=c[g>>2]|0;e=c[h+520>>2]|0;a:do if((b|0)>0){f=0;while(1){if((c[e+(f<<2)>>2]|0)==(d|0))break a;f=f+1|0;if((f|0)>=(b|0)){i=4;break}}}else i=4;while(0);do if((i|0)==4){b=Tc(e,(b<<2)+4|0)|0;if(!b){a[(c[h>>2]|0)+65>>0]=1;break}else{c[h+520>>2]=b;e=c[g>>2]|0;c[g>>2]=e+1;c[b+(e<<2)>>2]=d;break}}while(0);return}function nt(d,e,f,g,h,i,j,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;w=c[d+8>>2]|0;x=ts(w)|0;u=(a[e+44>>0]&32)>>>4^70;if(!(m<<24>>24))th(w,sh(w,u,g,x,i)|0,j<<16>>16,-14);if((it(d,e,0,0)|0)!=0|(f|0)!=0){q=l&255;r=rt(d,f,0,0,3,e,q)|0;r=qt(d,e)|0|r;o=d+72|0;n=c[o>>2]|0;m=n+1|0;s=e+38|0;c[o>>2]=m+(b[s>>1]|0);sh(w,33,i,m,0)|0;o=b[s>>1]|0;if(o<<16>>16>0){t=(r|0)==-1;p=n+2|0;n=0;do{if(!t){if((n|0)<32?(1<<n&r|0)!=0:0)v=9}else v=9;if((v|0)==9){v=0;jt(w,e,g,n,p+n|0);o=b[s>>1]|0}n=n+1|0}while((n|0)<(o<<16>>16|0))}t=w+32|0;s=c[t>>2]|0;tt(d,f,109,0,1,e,m,q,x);if((s|0)<(c[t>>2]|0))th(w,sh(w,u,g,x,i)|0,j<<16>>16,-14);vt(d,e,m,0,0,0)}else m=0;if((c[e+12>>2]|0)==0?(wt(d,e,g,h,0),sh(w,95,g,k<<24>>24!=0&1,0)|0,k<<24>>24!=0):0)th(w,-1,c[e>>2]|0,0);yt(d,e,0,m,0,0);tt(d,f,109,0,2,e,m,l&255,x);n=c[w+24>>2]|0;m=~x;if((x|0)<0?(y=c[n+112>>2]|0,(y|0)!=0):0)c[y+(m<<2)>>2]=c[w+32>>2];c[n+88>>2]=(c[w+32>>2]|0)+-1;return}function ot(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=c[b+8>>2]|0;d=c[b+404>>2]|0;if(d){l=(c[b>>2]|0)+16|0;m=b+19|0;n=b+72|0;o=j+32|0;p=j+4|0;k=j+24|0;do{f=c[d+8>>2]|0;g=c[l>>2]|0;i=c[d+12>>2]|0;e=a[m>>0]|0;if(!(e<<24>>24)){h=(c[n>>2]|0)+1|0;c[n>>2]=h}else{h=e+-1<<24>>24;a[m>>0]=h;h=c[b+((h&255)<<2)+24>>2]|0}Mq(b,0,f,c[(c[g+(f<<4)+12>>2]|0)+72>>2]|0,55);g=i+1|0;f=sh(j,77,g,0,0)|0;sh(j,74,0,g,0)|0;e=c[o>>2]|0;if(e>>>0>f>>>0)c[(c[p>>2]|0)+(f*20|0)+8>>2]=e;c[(c[k>>2]|0)+88>>2]=e+-1;sh(j,49,i+-1|0,2,h)|0;sh(j,75,0,h,g)|0;e=c[p>>2]|0;if(e)a[e+(((c[o>>2]|0)+-1|0)*20|0)+3>>0]=8;sh(j,61,0,0,0)|0;Wr(b,h);d=c[d>>2]|0}while((d|0)!=0)}return}function pt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;c[g>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[g+4>>2]=f;f=jr(b,d,g,0)|0;i=h;return f|0}function qt(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();k=o+4|0;n=o;if(c[(c[a>>2]|0)+24>>2]&524288){f=c[d+16>>2]|0;if(!f)e=0;else{e=0;do{g=c[f+20>>2]|0;if((g|0)>0){h=0;do{p=c[f+(h<<3)+36>>2]|0;e=((p|0)>31?-1:1<<p)|e;h=h+1|0}while((h|0)<(g|0))}f=c[f+4>>2]|0}while((f|0)!=0)}f=Zm((c[d+68>>2]|0)+56|0,c[d>>2]|0,k)|0;if((f|0)!=0?(l=c[f+8>>2]|0,(l|0)!=0):0)do{c[n>>2]=0;It(a,d,l,n,0)|0;f=c[n>>2]|0;if((f|0)!=0?(m=b[f+46>>1]|0,m<<16>>16!=0):0){k=m&65535;h=c[f+4>>2]|0;g=0;do{f=b[h+(g<<1)>>1]|0;if(f<<16>>16>31)f=-1;else f=1<<(f<<16>>16);e=f|e;g=g+1|0}while((g|0)<(k|0))}l=c[l+12>>2]|0}while((l|0)!=0)}else e=0;i=o;return e|0}function rt(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;k=(e|0)!=0?110:109;if(!b)j=0;else{j=0;do{if((((d[b+8>>0]|0|0)==(k|0)?((d[b+9>>0]|0)&g|0)!=0:0)?(Yu(c[b+16>>2]|0,e)|0)!=0:0)?(l=_u(a,b,h,i)|0,(l|0)!=0):0)j=c[l+(f<<2)+16>>2]|j;b=c[b+32>>2]|0}while((b|0)!=0)}return j|0}function st(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=e+20|0;g=c[l>>2]|0;do if(!g){i=c[d>>2]|0;k=e+38|0;h=(b[k>>1]|0)+1|0;h=mg(h,((h|0)<0)<<31>>31)|0;if(!h){a[i+65>>0]=1;break}if((b[k>>1]|0)>0){i=e+4|0;g=0;do{a[h+g>>0]=a[(c[i>>2]|0)+(g*24|0)+21>>0]|0;g=g+1|0}while((g|0)<(b[k>>1]|0))}else g=0;do{a[h+g>>0]=0;if((g|0)<=0)break;g=g+-1|0}while((a[h+g>>0]|0)==65);c[l>>2]=h;j=10}else{h=g;j=10}while(0);do if((j|0)==10){g=h;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-h&1073741823;if(g)if(!f){th(d,-1,h,g);break}else{th(d,sh(d,48,f,g,0)|0,h,g);break}}while(0);return}function tt(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;if(b)do{if(((d[b+8>>0]|0|0)==(e|0)?(d[b+9>>0]|0|0)==(g|0):0)?(Yu(c[b+16>>2]|0,f)|0)!=0:0)$u(a,b,h,i,j,k);b=c[b+32>>2]|0}while((b|0)!=0);return}function ut(d,f,g,h,k,l,m,n,o,p,q){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+16|0;if((i|0)>=(j|0))ba();I=la;fa=(m|0)!=0;N=c[d>>2]|0;ka=Kq(d)|0;A=b[f+38>>1]|0;ia=f+44|0;if(!(a[ia>>0]&32)){ea=1;da=0}else{u=f+8|0;while(1){u=c[u>>2]|0;if((a[u+51>>0]&3)==2)break;else u=u+20|0}ea=e[u+46>>1]|0;da=u}if(A<<16>>16>0){w=f+36|0;v=f+4|0;u=o<<24>>24==10;t=d+408|0;s=l+1|0;B=ka+4|0;C=ka+32|0;D=ka+24|0;E=o&255;y=A<<16>>16;x=0;do{a:do if((x|0)!=(b[w>>1]|0)?(F=c[v>>2]|0,G=a[F+(x*24|0)+20>>0]|0,H=G&255,G<<24>>24!=0):0){if(u)if(G<<24>>24==10)ja=14;else{A=H;ja=11}else{A=E;ja=11}do if((ja|0)==11){ja=0;if((A|0)==5)A=(c[F+(x*24|0)+4>>2]|0)==0?2:5;if((A|0)==4){sh(ka,76,s+x|0,p,0)|0;break a}else if((A|0)==3|(A|0)==1)break;else if((A|0)==2){ja=14;break}z=s+x|0;A=sh(ka,77,z,0,0)|0;Nq(d,c[(c[v>>2]|0)+(x*24|0)+4>>2]|0,z);z=c[C>>2]|0;if(z>>>0>A>>>0)c[(c[B>>2]|0)+(A*20|0)+8>>2]=z;c[(c[D>>2]|0)+88>>2]=z+-1;break a}while(0);if((ja|0)==14){ja=0;A=c[t>>2]|0;a[((A|0)==0?d:A)+21>>0]=1;A=2}ca=c[F+(x*24|0)>>2]|0;c[I>>2]=c[f>>2];c[I+4>>2]=ca;ca=qh(N,27824,I)|0;th(ka,sh(ka,23,1299,A,s+x|0)|0,ca,-1);A=c[B>>2]|0;if(A)a[A+(((c[C>>2]|0)+-1|0)*20|0)+3>>0]=1}while(0);x=x+1|0}while((x|0)!=(y|0))}x=c[f+24>>2]|0;if(((x|0)!=0?(c[N+24>>2]&8192|0)==0:0)?(c[d+92>>2]=l+1,(c[x>>2]|0)>0):0){w=x+4|0;s=ka+24|0;y=ka+32|0;A=0;u=o<<24>>24==10?2:o&255;while(1){z=ts(ka)|0;Vu(d,c[(c[w>>2]|0)+(A*20|0)>>2]|0,z,16);if((u|0)==4){sh(ka,16,0,p,0)|0;t=4}else{v=c[(c[w>>2]|0)+(A*20|0)+4>>2]|0;if(!v)v=c[f>>2]|0;t=(u|0)==5?2:u;vs(d,275,t,v,0,3)}v=c[s>>2]|0;u=~z;if((z|0)<0?(J=c[v+112>>2]|0,(J|0)!=0):0)c[J+(u<<2)>>2]=c[y>>2];c[v+88>>2]=(c[y>>2]|0)+-1;A=A+1|0;if((A|0)>=(c[x>>2]|0))break;else u=t}}if(n<<24>>24!=0&(da|0)==0){w=ts(ka)|0;s=a[f+45>>0]|0;if(o<<24>>24==10)s=s<<24>>24==10?2:s&255;else s=o&255;if(fa?(sh(ka,79,l,w,m)|0,K=c[ka+4>>2]|0,(K|0)!=0):0)a[K+(((c[ka+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;b:do if(!((s|0)!=5|o<<24>>24==5)?(r=c[f+8>>2]|0,(r|0)!=0):0){while(1){if(((a[r+50>>0]|0)+-3&255)<2)break;r=c[r+20>>2]|0;if(!r){x=0;break b}}x=sh(ka,16,0,0,0)|0}else x=0;while(0);sh(ka,70,h,w,l)|0;c:do switch(s|0){case 4:{sh(ka,16,0,p,0)|0;s=0;break}case 3:case 2:case 1:{ja=49;break}case 5:{if((c[N+24>>2]&262144|0)!=0?(L=ft(d,f,109,0,0)|0,(L|0)!=0):0)s=L;else if(!(it(d,f,0,0)|0)){if(!(c[f+8>>2]|0)){s=1;break c}s=c[d+408>>2]|0;a[((s|0)==0?d:s)+20>>0]=1;wt(d,f,h,k,0);s=1;break c}else s=0;ca=c[d+408>>2]|0;a[((ca|0)==0?d:ca)+20>>0]=1;nt(d,f,s,h,k,l,1,0,5,1);s=1;break}default:{s=2;ja=49}}while(0);if((ja|0)==49){Bt(d,s,f);s=0}v=ka+24|0;u=c[v>>2]|0;t=~w;if((w|0)<0?(M=c[u+112>>2]|0,(M|0)!=0):0)c[M+(t<<2)>>2]=c[ka+32>>2];r=ka+32|0;c[u+88>>2]=(c[r>>2]|0)+-1;if(!x){t=0;x=0}else{t=sh(ka,16,0,0,0)|0;r=c[r>>2]|0;if(r>>>0>x>>>0)c[(c[ka+4>>2]|0)+(x*20|0)+8>>2]=r;c[(c[v>>2]|0)+88>>2]=r+-1}}else{t=0;x=0;s=0}A=c[f+8>>2]|0;if(A){_=l+1|0;$=d+60|0;aa=d+56|0;ca=d+72|0;Q=n<<24>>24==0;R=ka+24|0;S=ka+32|0;T=o<<24>>24==10;U=ka+4|0;V=da+46|0;W=da+32|0;X=da+4|0;Y=m+1|0;Z=d+408|0;O=N+24|0;P=ea&65535;w=o&255;v=f+36|0;u=d+92|0;E=0;r=0;z=-1;while(1){L=g+(r<<2)|0;do if(c[L>>2]|0){if(!(E<<24>>24)){st(ka,f,_);E=1}M=r+k|0;o=ts(ka)|0;K=A+36|0;if(c[K>>2]|0){sh(ka,28,0,c[L>>2]|0,0)|0;c[u>>2]=_;ct(d,c[K>>2]|0,o,16);c[u>>2]=0}N=A+48|0;F=b[N>>1]|0;I=F&65535;H=c[$>>2]|0;G=c[aa>>2]|0;if((G|0)<(I|0)){n=c[ca>>2]|0;c[ca>>2]=n+I;n=n+1|0}else{c[$>>2]=H+I;c[aa>>2]=G-I;n=H}if(!(F<<16>>16))J=z;else{J=A+4|0;G=0;do{y=b[(c[J>>2]|0)+(G<<1)>>1]|0;I=y<<16>>16;if(y<<16>>16>=0?y<<16>>16!=(b[v>>1]|0):0){H=G+n|0;I=_+I|0;ja=81}else{I=G+n|0;if((z|0)!=(I|0)){H=I;z=(c[K>>2]|0)==0?I:-1;I=l;ja=81}}if((ja|0)==81){ja=0;sh(ka,34,I,H,0)|0;F=b[N>>1]|0}G=G+1|0;I=F&65535}while((G|0)<(I|0));J=z}sh(ka,49,n,I,c[L>>2]|0)|0;$s(d,n,e[N>>1]|0);K=(da|0)==(A|0);if(fa&K&Q){z=c[R>>2]|0;y=~o;if((o|0)<0?(ga=c[z+112>>2]|0,(ga|0)!=0):0)c[ga+(y<<2)>>2]=c[S>>2];c[z+88>>2]=(c[S>>2]|0)+-1;z=J;break}D=a[A+50>>0]|0;C=D&255;if(!(D<<24>>24)){z=e[N>>1]|0;$s(d,n,z);if((c[aa>>2]|0)<(z|0)){c[aa>>2]=z;c[$>>2]=n}z=c[R>>2]|0;y=~o;if((o|0)<0?(ha=c[z+112>>2]|0,(ha|0)!=0):0)c[ha+(y<<2)>>2]=c[S>>2];c[z+88>>2]=(c[S>>2]|0)+-1;z=J;break}if(T)L=D<<24>>24==10?2:C;else L=w;z=e[A+46>>1]|0;th(ka,sh(ka,67,M,o,n)|0,z,-14);do if(!K){I=c[$>>2]|0;H=c[aa>>2]|0;if((H|0)<(ea|0)){I=c[ca>>2]|0;c[ca>>2]=I+ea;I=I+1|0;break}else{c[$>>2]=I+ea;c[aa>>2]=H-ea;break}}else I=n;while(0);do if(fa|(L|0)==5){if(!(a[ia>>0]&32)){sh(ka,112,M,I,0)|0;if(!fa)break;sh(ka,79,I,o,m)|0;D=c[U>>2]|0;if(!D)break;a[D+(((c[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;break}do if(!K){if(!(b[V>>1]|0))break;C=A+4|0;B=0;do{F=b[(c[X>>2]|0)+(B<<1)>>1]|0;H=b[N>>1]|0;d:do if(!(H<<16>>16))H=-1;else{D=c[C>>2]|0;G=H&65535;H=0;while(1){if((b[D+(H<<1)>>1]|0)==F<<16>>16)break d;H=H+1|0;if((H|0)>=(G|0)){H=-1;break}}}while(0);sh(ka,47,M,H<<16>>16,B+I|0)|0;B=B+1|0}while((B|0)<(e[V>>1]|0))}while(0);if(!fa)break;C=(a[A+51>>0]&3)==2?n:I;H=b[V>>1]|0;if(!(H<<16>>16))break;G=(H&65535)+(c[S>>2]|0)|0;F=0;D=78;do{H=_q(d,c[(c[W>>2]|0)+(F<<2)>>2]|0)|0;z=(F|0)==((e[V>>1]|0)+-1|0);G=z?o:G;D=z?79:D;th(ka,sh(ka,D,Y+(b[(c[X>>2]|0)+(F<<1)>>1]|0)|0,G,F+C|0)|0,H,-4);H=c[U>>2]|0;if(H)a[H+(((c[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;F=F+1|0}while((F|0)<(e[V>>1]|0))}while(0);if((L|0)==3|(L|0)==2|(L|0)==1)ju(d,L,A);else if((L|0)==4)sh(ka,16,0,p,0)|0;else{z=c[Z>>2]|0;a[((z|0)==0?d:z)+20>>0]=1;if(!(c[O>>2]&262144))D=0;else D=ft(d,f,109,0,0)|0;nt(d,f,D,h,k,I,P,0,5,K&1);s=1}H=c[R>>2]|0;G=~o;do if((o|0)<0){D=c[H+112>>2]|0;if(!D)break;c[D+(G<<2)>>2]=c[S>>2]}while(0);c[H+88>>2]=(c[S>>2]|0)+-1;z=e[N>>1]|0;$s(d,n,z);if((c[aa>>2]|0)<(z|0)){c[aa>>2]=z;c[$>>2]=n}if((I|0)==(n|0)){z=J;break}$s(d,I,ea);if((c[aa>>2]|0)>=(ea|0)){z=J;break}c[aa>>2]=ea;c[$>>2]=I;z=J}while(0);A=c[A+20>>2]|0;if(!A)break;else r=r+1|0}}if(x){sh(ka,16,0,x+1|0,0)|0;r=c[ka+32>>2]|0;if(r>>>0>t>>>0)c[(c[ka+4>>2]|0)+(t*20|0)+8>>2]=r;c[(c[ka+24>>2]|0)+88>>2]=r+-1}c[q>>2]=s;i=la;return}function vt(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;Z=i;i=i+32|0;if((i|0)>=(j|0))ba();Q=Z+20|0;O=Z+16|0;M=Z+12|0;N=Z+8|0;X=Z+4|0;W=Z;S=c[e>>2]|0;L=e+438|0;R=a[L>>0]|0;V=S+24|0;a:do if(c[V>>2]&524288){P=f+68|0;m=c[P>>2]|0;b:do if(m){o=c[S+20>>2]|0;if((o|0)>0){n=c[S+16>>2]|0;r=0;while(1){q=r+1|0;if((c[n+(r<<4)+12>>2]|0)==(m|0)){q=r;break b}if((q|0)<(o|0))r=q;else break}}else q=0}else q=-1e6;while(0);K=c[(c[S+16>>2]|0)+(q<<4)>>2]|0;x=c[f+16>>2]|0;if(!x)n=f;else{z=(k|0)==0;A=R<<24>>24==0;B=S+65|0;C=g+1|0;D=e+68|0;E=(g|0)==0;F=(h|0)==0;G=e+408|0;H=f+36|0;I=S+284|0;J=(l|0)!=0;y=x;do{c[O>>2]=0;c[M>>2]=0;c:do if(!z){x=c[y+8>>2]|0;if($c(c[f>>2]|0,x)|0){w=c[y+20>>2]|0;if((w|0)>0){n=0;do{m=c[y+(n<<3)+36>>2]|0;if((c[k+(m<<2)>>2]|0)>-1){Y=17;break c}n=n+1|0;if((m|0)==(b[H>>1]|0)&J){Y=17;break c}}while((n|0)<(w|0))}}else Y=17}else{x=c[y+8>>2]|0;Y=17}while(0);do if((Y|0)==17){Y=0;if(!(a[L>>0]|0))v=oh(e,0,x,K)|0;else v=Wh(S,x,K)|0;x=(v|0)==0;if(!x?(It(e,v,y,O,M)|0)==0:0){x=c[M>>2]|0;if(!x){c[N>>2]=c[y+36>>2];x=N}n=y+20|0;if((c[n>>2]|0)>0){t=c[O>>2]|0;o=(t|0)==0;r=v+36|0;s=v+4|0;t=t+4|0;m=0;u=0;do{w=x+(u<<2)|0;if((c[w>>2]|0)==(b[H>>1]|0))c[w>>2]=-1;if(c[I>>2]|0){if(o)w=r;else w=(c[t>>2]|0)+(u<<1)|0;m=(av(e,c[v>>2]|0,c[(c[s>>2]|0)+((b[w>>1]|0)*24|0)>>2]|0,q)|0)==2&1}u=u+1|0}while((u|0)<(c[n>>2]|0));w=v}else{w=v;m=0}cs(e,q,c[v+32>>2]|0,0,c[w>>2]|0);c[D>>2]=(c[D>>2]|0)+1;if(!E)bv(e,q,v,c[O>>2]|0,y,x,g,-1,m);d:do if(!F){w=c[G>>2]|0;w=c[((w|0)==0?e:w)+528>>2]|0;do if(w){w=c[w>>2]|0;if((w|0)==(c[y+28>>2]|0)?(a[y+25>>0]|0)==7:0)break d;if((w|0)!=(c[y+32>>2]|0))break;if((a[y+26>>0]|0)==7)break d}while(0);bv(e,q,v,c[O>>2]|0,y,x,h,1,m)}while(0);ig(S,c[M>>2]|0);break}if(A)break a;if(a[B>>0]|0)break a;if(x){x=Kq(e)|0;w=y+20|0;n=c[w>>2]|0;m=(c[x+32>>2]|0)+1+n|0;if((n|0)>0){n=0;do{sh(x,76,C+(c[y+(n<<3)+36>>2]|0)|0,m,0)|0;n=n+1|0}while((n|0)<(c[w>>2]|0))}sh(x,134,d[y+24>>0]|0,-1,0)|0}}while(0);y=c[y+4>>2]|0}while((y|0)!=0);n=f;m=c[P>>2]|0}m=Zm(m+56|0,c[n>>2]|0,Q)|0;if((m|0)!=0?(p=c[m+8>>2]|0,T=S+65|0,(p|0)!=0):0){r=(k|0)!=0;s=e+408|0;t=e+20|0;u=e+68|0;v=(h|0)==0;w=(g|0)==0;x=r&1;q=R<<24>>24==0;do{c[X>>2]=0;c[W>>2]=0;if(!(r?(Zu(f,p,k,l)|0)==0:0))Y=57;do if((Y|0)==57){Y=0;n=p+24|0;if((((a[n>>0]|0)==0?(c[V>>2]&16777216|0)==0:0)?(c[s>>2]|0)==0:0)?(a[t>>0]|0)==0:0)break;if(It(e,f,p,X,W)|0){if(q)break a;if(!(a[T>>0]|0))break;else break a}m=lr(S,0,0,0)|0;if(m){H=c[p>>2]|0;c[m+24>>2]=H;o=m+16|0;c[o>>2]=c[H>>2];H=H+40|0;b[H>>1]=(b[H>>1]|0)+1<<16>>16;H=c[u>>2]|0;c[u>>2]=H+1;c[m+48>>2]=H;if(!v)cv(e,m,f,c[X>>2]|0,p,c[W>>2]|0,h,-1);if((!w?(U=a[p+x+25>>0]|0,cv(e,m,f,c[X>>2]|0,p,c[W>>2]|0,g,1),(a[n>>0]|0)==0):0)?!(U<<24>>24==7|U<<24>>24==9):0){H=c[s>>2]|0;a[((H|0)==0?e:H)+21>>0]=1}c[o>>2]=0;zo(S,m)}ig(S,c[W>>2]|0)}while(0);p=c[p+12>>2]|0}while((p|0)!=0)}}while(0);i=Z;return}function wt(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))ba();r=s;q=c[b+8>>2]|0;l=c[d+8>>2]|0;a:do if(a[d+44>>0]&32){if(l){k=l;while(1){if((a[k+51>>0]&3)==2){p=5;break a}k=c[k+20>>2]|0;if(!k){k=0;p=5;break}}}}else{k=0;p=5}while(0);if((p|0)==5?(l|0)!=0:0){n=(h|0)==0;o=0;d=0;m=-1;while(1){if(n){if((l|0)!=(k|0))p=10}else if(!((l|0)==(k|0)?1:(c[h+(o<<2)>>2]|0)==0))p=10;if((p|0)==10){p=0;m=Lt(b,l,f,0,1,r,d,m)|0;sh(q,111,o+g|0,m,e[((a[l+51>>0]&8)==0?l+48|0:l+46|0)>>1]|0)|0;Mt(b,c[r>>2]|0);d=l}l=c[l+20>>2]|0;if(!l)break;else o=o+1|0}}i=s;return}function xt(d,e,f,g,h,i,j,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=Kq(d)|0;q=c[e+8>>2]|0;if(!q){n=e+44|0;p=0}else{r=(l|0)!=0;n=e+44|0;s=r?17:1;t=w+4|0;u=w+32|0;p=0;v=0;m=q;while(1){o=i+(v<<2)|0;q=c[o>>2]|0;do if(q){if(c[m+36>>2]|0){sh(w,76,q,(c[u>>2]|0)+2|0,0)|0;q=c[o>>2]|0}sh(w,110,v+g|0,q,0)|0;if((a[m+51>>0]&3)==2){q=(a[n>>0]&32)!=0;if(q|r)p=q?s:16;else{p=1;break}}else if(r)p=16;else{p=1;break}q=c[t>>2]|0;if(!q)p=1;else{a[q+(((c[u>>2]|0)+-1|0)*20|0)+3>>0]=p;p=1}}while(0);m=c[m+20>>2]|0;if(!m)break;else v=v+1|0}}if(!(a[n>>0]&32)){o=h+1|0;n=d+19|0;m=a[n>>0]|0;if(!(m<<24>>24)){i=d+72|0;q=(c[i>>2]|0)+1|0;c[i>>2]=q}else{q=m+-1<<24>>24;a[n>>0]=q;q=c[d+((q&255)<<2)+24>>2]|0}n=e+38|0;sh(w,49,o,b[n>>1]|0,q)|0;if(!(p<<24>>24))st(w,e,0);$s(d,o,b[n>>1]|0);o=d+18|0;if(!(a[o>>0]|0))m=(j|0)!=0?5:3;else m=0;if(k)m=(m&255|8)&255;if(!l)n=m;else n=(m&255|16)&255;sh(w,75,f,q,h)|0;if(!(a[o>>0]|0))th(w,-1,c[e>>2]|0,0);m=c[w+4>>2]|0;if(m)a[m+(((c[w+32>>2]|0)+-1|0)*20|0)+3>>0]=n}return}function yt(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=i;i=i+64|0;if((i|0)>=(j|0))ba();R=Y+52|0;Q=Y+48|0;V=Y+8|0;U=Y;T=Y+40|0;W=Y+32|0;S=Y+24|0;if(((c[(c[d>>2]|0)+24>>2]&524288|0)!=0?(P=e+68|0,l=Zm((c[P>>2]|0)+56|0,c[e>>2]|0,Y+16|0)|0,(l|0)!=0):0)?(m=c[l+8>>2]|0,(m|0)!=0):0){O=(h|0)==0;H=(f|0)!=0;I=H&1;J=W+4|0;K=T+4|0;L=e+4|0;M=S+4|0;N=H?110:109;do{if(!(!O?(Zu(e,m,h,k)|0)==0:0)){E=c[d>>2]|0;D=a[m+I+25>>0]|0;F=D&255;G=m+(I<<2)+28|0;f=c[G>>2]|0;do if(!(D<<24>>24==0|(f|0)!=0)){c[R>>2]=0;c[Q>>2]=0;if(!(It(d,e,m,R,Q)|0)){r=m+20|0;if((c[r>>2]|0)>0){x=34352;w=c[x>>2]|0;x=c[x+4>>2]|0;z=34360;y=c[z>>2]|0;z=c[z+4>>2]|0;A=m+36|0;C=D<<24>>24!=6&(D<<24>>24!=9|H);B=0;o=0;l=0;n=0;do{f=V;c[f>>2]=w;c[f+4>>2]=x;f=U;c[f>>2]=y;c[f+4>>2]=z;f=c[Q>>2]|0;if(!f)f=A;else f=f+(B<<2)|0;q=c[f>>2]|0;s=c[R>>2]|0;if(!s)u=34368;else u=c[(c[L>>2]|0)+((b[(c[s+4>>2]|0)+(B<<1)>>1]|0)*24|0)>>2]|0;c[W>>2]=u;f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)>>2]|0;c[T>>2]=f;if(!u)t=0;else{v=u;while(1)if(!(a[v>>0]|0))break;else v=v+1|0;t=v-u&1073741823}c[J>>2]=t;if(!f)p=0;else{u=f;while(1)if(!(a[u>>0]|0))break;else u=u+1|0;p=u-f&1073741823}c[K>>2]=p;v=Vq(d,27,0,0,V)|0;v=Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0;n=os(E,n,Vq(d,79,v,Vq(d,27,0,0,T)|0,0)|0)|0;if(H){u=Vq(d,27,0,0,V)|0;u=Vq(d,122,u,Vq(d,27,0,0,W)|0,0)|0;v=Vq(d,27,0,0,U)|0;l=os(E,l,Vq(d,73,u,Vq(d,122,v,Vq(d,27,0,0,W)|0,0)|0,0)|0)|0}if(C){do if(D<<24>>24==8){f=c[(c[(c[m>>2]|0)+4>>2]|0)+(q*24|0)+4>>2]|0;if(!f){f=Vq(d,101,0,0,0)|0;break}else{f=Ir(E,f,0,0)|0;break}}else if(D<<24>>24==9){f=Vq(d,27,0,0,U)|0;f=Vq(d,122,f,Vq(d,27,0,0,W)|0,0)|0}else f=Vq(d,101,0,0,0)|0;while(0);o=hr(d,o,f)|0;ir(d,o,T,0)}B=B+1|0}while((B|0)<(c[r>>2]|0));f=m}else{f=m;o=0;l=0;n=0}ig(E,c[Q>>2]|0);v=c[c[f>>2]>>2]|0;if(!v)p=0;else{f=v;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;p=f-v&1073741823}if(D<<24>>24==6){c[S>>2]=v;c[M>>2]=p;f=pt(E,57,34376)|0;if(f)a[f+1>>0]=2;u=hr(d,0,f)|0;u=gr(d,u,lr(E,0,S,0)|0,n,0,0,0,0,0,0)|0;t=0}else{u=0;t=n}q=E+250|0;r=a[q>>0]|0;a[q>>0]=0;f=p+77|0;s=ih(E,f,0)|0;if(s){bw(s|0,0,f|0)|0;n=s+36|0;c[s+28>>2]=n;D=s+76|0;c[s+48>>2]=D;c[s+52>>2]=p;gw(D|0,v|0,p|0)|0;c[s+56>>2]=Ir(E,t,1,0)|0;c[s+60>>2]=Lr(E,o,1)|0;c[s+44>>2]=cr(E,u,1)|0;if(!l){f=s;l=0}else{l=Vq(d,19,l,0,0)|0;c[s+12>>2]=Ir(E,l,1,0)|0;f=s}}else{f=0;n=0}a[q>>0]=r;Ck(E,t);Ck(E,l);Jk(E,o);Ik(E,u,1);if((a[E+65>>0]|0)==1){Gk(E,f);f=0;break}if((F|0)==6)a[n>>0]=119;else if((F|0)==9?!H:0)a[n>>0]=109;else X=49;if((X|0)==49){X=0;a[n>>0]=110}c[n+4>>2]=f;F=c[P>>2]|0;c[s+20>>2]=F;c[s+24>>2]=F;c[G>>2]=f;a[s+8>>0]=N}else f=0}while(0);if(f)$u(d,f,e,g,2,0)}m=c[m+12>>2]|0}while((m|0)!=0)}i=Y;return}function zt(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=b[d+46>>1]|0;a:do if(f<<16>>16==(b[e+46>>1]|0)?(a[d+50>>0]|0)==(a[e+50>>0]|0):0){if(f<<16>>16){g=c[e+4>>2]|0;h=c[d+4>>2]|0;i=e+28|0;j=d+28|0;k=e+32|0;l=d+32|0;p=0;do{if((b[g+(p<<1)>>1]|0)!=(b[h+(p<<1)>>1]|0)){f=0;break a}if((a[(c[i>>2]|0)+p>>0]|0)!=(a[(c[j>>2]|0)+p>>0]|0)){f=0;break a}m=c[(c[k>>2]|0)+(p<<2)>>2]|0;n=c[(c[l>>2]|0)+(p<<2)>>2]|0;o=(n|0)==0;if(!m){if(!o){f=0;break a}}else{if(o){f=0;break a}if($c(m,n)|0){f=0;break a}}p=p+1|0}while((p|0)<(f&65535|0))}f=(yu(c[e+36>>2]|0,c[d+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function At(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[e+44>>0]&8))f=0;else{h=c[b+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[g>>2]|0;a:do if(!f)i=5;else while(1){if((c[f+4>>2]|0)==(e|0))break a;f=c[f>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=ih(c[b>>2]|0,16,0)|0;if(!f){f=0;break}c[f>>2]=c[g>>2];c[g>>2]=f;c[f+4>>2]=e;c[f+8>>2]=d;b=h+72|0;g=c[b>>2]|0;c[f+12>>2]=g+2;c[b>>2]=g+3}f=c[f+12>>2]|0}while(0);return f|0}function Bt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;g=b[e+36>>1]|0;h=c[a>>2]|0;f=c[e>>2]|0;if(g<<16>>16>-1){g=c[(c[e+4>>2]|0)+((g<<16>>16)*24|0)>>2]|0;c[k>>2]=f;c[k+4>>2]=g;g=1555;f=qh(h,27824,k)|0}else{c[k>>2]=f;g=2579;f=qh(h,34408,k)|0}vs(a,g,d,f,-1,2);i=l;return}function Ct(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[g>>2]|0;d=hr(b,h,Ir(c[b>>2]|0,d,0,0)|0)|0;if(d){b=(c[d>>2]|0)+-1|0;h=c[d+4>>2]|0;c[h+(b*20|0)+16>>2]=e;b=h+(b*20|0)+13|0;a[b>>0]=a[b>>0]&-5|f<<2&4}c[g>>2]=d;return}function Dt(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[e>>2]|0;if(!(g+-1&g)){i=_((g|0)==0?1:g<<1,d)|0;a=no(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[f>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){bw(a+(_(g,d)|0)|0,0,d|0)|0;c[f>>2]=g;c[e>>2]=(c[e>>2]|0)+1}return a|0}function Et(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;c[h>>2]=0;b=c[a+12>>2]|0;if((b|0)!=0?(d=c[b+24>>2]|0,(d|0)>0):0){c[h>>2]=d;b=d}else b=0;d=c[a+16>>2]|0;if((d|0)!=0?(e=c[d+24>>2]|0,(e|0)>(b|0)):0)c[h>>2]=e;f=a+4|0;b=a+20|0;if(!(c[f>>2]&2048)){d=c[b>>2]|0;if(d){pu(d,h);b=c[b>>2]|0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;do{b=c[(c[e+(d*20|0)>>2]|0)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[f>>2]=c[f>>2]|b}}else As(c[b>>2]|0,h);c[a+24>>2]=(c[h>>2]|0)+1;i=k;return}function Ft(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Kq(b)|0;i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h;b=ih(c[b>>2]|0,8,0)|0;if(b){i=b;c[i>>2]=e;c[i+4>>2]=f}th(g,sh(g,26,0,h,0)|0,b,-13);eq(g,1);if(!(a[(c[g>>2]|0)+65>>0]|0))Tg(c[g+16>>2]|0,d,-1,1,0)|0;sh(g,35,h,1,0)|0;return}function Gt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;d=c[b>>2]|0;e=d+16|0;f=c[(c[e>>2]|0)+20>>2]|0;do if(!f)d=0;else{if((a[d+63>>0]|0)!=0?(a[f+8>>0]|0)==0:0){Il(f);c[(c[e>>2]|0)+20>>2]=0;Ag(d);d=0;break}ph(b,32128,g);d=1}while(0);i=h;return d|0}function Ht(b){b=b|0;var e=0,f=0,g=0;if((a[b+63>>0]|0)!=0?(e=c[b+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[b+16>>2]|0;while(1){e=e+-1|0;b=c[f+4>>2]|0;if(b)po(b,c[g>>2]&28|d[f+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function It(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[g+20>>2]|0;m=c[g+40>>2]|0;if((x|0)==1){s=b[f+36>>1]|0;l=s<<16>>16;if(s<<16>>16>-1)if((m|0)!=0?($c(c[(c[f+4>>2]|0)+(l*24|0)>>2]|0,m)|0)!=0:0){v=0;y=8}else k=0;else{v=0;y=8}}else if(k){l=ih(c[d>>2]|0,x<<2,0)|0;if(!l)k=1;else{c[k>>2]=l;v=l;y=8}}else{v=0;y=8}a:do if((y|0)==8){k=c[f+8>>2]|0;b:do if(k){s=(m|0)==0;u=(x|0)>0;r=f+4|0;t=(v|0)==0;c:while(1){do if((e[k+46>>1]|0)==(x|0)?(a[k+50>>0]|0)!=0:0){if(s)if((a[k+51>>0]&3)==2){y=16;break c}else break;d:do if(u){n=c[k+4>>2]|0;o=c[r>>2]|0;p=c[k+32>>2]|0;q=0;while(1){f=b[n+(q<<1)>>1]|0;m=c[o+(f*24|0)+16>>2]|0;if($c(c[p+(q<<2)>>2]|0,(m|0)!=0?m:11152)|0){m=q;break d}m=c[o+(f*24|0)>>2]|0;l=0;while(1){f=l+1|0;if(!($c(c[g+(l<<3)+40>>2]|0,m)|0)){f=l;y=23;break}if((f|0)<(x|0))l=f;else break}if((y|0)==23){y=0;if(!t)c[v+(q<<2)>>2]=c[g+(f<<3)+36>>2]}m=q+1|0;if((f|0)==(x|0)){m=q;break d}if((m|0)<(x|0))q=m;else break}}else m=0;while(0);if((m|0)==(x|0))break c}while(0);k=c[k+20>>2]|0;if(!k)break b}if((y|0)==16)if(!(t|u^1)){l=0;do{c[v+(l<<2)>>2]=c[g+(l<<3)+36>>2];l=l+1|0}while((l|0)!=(x|0))}c[h>>2]=k;k=0;break a}while(0);if(!(a[d+438>>0]|0)){s=c[g+8>>2]|0;c[w>>2]=c[c[g>>2]>>2];c[w+4>>2]=s;ph(d,32008,w)}ig(c[d>>2]|0,v);k=1}while(0);i=z;return k|0}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))ba();h=k;if(!(c[d+12>>2]|0)){c[h>>2]=0;l=c[b>>2]|0;g=d+4|0;d=c[g>>2]|0;Vr(l,c[d+(e*24|0)+4>>2]|0,a[l+62>>0]|0,a[d+(e*24|0)+21>>0]|0,h)|0;d=c[h>>2]|0;if(d)th(b,-1,d,-8);if((a[(c[g>>2]|0)+(e*24|0)+21>>0]|0)==69)sh(b,39,f,0,0)|0}i=k;return}function Kt(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Oh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[g>>1]=e[g>>1]|f&255}return}function Lt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=c[d+8>>2]|0;r=c[e+12>>2]|0;do if(i){l=e+36|0;if(!(c[l>>2]|0)){c[i>>2]=0;break}else{c[i>>2]=ts(q)|0;c[d+96>>2]=f;p=d+100|0;c[p>>2]=(c[p>>2]|0)+1;ct(d,c[l>>2]|0,c[i>>2]|0,16);break}}while(0);if((h|0)!=0?(a[e+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[l>>1]|0;n=l&65535;o=d+60|0;h=c[o>>2]|0;p=d+56|0;i=c[p>>2]|0;if((i|0)<(n|0)){h=d+72|0;m=c[h>>2]|0;c[h>>2]=m+n;m=m+1|0}else{c[o>>2]=h+n;c[p>>2]=i-n;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[j+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[(c[k>>2]|0)+(l<<1)>>1]|0;if((b[(c[i>>2]|0)+(l<<1)>>1]|0)!=h<<16>>16)s=21}else{h=b[(c[k>>2]|0)+(l<<1)>>1]|0;s=21}if((s|0)==21){s=0;jt(q,r,f,h<<16>>16,l+m|0);Lq(q,39)|0}l=l+1|0}while((l|0)<(n|0))}if(g)sh(q,49,m,n,g)|0;$s(d,m,n);if((c[p>>2]|0)<(n|0)){c[p>>2]=n;c[o>>2]=m}return m|0}function Mt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[a+8>>2]|0;e=c[d+24>>2]|0;f=~b;if((b|0)<0?(g=c[e+112>>2]|0,(g|0)!=0):0)c[g+(f<<2)>>2]=c[d+32>>2];c[e+88>>2]=(c[d+32>>2]|0)+-1;Zt(a)}return}function Nt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;e=c[d+16>>2]|0;a:do if((e|0)!=0?(f=c[d+64>>2]|0,(f|0)!=0):0){e=c[e+8>>2]|0;b:do if(e){while(1){if(!($c(c[e>>2]|0,f)|0))break;e=c[e+20>>2]|0;if(!e)break b}c[d+68>>2]=e;e=0;break a}while(0);c[g>>2]=f;c[g+4>>2]=0;ph(b,28104,g);a[b+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function Ot(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Pt(a,b)|0;if(b&1){e=Ot(c[a+12>>2]|0,b)|0;return e+d+(Ot(c[a+16>>2]|0,b)|0)|0}}else d=0;return d|0} 7 function Pt(b,d){b=b|0;d=d|0;var e=0;if(d&1)if(!(c[b+12>>2]|0))d=(c[b+20>>2]|0)==0?12:28;else d=28;else d=48;if((c[b+4>>2]&1024|0)==0?(e=c[b+8>>2]|0,(e|0)!=0):0){b=e;while(1)if(!(a[b>>0]|0))break;else b=b+1|0;d=(d|1)+(b-e&1073741823)|0}return d+7&-8|0}function Qt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;h=e+20|0;d=c[h>>2]|0;if((d|0)>0){g=0;f=c[e+16>>2]|0;while(1){e=c[(c[f+12>>2]|0)+16>>2]|0;if(e){d=e;do{Rt(a,c[d+8>>2]|0,b);d=c[d>>2]|0}while((d|0)!=0);d=c[h>>2]|0}g=g+1|0;if((g|0)>=(d|0))break;else f=f+16|0}}return}function Rt(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=c[d+8>>2]|0;if(f){m=(e|0)==0;k=d+68|0;l=a+408|0;do{a:do if(!m){i=f+32|0;d=b[f+48>>1]|0;if(d<<16>>16){h=c[f+4>>2]|0;d=d&65535;g=0;do{if((b[h+(g<<1)>>1]|0)>-1?($c(c[(c[i>>2]|0)+(g<<2)>>2]|0,e)|0)==0:0){n=9;break a}g=g+1|0}while((g|0)<(d|0))}}else n=9;while(0);if((n|0)==9){n=0;d=c[a>>2]|0;g=c[k>>2]|0;b:do if(g){j=c[d+20>>2]|0;if((j|0)>0){h=c[d+16>>2]|0;i=0;while(1){d=i+1|0;if((c[h+(i<<4)+12>>2]|0)==(g|0)){d=i;break b}if((d|0)<(j|0))i=d;else break}}else d=0}else d=-1e6;while(0);j=c[l>>2]|0;wr(a,d);j=((j|0)==0?a:j)+328|0;c[j>>2]=c[j>>2]|1<<d;rs(a,f,-1)}f=c[f+20>>2]|0}while((f|0)!=0)}return}function St(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[(c[(c[a>>2]|0)+16>>2]|0)+(b<<4)+12>>2]|0;g=c[a+408>>2]|0;wr(a,b);g=((g|0)==0?a:g)+328|0;c[g>>2]=c[g>>2]|1<<b;g=a+68|0;e=c[g>>2]|0;c[g>>2]=e+3;dv(a,b,e,0,0);f=(c[a+72>>2]|0)+1|0;g=c[g>>2]|0;d=c[d+16>>2]|0;if(d)do{ev(a,c[d+8>>2]|0,0,e,f,g);d=c[d>>2]|0}while((d|0)!=0);fv(a,b);return}function Tt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=c[a>>2]|0;h=c[b+68>>2]|0;a:do if(h){i=c[e+20>>2]|0;if((i|0)>0){f=c[e+16>>2]|0;e=0;while(1){g=e+1|0;if((c[f+(e<<4)+12>>2]|0)==(h|0)){g=e;break a}if((g|0)<(i|0))e=g;else break}}else g=0}else g=-1e6;while(0);e=c[a+408>>2]|0;wr(a,g);e=((e|0)==0?a:e)+328|0;c[e>>2]=c[e>>2]|1<<g;e=a+68|0;f=c[e>>2]|0;c[e>>2]=f+3;if(!d)dv(a,g,f,c[b>>2]|0,28544);else dv(a,g,f,c[d>>2]|0,28536);ev(a,b,d,f,(c[a+72>>2]|0)+1|0,c[e>>2]|0);fv(a,g);return}function Ut(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;f=((d|0)/2|0)+1|0;f=ih(b,f,((f|0)<0)<<31>>31)|0;b=d+-1|0;if(f){if((b|0)>0){e=0;do{g=a[c+e>>0]|0;h=a[c+(e|1)>>0]|0;a[f+((e|0)/2|0)>>0]=(0-(h>>>6&1)&9)+h&15|(0-(g>>>6&1)&9)+g<<4;e=e+2|0}while((e|0)<(b|0));b=(d&-2|0)/2|0}else b=0;a[f+b>>0]=0}return f|0}function Vt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))ba();h=m+8|0;l=m;k=c[b+8>>2]|0;g=d+8|0;do if(!(c[d+4>>2]&1024)){g=c[g>>2]|0;d=fi(g,l)|0;if((d|0)!=0?!((d|0)==2&(e|0)!=0):0)if(!(Bc(g,29144,2)|0)){c[h>>2]=g;ph(b,29152,h);break}else{Wt(k,g,e,f);break}if(e){if((d|0)==2){d=0;g=-2147483648}else{d=l;d=$v(0,0,c[d>>2]|0,c[d+4>>2]|0)|0;g=C}e=l;c[e>>2]=d;c[e+4>>2]=g}d=ih(c[k>>2]|0,8,0)|0;if(d){e=l;h=c[e>>2]|0;e=c[e+4>>2]|0;g=d;b=g;a[b>>0]=h;a[b+1>>0]=h>>8;a[b+2>>0]=h>>16;a[b+3>>0]=h>>24;g=g+4|0;a[g>>0]=e;a[g+1>>0]=e>>8;a[g+2>>0]=e>>16;a[g+3>>0]=e>>24}th(k,sh(k,26,0,f,0)|0,d,-13)}else{d=c[g>>2]|0;sh(k,25,(e|0)==0?d:0-d|0,f,0)|0}while(0);i=m;return}function Wt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;if(d){g=d;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;Pl(d,k,g-d&1073741823,1)|0;if(e)h[k>>3]=-+h[k>>3];g=ih(c[b>>2]|0,8,0)|0;if(g){d=k;m=c[d>>2]|0;d=c[d+4>>2]|0;e=g;k=e;a[k>>0]=m;a[k+1>>0]=m>>8;a[k+2>>0]=m>>16;a[k+3>>0]=m>>24;e=e+4|0;a[e>>0]=d;a[e+1>>0]=d>>8;a[e+2>>0]=d>>16;a[e+3>>0]=d>>24}th(b,sh(b,133,0,f,0)|0,g,-12)}i=l;return}function Xt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))ba();g=m;a:do if(!d)k=0;else while(1){f=c[d+4>>2]|0;if(!(f&4096)){k=d;break a}if(!(f&262144))d=d+12|0;else d=c[(c[d+20>>2]|0)+4>>2]|0;d=c[d>>2]|0;if(!d){k=0;break}}while(0);b:do if(((a[b+23>>0]|0)!=0?(a[k>>0]|0)!=-97:0)?(c[g+0>>2]=0,c[g+4>>2]=0,c[g+8>>2]=0,c[g+12>>2]=0,c[g+16>>2]=0,c[g+20>>2]=0,f=g+20|0,a[f>>0]=2,c[g>>2]=78,c[g+4>>2]=79,c[g+24>>2]=0,ns(g,k)|0,(a[f>>0]|0)!=0):0){f=c[b+316>>2]|0;c[e>>2]=0;c:do if((f|0)!=0?(h=c[f>>2]|0,(h|0)>0):0){d=h;f=c[f+4>>2]|0;while(1){if((a[f+13>>0]&4)!=0?(yu(c[f>>2]|0,k,-1)|0)==0:0)break;d=d+-1|0;if((d|0)<=0)break c;else f=f+20|0}f=c[f+16>>2]|0;break b}while(0);d=b+72|0;f=(c[d>>2]|0)+1|0;c[d>>2]=f;Ct(b,k,f,1)}else l=18;while(0);do if((l|0)==18){d=b+19|0;f=a[d>>0]|0;if(!(f<<24>>24)){d=b+72|0;f=(c[d>>2]|0)+1|0;c[d>>2]=f}else{f=f+-1<<24>>24;a[d>>0]=f;f=c[b+((f&255)<<2)+24>>2]|0}d=es(b,k,f)|0;if((d|0)==(f|0)){c[e>>2]=f;break}else{Wr(b,f);c[e>>2]=0;f=d;break}}while(0);i=m;return f|0}function Yt(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0;l=Ku(b,d,e)|0;k=xu(d,gv(e)|0)|0;e=b+8|0;d=c[e>>2]|0;th(d,sh(d,f,h,i,g)|0,l,-4);e=c[e>>2]|0;d=c[e+4>>2]|0;if(d)a[d+(((c[e+32>>2]|0)+-1|0)*20|0)+3>>0]=k&255|j;return}function Zt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=b+100|0;c[d>>2]=(c[d>>2]|0)+-1;g=b+19|0;j=0;k=b+116|0;while(1){h=k+12|0;i=c[h>>2]|0;if((i|0)!=0?(c[k+8>>2]|0)>(c[d>>2]|0):0){e=k+6|0;if(a[e>>0]|0){f=a[g>>0]|0;if((f&255)<8){a[g>>0]=f+1<<24>>24;c[b+((f&255)<<2)+24>>2]=i}a[e>>0]=0}c[h>>2]=0}j=j+1|0;if((j|0)==10)break;else k=k+20|0}return}function _t(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=c[d>>2]|0;a:do if(e){b:while(1){g=c[e+4>>2]|0;if(g&512){e=0;k=21;break a}switch(a[e>>0]|0){case -97:{if((a[e+38>>0]|0)==95){k=7;break b}else k=8;break}case 38:case -98:{e=c[e+12>>2]|0;break}case 95:{k=7;break b}case 62:case -102:case -100:{k=8;break}default:k=11}if((k|0)==8){f=c[e+44>>2]|0;if(!f)k=11;else{k=9;break}}c:do if((k|0)==11){k=0;if(!(g&256)){e=0;k=21;break a}f=c[e+12>>2]|0;if((f|0)!=0?(c[f+4>>2]&256|0)!=0:0){e=f;continue b}h=c[e+16>>2]|0;f=c[e+20>>2]|0;if((f|0)!=0&(g&2048|0)==0?(i=c[f>>2]|0,(i|0)>0):0){f=c[f+4>>2]|0;g=0;while(1){e=c[f+(g*20|0)>>2]|0;g=g+1|0;if(c[e+4>>2]&256)break c;if((g|0)>=(i|0)){e=h;break}}}else e=h}while(0);if(!e){e=0;k=21;break a}}if((k|0)==7)e=ss(d,a[j+62>>0]|0,0,c[e+8>>2]|0)|0;else if((k|0)==9){e=b[e+32>>1]|0;if(e<<16>>16<=-1){e=0;k=21;break}e=Un(j,a[j+62>>0]|0,c[(c[f+4>>2]|0)+((e<<16>>16)*24|0)+16>>2]|0,0)|0}if(e)if(!(ss(d,a[(c[d>>2]|0)+62>>0]|0,e,c[e>>2]|0)|0))e=0;else k=21;else{e=0;k=21}}else{e=0;k=21}while(0);return e|0}function $t(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r+4|0;p=r;c[q>>2]=0;c[p>>2]=0;if((((h|0)!=0?(a[h>>0]|0)==-102:0)?(m=c[h+44>>2]|0,(m|0)!=0):0)?(a[m+44>>0]&16)!=0:0){h=m+60|0;while(1){h=c[h>>2]|0;if((c[h>>2]|0)==(d|0))break;else h=h+24|0}l=c[h+8>>2]|0;k=(c[l>>2]|0)+72|0;if((c[k>>2]|0)!=0?(o=f+24|0,n=gh(d,c[o>>2]|0)|0,(n|0)!=0):0){m=a[n>>0]|0;if(m<<24>>24){h=n;do{a[h>>0]=a[9328+(m&255)>>0]|0;h=h+1|0;m=a[h>>0]|0}while(m<<24>>24!=0)}g=pc[c[k>>2]&31](l,g,n,q,p)|0;ig(d,n);if(g){h=c[o>>2]|0;if(!h){h=37;l=0}else{l=h;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;h=(l-h&1073741823)+37|0;l=0}k=ih(d,h,l)|0;if(k){bw(k|0,0,h|0)|0;m=k+0|0;l=f+0|0;h=m+36|0;do{c[m>>2]=c[l>>2];m=m+4|0;l=l+4|0}while((m|0)<(h|0));m=k+36|0;c[k+24>>2]=m;h=c[o>>2]|0;if(!h)l=1;else{l=h;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=(l-h&1073741823)+1|0}gw(m|0,h|0,l|0)|0;c[k+12>>2]=c[q>>2];c[k+4>>2]=c[p>>2];p=k+2|0;b[p>>1]=e[p>>1]|16}else k=f}else k=f}else k=f}else k=f;i=r;return k|0}function au(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+80|0;if((i|0)>=(j|0))ba();x=z;v=z+72|0;o=z+52|0;w=z+48|0;n=z+28|0;y=Kq(b)|0;a:do if(!y)g=0;else{g=b+100|0;c[g>>2]=(c[g>>2]|0)+1;g=d+4|0;if(!(c[g>>2]&32)){q=Kq(b)|0;m=b+80|0;h=c[m>>2]|0;c[m>>2]=h+1;h=sh(q,44,h,0,0)|0}else h=-1;if((a[b+450>>0]|0)==2){l=c[b>>2]|0;m=(a[d>>0]|0)==75?29104:29112;q=c[b+468>>2]|0;c[x>>2]=(h|0)>-1?10360:29088;c[x+4>>2]=m;c[x+8>>2]=q;l=qh(l,29056,x)|0;th(y,sh(y,157,c[b+464>>2]|0,0,0)|0,l,-1);l=d}else l=d;m=a[l>>0]|0;b:do if(m<<24>>24==75){n=d+12|0;k=gv(c[n>>2]|0)|0;a[v>>0]=k;s=b+68|0;t=c[s>>2]|0;c[s>>2]=t+1;s=d+28|0;c[s>>2]=t;r=(f|0)!=0;t=sh(y,57,t,r&1^1,0)|0;if(r)u=0;else u=Ns(c[b>>2]|0,1,1)|0;m=d+20|0;do if(!(c[g>>2]&2048)){m=c[m>>2]|0;if(m){if(!(k<<24>>24))a[v>>0]=65;if(u)c[u+20>>2]=_t(b,c[n>>2]|0)|0;f=b+19|0;k=a[f>>0]|0;if(k<<24>>24){q=k+-1<<24>>24;a[f>>0]=q;l=c[b+((q&255)<<2)+24>>2]|0;if(!(q<<24>>24))p=24;else{q=k+-2<<24>>24;a[f>>0]=q;q=c[b+((q&255)<<2)+24>>2]|0}}else{p=b+72|0;l=(c[p>>2]|0)+1|0;c[p>>2]=l;p=24}if((p|0)==24){p=b+72|0;q=(c[p>>2]|0)+1|0;c[p>>2]=q}if(r)sh(y,28,0,q,0)|0;n=c[m>>2]|0;if((n|0)>0){k=x+20|0;g=x+4|0;p=x+24|0;o=y+32|0;f=c[m+4>>2]|0;while(1){m=c[f>>2]|0;do if((h|0)>-1){c[x+0>>2]=0;c[x+4>>2]=0;c[x+8>>2]=0;c[x+12>>2]=0;c[x+16>>2]=0;c[x+20>>2]=0;a[k>>0]=1;c[x>>2]=78;c[g>>2]=79;c[p>>2]=0;ns(x,m)|0;if(a[k>>0]|0)break;vh(y,h);h=-1}while(0);do if(r)if(!(Is(m,w)|0)){m=es(b,m,l)|0;sh(y,38,m,(c[o>>2]|0)+2|0,0)|0;sh(y,75,c[s>>2]|0,q,m)|0;break}else{sh(y,84,c[s>>2]|0,q,c[w>>2]|0)|0;break}else{m=es(b,m,l)|0;th(y,sh(y,49,m,1,q)|0,v,1);$s(b,m,1);sh(y,110,c[s>>2]|0,q,0)|0}while(0);n=n+-1|0;if((n|0)<=0)break;else f=f+20|0}}Wr(b,l);Wr(b,q)}if(!u){k=h;g=0;break b}}else{l=c[m>>2]|0;q=c[s>>2]|0;a[o>>0]=11;c[o+4>>2]=q;c[o+8>>2]=0;c[o+12>>2]=0;a[o+1>>0]=k;c[l+8>>2]=0;if(!(er(b,l,o)|0)){c[u+20>>2]=Ku(b,c[n>>2]|0,c[c[(c[l>>2]|0)+4>>2]>>2]|0)|0;break}if(!u){g=0;break a}q=(c[u>>2]|0)+-1|0;c[u>>2]=q;if(q){g=0;break a}Sc(u);g=0;break a}while(0);th(y,t,u,-6);k=h;g=0}else{k=c[d+20>>2]|0;l=b+72|0;g=(c[l>>2]|0)+1|0;c[l>>2]=g;a[n>>0]=0;l=n+4|0;c[l>>2]=g;a[n+1>>0]=0;f=n+8|0;c[f>>2]=0;c[n+12>>2]=0;if(m<<24>>24==119){a[n>>0]=10;c[f>>2]=g;sh(y,28,0,g,0)|0}else{a[n>>0]=3;sh(y,25,0,g,0)|0}q=k+60|0;Ck(c[b>>2]|0,c[q>>2]|0);c[q>>2]=Vq(b,132,0,0,20624)|0;c[k+8>>2]=0;if(er(b,k,n)|0){g=0;break a}k=h;g=c[l>>2]|0}while(0);if(e)hv(y,c[d+28>>2]|0,e);if((k|0)>-1){h=c[y+32>>2]|0;if(h>>>0>k>>>0)c[(c[y+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[y+24>>2]|0)+88>>2]=h+-1}Zt(b)}while(0);i=z;return g|0}function bu(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))ba();m=y+4|0;v=y+8|0;t=y;c[m>>2]=0;x=c[b+8>>2]|0;h=(f|0)==(g|0);l=iv(b,e,3,h?0:m)|0;a[v>>0]=jv(e)|0;n=b+100|0;c[n>>2]=(c[n>>2]|0)+1;n=b+19|0;k=a[n>>0]|0;if(!(k<<24>>24)){r=b+72|0;w=(c[r>>2]|0)+1|0;c[r>>2]=w}else{w=k+-1<<24>>24;a[n>>0]=w;w=c[b+((w&255)<<2)+24>>2]|0}k=e+12|0;Nq(b,c[k>>2]|0,w);do if((l|0)==5){r=c[e+20>>2]|0;p=_t(b,c[k>>2]|0)|0;s=ts(x)|0;q=(g|0)!=(f|0);if(q){k=a[n>>0]|0;if(!(k<<24>>24)){o=b+72|0;k=(c[o>>2]|0)+1|0;c[o>>2]=k}else{k=k+-1<<24>>24;a[n>>0]=k;k=c[b+((k&255)<<2)+24>>2]|0}sh(x,85,w,w,k)|0;o=k}else o=0;if((c[r>>2]|0)>0){n=r+4|0;m=(o|0)==0;l=x+4|0;k=x+32|0;h=0;do{e=Xt(b,c[(c[n>>2]|0)+(h*20|0)>>2]|0,t)|0;if(!m?(Qu(c[(c[n>>2]|0)+(h*20|0)>>2]|0)|0)!=0:0)sh(x,85,o,e,o)|0;if((h|0)<((c[r>>2]|0)+-1|0)|q){th(x,sh(x,79,w,s,e)|0,p,-4);e=c[l>>2]|0;if(e)a[e+(((c[k>>2]|0)+-1|0)*20|0)+3>>0]=a[v>>0]|0}else{th(x,sh(x,78,w,f,e)|0,p,-4);e=c[l>>2]|0;if(e)a[e+(((c[k>>2]|0)+-1|0)*20|0)+3>>0]=d[v>>0]|0|16}Wr(b,c[t>>2]|0);h=h+1|0}while((h|0)<(c[r>>2]|0))}if(o){sh(x,76,o,g,0)|0;sh(x,16,0,f,0)|0}k=c[x+24>>2]|0;h=~s;if((s|0)<0?(u=c[k+112>>2]|0,(u|0)!=0):0)c[u+(h<<2)>>2]=c[x+32>>2];c[k+88>>2]=(c[x+32>>2]|0)+-1;Wr(b,o)}else{do if(Qu(c[k>>2]|0)|0){if(h){sh(x,76,w,f,0)|0;break}k=sh(x,77,w,0,0)|0;sh(x,108,c[e+28>>2]|0,f,0)|0;sh(x,16,0,g,0)|0;h=c[x+32>>2]|0;if(h>>>0>k>>>0)c[(c[x+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[x+24>>2]|0)+88>>2]=h+-1}while(0);if((l|0)==1){sh(x,38,w,f,0)|0;sh(x,70,c[e+28>>2]|0,f,w)|0;break}th(x,sh(x,48,w,1,0)|0,v,1);h=c[e+28>>2]|0;if(!(c[m>>2]|0)){th(x,sh(x,68,h,f,w)|0,1,-14);break}k=sh(x,69,h,0,w)|0;th(x,k,1,-14);sh(x,76,c[m>>2]|0,g,0)|0;sh(x,16,0,f,0)|0;h=c[x+32>>2]|0;if(h>>>0>k>>>0)c[(c[x+4>>2]|0)+(k*20|0)+8>>2]=h;c[(c[x+24>>2]|0)+88>>2]=h+-1}while(0);Wr(b,w);Zt(b);i=y;return}function cu(f,g){f=f|0;g=g|0;var k=0,l=0,m=0,n=0,o=0,p=0.0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+48|0;if((i|0)>=(j|0))ba();B=C;z=C+28|0;k=c[f+24>>2]|0;A=c[k>>2]|0;x=g+4|0;n=c[x>>2]|0;a:do if(!(n&4)){c[x>>2]=n|4;switch(d[g>>0]|0){case 27:{k=kv(A,0,0,c[g+8>>2]|0,k,g)|0;break a}case 122:{l=c[g+16>>2]|0;if((a[l>>0]|0)==27){n=l;l=g;m=0}else{n=c[l+16>>2]|0;m=c[(c[g+12>>2]|0)+8>>2]|0}k=kv(A,m,c[(c[l+12>>2]|0)+8>>2]|0,c[n+8>>2]|0,k,g)|0;break a}case 135:{l=k+28|0;k=b[l>>1]|0;if(k&4){c[B>>2]=27456;ph(A,27472,B);k=b[l>>1]|0}if(k&16){c[B>>2]=27456;ph(A,27512,B)}break}case 153:{w=g+20|0;t=c[w>>2]|0;if(!t)m=0;else m=c[t>>2]|0;n=a[(c[A>>2]|0)+62>>0]|0;y=k+28|0;if(b[y>>1]&16){c[B>>2]=27200;ph(A,27512,B)}u=c[g+8>>2]|0;if(!u)r=0;else{o=u;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;r=o-u&1073741823}l=Oh(c[A>>2]|0,u,r,m,n,0)|0;do if(!l){if(Oh(c[A>>2]|0,u,r,-2,n,0)|0){c[B>>2]=r;c[B+4>>2]=u;ph(A,27392,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1;break}if(!(a[(c[A>>2]|0)+145>>0]|0)){c[B>>2]=r;c[B+4>>2]=u;ph(A,27368,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1}}else{q=(c[l+12>>2]|0)==0;v=l+2|0;do if(b[v>>1]&1024){c[x>>2]=c[x>>2]|266240;if((m|0)!=2){c[g+28>>2]=(a[c[l+24>>2]>>0]|0)==117?8388608:125829120;break}o=c[(c[t+4>>2]|0)+20>>2]|0;h[B>>3]=-1.0;if((a[o>>0]|0)==-123){n=c[o+8>>2]|0;if(!n)o=0;else{o=n;while(1)if(!(a[o>>0]|0))break;else o=o+1|0;o=o-n&1073741823}Pl(n,B,o,1)|0;p=+h[B>>3];if(!(p>1.0)){o=~~(p*134217728.0);c[g+28>>2]=o;if((o|0)>=0)break}else s=22}else s=22;if((s|0)==22)c[g+28>>2]=-1;ph(A,27216,B);s=k+24|0;c[s>>2]=(c[s>>2]|0)+1}while(0);o=l+24|0;n=Oq(A,31,0,c[o>>2]|0,0)|0;if(!n){if(b[v>>1]&2048)c[x>>2]=c[x>>2]|524288;if(!q)break;o=b[y>>1]|0;if(!(o&1)){c[B>>2]=r;c[B+4>>2]=u;ph(A,27328,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1;break}b[y>>1]=o&65534;hu(f,t)|0;a[g>>0]=-101;n=g+38|0;a[n>>0]=0;b:do if(k){m=B+24|0;l=z+4|0;o=z+8|0;while(1){u=c[k+4>>2]|0;c[B+0>>2]=0;c[B+4>>2]=0;c[B+8>>2]=0;c[B+12>>2]=0;c[B+16>>2]=0;c[B+20>>2]=0;c[B>>2]=87;c[m>>2]=z;c[z>>2]=u;c[l>>2]=0;c[o>>2]=0;hu(B,c[w>>2]|0)|0;if((c[l>>2]|0)>0)break;if(!(c[o>>2]|0))break;a[n>>0]=(a[n>>0]|0)+1<<24>>24;k=c[k+16>>2]|0;if(!k)break b}u=k+28|0;b[u>>1]=e[v>>1]&4096|e[u>>1]|2}while(0);b[y>>1]=e[y>>1]|1;k=1;break a}else if((n|0)==1){c[B>>2]=c[o>>2];ph(A,27288,B);u=k+24|0;c[u>>2]=(c[u>>2]|0)+1}a[g>>0]=101;k=1;break a}while(0);hu(f,t)|0;k=1;break a}case 75:case 20:case 119:{if(n&2048){o=k+20|0;l=c[o>>2]|0;m=k+28|0;n=b[m>>1]|0;if(n&4){c[B>>2]=27440;ph(A,27472,B);n=b[m>>1]|0}if(n&16){c[B>>2]=27440;ph(A,27512,B)}gu(f,c[g+20>>2]|0)|0;if((l|0)!=(c[o>>2]|0))c[x>>2]=c[x>>2]|32}break}default:{}}if(!(c[A+64>>2]|0))k=(a[(c[A>>2]|0)+65>>0]|0)!=0?2:0;else k=2}else k=1;while(0);i=C;return k|0}function du(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;M=i;i=i+80|0;if((i|0)>=(j|0))ba();L=M;J=M+64|0;E=M+32|0;m=b[f+6>>1]|0;h=m&65535;a:do if(!(h&2)){D=c[d+24>>2]|0;K=c[d+12>>2]|0;d=c[K>>2]|0;if(!(h&16)){zs(K,f,D);if(c[K+64>>2]|0){g=2;break}g=(a[d+65>>0]|0)!=0?2:1;break}F=f+52|0;g=(c[F>>2]|0)!=0;G=(f|0)==0;b:do if(!G){h=E+28|0;o=E+4|0;A=E+16|0;B=E+8|0;w=d+65|0;v=K+492|0;u=(D|0)==0;t=L+4|0;s=L+12|0;r=L+24|0;q=K+64|0;x=f;c:while(1){y=x+6|0;b[y>>1]=m&65535|2;c[E+0>>2]=0;c[E+4>>2]=0;c[E+8>>2]=0;c[E+12>>2]=0;c[E+16>>2]=0;c[E+20>>2]=0;c[E+24>>2]=0;c[E+28>>2]=0;c[E>>2]=K;if(hs(E,c[x+60>>2]|0)|0){g=2;break a}if(hs(E,c[x+64>>2]|0)|0){g=2;break a}m=c[x+32>>2]|0;if(b[y>>1]&8192){z=x+48|0;c[(c[m+28>>2]|0)+48>>2]=c[z>>2];c[z>>2]=0}z=x+32|0;if((c[m>>2]|0)>0){p=0;do{k=c[m+(p*72|0)+28>>2]|0;if(k){d=c[v>>2]|0;if(u)n=0;else{n=0;l=D;do{n=(c[l+20>>2]|0)+n|0;l=c[l+16>>2]|0}while((l|0)!=0)}l=c[m+(p*72|0)+16>>2]|0;if(l)c[v>>2]=l;c[L+0>>2]=0;c[L+4>>2]=0;c[L+8>>2]=0;c[L+12>>2]=0;c[L+16>>2]=0;c[L+20>>2]=0;c[L>>2]=82;c[t>>2]=83;c[s>>2]=K;c[r>>2]=D;gu(L,k)|0;c[v>>2]=d;if(c[q>>2]|0){g=2;break a}if(a[w>>0]|0){g=2;break a}if(!u){l=D;do{n=n-(c[l+20>>2]|0)|0;l=c[l+16>>2]|0}while((l|0)!=0)}m=m+(p*72|0)+45|0;a[m>>0]=a[m>>0]&-3|((n|0)!=0&1)<<1&255;m=c[z>>2]|0}p=p+1|0}while((p|0)<(c[m>>2]|0))}b[h>>1]=1;c[o>>2]=m;c[A>>2]=D;n=c[x>>2]|0;if((c[n>>2]|0)>0){m=n+4|0;l=0;do{if(hs(E,c[(c[m>>2]|0)+(l*20|0)>>2]|0)|0){g=2;break a}l=l+1|0}while((l|0)<(c[n>>2]|0))}k=c[x+40>>2]|0;m=(k|0)!=0;n=b[h>>1]|0;if(!m?(C=n&65535,(C&2|0)==0):0)b[h>>1]=C&65534;else b[y>>1]=n&4096|e[y>>1]|4;n=c[x+44>>2]|0;if(!((n|0)==0|m)){H=32;break}c[B>>2]=c[x>>2];if(hs(E,n)|0){g=2;break a}if(hs(E,c[x+36>>2]|0)|0){g=2;break a}c[A>>2]=0;b[h>>1]=e[h>>1]|1;if(b[y>>1]&8192){z=(c[(c[z>>2]|0)+28>>2]|0)+48|0;c[x+48>>2]=c[z>>2];c[z>>2]=0}if(!g?(mv(E,x,c[x+48>>2]|0,26880)|0)!=0:0){g=2;break a}if(a[w>>0]|0){g=2;break a}do if(m){if(mv(E,x,k,26888)|0){g=2;break a}if(a[w>>0]|0){g=2;break a}l=c[k>>2]|0;if((l|0)<=0)break;n=0;m=c[k+4>>2]|0;while(1){if(c[(c[m>>2]|0)+4>>2]&2){H=46;break c}n=n+1|0;if((n|0)>=(l|0))break;else m=m+20|0}}while(0);l=c[x+52>>2]|0;if(!l)break b;x=l;m=b[l+6>>1]|0}if((H|0)==32){ph(K,26832,L);g=2;break a}else if((H|0)==46){ph(K,26896,L);g=2;break a}}while(0);if(g?(I=c[f+48>>2]|0,(I|0)!=0):0){C=c[K>>2]|0;h=c[I>>2]|0;if((h|0)>(c[C+96>>2]|0)){ph(K,26960,L);g=2;break}if((h|0)>0){d=I+4|0;g=0;do{h=(c[d>>2]|0)+(g*20|0)+13|0;a[h>>0]=a[h>>0]&-2;g=g+1|0;h=c[I>>2]|0}while((g|0)<(h|0))}c[f+56>>2]=0;g=c[F>>2]|0;if(!g)if(G)d=I+4|0;else H=60;else while(1){c[g+56>>2]=f;f=c[g+52>>2]|0;if(!f){f=g;H=60;break}else{B=g;g=f;f=B}}d:do if((H|0)==60){d=I+4|0;u=C+65|0;v=L+4|0;w=L+8|0;x=L+28|0;y=L+24|0;z=L+4|0;t=f;e:while(1){s=c[t>>2]|0;if((h|0)<=0)break d;q=t+32|0;g=0;p=0;r=c[d>>2]|0;while(1){c[J>>2]=-1;o=r+13|0;do if(!(a[o>>0]&1)){h=c[r>>2]|0;f:do if(!h)h=0;else while(1){f=c[h+4>>2]|0;if(!(f&4096))break f;if(!(f&262144))h=h+12|0;else h=c[(c[h+20>>2]|0)+4>>2]|0;h=c[h>>2]|0;if(!h){h=0;break}}while(0);if(!(Is(h,J)|0)){f=nv(s,h)|0;c[J>>2]=f;if(!f){n=Ir(C,h,0,0)|0;if(!(a[u>>0]|0)){k=c[t>>2]|0;c[L+0>>2]=0;c[L+4>>2]=0;c[L+8>>2]=0;c[L+12>>2]=0;c[L+16>>2]=0;c[L+20>>2]=0;c[L+24>>2]=0;c[L+28>>2]=0;c[L>>2]=K;c[v>>2]=c[q>>2];c[w>>2]=k;b[x>>1]=1;c[y>>2]=0;A=(c[K>>2]|0)+68|0;f=a[A>>0]|0;a[A>>0]=1;B=hs(L,n)|0;a[A>>0]=f;g:do if(!B){m=k+4|0;l=c[k>>2]|0;k=0;while(1){if((k|0)>=(l|0)){f=0;break g}f=k+1|0;if((yu(c[(c[m>>2]|0)+(k*20|0)>>2]|0,n,-1)|0)<2)break;else k=f}}else f=0;while(0);c[J>>2]=f}else f=0;Ck(C,n)}if((f|0)<=0){f=1;break}}else{k=c[J>>2]|0;f=c[s>>2]|0;if((k|0)<1|(k|0)>(f|0))break e;else f=k}c[L>>2]=0;c[z>>2]=0;k=jr(C,132,L,0)|0;if(!k){g=2;break a}l=k+4|0;c[l>>2]=c[l>>2]|1024;c[k+8>>2]=f;l=c[r>>2]|0;if((l|0)==(h|0))c[r>>2]=k;else c[l+12>>2]=k;Ck(C,h);b[r+16>>1]=f;a[o>>0]=a[o>>0]|1;f=p}else f=p;while(0);g=g+1|0;h=c[I>>2]|0;if((g|0)>=(h|0))break;else{p=f;r=r+20|0}}t=c[t+56>>2]|0;if(!((t|0)!=0&(f|0)!=0))break d}c[L>>2]=g+1;c[L+4>>2]=26880;c[L+8>>2]=f;ph(K,27064,L);g=2;break a}while(0);f=0;while(1){if((f|0)>=(h|0)){g=1;break a}g=f+1|0;if(!(a[(c[d>>2]|0)+(f*20|0)+13>>0]&1))break;else f=g}c[L>>2]=g;ph(K,27e3,L);g=2}else g=1}else g=1;while(0);i=M;return g|0}function eu(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))ba();w=z;x=c[e>>2]|0;a:do if(f){s=c[f>>2]|0;e=s*24|0;k=ih(x,e,0)|0;if(k)bw(k|0,0,e|0)|0;b[g>>1]=s;c[h>>2]=k;if((s|0)>0){q=f+4|0;t=x+65|0;e=0;r=k;while(1){n=c[q>>2]|0;f=c[n+(e*20|0)>>2]|0;b:do if(!f)f=0;else while(1){l=c[f+4>>2]|0;if(!(l&4096))break b;if(!(l&262144))f=f+12|0;else f=c[(c[f+20>>2]|0)+4>>2]|0;f=c[f>>2]|0;if(!f){f=0;break}}while(0);l=c[n+(e*20|0)+4>>2]|0;do if(!l){while(1){l=a[f>>0]|0;if(l<<24>>24==27){y=24;break}else if(l<<24>>24==-102){v=f;y=18;break}else if(l<<24>>24!=122)break;f=c[f+16>>2]|0}if((y|0)==24){y=0;c[w>>2]=c[f+8>>2];f=qh(x,10344,w)|0;break}if((y|0)==18?(y=0,u=c[v+44>>2]|0,(u|0)!=0):0){f=b[v+32>>1]|0;if(f<<16>>16<0)f=b[u+36>>1]|0;else f=f<<16>>16;if((f|0)>-1)f=c[(c[u+4>>2]|0)+(f*24|0)>>2]|0;else f=20456;c[w>>2]=f;f=qh(x,10344,w)|0;break}c[w>>2]=c[n+(e*20|0)+8>>2];f=qh(x,10344,w)|0}else f=gh(x,l)|0;while(0);if(a[t>>0]|0)break;if(!f){m=0;f=0}else{l=f;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;m=l-f&1073741823}c:do if((e|0)>0){l=0;n=0;o=m;p=f;while(1){if(!($c(c[k+(n*24|0)>>2]|0,p)|0)){f=o;while(1){m=f+-1|0;if((m|0)<=1)break;if(((d[p+m>>0]|0)+-48|0)>>>0<10)f=m;else break}if((f|0)>0)m=(a[p+m>>0]|0)==58?m:o;else m=o;a[p+m>>0]=0;l=l+1|0;c[w>>2]=p;c[w+4>>2]=l;f=qh(x,26824,w)|0;ig(x,p);if(!f){f=0;break c}else n=-1}else{m=o;f=p}n=n+1|0;if((n|0)>=(e|0))break;else{o=m;p=f}}}while(0);c[r>>2]=f;e=e+1|0;if((e|0)<(s|0))r=r+24|0;else{f=t;break a}}ig(x,f);f=t}else y=6}else{b[g>>1]=0;c[h>>2]=0;k=0;y=6}while(0);if((y|0)==6){f=x+65|0;e=0}if(a[f>>0]|0){if((e|0)>0){f=0;do{ig(x,c[k+(f*24|0)>>2]|0);f=f+1|0}while((f|0)!=(e|0))}ig(x,k);c[h>>2]=0;b[g>>1]=0}i=z;return}function fu(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=i;i=i+32|0;if((i|0)>=(j|0))ba();q=r;p=c[e>>2]|0;if(!(a[p+65>>0]|0)){c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=0;c[q+24>>2]=0;c[q+28>>2]=0;c[q+4>>2]=c[g+32>>2];m=c[(c[g>>2]|0)+4>>2]|0;l=f+38|0;if((b[l>>1]|0)>0){g=0;h=0;n=0;o=c[f+4>>2]|0;while(1){k=c[m+(n*20|0)>>2]|0;s=o+22|0;c[o+12>>2]=gh(p,uu(q,k,s)|0)|0;g=fw(d[s>>0]|0,0,g|0,h|0)|0;h=C;s=gv(k)|0;a[o+21>>0]=s<<24>>24==0?65:s;k=_t(e,k)|0;if(k)c[o+16>>2]=gh(p,c[k>>2]|0)|0;n=n+1|0;if((n|0)>=(b[l>>1]|0))break;else o=o+24|0}h=ew(g|0,h|0,2)|0;g=C}else{h=0;g=0}b[f+42>>1]=bs(h,g)|0}i=r;return}function gu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;do if(!b)d=0;else{g=a+4|0;e=c[g>>2]|0;if((e|0)==0?(c[a+8>>2]|0)==0:0){d=0;break}j=a+16|0;c[j>>2]=(c[j>>2]|0)+1;h=a+8|0;a:while(1){if((e|0)!=0?(d=nc[e&127](a,b)|0,(d|0)!=0):0){k=24;break}if(hu(a,c[b>>2]|0)|0){k=19;break}if(ns(a,c[b+36>>2]|0)|0){k=19;break}if(hu(a,c[b+40>>2]|0)|0){k=19;break}if(ns(a,c[b+44>>2]|0)|0){k=19;break}if(hu(a,c[b+48>>2]|0)|0){k=19;break}if(ns(a,c[b+60>>2]|0)|0){k=19;break}if(ns(a,c[b+64>>2]|0)|0){k=19;break}e=c[b+32>>2]|0;if((e|0)!=0?(i=c[e>>2]|0,(i|0)>0):0){f=i;e=e+8|0;while(1){if(gu(a,c[e+20>>2]|0)|0){k=19;break a}f=f+-1|0;if((f|0)<=0)break;else e=e+72|0}}e=c[h>>2]|0;if(e)fc[e&15](a,b);b=c[b+52>>2]|0;if(!b){d=0;break}e=c[g>>2]|0}if((k|0)==19){c[j>>2]=(c[j>>2]|0)+-1;d=2;break}else if((k|0)==24)d=d&2;c[j>>2]=(c[j>>2]|0)+-1}while(0);return d|0}function hu(a,b){a=a|0;b=b|0;var d=0;a:do if((b|0)!=0?(d=c[b>>2]|0,(d|0)>0):0){b=c[b+4>>2]|0;while(1){if(ns(a,c[b>>2]|0)|0){d=2;break a}d=d+-1|0;if((d|0)<=0){d=0;break}else b=b+20|0}}else d=0;while(0);return d|0}function iu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;c[b>>2]=0;if((c[a+4>>2]&1|0)==0?(Is(a,b)|0)!=0:0)a=(c[b>>2]|0)==0&1;else a=0;i=d;return a|0}function ju(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();q=s;l=c[g+12>>2]|0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=200;a[q+24>>0]=1;a[q+25>>0]=0;c[q>>2]=c[d>>2];o=g+46|0;if(b[o>>1]|0){p=g+4|0;m=l+4|0;r=0;do{n=c[(c[m>>2]|0)+((b[(c[p>>2]|0)+(r<<1)>>1]|0)*24|0)>>2]|0;if(r)Ok(q,28920,2);k=c[l>>2]|0;if(!k)h=0;else{h=k;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-k&1073741823}Ok(q,k,h);Ok(q,28928,1);if(!n)h=0;else{h=n;while(1)if(!(a[h>>0]|0))break;else h=h+1|0;h=h-n&1073741823}Ok(q,n,h);r=r+1|0}while((r|0)<(e[o>>1]|0))}r=pg(q)|0;vs(d,(a[g+51>>0]&3)==2?1555:2067,f,r,-1,2);i=s;return}function ku(a,b){a=a|0;b=b|0;return 0}function lu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))ba();q=r+8|0;o=r;p=f+52|0;a:do if((c[p>>2]|0)!=0?(h=c[f+48>>2]|0,!((h|0)==0|(f|0)==0)):0){g=f;while(1){n=a[g+4>>0]|0;if(!(n<<24>>24==119|n<<24>>24==116))break;g=c[g+52>>2]|0;if(!g){g=0;break a}}k=c[h+4>>2]|0;g=c[h>>2]|0;while(1){h=g+-1|0;if((g|0)<=0){g=0;break a}if(!(c[(c[k+(h*20|0)>>2]|0)+4>>2]&256))g=h;else break}if((g|0)>=1){g=c[d+12>>2]|0;l=c[g>>2]|0;d=ih(l,72,0)|0;if(d){m=d+0|0;n=m+72|0;do{a[m>>0]=0;m=m+1|0}while((m|0)<(n|0));k=o;c[k>>2]=0;c[k+4>>2]=0;k=fr(g,0,0,0,o,d,0,0)|0;if(k){m=d+0|0;h=f+0|0;n=m+72|0;do{c[m>>2]=c[h>>2];m=m+4|0;h=h+4|0}while((m|0)<(n|0));c[f+32>>2]=k;c[q>>2]=0;c[q+4>>2]=0;c[f>>2]=hr(g,0,jr(l,116,q,0)|0)|0;a[f+4>>0]=119;c[f+36>>2]=0;c[d+40>>2]=0;c[d+44>>2]=0;c[d+48>>2]=0;c[p>>2]=0;c[f+56>>2]=0;g=f+6|0;b[g>>1]=(e[g>>1]|0)&57279|8192;c[(c[d+52>>2]|0)+56>>2]=d;c[d+60>>2]=0;c[d+64>>2]=0;g=0}else g=2}else g=2}else g=0}else g=0;while(0);i=r;return g|0}function mu(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;X=i;i=i+32|0;if((i|0)>=(j|0))ba();W=X;T=X+16|0;G=f+12|0;V=c[G>>2]|0;U=c[V>>2]|0;R=g+6|0;n=e[R>>1]|0;b[R>>1]=n|16;S=U+65|0;a:do if(!(a[S>>0]|0)){F=g+32|0;P=c[F>>2]|0;if((P|0)!=0&(n&16|0)==0){Q=c[g>>2]|0;if((c[f+8>>2]|0)==9){n=g;while(1){m=c[n+56>>2]|0;if(!m)break;else n=m}n=c[n+68>>2]|0;if(n){C=V+532|0;c[n+4>>2]=c[C>>2];c[C>>2]=n;a[V+449>>0]=0}}ys(V,P);O=P+8|0;n=c[P>>2]|0;b:do if((n|0)>0){B=0;v=O;c:while(1){if(!(a[v+37>>0]&8)){C=v+16|0;h=c[G>>2]|0;if(c[C>>2]|0){k=h;N=10;break}s=c[h>>2]|0;m=h+532|0;o=c[m>>2]|0;d:do if((c[v+4>>2]|0)==0?(E=c[v+8>>2]|0,!((E|0)==0|(o|0)==0)):0){e:while(1){p=c[o>>2]|0;if((p|0)>0){l=0;do{n=o+(l<<4)+8|0;k=c[n>>2]|0;if(!($c(E,k)|0)){z=l;break e}l=l+1|0}while((l|0)<(p|0))}o=c[o+4>>2]|0;if(!o){N=46;break d}}w=o+(z<<4)+20|0;p=c[w>>2]|0;if(p){g=p;N=21;break c}y=ih(s,76,0)|0;if(!y){g=C;N=23;break c}q=y+0|0;p=q+76|0;do{a[q>>0]=0;q=q+1|0}while((q|0)<(p|0));c[C>>2]=y;t=y+40|0;b[t>>1]=1;c[y>>2]=gh(s,c[n>>2]|0)|0;b[y+36>>1]=-1;b[y+28>>1]=200;A=y+44|0;a[A>>0]=d[A>>0]|2;A=cr(s,c[o+(z<<4)+16>>2]|0,0)|0;c[v+20>>2]=A;if(a[s+65>>0]|0){g=2;break a}x=((a[A+4>>0]|0)+-115&255)<2;if(x?(u=c[A+32>>2]|0,D=c[u>>2]|0,(D|0)>0):0){p=A+6|0;q=D;s=0;do{do if(!(c[u+(s*72|0)+12>>2]|0)){r=c[u+(s*72|0)+16>>2]|0;if(!r)break;if($c(r,c[n>>2]|0)|0)break;c[u+(s*72|0)+24>>2]=y;q=u+(s*72|0)+45|0;a[q>>0]=a[q>>0]|8;b[t>>1]=(b[t>>1]|0)+1<<16>>16;b[p>>1]=e[p>>1]|2048;q=c[u>>2]|0}while(0);s=s+1|0}while((s|0)<(q|0))}if((e[t>>1]|0)>2){g=n;N=34;break c}c[w>>2]=28176;l=c[m>>2]|0;c[m>>2]=o;if(x)p=c[A+52>>2]|0;else p=A;gu(f,p)|0;p=A;while(1){k=c[p+52>>2]|0;if(!k)break;else p=k}k=c[p>>2]|0;p=c[o+(z<<4)+12>>2]|0;do if(p){if(!k)break;r=c[k>>2]|0;k=c[p>>2]|0;if((r|0)!=(k|0)){g=r;N=42;break c}}else p=k;while(0);eu(h,p,y+38|0,y+4|0);if(x){c[w>>2]=(b[A+6>>1]&2048)==0?28280:28240;gu(f,A)|0}c[w>>2]=0;c[m>>2]=l;if(!(c[C>>2]|0))N=46}else N=46;while(0);do if((N|0)==46){N=0;if(!(c[v+8>>2]|0)){o=c[v+20>>2]|0;if(gu(f,o)|0){g=2;break a}m=ih(U,76,0)|0;if(!m){g=C;N=49;break c}q=m+0|0;p=q+76|0;do{a[q>>0]=0;q=q+1|0}while((q|0)<(p|0));c[C>>2]=m;b[m+40>>1]=1;c[W>>2]=m;c[m>>2]=qh(U,27760,W)|0;while(1){n=c[o+52>>2]|0;if(!n)break;else o=n}eu(V,c[o>>2]|0,m+38|0,m+4|0);b[m+36>>1]=-1;b[m+28>>1]=200;C=m+44|0;a[C>>0]=d[C>>0]|2;break}h=Qr(V,0,v)|0;c[C>>2]=h;if(!h){g=2;break a}o=h+40|0;n=b[o>>1]|0;if(n<<16>>16==-1){g=C;N=55;break c}b[o>>1]=n+1<<16>>16;o=h+12|0;if((c[o>>2]|0)==0?(a[h+44>>0]&16)==0:0)break;if(dr(V,h)|0){g=2;break a}C=cr(U,c[o>>2]|0,0)|0;c[v+20>>2]=C;gu(f,C)|0}while(0);if(Nt(V,v)|0){g=2;break a}n=c[P>>2]|0}B=B+1|0;if((B|0)>=(n|0))break b;else v=v+72|0}if((N|0)==10){while(1){h=c[g+56>>2]|0;if(!h)break;else g=h}g=c[g+68>>2]|0;if(!g){g=1;break a}c[k+532>>2]=c[g+4>>2];g=1;break a}else if((N|0)==21){c[W>>2]=k;ph(h,g,W);g=2;break a}else if((N|0)==23){c[g>>2]=0;g=2;break a}else if((N|0)==34){c[W>>2]=c[g>>2];ph(h,28128,W);g=2;break a}else if((N|0)==42){c[W>>2]=c[n>>2];c[W+4>>2]=g;c[W+8>>2]=k;ph(h,28200,W);c[m>>2]=l;g=2;break a}else if((N|0)==49){c[g>>2]=0;g=2;break a}else if((N|0)==55){c[W>>2]=c[h>>2];ph(V,27776,W);c[g>>2]=0;g=2;break a}}while(0);if(!(a[S>>0]|0)){v=c[F>>2]|0;f:do if(((c[v>>2]|0)+-1|0)>0){w=g+36|0;y=0;z=v+8|0;A=v+80|0;g:while(1){x=c[A+16>>2]|0;if(!((c[z+16>>2]|0)==0|(x|0)==0)){D=d[A+36>>0]|0;u=D&32;s=(u|0)==0;u=u>>>5;t=A+44|0;if(D&4){if(c[t>>2]|0){N=73;break}n=A+48|0;if(c[n>>2]|0){N=73;break}k=x+38|0;o=b[k>>1]|0;if(o<<16>>16>0){h=x+4|0;r=y+1|0;q=0;do{m=c[(c[h>>2]|0)+(q*24|0)>>2]|0;l=0;do{p=ov(c[v+(l*72|0)+24>>2]|0,m)|0;if((p|0)>-1){o=l;N=77;break}l=l+1|0}while((l|0)<(r|0));if((N|0)==77){N=0;pv(V,v,o,p,r,q,u,w);o=b[k>>1]|0}q=q+1|0}while((q|0)<(o<<16>>16|0))}}else n=A+48|0;o=c[t>>2]|0;if(o){if(c[n>>2]|0){N=81;break}if(!s){qv(o,c[A+40>>2]|0);o=c[t>>2]|0}c[w>>2]=os(c[V>>2]|0,c[w>>2]|0,o)|0;c[t>>2]=0}m=c[n>>2]|0;if((m|0)!=0?(M=m+4|0,(c[M>>2]|0)>0):0){l=y+1|0;p=0;do{h=c[(c[m>>2]|0)+(p<<3)>>2]|0;k=ov(x,h)|0;if((k|0)<0){N=91;break g}else o=0;while(1){n=ov(c[v+(o*72|0)+24>>2]|0,h)|0;if((n|0)>-1)break;o=o+1|0;if((o|0)>=(l|0)){N=91;break g}}pv(V,v,o,n,l,k,u,w);p=p+1|0}while((p|0)<(c[M>>2]|0))}}y=y+1|0;if((y|0)>=((c[v>>2]|0)+-1|0))break f;else{z=z+72|0;A=A+72|0}}if((N|0)==73){c[W>>2]=0;ph(V,27928,W);g=2;break a}else if((N|0)==81){ph(V,27984,W);g=2;break a}else if((N|0)==91){c[W>>2]=h;ph(V,28040,W);g=2;break a}}while(0);h=c[Q>>2]|0;o=(h|0)>0;h:do if(o){k=c[Q+4>>2]|0;n=0;do{m=c[k+(n*20|0)>>2]|0;l=a[m>>0]|0;if(l<<24>>24==122){if((a[c[m+16>>2]>>0]|0)==116)break h}else if(l<<24>>24==116)break h;n=n+1|0}while((n|0)<(h|0))}else n=0;while(0);if((n|0)<(h|0)){M=c[Q+4>>2]|0;n=c[(c[V>>2]|0)+24>>2]|0;if(!(n&32))L=0;else L=(n&64|0)==0;if(o){H=U+20|0;I=U+16|0;J=T+4|0;K=0;h=0;do{m=M+(K*20|0)|0;o=c[m>>2]|0;n=a[o>>0]|0;if(n<<24>>24==122)if((a[c[o+16>>2]>>0]|0)==116){f=c[(c[o+12>>2]|0)+8>>2]|0;N=110}else N=106;else if(n<<24>>24==116){f=0;N=110}else N=106;do if((N|0)==106){h=hr(V,h,o)|0;if(h){C=M+(K*20|0)+4|0;B=(c[h>>2]|0)+-1|0;A=c[h+4>>2]|0;c[A+(B*20|0)+4>>2]=c[C>>2];D=M+(K*20|0)+8|0;c[A+(B*20|0)+8>>2]=c[D>>2];c[C>>2]=0;c[D>>2]=0}c[m>>2]=0}else if((N|0)==110){if((c[P>>2]|0)>0){D=(f|0)==0;E=(f|0)!=0;F=0;G=O;n=0;while(1){s=c[G+16>>2]|0;m=c[G+20>>2]|0;o=c[G+12>>2]|0;if(!o)o=c[s>>2]|0;if(a[S>>0]|0)break;if((m|0)!=0?(b[m+6>>1]&512)!=0:0){C=0;N=125}else N=117;do if((N|0)==117){N=0;if(!D?($c(f,o)|0)!=0:0)break;p=c[s+68>>2]|0;if(!p){m=0;C=27816;N=125;break}l=c[H>>2]|0;q=c[I>>2]|0;if((l|0)>0){k=0;while(1){m=k+1|0;if((c[q+(k<<4)+12>>2]|0)==(p|0)){m=k;break}if((m|0)<(l|0))k=m;else break}if((m|0)>-1)l=m;else{m=0;C=27816;N=125;break}}else l=0;m=0;C=c[q+(l<<4)>>2]|0;N=125}while(0);do if((N|0)==125){N=0;B=s+38|0;t=b[B>>1]|0;if(t<<16>>16<=0)break;x=s+4|0;w=(m|0)!=0;q=E&w;y=(F|0)>0;r=y&D;v=G+36|0;y=y^1;u=G+48|0;p=(C|0)==0;z=0;do{s=c[x>>2]|0;k=c[s+(z*24|0)>>2]|0;if(!(q?(rv(c[(c[(c[m>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0,0,f,0)|0)==0:0))N=129;i:do if((N|0)==129){N=0;if(a[s+(z*24|0)+23>>0]&2)break;if(r){if(!((a[v>>0]&4)==0|y)){s=0;do{if((ov(c[P+(s*72|0)+24>>2]|0,k)|0)>-1){n=1;break i}s=s+1|0}while((s|0)<(F|0))}if((sv(c[u>>2]|0,k)|0)>-1){n=1;break}}t=pt(U,27,k)|0;if(!L?(c[P>>2]|0)<=1:0){l=k;A=0}else N=137;do if((N|0)==137){N=0;t=Vq(V,122,pt(U,27,o)|0,t,0)|0;if(!p)t=Vq(V,122,pt(U,27,C)|0,t,0)|0;if(!L){l=k;A=0;break}c[W>>2]=o;c[W+4>>2]=k;A=qh(U,27824,W)|0;l=A}while(0);h=hr(V,h,t)|0;c[T>>2]=l;if(!l)t=0;else{t=l;while(1)if(!(a[t>>0]|0))break;else t=t+1|0;t=t-l&1073741823}c[J>>2]=t;ir(V,h,T,0);do if(h){if(!(b[R>>1]&512))break;s=(c[h>>2]|0)+-1|0;k=c[h+4>>2]|0;if(w)t=gh(U,c[(c[(c[m>>2]|0)+4>>2]|0)+(z*20|0)+8>>2]|0)|0;else{c[W>>2]=C;c[W+4>>2]=o;c[W+8>>2]=l;t=qh(U,27832,W)|0}c[k+(s*20|0)+8>>2]=t;t=k+(s*20|0)+13|0;a[t>>0]=a[t>>0]|2}while(0);ig(U,A);t=b[B>>1]|0;n=1}while(0);z=z+1|0}while((z|0)<(t<<16>>16|0))}while(0);F=F+1|0;if((F|0)>=(c[P>>2]|0))break;else G=G+72|0}if(n)break}if(!f){ph(V,27872,W);break}else{c[W>>2]=f;ph(V,27848,W);break}}while(0);K=K+1|0}while((K|0)<(c[Q>>2]|0))}else h=0;Jk(U,Q);c[g>>2]=h}else h=c[g>>2]|0;if((h|0)!=0?(c[h>>2]|0)>(c[U+96>>2]|0):0){ph(V,27896,W);g=0}else g=0}else g=2}else g=1}else g=2;while(0);i=X;return g|0}function nu(a,b){a=a|0;b=b|0;var d=0;d=c[a+12>>2]|0;while(1){a=c[b+56>>2]|0;if(!a)break;else b=a}b=c[b+68>>2]|0;if(b)c[d+532>>2]=c[b+4>>2];return}function ou(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=f+6|0;i=e[h>>1]|0;if((i&32|0)==0?(b[h>>1]=i|32,l=c[d+12>>2]|0,j=c[f+32>>2]|0,g=c[j>>2]|0,(g|0)>0):0){f=0;h=j+8|0;while(1){d=c[h+16>>2]|0;if(((d|0)!=0?(a[d+44>>0]&2)!=0:0)?(k=c[h+20>>2]|0,(k|0)!=0):0){g=k;while(1){i=c[g+52>>2]|0;if(!i)break;else g=i}fu(l,d,g);g=c[j>>2]|0}f=f+1|0;if((f|0)>=(g|0))break;else h=h+72|0}}return}function pu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((a|0)!=0?(d=c[a>>2]|0,(d|0)>0):0){g=c[a+4>>2]|0;f=0;do{e=c[g+(f*20|0)>>2]|0;if((e|0)!=0?(h=c[e+24>>2]|0,(h|0)>(c[b>>2]|0)):0){c[b>>2]=h;d=c[a>>2]|0}f=f+1|0}while((f|0)<(d|0))}return}function qu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;if(((b|0)!=0?(Cs(a,c[b>>2]|0,d,e),Cs(a,c[b+40>>2]|0,d,e),Cs(a,c[b+48>>2]|0,d,e),g=b+44|0,c[g>>2]=Ds(a,c[g>>2]|0,d,e)|0,g=b+36|0,c[g>>2]=Ds(a,c[g>>2]|0,d,e)|0,qu(a,c[b+52>>2]|0,d,e),g=c[b+32>>2]|0,(g|0)!=0):0)?(f=c[g>>2]|0,(f|0)>0):0){b=f;f=g+8|0;while(1){qu(a,c[f+20>>2]|0,d,e);b=b+-1|0;if((b|0)<=0)break;else f=f+72|0}}return}function ru(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[d+48>>2]|0;l=c[f>>2]|0;g=c[b>>2]|0;m=Ns(g,l+1|0,1)|0;if((m|0)!=0&(l|0)>0){k=f+4|0;i=g+8|0;h=m+16|0;j=0;do{g=c[k>>2]|0;f=c[g+(j*20|0)>>2]|0;if(!(c[f+4>>2]&256)){g=Os(b,d,(e[g+(j*20|0)+16>>1]|0)+-1|0)|0;if(!g)g=c[i>>2]|0;f=tv(b,f,c[g>>2]|0)|0;c[(c[k>>2]|0)+(j*20|0)>>2]=f}else g=_t(b,f)|0;c[m+(j<<2)+20>>2]=g;a[(c[h>>2]|0)+j>>0]=a[(c[k>>2]|0)+(j*20|0)+12>>0]|0;j=j+1|0}while((j|0)!=(l|0))}return m|0}function su(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))ba();n=o;h=c[d>>2]|0;a:do if((f|0)!=0?(a[h+65>>0]|0)==0:0){k=c[f>>2]|0;if((k|0)>(c[h+96>>2]|0)){c[n>>2]=g;ph(d,27120,n);e=1;break}m=c[e>>2]|0;if((k|0)>0){h=k;e=0;l=c[f+4>>2]|0;while(1){k=b[l+16>>1]|0;if(k<<16>>16){k=k&65535;h=c[m>>2]|0;if((k|0)>(h|0))break;uv(d,m,k+-1|0,c[l>>2]|0,g,0);h=c[f>>2]|0}e=e+1|0;if((e|0)>=(h|0)){e=0;break a}else l=l+20|0}c[n>>2]=e+1;c[n+4>>2]=g;c[n+8>>2]=h;ph(d,27064,n);e=1}else e=0}else e=0;while(0);i=o;return e|0}function tu(b,e,f,g,h,i,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=b+8|0;u=c[t>>2]|0;w=u+32|0;l=c[w>>2]|0;x=ts(u)|0;if(i){n=sh(u,46,i,0,0)|0;m=f+8|0;p=c[m>>2]|0;r=i+1|0;o=f+12|0;q=c[o>>2]|0;if(j)c[j>>2]=(c[j>>2]|0)+1;p=sh(u,42,p,r,q)|0;th(u,p,j,-6);p=p+2|0;sh(u,43,p,x,p)|0;p=c[w>>2]|0;if(p>>>0>n>>>0)c[(c[u+4>>2]|0)+(n*20|0)+8>>2]=p;c[(c[u+24>>2]|0)+88>>2]=p+-1;sh(u,33,c[m>>2]|0,r,(c[o>>2]|0)+-1|0)|0;sh(u,25,1,i,0)|0}if(!(a[(c[b>>2]|0)+65>>0]|0)){et(u,c[e+12>>2]|0,x);switch(d[g>>0]|0){case 12:case 14:{m=b+19|0;o=a[m>>0]|0;if(o<<24>>24){i=o+-1<<24>>24;a[m>>0]=i;n=c[b+((i&255)<<2)+24>>2]|0;if(!(i<<24>>24))s=12;else{o=o+-2<<24>>24;a[m>>0]=o;o=c[b+((o&255)<<2)+24>>2]|0;m=n}}else{s=b+72|0;n=(c[s>>2]|0)+1|0;c[s>>2]=n;s=12}if((s|0)==12){m=b+72|0;o=(c[m>>2]|0)+1|0;c[m>>2]=o;m=n}sh(u,49,c[f+8>>2]|0,c[f+12>>2]|0,m)|0;n=g+4|0;sh(u,74,c[n>>2]|0,o,0)|0;sh(u,75,c[n>>2]|0,m,o)|0;n=c[u+4>>2]|0;if(n)a[n+(((c[w>>2]|0)+-1|0)*20|0)+3>>0]=8;Wr(b,o);Wr(b,m);break}case 11:{o=g+1|0;a[o>>0]=xu(c[c[(c[e>>2]|0)+4>>2]>>2]|0,a[o>>0]|0)|0;n=b+19|0;m=a[n>>0]|0;if(!(m<<24>>24)){s=b+72|0;n=(c[s>>2]|0)+1|0;c[s>>2]=n}else{s=m+-1<<24>>24;a[n>>0]=s;n=c[b+((s&255)<<2)+24>>2]|0}s=f+8|0;th(u,sh(u,49,c[s>>2]|0,1,n)|0,o,1);$s(b,c[s>>2]|0,1);sh(u,110,c[g+4>>2]|0,n,0)|0;Wr(b,n);break}case 10:{s=c[f+8>>2]|0;sh(c[t>>2]|0,32,s,c[g+4>>2]|0,1)|0;$s(b,s,1);break}case 13:{q=g+8|0;n=c[q>>2]|0;if(!n){n=c[f+12>>2]|0;o=b+60|0;m=c[o>>2]|0;j=b+56|0;p=c[j>>2]|0;if((p|0)<(n|0)){s=b+72|0;m=c[s>>2]|0;c[s>>2]=m+n;m=m+1|0}else{c[o>>2]=m+n;c[j>>2]=p-n}c[q>>2]=m;c[g+12>>2]=n}else{m=n;n=c[g+12>>2]|0}s=c[f+8>>2]|0;sh(c[t>>2]|0,32,s,m,n)|0;$s(b,s,n);sh(u,22,c[g+4>>2]|0,0,0)|0;break}default:{i=f+8|0;s=f+12|0;sh(u,35,c[i>>2]|0,c[s>>2]|0,0)|0;$s(b,c[i>>2]|0,c[s>>2]|0)}}m=c[e+8>>2]|0;if(m)sh(u,140,m,k,0)|0;m=c[u+24>>2]|0;n=~x;if((x|0)<0?(v=c[m+112>>2]|0,(v|0)!=0):0)c[v+(n<<2)>>2]=c[w>>2];c[m+88>>2]=(c[w>>2]|0)+-1;sh(u,18,h,0,0)|0}else l=0;return l|0}function uu(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+80|0;if((i|0)>=(j|0))ba();r=s+64|0;q=s+32|0;h=s;a[r>>0]=1;if((f|0)!=0?(c[e+4>>2]|0)!=0:0){k=d[f>>0]|0;a:do if((k|0)==154|(k|0)==156){p=b[f+32>>1]|0;h=p<<16>>16;if(e){o=f+28|0;b:while(1){while(1){n=c[e+4>>2]|0;m=c[n>>2]|0;c:do if((m|0)>0){f=c[o>>2]|0;k=0;while(1){l=k+1|0;if((c[n+(k*72|0)+48>>2]|0)==(f|0)){l=k;break c}if((l|0)<(m|0))k=l;else break}}else l=0;while(0);if((l|0)>=(m|0))break;m=c[n+(l*72|0)+24>>2]|0;l=c[n+(l*72|0)+28>>2]|0;f=(m|0)==0;if(!((e|0)!=0&f))break b}e=c[e+16>>2]|0;if(!e){h=0;break a}}if(!f){if(l){if(p<<16>>16<=-1){h=0;break}k=c[l>>2]|0;if((h|0)>=(c[k>>2]|0)){h=0;break}h=c[(c[k+4>>2]|0)+(h*20|0)>>2]|0;c[q+4>>2]=c[l+32>>2];c[q+16>>2]=e;c[q>>2]=c[e>>2];h=uu(q,h,r)|0;break}if(c[m+68>>2]|0){if(p<<16>>16<0)h=b[m+36>>1]|0;if((h|0)<0)h=11144;else{p=c[m+4>>2]|0;q=c[p+(h*24|0)+12>>2]|0;a[r>>0]=a[p+(h*24|0)+22>>0]|0;h=q}}else h=0}else h=0}else h=0}else if((k|0)==119){p=c[f+20>>2]|0;q=c[c[(c[p>>2]|0)+4>>2]>>2]|0;c[h+4>>2]=c[p+32>>2];c[h+16>>2]=e;c[h>>2]=c[e>>2];h=uu(h,q,r)|0}else h=0;while(0);if(g)a[g>>0]=a[r>>0]|0}else h=0;i=s;return h|0}function vu(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;j=c[b+8>>2]|0;h=b+19|0;i=a[h>>0]|0;if(!(i<<24>>24)){i=b+72|0;h=(c[i>>2]|0)+1|0;c[i>>2]=h}else{i=i+-1<<24>>24;a[h>>0]=i;h=c[b+((i&255)<<2)+24>>2]|0}th(j,sh(j,69,d,e,g)|0,f,-14);sh(j,49,g,f,h)|0;sh(j,110,d,h,0)|0;Wr(b,h);return}function wu(b,d,f,g,h,i){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;u=b+8|0;z=c[u>>2]|0;y=d+24|0;k=a[y>>0]&1;n=k<<24>>24==0;k=(k^1)&255;j=c[d>>2]|0;o=c[j>>2]|0;p=o+h+k|0;s=b+72|0;m=c[s>>2]|0;x=m+1|0;c[s>>2]=x;v=d+4|0;q=c[v>>2]|0;i=(i|0)==0;if(i){c[s>>2]=x+p;t=m+2|0}else t=g-o-k|0;Zs(b,j,t,1);if(n)sh(z,73,c[d+8>>2]|0,t+o|0,0)|0;if(i){sh(c[u>>2]|0,32,g,k+o+t|0,h)|0;$s(b,g,h)}sh(z,49,t+q|0,p-q|0,x)|0;if((q|0)>0){j=c[s>>2]|0;h=j+1|0;i=c[v>>2]|0;c[s>>2]=i+j;if(n)g=sh(z,46,t+o|0,0,0)|0;else g=sh(z,59,c[d+8>>2]|0,0,0)|0;sh(z,42,h,t,c[v>>2]|0)|0;m=c[d+20>>2]|0;if((m|0)<0)m=(c[z+32>>2]|0)+-1|0;if(!(a[(c[z>>2]|0)+65>>0]|0))m=(c[z+4>>2]|0)+(m*20|0)|0;else m=29120;if(!(a[(c[b>>2]|0)+65>>0]|0)){c[m+8>>2]=p-i;m=m+16|0;i=c[m>>2]|0;bw(c[i+16>>2]|0,0,e[i+6>>1]|0)|0;th(z,-1,i,-6);c[m>>2]=Qs(b,c[d>>2]|0,q,(e[i+8>>1]|0)+-1|0)|0;m=z+32|0;i=c[m>>2]|0;l=i+1|0;sh(z,43,l,0,l)|0;l=ts(z)|0;c[d+16>>2]=l;k=(c[s>>2]|0)+1|0;c[s>>2]=k;c[d+12>>2]=k;sh(z,17,k,l,0)|0;l=d+8|0;sh(z,119,c[l>>2]|0,0,0)|0;k=c[m>>2]|0;if(k>>>0>g>>>0)c[(c[z+4>>2]|0)+(g*20|0)+8>>2]=k;j=z+24|0;c[(c[j>>2]|0)+88>>2]=k+-1;k=c[v>>2]|0;sh(c[u>>2]|0,32,t,h,k)|0;$s(b,t,k);k=c[m>>2]|0;if(k>>>0>i>>>0)c[(c[z+4>>2]|0)+(i*20|0)+8>>2]=k;c[(c[j>>2]|0)+88>>2]=k+-1;r=23}}else{l=d+8|0;r=23}if((r|0)==23?(sh(z,110-(a[y>>0]&1)|0,c[l>>2]|0,x,0)|0,w=c[f+8>>2]|0,(w|0)!=0):0){k=c[f+12>>2]|0;k=sh(z,139,(k|0)==0?w:k+1|0,0,-1)|0;sh(z,105,c[l>>2]|0,0,0)|0;sh(z,95,c[l>>2]|0,0,0)|0;j=c[z+32>>2]|0;if(j>>>0>k>>>0)c[(c[z+4>>2]|0)+(k*20|0)+8>>2]=j;c[(c[z+24>>2]|0)+88>>2]=j+-1}return}function xu(a,b){a=a|0;b=b|0;a=gv(a)|0;if(!(a<<24>>24==0|b<<24>>24==0))return (a<<24>>24>66|b<<24>>24>66?67:65)|0;if(!((a|b)<<24>>24))a=65;else a=(b&255)+(a&255)&255;return a|0}function yu(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;do if(!((d|0)==0|(e|0)==0)){j=c[d+4>>2]|0;k=c[e+4>>2]|0;l=k|j;if(l&1024){if((j&1024&k|0)!=0?(c[d+8>>2]|0)==(c[e+8>>2]|0):0){g=0;break}g=2;break}g=a[d>>0]|0;h=a[e>>0]|0;if(g<<24>>24!=h<<24>>24){if(g<<24>>24==95?(yu(c[d+12>>2]|0,e,f)|0)<2:0){g=1;break}if(h<<24>>24==95?(yu(d,c[e+12>>2]|0,f)|0)<2:0){g=1;break}g=2;break}if((!(g<<24>>24==-100|g<<24>>24==-102)?(i=c[d+8>>2]|0,(i|0)!=0):0)?(Wv(i,c[e+8>>2]|0)|0)!=0:0){g=g<<24>>24==95?1:2;break}if(!((k^j)&16)){if(!(l&16384)){if(l&2048){g=2;break}if(yu(c[d+12>>2]|0,c[e+12>>2]|0,f)|0){g=2;break}if(yu(c[d+16>>2]|0,c[e+16>>2]|0,f)|0){g=2;break}if(Ps(c[d+20>>2]|0,c[e+20>>2]|0,f)|0){g=2;break}if(!(l&8192)){if((b[d+32>>1]|0)!=(b[e+32>>1]|0)){g=2;break}h=c[d+28>>2]|0;g=c[e+28>>2]|0;if((h|0)!=(g|0)?(h|0)!=(f|0)|(g|0)>-1:0){g=2;break}}}g=0}else g=2}else g=(e|0)==(d|0)?0:2;while(0);return g|0}function zu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=b+8|0;a[f>>0]=e;a:do if(d){while(1){if((a[d>>0]|0)!=e<<24>>24)break;zu(b,c[d+12>>2]|0,e);d=c[d+16>>2]|0;a[f>>0]=e;if(!d)break a}vv(b,d,0)|0}while(0);return}function Au(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0;D=c[f>>2]|0;Q=c[D>>2]|0;S=c[Q>>2]|0;L=S+65|0;do if(!(a[L>>0]|0)){T=f+20|0;k=c[T>>2]|0;h=k+(g*48|0)|0;_=D+68|0;R=c[h>>2]|0;s=R+12|0;l=c[s>>2]|0;x=wv(_,l)|0;w=C;j=a[R>>0]|0;u=j&255;do if(j<<24>>24==76){i=k+(g*48|0)+32|0;c[i>>2]=0;c[i+4>>2]=0;i=0;t=0}else if(j<<24>>24==75){m=R+20|0;if(!(c[R+4>>2]&2048)){i=Hu(_,c[m>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t;break}else{i=xv(_,c[m>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t;break}}else{i=wv(_,c[R+16>>2]|0)|0;t=C;P=k+(g*48|0)+32|0;c[P>>2]=i;c[P+4>>2]=t}while(0);q=wv(_,R)|0;m=C;N=R+4|0;if(!(c[N>>2]&1)){O=0;P=0;v=m}else{o=b[R+36>>1]|0;n=c[_>>2]|0;a:do if((n|0)>0){p=0;while(1){if((c[D+(p<<2)+72>>2]|0)==(o|0))break;p=p+1|0;if((p|0)>=(n|0)){p=0;o=0;break a}}p=ew(1,0,p|0)|0;o=C}else{p=0;o=0}while(0);O=fw(p|0,o|0,-1,-1)|0;P=C;q=p|q;v=o|m}r=k+(g*48|0)+40|0;c[r>>2]=q;c[r+4>>2]=v;r=k+(g*48|0)+8|0;c[r>>2]=-1;c[k+(g*48|0)+4>>2]=-1;z=k+(g*48|0)+18|0;b[z>>1]=0;p=u+-75|0;if(p>>>0<9?(499>>>(p&511)&1)!=0:0){b:do if(!l)l=0;else while(1){p=c[l+4>>2]|0;if(!(p&4096))break b;if(!(p&262144))n=l+12|0;else n=c[(c[l+20>>2]|0)+4>>2]|0;l=c[n>>2]|0;if(!l){l=0;break}}while(0);p=c[R+16>>2]|0;c:do if(!p)p=0;else while(1){o=c[p+4>>2]|0;if(!(o&4096))break c;if(!(o&262144))p=p+12|0;else p=c[(c[p+20>>2]|0)+4>>2]|0;p=c[p>>2]|0;if(!p){p=0;break}}while(0);t=(i&x|0)==0&(t&w|0)==0?4095:1024;if((a[l>>0]|0)==-102){m=c[l+28>>2]|0;c[r>>2]=m;c[k+(g*48|0)+12>>2]=b[l+32>>1];if((u|0)==75)n=1;else if((u|0)==76)n=128;else n=2<<u+-79&65535;b[z>>1]=n&t}else m=-1;if((p|0)!=0?(a[p>>0]|0)==-102:0){if((m|0)>-1){l=Ir(S,R,0,0)|0;if(a[L>>0]|0){Ck(S,l);break}m=vv(f,l,3)|0;if(!m)break;n=c[T>>2]|0;k=n+(m*48|0)|0;c[n+(m*48|0)+4>>2]=g;b[n+(m*48|0)+16>>1]=b[n+(g*48|0)+16>>1]|0;h=n+(g*48|0)+22|0;a[h>>0]=(a[h>>0]|0)+1<<24>>24;h=n+(g*48|0)|0;p=n+(g*48|0)+20|0;b[p>>1]=e[p>>1]|8;if(((a[R>>0]|0)==79?(c[N>>2]&1|0)==0:0)?(b[S+60>>1]&512)==0:0){s=n+(g*48|0)+18|0;b[s>>1]=e[s>>1]|1024;s=1024}else s=0}else{s=0;l=R;k=h}j=l+16|0;o=(c[j>>2]|0)+4|0;n=c[o>>2]|0;m=n&256;i=l+12|0;p=c[i>>2]|0;do if((m|0)==(c[p+4>>2]&256|0)){if(m){c[o>>2]=n&-257;break}p=(_t(Q,p)|0)==0;n=c[i>>2]|0;if(p)p=n;else{p=n+4|0;c[p>>2]=c[p>>2]|256;p=n}}while(0);n=c[j>>2]|0;c[j>>2]=p;c[i>>2]=n;m=a[l>>0]|0;if((m&255)>79){m=((m&255)+176^2)+80&255;a[l>>0]=m}l=c[n+4>>2]|0;if(l&4096)do{if(!(l&262144))n=n+12|0;else n=c[(c[n+20>>2]|0)+4>>2]|0;n=c[n>>2]|0;l=c[n+4>>2]|0}while((l&4096|0)!=0);c[k+8>>2]=c[n+28>>2];c[k+12>>2]=b[n+32>>1];l=k+32|0;c[l>>2]=O|x;c[l+4>>2]=P|w;l=k+40|0;c[l>>2]=q;c[l+4>>2]=v;l=m&255;if((l|0)==76)l=128;else if((l|0)==75)l=1;else l=2<<l+-79&65535;b[k+18>>1]=l+s&(t&65535)}}else H=59;do if((H|0)==59){if(j<<24>>24==74){if((a[f+8>>0]|0)!=72)break;m=(c[R+20>>2]|0)+4|0;i=R+36|0;j=0;while(1){q=d[34144+j>>0]|0;l=Ir(S,l,0,0)|0;l=Vq(Q,q,l,Ir(S,c[(c[m>>2]|0)+(j*20|0)>>2]|0,0,0)|0,0)|0;if(l){q=l+4|0;c[q>>2]=c[q>>2]|c[N>>2]&1;b[l+36>>1]=b[i>>1]|0}q=vv(f,l,3)|0;Au(f,q);k=c[T>>2]|0;c[k+(q*48|0)+4>>2]=g;b[k+(q*48|0)+16>>1]=b[k+(g*48|0)+16>>1]|0;q=k+(g*48|0)+22|0;a[q>>0]=(a[q>>0]|0)+1<<24>>24;j=j+1|0;if((j|0)==2)break;l=c[s>>2]|0}h=k+(g*48|0)|0;break}else if(j<<24>>24!=71)break;x=ih(S,416,0)|0;d:do if(x){bw(x|0,0,416)|0;c[k+(g*48|0)+12>>2]=x;A=k+(g*48|0)+20|0;b[A>>1]=e[A>>1]|16;c[x>>2]=D;c[x+4>>2]=0;A=x+12|0;c[A>>2]=0;c[x+16>>2]=8;B=x+20|0;c[B>>2]=x+24;zu(x,R,71);m=c[A>>2]|0;if((m|0)>0)do{m=m+-1|0;Au(x,m)}while((m|0)>0);if(!(a[L>>0]|0)){p=c[A>>2]|0;if((p|0)>0){w=D+68|0;v=-1;u=-1;i=-1;h=-1;t=c[B>>2]|0;while(1){p=p+-1|0;o=t+18|0;s=b[o>>1]|0;if(!(s&255)){l=ih(S,408,0)|0;if(!l){m=v;n=u;i=0;h=0}else{c[t+12>>2]=l;n=t+20|0;b[n>>1]=e[n>>1]|32;b[o>>1]=512;c[l>>2]=c[f>>2];n=l+4|0;c[n>>2]=0;m=l+12|0;c[m>>2]=0;c[l+16>>2]=8;q=l+20|0;c[q>>2]=l+24;zu(l,c[t>>2]|0,72);o=c[m>>2]|0;if((o|0)>0)do{o=o+-1|0;Au(l,o)}while((o|0)>0);c[n>>2]=f;if((a[L>>0]|0)==0?(y=c[m>>2]|0,(y|0)>0):0){o=0;n=0;h=0;r=c[q>>2]|0;while(1){m=(d[c[r>>2]>>0]|0)+-75|0;do if(m>>>0<9){if(!(499>>>(m&511)&1))break;l=c[r+8>>2]|0;j=c[w>>2]|0;e:do if((j|0)>0){m=0;while(1){if((c[D+(m<<2)+72>>2]|0)==(l|0))break;m=m+1|0;if((m|0)>=(j|0)){m=0;l=0;break e}}m=ew(1,0,m|0)|0;l=C}else{m=0;l=0}while(0);o=m|o;n=l|n}while(0);h=h+1|0;if((h|0)>=(y|0))break;else r=r+48|0}}else{o=0;n=0}m=o&v;n=n&u;i=0;h=0}}else{n=b[t+20>>1]|0;if(!(n&8)){q=c[t+8>>2]|0;l=c[w>>2]|0;m=(l|0)>0;f:do if(m){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(l|0)){j=0;r=0;break f}}j=ew(1,0,o|0)|0;r=C}else{j=0;r=0}while(0);if(!(n&2)){o=j;q=r}else{q=c[(c[B>>2]|0)+((c[t+4>>2]|0)*48|0)+8>>2]|0;g:do if(m){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(q|0))break;o=o+1|0;if((o|0)>=(l|0)){o=0;q=0;break g}}o=ew(1,0,o|0)|0;q=C}else{o=0;q=0}while(0);o=o|j;q=q|r}l=(s&2)==0;m=o&v;n=q&u;i=l?0:o&i;h=l?0:q&h}else{m=v;n=u}}o=(m|0)!=0|(n|0)!=0;if(!((p|0)>0&o))break;else{v=m;u=n;t=t+48|0}}q=x+408|0;c[q>>2]=m;c[q+4>>2]=n;b[z>>1]=(m|0)==0&(n|0)==0?0:256;if(o)H=104}else{i=x+408|0;c[i>>2]=-1;c[i+4>>2]=-1;b[z>>1]=256;i=-1;h=-1;H=104}h:do if((H|0)==104)if((c[A>>2]|0)==2){l=c[B>>2]|0;m=0;i:while(1){j=m+1|0;if((b[l+18>>1]|0)!=512)if(!m)o=l;else break h;else{n=c[l+12>>2]|0;if((c[n+12>>2]|0)<=(m|0))break h;o=(c[n+20>>2]|0)+(m*48|0)|0}if(!o)break h;else p=0;while(1){if((b[l+66>>1]|0)==512){n=c[l+60>>2]|0;if((c[n+12>>2]|0)<=(p|0)){m=j;continue i}n=(c[n+20>>2]|0)+(p*48|0)|0;if(!n){m=j;continue i}}else if(!p)n=l+48|0;else{m=j;continue i}yv(f,o,n);l=c[B>>2]|0;p=p+1|0}}}while(0);if(!((i|0)==0&(h|0)==0)){r=D+68|0;q=-1;s=0;while(1){n=c[A>>2]|0;if((n|0)<=0)break d;p=c[B>>2]|0;while(1){j=n;n=n+-1|0;l=p+20|0;b[l>>1]=e[l>>1]&65471;l=c[p+8>>2]|0;if((l|0)!=(q|0)){m=c[r>>2]|0;j:do if((m|0)>0){o=0;while(1){if((c[D+(o<<2)+72>>2]|0)==(l|0))break;o=o+1|0;if((o|0)>=(m|0)){o=0;m=0;break j}}o=ew(1,0,o|0)|0;m=C}else{o=0;m=0}while(0);if(!((o&i|0)==0&(m&h|0)==0)){o=j;break}}if((n|0)<=0)break d;else p=p+48|0}m=c[p+12>>2]|0;if((o|0)<1)break d;else o=l;while(1){if((o|0)==(l|0)){if((c[p+12>>2]|0)!=(m|0)){n=l;m=1;break}q=gv(c[(c[p>>2]|0)+16>>2]|0)|0;if(!(q<<24>>24==0|q<<24>>24==(gv(c[(c[p>>2]|0)+12>>2]|0)|0)<<24>>24)){n=l;m=1;break}q=p+20|0;b[q>>1]=e[q>>1]|64}else{q=p+20|0;b[q>>1]=e[q>>1]&65471}if((n|0)<=0){n=l;m=0;break}o=c[p+56>>2]|0;n=n+-1|0;p=p+48|0}s=s+1|0;if(!((s|0)<2&m))break;else q=n}if(!m){l=c[A>>2]|0;if((l|0)>0){m=0;i=0;j=c[B>>2]|0;while(1){l=l+-1|0;if(b[j+20>>1]&64){m=Ir(S,c[(c[j>>2]|0)+16>>2]|0,0,0)|0;i=hr(c[D>>2]|0,i,m)|0;m=c[(c[j>>2]|0)+12>>2]|0}if((l|0)<=0){l=m;break}else j=j+48|0}}else{l=0;i=0}j=Vq(Q,75,Ir(S,l,0,0)|0,0,0)|0;if(!j)Jk(S,i);else{q=j+4|0;c[q>>2]=c[q>>2]|c[N>>2]&1;b[j+36>>1]=b[R+36>>1]|0;c[j+20>>2]=i;q=vv(f,j,3)|0;Au(f,q);k=c[T>>2]|0;c[k+(q*48|0)+4>>2]=g;b[k+(q*48|0)+16>>1]=b[k+(g*48|0)+16>>1]|0;q=k+(g*48|0)+22|0;a[q>>0]=(a[q>>0]|0)+1<<24>>24}b[k+(g*48|0)+18>>1]=2048}}}}else c[k+(g*48|0)+12>>2]=0;while(0);h=(c[T>>2]|0)+(g*48|0)|0}while(0);k:do if((a[f+8>>0]|0)==72){u=c[Q>>2]|0;if((a[R>>0]|0)==-103){t=R+20|0;q=c[t>>2]|0;if((q|0)!=0?(c[q>>2]|0)==2:0){m=c[R+8>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[l>>0]|0))break;else l=l+1|0;l=l-m&1073741823}l=Oh(u,m,l,2,1,0)|0;if(((((l|0)!=0?(E=b[l+2>>1]|0,(E&4)!=0):0)?(K=c[l+4>>2]|0,I=a[K>>0]|0,J=a[K+1>>0]|0,K=a[K+2>>0]|0,M=(E&65535)>>>3&1,F=(c[t>>2]|0)+4|0,G=c[(c[F>>2]|0)+20>>2]|0,(a[G>>0]|0)==-102):0)?(gv(G)|0)<<24>>24==66:0)?(a[(c[G+44>>2]|0)+44>>0]&16)==0:0){k=c[c[F>>2]>>2]|0;l:do if(!k)k=0;else while(1){j=c[k+4>>2]|0;if(!(j&4096))break l;if(!(j&262144))k=k+12|0;else k=c[(c[k+20>>2]|0)+4>>2]|0;k=c[k>>2]|0;if(!k){k=0;break}}while(0);j=a[k>>0]|0;r=j<<24>>24==-121;do if(r){l=c[Q+476>>2]|0;o=b[k+32>>1]|0;p=o<<16>>16;do if(!l){i=0;m=0}else{H=p+-1|0;G=c[l+60>>2]|0;i=G+(H*40|0)|0;if(b[G+(H*40|0)+8>>1]&1){i=0;m=0;break}m=c[l>>2]|0;n=ih(m,40,0)|0;if(!n){i=0;m=0;break}l=n+0|0;j=l+40|0;do{a[l>>0]=0;l=l+1|0}while((l|0)<(j|0));H=n+8|0;b[H>>1]=1;c[n+32>>2]=m;Wg(n,i)|0;if((b[H>>1]&15)!=2){i=n;m=0;break}i=n;m=Og(n,1)|0}while(0);l=c[Q+8>>2]|0;if(o<<16>>16>32){c[l+188>>2]=-1;q=m;H=177;break}else{q=l+188|0;c[q>>2]=c[q>>2]|1<<p+-1;q=m;H=177;break}}else if(j<<24>>24==97){i=0;q=c[k+8>>2]|0;H=177}else i=0;while(0);do if((H|0)==177)if(q){m=0;while(1){H=a[q+m>>0]|0;j=H<<24>>24==I<<24>>24;l=m+1|0;if(H<<24>>24!=K<<24>>24&((H<<24>>24==0|j|H<<24>>24==J<<24>>24)^1))m=l;else break}if(m){if((a[q+(m+-1)>>0]|0)==-1)break;if(j)l=(a[q+l>>0]|0)==0;else l=0;n=l&1;s=pt(u,97,q)|0;if(s)a[(c[s+8>>2]|0)+m>>0]=0;do if(r){m=c[Q+8>>2]|0;j=b[k+32>>1]|0;if(j<<16>>16>32)c[m+188>>2]=-1;else{K=m+188|0;c[K>>2]=c[K>>2]|1<<(j<<16>>16)+-1}if(!l){n=0;break}if(!(a[(c[k+8>>2]|0)+1>>0]|0))break;j=Q+19|0;l=a[j>>0]|0;if(!(l<<24>>24)){K=Q+72|0;j=(c[K>>2]|0)+1|0;c[K>>2]=j}else{K=l+-1<<24>>24;a[j>>0]=K;j=c[Q+((K&255)<<2)+24>>2]|0}es(Q,k,j)|0;k=c[m+32>>2]|0;if(k>>>0>0)c[(c[m+4>>2]|0)+((k+-1|0)*20|0)+12>>2]=0;Wr(Q,j)}while(0);Ih(i);if(!q){H=217;break k}o=c[(c[(c[t>>2]|0)+4>>2]|0)+20>>2]|0;m=Ir(S,s,0,0)|0;p=M<<16>>16!=0;do if(!p){if(a[(c[Q>>2]|0)+65>>0]|0)break;i=h+20|0;b[i>>1]=e[i>>1]|1024;i=s+8|0;l=c[i>>2]|0;k=a[l>>0]|0;if(!(k<<24>>24))break;h=m+8|0;j=0;do{K=k&255;a[l>>0]=((d[10368+K>>0]|223)^32)&K;a[(c[h>>2]|0)+j>>0]=a[9328+K>>0]|0;j=j+1|0;l=(c[i>>2]|0)+j|0;k=a[l>>0]|0}while(k<<24>>24!=0)}while(0);if(!(a[L>>0]|0)){k=c[m+8>>2]|0;if(!k)j=-1;else{j=k;while(1)if(!(a[j>>0]|0))break;else j=j+1|0;j=(j-k&1073741823)+-1|0}k=k+j|0;j=a[k>>0]|0;if(p)i=n;else{i=j<<24>>24==64?0:n;j=a[9328+(j&255)>>0]|0}a[k>>0]=(j&255)+1;l=i}else l=n;i=M<<16>>16==0?13752:11152;j=Vq(Q,83,tv(Q,Ir(S,o,0,0)|0,i)|0,s,0)|0;if(j){M=j+4|0;c[M>>2]=c[M>>2]|c[N>>2]&1;b[j+36>>1]=b[R+36>>1]|0}k=vv(f,j,259)|0;Au(f,k);i=Vq(Q,82,tv(Q,Ir(S,o,0,0)|0,i)|0,m,0)|0;if(i){M=i+4|0;c[M>>2]=c[M>>2]|c[N>>2]&1;b[i+36>>1]=b[R+36>>1]|0}i=vv(f,i,259)|0;Au(f,i);j=c[T>>2]|0;h=j+(g*48|0)|0;if(!l){H=217;break k}c[j+(k*48|0)+4>>2]=g;N=j+(g*48|0)+16|0;b[j+(k*48|0)+16>>1]=b[N>>1]|0;H=j+(g*48|0)+22|0;a[H>>0]=(a[H>>0]|0)+1<<24>>24;c[j+(i*48|0)+4>>2]=g;b[j+(i*48|0)+16>>1]=b[N>>1]|0;a[H>>0]=(a[H>>0]|0)+1<<24>>24;H=217;break k}}while(0);Ih(i);H=217}else H=217}else H=217}}else H=217;while(0);if((H|0)==217)if(((((a[R>>0]|0)==-103?($c(c[R+8>>2]|0,31416)|0)==0:0)?(U=c[R+20>>2]|0,(c[U>>2]|0)==2):0)?(V=c[U+4>>2]|0,W=c[V+20>>2]|0,(a[W>>0]|0)==-102):0)?(X=c[V>>2]|0,Y=wv(_,X)|0,Z=C,_=wv(_,W)|0,(_&Y|0)==0&(C&Z|0)==0):0){_=vv(f,Vq(Q,51,0,Ir(S,X,0,0)|0,0)|0,3)|0;h=c[T>>2]|0;X=h+(_*48|0)+32|0;c[X>>2]=Y;c[X+4>>2]=Z;c[h+(_*48|0)+8>>2]=c[W+28>>2];c[h+(_*48|0)+12>>2]=b[W+32>>1];b[h+(_*48|0)+18>>1]=64;c[h+(_*48|0)+4>>2]=g;b[h+(_*48|0)+16>>1]=b[h+(g*48|0)+16>>1]|0;Y=h+(g*48|0)+22|0;a[Y>>0]=(a[Y>>0]|0)+1<<24>>24;Y=h+(g*48|0)+20|0;b[Y>>1]=e[Y>>1]|8;Y=h+(g*48|0)+40|0;Z=c[Y+4>>2]|0;_=h+(_*48|0)+40|0;c[_>>2]=c[Y>>2];c[_+4>>2]=Z;h=h+(g*48|0)|0}g=h+32|0;Z=g;_=c[Z+4>>2]|P;c[g>>2]=c[Z>>2]|O;c[g+4>>2]=_}while(0);return}function Bu(a,d,e,f,g,h,k){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0;m=i;i=i+112|0;if((i|0)>=(j|0))ba();l=m;h=zv(l,a,d,e,h,k)|0;a:do if(!h)h=0;else{k=h;h=0;do{d=k+32|0;e=c[d>>2]|0;d=c[d+4>>2]|0;if((e&f|0)==0&(d&g|0)==0){if((e|0)==0&(d|0)==0?(b[k+18>>1]&2)!=0:0){h=k;break a}h=(h|0)==0?k:h}k=Av(l)|0}while((k|0)!=0)}while(0);i=m;return h|0}function Cu(e,f,g){e=e|0;f=f|0;g=g|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,_=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;la=i;i=i+16|0;if((i|0)>=(j|0))ba();ia=la;v=c[e>>2]|0;ga=c[v>>2]|0;ja=c[ga>>2]|0;fa=c[e+4>>2]|0;ha=c[e+12>>2]|0;u=d[ha+16>>0]|0;v=c[v+4>>2]|0;da=c[v+(u*72|0)+24>>2]|0;x=c[e+8>>2]|0;ea=fa+20|0;fa=fa+12|0;l=c[fa>>2]|0;if((l|0)>0){n=c[v+(u*72|0)+48>>2]|0;o=0;m=0;p=c[ea>>2]|0;while(1){if((c[p+8>>2]|0)==(n|0))m=((b[p+18>>1]&-1153)<<16>>16!=0&1)+m|0;o=o+1|0;if((o|0)==(l|0))break;else p=p+48|0}}else m=0;if(!x)t=0;else{r=c[x>>2]|0;a:do if((r|0)>0){p=c[x+4>>2]|0;o=v+(u*72|0)+48|0;q=0;while(1){n=c[p+(q*20|0)>>2]|0;if((a[n>>0]|0)!=-102){l=q;break a}l=q+1|0;if((c[n+28>>2]|0)!=(c[o>>2]|0)){l=q;break a}if((l|0)<(r|0))q=l;else break}}else l=0;while(0);t=(l|0)==(r|0)?r:0}l=(m*20|0)+56+(t<<3)|0;ca=ih(ja,l,0)|0;do if(!ca){ph(ga,15776,ia);l=7}else{bw(ca|0,0,l|0)|0;l=ca+56|0;s=l+(m*12|0)|0;c[ca>>2]=m;Y=ca+8|0;c[Y>>2]=t;_=ca+4|0;c[_>>2]=l;c[ca+12>>2]=s;aa=ca+16|0;c[aa>>2]=s+(t<<3);n=c[fa>>2]|0;if((n|0)>0){q=c[v+(u*72|0)+48>>2]|0;p=0;r=0;o=c[ea>>2]|0;while(1){if((c[o+8>>2]|0)==(q|0)?(y=b[o+18>>1]|0,(y&-1153)<<16>>16!=0):0){c[l+(r*12|0)>>2]=c[o+12>>2];c[l+(r*12|0)+8>>2]=p;a[l+(r*12|0)+4>>0]=(y&255)==1?2:y&255;r=r+1|0}p=p+1|0;if((p|0)==(n|0))break;else o=o+48|0}}if((t|0)>0){l=c[x+4>>2]|0;m=0;do{c[s+(m<<3)>>2]=b[(c[l+(m*20|0)>>2]|0)+32>>1];a[s+(m<<3)+4>>0]=a[l+(m*20|0)+12>>0]|0;m=m+1|0}while((m|0)!=(t|0))}A=ha;c[A>>2]=0;c[A+4>>2]=0;A=ha+18|0;b[A>>1]=0;c[ha+36>>2]=1024;B=ha+40|0;b[B>>1]=0;D=ha+28|0;a[D>>0]=0;E=c[aa>>2]|0;F=c[ca>>2]|0;if(Ju(ja,ha,F)|0){ig(ja,ca);l=7;break}W=ca+28|0;X=ca+24|0;G=ca+20|0;H=ca+32|0;I=ca+40|0;J=ca+48|0;K=da+60|0;L=ga+64|0;O=(F|0)>0;P=ha+30|0;Q=ha+24|0;R=ha+32|0;S=ha+29|0;T=ha+20|0;U=ha+22|0;V=ha+48|0;v=0;y=0;x=0;b:while(1){if(!((y|0)!=0|(v&1|0)==0))if((v|0)>2){l=0;break}else z=v+1|0;else z=v;if((x|0)==0&(z|0)>1){l=0;break}p=c[ca>>2]|0;if((p|0)>0){m=c[ea>>2]|0;n=0;o=c[_>>2]|0;while(1){v=c[o+8>>2]|0;if(!z){l=o+5|0;a[l>>0]=0;u=(b[m+(v*48|0)+18>>1]&1)==0;y=u?y:1;v=m+(v*48|0)+32|0;v=(c[v>>2]|0)!=0|(c[v+4>>2]|0)!=0;if(v|u^1)x=v?1:x;else a[l>>0]=1}else if((z|0)==1){u=m+(v*48|0)+32|0;a[o+5>>0]=(c[u>>2]|0)==0&(c[u+4>>2]|0)==0&1}else if((z|0)==2)a[o+5>>0]=b[m+(v*48|0)+18>>1]&1^1;else a[o+5>>0]=1;n=n+1|0;if((n|0)>=(p|0)){u=y;break}else o=o+12|0}}else u=y;bw(E|0,0,p<<3|0)|0;if(c[W>>2]|0)Sc(c[X>>2]|0);c[G+0>>2]=0;c[G+4>>2]=0;c[G+8>>2]=0;c[G+12>>2]=0;h[I>>3]=5.e+98;l=J;c[l>>2]=25;c[l+4>>2]=0;l=c[ga>>2]|0;v=K;while(1){v=c[v>>2]|0;if((c[v>>2]|0)==(l|0))break;else v=v+24|0}y=c[v+8>>2]|0;v=nc[c[(c[y>>2]|0)+12>>2]&127](y,ca)|0;do if((v|0)==7)a[(c[ga>>2]|0)+65>>0]=1;else if(v){l=c[y+8>>2]|0;if(l){c[ia>>2]=l;ph(ga,10344,ia);break}if((v|0)!=516){v=v&255;if(v>>>0>26|(v|0)==2)v=16328;else v=c[15488+(v<<2)>>2]|0}else v=16344;c[ia>>2]=v;ph(ga,10344,ia)}while(0);v=y+8|0;Sc(c[v>>2]|0);c[v>>2]=0;v=c[ca>>2]|0;if((v|0)>0){l=0;do{if((a[(c[_>>2]|0)+(l*12|0)+5>>0]|0)==0?(c[(c[aa>>2]|0)+(l<<3)>>2]|0)>0:0){c[ia>>2]=c[da>>2];ph(ga,34096,ia);v=c[ca>>2]|0}l=l+1|0}while((l|0)<(v|0))}l=c[L>>2]|0;if(l)break;y=c[_>>2]|0;t=ha;c[t>>2]=f;c[t+4>>2]=g;c:do if(O){v=0;do{c[(c[V>>2]|0)+(v<<2)>>2]=0;v=v+1|0}while((v|0)!=(F|0));b[P>>1]=0;if(O){n=f;m=g;l=0;t=0;v=-1;while(1){p=c[E+(t<<3)>>2]|0;q=p+-1|0;do if((p|0)>0){r=c[y+8>>2]|0;if((p|0)>(F|0)|(r|0)<0){ka=65;break b}if((r|0)>=(c[fa>>2]|0)){ka=65;break b}o=(c[V>>2]|0)+(q<<2)|0;if(c[o>>2]|0){ka=65;break b}s=c[ea>>2]|0;ma=s+(r*48|0)+32|0;n=n|c[ma>>2];m=m|c[ma+4>>2];ma=ha;c[ma>>2]=n;c[ma+4>>2]=m;c[o>>2]=s+(r*48|0);v=(q|0)>(v|0)?q:v;do if((p|0)<17){if(!(a[E+(t<<3)+4>>0]|0))break;l=(l&65535|1<<q)&65535;b[P>>1]=l}while(0);if(!(b[s+(r*48|0)+18>>1]&1))break;if(!(a[E+(t<<3)+4>>0]|0))break c;c[H>>2]=0}while(0);t=t+1|0;if((t|0)>=(F|0)){ka=73;break}else y=y+12|0}}else{v=-1;ka=73}}else{b[P>>1]=0;v=-1;ka=73}while(0);if((ka|0)==73){ka=0;b[B>>1]=v+1;c[Q>>2]=c[G>>2];a[D>>0]=c[W>>2];c[W>>2]=0;c[R>>2]=c[X>>2];if(!(c[H>>2]|0))v=0;else v=c[Y>>2]&255;a[S>>0]=v;b[A>>1]=0;w=+h[I>>3];h[k>>3]=w;v=c[k>>2]|0;l=c[k+4>>2]|0;do if(!(w<=1.0))if(!(w<=2.0e9)){v=iw(v|0,l|0,52)|0;v=fw(v|0,C|0,64514,0)|0;v=(v<<16>>16)*10&65535;break}else{v=bs(~~w>>>0,+N(w)>=1.0?(w>0.0?~~+$(+M(w/4294967296.0),4294967295.0)>>>0:~~+Z((w-+(~~w>>>0))/4294967296.0)>>>0):0)|0;break}else v=0;while(0);b[T>>1]=v;t=J;b[U>>1]=bs(c[t>>2]|0,c[t+4>>2]|0)|0;Bv(e,ha)|0;if(a[D>>0]|0){Sc(c[R>>2]|0);a[D>>0]=0}}v=z+1|0;if((v|0)>=4){l=0;break}else y=u}if((ka|0)==65){c[ia>>2]=c[da>>2];ph(ga,34064,ia);l=1}if(c[W>>2]|0)Sc(c[X>>2]|0);ig(ja,ca)}while(0);i=la;return l|0}function Du(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0;da=i;i=i+64|0;if((i|0)>=(j|0))ba();p=da;o=da+56|0;n=da+52|0;b[n>>1]=-1;$=c[f+12>>2]|0;aa=c[f>>2]|0;G=c[aa+4>>2]|0;H=d[$+16>>0]|0;W=G+(H*72|0)+8|0;m=G+(H*72|0)+24|0;I=c[m>>2]|0;X=c[f+4>>2]|0;Y=G+(H*72|0)+76|0;k=c[Y>>2]|0;do if(!k){if(a[I+44>>0]&32){p=c[I+8>>2]|0;break}k=p+0|0;l=k+52|0;do{c[k>>2]=0;k=k+4|0}while((k|0)<(l|0));b[p+46>>1]=1;b[p+48>>1]=1;c[p+4>>2]=n;c[p+8>>2]=o;a[p+50>>0]=5;c[p+12>>2]=I;b[p+44>>1]=b[I+42>>1]|0;b[o>>1]=b[I+28>>1]|0;b[o+2>>1]=0;if(!(a[G+(H*72|0)+45>>0]&1))c[p+20>>2]=c[(c[m>>2]|0)+8>>2]}else p=k;while(0);o=b[I+28>>1]|0;if(o<<16>>16<11)B=0;else{B=o<<16>>16;B=((bs(B,((B|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((c[f+16>>2]|0)==0?(b[aa+34>>1]&128)==0:0)?(c[(c[c[aa>>2]>>2]|0)+24>>2]&1048576|0)!=0:0)?(c[Y>>2]|0)==0:0)?(q=a[G+(H*72|0)+45>>0]|0,(q&5)==0):0)?(F=I+44|0,(q&10|a[F>>0]&32)<<24>>24==0):0)?(D=c[X+20>>2]|0,V=c[X+12>>2]|0,E=D+(V*48|0)|0,(V|0)>0):0){v=$+8|0;w=$+24|0;x=$+42|0;y=$+28|0;z=$+40|0;A=$+48|0;r=(B&65535)+(o&65535)|0;n=r+4&65535;m=$+18|0;l=I+12|0;r=r+28&65535;s=$+22|0;t=$+20|0;u=$+36|0;o=D;do{q=o+32|0;V=q;U=v;if(((c[U>>2]&c[V>>2]|0)==0?(c[U+4>>2]&c[V+4>>2]|0)==0:0)?(Iu(o,W,0,0)|0)!=0:0){b[w>>1]=1;b[x>>1]=0;c[y>>2]=0;b[z>>1]=1;c[c[A>>2]>>2]=o;b[m>>1]=n;if((c[l>>2]|0)==0?(a[F>>0]&2)==0:0)b[m>>1]=r;b[s>>1]=43;b[t>>1]=Cv(B,43)|0;c[u>>2]=16384;U=q;V=c[U+4>>2]|h;k=$;c[k>>2]=c[U>>2]|g;c[k+4>>2]=V;k=Bv(f,$)|0}else k=0;o=o+48|0}while((k|0)==0&o>>>0<E>>>0)}else k=0;V=$+36|0;a:do if((k|0)==0&(p|0)!=0){M=$+24|0;N=$+42|0;O=$+40|0;P=$+17|0;Q=$+18|0;R=$+22|0;S=$+28|0;T=G+(H*72|0)+48|0;U=$+20|0;K=G+(H*72|0)+64|0;L=I+42|0;t=I+44|0;s=aa+34|0;r=X+12|0;G=X+20|0;J=1;while(1){u=c[p+36>>2]|0;v=c[T>>2]|0;b:do if(u){k=c[r>>2]|0;if((k|0)>0){m=0;n=c[G>>2]|0;while(1){l=c[n>>2]|0;if(Dv(l,u,v)|0){if(!(c[l+4>>2]&1)){ca=32;break b}if((b[l+36>>1]|0)==(v|0)){ca=32;break b}}m=m+1|0;if((m|0)>=(k|0)){k=0;break}else n=n+48|0}}else k=0}else ca=32;while(0);if((ca|0)==32){ca=0;H=b[c[p+8>>2]>>1]|0;b[M>>1]=0;b[N>>1]=0;b[O>>1]=0;a[P>>0]=0;b[Q>>1]=0;I=$;c[I>>2]=g;c[I+4>>2]=h;b[R>>1]=H;c[S>>2]=p;I=p+51|0;w=a[I>>0]|0;c:do if(((w&4)==0?(Z=c[(c[f>>2]|0)+8>>2]|0,(Z|0)!=0):0)?(_=c[Z>>2]|0,(_|0)>0):0){F=c[Z+4>>2]|0;E=p+46|0;y=p+4|0;x=0;while(1){B=c[F+(x*20|0)>>2]|0;d:do if(!B)B=0;else while(1){A=c[B+4>>2]|0;if(!(A&4096))break d;if(!(A&262144))B=B+12|0;else B=c[(c[B+20>>2]|0)+4>>2]|0;B=c[B>>2]|0;if(!B){B=0;break}}while(0);if((a[B>>0]|0)!=-102){x=0;break c}if((c[B+28>>2]|0)==(v|0)){A=b[B+32>>1]|0;if(A<<16>>16<0){x=1;break c}B=b[E>>1]|0;if(B<<16>>16){z=c[y>>2]|0;B=B&65535;D=0;do{if(A<<16>>16==(b[z+(D<<1)>>1]|0)){x=1;break c}D=D+1|0}while((D|0)<(B|0))}}x=x+1|0;if((x|0)>=(_|0)){x=0;break}}}else x=0;while(0);do if((c[p+40>>2]|0)<1){c[V>>2]=256;a[P>>0]=(x|0)!=0?J&255:0;b[U>>1]=(H&65535)+16;Ev(X,$,H);k=Bv(f,$)|0;b[R>>1]=H;if(k)break a}else{if(!(w&32)){E=K;F=c[E>>2]|0;E=c[E+4>>2]|0;D=p+4|0;B=0;A=0;z=e[p+48>>1]|0;e:while(1){y=z;while(1){z=y+-1|0;if((y|0)<=0)break e;y=b[(c[D>>2]|0)+(z<<1)>>1]|0;if((y&65535)<63)break;else y=z}q=ew(1,0,y<<16>>16|0)|0;B=q|B;A=C|A}q=F&~B;u=E&~A;B=q;A=u;u=(q|0)==0&(u|0)==0?576:512}else{B=0;A=0;u=576}c[V>>2]=u;q=(x|0)!=0;if(!q?(a[t>>0]&32)==0:0){if(!((B|0)==0&(A|0)==0))break;if(a[I>>0]&4)break;if((b[p+44>>1]|0)>=(b[L>>1]|0))break;if(!((b[s>>1]&4)==0&(c[2190]|0)!=0))break;if(b[(c[c[aa>>2]>>2]|0)+60>>1]&64)break}a[P>>0]=q?J&255:0;o=H<<16>>16;q=o+1+(((b[p+44>>1]|0)*15|0)/(b[L>>1]|0)|0)&65535;if(!((B|0)==0&(A|0)==0))q=Cv(q,o+16&65535)|0;b[U>>1]=q;Ev(X,$,H);k=Bv(f,$)|0;b[R>>1]=H;if(k)break a}while(0);k=Fv(f,W,p,0)|0;if(c[Y>>2]|0)break a}p=c[p+20>>2]|0;if(!((k|0)==0&(p|0)!=0))break;else J=J+1|0}}while(0);i=da;return k|0}function Eu(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0;$=i;i=i+608|0;if((i|0)>=(j|0))ba();Z=$+168|0;X=$+576|0;Y=$+112|0;V=$+56|0;W=$;k=c[f>>2]|0;S=c[f+4>>2]|0;o=c[S+20>>2]|0;n=c[S+12>>2]|0;U=o+(n*48|0)|0;R=c[f+12>>2]|0;l=Y+0|0;m=l+56|0;do{c[l>>2]=0;l=l+4|0}while((l|0)<(m|0));m=c[k+4>>2]|0;l=d[R+16>>0]|0;Q=c[m+(l*72|0)+48>>2]|0;a:do if((n|0)>0){A=R+8|0;B=X+8|0;C=X+16|0;D=R+40|0;E=R+48|0;F=R+36|0;G=R+18|0;H=R+17|0;I=R+24|0;J=R+20|0;K=R+22|0;L=Z+4|0;M=Z+8|0;N=Z+12|0;O=Z+20|0;P=X+4|0;w=m+(l*72|0)+24|0;x=W+8|0;y=Y+8|0;z=V+8|0;while(1){b:do if((b[o+18>>1]&256)!=0?(T=c[o+12>>2]|0,t=T+408|0,s=A,!((c[s>>2]&c[t>>2]|0)==0?(c[s+4>>2]&c[t+4>>2]|0)==0:0)):0){n=T+20|0;v=(c[n>>2]|0)+((c[T+12>>2]|0)*48|0)|0;c[X+0>>2]=c[f+0>>2];c[X+4>>2]=c[f+4>>2];c[X+8>>2]=c[f+8>>2];c[X+12>>2]=c[f+12>>2];c[B>>2]=0;c[C>>2]=V;n=c[n>>2]|0;c:do if(n>>>0<v>>>0){l=1;k=0;d:while(1){if(!(b[n+18>>1]&512))if((c[n+8>>2]|0)==(Q|0)){c[Z>>2]=c[S>>2];c[L>>2]=S;a[M>>0]=72;c[N>>2]=1;c[O>>2]=n;m=Z;_=10}else m=l;else{m=c[n+12>>2]|0;_=10}do if((_|0)==10){_=0;c[P>>2]=m;b[V>>1]=0;if(!(a[(c[w>>2]|0)+44>>0]&16))k=Du(X,g,h)|0;else k=Cu(X,g,h)|0;if(!k)k=Eu(X,g,h)|0;m=b[V>>1]|0;if(!(m<<16>>16))break d;if(l){b[Y>>1]=m;gw(y|0,z|0,(m&65535)<<4|0)|0;m=0;break}t=b[Y>>1]|0;b[W>>1]=t;u=t&65535;gw(x|0,y|0,u<<4|0)|0;b[Y>>1]=0;if(!(t<<16>>16))m=0;else{t=0;do{if(!(m<<16>>16))m=0;else{p=W+(t<<4)+8|0;l=c[p>>2]|0;p=c[p+4>>2]|0;q=b[W+(t<<4)+16>>1]|0;r=b[W+(t<<4)+18>>1]|0;s=0;do{aa=V+(s<<4)+8|0;ca=c[aa>>2]|l;aa=c[aa+4>>2]|p;m=Cv(q,b[V+(s<<4)+16>>1]|0)|0;Gv(Y,ca,aa,m,Cv(r,b[V+(s<<4)+18>>1]|0)|0);s=s+1|0;m=b[V>>1]|0}while((s|0)<(m&65535|0))}t=t+1|0}while((t|0)<(u|0));m=0}}while(0);n=n+48|0;if(n>>>0>=v>>>0)break c;else l=m}b[Y>>1]=0}else k=0;while(0);b[D>>1]=1;c[c[E>>2]>>2]=o;c[F>>2]=8192;b[G>>1]=0;a[H>>0]=0;c[I+0>>2]=0;c[I+4>>2]=0;c[I+8>>2]=0;if(k)break a;n=e[Y>>1]|0;m=0;while(1){if((m|0)>=(n|0))break b;b[J>>1]=(e[Y+(m<<4)+16>>1]|0)+1;b[K>>1]=b[Y+(m<<4)+18>>1]|0;s=Y+(m<<4)+8|0;t=c[s+4>>2]|0;k=R;c[k>>2]=c[s>>2];c[k+4>>2]=t;k=Bv(f,R)|0;if(!k)m=m+1|0;else break a}}while(0);o=o+48|0;if(o>>>0>=U>>>0){k=0;break}}}else k=0;while(0);i=$;return k|0}function Fu(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=d+48|0;f=c[e>>2]|0;g=d+56|0;if((f|0)!=(g|0))ig(a,f);Hv(a,d);c[e>>2]=g;b[d+40>>1]=0;b[d+44>>1]=3;c[d+36>>2]=0;return}function Gu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0;la=i;i=i+32|0;if((i|0)>=(j|0))ba();ca=la+24|0;Z=la+16|0;fa=la+8|0;ka=la;aa=c[d>>2]|0;ha=c[aa>>2]|0;o=a[d+41>>0]|0;ia=o&255;if((o&255)<2)V=1;else V=o<<24>>24==2?5:10;ja=d+8|0;l=c[ja>>2]|0;da=f<<16>>16==0;if((l|0)==0|da)U=0;else U=c[l>>2]|0;m=U<<1;ga=m+(_((ia<<3)+64|0,V)|0)|0;ga=ih(ha,ga,((ga|0)<0)<<31>>31)|0;do if(ga){l=ga+(V<<5)|0;c[l+0>>2]=0;c[l+4>>2]=0;c[l+8>>2]=0;c[l+12>>2]=0;c[l+16>>2]=0;c[l+20>>2]=0;c[l+24>>2]=0;c[l+28>>2]=0;g=V<<1;n=_(V,-2)|0;n=ga+((_((((n|0)>-1?n:1073741823)+(V<<1)<<2)+4|0,ia)|0)+(V<<6))|0;k=g;h=ga;g=ga+(g<<5)|0;while(1){c[h+24>>2]=g;k=k+-1|0;if((k|0)<=0)break;else{h=h+32|0;g=g+(ia<<2)|0}}k=(U|0)!=0;if(k)bw(n|0,0,m|0)|0;else n=0;T=c[aa+424>>2]|0;b[ga+(V<<5)+16>>1]=T>>>0<48?T&65535:48;if(k)a[ga+(V<<5)+22>>0]=o<<24>>24!=0?-1:U&255;T=o<<24>>24==0;if(!T){P=d+16|0;Q=d+34|0;R=f<<16>>16<11;S=(f&65535)+16|0;M=f<<16>>16;N=((M|0)<0)<<31>>31;O=V>>>0>1;g=ga;L=0;m=0;o=0;f=0;h=1;while(1){if((h|0)>0){G=L&65535;H=L<<2;I=g+18|0;J=g+16|0;K=0;k=0;F=l;while(1){p=c[P>>2]|0;if(p){A=F+22|0;B=F+16|0;C=F+20|0;D=F+24|0;E=F+8|0;z=k;while(1){r=a[A>>0]|0;s=Z;c[s>>2]=0;c[s+4>>2]=0;s=p;k=F;q=c[k>>2]|0;k=c[k+4>>2]|0;a:do if(((c[s>>2]&~q|0)==0?(c[s+4>>2]&~k|0)==0:0)?(W=p+8|0,Y=W,X=c[Y>>2]|0,Y=c[Y+4>>2]|0,(X&q|0)==0&(Y&k|0)==0):0){v=e[B>>1]|0;x=Cv(b[p+18>>1]|0,v+(e[p+20>>1]|0)&65535)|0;x=Cv(x,b[C>>1]|0)|0;v=(e[p+22>>1]|0)+v|0;y=v&65535;u=X|q;s=Y|k;if(r<<24>>24<0)w=Iv(d,c[ja>>2]|0,F,b[Q>>1]|0,G,p,Z)|0;else{k=E;q=c[k+4>>2]|0;w=Z;c[w>>2]=c[k>>2];c[w+4>>2]=q;w=r}r=w<<24>>24;if(w<<24>>24>-1&(U|0)>(r|0)){t=n+(r<<1)|0;q=b[t>>1]|0;if(!(q<<16>>16)){r=((U-r|0)*100|0)/(U|0)|0;r=(bs(r,((r|0)<0)<<31>>31)|0)&65535;if(R)k=0;else k=((bs(M,N)|0)&65535)+65503&65535;r=S+(((r<<16)+-4325376|0)>>>16)+k|0;if(b[Q>>1]&1024)r=(r&65535)+16|0;q=r&65535;b[t>>1]=q}t=Cv(x,q)|0}else t=x;b:do if((z|0)>0){r=0;q=g;while(1){k=q;if(((c[k>>2]|0)==(u|0)?(c[k+4>>2]|0)==(s|0):0)?(a[q+22>>0]^w)<<24>>24>-1:0)break;r=r+1|0;if((r|0)>=(z|0)){$=35;break b}else q=q+32|0}k=b[q+18>>1]|0;if(k<<16>>16<t<<16>>16){k=z;break a}if(k<<16>>16!=t<<16>>16){k=z;break}if((b[q+16>>1]|0)>(v<<16>>16|0))k=z;else{k=z;break a}}else $=35;while(0);if(($|0)==35){$=0;q=(z|0)<(V|0);if(!q){if(t<<16>>16>m<<16>>16){k=z;break}if(!(t<<16>>16!=m<<16>>16?1:x<<16>>16<f<<16>>16)){k=z;break}}k=(q&1)+z|0;q=g+((q?z:o)<<5)|0}r=F;v=W;s=c[v+4>>2]|c[r+4>>2];u=q;c[u>>2]=c[v>>2]|c[r>>2];c[u+4>>2]=s;u=Z;s=c[u+4>>2]|0;r=q+8|0;c[r>>2]=c[u>>2];c[r+4>>2]=s;b[q+16>>1]=y;b[q+18>>1]=t;b[q+20>>1]=x;a[q+22>>0]=w;q=q+24|0;gw(c[q>>2]|0,c[D>>2]|0,H|0)|0;c[(c[q>>2]|0)+(L<<2)>>2]=p;if((k|0)<(V|0))break;m=b[I>>1]|0;f=b[J>>1]|0;if(O){s=g;t=1;r=m;o=0;q=f}else{o=0;break}while(1){m=b[s+50>>1]|0;do if(m<<16>>16<=r<<16>>16){if(m<<16>>16!=r<<16>>16){m=r;f=q;break}f=b[s+52>>1]|0;if(f<<16>>16>q<<16>>16)$=48;else{m=r;f=q}}else{f=b[s+52>>1]|0;$=48}while(0);s=s+32|0;if(($|0)==48){$=0;o=t}t=t+1|0;if((t|0)>=(V|0))break;else{r=m;q=f}}}else k=z;while(0);p=c[p+52>>2]|0;if(!p)break;else z=k}}K=K+1|0;if((K|0)==(h|0)){h=k;break}else F=F+32|0}}else h=0;L=L+1|0;if((L|0)>=(ia|0))break;else{K=g;g=l;l=K}}if(!h){ph(aa,34008,ca);ig(ha,ga);break}if((h|0)>1){k=1;l=g;do{if((b[l+18>>1]|0)>(b[g+(k<<5)+18>>1]|0))l=g+(k<<5)|0;k=k+1|0}while((k|0)!=(h|0))}else l=g;if(!T){h=d+4|0;k=c[l+24>>2]|0;g=0;do{$=c[k+(g<<2)>>2]|0;c[d+(g*80|0)+800>>2]=$;$=a[$+16>>0]|0;a[d+(g*80|0)+780>>0]=$;c[d+(g*80|0)+740>>2]=c[(c[h>>2]|0)+(($&255)*72|0)+48>>2];g=g+1|0}while((g|0)<(ia|0))}}h=d+34|0;if(((b[h>>1]&1536)==1024?(ea=d+40|0,!((a[ea>>0]|0)!=0|da)):0)?($=d+12|0,Z=ia+-1|0,Z=(Iv(d,c[$>>2]|0,l,512,Z&65535,c[(c[l+24>>2]|0)+(Z<<2)>>2]|0,fa)|0)<<24>>24,(Z|0)==(c[c[$>>2]>>2]|0)):0)a[ea>>0]=2;k=c[ja>>2]|0;if(k){g=b[h>>1]|0;h=a[l+22>>0]|0;if(g&512){if((h<<24>>24|0)==(c[k>>2]|0))a[d+40>>0]=2}else{a[d+36>>0]=h<<24>>24<0?0:h;Y=l+8|0;Z=c[Y+4>>2]|0;$=d+24|0;c[$>>2]=c[Y>>2];c[$+4>>2]=Z}if(((g&2048)!=0?(a[d+36>>0]|0)==(c[k>>2]|0):0)?($=ka,c[$>>2]=0,c[$+4>>2]=0,$=ia+-1|0,$=(Iv(d,k,l,0,$&65535,c[(c[l+24>>2]|0)+($<<2)>>2]|0,ka)|0)<<24>>24,($|0)==(c[c[ja>>2]>>2]|0)):0){a[d+37>>0]=1;Y=ka;Z=c[Y+4>>2]|0;$=d+24|0;c[$>>2]=c[Y>>2];c[$+4>>2]=Z}}b[d+32>>1]=b[l+16>>1]|0;ig(ha,ga)}while(0);i=la;return}function Hu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=0?(g=c[b>>2]|0,(g|0)>0):0){e=c[b+4>>2]|0;d=0;b=0;f=0;do{h=wv(a,c[e+(f*20|0)>>2]|0)|0;d=h|d;b=C|b;f=f+1|0}while((f|0)<(g|0))}else{b=0;d=0}C=b;return d|0}function Iu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;do if((((c[d+8>>2]|0)==(c[e+40>>2]|0)?(b[d+18>>1]&2)!=0:0)?(i=d+32|0,(c[i>>2]&f|0)==0?(c[i+4>>2]&g|0)==0:0):0)?(h=c[d+12>>2]|0,(h|0)>=0):0){f=a[(c[(c[e+16>>2]|0)+4>>2]|0)+(h*24|0)+21>>0]|0;g=(jv(c[d>>2]|0)|0)<<24>>24;if((g|0)==65){g=1;break}else if((g|0)==66){g=f<<24>>24==66&1;break}else{g=f<<24>>24>66&1;break}}else g=0;while(0);return g|0}function Ju(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=d+44|0;if((e[j>>1]|0|0)<(f|0)){g=f+7&-8;h=ih(a,g<<2,0)|0;if(!h)f=7;else{i=d+48|0;gw(h|0,c[i>>2]|0,(e[j>>1]|0)<<2|0)|0;f=c[i>>2]|0;if((f|0)!=(d+56|0))ig(a,f);c[i>>2]=h;b[j>>1]=g;f=0}}else f=0;return f|0}function Ku(a,b,d){a=a|0;b=b|0;d=d|0;do if(!(c[b+4>>2]&256)){if((d|0)!=0?(c[d+4>>2]&256|0)!=0:0){b=_t(a,d)|0;break}b=_t(a,b)|0;if(!b)b=_t(a,d)|0}else b=_t(a,b)|0;while(0);return b|0}function Lu(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+144|0;if((i|0)>=(j|0))ba();t=y;x=y+8|0;o=y+36|0;if(((a[e+450>>0]|0)==2?(q=d[g+44>>0]|0,w=c[e+8>>2]|0,n=c[e>>2]|0,v=c[e+464>>2]|0,s=c[g+64>>2]|0,u=s+36|0,r=c[u>>2]|0,(r&8192|0)==0):0)?(m=l&65535,(m&64|0)==0):0){l=r&48;do if(!l){if((r&1024|0)==0?(b[s+24>>1]|0)!=0:0){p=1;break}p=(m&3|0)!=0}else p=1;while(0);c[x+4>>2]=o;c[x+8>>2]=o;c[x+12>>2]=0;c[x+16>>2]=100;c[x+20>>2]=1e9;a[x+24>>0]=1;a[x+25>>0]=0;c[x>>2]=n;e=p?33576:33584;g=e;while(1)if(!(a[g>>0]|0))break;else g=g+1|0;Ok(x,e,g-e&1073741823);if(!(c[f+(q*72|0)+28>>2]|0)){c[t>>2]=c[f+(q*72|0)+16>>2];An(x,0,33608,t)}else{c[t>>2]=d[f+(q*72|0)+46>>0];An(x,0,33592,t)}e=c[f+(q*72|0)+20>>2]|0;if(e){c[t>>2]=e;An(x,0,33624,t)}do if(!(r&1280)){m=s+28|0;g=c[m>>2]|0;l=f+(q*72|0)+24|0;if((a[(c[l>>2]|0)+44>>0]&32)!=0?(a[g+51>>0]&3)==2:0)if(p)e=33632;else break;else if(!(r&131072))if(!(r&16384))e=(r&64|0)==0?33744:33720;else e=33688;else e=33648;Ok(x,33760,7);c[t>>2]=c[g>>2];An(x,0,e,t);r=b[s+24>>1]|0;p=c[(c[l>>2]|0)+4>>2]|0;o=c[(c[m>>2]|0)+4>>2]|0;g=r&65535;if(!(r<<16>>16)){if(!(c[u>>2]&48))break;Ok(x,33904,2);m=0}else{l=b[s+42>>1]|0;Ok(x,33904,2);l=l&65535;m=0;do{e=b[o+(m<<1)>>1]|0;if(e<<16>>16<0)e=20456;else e=c[p+((e<<16>>16)*24|0)>>2]|0;if((m|0)<(l|0)){if(m)Ok(x,33920,5);c[t>>2]=e;An(x,0,33928,t)}else Jv(x,m,e,33912);m=m+1|0}while((m|0)<(g|0));m=g>>>0>1?g:1}l=c[u>>2]|0;if(!(l&32))e=m;else{l=b[o+(m<<1)>>1]|0;if(l<<16>>16<0)l=20456;else l=c[p+((l<<16>>16)*24|0)>>2]|0;Jv(x,m,l,33936);l=c[u>>2]|0;e=m+1|0}if(l&16){m=b[o+(m<<1)>>1]|0;if(m<<16>>16<0)m=20456;else m=c[p+((m<<16>>16)*24|0)>>2]|0;Jv(x,e,m,33944)}Ok(x,33952,1)}else{if((r&256|0)==0|(r&15|0)==0){if(!(r&1024))break;r=c[s+32>>2]|0;c[t>>2]=c[s+24>>2];c[t+4>>2]=r;An(x,0,33872,t);break}if(!(r&5))if((l|0)==48)l=33784;else l=(r&32|0)==0?33824:33808;else l=33768;Ok(x,33840,27);m=l;while(1)if(!(a[m>>0]|0))break;else m=m+1|0;Ok(x,l,m-l&1073741823)}while(0);r=pg(x)|0;th(w,sh(w,157,v,h,k)|0,r,-1)}i=y;return}function Mu(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0;l=c[d>>2]|0;n=c[b+8>>2]|0;i=a[l>>0]|0;do if(i<<24>>24==79)h=es(b,c[l+16>>2]|0,h)|0;else if(i<<24>>24==76)sh(n,28,0,h,0)|0;else{j=c[e+64>>2]|0;i=j+36|0;if(((c[i>>2]&1024|0)==0?(k=c[j+28>>2]|0,(k|0)!=0):0)?(a[(c[k+28>>2]|0)+f>>0]|0)!=0:0)g=(g|0)==0&1;m=iv(b,l,4,0)|0;if((m|0)==4)g=(g|0)==0&1;l=c[l+28>>2]|0;f=(g|0)!=0;sh(n,f?105:108,l,0,0)|0;c[i>>2]=c[i>>2]|2048;k=e+56|0;i=c[k>>2]|0;if(!i){c[e+16>>2]=ts(n)|0;i=c[k>>2]|0}j=i+1|0;c[k>>2]=j;i=e+60|0;j=Sl(c[b>>2]|0,c[i>>2]|0,j*12|0,0)|0;c[i>>2]=j;if(!j){c[k>>2]=0;break}i=(c[k>>2]|0)+-1|0;c[j+(i*12|0)>>2]=l;if((m|0)==1)g=sh(n,103,l,h,0)|0;else g=sh(n,47,l,0,h)|0;c[j+(i*12|0)+4>>2]=g;a[j+(i*12|0)+8>>0]=f?6:7;sh(n,76,h,0,0)|0}while(0);Nu(e,d);return h|0}function Nu(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:do if(e){i=d+72|0;h=0;while(1){f=e+20|0;g=b[f>>1]|0;if(g&4)break a;if((c[d>>2]|0)!=0?(c[(c[e>>2]|0)+4>>2]&1|0)==0:0)break a;j=i;k=e+40|0;if(!((c[k>>2]&c[j>>2]|0)==0?(c[k+4>>2]&c[j+4>>2]|0)==0:0))break a;g=g&65535;b[f>>1]=g|((h|0)==0|(g&1024|0)==0?4:512);g=c[e+4>>2]|0;if((g|0)<0)break a;e=c[(c[e+24>>2]|0)+20>>2]|0;j=e+(g*48|0)+22|0;f=(a[j>>0]|0)+-1<<24>>24;a[j>>0]=f;if(f<<24>>24)break a;e=e+(g*48|0)|0;if(!e)break;else h=h+1|0}}while(0);return}function Ou(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0;do if(!(b[(c[d>>2]|0)+60>>1]&2)){k=d+116|0;j=0;h=k;while(1){i=h+12|0;if(!(c[i>>2]|0)){n=4;break}j=j+1|0;if((j|0)>=10){l=0;h=-1;m=2147483647;break}else h=h+20|0}if((n|0)==4){c[h+8>>2]=c[d+100>>2];c[h>>2]=e;b[h+4>>1]=f;c[i>>2]=g;a[h+6>>0]=0;g=d+104|0;e=c[g>>2]|0;c[g>>2]=e+1;c[h+16>>2]=e;break}while(1){j=c[k+16>>2]|0;i=(j|0)<(m|0);h=i?l:h;l=l+1|0;if((l|0)==10)break;else{m=i?j:m;k=k+20|0}}if((h|0)>-1){c[d+(h*20|0)+124>>2]=c[d+100>>2];c[d+(h*20|0)+116>>2]=e;b[d+(h*20|0)+120>>1]=f;c[d+(h*20|0)+128>>2]=g;a[d+(h*20|0)+122>>0]=0;g=d+104|0;e=c[g>>2]|0;c[g>>2]=e+1;c[d+(h*20|0)+132>>2]=e}}while(0);return}function Pu(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;r=c[d+8>>2]|0;m=c[e+64>>2]|0;n=b[m+24>>1]|0;p=b[m+42>>1]|0;t=c[m+28>>2]|0;q=d+72|0;l=c[q>>2]|0;i=l+1|0;s=n&65535;o=s+g|0;c[q>>2]=l+o;q=c[d>>2]|0;t=gh(q,kt(r,t)|0)|0;q=(t|0)!=0;if(!q)a[(c[d>>2]|0)+65>>0]=1;if(p<<16>>16){g=c[e+8>>2]|0;j=(f|0)!=0;sh(r,j?105:108,g,0,0)|0;k=sh(r,16,0,0,0)|0;l=p&65535;j=sh(r,j?62:65,g,0,i)|0;th(r,j,l,-14);c[e+20>>2]=j;j=c[r+32>>2]|0;if(j>>>0>k>>>0)c[(c[r+4>>2]|0)+(k*20|0)+8>>2]=j;c[(c[r+24>>2]|0)+88>>2]=j+-1;k=0;do{sh(r,47,g,k,k+i|0)|0;k=k+1|0}while((k|0)<(l|0))}if((p&65535)<(n&65535)){m=m+48|0;l=e+12|0;n=(o|0)==1;o=p&65535;k=i;while(1){j=c[(c[m>>2]|0)+(o<<2)>>2]|0;g=o+k|0;i=Mu(d,j,e,o,f,g)|0;do if((i|0)!=(g|0))if(n){Wr(d,k);break}else{sh(r,34,i,g,0)|0;i=k;break}else i=k;while(0);if(!(b[j+18>>1]&129)){g=c[(c[j>>2]|0)+16>>2]|0;if(Qu(g)|0)sh(r,76,i+o|0,c[l>>2]|0,0)|0;if(q){j=t+o|0;if((xu(g,a[j>>0]|0)|0)<<24>>24==65){a[j>>0]=65;k=65}else k=a[j>>0]|0;if(Ru(g,k)|0)a[j>>0]=65}}o=o+1|0;if((o|0)>=(s|0))break;else k=i}}c[h>>2]=t;return i|0}function Qu(d){d=d|0;var e=0;e=a[d>>0]|0;if((e+99&255)<2)do{d=c[d+12>>2]|0;e=a[d>>0]|0}while((e+99&255)<2);if(e<<24>>24==-97)e=a[d+38>>0]|0;switch(e&255|0){case 134:case 133:case 97:case 132:{d=0;break}case 154:{if(!(c[d+4>>2]&1048576)){e=b[d+32>>1]|0;if(e<<16>>16>-1)d=(a[(c[(c[d+44>>2]|0)+4>>2]|0)+((e<<16>>16)*24|0)+20>>0]|0)==0;else d=0}else d=1;d=d&1;break}default:d=1}return d|0}function Ru(d,e){d=d|0;e=e|0;var f=0;a:do if(e<<24>>24==65)d=1;else{f=a[d>>0]|0;if((f+99&255)<2)do{d=c[d+12>>2]|0;f=a[d>>0]|0}while((f+99&255)<2);if(f<<24>>24==-97)f=a[d+38>>0]|0;switch(f&255|0){case 154:{if((b[d+32>>1]|0)<0)d=(e+-67&255)<2;else d=0;d=d&1;break a}case 97:{d=e<<24>>24==66&1;break a}case 132:{d=(e+-67&255)<2&1;break a}case 134:{d=1;break a}case 133:{d=(e<<24>>24==69|e<<24>>24==67)&1;break a}default:{d=0;break a}}}while(0);return d|0}function Su(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;h=c[b+8>>2]|0;do if(f){a:do if((e|0)>0)while(1){if((a[f>>0]|0)!=65){g=f;break a}e=e+-1|0;d=d+1|0;f=f+1|0;if((e|0)<=0){g=f;break}}else g=f;while(0);while(1){if((e|0)<=1){i=8;break}f=e+-1|0;if((a[g+f>>0]|0)==65)e=f;else break}if((i|0)==8)if((e|0)<=0)break;sh(h,48,d,e,0)|0;th(h,-1,g,e);$s(b,d,e)}while(0);return}function Tu(a,b){a=a|0;b=b|0;var d=0,e=0;if(b){Kv(b+328|0);e=b+16|0;d=c[e>>2]|0;if(d)do{c[e>>2]=c[d+52>>2];Fu(a,d);ig(a,d);d=c[e>>2]|0}while((d|0)!=0);ig(a,b)}return}function Uu(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+32|0;if((i|0)>=(j|0))ba();e=d;c[e+0>>2]=0;c[e+4>>2]=0;c[e+8>>2]=0;c[e+12>>2]=0;c[e+16>>2]=0;c[e+20>>2]=0;c[e>>2]=80;c[e+4>>2]=81;c[e+24>>2]=a;ns(e,b)|0;i=d;return}function Vu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;p=i;i=i+16|0;if((i|0)>=(j|0))ba();n=p+4|0;o=p;m=c[b+8>>2]|0;c[n>>2]=0;c[o>>2]=0;if(!((m|0)==0|(d|0)==0)){h=a[d>>0]|0;g=h&255;a:do switch(g|0){case 72:{l=ts(m)|0;ct(b,c[d+12>>2]|0,l,f^16);g=b+100|0;c[g>>2]=(c[g>>2]|0)+1;Vu(b,c[d+16>>2]|0,e,f);g=c[m+24>>2]|0;h=~l;if((l|0)<0?(k=c[g+112>>2]|0,(k|0)!=0):0)c[k+(h<<2)>>2]=c[m+32>>2];c[g+88>>2]=(c[m+32>>2]|0)+-1;Zt(b);break}case 71:{Vu(b,c[d+12>>2]|0,e,f);m=b+100|0;c[m>>2]=(c[m>>2]|0)+1;Vu(b,c[d+16>>2]|0,e,f);Zt(b);break}case 19:{ct(b,c[d+12>>2]|0,e,f);break}case 148:case 73:{f=d+12|0;l=Xt(b,c[f>>2]|0,n)|0;k=d+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[f>>2]|0,c[k>>2]|0,h<<24>>24==73?79:78,l,m,e,128);break}case 75:{k=ts(m)|0;bu(b,d,k,(f|0)!=0?e:k);sh(m,16,0,e,0)|0;h=c[m+24>>2]|0;g=~k;if((k|0)<0?(l=c[h+112>>2]|0,(l|0)!=0):0)c[l+(g<<2)>>2]=c[m+32>>2];c[h+88>>2]=(c[m+32>>2]|0)+-1;break}case 79:case 78:case 83:case 80:case 81:case 82:{h=d+12|0;l=Xt(b,c[h>>2]|0,n)|0;k=d+16|0;m=Xt(b,c[k>>2]|0,o)|0;Yt(b,c[h>>2]|0,c[k>>2]|0,g,l,m,e,f);break}case 77:case 76:{sh(m,g,Xt(b,c[d+12>>2]|0,n)|0,e,0)|0;break}case 74:{Wu(b,d,e,1,f);break}default:{if(Xu(d)|0){sh(m,16,0,e,0)|0;break a}if(!(iu(d)|0))sh(m,45,Xt(b,d,n)|0,e,(f|0)!=0&1)|0}}while(0);Wr(b,c[n>>2]|0);Wr(b,c[o>>2]|0)}i=p;return}function Wu(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;p=i;i=i+208|0;if((i|0)>=(j|0))ba();l=p+152|0;h=p+104|0;k=p+56|0;m=p+8|0;n=p;c[n>>2]=0;o=m+0|0;q=(c[d+12>>2]|0)+0|0;r=o+48|0;do{c[o>>2]=c[q>>2];o=o+4|0;q=q+4|0}while((o|0)<(r|0));a[l>>0]=72;c[l+12>>2]=h;c[l+16>>2]=k;a[h>>0]=83;c[h+12>>2]=m;d=c[(c[d+20>>2]|0)+4>>2]|0;c[h+16>>2]=c[d>>2];a[k>>0]=81;c[k+12>>2]=m;c[k+16>>2]=c[d+20>>2];d=Xt(b,m,n)|0;a[m+38>>0]=a[m>>0]|0;a[m>>0]=-97;c[m+28>>2]=d;d=m+4|0;c[d>>2]=c[d>>2]&-4097;if(!f)ct(b,l,e,g);else Vu(b,l,e,g);Wr(b,c[n>>2]|0);i=p;return}function Xu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();b=d;c[b>>2]=0;if((c[a+4>>2]&1|0)==0?(Is(a,b)|0)!=0:0)a=(c[b>>2]|0)!=0&1;else a=0;i=d;return a|0}function Yu(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!((a|0)==0|(b|0)==0)){e=c[b>>2]|0;if((e|0)>0){b=c[b+4>>2]|0;d=0;while(1){if((sv(a,c[b+(d*20|0)+4>>2]|0)|0)>-1){b=1;break a}d=d+1|0;if((d|0)>=(e|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function Zu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;m=c[e+20>>2]|0;a:do if((m|0)>0){n=b[d+38>>1]|0;o=n<<16>>16>0;p=d+4|0;l=d+36|0;i=(g|0)!=0;j=0;while(1){g=c[e+(j<<3)+40>>2]|0;if(o){d=(g|0)==0;k=0;do{if(!((c[f+(k<<2)>>2]|0)<=-1?!((k|0)==(b[l>>1]|0)&i):0))q=7;do if((q|0)==7){q=0;h=c[p>>2]|0;if(d)if(!(a[h+(k*24|0)+23>>0]&1))break;else{d=1;break a}else if(!($c(c[h+(k*24|0)>>2]|0,g)|0)){d=1;break a}else break}while(0);k=k+1|0}while((k|0)<(n<<16>>16|0))}j=j+1|0;if((j|0)>=(m|0)){d=0;break}}}else d=0;while(0);return d|0}function _u(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+48|0;if((i|0)>=(j|0))ba();m=v;q=v+8|0;u=c[b+408>>2]|0;u=(u|0)==0?b:u;l=u+528|0;g=c[l>>2]|0;a:do if(!g)k=5;else while(1){if((c[g>>2]|0)==(d|0)?(c[g+12>>2]|0)==(f|0):0)break a;g=c[g+4>>2]|0;if(!g){k=5;break}}while(0);do if((k|0)==5){s=c[b>>2]|0;g=ih(s,24,0)|0;if(g){k=g+0|0;h=k+24|0;do{a[k>>0]=0;k=k+1|0}while((k|0)<(h|0));c[g+4>>2]=c[l>>2];c[l>>2]=g;r=ih(s,28,0)|0;if(!r){c[g+8>>2]=0;g=0;break}k=r+0|0;h=k+24|0;do{a[k>>0]=0;k=k+1|0}while((k|0)<(h|0));c[g+8>>2]=r;n=(c[u+8>>2]|0)+192|0;c[r+24>>2]=c[n>>2];c[n>>2]=r;c[g>>2]=d;c[g+12>>2]=f;n=g+16|0;c[n>>2]=-1;o=g+20|0;c[o>>2]=-1;p=ih(s,536,0)|0;if(p){bw(p|0,0,536)|0;c[q+0>>2]=0;c[q+4>>2]=0;c[q+8>>2]=0;c[q+12>>2]=0;c[q+16>>2]=0;c[q+20>>2]=0;c[q+24>>2]=0;c[q+28>>2]=0;c[q>>2]=p;c[p>>2]=s;c[p+412>>2]=e;c[p+408>>2]=u;c[p+492>>2]=c[d>>2];a[p+436>>0]=a[d+8>>0]|0;c[p+424>>2]=c[b+424>>2];e=Kq(p)|0;if(e){c[m>>2]=c[d>>2];th(e,-1,qh(s,34152,m)|0,-1);k=c[d+12>>2]|0;if(!k)l=0;else{h=Ir(s,k,0,0)|0;if((hs(q,h)|0)==0?(a[s+65>>0]|0)==0:0){k=ts(e)|0;ct(p,h,k,16)}else k=0;Ck(s,h);l=k}Lv(p,c[d+28>>2]|0,f);if(l){k=c[e+24>>2]|0;h=~l;if((l|0)<0?(t=c[k+112>>2]|0,(t|0)!=0):0)c[t+(h<<2)>>2]=c[e+32>>2];c[k+88>>2]=(c[e+32>>2]|0)+-1}sh(e,24,0,0,0)|0;h=b+64|0;k=c[p+4>>2]|0;if(!(c[h>>2]|0)){c[b+4>>2]=k;c[h>>2]=c[p+64>>2]}else ig(c[p>>2]|0,k);if(!(a[s+65>>0]|0)){m=e+4|0;q=c[m>>2]|0;Fn(e,u+392|0);c[r+4>>2]=c[e+32>>2];c[m>>2]=0;c[r>>2]=q}c[r+8>>2]=c[p+72>>2];c[r+12>>2]=c[p+68>>2];c[r+16>>2]=c[p+80>>2];c[r+20>>2]=d;c[n>>2]=c[p+428>>2];c[o>>2]=c[p+432>>2];Ll(e)}yh(p);ig(s,p)}else g=0}else g=0}while(0);i=v;return g|0}function $u(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0;i=Kq(b)|0;e=_u(b,d,e,g)|0;if(e){if(!(c[d>>2]|0))g=0;else g=((c[(c[b>>2]|0)+24>>2]|0)>>>18&1^1)&255;b=b+72|0;d=(c[b>>2]|0)+1|0;c[b>>2]=d;sh(i,131,f,h,d)|0;th(i,-1,c[e+8>>2]|0,-18);e=c[i+4>>2]|0;if(e)a[e+(((c[i+32>>2]|0)+-1|0)*20|0)+3>>0]=g}return}function av(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))ba();k=l;f=c[a>>2]|0;h=c[(c[f+16>>2]|0)+(e<<4)>>2]|0;g=gc[c[f+284>>2]&7](c[f+288>>2]|0,20,b,d,h,c[a+492>>2]|0)|0;if((g|0)==1){if((e|0)!=0?1:(c[f+20>>2]|0)>2){c[k>>2]=h;c[k+4>>2]=b;c[k+8>>2]=d;ph(a,27688,k)}else{c[k>>2]=b;c[k+4>>2]=d;ph(a,27728,k)}c[a+12>>2]=23}else if(!((g|0)==0|(g|0)==2)){ph(a,25232,k);c[a+12>>2]=1}i=l;return g|0}function bv(e,f,g,h,i,j,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;y=Kq(e)|0;A=(c[e+68>>2]|0)+-1|0;B=ts(y)|0;if((l|0)<0)sh(y,135,d[i+24>>0]|0,B,0)|0;n=i+20|0;o=c[n>>2]|0;if((o|0)>0){q=k+1|0;p=0;do{sh(y,76,q+(c[j+(p<<2)>>2]|0)|0,B,0)|0;p=p+1|0;o=c[n>>2]|0}while((p|0)<(o|0))}do if(!m){if(!h){o=e+19|0;n=a[o>>0]|0;if(!(n<<24>>24)){h=e+72|0;q=(c[h>>2]|0)+1|0;c[h>>2]=q}else{q=n+-1<<24>>24;a[o>>0]=q;q=c[e+((q&255)<<2)+24>>2]|0}sh(y,34,k+1+(c[j>>2]|0)|0,q,0)|0;p=sh(y,38,q,0,0)|0;if(((l|0)==1?(c[i>>2]|0)==(g|0):0)?(sh(y,79,k,B,q)|0,r=c[y+4>>2]|0,(r|0)!=0):0)a[r+(((c[y+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;Mq(e,A,f,g,54);sh(y,70,A,0,q)|0;sh(y,16,0,B,0)|0;n=c[y+32>>2]|0;if(n>>>0>1)c[(c[y+4>>2]|0)+((n+-2|0)*20|0)+8>>2]=n;m=n+-1|0;o=(c[y+24>>2]|0)+88|0;c[o>>2]=m;if(n>>>0>p>>>0)c[(c[y+4>>2]|0)+(p*20|0)+8>>2]=n;c[o>>2]=m;Wr(e,q);break}w=e+60|0;q=c[w>>2]|0;x=e+56|0;p=c[x>>2]|0;if((p|0)<(o|0)){v=e+72|0;q=c[v>>2]|0;c[v>>2]=q+o;q=q+1|0}else{c[w>>2]=q+o;c[x>>2]=p-o}p=e+19|0;n=a[p>>0]|0;if(!(n<<24>>24)){m=e+72|0;v=(c[m>>2]|0)+1|0;c[m>>2]=v}else{v=n+-1<<24>>24;a[p>>0]=v;v=c[e+((v&255)<<2)+24>>2]|0}sh(y,54,A,c[h+40>>2]|0,f)|0;m=c[e+8>>2]|0;th(m,-1,ds(e,h)|0,-6);m=(o|0)>0;if(m){p=k+1|0;n=0;do{sh(y,33,p+(c[j+(n<<2)>>2]|0)|0,n+q|0,0)|0;n=n+1|0}while((n|0)!=(o|0))}if((l|0)==1?(c[i>>2]|0)==(g|0):0){t=y+32|0;u=o+1+(c[t>>2]|0)|0;if(m){f=k+1|0;s=h+4|0;p=g+36|0;n=y+4|0;r=0;do{m=b[(c[s>>2]|0)+(r<<1)>>1]|0;sh(y,78,f+(c[j+(r<<2)>>2]|0)|0,u,(m<<16>>16==(b[p>>1]|0)?0:(m<<16>>16)+1|0)+k|0)|0;m=c[n>>2]|0;if(m)a[m+(((c[t>>2]|0)+-1|0)*20|0)+3>>0]=16;r=r+1|0}while((r|0)!=(o|0))}sh(y,16,0,B,0)|0}k=kt(y,h)|0;th(y,sh(y,49,q,o,v)|0,k,o);th(y,sh(y,69,A,B,v)|0,0,-14);Wr(e,v);$s(e,q,o);if((c[x>>2]|0)<(o|0)){c[x>>2]=o;c[w>>2]=q}}while(0);n=a[i+24>>0]|0;m=n<<24>>24==0;if(((m?(c[(c[e>>2]|0)+24>>2]&16777216|0)==0:0)?(c[e+408>>2]|0)==0:0)?(a[e+20>>0]|0)==0:0)vs(e,787,2,0,-2,4);else{if(!((l|0)<1|m^1)){i=c[e+408>>2]|0;a[((i|0)==0?e:i)+21>>0]=1}sh(y,134,n&255,l,0)|0}m=c[y+24>>2]|0;n=~B;if((B|0)<0?(z=c[m+112>>2]|0,(z|0)!=0):0)c[z+(n<<2)>>2]=c[y+32>>2];c[m+88>>2]=(c[y+32>>2]|0)+-1;sh(y,61,A,0,0)|0;return}function cv(f,g,h,k,l,m,n,o){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;var p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+48|0;if((i|0)>=(j|0))ba();y=D+32|0;z=D;A=c[f>>2]|0;B=Kq(f)|0;if((o|0)<0)C=sh(B,135,d[l+24>>0]|0,0,0)|0;else C=0;x=l+20|0;if((c[x>>2]|0)>0){w=(k|0)==0;v=(m|0)==0;u=l+36|0;t=k+4|0;s=0;p=0;do{if(w)r=-1;else r=b[(c[t>>2]|0)+(s<<1)>>1]|0;q=Mv(f,h,n,r)|0;if(v)r=u;else r=m+(s<<2)|0;p=os(A,p,Vq(f,79,q,pt(A,27,c[(c[(c[l>>2]|0)+4>>2]|0)+((c[r>>2]<<16>>16)*24|0)>>2]|0)|0,0)|0)|0;s=s+1|0}while((s|0)<(c[x>>2]|0));r=l}else{r=l;p=0}if((o|0)>0?(c[r>>2]|0)==(h|0):0){if(!(a[h+44>>0]&32)){m=c[f>>2]|0;c[y>>2]=0;c[y+4>>2]=0;m=jr(m,159,y,0)|0;if(!m)m=0;else{c[m+28>>2]=n;a[m+1>>0]=68}r=c[g+48>>2]|0;c[y>>2]=0;c[y+4>>2]=0;q=jr(A,154,y,0)|0;if(q){c[q+44>>2]=h;c[q+28>>2]=r;b[q+32>>1]=-1}m=Vq(f,78,m,q,0)|0}else{r=h+8|0;while(1){r=c[r>>2]|0;if((a[r+51>>0]&3)==2)break;r=r+20|0}x=r+46|0;if(!(b[x>>1]|0))m=0;else{t=k+4|0;u=g+48|0;v=y+4|0;w=0;m=0;do{r=b[(c[t>>2]|0)+(w<<1)>>1]|0;q=Mv(f,h,n,r)|0;s=c[u>>2]|0;c[y>>2]=0;c[v>>2]=0;k=jr(A,154,y,0)|0;if(k){c[k+44>>2]=h;c[k+28>>2]=s;b[k+32>>1]=r}m=os(A,m,Vq(f,79,q,k,0)|0)|0;w=w+1|0}while((w|0)<(e[x>>1]|0))}m=Vq(f,19,m,0,0)|0}p=os(A,p,m)|0};c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;c[z+12>>2]=0;c[z+16>>2]=0;c[z+20>>2]=0;c[z+24>>2]=0;c[z+28>>2]=0;c[z+4>>2]=g;c[z>>2]=f;hs(z,p)|0;m=Rs(f,g,p,0,0,0,0)|0;sh(B,134,d[l+24>>0]|0,o,0)|0;if(m)Ts(m);Ck(A,p);if(C){m=c[B+32>>2]|0;if(m>>>0>C>>>0)c[(c[B+4>>2]|0)+(C*20|0)+8>>2]=m;c[(c[B+24>>2]|0)+88>>2]=m+-1}i=D;return}function dv(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+32|0;if((i|0)>=(j|0))ba();r=u;p=u+16|0;t=u+28|0;k=c[b>>2]|0;s=Kq(b)|0;if(s){m=(c[k+16>>2]|0)+(d<<4)|0;n=b+388|0;o=(f|0)==0;q=0;a:while(1){l=c[28744+(q<<3)>>2]|0;h=Wh(k,l,c[m>>2]|0)|0;do if(!h){if(!q){c[r>>2]=c[m>>2];c[r+4>>2]=l;c[r+8>>2]=28768;xr(b,28816,r);c[p>>2]=c[n>>2];a[t>>0]=4;q=q+1|0;continue a}}else{h=c[h+32>>2]|0;c[p+(q<<2)>>2]=h;a[t+q>>0]=0;cs(b,d,h,1,l);if(o){sh(s,118,h,d,0)|0;break}else{c[r>>2]=c[m>>2];c[r+4>>2]=l;c[r+8>>2]=g;c[r+12>>2]=f;xr(b,28840,r);break}}while(0);q=q+1|0;if((q|0)==3)break}th(s,sh(s,55,e,c[p>>2]|0,d)|0,3,-14);h=c[s+4>>2]|0;if(h)a[h+(((c[s+32>>2]|0)+-1|0)*20|0)+3>>0]=a[t>>0]|0}i=u;return}function ev(d,f,g,h,i,j){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;D=c[d>>2]|0;E=i+1|0;F=i+2|0;J=i+3|0;K=i+4|0;L=i+5|0;I=i+6|0;G=i+7|0;H=d+72|0;M=c[H>>2]|0;c[H>>2]=(M|0)>(G|0)?M:G;M=Kq(d)|0;if((!((M|0)==0|(f|0)==0)?(p=f+32|0,(c[p>>2]|0)!=0):0)?(q=c[f>>2]|0,(Bc(q,25568,7)|0)!=0):0){m=c[f+68>>2]|0;a:do if(m){l=c[D+20>>2]|0;if((l|0)>0){k=c[D+16>>2]|0;o=0;while(1){n=o+1|0;if((c[k+(o<<4)+12>>2]|0)==(m|0)){n=o;break a}if((n|0)<(l|0))o=n;else break}}else n=0}else n=-1e6;while(0);if(!(Oq(d,28,q,0,c[(c[D+16>>2]|0)+(n<<4)>>2]|0)|0)){cs(d,n,c[p>>2]|0,0,c[f>>2]|0);w=j+1|0;C=j+2|0;q=d+68|0;B=c[q>>2]|0;c[q>>2]=(B|0)>(C|0)?B:C;Mq(d,j,n,f,54);q=c[f>>2]|0;th(M,sh(M,97,0,K,0)|0,q,0);q=c[f+8>>2]|0;C=(g|0)==0;if(!q)m=1;else{x=f+44|0;y=d+8|0;z=M+4|0;A=M+32|0;B=M+24|0;m=1;do{do if(C|(q|0)==(g|0)){m=(c[q+36>>2]|0)==0?0:m;p=a[q+51>>0]|0;if(!((a[x>>0]&32)!=0&(p&3)==2)){k=e[q+48>>1]|0;o=c[q>>2]|0;l=q+46|0;if(!(p&8)){s=l;r=k;p=k}else{s=l;r=k;p=e[l>>1]|0}}else{s=q+46|0;p=e[s>>1]|0;r=p;o=c[f>>2]|0}u=p+-1|0;th(M,sh(M,97,0,L,0)|0,o,0);v=c[H>>2]|0;p=u+G|0;c[H>>2]=(v|0)>(p|0)?v:p;sh(M,54,w,c[q+40>>2]|0,n)|0;p=c[y>>2]|0;th(p,-1,ds(d,q)|0,-6);sh(M,25,r,F,0)|0;sh(M,25,e[s>>1]|0,J,0)|0;sh(M,1,0,F,E)|0;th(M,-1,28552,-5);p=c[z>>2]|0;if(p)a[p+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=2;v=sh(M,108,w,0,0)|0;sh(M,25,0,F,0)|0;o=c[A>>2]|0;if((u|0)>0){r=ts(M)|0;t=ih(D,u<<2,0)|0;if(!t)break;sh(M,16,0,0,0)|0;o=c[A>>2]|0;if(((u|0)==1?(b[s>>1]|0)==1:0)?(a[q+50>>0]|0)!=0:0)sh(M,77,G,r,0)|0;p=q+32|0;k=0;do{s=_q(d,c[(c[p>>2]|0)+(k<<2)>>2]|0)|0;sh(M,25,k,F,0)|0;sh(M,47,w,k,J)|0;l=sh(M,78,J,0,k+G|0)|0;th(M,l,s,-4);c[t+(k<<2)>>2]=l;l=c[z>>2]|0;if(l)a[l+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=-128;k=k+1|0}while((k|0)!=(u|0));sh(M,25,u,F,0)|0;sh(M,16,0,r,0)|0;p=o+-1|0;l=c[A>>2]|0;if(l>>>0>p>>>0)c[(c[z>>2]|0)+(p*20|0)+8>>2]=l;c[(c[B>>2]|0)+88>>2]=l+-1;p=0;while(1){k=c[t+(p<<2)>>2]|0;if(l>>>0>k>>>0)c[(c[z>>2]|0)+(k*20|0)+8>>2]=l;c[(c[B>>2]|0)+88>>2]=l+-1;sh(M,47,w,p,p+G|0)|0;p=p+1|0;if((p|0)==(u|0))break;l=c[A>>2]|0}l=c[B>>2]|0;k=~r;do if((r|0)<0){p=c[l+112>>2]|0;if(!p)break;c[p+(k<<2)>>2]=c[A>>2]}while(0);c[l+88>>2]=(c[A>>2]|0)+-1;ig(D,t)}sh(M,1,1,E,J)|0;th(M,-1,28592,-5);p=c[z>>2]|0;if(p)a[p+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=2;sh(M,9,w,o,0)|0;sh(M,1,0,E,I)|0;th(M,-1,28640,-5);p=c[z>>2]|0;if(p)a[p+(((c[A>>2]|0)+-1|0)*20|0)+3>>0]=1;th(M,sh(M,49,K,3,J)|0,28632,0);sh(M,74,h,i,0)|0;sh(M,75,h,J,i)|0;o=c[z>>2]|0;p=c[A>>2]|0;if(o)a[o+((p+-1|0)*20|0)+3>>0]=8;if(p>>>0>v>>>0)c[o+(v*20|0)+8>>2]=p;c[(c[B>>2]|0)+88>>2]=p+-1}while(0);q=c[q+20>>2]|0}while((q|0)!=0)}if(!(m<<24>>24==0|C^1)){sh(M,50,j,I,0)|0;m=sh(M,46,I,0,0)|0;sh(M,28,0,L,0)|0;th(M,sh(M,49,K,3,J)|0,28632,0);sh(M,74,h,i,0)|0;sh(M,75,h,J,i)|0;l=c[M+4>>2]|0;k=c[M+32>>2]|0;if(l)a[l+((k+-1|0)*20|0)+3>>0]=8;if(k>>>0>m>>>0)c[l+(m*20|0)+8>>2]=k;c[(c[M+24>>2]|0)+88>>2]=k+-1}}}return}function fv(a,b){a=a|0;b=b|0;a=Kq(a)|0;if(a)sh(a,123,b,0,0)|0;return}function gv(d){d=d|0;var e=0,f=0,g=0;a:while(1){e=c[d+4>>2]|0;do if(e&4096)if(!(e&262144)){d=d+12|0;break}else{d=c[(c[d+20>>2]|0)+4>>2]|0;break}else{if(e&512){d=0;break a}switch(a[d>>0]|0){case -102:case -100:case -97:{g=11;break a}case 119:break;case 38:{g=10;break a}default:{g=14;break a}}d=c[(c[c[d+20>>2]>>2]|0)+4>>2]|0}while(0);d=c[d>>2]|0}if((g|0)==10)d=Tq(c[d+8>>2]|0,0)|0;else if((g|0)==11){f=c[d+44>>2]|0;if(f){e=b[d+32>>1]|0;if(e<<16>>16<0)d=68;else d=a[(c[f+4>>2]|0)+((e<<16>>16)*24|0)+21>>0]|0}else g=14}if((g|0)==14)d=a[d+1>>0]|0;return d|0}function hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;sh(b,25,0,e,0)|0;f=sh(b,108,d,0,0)|0;sh(b,47,d,0,e)|0;d=c[b+4>>2]|0;e=c[b+32>>2]|0;if(d)a[d+((e+-1|0)*20|0)+3>>0]=-128;if(e>>>0>f>>>0)c[d+(f*20|0)+8>>2]=e;c[(c[b+24>>2]|0)+88>>2]=e+-1;return}function iv(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;E=i;i=i+32|0;if((i|0)>=(j|0))ba();z=E;C=e+68|0;D=c[C>>2]|0;c[C>>2]=D+1;C=Kq(e)|0;A=(g&4|0)!=0;B=f+4|0;a:do if((((((((((((c[B>>2]&2048|0)!=0?(n=c[f+20>>2]|0,!((c[e+64>>2]|0)!=0|(n|0)==0)):0)?(c[n+52>>2]|0)==0:0)?(b[n+6>>1]&5)==0:0)?(c[n+60>>2]|0)==0:0)?(c[n+36>>2]|0)==0:0)?(m=c[n+32>>2]|0,(c[m>>2]|0)==1):0)?(c[m+28>>2]|0)==0:0)?(t=c[m+24>>2]|0,(t|0)!=0):0)?(a[t+44>>0]&16)==0:0)?(l=c[n>>2]|0,(c[l>>2]|0)==1):0)?(p=c[c[l+4>>2]>>2]|0,(a[p>>0]|0)==-102):0){x=c[e>>2]|0;y=b[p+32>>1]|0;o=c[t+68>>2]|0;b:do if(o){m=c[x+20>>2]|0;if((m|0)>0){l=c[x+16>>2]|0;k=0;while(1){n=k+1|0;if((c[l+(k<<4)+12>>2]|0)==(o|0)){n=k;break b}if((n|0)<(m|0))k=n;else break}}else n=0}else n=-1e6;while(0);v=n<<16>>16;wr(e,v);cs(e,v,c[t+32>>2]|0,0,c[t>>2]|0);w=y<<16>>16;if(y<<16>>16<0){k=Kq(e)|0;h=e+80|0;l=c[h>>2]|0;c[h>>2]=l+1;l=sh(k,44,l,0,0)|0;Mq(e,D,v,t,54);k=c[C+32>>2]|0;if(k>>>0>l>>>0)c[(c[C+4>>2]|0)+(l*20|0)+8>>2]=k;c[(c[C+24>>2]|0)+88>>2]=k+-1;k=1;o=49;break}k=Ku(e,c[f+12>>2]|0,p)|0;u=t+4|0;o=a[(c[u>>2]|0)+(w*24|0)+21>>0]|0;n=(jv(f)|0)<<24>>24;if((n|0)==66)n=o<<24>>24==66&1;else if((n|0)==65)n=1;else n=o<<24>>24>66&1;o=c[t+8>>2]|0;if((o|0)!=0&(n|0)!=0){p=x+62|0;n=e+80|0;m=e+8|0;l=(h|0)==0;q=C+32|0;s=C+4|0;t=C+24|0;r=e+72|0;c:while(1){do if((b[c[o+4>>2]>>1]|0)==y<<16>>16?(Un(x,a[p>>0]|0,c[c[o+32>>2]>>2]|0,0)|0)==(k|0):0){if(!A)break c;if((b[o+46>>1]|0)!=1)break;if(a[o+50>>0]|0)break c}while(0);o=c[o+20>>2]|0;if(!o){o=38;break a}}B=Kq(e)|0;k=c[n>>2]|0;c[n>>2]=k+1;n=sh(B,44,k,0,0)|0;sh(C,54,D,c[o+40>>2]|0,v)|0;k=c[m>>2]|0;th(k,-1,ds(e,o)|0,-6);k=(d[c[o+28>>2]>>0]|0)+3|0;if(!l?(a[(c[u>>2]|0)+(w*24|0)+20>>0]|0)==0:0){B=(c[r>>2]|0)+1|0;c[r>>2]=B;c[h>>2]=B;hv(C,D,B)}l=c[q>>2]|0;if(l>>>0>n>>>0)c[(c[s>>2]|0)+(n*20|0)+8>>2]=l;c[(c[t>>2]|0)+88>>2]=l+-1;o=49}else o=38}else o=38;while(0);do if((o|0)==38){if((g&1|0)!=0?(c[B>>2]&2048|0)==0:0){g=f+12|0;y=c[g>>2]|0;c[g>>2]=0;c[z+0>>2]=0;c[z+4>>2]=0;c[z+8>>2]=0;c[z+12>>2]=0;c[z+16>>2]=0;c[z+20>>2]=0;C=z+20|0;a[C>>0]=1;c[z>>2]=78;c[z+4>>2]=79;c[z+24>>2]=0;ns(z,f)|0;C=a[C>>0]|0;c[g>>2]=y;if(!(C<<24>>24)){k=5;o=49;break}if((c[c[f+20>>2]>>2]|0)<3){k=5;o=49;break}}m=e+424|0;n=c[m>>2]|0;if(A){c[m>>2]=0;if((b[(c[f+12>>2]|0)+32>>1]|0)<0){k=((c[B>>2]|0)>>>11&1)+1|0;l=0}else{k=2;l=0}}else if(!h){k=2;l=0}else{k=e+72|0;l=(c[k>>2]|0)+1|0;c[k>>2]=l;c[h>>2]=l;k=2}au(e,f,l,(k|0)==1&1)|0;c[m>>2]=n}while(0);if((o|0)==49)c[f+28>>2]=D;i=E;return k|0}function jv(a){a=a|0;var b=0,d=0;b=gv(c[a+12>>2]|0)|0;d=c[a+16>>2]|0;do if(!d)if(!(c[a+4>>2]&2048))return (b<<24>>24==0?65:b)|0;else{b=xu(c[c[(c[c[a+20>>2]>>2]|0)+4>>2]>>2]|0,b)|0;break}else b=xu(d,b)|0;while(0);return b|0}function kv(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;Z=i;i=i+16|0;if((i|0)>=(j|0))ba();W=Z;U=c[d>>2]|0;X=k+28|0;c[X>>2]=-1;T=k+44|0;c[T>>2]=0;a:do if((e|0)!=0?(b[h+28>>1]&20)==0:0){q=c[U+20>>2]|0;if((q|0)>0){o=c[U+16>>2]|0;p=0;while(1){if(!($c(c[o+(p<<4)>>2]|0,e)|0))break;p=p+1|0;if((p|0)>=(q|0)){S=e;e=0;break a}}S=e;e=c[o+(p<<4)+12>>2]|0}else{S=e;e=0}}else{S=0;e=0}while(0);Q=(S|0)==0;N=Q&(f|0)!=0;m=d+412|0;J=d+436|0;K=k+1|0;Y=k+32|0;L=d+428|0;M=d+432|0;R=(f|0)==0;P=k+4|0;l=h;r=0;n=0;q=0;p=0;b:while(1){I=(l|0)!=0;o=l+4|0;H=l+8|0;s=0;t=r;while(1){r=(s|0)==0;if(!(I&r)){V=82;break b}s=c[o>>2]|0;if(s){G=c[s>>2]|0;if((G|0)>0){r=0;F=0;E=s+8|0;while(1){D=c[E+16>>2]|0;u=c[E+20>>2]|0;if((u|0)!=0?(b[u+6>>1]&512)!=0:0){u=c[u>>2]|0;A=c[u>>2]|0;if((A|0)>0){B=c[u+4>>2]|0;u=0;w=0;do{if(rv(c[B+(w*20|0)+8>>2]|0,g,f,S)|0){b[Y>>1]=w;r=r+1|0;t=2;u=1;p=E}w=w+1|0}while((w|0)<(A|0))}else u=0;if(!((u|0)!=0|R)){v=t;V=21}}else{v=t;V=21}c:do if((V|0)==21){V=0;if(!Q?(c[D+68>>2]|0)!=(e|0):0){t=v;break}if(!R){u=c[E+12>>2]|0;if(!u)u=c[D>>2]|0;if($c(u,f)|0){t=v;break}}t=v+1|0;p=(v|0)==0?E:p;u=b[D+38>>1]|0;if(u<<16>>16>0){s=(r|0)==1;x=E+36|0;y=E+48|0;A=0;B=c[D+4>>2]|0;d:while(1){e:do if(!($c(c[B>>2]|0,g)|0)){if(!s){p=A;break d}if(!(a[x>>0]&4)){w=c[y>>2]|0;if(!w){p=A;break d}z=c[w+4>>2]|0;if((z|0)<=0){p=A;break d}w=c[w>>2]|0;v=0;while(1){if(!($c(c[w+(v<<3)>>2]|0,g)|0))break e;v=v+1|0;if((v|0)>=(z|0)){p=A;break d}}}}while(0);A=A+1|0;if((A|0)>=(u<<16>>16|0))break c;else B=B+24|0}b[Y>>1]=(p|0)==(b[D+36>>1]|0)?-1:p&65535;r=r+1|0;p=E}}while(0);F=F+1|0;if((F|0)>=(G|0))break;else E=E+72|0}}else r=0;if(!p)B=0;else{c[X>>2]=c[p+40>>2];s=c[p+16>>2]|0;c[T>>2]=s;if(a[p+36>>0]&8)c[P>>2]=c[P>>2]|1048576;B=p;e=c[s+68>>2]|0}}else{r=0;B=p}do if(N&(t|0)==0)if(c[m>>2]|0){s=a[J>>0]|0;if(s<<24>>24!=109)if($c(27560,f)|0)if(s<<24>>24==108){v=r;t=0;w=n;break}else V=49;else w=1;else V=49;if((V|0)==49){V=0;if(!($c(27568,f)|0))w=0;else{v=r;t=0;w=n;break}}c[X>>2]=w;v=c[m>>2]|0;if(v){e=c[v+68>>2]|0;u=b[v+38>>1]|0;f:do if(u<<16>>16>0){s=0;t=c[v+4>>2]|0;while(1){if(!($c(c[t>>2]|0,g)|0))break;s=s+1|0;if((s|0)<(u<<16>>16|0))t=t+24|0;else break f}s=(s|0)==(b[v+36>>1]|0)?-1:s}else s=0;while(0);p=u<<16>>16;if((s|0)>=(p|0)?(Xh(g)|0)!=0:0)t=(a[v+44>>0]&32)==0?-1:s;else t=s;if((t|0)<(p|0)){r=r+1|0;do if((t|0)>=0){s=(t|0)>31?-1:1<<t;if(!w){c[L>>2]=c[L>>2]|s;break}else{c[M>>2]=c[M>>2]|s;break}}else a[K>>0]=68;while(0);b[Y>>1]=t;c[T>>2]=v;t=1;n=1;V=66}else{t=1;V=66}}else{v=r;t=0;w=n}}else{v=r;t=0;w=n}else V=66;while(0);if((V|0)==66){V=0;if((r|0)==0&(t|0)==1&(B|0)!=0)if((Xh(g)|0)!=0?(a[(c[B+16>>2]|0)+44>>0]&32)==0:0){b[Y>>1]=-1;a[K>>0]=68;s=1;p=B;continue}else{v=0;w=n}else{v=r;w=n}}r=c[H>>2]|0;u=(v|0)==0;if((r|0)!=0&R&u?(O=c[r>>2]|0,(O|0)>0):0){n=c[r+4>>2]|0;p=0;do{s=c[n+(p*20|0)+4>>2]|0;if((s|0)!=0?($c(s,g)|0)==0:0){V=75;break b}p=p+1|0}while((p|0)<(O|0))}if(u){s=t;n=w;p=B;break}else{s=v;n=w;p=B}}l=c[l+16>>2]|0;r=s;q=q+1|0}do if((V|0)==75){if((b[l+28>>1]&1)==0?(c[(c[n+(p*20|0)>>2]|0)+4>>2]&2|0)!=0:0){c[W>>2]=s;ph(d,27576,W);h=2;break}uv(d,r,p,k,10360,q);if((a[k>>0]|0)==24)V=115;else V=96}else if((V|0)==82){if(r&R?(c[P>>2]&64|0)!=0:0){a[k>>0]=97;c[T>>2]=0;h=1;break}s=(s|0)==1;if(!s){r=r?27608:27624;do if(Q)if(R){c[W>>2]=r;c[W+4>>2]=g;ph(d,27680,W);break}else{c[W>>2]=r;c[W+4>>2]=f;c[W+8>>2]=g;ph(d,27664,W);break}else{c[W>>2]=r;c[W+4>>2]=S;c[W+8>>2]=f;c[W+12>>2]=g;ph(d,27648,W)}while(0);a[d+17>>0]=1;F=h+24|0;c[F>>2]=(c[F>>2]|0)+1}q=b[Y>>1]|0;if(q<<16>>16>-1&(p|0)!=0){B=q<<16>>16>63;D=ew(1,0,q<<16>>16|0)|0;F=p+56|0;A=F;E=c[A+4>>2]|(B?-2147483648:C);c[F>>2]=c[A>>2]|(B?0:D);c[F+4>>2]=E}F=k+12|0;Ck(U,c[F>>2]|0);c[F>>2]=0;F=k+16|0;Ck(U,c[F>>2]|0);c[F>>2]=0;a[k>>0]=(n|0)!=0?62:-102;if(s)V=96;else h=2}while(0);g:do if((V|0)==96){r=c[o>>2]|0;n=c[d>>2]|0;if(!((c[n+284>>2]|0)==0|(e|0)==0)){q=c[n+20>>2]|0;if((q|0)>0){o=c[n+16>>2]|0;p=0;while(1){n=p+1|0;if((c[o+(p<<4)+12>>2]|0)==(e|0)){n=p;break}if((n|0)<(q|0))p=n;else break}if((n|0)<0){V=115;break}else e=n}else e=0;if((a[k>>0]|0)!=62){o=c[r>>2]|0;if((o|0)<=0){V=115;break}m=c[X>>2]|0;n=0;while(1){if((m|0)==(c[r+(n*72|0)+48>>2]|0))break;n=n+1|0;if((n|0)>=(o|0)){V=115;break g}}m=r+(n*72|0)+24|0}o=c[m>>2]|0;m=b[Y>>1]|0;n=m<<16>>16;if(o){if(m<<16>>16<=-1){m=b[o+36>>1]|0;if(m<<16>>16>-1)m=c[(c[o+4>>2]|0)+((m<<16>>16)*24|0)>>2]|0;else m=12944}else m=c[(c[o+4>>2]|0)+(n*24|0)>>2]|0;if((av(d,c[o>>2]|0,m,e)|0)==2){a[k>>0]=101;V=115}else V=115}else V=115}else V=115}while(0);if((V|0)==115){F=h+20|0;c[F>>2]=(c[F>>2]|0)+1;if((l|0)==(h|0))h=1;else{do{h=c[h+16>>2]|0;F=h+20|0;c[F>>2]=(c[F>>2]|0)+1}while((h|0)!=(l|0));h=1}}i=Z;return h|0}function lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=a[d>>0]|0;a:do if(e<<24>>24==-100|e<<24>>24==-102){e=c[b+24>>2]|0;f=c[e>>2]|0;b:do if((f|0)!=0?(g=c[f>>2]|0,(g|0)>0):0){b=c[d+28>>2]|0;d=0;while(1){if((b|0)==(c[f+(d*72|0)+48>>2]|0))break;d=d+1|0;if((d|0)>=(g|0))break b}b=e+4|0;c[b>>2]=(c[b>>2]|0)+1;break a}while(0);b=e+8|0;c[b>>2]=(c[b>>2]|0)+1}while(0);return 0}function mv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;w=i;i=i+16|0;if((i|0)>=(j|0))ba();v=w;q=w+12|0;a:do if(!f)h=0;else{t=c[c[e>>2]>>2]|0;u=c[d>>2]|0;b:do if((c[f>>2]|0)>0){h=0;r=c[f+4>>2]|0;c:while(1){o=c[r>>2]|0;d:do if(!o)k=0;else{k=o;while(1){l=c[k+4>>2]|0;if(!(l&4096))break d;if(!(l&262144))k=k+12|0;else k=c[(c[k+20>>2]|0)+4>>2]|0;k=c[k>>2]|0;if(!k){k=0;break}}}while(0);if((a[g>>0]|0)!=71?(p=nv(c[e>>2]|0,k)|0,c[q>>2]=p,(p|0)>0):0)b[r+16>>1]=p;else s=13;do if((s|0)==13){s=0;if(Is(k,q)|0){k=c[q>>2]|0;if((k+-1|0)>>>0>65534)break c;b[r+16>>1]=k;break}m=r+16|0;b[m>>1]=0;if(hs(d,o)|0){h=1;break a}l=c[e>>2]|0;n=c[l>>2]|0;if((n|0)>0){l=c[l+4>>2]|0;k=0;do{x=k;k=k+1|0;if(!(yu(o,c[l+(x*20|0)>>2]|0,-1)|0))b[m>>1]=k}while((k|0)<(n|0))}}while(0);h=h+1|0;if((h|0)>=(c[f>>2]|0))break b;else r=r+20|0}c[v>>2]=h+1;c[v+4>>2]=g;c[v+8>>2]=t;ph(u,27064,v);h=1;break a}while(0);h=su(u,e,f,g)|0}while(0);i=w;return h|0}function nv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;a:do if((a[d>>0]|0)==27?(f=c[d+8>>2]|0,g=c[b>>2]|0,(g|0)>0):0){b=c[b+4>>2]|0;d=0;while(1){e=c[b+(d*20|0)+4>>2]|0;if((e|0)!=0?($c(e,f)|0)==0:0)break;d=d+1|0;if((d|0)>=(g|0)){d=0;break a}}d=d+1|0}else d=0;while(0);return d|0}function ov(a,d){a=a|0;d=d|0;var e=0,f=0;e=b[a+38>>1]|0;a:do if(e<<16>>16>0){f=c[a+4>>2]|0;e=e<<16>>16;a=0;while(1){if(!($c(c[f+(a*24|0)>>2]|0,d)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function pv(a,d,e,f,g,h,i,j){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0;k=c[a>>2]|0;e=Nv(k,d,e,f)|0;f=Nv(k,d,g,h)|0;h=Vq(a,79,e,f,0)|0;if((h|0)!=0&(i|0)!=0){e=h+4|0;c[e>>2]=c[e>>2]|1;b[h+36>>1]=c[f+28>>2]}c[j>>2]=os(k,c[j>>2]|0,h)|0;return}function qv(a,d){a=a|0;d=d|0;var e=0,f=0;if(a){e=d&65535;do{f=a+4|0;c[f>>2]=c[f>>2]|1;b[a+36>>1]=e;qv(c[a+12>>2]|0,d);a=c[a+16>>2]|0}while((a|0)!=0)}return}function rv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=0;while(1){g=a[b+f>>0]|0;if(g<<24>>24==46|g<<24>>24==0)break;f=f+1|0}if(e)if((Bc(b,e,f)|0)==0?(a[e+f>>0]|0)==0:0)h=7;else f=0;else h=7;do if((h|0)==7){e=f+1|0;h=b+e|0;g=0;while(1){i=a[b+(g+e)>>0]|0;if(i<<24>>24==46|i<<24>>24==0)break;g=g+1|0}if(d){if(Bc(h,d,g)|0){f=0;break}if(a[d+g>>0]|0){f=0;break}}if((c|0)!=0?($c(b+(f+2+g)|0,c)|0)!=0:0){f=0;break}f=1}while(0);return f|0}function sv(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((a|0)!=0?(e=c[a+4>>2]|0,(e|0)>0):0){d=c[a>>2]|0;a=0;while(1){if(!($c(c[d+(a<<3)>>2]|0,b)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function tv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))ba();g=h;c[g>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[f>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[g+4>>2]=f;f=rr(b,d,g,0)|0;i=h;return f|0}function uv(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))ba();o=s;m=e+4|0;n=c[(c[m>>2]|0)+(f*20|0)>>2]|0;p=c[d>>2]|0;l=Ir(p,n,0,0)|0;do if(l){if((a[n>>0]|0)!=-102?(a[h>>0]|0)!=71:0){if((k|0)>0){c[o+0>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[o+16>>2]=0;c[o+20>>2]=0;c[o>>2]=88;c[o+24>>2]=k;ns(o,l)|0}l=Vq(d,24,l,0,0)|0;if(!l)break;e=l+4|0;c[e>>2]=c[e>>2]|4096;e=(c[m>>2]|0)+(f*20|0)+18|0;k=b[e>>1]|0;if(!(k<<16>>16)){f=d+456|0;k=(c[f>>2]|0)+1|0;c[f>>2]=k;k=k&65535;b[e>>1]=k}c[l+28>>2]=k&65535}if((a[g>>0]|0)==95)l=tv(d,l,c[g+8>>2]|0)|0;e=g+4|0;c[e>>2]=c[e>>2]|32768;Ck(p,g);k=g+0|0;m=l+0|0;n=k+48|0;do{c[k>>2]=c[m>>2];k=k+4|0;m=m+4|0}while((k|0)<(n|0));if((c[e>>2]&1024|0)==0?(q=g+8|0,r=c[q>>2]|0,(r|0)!=0):0){c[q>>2]=gh(p,r)|0;c[e>>2]=c[e>>2]|65536}ig(p,l)}while(0);i=s;return}function vv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;n=a+12|0;g=c[n>>2]|0;k=a+16|0;i=c[k>>2]|0;m=a+20|0;do if((g|0)<(i|0))l=15;else{g=c[m>>2]|0;j=c[c[c[a>>2]>>2]>>2]|0;h=ih(j,i*96|0,0)|0;c[m>>2]=h;if(!h){if(f&1)Ck(j,d);c[m>>2]=g;g=0;break}gw(h|0,g|0,(c[n>>2]|0)*48|0)|0;if((g|0)!=(a+24|0))ig(j,g);h=c[m>>2]|0;do if(!j)h=hc[c[8744+48>>2]&127](h)|0;else{if((c[j+276>>2]|0)>>>0<=h>>>0?(c[j+280>>2]|0)>>>0>h>>>0:0){h=e[j+248>>1]|0;break}h=hc[c[8744+48>>2]&127](h)|0}while(0);l=(h>>>0)/48|0;c[k>>2]=l;g=c[n>>2]|0;bw((c[m>>2]|0)+(g*48|0)|0,0,(l-g|0)*48|0)|0;g=c[n>>2]|0;l=15}while(0);if((l|0)==15){c[n>>2]=g+1;i=c[m>>2]|0;a:do if(!d){b[i+(g*48|0)+16>>1]=1;d=0}else{if(!(c[d+4>>2]&262144))h=1;else{h=c[d+28>>2]|0;h=((bs(h,((h|0)<0)<<31>>31)|0)&65535)+65266&65535}b[i+(g*48|0)+16>>1]=h;while(1){h=c[d+4>>2]|0;if(!(h&4096))break a;if(!(h&262144))d=d+12|0;else d=c[(c[d+20>>2]|0)+4>>2]|0;d=c[d>>2]|0;if(!d){d=0;break}}}while(0);c[i+(g*48|0)>>2]=d;b[i+(g*48|0)+20>>1]=f;c[i+(g*48|0)+24>>2]=a;c[i+(g*48|0)+4>>2]=-1}return g|0}function wv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do if(d)if((a[d>>0]|0)==-102){d=c[d+28>>2]|0;f=c[b>>2]|0;if((f|0)>0)e=0;else{f=0;e=0;break}while(1){if((c[b+(e<<2)+4>>2]|0)==(d|0))break;e=e+1|0;if((e|0)>=(f|0)){f=0;e=0;break a}}e=ew(1,0,e|0)|0;f=C;break}else{g=wv(b,c[d+16>>2]|0)|0;e=C;h=wv(b,c[d+12>>2]|0)|0;e=C|e;f=d+20|0;if(!(c[d+4>>2]&2048)){d=Hu(b,c[f>>2]|0)|0;f=C}else{d=xv(b,c[f>>2]|0)|0;f=C}f=e|f;e=h|g|d;break}else{f=0;e=0}while(0);C=f;return e|0}function xv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(!b){b=0;d=0}else{g=b;d=0;b=0;do{f=c[g+32>>2]|0;l=Hu(a,c[g>>2]|0)|0;b=C|b;k=Hu(a,c[g+40>>2]|0)|0;b=b|C;j=Hu(a,c[g+48>>2]|0)|0;b=b|C;i=wv(a,c[g+36>>2]|0)|0;b=b|C;e=wv(a,c[g+44>>2]|0)|0;d=l|d|k|j|i|e;b=b|C;if((f|0)!=0?(h=c[f>>2]|0,(h|0)>0):0){e=0;do{j=xv(a,c[f+(e*72|0)+28>>2]|0)|0;b=C|b;k=wv(a,c[f+(e*72|0)+52>>2]|0)|0;d=j|d|k;b=b|C;e=e+1|0}while((e|0)<(h|0))}g=c[g+52>>2]|0}while((g|0)!=0)}C=b;return d|0}function yv(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=b[e+18>>1]|0;k=b[f+18>>1]|0;h=k|l;if(((!((l&62)==0|(k&62)==0)?(g=h&65535,(g&26|0)==(g|0)|(g&38|0)==(g|0)):0)?(j=c[e>>2]|0,i=c[f>>2]|0,(yu(c[j+12>>2]|0,c[i+12>>2]|0,-1)|0)==0):0)?(yu(c[j+16>>2]|0,c[i+16>>2]|0,-1)|0)==0:0){if(g+65535&g)h=(g&24|0)==0?32:8;i=Ir(c[c[c[d>>2]>>2]>>2]|0,j,0,0)|0;if(i){h=h&65535;g=79;while(1)if((h|0)==(2<<g+-79|0))break;else g=g+1|0;a[i>>0]=g;Au(d,vv(d,i,3)|0)}}return}function zv(d,f,g,h,i,j){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,n=0;c[d>>2]=f;c[d+4>>2]=f;a:do if((j|0)!=0&(h|0)>-1){a[d+12>>0]=a[(c[(c[j+12>>2]|0)+4>>2]|0)+(h*24|0)+21>>0]|0;k=c[j+4>>2]|0;if((b[k>>1]|0)==(h|0))f=0;else{l=e[j+48>>1]|0;m=0;while(1){f=m+1|0;if((m|0)>(l|0)){f=0;break a}if((b[k+(f<<1)>>1]|0)==(h|0))break;else m=f}}c[d+8>>2]=c[(c[j+32>>2]|0)+(f<<2)>>2];n=8}else{a[d+12>>0]=0;c[d+8>>2]=0;n=8}while(0);if((n|0)==8){c[d+16>>2]=i;c[d+20>>2]=0;c[d+24>>2]=g;c[d+28>>2]=h;a[d+13>>0]=2;a[d+14>>0]=2;f=Av(d)|0}return f|0} 12 function er(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0;za=i;i=i+240|0;if((i|0)>=(j|0))ba();oa=za;pa=za+220|0;ha=za+216|0;fa=za+196|0;ga=za+176|0;ra=za+164|0;sa=za+136|0;va=za+88|0;da=za+64|0;ja=za+32|0;xa=f+464|0;ya=c[xa>>2]|0;la=f+468|0;ua=c[la>>2]|0;c[la>>2]=ua+1;c[xa>>2]=ua;ua=c[f>>2]|0;a:do if((((g|0)!=0?(ma=ua+65|0,(a[ma>>0]|0)==0):0)?(k=f+64|0,(c[k>>2]|0)==0):0)?(Oq(f,21,0,0,0)|0)==0:0){A=va+0|0;z=A+48|0;do{c[A>>2]=0;A=A+4|0}while((A|0)<(z|0));ia=g+48|0;if((d[h>>0]|0)<9){Jk(ua,c[ia>>2]|0);c[ia>>2]=0;ca=g+6|0;b[ca>>1]=e[ca>>1]&65534}zs(f,g,0);c[sa+0>>2]=0;c[sa+4>>2]=0;c[sa+8>>2]=0;c[sa+12>>2]=0;c[sa+16>>2]=0;c[sa+20>>2]=0;c[sa+24>>2]=0;c[sa>>2]=c[ia>>2];ka=g+32|0;u=c[ka>>2]|0;t=c[g>>2]|0;b:do if(((c[k>>2]|0)==0?(a[ma>>0]|0)==0:0)?(qa=g+6|0,w=(e[qa>>1]|0)>>>2&1,ta=Kq(f)|0,(ta|0)!=0):0){if((c[t>>2]|0)>1?(a[h>>0]&-2)<<24>>24==10:0){ph(f,35368,oa);wa=444;break}na=g+52|0;t=c[na>>2]|0;c:do if(!t){o=f+460|0;n=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;Q=g+64|0;R=g+4|0;S=ua+60|0;T=ta+32|0;U=f+72|0;V=da+4|0;W=da+1|0;X=da+8|0;Y=da+12|0;Z=ta+4|0;_=ta+24|0;$=f+19|0;aa=f+56|0;ca=f+80|0;P=0;v=w;while(1){if((P|0)>=(c[u>>2]|0)){E=m;N=0;w=v;R=u;break c}K=c[u+(P*72|0)+28>>2]|0;do if(!K)w=P;else{M=u+(P*72|0)+32|0;x=c[M>>2]|0;if(x){if(a[u+(P*72|0)+45>>0]&4){w=P;break}sh(ta,17,c[u+(P*72|0)+36>>2]|0,x,0)|0;w=P;break}c[oa>>2]=0;As(g,oa);c[o>>2]=(c[o>>2]|0)+(c[oa>>2]|0);s=b[K+6>>1]&4;N=c[n>>2]|0;r=c[f>>2]|0;d:do if(!(b[r+60>>1]&1)){I=c[ka>>2]|0;q=c[I+(P*72|0)+48>>2]|0;H=I+(P*72|0)+28|0;L=c[H>>2]|0;p=s<<16>>16!=0;do if(p){if(v){wa=120;break d}if((c[I>>2]|0)>1){wa=120;break d}O=c[m>>2]|0;if((O|0)!=0?(c[O+4>>2]&2097152|0)!=0:0){wa=120;break d}E=c[g>>2]|0;do if(E){B=c[E>>2]|0;if((B|0)<=0)break;F=c[E+4>>2]|0;E=0;D=0;do{D=c[(c[F+(E*20|0)>>2]|0)+4>>2]|D;E=E+1|0}while((E|0)!=(B|0));if(D&2097152){wa=120;break d}}while(0);E=c[ia>>2]|0;if(!E)break;B=c[E>>2]|0;if((B|0)<=0)break;F=c[E+4>>2]|0;E=0;D=0;do{D=c[(c[F+(E*20|0)>>2]|0)+4>>2]|D;E=E+1|0}while((E|0)!=(B|0));if(D&2097152){wa=120;break d}}while(0);F=c[L+32>>2]|0;E=(c[L+60>>2]|0)==0;if(!E?(c[k>>2]|0)!=0:0){wa=120;break}if(c[L+64>>2]|0){wa=120;break}B=b[qa>>1]|0;D=(B&64)==0;if(!(D|E)){wa=120;break}if(!(c[F>>2]|0)){wa=120;break}A=b[L+6>>1]|0;if(A&1){wa=120;break}F=E|D^1;if(!F?(c[I>>2]|0)>1|(v|0)!=0:0){wa=120;break}E=B&1;if(E<<16>>16!=0&p){wa=120;break}y=c[ia>>2]|0;z=(y|0)==0;if(!z?(c[L+48>>2]|0)!=0:0){wa=120;break}G=(v|0)!=0;if(G?(c[L+48>>2]|0)!=0:0){wa=120;break}if(F){if(A&6144){wa=120;break}}else if(!((c[m>>2]|0)==0&E<<16>>16==0&(A&6144)==0)){wa=120;break}if((B&2048)!=0?(c[L+52>>2]|0)!=0:0){wa=120;break}O=I+(P*72|0)+44|0;if(a[O>>0]&32){wa=120;break}B=L+52|0;F=c[B>>2]|0;do if(F){if(!(E<<16>>16==0&(((c[L+48>>2]|0)!=0|G)^1))){wa=120;break d}if((c[I>>2]|0)!=1){wa=120;break d}e:do if(L){if(!(A&5))D=L;else{wa=120;break d}while(1){E=(F|0)==0;if(!E?(a[D+4>>0]|0)!=116:0){wa=120;break d}if((c[c[D+32>>2]>>2]|0)<1){wa=120;break d}if((c[c[L>>2]>>2]|0)!=(c[c[D>>2]>>2]|0)){wa=120;break d}if(E)break e;if(b[F+6>>1]&5){wa=120;break d}D=F;F=c[F+52>>2]|0}}while(0);if(z)break;D=c[y>>2]|0;if((D|0)<=0)break;F=c[y+4>>2]|0;E=0;do{if(!(b[F+(E*20|0)+16>>1]|0)){wa=120;break d}E=E+1|0}while((E|0)<(D|0))}while(0);x=I+(P*72|0)+16|0;c[n>>2]=c[x>>2];Oq(f,21,0,0,0)|0;c[n>>2]=N;F=c[B>>2]|0;f:do if(!F)wa=81;else{y=r+65|0;B=c[ia>>2]|0;A=c[k>>2]|0;z=c[Q>>2]|0;D=c[na>>2]|0;while(1){c[ia>>2]=0;c[ka>>2]=0;c[na>>2]=0;c[k>>2]=0;c[Q>>2]=0;E=cr(r,g,0)|0;c[Q>>2]=z;c[k>>2]=A;c[ia>>2]=B;c[ka>>2]=I;a[R>>0]=116;if(!E)E=D;else{c[E+52>>2]=D;if(D)c[D+56>>2]=E;c[E+56>>2]=g}c[na>>2]=E;if(a[y>>0]|0)break f;F=c[F+52>>2]|0;if(!F){wa=81;break}else D=E}}while(0);if((wa|0)==81){wa=0;J=c[H>>2]|0;B=I+(P*72|0)+12|0;ig(r,c[B>>2]|0);ig(r,c[x>>2]|0);D=I+(P*72|0)+20|0;ig(r,c[D>>2]|0);c[B>>2]=0;c[x>>2]=0;c[D>>2]=0;c[H>>2]=0;D=I+(P*72|0)+24|0;B=c[D>>2]|0;if(B){A=B+40|0;z=b[A>>1]|0;if(z<<16>>16==1){N=c[l>>2]|0;N=((N|0)==0?f:N)+524|0;c[B+72>>2]=c[N>>2];c[N>>2]=B}else b[A>>1]=z+-1<<16>>16;c[D>>2]=0}N=P+1|0;M=r+65|0;L=g;K=J;while(1){y=c[K+32>>2]|0;x=c[y>>2]|0;E=L+32|0;F=c[E>>2]|0;if(!F){F=lr(r,0,0,0)|0;c[E>>2]=F;if(!F)break;else w=0}else w=a[O>>0]|0;if((x|0)>1){F=Bs(r,F,x+-1|0,N)|0;c[E>>2]=F;if(a[M>>0]|0)break}if((x|0)>0){D=0;do{A=D+P|0;Dk(r,c[F+(A*72|0)+56>>2]|0);E=y+(D*72|0)+8|0;A=F+(A*72|0)+8|0;B=E+0|0;z=A+72|0;do{c[A>>2]=c[B>>2];A=A+4|0;B=B+4|0}while((A|0)<(z|0));A=E+0|0;z=A+72|0;do{c[A>>2]=0;A=A+4|0}while((A|0)<(z|0));D=D+1|0}while((D|0)!=(x|0))}a[F+(P*72|0)+44>>0]=w;E=c[L>>2]|0;F=c[E>>2]|0;if((F|0)>0){A=E+4|0;D=c[A>>2]|0;B=0;do{if(!(c[D+(B*20|0)+4>>2]|0)){F=gh(r,c[D+(B*20|0)+8>>2]|0)|0;ho(F);D=c[A>>2]|0;c[D+(B*20|0)+4>>2]=F;F=c[E>>2]|0}B=B+1|0}while((B|0)<(F|0));E=c[L>>2]|0}Cs(r,E,q,c[K>>2]|0);if(G){Cs(r,c[L+40>>2]|0,q,c[K>>2]|0);I=L+44|0;c[I>>2]=Ds(r,c[I>>2]|0,q,c[K>>2]|0)|0}F=K+48|0;E=c[F>>2]|0;do if(!E){E=c[L+48>>2]|0;if(!E)break;Cs(r,E,q,c[K>>2]|0)}else{D=c[E>>2]|0;if((D|0)>0){B=c[E+4>>2]|0;A=0;do{b[B+(A*20|0)+16>>1]=0;A=A+1|0}while((A|0)!=(D|0))}c[L+48>>2]=E;c[F>>2]=0}while(0);E=c[K+36>>2]|0;if(!E)D=0;else D=Ir(r,E,0,0)|0;F=L+36|0;E=c[F>>2]|0;if(p){I=L+44|0;c[I>>2]=E;c[F>>2]=D;H=Ds(r,E,q,c[K>>2]|0)|0;c[I>>2]=H;c[I>>2]=os(r,H,Ir(r,c[K+44>>2]|0,0,0)|0)|0;c[L+40>>2]=Lr(r,c[K+40>>2]|0,0)|0}else{I=Ds(r,E,q,c[K>>2]|0)|0;c[F>>2]=I;c[F>>2]=os(r,I,D)|0}E=L+6|0;b[E>>1]=e[E>>1]|e[K+6>>1]&1;E=K+60|0;D=c[E>>2]|0;if(D){c[L+60>>2]=D;c[E>>2]=0}L=c[L+52>>2]|0;if(!L)break;else K=c[K+52>>2]|0}Ik(r,J,1)}if(!(s<<16>>16)){w=-1;break}b[qa>>1]=e[qa>>1]|4;w=-1;v=1}else wa=120;while(0);g:do if((wa|0)==120){wa=0;do if((c[u>>2]|0)==1){if(b[S>>1]&256)break;A=c[T>>2]|0;O=A+1|0;N=(c[U>>2]|0)+1|0;c[U>>2]=N;w=u+(P*72|0)+36|0;c[w>>2]=N;sh(ta,20,N,0,O)|0;c[M>>2]=O;O=c[w>>2]|0;a[da>>0]=13;c[V>>2]=O;a[W>>0]=0;c[X>>2]=0;c[Y>>2]=0;a[u+(P*72|0)+46>>0]=c[la>>2];er(f,K,da)|0;O=K+24|0;O=bs(c[O>>2]|0,c[O+4>>2]|0)|0;b[(c[u+(P*72|0)+24>>2]|0)+28>>1]=O;O=u+(P*72|0)+45|0;a[O>>0]=a[O>>0]|4;c[u+(P*72|0)+40>>2]=c[X>>2];sh(ta,21,c[w>>2]|0,0,0)|0;w=c[T>>2]|0;if(w>>>0>A>>>0)c[(c[Z>>2]|0)+(A*20|0)+8>>2]=w;c[(c[_>>2]|0)+88>>2]=w+-1;a[$>>0]=0;c[aa>>2]=0;w=P;break g}while(0);z=(c[U>>2]|0)+1|0;c[U>>2]=z;B=u+(P*72|0)+36|0;c[B>>2]=z;z=sh(ta,25,0,z,0)|0;c[M>>2]=z+1;if(!(a[u+(P*72|0)+45>>0]&2)){O=Kq(f)|0;A=c[ca>>2]|0;c[ca>>2]=A+1;A=sh(O,44,A,0,0)|0}else A=0;O=c[u+(P*72|0)+48>>2]|0;a[da>>0]=12;c[V>>2]=O;a[W>>0]=0;c[X>>2]=0;c[Y>>2]=0;a[u+(P*72|0)+46>>0]=c[la>>2];er(f,K,da)|0;O=K+24|0;O=bs(c[O>>2]|0,c[O+4>>2]|0)|0;b[(c[u+(P*72|0)+24>>2]|0)+28>>1]=O;if(A){x=c[T>>2]|0;if(x>>>0>A>>>0)c[(c[Z>>2]|0)+(A*20|0)+8>>2]=x;c[(c[_>>2]|0)+88>>2]=x+-1}w=sh(ta,18,c[B>>2]|0,0,0)|0;if((c[T>>2]|0)>>>0>z>>>0)c[(c[Z>>2]|0)+(z*20|0)+4>>2]=w;a[$>>0]=0;c[aa>>2]=0;w=P}while(0);if(a[ma>>0]|0){wa=444;break b}c[oa>>2]=0;As(g,oa);c[o>>2]=(c[o>>2]|0)-(c[oa>>2]|0);u=c[ka>>2]|0;if((d[h>>0]|0)<9)break;c[sa>>2]=c[ia>>2]}while(0);t=c[na>>2]|0;if(!t)P=w+1|0;else{E=m;N=t;w=v;R=u;break}}}else{E=g+36|0;N=t;R=u}while(0);Q=c[g>>2]|0;y=c[E>>2]|0;l=g+40|0;t=c[l>>2]|0;F=g+44|0;da=c[F>>2]|0;m=b[qa>>1]|0;a[ra>>0]=m&1;if(N){L=c[f>>2]|0;c[pa+0>>2]=c[h+0>>2];c[pa+4>>2]=c[h+4>>2];c[pa+8>>2]=c[h+8>>2];c[pa+12>>2]=c[h+12>>2];c[pa+16>>2]=c[h+16>>2];h:do if(!(c[N+48>>2]|0)){u=N+60|0;if(c[u>>2]|0){k=d[g+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[oa>>2]=k;ph(f,35072,oa);m=0;k=1;wa=227;break}O=Kq(f)|0;q=a[pa>>0]|0;if(q<<24>>24==12){sh(O,57,c[pa+4>>2]|0,c[c[g>>2]>>2]|0,0)|0;q=c[O+4>>2]|0;if(q)a[q+(((c[O+32>>2]|0)+-1|0)*20|0)+3>>0]=8;a[pa>>0]=14;q=14}p=e[qa>>1]|0;if(p&256){m=0;k=Es(f,g,pa)|0;wa=227;break}if((c[c[g>>2]>>2]|0)!=(c[c[N>>2]>>2]|0)){Fs(f,g);m=0;k=1;wa=227;break}do if(!(p&2048)){if(c[ia>>2]|0){k=Hs(f,g,h)|0;break h}M=g+4|0;p=d[M>>0]|0;if((p|0)==116){s=g+8|0;q=N+8|0;c[q>>2]=c[s>>2];r=g+12|0;p=N+12|0;c[p>>2]=c[r>>2];aa=g+60|0;c[u>>2]=c[aa>>2];ca=g+64|0;c[N+64>>2]=c[ca>>2];n=c[la>>2]|0;k=er(f,N,pa)|0;c[aa>>2]=0;c[ca>>2]=0;if(k){m=0;wa=227;break h}c[na>>2]=0;q=c[q>>2]|0;c[s>>2]=q;c[r>>2]=c[p>>2];if(!q)t=0;else t=sh(O,46,q,0,0)|0;l=c[la>>2]|0;k=er(f,g,pa)|0;m=c[na>>2]|0;c[na>>2]=N;ca=N+24|0;o=g+24|0;q=o;ca=fw(c[q>>2]|0,c[q+4>>2]|0,c[ca>>2]|0,c[ca+4>>2]|0)|0;q=o;c[q>>2]=ca;c[q+4>>2]=C;q=c[u>>2]|0;do if(q){ca=(Is(q,ha)|0)!=0;q=c[ha>>2]|0;if(!(ca&(q|0)>0))break;ca=o;aa=c[ca+4>>2]|0;p=((q|0)<0)<<31>>31;if(!(aa>>>0>p>>>0|((aa|0)==(p|0)?(c[ca>>2]|0)>>>0>q>>>0:0)))break;ca=o;c[ca>>2]=q;c[ca+4>>2]=p}while(0);if(!t){t=M;s=n;q=l;break}o=c[O+32>>2]|0;if(o>>>0>t>>>0)c[(c[O+4>>2]|0)+(t*20|0)+8>>2]=o;c[(c[O+24>>2]|0)+88>>2]=o+-1;t=M;s=n;q=l;break}else if((p|0)==115|(p|0)==117){if(q<<24>>24==1)p=c[pa+4>>2]|0;else{o=f+68|0;p=c[o>>2]|0;c[o>>2]=p+1;c[g+16>>2]=sh(O,57,p,0,0)|0;o=g;while(1){q=c[o+56>>2]|0;if(!q)break;else o=q}ca=o+6|0;b[ca>>1]=e[ca>>1]|8}a[fa>>0]=1;c[fa+4>>2]=p;a[fa+1>>0]=0;c[fa+8>>2]=0;c[fa+12>>2]=0;v=c[la>>2]|0;k=er(f,N,fa)|0;if(k){m=0;wa=227;break h}u=(a[M>>0]|0)==117?2:1;c[na>>2]=0;s=g+60|0;r=c[s>>2]|0;c[s>>2]=0;q=g+64|0;o=c[q>>2]|0;c[q>>2]=0;a[fa>>0]=u;u=c[la>>2]|0;k=er(f,g,fa)|0;Jk(L,c[ia>>2]|0);m=c[na>>2]|0;c[na>>2]=N;c[ia>>2]=0;if((a[M>>0]|0)==115){aa=N+24|0;ca=g+24|0;$=ca;aa=fw(c[$>>2]|0,c[$+4>>2]|0,c[aa>>2]|0,c[aa+4>>2]|0)|0;c[ca>>2]=aa;c[ca+4>>2]=C}Ck(L,c[s>>2]|0);c[s>>2]=r;c[q>>2]=o;c[g+8>>2]=0;c[g+12>>2]=0;o=a[pa>>0]|0;if(o<<24>>24==9){o=g;while(1){n=c[o+52>>2]|0;if(!n)break;else o=n}Js(f,0,c[o>>2]|0)}else if(o<<24>>24==1){t=M;s=v;q=u;break}l=ts(O)|0;ca=ts(O)|0;Ks(f,g,l);sh(O,108,p,l,0)|0;t=O+32|0;s=c[t>>2]|0;Ls(f,g,c[g>>2]|0,p,0,0,pa,ca,l);r=O+24|0;q=c[r>>2]|0;o=~ca;do if((ca|0)<0){n=c[q+112>>2]|0;if(!n)break;c[n+(o<<2)>>2]=c[t>>2]}while(0);c[q+88>>2]=(c[t>>2]|0)+-1;sh(O,9,p,s,0)|0;o=c[r>>2]|0;n=~l;do if((l|0)<0){q=c[o+112>>2]|0;if(!q)break;c[q+(n<<2)>>2]=c[t>>2]}while(0);c[o+88>>2]=(c[t>>2]|0)+-1;sh(O,61,p,0,0)|0;t=M;s=v;q=u;break}else{o=f+68|0;x=c[o>>2]|0;c[o>>2]=x+2;c[g+16>>2]=sh(O,57,x,0,0)|0;o=g;while(1){n=c[o+56>>2]|0;if(!n)break;else o=n}v=x+1|0;s=o+6|0;b[s>>1]=e[s>>1]|8;a[ga>>0]=1;s=ga+4|0;c[s>>2]=x;a[ga+1>>0]=0;c[ga+8>>2]=0;c[ga+12>>2]=0;u=c[la>>2]|0;k=er(f,N,ga)|0;if(k){m=0;wa=227;break h}c[g+20>>2]=sh(O,57,v,0,0)|0;c[na>>2]=0;t=g+60|0;l=c[t>>2]|0;c[t>>2]=0;n=g+64|0;o=c[n>>2]|0;c[n>>2]=0;c[s>>2]=v;w=c[la>>2]|0;k=er(f,g,ga)|0;m=c[na>>2]|0;c[na>>2]=N;q=g+24|0;ca=q;aa=c[ca+4>>2]|0;r=N+24|0;s=c[r>>2]|0;r=c[r+4>>2]|0;if(aa>>>0>r>>>0|((aa|0)==(r|0)?(c[ca>>2]|0)>>>0>s>>>0:0)){ca=q;c[ca>>2]=s;c[ca+4>>2]=r}Ck(L,c[t>>2]|0);c[t>>2]=l;c[n>>2]=o;if((a[pa>>0]|0)==9){q=g;while(1){p=c[q+52>>2]|0;if(!p)break;else q=p}Js(f,0,c[q>>2]|0)}n=ts(O)|0;t=ts(O)|0;Ks(f,g,n);sh(O,108,x,n,0)|0;q=f+19|0;p=a[q>>0]|0;if(!(p<<24>>24)){ca=f+72|0;q=(c[ca>>2]|0)+1|0;c[ca>>2]=q}else{ca=p+-1<<24>>24;a[q>>0]=ca;q=c[f+((ca&255)<<2)+24>>2]|0}l=sh(O,101,x,q,0)|0;th(O,sh(O,68,v,t,q)|0,0,-14);Wr(f,q);Ls(f,g,c[g>>2]|0,x,0,0,pa,t,n);q=O+24|0;p=c[q>>2]|0;r=~t;do if((t|0)<0){s=c[p+112>>2]|0;if(!s)break;c[s+(r<<2)>>2]=c[O+32>>2]}while(0);s=O+32|0;c[p+88>>2]=(c[s>>2]|0)+-1;sh(O,9,x,l,0)|0;p=c[q>>2]|0;o=~n;do if((n|0)<0){q=c[p+112>>2]|0;if(!q)break;c[q+(o<<2)>>2]=c[s>>2]}while(0);c[p+88>>2]=(c[s>>2]|0)+-1;sh(O,61,v,0,0)|0;sh(O,61,x,0,0)|0;t=M;s=u;q=w;break}}else{Gs(f,g,pa);t=g+4|0;s=0;q=0;m=0;k=0}while(0);ca=a[t>>0]|0;Ms(f,ca&255,s,q,ca<<24>>24!=116&1);if(!(b[qa>>1]&8)){wa=227;break}r=c[c[g>>2]>>2]|0;s=Ns(L,r,1)|0;if(!s){k=7;wa=227;break}if((r|0)>0){l=L+8|0;n=s+20|0;o=0;while(1){ca=Os(f,g,o)|0;c[n>>2]=ca;if(!ca)c[n>>2]=c[l>>2];o=o+1|0;if((o|0)==(r|0))break;else n=n+4|0}}p=O+32|0;q=O+4|0;do{l=0;do{o=g+(l<<2)+16|0;n=c[o>>2]|0;if((n|0)<0)break;if((c[p>>2]|0)>>>0>n>>>0)c[(c[q>>2]|0)+(n*20|0)+8>>2]=r;c[s>>2]=(c[s>>2]|0)+1;th(O,n,s,-6);c[o>>2]=-1;l=l+1|0}while((l|0)<2);g=c[g+52>>2]|0}while((g|0)!=0);ca=(c[s>>2]|0)+-1|0;c[s>>2]=ca;if(ca){wa=227;break}Sc(s);wa=227}else{k=d[g+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[oa>>2]=k;ph(f,35024,oa);m=0;k=1;wa=227}while(0);if((wa|0)==227){c[h+8>>2]=c[pa+8>>2];c[h+12>>2]=c[pa+12>>2];Ik(L,m,1)}c[xa>>2]=ya;break a}if((m&5)==1){k=c[sa>>2]|0;if(!(Ps(k,Q,-1)|0)){b[qa>>1]=m&65534;t=Lr(ua,Q,0)|0;c[l>>2]=t;wa=232}}else wa=232;if((wa|0)==232)k=c[sa>>2]|0;if(!k)k=-1;else{ca=Qs(f,k,0,c[Q>>2]|0)|0;aa=f+68|0;k=c[aa>>2]|0;c[aa>>2]=k+1;c[sa+8>>2]=k;k=sh(ta,57,k,(c[c[sa>>2]>>2]|0)+1+(c[Q>>2]|0)|0,0)|0;th(ta,k,ca,-6)}O=sa+20|0;c[O>>2]=k;if((a[h>>0]|0)==12)sh(ta,57,c[h+4>>2]|0,c[Q>>2]|0,0)|0;na=ts(ta)|0;v=g+24|0;ca=v;c[ca>>2]=-1;c[ca+4>>2]=2147483647;Ks(f,g,na);if((c[g+8>>2]|0)==0?(ea=c[O>>2]|0,(ea|0)>-1):0){if(!(a[(c[ta>>2]|0)+65>>0]|0))k=(c[ta+4>>2]|0)+(ea*20|0)|0;else k=29120;a[k>>0]=58;ca=sa+24|0;a[ca>>0]=d[ca>>0]|1}if(!(b[qa>>1]&1))a[ra+1>>0]=0;else{ca=f+68|0;k=c[ca>>2]|0;c[ca>>2]=k+1;c[ra+4>>2]=k;ca=Qs(f,c[g>>2]|0,0,0)|0;k=sh(ta,57,k,0,0)|0;th(ta,k,ca,-6);c[ra+8>>2]=k;k=c[ta+4>>2]|0;if(k)a[k+(((c[ta+32>>2]|0)+-1|0)*20|0)+3>>0]=8;a[ra+1>>0]=3}if((w|0)==0&(t|0)==0){s=Rs(f,R,y,c[sa>>2]|0,c[g>>2]|0,(a[ra>>0]|0)!=0?1024:0,0)|0;if(!s){wa=444;break}q=Ss(b[s+32>>1]|0)|0;p=C;ca=v;aa=c[ca+4>>2]|0;if(p>>>0<aa>>>0|((p|0)==(aa|0)?q>>>0<(c[ca>>2]|0)>>>0:0)){ca=v;c[ca>>2]=q;c[ca+4>>2]=p}do if(a[ra>>0]|0){q=a[s+40>>0]|0;if(!(q<<24>>24))break;a[ra+1>>0]=q}while(0);q=c[sa>>2]|0;do if(!q)wa=257;else{ca=a[s+36>>0]|0;c[sa+4>>2]=ca;if((ca|0)!=(c[q>>2]|0))break;c[sa>>2]=0;wa=257}while(0);do if((wa|0)==257){o=c[O>>2]|0;if((o|0)<=-1)break;vh(ta,o)}while(0);Ls(f,g,Q,-1,sa,ra,h,c[s+48>>2]|0,c[s+52>>2]|0);Ts(s)}else{w=(t|0)!=0;do if(w){l=c[g>>2]|0;k=c[l>>2]|0;if((k|0)>0){l=c[l+4>>2]|0;while(1){b[l+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[t>>2]|0;if((k|0)>0){l=c[t+4>>2]|0;while(1){b[l+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ca=v;aa=c[ca+4>>2]|0;if(!(aa>>>0>0|(aa|0)==0&(c[ca>>2]|0)>>>0>100))break;ca=v;c[ca>>2]=100;c[ca+4>>2]=0}else{ca=v;c[ca>>2]=1;c[ca+4>>2]=0}while(0);M=(Ps(t,c[sa>>2]|0,-1)|0)==0;P=ts(ta)|0;c[ja+0>>2]=0;c[ja+4>>2]=0;c[ja+8>>2]=0;c[ja+12>>2]=0;c[ja+16>>2]=0;c[ja+20>>2]=0;c[ja+24>>2]=0;c[ja+28>>2]=0;c[ja>>2]=f;c[ja+4>>2]=R;c[ja+12>>2]=va;H=f+72|0;c[va+16>>2]=(c[H>>2]|0)+1;if(w)k=c[t>>2]|0;else k=0;v=va+12|0;c[v>>2]=k;c[va+24>>2]=t;Us(ja,Q);Us(ja,c[sa>>2]|0);if(da){c[oa+0>>2]=0;c[oa+4>>2]=0;c[oa+8>>2]=0;c[oa+12>>2]=0;c[oa+16>>2]=0;c[oa+20>>2]=0;c[oa>>2]=80;c[oa+4>>2]=81;c[oa+24>>2]=ja;ns(oa,da)|0}x=va+32|0;c[va+36>>2]=c[x>>2];o=va+44|0;k=c[o>>2]|0;if((k|0)>0){u=ja+28|0;l=va+40|0;m=b[u>>1]|0;n=0;do{b[u>>1]=m&65535|8;Us(ja,c[(c[(c[l>>2]|0)+(n<<4)>>2]|0)+20>>2]|0);m=e[u>>1]&65527;b[u>>1]=m;n=n+1|0;k=c[o>>2]|0}while((n|0)<(k|0))}c[va+20>>2]=c[H>>2];if(a[ma>>0]|0){wa=444;break}if(w){F=f+68|0;E=c[F>>2]|0;c[F>>2]=E+1;s=va+4|0;c[s>>2]=E;E=Qs(f,t,0,c[x>>2]|0)|0;r=sh(ta,58,c[s>>2]|0,c[v>>2]|0,0)|0;th(ta,r,E,-6);K=c[H>>2]|0;J=K+1|0;G=K+2|0;K (…) [all...] |
H A D | sqlite-pointer-masking.js | 6 function Zr(f,g,k,l,m){f=f|0;g=g|0;k=k|0;l=l|0;m=m|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+16|0;if((i|0)>=(j|0))fa();y=B;z=B+8|0;c[(z&p)>>2]=0;a:do if(!g){c[(m&p)>>2]=0;r=0}else{s=a[(g&n)>>0]|0;if(s<<24>>24==-98)do{g=c[(g&p)+12>>2]|0;s=a[(g&n)>>0]|0}while(s<<24>>24==-98);if(s<<24>>24==-97)u=d[(g&n)+38>>0]|0;else u=s&255;if((u|0)==38){t=Xq(c[(g&p)+8>>2]|0,0)|0;r=Zr(f,c[(g&p)+12>>2]|0,k,t,m)|0;s=c[(m&p)>>2]|0;if(!s)break;gm(s,t,1);fm(c[(m&p)>>2]|0,l,1);break}else if((u|0)==157){g=c[(g&p)+12>>2]|0;u=a[(g&n)>>0]|0;if((u&-2)<<24>>24==-124){t=-1;s=-1;x=u&255;u=26016;A=12}else A=30}else{t=1;s=0;x=u;u=10360;A=12}b:do if((A|0)==12){c:do switch(x|0){case 157:{g=c[(g&p)+12>>2]|0;A=30;break b}case 97:case 132:case 133:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;do if(!(c[(g&p)+4>>2]&1024)){t=c[(g&p)+8>>2]|0;c[(y&p)>>2]=u;c[(y&p)+4>>2]=t;t=uh(f,19456,y)|0;if(!t)break c;if(r)Xg(r,t,-1,1,75)|0}else{u=c[(g&p)+8>>2]|0;u=sw(u|0,((u|0)<0)<<31>>31|0,t|0,s|0)|0;t=G;g=r+8|0;if(!(b[(g&o)>>1]&9312)){z=r;c[(z&p)>>2]=u;c[(z&p)+4>>2]=t;b[(g&o)>>1]=4;break}else{Zg(r,u,t);break}}while(0);if((x&-2|0)==132&l<<24>>24==65)fm(r,67,1);else fm(r,l,1);s=r+8|0;g=e[(s&o)>>1]|0;if(g&12)b[(s&o)>>1]=g&65533;if(k<<24>>24==1){s=r;r=0;break b}s=r;r=Yl(r,k&255)|0;break b}case 101:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}else{v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;s=r;r=0;break b}}case 134:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;s=(c[(g&p)+8>>2]|0)+2|0;g=s;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;z=(g-s&1073741823)+-1|0;Xg(r,Yt(f,s,z)|0,(z|0)/2|0,0,75)|0;s=r;r=0;break b}default:{s=0;r=0;break b}}while(0);a[(f&n)+65>>0]=1;mg(f,0);Mh(r);r=7;break a}while(0);if((A|0)==30){y=(Zr(f,g,k,l,z)|0)==0;s=c[(z&p)>>2]|0;if(y&(s|0)!=0){op(s);t=s+8|0;g=b[(t&o)>>1]|0;do if(!(g&8)){u=s;r=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((r|0)==0&(u|0)==-2147483648){h[(s&q)>>3]=9223372036854775808.0;b[(t&o)>>1]=g&48640|8;break}else{y=dw(0,0,r|0,u|0)|0;z=s;c[(z&p)>>2]=y;c[(z&p)+4>>2]=G;break}}else h[(s&q)>>3]=-+h[(s&q)>>3];while(0);fm(s,l,k);r=0}else r=0}c[(m&p)>>2]=s}while(0);i=B;return r|0}function _r(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if((d|0)!=0?(g=b+19|0,h=a[(g&n)>>0]|0,(h&255)<8):0){f=0;e=b+116|0;while(1){if((c[(e&p)+12>>2]|0)==(d|0)){f=5;break}f=f+1|0;if((f|0)>=10){f=7;break}else e=e+20|0}if((f|0)==5){a[(e&n)+6>>0]=1;break}else if((f|0)==7){a[(g&n)>>0]=h+1<<24>>24;c[(b+((h&255)<<2)&p)+24>>2]=d;break}}while(0);return}function $r(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))fa();o=q;e=b+484|0;l=c[(e&p)>>2]|0;m=c[(b&p)>>2]|0;do if((l|0)!=0?(bs(b),c[(b&p)+512>>2]=0,(c[(l&p)+52>>2]|0)>=1):0){if(a[(m&n)+145>>0]|0)if(!(Ik((c[(l&p)+68>>2]|0)+8|0,c[(l&p)>>2]|0,l)|0)){c[(e&p)>>2]=0;break}else{a[(m&n)+65>>0]=1;break}if(d)c[(b&p)+500>>2]=(c[(d&p)>>2]|0)-(c[(b&p)+496>>2]|0)+(c[(d&p)+4>>2]|0);c[(o&p)>>2]=b+496;k=uh(m,25256,o)|0;d=c[(l&p)+68>>2]|0;a:do if(d){f=c[(m&p)+20>>2]|0;if((f|0)>0){g=c[(m&p)+16>>2]|0;h=0;while(1){e=h+1|0;if((c[(g+(h<<4)&p)+12>>2]|0)==(d|0)){e=h;break a}if((e|0)<(f|0))h=e;else break}}else e=0}else e=-1e6;while(0);g=c[(l&p)>>2]|0;h=c[(b&p)+384>>2]|0;c[(o&p)>>2]=c[((c[(m&p)+16>>2]|0)+(e<<4)&p)>>2];c[(o&p)+4>>2]=(e|0)==1?13184:13208;c[(o&p)+8>>2]=g;c[(o&p)+12>>2]=g;c[(o&p)+16>>2]=k;c[(o&p)+20>>2]=h;Br(b,25280,o);mg(m,k);k=Oq(b)|0;Dr(b,e);wh(k,144,0,0,0)|0;c[(o&p)>>2]=c[(l&p)>>2];Ir(k,e,uh(m,25368,o)|0);b=b+72|0;o=(c[(b&p)>>2]|0)+1|0;c[(b&p)>>2]=o;b=c[(l&p)>>2]|0;xh(k,wh(k,97,0,o,0)|0,b,0);wh(k,147,e,o,0)|0}while(0);i=q;return}function as(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+52|0;i=c[(h&p)>>2]|0;e=i+1|0;c[(h&p)>>2]=e;g=(i<<2)+8|0;f=b+56|0;g=ro(a,c[(f&p)>>2]|0,g,((g|0)<0)<<31>>31)|0;if(!g){if((i|0)>0){b=0;do{mg(a,c[((c[(f&p)>>2]|0)+(b<<2)&p)>>2]|0);b=b+1|0}while((b|0)!=(i|0))}mg(a,d);mg(a,c[(f&p)>>2]|0);c[(h&p)>>2]=0}else{c[(g+(i<<2)&p)>>2]=d;c[(g+(e<<2)&p)>>2]=0}c[(f&p)>>2]=g;return}function bs(b){b=b|0;var d=0,e=0,f=0,g=0;d=c[(b&p)+512>>2]|0;if((d|0)!=0?(g=c[(b&p)+484>>2]|0,(g|0)!=0):0){e=c[(b&p)+516>>2]|0;f=c[(b&p)>>2]|0;b=jw(e|0,((e|0)<0)<<31>>31|0,1,0)|0;b=mh(f,b,G)|0;if(!b)b=0;else{kw(b|0,d|0,e|0)|0;a[(b+e&n)>>0]=0}as(f,g,b)}return}function cs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();l=q;m=c[(b&p)>>2]|0;o=Wq(m,e)|0;k=(d|0)!=0;if((o|0)!=0&k?(h=c[(d&p)>>2]|0,(h|0)>0):0){e=h;h=0;do{if(!(dd(o,c[(d+(h<<4)&p)+8>>2]|0)|0)){c[(l&p)>>2]=o;th(b,25184,l);e=c[(d&p)>>2]|0}h=h+1|0}while((h|0)<(e|0))}if(k){h=(c[(d&p)>>2]<<4)+24|0;h=ro(m,d,h,((h|0)<0)<<31>>31)|0;if(!h)e=10;else{d=h;e=11}}else{e=mh(m,24,0)|0;if(!e)e=10;else{h=e+0|0;d=h+24|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(d|0));d=e;e=11}}if((e|0)==10){Nk(m,f);Mk(m,g,1);mg(m,o)}else if((e|0)==11){m=d+8|0;c[(m+(c[(d&p)>>2]<<4)&p)+8>>2]=g;g=c[(d&p)>>2]|0;c[(m+(g<<4)&p)+4>>2]=f;c[(m+(g<<4)&p)>>2]=o;c[(m+(g<<4)&p)+12>>2]=0;c[(d&p)>>2]=g+1}i=q;return d|0}function ds(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+96|0;if((i|0)>=(j|0))fa();m=q+48|0;f=q;g=c[(c[(b&p)+32>>2]&p)>>2]|0;h=m+0|0;k=g+0|0;l=h+48|0;do{a[(h&n)>>0]=a[(k&n)>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((a[(b&n)+43>>0]|0)!=2){h=c[(b&p)+4>>2]|0;cc[c[((c[(h&p)>>2]|0)&p)+60>>2]&31](h)}h=f+0|0;k=g+48|0;l=h+48|0;do{a[(h&n)>>0]=a[(k&n)>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((Zv(m,f,48)|0)==0?(a[(m&n)+12>>0]|0)!=0:0){k=m+40|0;l=m;g=0;f=0;do{g=g+f+(c[(l&p)>>2]|0)|0;f=g+f+(c[(l&p)+4>>2]|0)|0;l=l+8|0}while(l>>>0<k>>>0);if((g|0)==(c[(k&p)>>2]|0)?(f|0)==(c[(m&p)+44>>2]|0):0){f=b+52|0;if(!(Zv(f,m,48)|0))f=0;else{c[(d&p)>>2]=1;h=f+0|0;k=m+0|0;l=h+48|0;do{c[(h&p)>>2]=c[(k&p)>>2];h=h+4|0;k=k+4|0}while((h|0)<(l|0));f=e[(b&o)+66>>1]|0;c[(b&p)+36>>2]=f<<16&65536|f&65024;f=0}}else f=1}else f=1;i=q;return f|0}function es(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;b=tc[c[((c[(a&p)>>2]|0)&p)+8>>2]&31](a,g,4,b,e)|0;if(!b)c[(f&p)>>2]=(d[(g&n)+1>>0]|0)<<16|(d[(g&n)>>0]|0)<<24|(d[(g&n)+2>>0]|0)<<8|(d[(g&n)+3>>0]|0);i=h;return b|0}function fs(a,b){a=a|0;b=b|0;var c=0,d=0,f=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=iw(a|0,b|0,1)|0;b=G}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;f=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){d=b;c=40;while(1){c=(c&65535)+40|0;f=mw(a|0,d|0,4)|0;b=G;if(d>>>0>0|(d|0)==0&a>>>0>4095){a=f;d=b}else{a=f;break}}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){while(1){c=(c&65535)+10&65535;d=mw(a|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&a>>>0>31){a=d;b=G}else{a=d;break}}f=11}else f=11}if((f|0)==11)a=(c&65535)+65526+(e[((a&7)<<1&o)+13496>>1]|0)&65535;return a|0}function gs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;k=c[(b&p)+408>>2]|0;k=(k|0)==0?b:k;i=k+396|0;h=c[(i&p)>>2]|0;j=c[(k&p)+400>>2]|0;a:do if((h|0)>0){b=0;while(1){if((c[(j+(b<<4)&p)>>2]|0)==(d|0)?(c[(j+(b<<4)&p)+4>>2]|0)==(e|0):0)break;b=b+1|0;if((b|0)>=(h|0)){l=8;break a}}b=j+(b<<4)+8|0;if(!(a[(b&n)>>0]|0))h=f<<24>>24!=0&1;else h=1;a[(b&n)>>0]=h}else l=8;while(0);do if((l|0)==8){b=(h<<4)+16|0;b=Wl(c[(k&p)>>2]|0,j,b,((b|0)<0)<<31>>31)|0;c[(k&p)+400>>2]=b;if(!b){c[(i&p)>>2]=0;a[((c[(k&p)>>2]|0)&n)+65>>0]=1;break}else{h=c[(i&p)>>2]|0;c[(i&p)>>2]=h+1;c[(b+(h<<4)&p)>>2]=d;c[(b+(h<<4)&p)+4>>2]=e;a[(b+(h<<4)&n)+8>>0]=f;c[(b+(h<<4)&p)+12>>2]=g;break}}while(0);return}function hs(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=b[(f&o)+48>>1]|0;l=i&65535;h=e[(f&o)+46>>1]|0;m=d+64|0;if(!(c[(m&p)>>2]|0)){g=c[(d&p)>>2]|0;if(!(a[(f&n)+51>>0]&8))k=Rs(g,l,0)|0;else k=Rs(g,h,l-h|0)|0;if(k){if(i<<16>>16){j=f+32|0;f=f+28|0;h=k+16|0;g=0;do{i=c[((c[(j&p)>>2]|0)+(g<<2)&p)>>2]|0;if(!(_v(i,11152)|0))i=0;else i=cr(d,i)|0;c[(k+(g<<2)&p)+20>>2]=i;a[((c[(h&p)>>2]|0)+g&n)>>0]=a[((c[(f&p)>>2]|0)+g&n)>>0]|0;g=g+1|0}while((g|0)<(l|0))}g=(c[(m&p)>>2]|0)==0;if(!g){g=(c[(k&p)>>2]|0)+-1|0;c[(k&p)>>2]=g;if(!g){Wc(k);g=0}else g=0}else g=g?k:0}else g=0}else g=0;return g|0}function is(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;I=i;i=i+112|0;if((i|0)>=(j|0))fa();D=I;F=I+100|0;G=I+96|0;m=I+48|0;E=c[(d&p)+8>>2]|0;c[(F&p)>>2]=0;c[(G&p)>>2]=0;C=c[(d&p)>>2]|0;a:do if(!E)g=0;else{b:do if(!f)H=16;else{t=a[(f&n)>>0]|0;s=t&255;do switch(s|0){case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{D=$t(d,c[(f&p)+12>>2]|0,F)|0;wh(E,s,$t(d,c[(f&p)+16>>2]|0,G)|0,D,g)|0;break b}case 156:{h=c[(f&p)+40>>2]|0;k=b[(f&o)+34>>1]|0;l=c[(h&p)+28>>2]|0;if(!(a[(h&n)>>0]|0)){g=c[(l+(k*24|0)&p)+16>>2]|0;break b}if(a[(h&n)+1>>0]|0){wh(E,47,c[(h&p)+8>>2]|0,c[(l+(k*24|0)&p)+12>>2]|0,g)|0;break b}break}case 79:case 78:case 83:case 80:case 81:case 82:{B=f+12|0;D=$t(d,c[(B&p)>>2]|0,F)|0;C=f+16|0;E=$t(d,c[(C&p)>>2]|0,G)|0;au(d,c[(B&p)>>2]|0,c[(C&p)>>2]|0,s,D,E,g,32);break b}case 133:{_t(E,c[(f&p)+8>>2]|0,0,g);break b}case 97:{D=c[(f&p)+8>>2]|0;xh(E,wh(E,97,0,g,0)|0,D,0);break b}case 158:case 95:{g=is(d,c[(f&p)+12>>2]|0,g)|0;break b}case 38:{k=is(d,c[(f&p)+12>>2]|0,g)|0;if((k|0)!=(g|0))wh(E,34,k,g,0)|0;wh(E,40,g,(Xq(c[(f&p)+8>>2]|0,0)|0)<<24>>24,0)|0;dt(d,g,1);break b}case 119:case 20:{g=eu(d,f,0,0)|0;break b}case 75:{D=xs(E)|0;q=xs(E)|0;wh(E,28,0,g,0)|0;fu(d,f,D,q);wh(E,25,1,g,0)|0;k=E+24|0;h=c[(k&p)>>2]|0;l=~D;if((D|0)<0?(r=c[(h&p)+112>>2]|0,(r|0)!=0):0)c[(r+(l<<2)&p)>>2]=c[(E&p)+32>>2];m=E+32|0;c[(h&p)+88>>2]=(c[(m&p)>>2]|0)+-1;wh(E,37,g,0,0)|0;l=c[(k&p)>>2]|0;k=~q;if((q|0)<0?(u=c[(l&p)+112>>2]|0,(u|0)!=0):0)c[(u+(k<<2)&p)>>2]=c[(m&p)>>2];c[(l&p)+88>>2]=(c[(m&p)>>2]|0)+-1;break b}case 155:{k=c[(f&p)+40>>2]|0;if(!k){c[(D&p)>>2]=c[(f&p)+8>>2];th(d,28936,D);break b}else{g=c[((c[(k&p)+40>>2]|0)+(b[(f&o)+34>>1]<<4)&p)+8>>2]|0;break b}}case 19:case 96:{wh(E,s,$t(d,c[(f&p)+12>>2]|0,F)|0,g,0)|0;break b}case 77:case 76:{wh(E,25,1,g,0)|0;h=wh(E,s,$t(d,c[(f&p)+12>>2]|0,F)|0,0,0)|0;wh(E,25,0,g,0)|0;k=c[(E&p)+32>>2]|0;if(k>>>0>h>>>0)c[((c[(E&p)+4>>2]|0)+(h*20|0)&p)+8>>2]=k;c[((c[(E&p)+24>>2]|0)&p)+88>>2]=k+-1;break b}case 157:{k=f+12|0;h=c[(k&p)>>2]|0;l=a[(h&n)>>0]|0;if(l<<24>>24==-124){Zt(d,h,1,g);break b}else if(l<<24>>24==-123){_t(E,c[(h&p)+8>>2]|0,1,g);break b}else{a[(m&n)>>0]=-124;c[(m&p)+4>>2]=17408;c[(m&p)+8>>2]=0;D=$t(d,m,F)|0;wh(E,90,$t(d,c[(k&p)>>2]|0,G)|0,D,g)|0;break b}}case 57:{if(!(c[(d&p)+412>>2]|0)){th(d,29e3,D);g=0;break a}l=a[(f&n)+1>>0]|0;if(l<<24>>24!=2){h=c[(f&p)+8>>2]|0;if(l<<24>>24==4){xh(E,wh(E,24,0,4,0)|0,h,0);break b}}else{h=c[(d&p)+408>>2]|0;a[(((h|0)==0?d:h)&n)+21>>0]=1;h=c[(f&p)+8>>2]|0}zs(d,1811,l<<24>>24,h,0,0);break b}case 148:case 73:{B=f+12|0;D=$t(d,c[(B&p)>>2]|0,F)|0;C=f+16|0;E=$t(d,c[(C&p)>>2]|0,G)|0;au(d,c[(B&p)>>2]|0,c[(C&p)>>2]|0,t<<24>>24==73?79:78,D,E,g,160);break b}case 135:{k=f+32|0;wh(E,31,b[(k&o)>>1]|0,g,0)|0;if(!(a[((c[(f&p)+8>>2]|0)&n)+1>>0]|0))break b;xh(E,-1,c[((c[(d&p)+472>>2]|0)+((b[(k&o)>>1]|0)+-1<<2)&p)>>2]|0,-2);break b}case 154:break;case 153:{r=a[(C&n)+62>>0]|0;A=f+4|0;if((c[(A&p)>>2]&16384|0)==0?(q=c[(f&p)+20>>2]|0,(q|0)!=0):0){B=c[(q&p)>>2]|0;y=1;z=q}else{B=0;y=0;z=0}t=c[(f&p)+8>>2]|0;if(!t)s=0;else{s=t;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-t&1073741823}m=Sh(C,t,s,B,r,0)|0;if((m|0)!=0?(c[(m&p)+12>>2]|0)!=0:0){x=m+2|0;q=e[(x&o)>>1]|0;if(q&512){m=xs(E)|0;l=z+4|0;Rq(d,c[(c[(l&p)>>2]&p)>>2]|0,g);if((B|0)>1){k=d+100|0;h=1;do{wh(E,77,g,m,0)|0;dt(d,g,1);c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;Rq(d,c[((c[(l&p)>>2]|0)+(h*20|0)&p)>>2]|0,g);bu(d);h=h+1|0}while((h|0)!=(B|0))}l=c[(E&p)+24>>2]|0;k=~m;if((m|0)<0?(w=c[(l&p)+112>>2]|0,(w|0)!=0):0)c[(w+(k<<2)&p)>>2]=c[(E&p)+32>>2];c[(l&p)+88>>2]=(c[(E&p)+32>>2]|0)+-1;break b}if(q&1024){Rq(d,c[(c[(z&p)+4>>2]&p)>>2]|0,g);break b}w=(B|0)>0;if(w){s=z+4|0;r=D+20|0;q=D+4|0;k=D+24|0;t=0;h=0;l=0;do{if((h|0)<32?(f=c[((c[(s&p)>>2]|0)+(h*20|0)&p)>>2]|0,c[(D&p)>>2]=0,c[(D&p)+4>>2]=0,c[(D&p)+8>>2]=0,c[(D&p)+12>>2]=0,c[(D&p)+16>>2]=0,c[(D&p)+20>>2]=0,a[(r&n)>>0]=1,c[(D&p)>>2]=78,c[(q&p)>>2]=79,c[(k&p)>>2]=0,rs(D,f)|0,(a[(r&n)>>0]|0)!=0):0)t=t|1<<h;if(!((b[(x&o)>>1]&32)==0|(l|0)!=0))l=cu(d,c[((c[(s&p)>>2]|0)+(h*20|0)&p)>>2]|0)|0;h=h+1|0}while((h|0)!=(B|0));u=t}else{u=0;l=0}if(y){do if(!u){s=d+60|0;t=c[(s&p)>>2]|0;r=d+56|0;q=c[(r&p)>>2]|0;if((q|0)<(B|0)){D=d+72|0;t=c[(D&p)>>2]|0;c[(D&p)>>2]=t+B;t=t+1|0;break}else{c[(s&p)>>2]=t+B;c[(r&p)>>2]=q-B;break}}else{D=d+72|0;t=c[(D&p)>>2]|0;c[(D&p)>>2]=t+B;t=t+1|0}while(0);q=b[(x&o)>>1]|0;if((q&192)!=0?(v=c[(c[(z&p)+4>>2]&p)>>2]|0,D=a[(v&n)>>0]|0,D<<24>>24==-100|D<<24>>24==-102):0)a[(v&n)+38>>0]=q&192;D=d+100|0;c[(D&p)>>2]=(c[(D&p)>>2]|0)+1;bt(d,z,t,3);bu(d)}else t=0;if((B|0)>1?(c[(A&p)>>2]&128|0)!=0:0)m=du(C,m,B,c[((c[(z&p)+4>>2]|0)&p)+20>>2]|0)|0;else if(w)m=du(C,m,B,c[(c[(z&p)+4>>2]&p)>>2]|0)|0;if(b[(m&o)+2>>1]&32){if(!l)l=c[(C&p)+8>>2]|0;xh(E,wh(E,36,0,0,0)|0,l,-4)}xh(E,wh(E,1,u,t,g)|0,m,-5);l=c[(E&p)+4>>2]|0;if(l)a[(l+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=B;if(!((B|0)!=0&(u|0)==0))break b;dt(d,t,B);k=d+56|0;if((c[(k&p)>>2]|0)>=(B|0))break b;c[(k&p)>>2]=B;c[(d&p)+60>>2]=t;break b}c[(D&p)>>2]=s;c[(D&p)+4>>2]=t;th(d,28968,D);break b}case 101:{H=16;break b}case 24:{g=is(d,c[(f&p)+12>>2]|0,g)|0;break b}case 74:{t=c[(f&p)+12>>2]|0;q=c[((c[(f&p)+20>>2]|0)&p)+4>>2]|0;h=c[(q&p)>>2]|0;r=$t(d,t,F)|0;s=$t(d,h,G)|0;m=d+19|0;k=a[(m&n)>>0]|0;if(k<<24>>24){D=k+-1<<24>>24;a[(m&n)>>0]=D;l=c[(d+((D&255)<<2)&p)+24>>2]|0;if(!(D<<24>>24))H=103;else{D=k+-2<<24>>24;a[(m&n)>>0]=D;m=c[(d+((D&255)<<2)&p)+24>>2]|0}}else{H=d+72|0;l=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=l;H=103}if((H|0)==103){D=d+72|0;m=(c[(D&p)>>2]|0)+1|0;c[(D&p)>>2]=m}au(d,t,h,83,r,s,l,32);D=c[(q&p)+20>>2]|0;_r(d,c[(G&p)>>2]|0);au(d,t,D,81,r,$t(d,D,G)|0,m,32);wh(E,72,l,m,g)|0;_r(d,l);_r(d,m);break b}case 159:{g=c[(f&p)+28>>2]|0;break b}case 132:{Zt(d,f,0,g);break b}case 134:{h=(c[(f&p)+8>>2]|0)+2|0;k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;C=(k-h&1073741823)+-1|0;D=Yt(c[(E&p)>>2]|0,h,C)|0;xh(E,wh(E,30,(C|0)/2|0,g,0)|0,D,-1);break b}case 62:{h=c[(f&p)+44>>2]|0;D=ca((b[(h&o)+38>>1]|0)+1|0,c[(f&p)+28>>2]|0)|0;k=f+32|0;wh(E,132,(b[(k&o)>>1]|0)+1+D|0,g,0)|0;k=b[(k&o)>>1]|0;if(k<<16>>16<=-1)break b;if((a[((c[(h&p)+4>>2]|0)+((k<<16>>16)*24|0)&n)+21>>0]|0)!=69)break b;wh(E,39,g,0,0)|0;break b}default:{x=c[(f&p)+20>>2]|0;v=x+4|0;w=c[(v&p)>>2]|0;x=c[(x&p)>>2]|0;y=xs(E)|0;t=c[(f&p)+12>>2]|0;f=(t|0)!=0;if(f){s=m+0|0;r=t+0|0;q=s+48|0;do{c[(s&p)>>2]=c[(r&p)>>2];s=s+4|0;r=r+4|0}while((s|0)<(q|0));t=$t(d,t,F)|0;a[(m&n)+38>>0]=a[(m&n)>>0]|0;a[(m&n)>>0]=-97;c[(m&p)+28>>2]=t;t=m+4|0;c[(t&p)>>2]=c[(t&p)>>2]&-4097;a[(D&n)>>0]=79;c[(D&p)+12>>2]=m;c[(F&p)>>2]=0;t=D}else t=0;u=x+-1|0;if((u|0)>0){h=d+100|0;q=D+16|0;m=E+24|0;l=E+32|0;k=0;s=t;while(1){c[(h&p)>>2]=(c[(h&p)>>2]|0)+1;t=c[(w+(k*20|0)&p)>>2]|0;if(f){c[(q&p)>>2]=t;t=s}D=xs(E)|0;gt(d,t,D,16);Rq(d,c[(w+((k|1)*20|0)&p)>>2]|0,g);wh(E,16,0,y,0)|0;bu(d);s=c[(m&p)>>2]|0;r=~D;if((D|0)<0?(z=c[(s&p)+112>>2]|0,(z|0)!=0):0)c[(z+(r<<2)&p)>>2]=c[(l&p)>>2];c[(s&p)+88>>2]=(c[(l&p)>>2]|0)+-1;k=k+2|0;if((k|0)>=(u|0))break;else s=t}}if(!(x&1))wh(E,28,0,g,0)|0;else{D=d+100|0;c[(D&p)>>2]=(c[(D&p)>>2]|0)+1;Rq(d,c[((c[(v&p)>>2]|0)+(u*20|0)&p)>>2]|0,g);bu(d)}l=c[(E&p)+24>>2]|0;k=~y;if((y|0)<0?(A=c[(l&p)+112>>2]|0,(A|0)!=0):0)c[(A+(k<<2)&p)>>2]=c[(E&p)+32>>2];c[(l&p)+88>>2]=(c[(E&p)+32>>2]|0)+-1;break b}}while(0);h=c[(f&p)+28>>2]|0;do if((h|0)<0){h=c[(d&p)+92>>2]|0;if((h|0)>0){g=(b[(f&o)+32>>1]|0)+h|0;break b}else{h=c[(d&p)+96>>2]|0;break}}while(0);g=ct(d,c[(f&p)+44>>2]|0,b[(f&o)+32>>1]|0,h,g,a[(f&n)+38>>0]|0)|0}while(0);if((H|0)==16)wh(E,28,0,g,0)|0;_r(d,c[(F&p)>>2]|0);_r(d,c[(G&p)>>2]|0)}while(0);i=I;return g|0}function js(a,b){a=a|0;b=b|0;var d=0;d=Oq(a)|0;gs(a,b,1,1,(b|0)==1?13184:13208);xh(d,wh(d,55,0,1,b)|0,5,-14);b=a+68|0;if(!(c[(b&p)>>2]|0))c[(b&p)>>2]=1;return}function ks(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0;h=f+48|0;if((e[(h&o)>>1]|0|0)<(g|0)){i=g*7|0;d=mh(d,i,((i|0)<0)<<31>>31)|0;if(!d)d=7;else{fw(d|0,0,i|0)|0;j=f+32|0;kw(d|0,c[(j&p)>>2]|0,(e[(h&o)>>1]|0)<<2|0)|0;c[(j&p)>>2]=d;j=d+(g<<2)|0;i=f+4|0;kw(j|0,c[(i&p)>>2]|0,(e[(h&o)>>1]|0)<<1|0)|0;c[(i&p)>>2]=j;i=d+(g*6|0)|0;d=f+28|0;kw(i|0,c[(d&p)>>2]|0,e[(h&o)>>1]|0|0)|0;c[(d&p)>>2]=i;b[(h&o)>>1]=g;d=f+51|0;a[(d&n)>>0]=a[(d&n)>>0]|16;d=0}}else d=0;return d|0}function ls(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();k=r;q=r+4|0;do if(!d)f=0;else{l=c[(a&p)>>2]|0;n=d+24|0;h=l+460|0;g=(c[(h&p)>>2]|0)+(c[(n&p)>>2]|0)|0;f=c[((c[(l&p)>>2]|0)&p)+100>>2]|0;if((f|0)<(g|0)){c[(k&p)>>2]=f;th(l,27152,k);f=1;break}c[(h&p)>>2]=g;k=a+28|0;h=e[(k&o)>>1]|0;m=h&4098;b[(k&o)>>1]=h&61437;c[(q&p)>>2]=0;c[(q&p)+4>>2]=0;c[(q&p)+8>>2]=0;c[(q&p)+12>>2]=0;c[(q&p)+16>>2]=0;c[(q&p)+20>>2]=0;c[(q&p)>>2]=82;c[(q&p)+4>>2]=83;h=q+12|0;c[(h&p)>>2]=l;c[(q&p)+24>>2]=a;rs(q,d)|0;q=(c[(a&p)>>2]|0)+460|0;c[(q&p)>>2]=(c[(q&p)>>2]|0)-(c[(n&p)>>2]|0);if(!((c[(a&p)+24>>2]|0)<=0?(c[((c[(h&p)>>2]|0)&p)+64>>2]|0)<=0:0)){q=d+4|0;c[(q&p)>>2]=c[(q&p)>>2]|8}h=b[(k&o)>>1]|0;g=d+4|0;f=c[(g&p)>>2]|0;if(h&2){f=f|2;c[(g&p)>>2]=f}b[(k&o)>>1]=h&65535|m;f=f>>>3&1}while(0);i=r;return f|0}function ms(a){a=a|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=c[((c[(a&p)+12>>2]|0)&p)+4>>2]|0;f=b[(a&o)+48>>1]|0;if(!(f<<16>>16)){e=0;f=0}else{j=c[(a&p)+4>>2]|0;g=f&65535;h=0;e=0;do{f=b[(j+(h<<1)&o)>>1]|0;if(f<<16>>16<0)f=1;else f=d[(i+((f<<16>>16)*24|0)&n)+22>>0]|0;e=f+e|0;h=h+1|0}while((h|0)<(g|0));e=e<<2;f=0}b[(a&o)+44>>1]=fs(e,f)|0;return}function ns(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;j=c[(d&p)>>2]|0;g=j+24|0;i=c[(g&p)>>2]|0;c[(g&p)>>2]=i&-97|64;Ds(d,e,0);if(!(c[(d&p)+64>>2]|0)){while(1){f=c[(e&p)+52>>2]|0;if(!f){h=e;break}else e=f}c[(g&p)>>2]=i;e=mh(j,76,0)|0;if(e){f=e+0|0;g=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(e&o)+40>>1]=1;c[(e&p)>>2]=0;b[(e&o)+28>>1]=200;iu(d,c[(h&p)>>2]|0,e+38|0,e+4|0);ju(d,e,h);b[(e&o)+36>>1]=-1;if(a[(j&n)+65>>0]|0){kg(j,e);e=0}}else e=0}else e=0;return e|0}function os(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[(d&p)>>2]|0;g=a[(e&n)>>0]|0;a:do if(!(g<<24>>24)){i=0;h=0}else{i=g;j=0;while(1){h=j+1|0;if(!(i<<24>>24==95?1:(a[(i&255&n)+10368>>0]&6)!=0)){h=j;break a}i=a[(e+h&n)>>0]|0;if(!(i<<24>>24)){i=0;break}else j=h}}while(0);if((((g&255)+-48|0)>>>0>=10?(fi(e,h)|0)==27:0)?!((h|0)==0|i<<24>>24!=0):0)k=0;else{a[(b+f&n)>>0]=34;k=1;g=a[(e&n)>>0]|0;f=f+1|0}if(g<<24>>24){h=e;j=0;do{i=f+1|0;a[(b+f&n)>>0]=g;if((a[(h&n)>>0]|0)==34){a[(b+i&n)>>0]=34;f=f+2|0}else f=i;j=j+1|0;h=e+j|0;g=a[(h&n)>>0]|0}while(g<<24>>24!=0)}if(k){a[(b+f&n)>>0]=34;f=f+1|0}a[(b+f&n)>>0]=0;c[(d&p)>>2]=f;return}function ps(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=b+20|0;g=a[(f&n)>>0]|0;if(g<<24>>24==2?(c[(e&p)+4>>2]&1|0)!=0:0){a[(f&n)>>0]=0;f=2}else h=4;a:do if((h|0)==4)switch(d[(e&n)>>0]|0|0){case 153:{if((g&255)>3){f=0;break a}if(c[(e&p)+4>>2]&524288){f=0;break a}a[(f&n)>>0]=0;f=2;break a}case 135:if(g<<24>>24==4){a[(f&n)>>0]=0;f=2;break a}else if(g<<24>>24==5){a[(e&n)>>0]=101;f=0;break a}else{f=0;break a}case 156:case 155:case 154:case 27:{if(g<<24>>24==3?(c[(e&p)+28>>2]|0)==(c[(b&p)+24>>2]|0):0){f=0;break a}a[(f&n)>>0]=0;f=2;break a}default:{f=0;break a}}while(0);return f|0}function qs(b,c){b=b|0;c=c|0;a[(b&n)+20>>0]=0;return 2}function rs(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!b)b=0;else{d=rc[c[(a&p)>>2]&127](a,b)|0;do if((d|0)==0?(e=b+4|0,(c[(e&p)>>2]&16384|0)==0):0){if(rs(a,c[(b&p)+12>>2]|0)|0){b=2;break a}if(rs(a,c[(b&p)+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(c[(e&p)>>2]&2048))if(!(lu(a,c[(b&p)>>2]|0)|0))break;else{b=2;break a}else if(!(ku(a,c[(b&p)>>2]|0)|0))break;else{b=2;break a}}while(0);b=d&2}while(0);return b|0}function ss(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;do if(e)if(!f)g=e;else{if((mu(e)|0)==0?(mu(f)|0)==0:0){g=mh(d,48,0)|0;if(g){h=g+0|0;i=h+48|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(g&n)>>0]=72;b[(g&o)+34>>1]=-1;c[(g&p)+24>>2]=1}ts(d,g,e,f);break}Gk(d,e);Gk(d,f);g=nr(d,132,20616,0)|0}else g=f;while(0);return g|0}function ts(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if(!b){Gk(a,d);Gk(a,e)}else{if(e){c[(b&p)+16>>2]=e;a=b+4|0;c[(a&p)>>2]=c[(a&p)>>2]|c[(e&p)+4>>2]&2097408}if(d){c[(b&p)+12>>2]=d;a=b+4|0;c[(a&p)>>2]=c[(a&p)>>2]|c[(d&p)+4>>2]&2097408}It(b)}return}function us(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=d<<16>>16;j=(h<<2)+63&-8;k=h<<1;l=k+2|0;i=(h+7+k+l&-8)+j|0;g=i+e|0;e=mh(a,g,((g|0)<0)<<31>>31)|0;if(e){fw(e|0,0,g|0)|0;c[(e&p)+32>>2]=e+56;c[(e&p)+8>>2]=e+j;g=j+l|0;c[(e&p)+4>>2]=e+g;c[(e&p)+28>>2]=e+(g+k);b[(e&o)+48>>1]=d;b[(e&o)+46>>1]=h+65535;c[(f&p)>>2]=e+i}return e|0}function vs(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();w=C;s=c[(d&p)+12>>2]|0;r=b+68|0;z=c[(r&p)>>2]|0;B=z+1|0;c[(r&p)>>2]=z+2;q=c[(b&p)>>2]|0;l=c[(d&p)+24>>2]|0;a:do if(l){h=c[(q&p)+20>>2]|0;if((h|0)>0){g=c[(q&p)+16>>2]|0;m=0;while(1){k=m+1|0;if((c[(g+(m<<4)&p)+12>>2]|0)==(l|0)){k=m;break a}if((k|0)<(h|0))m=k;else break}}else k=0}else k=-1e6;while(0);if((Sq(b,27,c[(d&p)>>2]|0,0,c[((c[(q&p)+16>>2]|0)+(k<<4)&p)>>2]|0)|0)==0?(gs(b,k,c[(s&p)+32>>2]|0,1,c[(s&p)>>2]|0),A=Oq(b)|0,(A|0)!=0):0){if((f|0)>-1)t=f;else t=c[(d&p)+40>>2]|0;x=hs(b,d)|0;y=c[(r&p)>>2]|0;c[(r&p)>>2]=y+1;v=d+46|0;h=e[(v&o)>>1]|0;if(x)c[(x&p)>>2]=(c[(x&p)>>2]|0)+1;xh(A,wh(A,58,y,0,h)|0,x,-6);Qq(b,z,k,s,54);q=wh(A,108,z,0,0)|0;h=b+19|0;g=a[(h&n)>>0]|0;if(!(g<<24>>24)){s=b+72|0;u=(c[(s&p)>>2]|0)+1|0;c[(s&p)>>2]=u}else{u=g+-1<<24>>24;a[(h&n)>>0]=u;u=c[(b+((u&255)<<2)&p)+24>>2]|0}Pt(b,d,z,u,0,w,0,0)|0;wh(A,109,y,u,0)|0;Qt(b,c[(w&p)>>2]|0);wh(A,9,z,q+1|0,0)|0;s=A+32|0;m=c[(s&p)>>2]|0;if(m>>>0>q>>>0)c[((c[(A&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;l=A+24|0;c[((c[(l&p)>>2]|0)&p)+88>>2]=m+-1;if((f|0)<0)wh(A,118,t,k,0)|0;xh(A,wh(A,55,B,t,k)|0,x,-6);r=A+4|0;h=c[(r&p)>>2]|0;if(h)a[(h+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(f>>31)+4&252|1;q=wh(A,106,y,0,0)|0;h=c[(s&p)>>2]|0;if((a[(d&n)+50>>0]|0)!=0&(x|0)!=0){m=h+3|0;wh(A,16,0,m,0)|0;h=c[(s&p)>>2]|0;t=e[(v&o)>>1]|0;xh(A,wh(A,99,y,m,u)|0,t,-14);nu(b,2,d)}wh(A,100,y,u,B)|0;wh(A,110,B,u,1)|0;g=c[(r&p)>>2]|0;if(g)a[(g+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;_r(b,u);wh(A,5,y,h,0)|0;g=c[(s&p)>>2]|0;if(g>>>0>q>>>0)c[((c[(r&p)>>2]|0)+(q*20|0)&p)+8>>2]=g;c[((c[(l&p)>>2]|0)&p)+88>>2]=g+-1;wh(A,61,z,0,0)|0;wh(A,61,B,0,0)|0;wh(A,61,y,0,0)|0}i=C;return}function ws(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();t=u;s=c[(e&p)>>2]|0;if(!g){g=Yn(s,f,h,0)|0;if(!g)q=4;else q=3}else q=3;if((q|0)==3)if(!(c[(g&p)+12>>2]|0))q=4;else q=14;if((q|0)==4){l=f&255;k=s+224|0;if(c[(k&p)>>2]|0){m=kh(s,h)|0;if(m){qc[c[(k&p)>>2]&15](c[(s&p)+232>>2]|0,s,l,m);mg(s,m);q=7}}else q=7;if((q|0)==7?(r=s+228|0,(c[(r&p)>>2]|0)!=0):0){k=mh(s,40,0)|0;if(!k)k=0;else{m=k+0|0;l=m+40|0;do{a[(m&n)>>0]=0;m=m+1|0}while((m|0)<(l|0));b[(k&o)+8>>1]=1;c[(k&p)+32>>2]=s;Xg(k,h,-1,1,0)|0}g=Sg(k,2)|0;if(g)qc[c[(r&p)>>2]&15](c[(s&p)+232>>2]|0,s,d[(s&n)+62>>0]|0,g);Mh(k)}g=Yn(s,f,h,0)|0;if(!g)q=19;else q=14}a:do if((q|0)==14)if(!(c[(g&p)+12>>2]|0)){l=c[(g&p)>>2]|0;m=0;while(1){k=Yn(s,a[(m&n)+26816>>0]|0,l,0)|0;m=m+1|0;if(c[(k&p)+12>>2]|0)break;if((m|0)>=3){q=19;break a}}c[(g&p)>>2]=c[(k&p)>>2];c[(g&p)+4>>2]=c[(k&p)+4>>2];c[(g&p)+8>>2]=c[(k&p)+8>>2];c[(g&p)+12>>2]=c[(k&p)+12>>2];c[(g&p)+16>>2]=0}while(0);if((q|0)==19){c[(t&p)>>2]=h;th(e,26784,t);g=0}i=u;return g|0}function xs(a){a=a|0;var b=0,d=0;a=c[(a&p)+24>>2]|0;d=a+108|0;b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;if(!(b+-1&b)){d=a+112|0;a=Wl(c[(a&p)>>2]|0,c[(d&p)>>2]|0,b<<3|4,0)|0;c[(d&p)>>2]=a}else a=c[(a&p)+112>>2]|0;if(a)c[(a+(b<<2)&p)>>2]=-1;return ~b|0}function ys(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;if(e){g=c[(e&p)>>2]|0;if((g|0)>0){h=(g*72|0)+8|0;g=h;h=((h|0)<0)<<31>>31}else{g=80;h=0}g=mh(d,g,h)|0;if(g){h=c[(e&p)>>2]|0;c[(g&p)+4>>2]=h;c[(g&p)>>2]=h;if((c[(e&p)>>2]|0)>0){h=g+8|0;j=0;do{c[(h+(j*72|0)&p)>>2]=c[(e+(j*72|0)&p)+8>>2];c[(h+(j*72|0)&p)+4>>2]=kh(d,c[(e+(j*72|0)&p)+12>>2]|0)|0;c[(h+(j*72|0)&p)+8>>2]=kh(d,c[(e+(j*72|0)&p)+16>>2]|0)|0;c[(h+(j*72|0)&p)+12>>2]=kh(d,c[(e+(j*72|0)&p)+20>>2]|0)|0;a[(h+(j*72|0)&n)+36>>0]=a[(e+(j*72|0)&n)+44>>0]|0;c[(h+(j*72|0)&p)+40>>2]=c[(e+(j*72|0)&p)+48>>2];c[(h+(j*72|0)&p)+24>>2]=c[(e+(j*72|0)&p)+32>>2];c[(h+(j*72|0)&p)+28>>2]=c[(e+(j*72|0)&p)+36>>2];k=e+(j*72|0)+45|0;i=h+(j*72|0)+37|0;l=a[(i&n)>>0]&-3|a[(k&n)>>0]&2;a[(i&n)>>0]=l;l=l&-5|a[(k&n)>>0]&4;a[(i&n)>>0]=l;a[(i&n)>>0]=l&-9|a[(k&n)>>0]&8;c[(h+(j*72|0)&p)+64>>2]=kh(d,c[(e+(j*72|0)&p)+72>>2]|0)|0;a[(i&n)>>0]=a[(i&n)>>0]&-2|a[(k&n)>>0]&1;c[(h+(j*72|0)&p)+68>>2]=c[(e+(j*72|0)&p)+76>>2];i=c[(e+(j*72|0)&p)+24>>2]|0;c[(h+(j*72|0)&p)+16>>2]=i;if(i){i=i+40|0;b[(i&o)>>1]=(b[(i&o)>>1]|0)+1<<16>>16}c[(h+(j*72|0)&p)+20>>2]=gr(d,c[(e+(j*72|0)&p)+28>>2]|0,f)|0;c[(h+(j*72|0)&p)+44>>2]=Mr(d,c[(e+(j*72|0)&p)+52>>2]|0,f,0)|0;c[(h+(j*72|0)&p)+48>>2]=Nr(d,c[(e+(j*72|0)&p)+56>>2]|0)|0;l=e+(j*72|0)+64|0;k=c[(l&p)+4>>2]|0;i=h+(j*72|0)+56|0;c[(i&p)>>2]=c[(l&p)>>2];c[(i&p)+4>>2]=k;j=j+1|0}while((j|0)<(c[(e&p)>>2]|0))}}else g=0}else g=0;return g|0}function zs(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;i=Oq(b)|0;if((e|0)==2){k=c[(b&p)+408>>2]|0;a[(((k|0)==0?b:k)&n)+21>>0]=1}xh(i,wh(i,24,d,e,0)|0,f,g<<24>>24);if(h<<24>>24!=0?(j=c[(i&p)+4>>2]|0,(j|0)!=0):0)a[(j+(((c[(i&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=h;return}function As(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)&p)+28>>2]|0;do if(!(a[(b&n)+438>>0]|0)){h=c[(d&p)+68>>2]|0;if((e|0)!=(h|0)?(f=c[(e&p)+48>>2]|0,(f|0)!=0):0){g=d+64|0;e=0;while(1){b=c[(f&p)+8>>2]|0;if((c[(b&p)+24>>2]|0)==(h|0)?(dd(c[(b&p)+4>>2]|0,c[(d&p)>>2]|0)|0)==0:0){if(!e)e=c[(g&p)>>2]|0;c[(b&p)+32>>2]=e}else b=e;f=c[(f&p)>>2]|0;if(!f)break;else e=b}if(b)break}b=c[(d&p)+64>>2]|0}else b=0;while(0);return b|0}function Bs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=c[(b&p)+32>>2]|0;k=b+8|0;i=b+68|0;f=0;while(1){g=(f|0)==0;b=g|(j|0)<(f|0)?j:0;d=c[(k&p)>>2]|0;if(!d)h=b;else{do{e=c[(d&p)+40>>2]|0;b=(g|(e|0)<(f|0))&(e|0)>(b|0)?e:b;d=c[(d&p)+20>>2]|0}while((d|0)!=0);h=b}if(!h)break;b=c[(a&p)>>2]|0;f=c[(i&p)>>2]|0;a:do if(f){g=c[(b&p)+20>>2]|0;if((g|0)>0){d=c[(b&p)+16>>2]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<4)&p)+12>>2]|0)==(f|0)){b=e;break a}if((b|0)<(g|0))e=b;else break}}else b=0}else b=-1e6;while(0);Er(a,h,b);f=h}return}function Cs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;a:do if((b|0)!=0?(d=c[(b&p)>>2]|0,(d|0)>0):0){h=a+68|0;f=0;g=b+8|0;while(1){e=g+40|0;if((c[(e&p)>>2]|0)>-1)break a;i=c[(h&p)>>2]|0;c[(h&p)>>2]=i+1;c[(e&p)>>2]=i;e=c[(g&p)+20>>2]|0;if(e){Cs(a,c[(e&p)+32>>2]|0);d=c[(b&p)>>2]|0}f=f+1|0;if((f|0)>=(d|0))break;else g=g+72|0}}while(0);return}function Ds(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))fa();m=q;if(((e|0)!=0?(l=(c[(d&p)>>2]|0)+65|0,(a[(l&n)>>0]|0)==0):0)?(h=e+6|0,g=b[(h&o)>>1]|0,(g&32)==0):0){c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)>>2]=84;c[(m&p)+12>>2]=d;k=m+4|0;if(a[(d&n)+22>>0]|0){c[(k&p)>>2]=85;ku(m,e)|0;g=b[(h&o)>>1]|0}c[(k&p)>>2]=86;if(!(g&256))c[(m&p)+8>>2]=9;ku(m,e)|0;g=d+64|0;if((((c[(g&p)>>2]|0)==0?(a[(l&n)>>0]|0)==0:0)?(c[(m&p)>>2]=0,c[(m&p)+4>>2]=0,c[(m&p)+8>>2]=0,c[(m&p)+12>>2]=0,c[(m&p)+16>>2]=0,c[(m&p)+20>>2]=0,c[(m&p)>>2]=82,c[(m&p)+4>>2]=83,c[(m&p)+12>>2]=d,c[(m&p)+24>>2]=f,ku(m,e)|0,(c[(g&p)>>2]|0)==0):0)?(a[(l&n)>>0]|0)==0:0){c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+8>>2]=10;c[(m&p)>>2]=84;c[(m&p)+12>>2]=d;ku(m,e)|0}}i=q;return}function Es(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if(a)do{d=c[(a&p)+36>>2]|0;if((d|0)!=0?(h=c[(d&p)+24>>2]|0,(h|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=h;d=c[(a&p)+44>>2]|0;if((d|0)!=0?(e=c[(d&p)+24>>2]|0,(e|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=e;d=c[(a&p)+60>>2]|0;if((d|0)!=0?(f=c[(d&p)+24>>2]|0,(f|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=f;d=c[(a&p)+64>>2]|0;if((d|0)!=0?(g=c[(d&p)+24>>2]|0,(g|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=g;tu(c[(a&p)>>2]|0,b);tu(c[(a&p)+40>>2]|0,b);tu(c[(a&p)+48>>2]|0,b);a=c[(a&p)+52>>2]|0}while((a|0)!=0);return}function Fs(a,b,d,f){a=a|0;b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;g=c[(b&p)>>2]|0;h=g+d|0;if(h>>>0>(c[(b&p)+4>>2]|0)>>>0){i=ro(a,b,(h*72|0)+8|0,0)|0;if(i){do if(!a)b=lc[c[8792>>2]&127](i)|0;else{if((c[(a&p)+276>>2]|0)>>>0<=i>>>0?(c[(a&p)+280>>2]|0)>>>0>i>>>0:0){b=e[(a&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](i)|0}while(0);c[(i&p)+4>>2]=(((b+-80|0)>>>0)/72|0)+1;b=i;g=c[(i&p)>>2]|0;j=10}}else j=10;if((j|0)==10){if((g|0)>(f|0)){do{g=g+-1|0;h=b+((g+d|0)*72|0)+8|0;a=b+(g*72|0)+8|0;i=h+72|0;do{c[(h&p)>>2]=c[(a&p)>>2];h=h+4|0;a=a+4|0}while((h|0)<(i|0))}while((g|0)>(f|0));g=c[(b&p)>>2]|0}c[(b&p)>>2]=g+d;fw(b+(f*72|0)+8|0,0,d*72|0)|0;g=f+d|0;if((d|0)>0)do{c[(b+(f*72|0)&p)+48>>2]=-1;f=f+1|0}while((f|0)<(g|0))}return b|0}function Gs(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){f=b+4|0;g=c[(f&p)>>2]|0;h=0;do{i=Hs(a,c[(g+(h*20|0)&p)>>2]|0,d,e)|0;g=c[(f&p)>>2]|0;c[(g+(h*20|0)&p)>>2]=i;h=h+1|0}while((h|0)<(c[(b&p)>>2]|0))}return}function Hs(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0;do if(e){if((a[(e&n)>>0]|0)==-102?(c[(e&p)+28>>2]|0)==(f|0):0){h=b[(e&o)+32>>1]|0;if(h<<16>>16<0){a[(e&n)>>0]=101;break}else{h=Mr(d,c[((c[(g&p)+4>>2]|0)+((h<<16>>16)*20|0)&p)>>2]|0,0,0)|0;Gk(d,e);e=h;break}}h=e+12|0;c[(h&p)>>2]=Hs(d,c[(h&p)>>2]|0,f,g)|0;h=e+16|0;c[(h&p)>>2]=Hs(d,c[(h&p)>>2]|0,f,g)|0;h=e+20|0;if(!(c[(e&p)+4>>2]&2048)){Gs(d,c[(h&p)>>2]|0,f,g);break}else{uu(d,c[(h&p)>>2]|0,f,g);break}}else e=0;while(0);return e|0}function Is(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(c[(b&p)>>2]&p)>>2]|0;e=b;g=1;while(1){b=c[(e&p)+52>>2]|0;if(!b){f=5;break}if((c[(c[(b&p)>>2]&p)>>2]|0)==(f|0)){e=b;g=g+1|0}else{f=3;break}}a:do if((f|0)==3){Js(a,b);b=1}else if((f|0)==5)if(!e)b=0;else{h=((g|0)<0)<<31>>31;f=0;while(1){i=e+52|0;c[(i&p)>>2]=0;b=ir(a,e,d)|0;c[(i&p)>>2]=f;if(b)break a;b=e+24|0;c[(b&p)>>2]=g;c[(b&p)+4>>2]=h;b=c[(e&p)+56>>2]|0;if(!b){b=0;break a}e=b;f=c[(b&p)+52>>2]|0}}while(0);return b|0}function Js(a,e){a=a|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(!(b[(e&o)+6>>1]&128)){e=d[(e&n)+4>>0]|0;if((e|0)==118)e=35336;else if((e|0)==116)e=35320;else if((e|0)==117)e=35352;else e=35360;c[(f&p)>>2]=e;th(a,35232,f)}else th(a,35184,f);i=g;return}function Ks(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;H=i;i=i+32|0;if((i|0)>=(j|0))fa();y=H;k=c[(f&p)+32>>2]|0;q=c[(c[(f&p)>>2]&p)>>2]|0;v=c[(d&p)+8>>2]|0;w=f+52|0;x=c[(w&p)>>2]|0;if(!(Sq(d,33,0,0,0)|0)){z=xs(v)|0;Os(d,f,z);A=f+60|0;B=c[(A&p)>>2]|0;C=f+64|0;D=c[(C&p)>>2]|0;E=f+8|0;s=c[(E&p)>>2]|0;F=f+12|0;t=c[(F&p)>>2]|0;c[(C&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(E&p)>>2]=0;E=f+48|0;F=c[(E&p)>>2]|0;l=c[(k&p)>>2]|0;a:do if((l|0)>0){m=0;while(1){if(a[(k+(m*72|0)&n)+45>>0]&8)break;m=m+1|0;if((m|0)>=(l|0)){r=0;break a}}r=c[(k+(m*72|0)&p)+48>>2]|0}else r=0;while(0);m=d+68|0;k=c[(m&p)>>2]|0;l=k+1|0;c[(m&p)>>2]=l;h=(F|0)!=0;if((a[(f&n)+4>>0]|0)==115){c[(m&p)>>2]=k+2;m=h?8:6}else{m=h?7:5;l=0}a[(y&n)>>0]=m;c[(y&p)+4>>2]=k;a[(y&n)+1>>0]=0;c[(y&p)+8>>2]=0;c[(y&p)+12>>2]=0;I=d+72|0;m=(c[(I&p)>>2]|0)+1|0;c[(I&p)>>2]=m;wh(v,60,r,m,q)|0;if(h){q=vu(d,f)|0;xh(v,wh(v,57,k,(c[(F&p)>>2]|0)+2|0,0)|0,q,-6);c[(y&p)+16>>2]=F}else wh(v,57,k,q,0)|0;if(l){c[(f&p)+16>>2]=wh(v,57,l,0,0)|0;l=f+6|0;b[(l&o)>>1]=e[(l&o)>>1]|8}c[(E&p)>>2]=0;q=x+56|0;c[(q&p)>>2]=0;l=ir(d,x,y)|0;c[(q&p)>>2]=f;if(!l){q=wh(v,108,k,z,0)|0;wh(v,104,r,0,0)|0;if(h)wh(v,47,k,(c[(F&p)>>2]|0)+1|0,m)|0;else wh(v,102,k,m,0)|0;wh(v,95,k,0,0)|0;l=xs(v)|0;it(v,t,l);Ps(d,f,c[(f&p)>>2]|0,r,0,0,g,l,z);if(s)wh(v,140,s,z,0)|0;h=v+24|0;m=c[(h&p)>>2]|0;k=~l;if((l|0)<0?(u=c[(m&p)+112>>2]|0,(u|0)!=0):0)c[(u+(k<<2)&p)>>2]=c[(v&p)+32>>2];l=v+32|0;c[(m&p)+88>>2]=(c[(l&p)>>2]|0)+-1;c[(w&p)>>2]=0;ir(d,f,y)|0;c[(w&p)>>2]=x;wh(v,16,0,q,0)|0;h=c[(h&p)>>2]|0;k=~z;if((z|0)<0?(G=c[(h&p)+112>>2]|0,(G|0)!=0):0)c[(G+(k<<2)&p)>>2]=c[(l&p)>>2];c[(h&p)+88>>2]=(c[(l&p)>>2]|0)+-1}Nk(c[(d&p)>>2]|0,c[(E&p)>>2]|0);c[(E&p)>>2]=F;c[(A&p)>>2]=B;c[(C&p)>>2]=D}i=H;return}function Ls(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;$=i;i=i+48|0;if((i|0)>=(j|0))fa();u=$+40|0;N=$+20|0;O=$;X=c[(f&p)>>2]|0;U=c[(f&p)+8>>2]|0;W=xs(U)|0;T=xs(U)|0;Y=g+4|0;P=a[(Y&n)>>0]|0;Z=g+52|0;_=c[(Z&p)>>2]|0;w=g+48|0;m=c[(w&p)>>2]|0;l=c[(m&p)>>2]|0;R=P<<24>>24==116;a:do if(!R?(s=X+65|0,(a[(s&n)>>0]|0)==0):0){q=u+4|0;t=1;while(1){if((t|0)>(c[(c[(g&p)>>2]&p)>>2]|0)){Q=l;v=14;break a}b:do if((l|0)>0){k=0;r=c[(m&p)+4>>2]|0;while(1){if((e[(r&o)+16>>1]|0)==(t|0))break b;k=k+1|0;if((k|0)<(l|0))r=r+20|0;else break}}else k=0;while(0);if((k|0)==(l|0)){c[(u&p)>>2]=0;c[(q&p)>>2]=0;k=nr(X,132,u,0)|0;if(!k){k=7;break a}J=k+4|0;c[(J&p)>>2]=c[(J&p)>>2]|1024;c[(k&p)+8>>2]=t;k=lr(f,m,k)|0;if(!k)k=0;else{b[((c[(k&p)+4>>2]|0)+(l*20|0)&o)+16>>1]=t;l=l+1|0}}else k=m;if(!(a[(s&n)>>0]|0)){t=t+1|0;m=k}else{Q=l;m=k;v=14;break}}}else{Q=l;v=14}while(0);if((v|0)==14){M=mh(X,Q<<2,0)|0;if(!M)K=0;else{if((Q|0)>0){l=0;k=c[(m&p)+4>>2]|0;while(1){c[(M+(l<<2)&p)>>2]=(e[(k&o)+16>>1]|0)+-1;l=l+1|0;if((l|0)==(Q|0))break;else k=k+20|0}}K=vu(f,g)|0}c[(w&p)>>2]=m;s=_+48|0;c[(s&p)>>2]=Pr(c[(f&p)>>2]|0,m,0)|0;if(!R){m=c[(c[(g&p)>>2]&p)>>2]|0;l=f+72|0;J=c[(l&p)>>2]|0;r=J+1|0;c[(l&p)>>2]=m+1+J;wh(U,25,0,r,0)|0;l=Rs(X,m,1)|0;if(l)if((m|0)>0){k=l+16|0;q=0;do{c[(l+(q<<2)&p)+20>>2]=Ss(f,g,q)|0;a[((c[(k&p)>>2]|0)+q&n)>>0]=0;q=q+1|0}while((q|0)!=(m|0));x=l}else x=l;else x=0}else{x=0;r=0}c[(Z&p)>>2]=0;L=_+56|0;c[(L&p)>>2]=0;wu(f,g,c[(w&p)>>2]|0,26880)|0;if(!(c[(_&p)+52>>2]|0))wu(f,_,c[(s&p)>>2]|0,26880)|0;Os(f,g,W);q=g+8|0;l=c[(q&p)>>2]|0;s=f+72|0;if((l|0)!=0&R){v=c[(s&p)>>2]|0;t=v+1|0;v=v+2|0;c[(s&p)>>2]=v;J=c[(g&p)+12>>2]|0;wh(U,33,(J|0)==0?l:J+1|0,t,0)|0;wh(U,33,t,v,0)|0}else{t=0;v=0}A=g+60|0;Gk(X,c[(A&p)>>2]|0);c[(A&p)>>2]=0;A=g+64|0;Gk(X,c[(A&p)>>2]|0);c[(A&p)>>2]=0;A=c[(s&p)>>2]|0;B=A+1|0;C=A+2|0;y=A+3|0;A=A+4|0;c[(s&p)>>2]=A;a[(N&n)>>0]=13;c[(N&p)+4>>2]=B;a[(N&n)+1>>0]=0;E=N+8|0;c[(E&p)>>2]=0;c[(N&p)+12>>2]=0;a[(O&n)>>0]=13;c[(O&p)+4>>2]=C;a[(O&n)+1>>0]=0;F=O+8|0;c[(F&p)>>2]=0;c[(O&p)+12>>2]=0;I=U+32|0;u=wh(U,20,B,0,(c[(I&p)>>2]|0)+1|0)|0;c[(_&p)+8>>2]=t;s=f+468|0;J=c[(s&p)>>2]|0;ir(f,_,N)|0;wh(U,21,B,0,0)|0;t=c[(I&p)>>2]|0;if(t>>>0>u>>>0)c[((c[(U&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;D=U+24|0;c[((c[(D&p)>>2]|0)&p)+88>>2]=t+-1;z=wh(U,20,C,0,t+1|0)|0;k=c[(q&p)>>2]|0;m=g+12|0;w=c[(m&p)>>2]|0;c[(q&p)>>2]=v;c[(m&p)>>2]=0;H=c[(s&p)>>2]|0;ir(f,g,O)|0;c[(q&p)>>2]=k;c[(m&p)>>2]=w;wh(U,21,C,0,0)|0;m=xu(f,g,N,h,y,r,x,W)|0;w=(P+-115&255)<2;if(w)k=xu(f,g,O,h,A,r,x,W)|0;else k=0;if((x|0)!=0?(l=(c[(x&p)>>2]|0)+-1|0,c[(x&p)>>2]=l,(l|0)==0):0)Wc(x);r=P<<24>>24==118;if((P+-117&255)<2){v=W;l=W}else{v=wh(U,17,A,k,0)|0;l=wh(U,22,C,W,0)|0;wh(U,16,0,v,0)|0;q=_+24|0;x=g+24|0;s=x;q=jw(c[(s&p)>>2]|0,c[(s&p)+4>>2]|0,c[(q&p)>>2]|0,c[(q&p)+4>>2]|0)|0;c[(x&p)>>2]=q;c[(x&p)+4>>2]=G}if(r){u=g+24|0;x=u;q=c[(x&p)+4>>2]|0;s=_+24|0;t=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;if(q>>>0>s>>>0|((q|0)==(s|0)?(c[(x&p)>>2]|0)>>>0>t>>>0:0)){q=u;c[(q&p)>>2]=t;c[(q&p)+4>>2]=s;q=v}else q=v}else{q=wh(U,17,y,m,0)|0;wh(U,22,B,W,0)|0;wh(U,16,0,q,0)|0}u=wh(U,17,y,m,0)|0;wh(U,22,B,v,0)|0;wh(U,16,0,T,0)|0;do if(!R)if(r){v=u;u=u+1|0;break}else{v=wh(U,22,B,v,0)|0;wh(U,16,0,T,0)|0;break}else v=u;while(0);t=c[(I&p)>>2]|0;if(w)wh(U,17,A,k,0)|0;wh(U,22,C,q,0)|0;wh(U,16,0,T,0)|0;s=c[(I&p)>>2]|0;if(s>>>0>z>>>0)c[((c[(U&p)+4>>2]|0)+(z*20|0)&p)+8>>2]=s;c[((c[(D&p)>>2]|0)&p)+88>>2]=s+-1;wh(U,22,B,l,0)|0;wh(U,22,C,q,0)|0;q=c[(D&p)>>2]|0;m=~T;if((T|0)<0?(S=c[(q&p)+112>>2]|0,(S|0)!=0):0)c[(S+(m<<2)&p)>>2]=c[(I&p)>>2];c[(q&p)+88>>2]=(c[(I&p)>>2]|0)+-1;xh(U,wh(U,41,0,0,0)|0,M,-15);xh(U,wh(U,42,c[(E&p)>>2]|0,c[(F&p)>>2]|0,Q)|0,K,-6);l=c[(U&p)+4>>2]|0;if(l)a[(l+(((c[(I&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;wh(U,43,u,v,t)|0;l=c[(D&p)>>2]|0;k=~W;if((W|0)<0?(V=c[(l&p)+112>>2]|0,(V|0)!=0):0)c[(V+(k<<2)&p)>>2]=c[(I&p)>>2];c[(l&p)+88>>2]=(c[(I&p)>>2]|0)+-1;if((a[(h&n)>>0]|0)==9){k=_;while(1){l=c[(k&p)+52>>2]|0;if(!l)break;else k=l}Ns(f,0,c[(k&p)>>2]|0)}k=c[(Z&p)>>2]|0;if(k)Mk(X,k,1);c[(Z&p)>>2]=_;c[(L&p)>>2]=g;Qs(f,d[(Y&n)>>0]|0,J,H,0);k=0}i=$;return k|0}function Ms(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;do if(!(c[(a&p)+4>>2]&1024)){e=d[(a&n)>>0]|0;if((e|0)==158){e=Ms(c[(a&p)+12>>2]|0,b)|0;break}else if((e|0)!=157){e=0;break}if(!(Ms(c[(a&p)+12>>2]|0,f)|0))e=0;else{c[(b&p)>>2]=0-(c[(f&p)>>2]|0);e=1}}else{c[(b&p)>>2]=c[(a&p)+8>>2];e=1}while(0);i=g;return e|0}function Ns(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=i;i=i+32|0;if((i|0)>=(j|0))fa();C=D;B=d+8|0;y=c[(B&p)>>2]|0;z=c[(d&p)>>2]|0;if(((a[(d&n)+450>>0]|0)==0?(k=d+16|0,!((a[(k&n)>>0]|0)!=0|(y|0)==0)):0)?(a[(z&n)+65>>0]|0)==0:0){a[(k&n)>>0]=1;k=c[(z&p)+24>>2]|0;x=(k&32|0)==0;iq(y,c[(f&p)>>2]|0);h=c[(f&p)>>2]|0;if((h|0)>0){w=f+4|0;v=(e|0)==0;s=(k&96|0)==0;t=(e|0)!=0;u=0;do{r=c[(w&p)>>2]|0;h=c[(r+(u*20|0)&p)>>2]|0;do if(h){k=c[(r+(u*20|0)&p)+4>>2]|0;if(k){jq(y,u,0,k,-1);break}k=a[(h&n)>>0]|0;if(k<<24>>24==-102){if(v)A=25}else if(!(k<<24>>24==-100&t))A=25;if((A|0)==25){A=0;k=c[(r+(u*20|0)&p)+8>>2]|0;if(!k){c[(C&p)>>2]=u+1;k=uh(z,34880,C)|0}else k=kh(z,k)|0;jq(y,u,0,k,75);break}q=b[(h&o)+32>>1]|0;k=q<<16>>16;m=c[(e&p)>>2]|0;a:do if((m|0)>0){g=c[(h&p)+28>>2]|0;l=0;while(1){h=l+1|0;if((c[(e+(l*72|0)&p)+48>>2]|0)==(g|0)){h=l;break a}if((h|0)<(m|0))l=h;else break}}else h=0;while(0);h=c[(e+(h*72|0)&p)+24>>2]|0;if(q<<16>>16<0)k=b[(h&o)+36>>1]|0;if((k|0)<0)k=20456;else k=c[((c[(h&p)+4>>2]|0)+(k*24|0)&p)>>2]|0;if(s){jq(y,u,0,kh(z,c[(r+(u*20|0)&p)+8>>2]|0)|0,75);break}if(x){jq(y,u,0,k,-1);break}else{c[(C&p)>>2]=c[(h&p)>>2];c[(C&p)+4>>2]=k;jq(y,u,0,uh(z,27824,C)|0,75);break}}while(0);u=u+1|0;h=c[(f&p)>>2]|0}while((u|0)<(h|0))}k=c[(B&p)>>2]|0;c[(C&p)+4>>2]=e;c[(C&p)>>2]=d;if((h|0)>0){g=f+4|0;h=0;do{jq(k,h,1,yu(C,c[((c[(g&p)>>2]|0)+(h*20|0)&p)>>2]|0,0)|0,-1);h=h+1|0}while((h|0)<(c[(f&p)>>2]|0))}}i=D;return}function Os(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();f=o;h=b+8|0;if((c[(h&p)>>2]|0)==0?(at(a),g=b+60|0,(c[(g&p)>>2]|0)!=0):0){l=a+72|0;m=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=m;c[(h&p)>>2]=m;n=Oq(a)|0;do if(Ms(c[(g&p)>>2]|0,f)|0){f=c[(f&p)>>2]|0;wh(n,25,f,m,0)|0;if(!f){wh(n,16,0,d,0)|0;break}if((f|0)>-1?(e=b+24|0,d=e,h=c[(d&p)+4>>2]|0,k=((f|0)<0)<<31>>31,h>>>0>k>>>0|((h|0)==(k|0)?(c[(d&p)>>2]|0)>>>0>f>>>0:0)):0){d=e;c[(d&p)>>2]=f;c[(d&p)+4>>2]=k}}else{Rq(a,c[(g&p)>>2]|0,m);wh(n,38,m,0,0)|0;wh(n,46,m,d,0)|0}while(0);f=c[(b&p)+64>>2]|0;if(f){k=c[(l&p)>>2]|0;d=k+1|0;c[(b&p)+12>>2]=d;c[(l&p)>>2]=k+2;Rq(a,f,d);wh(n,38,d,0,0)|0;f=wh(n,137,d,0,0)|0;wh(n,25,0,d,0)|0;g=n+32|0;e=c[(g&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(n&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=e;h=n+24|0;c[((c[(h&p)>>2]|0)&p)+88>>2]=e+-1;e=k+2|0;wh(n,89,m,d,e)|0;f=wh(n,137,m,0,0)|0;wh(n,25,-1,e,0)|0;e=c[(g&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(n&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=e;c[((c[(h&p)>>2]|0)&p)+88>>2]=e+-1}}i=o;return}function Ps(b,f,g,h,i,j,k,l,m){b=b|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;I=c[(b&p)+8>>2]|0;D=a[(k&n)>>0]|0;x=D&255;z=k+4|0;G=c[(z&p)>>2]|0;if(!j)q=0;else q=d[(j&n)+1>>0]|0;if(!i)H=0;else H=(c[(i&p)>>2]|0)==0?0:i;C=(H|0)!=0;y=(q|0)!=0;if(!(C|y))it(I,c[(f&p)+12>>2]|0,l);E=c[(g&p)>>2]|0;t=k+8|0;i=c[(t&p)>>2]|0;if(i){s=b+72|0;r=c[(s&p)>>2]|0;if((i+E|0)>(r|0)){c[(s&p)>>2]=r+E;F=i;A=0}else{F=i;A=0}}else{if(C){r=((a[(H&n)+24>>0]&1^1)&255)+(c[(c[(H&p)>>2]&p)>>2]|0)|0;F=b+72|0;s=r+(c[(F&p)>>2]|0)|0;c[(F&p)>>2]=s}else{s=c[(b&p)+72>>2]|0;r=0}F=s+1|0;c[(t&p)>>2]=F;c[(b&p)+72>>2]=s+E;A=r}c[(k&p)+12>>2]=E;do if((h|0)>-1){if((E|0)>0){s=0;do{wh(I,47,h,s,s+F|0)|0;s=s+1|0}while((s|0)!=(E|0))}}else{if(D<<24>>24==9)r=1;else if(D<<24>>24==3)break;else r=D<<24>>24==13&1;bt(b,g,F,r)}while(0);if(y){r=d[(j&n)+1>>0]|0;if((r|0)==1)zh(I,c[(j&p)+8>>2]|0);else if((r|0)==2){r=b+72|0;h=c[(r&p)>>2]|0;w=h+1|0;c[(r&p)>>2]=h+E;r=j+8|0;zh(I,c[(r&p)>>2]|0);r=c[(r&p)>>2]|0;if((r|0)<0)r=(c[(I&p)+32>>2]|0)+-1|0;if(!(a[((c[(I&p)>>2]|0)&n)+65>>0]|0))r=(c[(I&p)+4>>2]|0)+(r*20|0)|0;else r=29120;a[(r&n)>>0]=28;c[(r&p)+4>>2]=1;c[(r&p)+8>>2]=w;h=I+32|0;i=(c[(h&p)>>2]|0)+E|0;if((E|0)>0){s=g+4|0;r=E+-1|0;t=I+4|0;v=0;do{y=cu(b,c[((c[(s&p)>>2]|0)+(v*20|0)&p)>>2]|0)|0;j=v+F|0;q=v+w|0;if((v|0)<(r|0))wh(I,78,j,i,q)|0;else wh(I,79,j,l,q)|0;xh(I,-1,y,-4);u=c[(t&p)>>2]|0;if(u)a[(u+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;v=v+1|0}while((v|0)!=(E|0))}else r=E+-1|0;wh(I,33,F,w,r)|0}else zu(b,c[(j&p)+4>>2]|0,l,E,F);if(!H)it(I,c[(f&p)+12>>2]|0,l)}a:do switch(x|0){case 11:{i=k+1|0;a[(i&n)>>0]=Bu(c[(c[(g&p)+4>>2]&p)>>2]|0,a[(i&n)>>0]|0)|0;if(C){Au(b,H,f,F,1,A);break a}j=b+19|0;q=a[(j&n)>>0]|0;if(!(q<<24>>24)){E=b+72|0;j=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=j}else{E=q+-1<<24>>24;a[(j&n)>>0]=E;j=c[(b+((E&255)<<2)&p)+24>>2]|0}xh(I,wh(I,49,F,1,j)|0,i,1);dt(b,F,1);wh(I,110,G,j,0)|0;_r(b,j);B=94;break}case 3:{wh(I,25,1,G,0)|0;B=94;break}case 10:{if(C)Au(b,H,f,F,1,A);else B=95;break}case 2:{wh(I,111,G,F,E)|0;B=94;break}case 12:case 14:case 6:case 5:{s=A+1|0;r=b+60|0;i=c[(r&p)>>2]|0;t=b+56|0;q=c[(t&p)>>2]|0;if((q|0)<(s|0)){B=b+72|0;i=c[(B&p)>>2]|0;c[(B&p)>>2]=i+s;i=i+1|0}else{c[(r&p)>>2]=i+s;c[(t&p)>>2]=q-s}q=i+A|0;wh(I,49,F,E,q)|0;if(D<<24>>24==6){F=G+1|0;xh(I,wh(I,69,F,(c[(I&p)+32>>2]|0)+4|0,i)|0,0,-14);wh(I,110,F,i,0)|0}if(C)Au(b,H,f,q,1,A);else{q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){F=b+72|0;j=(c[(F&p)>>2]|0)+1|0;c[(F&p)>>2]=j}else{j=j+-1<<24>>24;a[(q&n)>>0]=j;j=c[(b+((j&255)<<2)&p)+24>>2]|0}wh(I,74,G,j,0)|0;wh(I,75,G,i,j)|0;q=c[(I&p)+4>>2]|0;if(q)a[(q+(((c[(I&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;_r(b,j)}dt(b,i,s);if((c[(t&p)>>2]|0)<(s|0)){c[(t&p)>>2]=s;c[(r&p)>>2]=i;B=94}else B=94;break}case 1:{q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){D=b+72|0;j=(c[(D&p)>>2]|0)+1|0;c[(D&p)>>2]=j}else{j=j+-1<<24>>24;a[(q&n)>>0]=j;j=c[(b+((j&255)<<2)&p)+24>>2]|0}wh(I,49,F,E,j)|0;wh(I,110,G,j,0)|0;_r(b,j);B=94;break}case 9:case 13:{if(C){Au(b,H,f,F,E,A);break a}if(D<<24>>24==13){wh(I,22,c[(z&p)>>2]|0,0,0)|0;B=95;break a}else{wh(I,35,F,E,0)|0;dt(b,F,E);B=94;break a}}case 7:case 8:{u=c[(k&p)+16>>2]|0;h=c[(u&p)>>2]|0;q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){C=b+72|0;v=(c[(C&p)>>2]|0)+1|0;c[(C&p)>>2]=v}else{v=j+-1<<24>>24;a[(q&n)>>0]=v;v=c[(b+((v&255)<<2)&p)+24>>2]|0}w=h+2|0;x=b+60|0;i=c[(x&p)>>2]|0;y=b+56|0;q=c[(y&p)>>2]|0;if((q|0)<(w|0)){C=b+72|0;i=c[(C&p)>>2]|0;c[(C&p)>>2]=i+w;i=i+1|0}else{c[(x&p)>>2]=i+w;c[(y&p)>>2]=q-w}t=i+h|0;r=t+1|0;if(D<<24>>24==8){q=G+1|0;j=wh(I,69,q,0,F)|0;xh(I,j,E,-14);wh(I,49,F,E,r)|0;wh(I,110,q,r,0)|0;q=c[(I&p)+4>>2]|0;if(!q)s=j;else{a[(q+(((c[(I&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;s=j}}else{wh(I,49,F,E,r)|0;s=0}if((h|0)>0){r=u+4|0;q=F+-1|0;j=0;do{wh(I,34,q+(e[((c[(r&p)>>2]|0)+(j*20|0)&o)+16>>1]|0)|0,j+i|0,0)|0;j=j+1|0}while((j|0)!=(h|0))}wh(I,73,G,t,0)|0;wh(I,49,i,w,v)|0;wh(I,110,G,v,0)|0;if(s){q=c[(I&p)+32>>2]|0;if(q>>>0>s>>>0)c[((c[(I&p)+4>>2]|0)+(s*20|0)&p)+8>>2]=q;c[((c[(I&p)+24>>2]|0)&p)+88>>2]=q+-1}_r(b,v);dt(b,i,w);if((c[(y&p)>>2]|0)<(w|0)){c[(y&p)>>2]=w;c[(x&p)>>2]=i;B=94}else B=94;break}default:B=94}while(0);if((B|0)==94?(H|0)==0:0)B=95;if((B|0)==95?(J=c[(f&p)+8>>2]|0,(J|0)!=0):0)wh(I,140,J,m,0)|0;return}function Qs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;if((a[(b&n)+450>>0]|0)==2){k=c[(b&p)+8>>2]|0;l=c[(b&p)>>2]|0;h=(g|0)!=0?35160:10360;if((d|0)==118)g=35336;else if((d|0)==116)g=35320;else if((d|0)==117)g=35352;else g=35360;c[(m&p)>>2]=e;c[(m&p)+4>>2]=f;c[(m&p)+8>>2]=h;c[(m&p)+12>>2]=g;g=uh(l,35120,m)|0;xh(k,wh(k,157,c[(b&p)+464>>2]|0,0,0)|0,g,-1)}i=o;return}function Rs(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=f+e|0;h=(g*5|0)+24|0;i=qg(h,0)|0;if(!i)a[(d&n)+65>>0]=1;else{fw(i|0,0,h|0)|0;c[(i&p)+16>>2]=i+20+(g<<2);b[(i&o)+6>>1]=e;b[(i&o)+8>>1]=f;a[(i&n)+4>>0]=a[(d&n)+62>>0]|0;c[(i&p)+12>>2]=d;c[(i&p)>>2]=1}return i|0}function Ss(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[(b&p)+52>>2]|0;if(!((f|0)!=0?(e=Ss(a,f,d)|0,(e|0)!=0):0)){e=c[(b&p)>>2]|0;if((c[(e&p)>>2]|0)>(d|0))e=cu(a,c[((c[(e&p)+4>>2]|0)+(d*20|0)&p)>>2]|0)|0;else e=0}return e|0}function Ts(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=(b|0)==0;f=(d|0)==0;a:do if(!(g&f))if(!(g|f)?(h=c[(b&p)>>2]|0,(h|0)==(c[(d&p)>>2]|0)):0)if((h|0)>0){b=c[(b&p)+4>>2]|0;f=c[(d&p)+4>>2]|0;g=0;while(1){if((a[(b+(g*20|0)&n)+12>>0]|0)!=(a[(f+(g*20|0)&n)+12>>0]|0)){f=1;break a}if(Cu(c[(b+(g*20|0)&p)>>2]|0,c[(f+(g*20|0)&p)>>2]|0,e)|0){f=1;break a}g=g+1|0;if((g|0)>=(h|0)){f=0;break}}}else f=0;else f=1;else f=0;while(0);return f|0}function Us(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[(b&p)>>2]|0;l=c[(d&p)>>2]|0;k=Rs(g,l-e|0,f+1|0)|0;if((k|0)!=0&(l|0)>(e|0)){h=g+8|0;i=k+16|0;j=e;f=(c[(d&p)+4>>2]|0)+(e*20|0)|0;while(1){g=cu(b,c[(f&p)>>2]|0)|0;if(!g)g=c[(h&p)>>2]|0;d=j-e|0;c[(k+(d<<2)&p)+20>>2]=g;a[((c[(i&p)>>2]|0)+d&n)>>0]=a[(f&n)+12>>0]|0;j=j+1|0;if((j|0)==(l|0))break;else f=f+20|0}}return k|0}function Vs(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0;Pa=i;i=i+64|0;if((i|0)>=(j|0))fa();Na=Pa;Oa=Pa+48|0;Ma=Pa+52|0;$=Pa+28|0;Ka=f+8|0;ha=c[(Ka&p)>>2]|0;La=c[(f&p)>>2]|0;c[($&p)>>2]=0;c[($&p)+4>>2]=0;c[($&p)+8>>2]=0;c[($&p)+12>>2]=0;c[($&p)+16>>2]=0;if(!k)S=0;else S=(c[(k&p)>>2]|0)>63?0:k;aa=$+8|0;c[(aa&p)>>2]=S;ba=La+60|0;if(b[(ba&o)>>1]&32)m=m&64511;k=c[(g&p)>>2]|0;a:do if((k|0)<=64){L=m&65535;O=(L&64|0)!=0;X=O?1:k;x=(X*80|0)+743&-16;r=x+72|0;k=mh(La,r,0)|0;Ja=(k|0)==0;if(!Ja)fw(k|0,0,r|0)|0;Aa=La+65|0;if(a[(Aa&n)>>0]|0){mg(La,k);k=0;break}ea=k+60|0;ga=k+64|0;c[(ga&p)>>2]=-1;c[(ea&p)>>2]=-1;Ba=k+41|0;a[(Ba&n)>>0]=X;c[(k&p)>>2]=f;Ca=k+4|0;c[(Ca&p)>>2]=g;ca=k+8|0;c[(ca&p)>>2]=S;c[(k&p)+12>>2]=l;Ea=xs(ha)|0;Da=k+48|0;c[(Da&p)>>2]=Ea;t=k+52|0;c[(t&p)>>2]=Ea;Ea=k+34|0;b[(Ea&o)>>1]=m;Fa=f+424|0;Ga=k+56|0;c[(Ga&p)>>2]=c[(Fa&p)>>2];Ha=k+68|0;c[($&p)>>2]=k;Ia=k+328|0;_=$+4|0;c[(_&p)>>2]=Ia;V=$+12|0;c[(V&p)>>2]=k+x;c[(k+x&p)+48>>2]=k+(x+56);b[(k+x&o)+40>>1]=0;b[(k+x&o)+44>>1]=3;c[(k+x&p)+36>>2]=0;c[(Ha&p)>>2]=0;c[(Ia&p)>>2]=k;c[(k&p)+332>>2]=0;ya=k+340|0;c[(ya&p)>>2]=0;c[(k&p)+344>>2]=8;za=k+348|0;c[(za&p)>>2]=k+352;Du(Ia,h,72);B=(X|0)==0;if((c[(k&p)+340>>2]|0)>0){A=Na+20|0;z=Na+4|0;r=Na+24|0;h=Ia;s=0;do{if(!B){h=c[((c[(h&p)+20>>2]|0)+(s*48|0)&p)>>2]|0;c[(Na&p)>>2]=0;c[(Na&p)+4>>2]=0;c[(Na&p)+8>>2]=0;c[(Na&p)+12>>2]=0;c[(Na&p)+16>>2]=0;c[(Na&p)+20>>2]=0;a[(A&n)>>0]=2;c[(Na&p)>>2]=78;c[(z&p)>>2]=79;c[(r&p)>>2]=0;rs(Na,h)|0;h=c[(_&p)>>2]|0;if(a[(A&n)>>0]|0)xa=15}else xa=15;if((xa|0)==15){xa=0;gt(f,c[((c[(h&p)+20>>2]|0)+(s*48|0)&p)>>2]|0,c[(t&p)>>2]|0,16);h=c[(_&p)>>2]|0;da=(c[(h&p)+20>>2]|0)+(s*48|0)+20|0;b[(da&o)>>1]=e[(da&o)>>1]|4}s=s+1|0}while((s|0)<(c[(h&p)+12>>2]|0))}if(B){if(S)a[(k&n)+36>>0]=c[(S&p)>>2];if(L&1024)a[(k&n)+40>>0]=1}if((c[(g&p)>>2]|0)>0){x=0;do{R=c[(g+(x*72|0)&p)+48>>2]|0;da=c[(Ha&p)>>2]|0;c[(Ha&p)>>2]=da+1;c[(Ha+(da<<2)&p)+4>>2]=R;x=x+1|0}while((x|0)<(c[(g&p)>>2]|0))}u=c[(ya&p)>>2]|0;if((u|0)>0)do{u=u+-1|0;Eu(Ia,u)}while((u|0)>0);b:do if(!(a[(Aa&n)>>0]|0)){da=(L&1024|0)==0;c:do if(!da){d:do if((c[(g&p)>>2]|0)==1){K=c[(g&p)+48>>2]|0;s=c[(g&p)+24>>2]|0;A=c[(l&p)>>2]|0;e:do if((A|0)>0){z=c[(l&p)+4>>2]|0;r=0;while(1){h=c[(z+(r*20|0)&p)>>2]|0;f:do if(!h)h=0;else while(1){B=c[(h&p)+4>>2]|0;if(!(B&4096))break f;if(!(B&262144))h=h+12|0;else h=c[((c[(h&p)+20>>2]|0)&p)+4>>2]|0;h=c[(h&p)>>2]|0;if(!h){h=0;break}}while(0);do if((a[(h&n)>>0]|0)==-102){if((c[(h&p)+28>>2]|0)!=(K|0))break;if((b[(h&o)+32>>1]|0)<0)break e}while(0);r=r+1|0;if((r|0)>=(A|0)){xa=41;break}}}else xa=41;while(0);g:do if((xa|0)==41){h=c[(s&p)+8>>2]|0;if(!h)break d;t=l+4|0;s=s+4|0;while(1){if(a[(h&n)+50>>0]|0){F=h+46|0;h:do if(!(b[(F&o)>>1]|0))B=0;else{I=h+4|0;H=h+32|0;B=0;do{E=b[((c[(I&p)>>2]|0)+(B<<1)&o)>>1]|0;if(!(Fu(Ia,K,E,-1,-1,2,h)|0)){r=c[((c[(H&p)>>2]|0)+(B<<2)&p)>>2]|0;if((c[(l&p)>>2]|0)>0)A=0;else break h;i:while(1){C=c[((c[(t&p)>>2]|0)+(A*20|0)&p)>>2]|0;j:do if(!C)z=0;else{z=C;while(1){D=c[(z&p)+4>>2]|0;if(!(D&4096))break j;if(!(D&262144))z=z+12|0;else z=c[((c[(z&p)+20>>2]|0)&p)+4>>2]|0;z=c[(z&p)>>2]|0;if(!z){z=0;break}}}while(0);do if((a[(z&n)>>0]|0)==-102){if((b[(z&o)+32>>1]|0)!=(b[((c[(I&p)>>2]|0)+(B<<1)&o)>>1]|0))break;if((c[(z&p)+28>>2]|0)!=(K|0))break;z=cu(f,C)|0;if(!z)break;if(!(dd(c[(z&p)>>2]|0,r)|0))break i}while(0);A=A+1|0;if((A|0)>=(c[(l&p)>>2]|0))break h}if((A|0)<0)break h;if(!(a[((c[(s&p)>>2]|0)+(E*24|0)&n)+20>>0]|0))break h}B=B+1|0}while((B|0)<(e[(F&o)>>1]|0))}while(0);if((B|0)==(e[(F&o)>>1]|0))break g}h=c[(h&p)+20>>2]|0;if(!h)break d}}while(0);a[(k&n)+40>>0]=1;break c}while(0);if(!S){b[(Ea&o)>>1]=e[(Ea&o)>>1]|512;c[(ca&p)>>2]=l}}while(0);k:do if((((X|0)==1?(Z=c[($&p)>>2]|0,Y=Z+34|0,(b[(Y&o)>>1]&32)==0):0)?(U=c[(Z&p)+4>>2]|0,Q=c[(U&p)+24>>2]|0,(a[(Q&n)+44>>0]&16)==0):0)?(c[(U&p)+72>>2]|0)==0:0){S=c[(U&p)+48>>2]|0;C=Z+328|0;R=c[(V&p)>>2]|0;K=R+36|0;c[(K&p)>>2]=0;b[(R&o)+42>>1]=0;y=Fu(C,S,-1,0,0,2,0)|0;l:do if(!y){A=c[(Q&p)+8>>2]|0;m:do if(A){D=R+48|0;n:while(1){do if(a[(A&n)+50>>0]|0){if(c[(A&p)+36>>2]|0)break;z=A+46|0;h=b[(z&o)>>1]|0;if((h&65535)>3)break;t=A+4|0;o:do if(!(h<<16>>16)){h=0;B=0}else{B=0;while(1){h=Fu(C,S,b[((c[(t&p)>>2]|0)+(B<<1)&o)>>1]|0,0,0,2,A)|0;if(!h)break;c[((c[(D&p)>>2]|0)+(B<<2)&p)>>2]=h;B=B+1|0;h=b[(z&o)>>1]|0;if((B|0)>=(h&65535|0))break o}h=b[(z&o)>>1]|0}while(0);if((B|0)==(h&65535|0)){D=B;break n}}while(0);A=c[(A&p)+20>>2]|0;if(!A)break m}c[(K&p)>>2]=4609;if(!(a[(A&n)+51>>0]&32)){s=U+64|0;r=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;z=0;y=0;h=e[(A&o)+48>>1]|0;p:while(1){B=h;while(1){h=B+-1|0;if((B|0)<=0)break p;B=b[((c[(t&p)>>2]|0)+(h<<1)&o)>>1]|0;if((B&65535)<63)break;else B=h}$=iw(1,0,B<<16>>16|0)|0;z=$|z;y=G|y}if((r&~z|0)==0&(s&~y|0)==0)xa=91}else xa=91;if((xa|0)==91)c[(K&p)>>2]=4673;$=D&65535;b[(R&o)+40>>1]=$;b[(R&o)+24>>1]=$;c[(R&p)+28>>2]=A;b[(R&o)+20>>1]=39;break l}while(0);if(!(c[(K&p)>>2]|0)){xa=103;break k}}else{c[(K&p)>>2]=4353;c[(c[(R&p)+48>>2]&p)>>2]=y;b[(R&o)+40>>1]=1;b[(R&o)+24>>1]=1;b[(R&o)+20>>1]=33}while(0);b[(R&o)+22>>1]=1;c[(Z&p)+800>>2]=R;t=c[(Z&p)+68>>2]|0;q:do if((t|0)>0){u=0;while(1){if((c[(Z+(u<<2)&p)+72>>2]|0)==(S|0))break;u=u+1|0;if((u|0)>=(t|0)){u=0;t=0;break q}}u=iw(1,0,u|0)|0;t=G}else{u=0;t=0}while(0);s=R+8|0;c[(s&p)>>2]=u;c[(s&p)+4>>2]=t;c[(Z&p)+740>>2]=S;b[(Z&o)+32>>1]=1;s=c[(Z&p)+8>>2]|0;if(s)a[(Z&n)+36>>0]=c[(s&p)>>2];if(!(b[(Y&o)>>1]&1024)){xa=120;break}a[(Z&n)+40>>0]=1;xa=120}else xa=103;while(0);if((xa|0)==103){F=c[($&p)>>2]|0;h=c[(F&p)+4>>2]|0;H=c[(c[(F&p)>>2]&p)>>2]|0;Z=a[(F&n)+41>>0]|0;I=Z&255;z=c[(V&p)>>2]|0;c[(z&p)+48>>2]=z+56;b[(z&o)+40>>1]=0;b[(z&o)+44>>1]=3;c[(z&p)+36>>2]=0;r=H+65|0;r:do if(Z<<24>>24){s=z+16|0;t=F+68|0;u=z+8|0;v=0;w=0;x=0;y=0;E=0;D=h+8|0;C=0;while(1){a[(s&n)>>0]=E;B=c[(D&p)+40>>2]|0;A=c[(t&p)>>2]|0;s:do if((A|0)>0){h=0;while(1){if((c[(F+(h<<2)&p)+72>>2]|0)==(B|0))break;h=h+1|0;if((h|0)>=(A|0)){h=0;B=0;break s}}h=iw(1,0,h|0)|0;B=G}else{h=0;B=0}while(0);Z=u;c[(Z&p)>>2]=h;c[(Z&p)+4>>2]=B;Z=C;C=a[(D&n)+36>>0]|0;Z=((C|Z)&10)==0;w=Z?w:v;y=Z?y:x;if(!(a[((c[(D&p)+16>>2]|0)&n)+44>>0]&16))h=Hu($,w,y)|0;else h=Gu($,w,y)|0;if(h)break;Z=Iu($,w,y)|0;h=u;if(Z)break;if(a[(r&n)>>0]|0)break r;E=E+1|0;if((E|0)>=(I|0))break r;else{v=c[(h&p)>>2]|v;x=c[(h&p)+4>>2]|x;D=D+72|0}}Ju(H,z);break b}while(0);Ju(H,z);Ku(k,0);if(a[(Aa&n)>>0]|0)break;if(c[(ca&p)>>2]|0){Ku(k,(e[(k&o)+32>>1]|0)+1&65535);if(!(a[(Aa&n)>>0]|0))xa=120;else break}else xa=121}if((xa|0)==120?(c[(ca&p)>>2]|0)==0:0)xa=121;if((xa|0)==121?(c[(La&p)+24>>2]&131072|0)!=0:0){ca=k+24|0;c[(ca&p)>>2]=-1;c[(ca&p)+4>>2]=-1}if((c[(f&p)+64>>2]|0)==0?(a[(Aa&n)>>0]|0)==0:0){x=a[(Ba&n)>>0]|0;t:do if((x&255)>1&(l|0)!=0?(b[(ba&o)>>1]&1024)==0:0){s=Lu(Ha,l)|0;t=G;r=c[(aa&p)>>2]|0;if(r){ca=Lu(Ha,r)|0;s=ca|s;t=G|t}B=k+736|0;h=c[(Ca&p)>>2]|0;A=c[(_&p)>>2]|0;z=A+20|0;A=A+12|0;y=x;r=X;do{u=c[(B+(((y&255)+-1|0)*80|0)&p)+64>>2]|0;if(!(a[(h+((d[(u&n)+16>>0]|0)*72|0)&n)+44>>0]&8))break t;if(da?(c[(u&p)+36>>2]&4096|0)==0:0)break t;w=u+8|0;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;if(!((v&s|0)==0&(w&t|0)==0))break t;u=c[(z&p)>>2]|0;ca=c[(A&p)>>2]|0;x=u+(ca*48|0)|0;if((ca|0)>0)do{ca=u+40|0;if(!((v&c[(ca&p)>>2]|0)==0?(w&c[(ca&p)+4>>2]|0)==0:0)?(c[((c[(u&p)>>2]|0)&p)+4>>2]&1|0)==0:0)break t;u=u+48|0}while(u>>>0<x>>>0);y=y+-1<<24>>24;a[(Ba&n)>>0]=y;r=r+-1|0}while((y&255)>1)}else r=X;while(0);da=(c[(k&p)>>2]|0)+424|0;c[(da&p)>>2]=(c[(da&p)>>2]|0)+(b[(k&o)+32>>1]|0);do if((L&4|0)!=0?(W=(c[(k&p)+800>>2]|0)+36|0,T=c[(W&p)>>2]|0,(T&4096|0)!=0):0){a[(k&n)+38>>0]=1;if(a[((c[(g&p)+24>>2]|0)&n)+44>>0]&32)break;c[(W&p)>>2]=T&-65}while(0);wa=k+736|0;S=(r|0)>0;if(S){P=L&16;Q=k+38|0;R=ha+32|0;M=O^1;O=(q|0)==0|M;N=f+68|0;K=54-(L>>>12&1)|0;J=ha+4|0;E=La+20|0;C=La+16|0;v=0;L=wa;while(1){D=d[(L&n)+44>>0]|0;F=g+(D*72|0)+24|0;t=c[(F&p)>>2]|0;h=c[(t&p)+68>>2]|0;u:do if(!h)z=-1e6;else{B=c[(E&p)>>2]|0;if((B|0)<=0){z=0;break}A=c[(C&p)>>2]|0;s=0;while(1){z=s+1|0;if((c[(A+(s<<4)&p)+12>>2]|0)==(h|0)){z=s;break u}if((z|0)<(B|0))s=z;else break}}while(0);I=c[(L&p)+64>>2]|0;H=t+44|0;h=d[(H&n)>>0]|0;do if(!(h&2)){if(c[(t&p)+12>>2]|0)break;B=c[(I&p)+36>>2]|0;if(B&1024){y=c[(t&p)+60>>2]|0;v:do if(!y)y=0;else while(1){if((c[(y&p)>>2]|0)==(La|0))break v;y=c[(y&p)+24>>2]|0;if(!y){y=0;break}}while(0);xh(ha,wh(ha,149,c[(g+(D*72|0)&p)+48>>2]|0,0,0)|0,y,-10);break}if(h&16)break;if(B&64|P){gs(f,z,c[(t&p)+32>>2]|0,0,c[(t&p)>>2]|0);break}A=g+(D*72|0)+48|0;if(!(a[(Q&n)>>0]|0))h=54;else{c[(ea&p)>>2]=c[(A&p)>>2];h=55}Qq(f,c[(A&p)>>2]|0,z,t,h);if(a[(Q&n)>>0]|0)break;if((b[(t&o)+38>>1]|0)>=64)break;if(a[(H&n)>>0]&32)break;A=g+(D*72|0)+64|0;y=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;if((y|0)==0&(A|0)==0)x=0;else{x=0;do{y=mw(y|0,A|0,1)|0;A=G;x=x+1|0}while(!((y|0)==0&(A|0)==0))}xh(ha,(c[(R&p)>>2]|0)+-1|0,x,-14)}while(0);B=I+36|0;w:do if(c[(B&p)>>2]&512){h=c[(I&p)+28>>2]|0;do if(a[(H&n)>>0]&32){if((a[(h&n)+51>>0]&3)!=2|M)break;c[(L&p)+8>>2]=c[(L&p)+4>>2];break w}while(0);do if(!(a[(Q&n)>>0]|0)){if(!O){x=q;w=K;break}x=c[(N&p)>>2]|0;c[(N&p)>>2]=x+1;w=54}else{w=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if((w|0)==0|(w|0)==(h|0))x=q;else{x=q;do{x=x+1|0;w=c[(w&p)+20>>2]|0}while(!((w|0)==0|(w|0)==(h|0)))}c[(ga&p)>>2]=x;w=55}while(0);c[(L&p)+8>>2]=x;wh(ha,w,x,c[(h&p)+40>>2]|0,z)|0;da=c[(Ka&p)>>2]|0;xh(da,-1,hs(f,h)|0,-6);da=c[(B&p)>>2]|0;if(!((da&15|0)!=0&(da&32770|0)==0))break;if(b[(Ea&o)>>1]&1)break;u=c[(J&p)>>2]|0;if(!u)break;a[(u+(((c[(R&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=2}while(0);if((z|0)>-1)Ar(f,z);v=v+1|0;if((v|0)==(r|0))break;else L=L+80|0}ga=(a[(Aa&n)>>0]|0)==0;c[(k&p)+44>>2]=c[(R&p)>>2];if(!ga)break}else{R=ha+32|0;c[(k&p)+44>>2]=c[(R&p)>>2]}if(!S)break a;ka=k+24|0;la=k+36|0;ma=k+39|0;na=f+80|0;oa=f+68|0;pa=f+100|0;qa=f+19|0;ra=f+72|0;sa=Na+20|0;ta=Na+4|0;ua=Na+24|0;t=-1;s=-1;va=0;while(1){Y=wa+(va*80|0)|0;h=wa+(va*80|0)+64|0;_=wa+(va*80|0)+44|0;if(c[((c[(h&p)>>2]|0)&p)+36>>2]&16384){K=d[(_&n)>>0]|0;U=g+(K*72|0)+8|0;Z=c[(Ka&p)>>2]|0;y=Oq(f)|0;$=c[(na&p)>>2]|0;c[(na&p)>>2]=$+1;$=wh(y,44,$,0,0)|0;y=c[(g+(K*72|0)&p)+24>>2]|0;ga=c[(ya&p)>>2]|0;B=c[(za&p)>>2]|0;T=B+(ga*48|0)|0;M=c[(h&p)>>2]|0;x:do if((ga|0)>0){z=g+(K*72|0)+48|0;v=y+4|0;w=M+48|0;F=0;C=0;A=0;u=0;E=0;while(1){D=c[(B&p)>>2]|0;ga=M;do if((c[(ga&p)>>2]|0)==0&(c[(ga&p)+4>>2]|0)==0){if(b[(B&o)+20>>1]&2)break;if(c[(D&p)+4>>2]&1)break;ga=c[(z&p)>>2]|0;c[(Na&p)>>2]=0;c[(Na&p)+4>>2]=0;c[(Na&p)+8>>2]=0;c[(Na&p)+12>>2]=0;c[(Na&p)+16>>2]=0;c[(Na&p)+20>>2]=0;a[(sa&n)>>0]=3;c[(Na&p)>>2]=78;c[(ta&p)>>2]=79;c[(ua&p)>>2]=ga;rs(Na,D)|0;if(!(a[(sa&n)>>0]|0))break;ga=c[(f&p)>>2]|0;u=ss(ga,u,Mr(ga,D,0,0)|0)|0}while(0);do if(!(Mu(B,U,t,s)|0)){I=F;D=C;h=A}else{D=c[(B&p)+12>>2]|0;if((D|0)>63){I=0;H=-2147483648}else{I=iw(1,0,D|0)|0;H=G}if(!(E<<24>>24)){E=c[((c[(v&p)>>2]|0)+(D*24|0)&p)>>2]|0;c[(Na&p)>>2]=c[(y&p)>>2];c[(Na&p)+4>>2]=E;bd(284,33960,Na);E=1}if(!((I&F|0)==0&(H&C|0)==0)){I=F;D=C;h=A;break}h=A+1|0;if(Nu(c[(f&p)>>2]|0,M,h)|0)break x;c[((c[(w&p)>>2]|0)+(A<<2)&p)>>2]=B;I=I|F;D=H|C}while(0);B=B+48|0;if(B>>>0>=T>>>0){B=I;xa=207;break}else{F=I;C=D;A=h}}}else{D=0;B=0;h=0;u=0;xa=207}while(0);do if((xa|0)==207){xa=0;v=h&65535;b[(M&o)+40>>1]=v;b[(M&o)+24>>1]=v;v=M+36|0;c[(v&p)>>2]=16961;L=g+(K*72|0)+64|0;N=L;H=c[(N&p)+4>>2]|0;N=c[(N&p)>>2]&~B;P=H&((D|-2147483648)^2147483647);x=y+38|0;Q=b[(x&o)>>1]|0;I=Q<<16>>16;Q=Q<<16>>16>63?63:I;S=(Q|0)>0;if(S){D=0;do{ga=iw(1,0,D|0)|0;h=(((ga&N|0)!=0|(G&P|0)!=0)&1)+h|0;D=D+1|0}while((D|0)!=(Q|0))}if((H|0)<0)h=h+-63+I|0;O=h+1|0;J=us(c[(f&p)>>2]|0,O&65535,0,Oa)|0;if(!J)break;c[(M&p)+28>>2]=J;c[(J&p)>>2]=33992;c[(J&p)+12>>2]=y;D=c[(za&p)>>2]|0;if(D>>>0<T>>>0){h=J+4|0;B=J+32|0;H=0;I=0;A=0;do{do if(Mu(D,U,t,s)|0){F=c[(D&p)+12>>2]|0;if((F|0)>63){E=0;C=-2147483648}else{E=iw(1,0,F|0)|0;C=G}if(!((E&H|0)==0&(C&I|0)==0))break;ga=c[(D&p)>>2]|0;b[((c[(h&p)>>2]|0)+(A<<1)&o)>>1]=F;F=Ou(f,c[(ga&p)+12>>2]|0,c[(ga&p)+16>>2]|0)|0;if(!F)F=11152;else F=c[(F&p)>>2]|0;c[((c[(B&p)>>2]|0)+(A<<2)&p)>>2]=F;H=E|H;I=C|I;A=A+1|0}while(0);D=D+48|0}while(D>>>0<T>>>0)}else A=0;if(S){D=J+4|0;C=J+32|0;h=0;do{ga=iw(1,0,h|0)|0;if(!((ga&N|0)==0&(G&P|0)==0)){b[((c[(D&p)>>2]|0)+(A<<1)&o)>>1]=h;c[((c[(C&p)>>2]|0)+(A<<2)&p)>>2]=11152;A=A+1|0}h=h+1|0}while((h|0)!=(Q|0))}do if((c[(L&p)+4>>2]|0)<0){if((b[(x&o)>>1]|0)<=63)break;h=J+4|0;B=J+32|0;z=63;do{b[((c[(h&p)>>2]|0)+(A<<1)&o)>>1]=z;c[((c[(B&p)>>2]|0)+(A<<2)&p)>>2]=11152;A=A+1|0;z=z+1|0}while((z|0)<(b[(x&o)>>1]|0))}while(0);b[((c[(J&p)+4>>2]|0)+(A<<1)&o)>>1]=-1;c[((c[(J&p)+32>>2]|0)+(A<<2)&p)>>2]=11152;D=c[(oa&p)>>2]|0;c[(oa&p)>>2]=D+1;B=wa+(va*80|0)+8|0;c[(B&p)>>2]=D;wh(Z,56,D,O,0)|0;D=c[(Ka&p)>>2]|0;xh(D,-1,hs(f,J)|0,-6);c[(pa&p)>>2]=(c[(pa&p)>>2]|0)+1;D=wa+(va*80|0)+4|0;w=wh(Z,108,c[(D&p)>>2]|0,0,0)|0;A=(u|0)!=0;if(A){z=xs(Z)|0;gt(f,u,z,16);c[(v&p)>>2]=c[(v&p)>>2]|131072}else z=0;h=a[(qa&n)>>0]|0;if(!(h<<24>>24)){v=(c[(ra&p)>>2]|0)+1|0;c[(ra&p)>>2]=v}else{v=h+-1<<24>>24;a[(qa&n)>>0]=v;v=c[(f+((v&255)<<2)&p)+24>>2]|0}Pt(f,J,c[(D&p)>>2]|0,v,0,0,0,0)|0;wh(Z,110,c[(B&p)>>2]|0,v,0)|0;C=Z+4|0;h=c[(C&p)>>2]|0;if(h)a[(h+(((c[(Z&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;if(A){B=c[(Z&p)+24>>2]|0;A=~z;do if((z|0)<0){h=c[(B&p)+112>>2]|0;if(!h)break;c[(h+(A<<2)&p)>>2]=c[(Z&p)+32>>2]}while(0);c[(B&p)+88>>2]=(c[(Z&p)+32>>2]|0)+-1}wh(Z,9,c[(D&p)>>2]|0,w+1|0,0)|0;h=c[(C&p)>>2]|0;B=c[(Z&p)+32>>2]|0;if(h)a[(h+((B+-1|0)*20|0)&n)+3>>0]=3;if(B>>>0>w>>>0)c[(h+(w*20|0)&p)+8>>2]=B;h=Z+24|0;c[((c[(h&p)>>2]|0)&p)+88>>2]=B+-1;_r(f,v);bu(f);x=c[(Z&p)+32>>2]|0;if(x>>>0>$>>>0)c[((c[(C&p)>>2]|0)+($*20|0)&p)+8>>2]=x;c[((c[(h&p)>>2]|0)&p)+88>>2]=x+-1}while(0);Gk(c[(f&p)>>2]|0,u);if(a[(Aa&n)>>0]|0)break b}Pu(f,g,Y,va,d[(_&n)>>0]|0,m);c[(wa+(va*80|0)&p)+32>>2]=c[(R&p)>>2];ja=c[(k&p)>>2]|0;O=ja+8|0;ea=c[(O&p)>>2]|0;ha=c[(ja&p)>>2]|0;u=k+(va*80|0)+736|0;N=c[(k+(va*80|0)&p)+800>>2]|0;ca=k+(va*80|0)+780|0;K=d[(ca&n)>>0]|0;I=c[(Ca&p)>>2]|0;Q=I+(K*72|0)+8|0;q=c[(I+(K*72|0)&p)+48>>2]|0;B=c[(Ha&p)>>2]|0;y:do if((B|0)>0){h=0;while(1){if((c[(Ha+(h<<2)&p)+4>>2]|0)==(q|0))break;h=h+1|0;if((h|0)>=(B|0)){h=-1;B=-1;break y}}h=iw(1,0,h|0)|0;h=~h;B=~G}else{h=-1;B=-1}while(0);ia=k+(va*80|0)+808|0;P=ia;c[(P&p)>>2]=h&t;c[(P&p)+4>>2]=B&s;P=ka;P=mw(c[(P&p)>>2]|0,c[(P&p)+4>>2]|0,va|0)|0;ba=P&1;W=N+36|0;if(!(c[(W&p)>>2]&64))y=0;else y=(b[(Ea&o)>>1]&32)==0;J=xs(ea)|0;S=k+(va*80|0)+752|0;c[(S&p)>>2]=J;da=k+(va*80|0)+748|0;c[(da&p)>>2]=J;ga=xs(ea)|0;c[(k+(va*80|0)&p)+760>>2]=ga;do if(a[(ca&n)>>0]|0){if(!(a[(I+(K*72|0)&n)+44>>0]&8))break;aa=ja+72|0;l=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=l;c[(u&p)>>2]=l;wh(ea,25,0,l,0)|0}while(0);D=a[(I+(K*72|0)&n)+45>>0]|0;z:do if(!(D&4)){F=c[(W&p)>>2]|0;if(F&1024){v=b[(N&o)+40>>1]|0;w=v&65535;y=ja+100|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1;y=w+2|0;J=ja+60|0;h=c[(J&p)>>2]|0;K=ja+56|0;B=c[(K&p)>>2]|0;if((B|0)<(y|0)){ca=ja+72|0;x=c[(ca&p)>>2]|0;c[(ca&p)>>2]=x+y;x=x+1|0}else{c[(J&p)>>2]=h+y;c[(K&p)>>2]=B-y;x=h}h=c[(da&p)>>2]|0;E=v<<16>>16==0;if(!E){H=x+2|0;F=N+48|0;I=0;do{D=H+I|0;C=c[((c[(F&p)>>2]|0)+(I<<2)&p)>>2]|0;do if(C)if(!(b[(C&o)+18>>1]&1)){Rq(ja,c[((c[(C&p)>>2]|0)&p)+16>>2]|0,D);break}else{Qu(ja,C,u,I,ba,D)|0;h=c[(S&p)>>2]|0;break}while(0);I=I+1|0}while((I|0)<(w|0))}wh(ea,25,c[(N&p)+24>>2]|0,x,0)|0;wh(ea,25,w,x+1|0,0)|0;ba=c[(N&p)+32>>2]|0;da=N+28|0;ca=(a[(da&n)>>0]|0)!=0?-11:-2;xh(ea,wh(ea,14,q,h,x)|0,ba,ca);a[(da&n)>>0]=0;if(!E){z=N+30|0;A=N+48|0;h=(v&65535)>1?0-w|0:-1;h=h>>>0>4294967280?0-h|0:16;B=0;do{if(e[(z&o)>>1]&1<<B)Ru(u,c[((c[(A&p)>>2]|0)+(B<<2)&p)>>2]|0);B=B+1|0}while((B|0)!=(h|0))}a[(k+(va*80|0)&n)+781>>0]=-105;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=c[(ea&p)+32>>2];dt(ja,x,y);if((c[(K&p)>>2]|0)<(y|0)){c[(K&p)>>2]=y;c[(J&p)>>2]=x}bu(ja);xa=459;break}if(!((F&256|0)==0|(F&5|0)==0)){y=c[(c[(N&p)+48>>2]&p)>>2]|0;da=ja+72|0;A=(c[(da&p)>>2]|0)+1|0;c[(da&p)>>2]=A;y=Qu(ja,y,u,0,ba,A)|0;if((y|0)!=(A|0))_r(ja,A);xa=c[(S&p)>>2]|0;wh(ea,38,y,xa,0)|0;wh(ea,70,q,xa,y)|0;dt(ja,y,1);Su(ja,q,-1,y);a[(k+(va*80|0)&n)+781>>0]=-100;xa=459;break}if((F&258|0)==258){if(!(F&32)){h=0;A=0}else{h=1;A=c[(c[(N&p)+48>>2]&p)>>2]|0}if(!(F&16))h=0;else h=c[((c[(N&p)+48>>2]|0)+(h<<2)&p)>>2]|0;B=(ba|0)!=0;z=B?A:h;h=B?h:A;if(!h)wh(ea,B?105:108,q,J,0)|0;else{ca=c[(h&p)>>2]|0;da=$t(ja,c[(ca&p)+16>>2]|0,Na)|0;wh(ea,d[((d[(ca&n)>>0]|0)+-80&n)+33536>>0]|0,q,J,da)|0;dt(ja,da,1);_r(ja,c[(Na&p)>>2]|0);Ru(u,h)}if(!z){h=0;B=156}else{da=c[(z&p)>>2]|0;ca=ja+72|0;h=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=h;Rq(ja,c[(da&p)+16>>2]|0,h);da=a[(da&n)>>0]|0;if(da<<24>>24==80|da<<24>>24==82)B=ba<<1^83;else B=ba<<1|80;Ru(u,z)}A=ea+32|0;da=c[(A&p)>>2]|0;a[(k+(va*80|0)&n)+781>>0]=ba^9;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=da;if((B|0)==156){xa=459;break}da=ja+72|0;x=(c[(da&p)>>2]|0)+1|0;c[(da&p)>>2]=x;wh(ea,103,q,x,0)|0;Su(ja,q,-1,x);wh(ea,B,h,J,x)|0;x=c[(ea&p)+4>>2]|0;if(!x){xa=459;break}a[(x+(((c[(A&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=83;xa=459;break}if(F&512){O=b[(N&o)+24>>1]|0;a[(Ma&n)>>0]=0;V=c[(N&p)+28>>2]|0;X=c[(k+(va*80|0)&p)+744>>2]|0;do if(!(b[(Ea&o)>>1]&1)){H=0;D=0}else{if((a[(la&n)>>0]|0)<=0){H=0;D=0;break}D=(e[(V&o)+46>>1]|0)>(O&65535);H=D&1;D=D&1}while(0);h=O&65535;if(!(F&32)){I=h;K=0}else{I=h+1|0;D=1;K=c[((c[(N&p)+48>>2]|0)+(h<<2)&p)>>2]|0}do if(!(F&16))C=0;else{C=c[((c[(N&p)+48>>2]|0)+(I<<2)&p)>>2]|0;if(b[(C&o)+20>>1]&256){ca=ja+72|0;da=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=da;c[(k+(va*80|0)&p)+772>>2]=da;wh(ea,25,(a[((c[(V&p)+28>>2]|0)+h&n)>>0]|0)==1^ba,da,0)|0;c[(k+(va*80|0)&p)+776>>2]=c[(ea&p)+32>>2]}if(K){D=1;break}D=b[((c[(V&p)+4>>2]|0)+(h<<1)&o)>>1]|0;if(D<<16>>16<=-1){D=1;break}H=(a[((c[((c[(V&p)+12>>2]|0)&p)+4>>2]|0)+((D<<16>>16)*24|0)&n)+20>>0]|0)==0?1:H;D=1}while(0);M=Tu(ja,u,ba,D,Oa)|0;L=c[(Oa&p)>>2]|0;J=(L|0)==0;if(!J)a[(Ma&n)>>0]=a[(L+h&n)>>0]|0;N=c[(S&p)>>2]|0;E=b[(V&o)+46>>1]|0;if((O&65535)<(E&65535)?!((a[((c[(V&p)+28>>2]|0)+h&n)>>0]|0)==0^((P&1|0)!=0|0!=0)):0)xa=318;else if((ba|0)!=0?E<<16>>16==O<<16>>16:0)xa=318;else{Q=H;H=0;P=C;S=K}if((xa|0)==318){Q=0;P=K;S=C}C=(S|0)!=0;if(C)E=(b[(S&o)+18>>1]&40)!=0;else E=1;F=E&1;K=(P|0)!=0;if(K)I=(b[(P&o)+18>>1]&40)!=0;else I=1;D=I&1;I=(C|O<<16>>16!=0)&1;do if(C){B=c[((c[(S&p)>>2]|0)&p)+16>>2]|0;C=M+h|0;Rq(ja,B,C);if(b[(S&o)+20>>1]&256){if(!(a[((c[(ea&p)>>2]|0)&n)+65>>0]|0))E=(c[(ea&p)+4>>2]|0)+(((c[(ea&p)+32>>2]|0)+-1|0)*20|0)|0;else E=29120;c[(E&p)+12>>2]=c[(k+(va*80|0)&p)+772>>2];a[(E&n)+3>>0]=1}if(Uu(B)|0)wh(ea,76,C,N,0)|0;do if(!J){E=L+h|0;if((Bu(B,a[(E&n)>>0]|0)|0)<<24>>24==65){a[(E&n)>>0]=65;C=65}else C=a[(E&n)>>0]|0;if(!(Vu(B,C)|0))break;a[(E&n)>>0]=65}while(0);E=h+1|0}else{if(!(Q<<24>>24)){E=h;break}wh(ea,28,0,M+h|0,0)|0;E=h+1|0;F=0;I=1}while(0);Wu(ja,M,E-(Q&255)|0,L);xh(ea,wh(ea,d[((I<<2|ba|F<<1)&n)+33544>>0]|0,X,N,M)|0,E,-14);do if(K){B=c[((c[(P&p)>>2]|0)&p)+16>>2]|0;A=M+h|0;dt(ja,A,1);Rq(ja,B,A);if(b[(P&o)+20>>1]&256){if(!(a[((c[(ea&p)>>2]|0)&n)+65>>0]|0))C=(c[(ea&p)+4>>2]|0)+(((c[(ea&p)+32>>2]|0)+-1|0)*20|0)|0;else C=29120;c[(C&p)+12>>2]=c[(k+(va*80|0)&p)+772>>2];a[(C&n)+3>>0]=1}if(Uu(B)|0)wh(ea,76,A,N,0)|0;do if((Bu(B,a[(Ma&n)>>0]|0)|0)<<24>>24!=65){if(Vu(B,a[(Ma&n)>>0]|0)|0)break;Wu(ja,A,1,Ma)}while(0);h=h+1|0}else{if(!(H<<24>>24))break;wh(ea,28,0,M+h|0,0)|0;D=0;h=h+1|0}while(0);mg(ha,L);c[(k+(va*80|0)&p)+788>>2]=c[(ea&p)+32>>2];if(h)xh(ea,wh(ea,d[((D|ba<<1)&n)+33552>>0]|0,X,N,M)|0,h,-14);Ru(u,S);Ru(u,P);do if(!y){h=c[(V&p)+12>>2]|0;if(!(a[(h&n)+44>>0]&32)){ca=ja+72|0;da=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=da;wh(ea,112,X,da,0)|0;Su(ja,q,-1,da);wh(ea,66,q,da,0)|0;break}if((q|0)==(X|0))break;h=c[(h&p)+8>>2]|0;A:do if(!h)D=0;else while(1){if((a[(h&n)+51>>0]&3)==2){D=h;break A}h=c[(h&p)+20>>2]|0;if(!h){D=0;break}}while(0);I=D+46|0;w=b[(I&o)>>1]|0;h=w&65535;B=ja+60|0;A=c[(B&p)>>2]|0;z=ja+56|0;v=c[(z&p)>>2]|0;if((v|0)<(h|0)){da=ja+72|0;A=c[(da&p)>>2]|0;c[(da&p)>>2]=A+h;A=A+1|0}else{c[(B&p)>>2]=A+h;c[(z&p)>>2]=v-h}if(w<<16>>16){v=D+4|0;w=V+48|0;z=V+4|0;E=0;do{D=b[((c[(v&p)>>2]|0)+(E<<1)&o)>>1]|0;h=b[(w&o)>>1]|0;B:do if(!(h<<16>>16))h=-1;else{C=c[(z&p)>>2]|0;B=h&65535;h=0;while(1){if((b[(C+(h<<1)&o)>>1]|0)==D<<16>>16)break B;h=h+1|0;if((h|0)>=(B|0)){h=-1;break}}}while(0);wh(ea,47,X,h<<16>>16,E+A|0)|0;E=E+1|0;h=e[(I&o)>>1]|0}while((E|0)<(h|0))}xh(ea,wh(ea,68,q,ga,A)|0,h,-14)}while(0);A=c[(W&p)>>2]|0;do if(!(A&4096)){z=k+(va*80|0)+781|0;if(!ba){a[(z&n)>>0]=9;break}else{a[(z&n)>>0]=8;break}}else a[(k+(va*80|0)&n)+781>>0]=-100;while(0);c[(k+(va*80|0)&p)+784>>2]=X;a[(k+(va*80|0)&n)+782>>0]=A>>>16&1;if(A&15){xa=459;break}a[(k+(va*80|0)&n)+783>>0]=1;xa=459;break}if(!(F&8192))if(!(D&8)){a[(k+(va*80|0)&n)+781>>0]=a[(ba&n)+33560>>0]|0;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=(wh(ea,d[(ba&n)+33568>>0]|0,q,J,0)|0)+1;a[(k+(va*80|0)&n)+783>>0]=1;xa=459;break}else{a[(k+(va*80|0)&n)+781>>0]=-100;xa=459;break}J=ja+68|0;aa=c[(J&p)>>2]|0;c[(J&p)>>2]=aa+1;_=ja+72|0;$=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=$;ba=xs(ea)|0;Z=c[(I+(K*72|0)&p)+24>>2]|0;l=c[(c[(N&p)+48>>2]&p)>>2]|0;S=c[(l&p)+12>>2]|0;a[(k+(va*80|0)&n)+781>>0]=18;c[(k+(va*80|0)&p)+784>>2]=$;D=a[(Ba&n)>>0]|0;do if((D&255)>1){I=(D&255)-va|0;F=I+-1|0;E=mh(ha,(F*72|0)+80|0,0)|0;if(!E)break z;D=I&255;c[(E&p)+4>>2]=D;c[(E&p)>>2]=D;D=E+8|0;K=D+0|0;C=Q+0|0;h=K+72|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));H=c[(Ca&p)>>2]|0;if((I|0)<2){Y=E;break}else I=1;while(1){K=D+(I*72|0)+0|0;C=H+((d[(k+((I+va|0)*80|0)&n)+780>>0]|0)*72|0)+8|0;h=K+72|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));if((I|0)<(F|0))I=I+1|0;else{Y=E;break}}}else Y=c[(Ca&p)>>2]|0;while(0);if(!(b[(Ea&o)>>1]&8)){if(!(a[(Z&n)+44>>0]&32)){D=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=D;wh(ea,28,0,D,0)|0}else{D=c[(Z&p)+8>>2]|0;C:do if(!D)D=0;else while(1){if((a[(D&n)+51>>0]&3)==2)break C;D=c[(D&p)+20>>2]|0;if(!D){D=0;break}}while(0);X=c[(J&p)>>2]|0;c[(J&p)>>2]=X+1;wh(ea,57,X,e[(D&o)+46>>1]|0,0)|0;W=c[(O&p)>>2]|0;xh(W,-1,hs(ja,D)|0,-6);D=X}W=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=W}else{W=0;D=0}X=wh(ea,25,0,$,0)|0;C=c[(ya&p)>>2]|0;do if((C|0)>1){E=0;I=0;do{H=c[(za&p)>>2]|0;V=H+(E*48|0)|0;F=c[(V&p)>>2]|0;do if((V|0)!=(l|0)){if(c[(F&p)+4>>2]&1)break;if(b[(H+(E*48|0)&o)+20>>1]&2)break;if(!(b[(H+(E*48|0)&o)+18>>1]&4095))break;I=ss(ha,I,Mr(ha,F,0,0)|0)|0;C=c[(ya&p)>>2]|0}while(0);E=E+1|0}while((E|0)<(C|0));C=I;if(!C){V=0;break}V=Zq(ja,72,0,C,0)|0}else V=0;while(0);U=S+12|0;do if((c[(U&p)>>2]|0)>0){x=S+20|0;w=(V|0)==0;v=Z+44|0;z=ea+32|0;A=ea+4|0;C=ea+24|0;E=Z+8|0;F=ja+60|0;H=ja+56|0;I=V+12|0;T=0;B=0;h=0;y=240;while(1){K=c[(x&p)>>2]|0;if((c[(K+(T*48|0)&p)+8>>2]|0)!=(q|0)?(b[(K+(T*48|0)&o)+18>>1]&512)==0:0)K=y;else xa=407;do if((xa|0)==407){xa=0;K=c[(K+(T*48|0)&p)>>2]|0;do if(!w){if(c[(K&p)+4>>2]&1)break;c[(I&p)>>2]=K;K=V}while(0);L=Vs(ja,Y,K,0,0,y,aa)|0;if(!L){K=y;break}Pu(ja,Y,L+736|0,va,d[(ca&n)>>0]|0,0);do if(!(b[(Ea&o)>>1]&8)){O=(T|0)==((c[(U&p)>>2]|0)+-1|0)?-1:T;do if(!(a[(v&n)>>0]&32)){J=wh(ea,130,D,0,ct(ja,Z,-1,q,W,0)|0)|0;xh(ea,J,O,-14)}else{K=c[(E&p)>>2]|0;D:do if(!K)K=0;else while(1){if((a[(K&n)+51>>0]&3)==2)break D;K=c[(K&p)+20>>2]|0;if(!K){K=0;break}}while(0);P=b[(K&o)+46>>1]|0;M=P&65535;S=c[(F&p)>>2]|0;Q=c[(H&p)>>2]|0;if((Q|0)<(M|0)){N=c[(_&p)>>2]|0;c[(_&p)>>2]=N+M;N=N+1|0}else{c[(F&p)>>2]=S+M;c[(H&p)>>2]=Q-M;N=S}if(P<<16>>16){Q=K+4|0;S=0;do{ct(ja,Z,b[((c[(Q&p)>>2]|0)+(S<<1)&o)>>1]|0,q,S+N|0,0)|0;S=S+1|0}while((S|0)<(M|0))}S=(O|0)!=0;if(S){J=wh(ea,69,D,0,N)|0;xh(ea,J,M,-14);if((O|0)>-1)xa=426}else{J=0;xa=426}do if((xa|0)==426){xa=0;wh(ea,49,N,M,W)|0;wh(ea,110,D,W,0)|0;if(!S)break;O=c[(A&p)>>2]|0;if(!O)break;a[(O+(((c[(z&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16}while(0);dt(ja,N,M);if((c[(H&p)>>2]|0)>=(M|0))break;c[(H&p)>>2]=M;c[(F&p)>>2]=N}while(0);wh(ea,17,$,ba,0)|0;if(!J)break;K=c[(z&p)>>2]|0;if(K>>>0>J>>>0)c[((c[(A&p)>>2]|0)+(J*20|0)&p)+8>>2]=K;c[((c[(C&p)>>2]|0)&p)+88>>2]=K+-1}else wh(ea,17,$,ba,0)|0;while(0);h=(a[(L&n)+39>>0]|0)==0?h:1;K=c[(L&p)+800>>2]|0;do if(!(c[(K&p)+36>>2]&512)){B=0;K=y}else{if((T|0)!=0?(c[(K&p)+28>>2]|0)!=(B|0):0){B=0;K=y;break}B=c[(K&p)+28>>2]|0;if((a[(v&n)>>0]&32)!=0?(a[(B&n)+51>>0]&3)==2:0){B=0;K=y;break}K=(y&65535|4096)&65535}while(0);Xs(L)}while(0);T=T+1|0;if((T|0)>=(c[(U&p)>>2]|0))break;else y=K}c[(k+(va*80|0)&p)+792>>2]=B;if(!B){v=h;break}c[(k+(va*80|0)&p)+744>>2]=aa;v=h}else{c[(k+(va*80|0)&p)+792>>2]=0;v=0}while(0);if(V){c[(V&p)+12>>2]=0;Gk(ha,V)}z=ea+32|0;h=c[(z&p)>>2]|0;if(h>>>0>X>>>0)c[((c[(ea&p)+4>>2]|0)+(X*20|0)&p)+4>>2]=h;wh(ea,16,0,c[(da&p)>>2]|0,0)|0;B=c[(ea&p)+24>>2]|0;A=~ba;do if((ba|0)<0){h=c[(B&p)+112>>2]|0;if(!h)break;c[(h+(A<<2)&p)>>2]=c[(z&p)>>2]}while(0);c[(B&p)+88>>2]=(c[(z&p)>>2]|0)+-1;if((d[(Ba&n)>>0]|0)>1)mg(ha,Y);if(v){xa=459;break}Ru(u,l);xa=459}else{xa=c[(I+(K*72|0)&p)+36>>2]|0;wh(ea,20,xa,0,c[(I+(K*72|0)&p)+32>>2]|0)|0;c[(k+(va*80|0)&p)+788>>2]=wh(ea,22,xa,J,0)|0;a[(k+(va*80|0)&n)+781>>0]=16;xa=459}while(0);if((xa|0)==459){xa=0;h=c[(ya&p)>>2]|0;do if((h|0)>0){x=k+(va*80|0)+772|0;y=ea+32|0;C=ea+4|0;D=ea+24|0;w=c[(za&p)>>2]|0;while(1){v=w+20|0;B=b[(v&o)>>1]|0;do if(!(B&6)){da=w+40|0;ca=ia;if(!((c[(ca&p)>>2]&c[(da&p)>>2]|0)==0?(c[(ca&p)+4>>2]&c[(da&p)+4>>2]|0)==0:0)){a[(ma&n)>>0]=1;break}A=c[(w&p)>>2]|0;if((c[(u&p)>>2]|0)!=0?(c[(A&p)+4>>2]&1|0)==0:0)break;do if(!(B&512))gt(ja,A,ga,16);else{z=wh(ea,46,c[(x&p)>>2]|0,0,0)|0;gt(ja,A,ga,16);if(!z)break;B=c[(y&p)>>2]|0;if(B>>>0>z>>>0)c[((c[(C&p)>>2]|0)+(z*20|0)&p)+8>>2]=B;c[((c[(D&p)>>2]|0)&p)+88>>2]=B+-1}while(0);b[(v&o)>>1]=e[(v&o)>>1]|4}while(0);h=h+-1|0;if((h|0)<=0)break;else w=w+48|0}x=c[(ya&p)>>2]|0;if((x|0)<=0){xa=475;break}z=c[(za&p)>>2]|0;while(1){do if(!(b[(z&o)+20>>1]&6)){if((b[(z&o)+18>>1]|0)!=1026)break;if((c[(z&p)+8>>2]|0)!=(q|0))break;if(c[(u&p)>>2]|0)break;B=c[(z&p)>>2]|0;h=Fu(Ia,q,c[(z&p)+12>>2]|0,t,s,3,0)|0;if(!h)break;if(b[(h&o)+20>>1]&4)break;A=mh(ha,48,0)|0;if(!A)break;K=A+0|0;C=(c[(h&p)>>2]|0)+0|0;h=K+48|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));c[(A&p)+12>>2]=c[(B&p)+12>>2];gt(ja,A,ga,16);mg(ha,A)}while(0);x=x+-1|0;if((x|0)<=0)break;else z=z+48|0}}else xa=475;while(0);if((xa|0)==475)xa=0;u=c[(u&p)>>2]|0;do if(u){c[(k+(va*80|0)&p)+764>>2]=c[(ea&p)+32>>2];wh(ea,25,1,u,0)|0;at(ja);u=c[(ya&p)>>2]|0;if((u|0)<=0)break;x=0;w=c[(za&p)>>2]|0;while(1){t=w+20|0;do if(!(b[(t&o)>>1]&6)){ea=w+40|0;da=ia;if(!((c[(da&p)>>2]&c[(ea&p)>>2]|0)==0?(c[(da&p)+4>>2]&c[(ea&p)+4>>2]|0)==0:0))break;gt(ja,c[(w&p)>>2]|0,ga,16);b[(t&o)>>1]=e[(t&o)>>1]|4;u=c[(ya&p)>>2]|0}while(0);x=x+1|0;if((x|0)>=(u|0))break;else w=w+48|0}}while(0);s=ia;t=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0}c[(Da&p)>>2]=c[(wa+(va*80|0)&p)+24>>2];va=va+1|0;if((va|0)>=(r|0))break a}}}while(0);if(Ja)k=0;else{c[(Fa&p)>>2]=c[(Ga&p)>>2];Xu(La,k);k=0}}else{c[(Na&p)>>2]=64;th(f,33504,Na);k=0}while(0);i=Pa;return k|0}function Ws(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=jw(a|0,b|0,-2,-1)|0;d=G}else{c=((a|0)!=0)<<31>>31;c=jw(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=G}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=jw(c|0,d|0,8,0)|0;a=mw(b|0,G|0,3-a|0)|0;b=G;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=jw(c|0,d|0,8,0)|0;a=iw(b|0,G|0,a+-3|0)|0;b=G}}else{b=0;a=1}while(0);G=b;return a|0}function Xs(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;F=c[(e&p)>>2]|0;G=c[(F&p)+8>>2]|0;I=c[(e&p)+4>>2]|0;J=c[(F&p)>>2]|0;at(F);K=e+41|0;g=a[(K&n)>>0]|0;if(!(g<<24>>24))f=G+24|0;else{f=G+24|0;s=G+32|0;u=G+4|0;r=g&255;do{r=r+-1|0;i=c[(e+(r*80|0)&p)+800>>2]|0;D=c[(e+(r*80|0)&p)+760>>2]|0;g=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(v=c[(g&p)+112>>2]|0,(v|0)!=0):0)c[(v+(h<<2)&p)>>2]=c[(s&p)>>2];c[(g&p)+88>>2]=(c[(s&p)>>2]|0)+-1;E=e+(r*80|0)+781|0;h=a[(E&n)>>0]|0;if(h<<24>>24!=-100?(wh(G,h&255,c[(e+(r*80|0)&p)+784>>2]|0,c[(e+(r*80|0)&p)+788>>2]|0,d[(e+(r*80|0)&n)+782>>0]|0)|0,x=c[(u&p)>>2]|0,(x|0)!=0):0)a[(x+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=a[(e+(r*80|0)&n)+783>>0]|0;w=i+36|0;if((c[(w&p)>>2]&2048|0)!=0?(y=e+(r*80|0)+792|0,z=c[(y&p)>>2]|0,(z|0)>0):0){D=c[(e+(r*80|0)&p)+752>>2]|0;k=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(A=c[(k&p)+112>>2]|0,(A|0)!=0):0){c[(A+(h<<2)&p)>>2]=c[(s&p)>>2];l=c[(y&p)>>2]|0;j=c[(s&p)>>2]|0;c[(k&p)+88>>2]=j+-1;g=e+(r*80|0)+796|0;if((l|0)>0)L=16}else{j=c[(s&p)>>2]|0;c[(k&p)+88>>2]=j+-1;g=e+(r*80|0)+796|0;l=z;L=16}if((L|0)==16){L=0;h=k;q=l;m=(c[(g&p)>>2]|0)+((l+-1|0)*12|0)|0;while(1){l=m+4|0;k=c[(l&p)>>2]|0;i=k+1|0;if(j>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=j;c[(h&p)+88>>2]=j+-1;wh(G,d[(m&n)+8>>0]|0,c[(m&p)>>2]|0,k,0)|0;l=(c[(l&p)>>2]|0)+-1|0;j=c[(s&p)>>2]|0;if(j>>>0>l>>>0)c[((c[(u&p)>>2]|0)+(l*20|0)&p)+8>>2]=j;h=c[(f&p)>>2]|0;c[(h&p)+88>>2]=j+-1;q=q+-1|0;if((q|0)<=0)break;else m=m+-12|0}}mg(J,c[(g&p)>>2]|0)}D=c[(e+(r*80|0)&p)+748>>2]|0;i=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(t=c[(i&p)+112>>2]|0,(t|0)!=0):0)c[(t+(h<<2)&p)>>2]=c[(s&p)>>2];h=c[(s&p)>>2]|0;c[(i&p)+88>>2]=h+-1;i=e+(r*80|0)+756|0;g=c[(i&p)>>2]|0;if(g){wh(G,16,0,g,0)|0;i=c[(i&p)>>2]|0;h=c[(s&p)>>2]|0;if(h>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=h;j=h+-1|0;g=(c[(f&p)>>2]|0)+88|0;c[(g&p)>>2]=j;i=i+-2|0;if(h>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=h;c[(g&p)>>2]=j}i=c[(e+(r*80|0)&p)+776>>2]|0;if(i){if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))h=(c[(u&p)>>2]|0)+((((i|0)<1?h:i)+-1|0)*20|0)|0;else h=29120;wh(G,(c[(h&p)+4>>2]|0)==0?141:140,c[(e+(r*80|0)&p)+772>>2]|0,i,0)|0}g=c[(e+(r*80|0)&p)+736>>2]|0;if(g){j=wh(G,137,g,0,0)|0;g=c[(w&p)>>2]|0;if(!(g&64)){wh(G,104,c[(I+(r*72|0)&p)+48>>2]|0,0,0)|0;g=c[(w&p)>>2]|0}if(g&512)wh(G,104,c[(e+(r*80|0)&p)+744>>2]|0,0,0)|0;g=c[(e+(r*80|0)&p)+764>>2]|0;if((a[(E&n)>>0]|0)==18)wh(G,17,c[(e+(r*80|0)&p)+784>>2]|0,g,0)|0;else wh(G,16,0,g,0)|0;g=c[(s&p)>>2]|0;if(g>>>0>j>>>0)c[((c[(u&p)>>2]|0)+(j*20|0)&p)+8>>2]=g;c[((c[(f&p)>>2]|0)&p)+88>>2]=g+-1}}while((r|0)>0)}D=c[(e&p)+52>>2]|0;g=c[(f&p)>>2]|0;f=~D;if((D|0)<0?(B=c[(g&p)+112>>2]|0,(B|0)!=0):0)c[(B+(f<<2)&p)>>2]=c[(G&p)+32>>2];E=G+32|0;c[(g&p)+88>>2]=(c[(E&p)>>2]|0)+-1;if(a[(K&n)>>0]|0){x=e+34|0;y=e+38|0;z=e+64|0;A=J+65|0;B=G+4|0;C=0;D=e+736|0;while(1){i=d[(D&n)+44>>0]|0;j=c[(I+(i*72|0)&p)+24>>2]|0;h=c[(D&p)+64>>2]|0;if((a[(I+(i*72|0)&n)+45>>0]&4)!=0?(a[(A&n)>>0]|0)==0:0){k=c[(E&p)>>2]|0;h=c[(D&p)+32>>2]|0;if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))g=(c[(B&p)>>2]|0)+(((h|0)<0?k+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(k|0)){l=c[(D&p)+4>>2]|0;j=I+(i*72|0)+40|0;i=g;while(1){g=i+4|0;do if((c[(g&p)>>2]|0)==(l|0)){f=a[(i&n)>>0]|0;if(f<<24>>24==103){a[(i&n)>>0]=28;c[(g&p)>>2]=0;c[(i&p)+12>>2]=0;break}else if(f<<24>>24==47){a[(i&n)>>0]=33;v=i+8|0;c[(g&p)>>2]=(c[(j&p)>>2]|0)+(c[(v&p)>>2]|0);w=i+12|0;c[(v&p)>>2]=c[(w&p)>>2];c[(w&p)>>2]=0;break}else break}while(0);h=h+1|0;if((h|0)==(k|0))break;else i=i+20|0}}}else L=64;do if((L|0)==64){L=0;w=j+44|0;if(((a[(w&n)>>0]&2)==0?(c[(j&p)+12>>2]|0)==0:0)?(b[(x&o)>>1]&16)==0:0){g=c[(h&p)+36>>2]|0;if((a[(y&n)>>0]|0)==0&(g&64|0)==0)wh(G,61,c[(I+(i*72|0)&p)+48>>2]|0,0,0)|0;if((g&17152|0)==512?(H=c[(D&p)+8>>2]|0,(H|0)!=(c[(z&p)>>2]|0)):0)wh(G,61,H,0,0)|0}g=c[(h&p)+36>>2]|0;if(!(g&576)){if(!(g&8192))break;g=D+56|0}else g=h+28|0;h=c[(g&p)>>2]|0;if((h|0)!=0?(a[(A&n)>>0]|0)==0:0){u=c[(E&p)>>2]|0;l=c[(D&p)+32>>2]|0;if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))k=(c[(B&p)>>2]|0)+(((l|0)<0?u+-1|0:l)*20|0)|0;else k=29120;if((l|0)<(u|0)){v=h+48|0;s=h+4|0;t=D+8|0;r=j+8|0;f=c[(D&p)+4>>2]|0;g=k;while(1){h=g+4|0;a:do if((c[(h&p)>>2]|0)==(f|0)){k=a[(g&n)>>0]|0;if(k<<24>>24==103){c[(h&p)>>2]=c[(t&p)>>2];a[(g&n)>>0]=112;break}else if(k<<24>>24!=47)break;i=g+8|0;k=c[(i&p)>>2]|0;if(a[(w&n)>>0]&32){j=r;while(1){j=c[(j&p)>>2]|0;if((a[(j&n)+51>>0]&3)==2)break;else j=j+20|0}k=b[((c[(j&p)+4>>2]|0)+(k<<1)&o)>>1]|0}q=k&65535;k=b[(v&o)>>1]|0;if(k<<16>>16){j=c[(s&p)>>2]|0;m=k&65535;k=0;while(1){if((b[(j+(k<<1)&o)>>1]|0)==q<<16>>16)break;k=k+1|0;if((k|0)>=(m|0))break a}if((k&65535)<<16>>16>-1){c[(i&p)>>2]=k<<16>>16;c[(h&p)>>2]=c[(t&p)>>2]}}}while(0);l=l+1|0;if((l|0)==(u|0))break;else g=g+20|0}}}}while(0);C=C+1|0;if((C|0)>=(d[(K&n)>>0]|0))break;else D=D+80|0}}c[(F&p)+424>>2]=c[(e&p)+56>>2];Xu(J,e);return}function Ys(a,b){a=a|0;b=b|0;var d=0,e=0;if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){Yu(a,c[(e&p)>>2]|0);d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0))break;else e=e+20|0}}return}function Zs(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();u=x;h=c[(e&p)+24>>2]|0;v=c[(h&p)>>2]|0;m=c[(h&p)+4>>2]|0;w=c[(h&p)+12>>2]|0;g=d[(f&n)>>0]|0;a:do if((g|0)==154|(g|0)==156)if((m|0)!=0?(l=c[(m&p)>>2]|0,(l|0)>0):0){s=f+28|0;r=c[(s&p)>>2]|0;g=0;h=m+8|0;while(1){if((r|0)==(c[(h&p)+40>>2]|0))break;g=g+1|0;if((g|0)>=(l|0)){e=1;break a}else h=h+72|0}q=w+28|0;k=w+32|0;h=c[(k&p)>>2]|0;b:do if((h|0)>0){m=f+32|0;e=0;l=c[(q&p)>>2]|0;while(1){if((c[(l&p)+4>>2]|0)==(r|0)?(c[(l&p)+8>>2]|0)==(b[(m&o)>>1]|0):0)break b;e=e+1|0;if((e|0)<(h|0))l=l+24|0;else break}}else e=0;while(0);c:do if((e|0)>=(h|0)){h=Ht(c[(v&p)>>2]|0,c[(q&p)>>2]|0,24,k,u)|0;c[(q&p)>>2]=h;e=c[(u&p)>>2]|0;if((e|0)>-1){c[(h+(e*24|0)&p)>>2]=c[(f&p)+44>>2];k=c[(s&p)>>2]|0;c[(h+(e*24|0)&p)+4>>2]=k;l=b[(f&o)+32>>1]|0;c[(h+(e*24|0)&p)+8>>2]=l<<16>>16;s=v+72|0;m=(c[(s&p)>>2]|0)+1|0;c[(s&p)>>2]=m;c[(h+(e*24|0)&p)+16>>2]=m;m=h+(e*24|0)+12|0;c[(m&p)>>2]=-1;c[(h+(e*24|0)&p)+20>>2]=f;h=c[(w&p)+24>>2]|0;d:do if((h|0)!=0?(t=c[(h&p)>>2]|0,(t|0)>0):0){g=0;h=c[(h&p)+4>>2]|0;while(1){s=c[(h&p)>>2]|0;if(((a[(s&n)>>0]|0)==-102?(c[(s&p)+28>>2]|0)==(k|0):0)?(b[(s&o)+32>>1]|0)==l<<16>>16:0)break;g=g+1|0;if((g|0)>=(t|0))break d;else h=h+20|0}c[(m&p)>>2]=g;if((g|0)>=0)break c}while(0);s=w+12|0;t=c[(s&p)>>2]|0;c[(s&p)>>2]=t+1;c[(m&p)>>2]=t}}while(0);c[(f&p)+40>>2]=w;a[(f&n)>>0]=-100;b[(f&o)+34>>1]=e;e=1}else e=1;else if(((g|0)==155?(b[(h&o)+28>>1]&8)==0:0)?(c[(e&p)+16>>2]|0)==(d[(f&n)+38>>0]|0):0){l=w+40|0;m=w+44|0;g=c[(m&p)>>2]|0;e:do if((g|0)>0){e=0;h=c[(l&p)>>2]|0;while(1){if(!(Cu(c[(h&p)>>2]|0,f,-1)|0))break e;e=e+1|0;if((e|0)<(g|0))h=h+16|0;else break}}else e=0;while(0);do if((e|0)>=(g|0)){k=c[(v&p)>>2]|0;q=a[(k&n)+62>>0]|0;k=Ht(k,c[(l&p)>>2]|0,16,m,u)|0;c[(l&p)>>2]=k;e=c[(u&p)>>2]|0;if((e|0)>-1){c[(k+(e<<4)&p)>>2]=f;l=v+72|0;m=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=m;c[(k+(e<<4)&p)+8>>2]=m;m=c[(v&p)>>2]|0;l=c[(f&p)+8>>2]|0;if(!l)g=0;else{h=l;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;g=h-l&1073741823}h=c[(f&p)+20>>2]|0;if(!h)h=0;else h=c[(h&p)>>2]|0;c[(k+(e<<4)&p)+4>>2]=Sh(m,l,g,h,q,0)|0;if(!(c[(f&p)+4>>2]&16)){c[(k+(e<<4)&p)+12>>2]=-1;break}else{s=v+68|0;t=c[(s&p)>>2]|0;c[(s&p)>>2]=t+1;c[(k+(e<<4)&p)+12>>2]=t;break}}}while(0);b[(f&o)+34>>1]=e;c[(f&p)+40>>2]=w;e=1}else e=0;while(0);i=x;return e|0}function _s(a,b){a=a|0;b=b|0;return 0}function $s(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((a[(b&n)+450>>0]|0)==2){g=c[(b&p)+8>>2]|0;h=c[(b&p)>>2]|0;c[(e&p)>>2]=d;e=uh(h,35e3,e)|0;xh(g,wh(g,157,c[(b&p)+464>>2]|0,0,0)|0,e,-1)}i=f;return}function at(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=b+19|0;i=0;j=b+116|0;while(1){e=j+12|0;f=c[(e&p)>>2]|0;if(f){g=j+6|0;if(a[(g&n)>>0]|0){h=a[(d&n)>>0]|0;if((h&255)<8){a[(d&n)>>0]=h+1<<24>>24;c[(b+((h&255)<<2)&p)+24>>2]=f}a[(g&n)>>0]=0}c[(e&p)>>2]=0}i=i+1|0;if((i|0)==10)break;else j=j+20|0}return}function bt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+32|0;if((i|0)>=(j|0))fa();z=B;g=f&255;s=34-(g&1)|0;v=c[(d&p)>>2]|0;if(!(a[(b&n)+23>>0]|0))f=g&253;if((v|0)>0){h=(f&2)==0;k=b+8|0;l=(s|0)==33;m=z+20|0;o=z+4|0;q=z+24|0;r=0;d=c[(d&p)+4>>2]|0;while(1){g=c[(d&p)>>2]|0;if(!h?(c[(z&p)>>2]=0,c[(z&p)+4>>2]=0,c[(z&p)+8>>2]=0,c[(z&p)+12>>2]=0,c[(z&p)+16>>2]=0,c[(z&p)+20>>2]=0,a[(m&n)>>0]=1,c[(z&p)>>2]=78,c[(o&p)>>2]=79,c[(q&p)>>2]=0,rs(z,g)|0,(a[(m&n)>>0]|0)!=0):0)Gt(b,g,r+e|0,0);else A=8;do if((A|0)==8?(A=0,t=r+e|0,u=is(b,g,t)|0,(u|0)!=(t|0)):0){f=c[(k&p)>>2]|0;if(l){if(!(a[((c[(f&p)>>2]|0)&n)+65>>0]|0))g=(c[(f&p)+4>>2]|0)+(((c[(f&p)+32>>2]|0)+-1|0)*20|0)|0;else g=29120;if(((a[(g&n)>>0]|0)==33?(w=g+12|0,x=c[(w&p)>>2]|0,((c[(g&p)+4>>2]|0)+1+x|0)==(u|0)):0)?(y=x+1|0,(y+(c[(g&p)+8>>2]|0)|0)==(t|0)):0){c[(w&p)>>2]=y;break}}wh(f,s,u,t,0)|0}while(0);r=r+1|0;if((r|0)==(v|0))break;else d=d+20|0}}i=B;return}function ct(d,e,f,g,h,i){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0;q=c[(d&p)+8>>2]|0;j=d+116|0;m=0;k=j;while(1){l=c[(k&p)+12>>2]|0;if(((l|0)>0?(c[(k&p)>>2]|0)==(g|0):0)?(b[(k&o)+4>>1]|0)==(f|0):0){h=l;m=5;break}m=m+1|0;if((m|0)>=10){m=10;break}else k=k+20|0}do if((m|0)==5){q=d+104|0;i=c[(q&p)>>2]|0;c[(q&p)>>2]=i+1;c[(k&p)+16>>2]=i;k=0;while(1){if((c[(j&p)+12>>2]|0)==(h|0))a[(j&n)+6>>0]=0;k=k+1|0;if((k|0)==10)break;else j=j+20|0}}else if((m|0)==10){nt(q,e,g,f,h);if(!(i<<24>>24)){Su(d,g,f,h);break}j=c[(q&p)+4>>2]|0;if(j)a[(j+(((c[(q&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=i}while(0);return h|0}function dt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=d+-1+e|0;g=b+19|0;k=0;l=b+116|0;while(1){h=l+12|0;i=c[(h&p)>>2]|0;if(!((i|0)<(d|0)|(i|0)>(e|0))){j=l+6|0;if(a[(j&n)>>0]|0){f=a[(g&n)>>0]|0;if((f&255)<8){a[(g&n)>>0]=f+1<<24>>24;c[(b+((f&255)<<2)&p)+24>>2]=i}a[(j&n)>>0]=0}c[(h&p)>>2]=0}k=k+1|0;if((k|0)==10)break;else l=l+20|0}return}function et(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;D=c[(d&p)+8>>2]|0;a[(e&n)>>0]=1;v=e+44|0;if((c[(v&p)>>2]|0)>0){w=D+4|0;y=d+56|0;z=d+60|0;r=D+24|0;s=D+32|0;t=e+36|0;u=d+72|0;A=0;B=c[(e&p)+40>>2]|0;f=0;while(1){k=c[((c[(B&p)>>2]|0)&p)+20>>2]|0;if(!k){g=0;i=0}else{g=c[(k&p)>>2]|0;i=c[(z&p)>>2]|0;h=c[(y&p)>>2]|0;if((h|0)<(g|0)){i=c[(u&p)>>2]|0;c[(u&p)>>2]=i+g;i=i+1|0}else{c[(z&p)>>2]=i+g;c[(y&p)>>2]=h-g}bt(d,k,i,1)}h=B+12|0;if((c[(h&p)>>2]|0)>-1){q=xs(D)|0;zu(d,c[(h&p)>>2]|0,q,1,i)}else q=0;m=B+4|0;h=c[(m&p)>>2]|0;if(b[(h&o)+2>>1]&32){if((g|0)>0){l=0;k=c[(k&p)+4>>2]|0;while(1){h=cu(d,c[(k&p)>>2]|0)|0;l=l+1|0;j=(h|0)!=0;if(!((l|0)<(g|0)&(j^1)))break;else k=k+20|0}if(!j)C=15}else C=15;if((C|0)==15){C=0;h=c[((c[(d&p)>>2]|0)&p)+8>>2]|0}if(!f)if(!(c[(t&p)>>2]|0))f=0;else{f=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=f}xh(D,wh(D,36,f,0,0)|0,h,-4);h=c[(m&p)>>2]|0}xh(D,wh(D,10,0,i,c[(B&p)+8>>2]|0)|0,h,-5);h=c[(w&p)>>2]|0;if(h)a[(h+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=g;dt(d,i,g);dt(d,i,g);if((c[(y&p)>>2]|0)<(g|0)){c[(y&p)>>2]=g;c[(z&p)>>2]=i}if(q){i=c[(r&p)>>2]|0;h=~q;if((q|0)<0?(x=c[(i&p)+112>>2]|0,(x|0)!=0):0)c[(x+(h<<2)&p)>>2]=c[(s&p)>>2];c[(i&p)+88>>2]=(c[(s&p)>>2]|0)+-1;at(d)}A=A+1|0;if((A|0)>=(c[(v&p)>>2]|0))break;else B=B+16|0}if(f)i=wh(D,45,f,0,0)|0;else i=0}else i=0;at(d);f=e+36|0;if((c[(f&p)>>2]|0)>0){g=0;h=c[(e&p)+28>>2]|0;while(1){Rq(d,c[(h&p)+20>>2]|0,c[(h&p)+16>>2]|0);g=g+1|0;if((g|0)>=(c[(f&p)>>2]|0))break;else h=h+24|0}}a[(e&n)>>0]=0;at(d);if(i){f=c[(D&p)+32>>2]|0;if(f>>>0>i>>>0)c[((c[(D&p)+4>>2]|0)+(i*20|0)&p)+8>>2]=f;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=f+-1}return}function ft(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[(a&p)+8>>2]|0;e=b+44|0;if((c[(e&p)>>2]|0)>0){f=0;b=c[(b&p)+40>>2]|0;while(1){a=c[((c[(b&p)>>2]|0)&p)+20>>2]|0;if(!a)a=0;else a=c[(a&p)>>2]|0;g=c[(b&p)+4>>2]|0;xh(d,wh(d,142,c[(b&p)+8>>2]|0,a,0)|0,g,-5);f=f+1|0;if((f|0)>=(c[(e&p)>>2]|0))break;else b=b+16|0}}return}function gt(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r+4|0;q=r;m=c[(b&p)+8>>2]|0;c[(o&p)>>2]=0;c[(q&p)>>2]=0;if(!((m|0)==0|(e|0)==0)){s=d[(e&n)>>0]|0;h=s^1;a:do switch(s|0){case 75:{if(g){fu(b,e,f,f);break a}k=xs(m)|0;fu(b,e,f,k);h=c[(m&p)+24>>2]|0;f=~k;if((k|0)<0?(l=c[(h&p)+112>>2]|0,(l|0)!=0):0)c[(l+(f<<2)&p)>>2]=c[(m&p)+32>>2];c[(h&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;break}case 71:{l=xs(m)|0;Zu(b,c[(e&p)+12>>2]|0,l,g^16);h=b+100|0;c[(h&p)>>2]=(c[(h&p)>>2]|0)+1;gt(b,c[(e&p)+16>>2]|0,f,g);f=c[(m&p)+24>>2]|0;h=~l;if((l|0)<0?(k=c[(f&p)+112>>2]|0,(k|0)!=0):0)c[(k+(h<<2)&p)>>2]=c[(m&p)+32>>2];c[(f&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;bu(b);break}case 72:{gt(b,c[(e&p)+12>>2]|0,f,g);m=b+100|0;c[(m&p)>>2]=(c[(m&p)>>2]|0)+1;gt(b,c[(e&p)+16>>2]|0,f,g);bu(b);break}case 79:case 78:case 83:case 80:case 81:case 82:{s=e+12|0;l=$t(b,c[(s&p)>>2]|0,o)|0;k=e+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(s&p)>>2]|0,c[(k&p)>>2]|0,h,l,m,f,g);break}case 148:case 73:{g=e+12|0;l=$t(b,c[(g&p)>>2]|0,o)|0;k=e+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(g&p)>>2]|0,c[(k&p)>>2]|0,(a[(e&n)>>0]|0)==73?78:79,l,m,f,128);break}case 19:{Zu(b,c[(e&p)+12>>2]|0,f,g);break}case 77:case 76:{wh(m,h,$t(b,c[(e&p)+12>>2]|0,o)|0,f,0)|0;break}case 74:{_u(b,e,f,0,g);break}default:{if(mu(e)|0){wh(m,16,0,f,0)|0;break a}if(!($u(e)|0))wh(m,46,$t(b,e,o)|0,f,(g|0)!=0&1)|0}}while(0);_r(b,c[(o&p)>>2]|0);_r(b,c[(q&p)>>2]|0)}i=r;return}function ht(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;f=c[(a&p)+8>>2]|0;g=b+44|0;if((c[(g&p)>>2]|0)!=(0-(c[(b&p)+32>>2]|0)|0)?(wh(f,28,0,c[(b&p)+16>>2]|0,c[(b&p)+20>>2]|0)|0,(c[(g&p)>>2]|0)>0):0){h=0;e=c[(b&p)+40>>2]|0;while(1){b=e+12|0;do if((c[(b&p)>>2]|0)>-1){d=c[((c[(e&p)>>2]|0)&p)+20>>2]|0;if((d|0)!=0?(c[(d&p)>>2]|0)==1:0){d=Us(a,d,0,0)|0;xh(f,wh(f,57,c[(b&p)>>2]|0,0,0)|0,d,-6);break}th(a,34944,k);c[(b&p)>>2]=-1}while(0);h=h+1|0;if((h|0)>=(c[(g&p)>>2]|0))break;else e=e+16|0}}i=l;return}function it(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)>0){e=wh(a,138,b,0,-1)|0;wh(a,16,0,d,0)|0;b=c[(a&p)+32>>2]|0;if(b>>>0>e>>>0)c[((c[(a&p)+4>>2]|0)+(e*20|0)&p)+8>>2]=b;c[((c[(a&p)+24>>2]|0)&p)+88>>2]=b+-1}return}function jt(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0;if((c[((c[(a&p)>>2]|0)&p)+24>>2]&8388608|0)!=0?(h=As(a,b)|0,(h|0)!=0):0){a=0;b=h;do{if((d[(b&n)+8>>0]|0|0)==(e|0)?(av(c[(b&p)+16>>2]|0,f)|0)!=0:0)a=d[(b&n)+9>>0]|0|a;b=c[(b&p)+32>>2]|0}while((b|0)!=0)}else{a=0;h=0}if(g)c[(g&p)>>2]=a;return ((a|0)!=0?h:0)|0}function kt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;h=a[(d&n)+44>>0]|0;if(h&16){g=c[(b&p)>>2]|0;f=d+60|0;while(1){f=c[(f&p)>>2]|0;if((c[(f&p)>>2]|0)==(g|0))break;else f=f+24|0}if(!(c[((c[(c[(f&p)+4>>2]&p)>>2]|0)&p)+52>>2]|0))g=8;else g=5}else g=5;do if((g|0)==5){if(((h&1)!=0?(c[((c[(b&p)>>2]|0)&p)+24>>2]&2048|0)==0:0)?(a[(b&n)+18>>0]|0)==0:0){g=8;break}if((e|0)==0?(c[(d&p)+12>>2]|0)!=0:0){c[(k&p)>>2]=c[(d&p)>>2];th(b,34456,k);f=1}else f=0}while(0);if((g|0)==8){c[(k&p)>>2]=c[(d&p)>>2];th(b,34424,k);f=1}i=l;return f|0}function lt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r;o=c[(b&p)>>2]|0;h=c[(d&p)+68>>2]|0;a:do if(h){g=c[(o&p)+20>>2]|0;if((g|0)>0){l=c[(o&p)+16>>2]|0;m=0;while(1){k=m+1|0;if((c[(l+(m<<4)&p)+12>>2]|0)==(h|0)){k=m;break a}if((k|0)<(g|0))m=k;else break}}else k=0}else k=-1e6;while(0);g=Mr(o,e,0,0)|0;h=pr(o,0,0,0)|0;if(h){c[(h&p)+16>>2]=kh(o,c[(d&p)>>2]|0)|0;c[(h&p)+12>>2]=kh(o,c[((c[(o&p)+16>>2]|0)+(k<<4)&p)>>2]|0)|0}e=kr(b,0,h,g,0,0,0,0,0,0)|0;a[(q&n)>>0]=12;c[(q&p)+4>>2]=f;a[(q&n)+1>>0]=0;c[(q&p)+8>>2]=0;c[(q&p)+12>>2]=0;ir(b,e,q)|0;Mk(o,e,1);i=r;return}function mt(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r+4|0;h=r;a:do if(c[((c[(a&p)>>2]|0)&p)+24>>2]&524288){if(!e){f=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,h)|0;if((f|0)!=0?(c[(f&p)+8>>2]|0)!=0:0)g=1;else g=(c[(d&p)+16>>2]|0)!=0;g=g&1;break}a=c[(d&p)+16>>2]|0;if(a){m=d+36|0;n=(f|0)!=0;do{h=c[(a&p)+20>>2]|0;if((h|0)>0){l=0;do{k=c[(a+(l<<3)&p)+36>>2]|0;if((c[(e+(k<<2)&p)>>2]|0)>-1){g=1;break a}l=l+1|0;if((k|0)==(b[(m&o)>>1]|0)&n){g=1;break a}}while((l|0)<(h|0))}a=c[(a&p)+4>>2]|0}while((a|0)!=0)}h=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,q)|0;if((h|0)!=0?(g=c[(h&p)+8>>2]|0,(g|0)!=0):0)while(1){if(bv(d,g,e,f)|0){g=1;break a}g=c[(g&p)+12>>2]|0;if(!g){g=0;break}}else g=0}else g=0;while(0);i=r;return g|0}function nt(e,f,g,h,i){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0;if((h|0)>=0?(b[(f&o)+36>>1]|0)!=(h|0):0){j=d[(f&n)+44>>0]|0;q=(j&16|0)!=0?150:47;if(!(j&32))j=h;else{j=c[(f&p)+8>>2]|0;a:do if(!j)j=0;else while(1){if((a[(j&n)+51>>0]&3)==2)break a;j=c[(j&p)+20>>2]|0;if(!j){j=0;break}}while(0);m=h&65535;k=b[(j&o)+48>>1]|0;b:do if(!(k<<16>>16))j=-1;else{l=c[(j&p)+4>>2]|0;k=k&65535;j=0;while(1){if((b[(l+(j<<1)&o)>>1]|0)==m<<16>>16)break b;j=j+1|0;if((j|0)>=(k|0)){j=-1;break}}}while(0);j=j<<16>>16}wh(e,q,g,j,i)|0}else wh(e,103,g,i,0)|0;if((h|0)>-1)Nt(e,f,h,i);return}function ot(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=f+16|0;g=c[(j&p)>>2]|0;do if(!g){h=c[(f&p)+12>>2]|0;g=c[(d&p)>>2]|0;i=f+48|0;d=qg((e[(i&o)>>1]|0)+1|0,0)|0;c[(j&p)>>2]=d;if(!d){a[(g&n)+65>>0]=1;g=0;break}if(!(b[(i&o)>>1]|0))g=0;else{f=f+4|0;h=h+4|0;g=0;do{d=b[((c[(f&p)>>2]|0)+(g<<1)&o)>>1]|0;if(d<<16>>16<0)d=68;else d=a[((c[(h&p)>>2]|0)+((d<<16>>16)*24|0)&n)+21>>0]|0;a[((c[(j&p)>>2]|0)+g&n)>>0]=d;g=g+1|0}while((g|0)<(e[(i&o)>>1]|0));d=c[(j&p)>>2]|0}a[(d+g&n)>>0]=0;g=c[(j&p)>>2]|0}while(0);return g|0}function pt(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;t=d+44|0;if(!(a[(t&n)>>0]&16)){k=c[(b&p)>>2]|0;m=c[(d&p)+68>>2]|0;a:do if(m){o=c[(k&p)+20>>2]|0;if((o|0)>0){k=c[(k&p)+16>>2]|0;l=0;while(1){j=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(m|0))break a;if((j|0)<(o|0))l=j;else{l=j;break}}}else l=0}else l=-1e6;while(0);s=Oq(b)|0;if((f|0)<0)f=c[(b&p)+68>>2]|0;k=f+1|0;r=(h|0)!=0;if(r)c[(h&p)>>2]=f;do if(!(a[(t&n)>>0]&32)){if((g|0)!=0?(a[(g&n)>>0]|0)==0:0){q=15;break}Qq(b,f,l,d,e)}else q=15;while(0);if((q|0)==15)gs(b,l,c[(d&p)+32>>2]|0,(e|0)==55&1,c[(d&p)>>2]|0);if(i)c[(i&p)>>2]=k;f=c[(d&p)+8>>2]|0;if(!f)j=0;else{m=(g|0)==0;d=b+8|0;o=k;j=0;while(1){k=o+1|0;if((a[(f&n)+51>>0]&3)==2?(a[(t&n)>>0]&32)!=0&r:0)c[(h&p)>>2]=o;j=j+1|0;if(!(!m?(a[(g+j&n)>>0]|0)==0:0)){wh(s,e,o,c[(f&p)+40>>2]|0,l)|0;q=c[(d&p)>>2]|0;xh(q,-1,hs(b,f)|0,-6)}f=c[(f&p)+20>>2]|0;if(!f)break;else o=k}}f=b+68|0;if((k|0)>(c[(f&p)>>2]|0))c[(f&p)>>2]=k}else j=0;return j|0}function qt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=c[(b&p)+408>>2]|0;h=(h|0)==0?b:h;g=h+452|0;b=c[(g&p)>>2]|0;e=c[(h&p)+520>>2]|0;a:do if((b|0)>0){f=0;while(1){if((c[(e+(f<<2)&p)>>2]|0)==(d|0))break a;f=f+1|0;if((f|0)>=(b|0)){i=4;break}}}else i=4;while(0);do if((i|0)==4){b=Xc(e,(b<<2)+4|0)|0;if(!b){a[((c[(h&p)>>2]|0)&n)+65>>0]=1;break}else{c[(h&p)+520>>2]=b;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+1;c[(b+(e<<2)&p)>>2]=d;break}}while(0);return}function rt(d,e,f,g,h,i,j,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;z=c[(d&p)+8>>2]|0;A=xs(z)|0;x=(a[(e&n)+44>>0]&32)>>>4^70;if(!(m<<24>>24))xh(z,wh(z,x,g,A,i)|0,j<<16>>16,-14);if((mt(d,e,0,0)|0)!=0|(f|0)!=0){t=l&255;u=vt(d,f,0,0,3,e,t)|0;u=ut(d,e)|0|u;r=d+72|0;q=c[(r&p)>>2]|0;m=q+1|0;v=e+38|0;c[(r&p)>>2]=m+(b[(v&o)>>1]|0);wh(z,33,i,m,0)|0;r=b[(v&o)>>1]|0;if(r<<16>>16>0){w=(u|0)==-1;s=q+2|0;q=0;do{if(!w){if((q|0)<32?(1<<q&u|0)!=0:0)y=9}else y=9;if((y|0)==9){y=0;nt(z,e,g,q,s+q|0);r=b[(v&o)>>1]|0}q=q+1|0}while((q|0)<(r<<16>>16|0))}w=z+32|0;v=c[(w&p)>>2]|0;xt(d,f,109,0,1,e,m,t,A);if((v|0)<(c[(w&p)>>2]|0))xh(z,wh(z,x,g,A,i)|0,j<<16>>16,-14);zt(d,e,m,0,0,0)}else m=0;if((c[(e&p)+12>>2]|0)==0?(At(d,e,g,h,0),wh(z,95,g,k<<24>>24!=0&1,0)|0,k<<24>>24!=0):0)xh(z,-1,c[(e&p)>>2]|0,0);Ct(d,e,0,m,0,0);xt(d,f,109,0,2,e,m,l&255,A);q=c[(z&p)+24>>2]|0;m=~A;if((A|0)<0?(B=c[(q&p)+112>>2]|0,(B|0)!=0):0)c[(B+(m<<2)&p)>>2]=c[(z&p)+32>>2];c[(q&p)+88>>2]=(c[(z&p)+32>>2]|0)+-1;return}function st(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0;j=c[(b&p)+8>>2]|0;d=c[(b&p)+404>>2]|0;if(d){l=(c[(b&p)>>2]|0)+16|0;m=b+19|0;o=b+72|0;q=j+32|0;r=j+4|0;k=j+24|0;do{f=c[(d&p)+8>>2]|0;g=c[(l&p)>>2]|0;i=c[(d&p)+12>>2]|0;e=a[(m&n)>>0]|0;if(!(e<<24>>24)){h=(c[(o&p)>>2]|0)+1|0;c[(o&p)>>2]=h}else{h=e+-1<<24>>24;a[(m&n)>>0]=h;h=c[(b+((h&255)<<2)&p)+24>>2]|0}Qq(b,0,f,c[((c[(g+(f<<4)&p)+12>>2]|0)&p)+72>>2]|0,55);g=i+1|0;f=wh(j,77,g,0,0)|0;wh(j,74,0,g,0)|0;e=c[(q&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(r&p)>>2]|0)+(f*20|0)&p)+8>>2]=e;c[((c[(k&p)>>2]|0)&p)+88>>2]=e+-1;wh(j,49,i+-1|0,2,h)|0;wh(j,75,0,h,g)|0;e=c[(r&p)>>2]|0;if(e)a[(e+(((c[(q&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(j,61,0,0,0)|0;_r(b,h);d=c[(d&p)>>2]|0}while((d|0)!=0)}return}function tt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;c[(g&p)>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[(g&p)+4>>2]=f;f=nr(b,d,g,0)|0;i=h;return f|0}function ut(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q+4|0;n=q;if(c[((c[(a&p)>>2]|0)&p)+24>>2]&524288){f=c[(d&p)+16>>2]|0;if(!f)e=0;else{e=0;do{g=c[(f&p)+20>>2]|0;if((g|0)>0){h=0;do{r=c[(f+(h<<3)&p)+36>>2]|0;e=((r|0)>31?-1:1<<r)|e;h=h+1|0}while((h|0)<(g|0))}f=c[(f&p)+4>>2]|0}while((f|0)!=0)}f=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,k)|0;if((f|0)!=0?(l=c[(f&p)+8>>2]|0,(l|0)!=0):0)do{c[(n&p)>>2]=0;Mt(a,d,l,n,0)|0;f=c[(n&p)>>2]|0;if((f|0)!=0?(m=b[(f&o)+46>>1]|0,m<<16>>16!=0):0){k=m&65535;h=c[(f&p)+4>>2]|0;g=0;do{f=b[(h+(g<<1)&o)>>1]|0;if(f<<16>>16>31)f=-1;else f=1<<(f<<16>>16);e=f|e;g=g+1|0}while((g|0)<(k|0))}l=c[(l&p)+12>>2]|0}while((l|0)!=0)}else e=0;i=q;return e|0}function vt(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;k=(e|0)!=0?110:109;if(!b)j=0;else{j=0;do{if((((d[(b&n)+8>>0]|0|0)==(k|0)?((d[(b&n)+9>>0]|0)&g|0)!=0:0)?(av(c[(b&p)+16>>2]|0,e)|0)!=0:0)?(l=cv(a,b,h,i)|0,(l|0)!=0):0)j=c[(l+(f<<2)&p)+16>>2]|j;b=c[(b&p)+32>>2]|0}while((b|0)!=0)}return j|0}function wt(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=e+20|0;g=c[(l&p)>>2]|0;do if(!g){i=c[(d&p)>>2]|0;k=e+38|0;h=(b[(k&o)>>1]|0)+1|0;h=qg(h,((h|0)<0)<<31>>31)|0;if(!h){a[(i&n)+65>>0]=1;break}if((b[(k&o)>>1]|0)>0){i=e+4|0;g=0;do{a[(h+g&n)>>0]=a[((c[(i&p)>>2]|0)+(g*24|0)&n)+21>>0]|0;g=g+1|0}while((g|0)<(b[(k&o)>>1]|0))}else g=0;do{a[(h+g&n)>>0]=0;if((g|0)<=0)break;g=g+-1|0}while((a[(h+g&n)>>0]|0)==65);c[(l&p)>>2]=h;j=10}else{h=g;j=10}while(0);do if((j|0)==10){g=h;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-h&1073741823;if(g)if(!f){xh(d,-1,h,g);break}else{xh(d,wh(d,48,f,g,0)|0,h,g);break}}while(0);return}function xt(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;if(b)do{if(((d[(b&n)+8>>0]|0|0)==(e|0)?(d[(b&n)+9>>0]|0|0)==(g|0):0)?(av(c[(b&p)+16>>2]|0,f)|0)!=0:0)dv(a,b,h,i,j,k);b=c[(b&p)+32>>2]|0}while((b|0)!=0);return}function yt(d,f,g,h,k,l,m,q,r,s,t){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+16|0;if((i|0)>=(j|0))fa();L=oa;ia=(m|0)!=0;Q=c[(d&p)>>2]|0;na=Oq(d)|0;D=b[(f&o)+38>>1]|0;la=f+44|0;if(!(a[(la&n)>>0]&32)){ha=1;ga=0}else{x=f+8|0;while(1){x=c[(x&p)>>2]|0;if((a[(x&n)+51>>0]&3)==2)break;else x=x+20|0}ha=e[(x&o)+46>>1]|0;ga=x}if(D<<16>>16>0){z=f+36|0;y=f+4|0;x=r<<24>>24==10;w=d+408|0;v=l+1|0;E=na+4|0;F=na+32|0;G=na+24|0;H=r&255;B=D<<16>>16;A=0;do{a:do if((A|0)!=(b[(z&o)>>1]|0)?(I=c[(y&p)>>2]|0,J=a[(I+(A*24|0)&n)+20>>0]|0,K=J&255,J<<24>>24!=0):0){if(x)if(J<<24>>24==10)ma=14;else{D=K;ma=11}else{D=H;ma=11}do if((ma|0)==11){ma=0;if((D|0)==5)D=(c[(I+(A*24|0)&p)+4>>2]|0)==0?2:5;if((D|0)==2){ma=14;break}else if((D|0)==3|(D|0)==1)break;else if((D|0)==4){wh(na,76,v+A|0,s,0)|0;break a}C=v+A|0;D=wh(na,77,C,0,0)|0;Rq(d,c[((c[(y&p)>>2]|0)+(A*24|0)&p)+4>>2]|0,C);C=c[(F&p)>>2]|0;if(C>>>0>D>>>0)c[((c[(E&p)>>2]|0)+(D*20|0)&p)+8>>2]=C;c[((c[(G&p)>>2]|0)&p)+88>>2]=C+-1;break a}while(0);if((ma|0)==14){ma=0;D=c[(w&p)>>2]|0;a[(((D|0)==0?d:D)&n)+21>>0]=1;D=2}ea=c[(I+(A*24|0)&p)>>2]|0;c[(L&p)>>2]=c[(f&p)>>2];c[(L&p)+4>>2]=ea;ea=uh(Q,27824,L)|0;xh(na,wh(na,23,1299,D,v+A|0)|0,ea,-1);D=c[(E&p)>>2]|0;if(D)a[(D+(((c[(F&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1}while(0);A=A+1|0}while((A|0)!=(B|0))}A=c[(f&p)+24>>2]|0;if(((A|0)!=0?(c[(Q&p)+24>>2]&8192|0)==0:0)?(c[(d&p)+92>>2]=l+1,(c[(A&p)>>2]|0)>0):0){z=A+4|0;v=na+24|0;B=na+32|0;D=0;x=r<<24>>24==10?2:r&255;while(1){C=xs(na)|0;Zu(d,c[((c[(z&p)>>2]|0)+(D*20|0)&p)>>2]|0,C,16);if((x|0)==4){wh(na,16,0,s,0)|0;w=4}else{y=c[((c[(z&p)>>2]|0)+(D*20|0)&p)+4>>2]|0;if(!y)y=c[(f&p)>>2]|0;w=(x|0)==5?2:x;zs(d,275,w,y,0,3)}y=c[(v&p)>>2]|0;x=~C;if((C|0)<0?(M=c[(y&p)+112>>2]|0,(M|0)!=0):0)c[(M+(x<<2)&p)>>2]=c[(B&p)>>2];c[(y&p)+88>>2]=(c[(B&p)>>2]|0)+-1;D=D+1|0;if((D|0)>=(c[(A&p)>>2]|0))break;else x=w}}if(q<<24>>24!=0&(ga|0)==0){z=xs(na)|0;v=a[(f&n)+45>>0]|0;if(r<<24>>24==10)v=v<<24>>24==10?2:v&255;else v=r&255;if(ia?(wh(na,79,l,z,m)|0,N=c[(na&p)+4>>2]|0,(N|0)!=0):0)a[(N+(((c[(na&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;b:do if(!((v|0)!=5|r<<24>>24==5)?(u=c[(f&p)+8>>2]|0,(u|0)!=0):0){while(1){if(((a[(u&n)+50>>0]|0)+-3&255)<2)break;u=c[(u&p)+20>>2]|0;if(!u){A=0;break b}}A=wh(na,16,0,0,0)|0}else A=0;while(0);wh(na,70,h,z,l)|0;c:do switch(v|0){case 4:{wh(na,16,0,s,0)|0;v=0;break}case 3:case 2:case 1:{ma=49;break}case 5:{if((c[(Q&p)+24>>2]&262144|0)!=0?(O=jt(d,f,109,0,0)|0,(O|0)!=0):0)v=O;else if(!(mt(d,f,0,0)|0)){if(!(c[(f&p)+8>>2]|0)){v=1;break c}v=c[(d&p)+408>>2]|0;a[(((v|0)==0?d:v)&n)+20>>0]=1;At(d,f,h,k,0);v=1;break c}else v=0;ea=c[(d&p)+408>>2]|0;a[(((ea|0)==0?d:ea)&n)+20>>0]=1;rt(d,f,v,h,k,l,1,0,5,1);v=1;break}default:{v=2;ma=49}}while(0);if((ma|0)==49){Ft(d,v,f);v=0}y=na+24|0;x=c[(y&p)>>2]|0;w=~z;if((z|0)<0?(P=c[(x&p)+112>>2]|0,(P|0)!=0):0)c[(P+(w<<2)&p)>>2]=c[(na&p)+32>>2];u=na+32|0;c[(x&p)+88>>2]=(c[(u&p)>>2]|0)+-1;if(!A){w=0;A=0}else{w=wh(na,16,0,0,0)|0;u=c[(u&p)>>2]|0;if(u>>>0>A>>>0)c[((c[(na&p)+4>>2]|0)+(A*20|0)&p)+8>>2]=u;c[((c[(y&p)>>2]|0)&p)+88>>2]=u+-1}}else{w=0;A=0;v=0}D=c[(f&p)+8>>2]|0;if(D){ba=l+1|0;ca=d+60|0;da=d+56|0;ea=d+72|0;T=q<<24>>24==0;U=na+24|0;V=na+32|0;W=r<<24>>24==10;X=na+4|0;Y=ga+46|0;Z=ga+32|0;_=ga+4|0;$=m+1|0;aa=d+408|0;R=Q+24|0;S=ha&65535;z=r&255;y=f+36|0;x=d+92|0;H=0;u=0;C=-1;while(1){O=g+(u<<2)|0;do if(c[(O&p)>>2]|0){if(!(H<<24>>24)){wt(na,f,ba);H=1}P=u+k|0;r=xs(na)|0;N=D+36|0;if(c[(N&p)>>2]|0){wh(na,28,0,c[(O&p)>>2]|0,0)|0;c[(x&p)>>2]=ba;gt(d,c[(N&p)>>2]|0,r,16);c[(x&p)>>2]=0}Q=D+48|0;I=b[(Q&o)>>1]|0;L=I&65535;K=c[(ca&p)>>2]|0;J=c[(da&p)>>2]|0;if((J|0)<(L|0)){q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+L;q=q+1|0}else{c[(ca&p)>>2]=K+L;c[(da&p)>>2]=J-L;q=K}if(!(I<<16>>16))M=C;else{M=D+4|0;J=0;do{B=b[((c[(M&p)>>2]|0)+(J<<1)&o)>>1]|0;L=B<<16>>16;if(B<<16>>16>=0?B<<16>>16!=(b[(y&o)>>1]|0):0){K=J+q|0;L=ba+L|0;ma=81}else{L=J+q|0;if((C|0)!=(L|0)){K=L;C=(c[(N&p)>>2]|0)==0?L:-1;L=l;ma=81}}if((ma|0)==81){ma=0;wh(na,34,L,K,0)|0;I=b[(Q&o)>>1]|0}J=J+1|0;L=I&65535}while((J|0)<(L|0));M=C}wh(na,49,q,L,c[(O&p)>>2]|0)|0;dt(d,q,e[(Q&o)>>1]|0);N=(ga|0)==(D|0);if(ia&N&T){C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ja=c[(C&p)+112>>2]|0,(ja|0)!=0):0)c[(ja+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}G=a[(D&n)+50>>0]|0;F=G&255;if(!(G<<24>>24)){C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ka=c[(C&p)+112>>2]|0,(ka|0)!=0):0)c[(ka+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}if(W)O=G<<24>>24==10?2:F;else O=z;C=e[(D&o)+46>>1]|0;xh(na,wh(na,67,P,r,q)|0,C,-14);do if(!N){L=c[(ca&p)>>2]|0;K=c[(da&p)>>2]|0;if((K|0)<(ha|0)){L=c[(ea&p)>>2]|0;c[(ea&p)>>2]=L+ha;L=L+1|0;break}else{c[(ca&p)>>2]=L+ha;c[(da&p)>>2]=K-ha;break}}else L=q;while(0);do if(ia|(O|0)==5){if(!(a[(la&n)>>0]&32)){wh(na,112,P,L,0)|0;if(!ia)break;wh(na,79,L,r,m)|0;G=c[(X&p)>>2]|0;if(!G)break;a[(G+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;break}do if(!N){if(!(b[(Y&o)>>1]|0))break;F=D+4|0;E=0;do{I=b[((c[(_&p)>>2]|0)+(E<<1)&o)>>1]|0;K=b[(Q&o)>>1]|0;d:do if(!(K<<16>>16))K=-1;else{G=c[(F&p)>>2]|0;J=K&65535;K=0;while(1){if((b[(G+(K<<1)&o)>>1]|0)==I<<16>>16)break d;K=K+1|0;if((K|0)>=(J|0)){K=-1;break}}}while(0);wh(na,47,P,K<<16>>16,E+L|0)|0;E=E+1|0}while((E|0)<(e[(Y&o)>>1]|0))}while(0);if(!ia)break;F=(a[(D&n)+51>>0]&3)==2?q:L;K=b[(Y&o)>>1]|0;if(!(K<<16>>16))break;J=(K&65535)+(c[(V&p)>>2]|0)|0;I=0;G=78;do{K=cr(d,c[((c[(Z&p)>>2]|0)+(I<<2)&p)>>2]|0)|0;C=(I|0)==((e[(Y&o)>>1]|0)+-1|0);J=C?r:J;G=C?79:G;xh(na,wh(na,G,$+(b[((c[(_&p)>>2]|0)+(I<<1)&o)>>1]|0)|0,J,I+F|0)|0,K,-4);K=c[(X&p)>>2]|0;if(K)a[(K+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;I=I+1|0}while((I|0)<(e[(Y&o)>>1]|0))}while(0);if((O|0)==3|(O|0)==2|(O|0)==1)nu(d,O,D);else if((O|0)==4)wh(na,16,0,s,0)|0;else{C=c[(aa&p)>>2]|0;a[(((C|0)==0?d:C)&n)+20>>0]=1;if(!(c[(R&p)>>2]&262144))G=0;else G=jt(d,f,109,0,0)|0;rt(d,f,G,h,k,L,S,0,5,N&1);v=1}K=c[(U&p)>>2]|0;J=~r;do if((r|0)<0){G=c[(K&p)+112>>2]|0;if(!G)break;c[(G+(J<<2)&p)>>2]=c[(V&p)>>2]}while(0);c[(K&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}if((L|0)==(q|0)){C=M;break}dt(d,L,ha);if((c[(da&p)>>2]|0)>=(ha|0)){C=M;break}c[(da&p)>>2]=ha;c[(ca&p)>>2]=L;C=M}while(0);D=c[(D&p)+20>>2]|0;if(!D)break;else u=u+1|0}}if(A){wh(na,16,0,A+1|0,0)|0;u=c[(na&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(na&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(na&p)+24>>2]|0)&p)+88>>2]=u+-1}c[(t&p)>>2]=v;i=oa;return}function zt(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;aa=i;i=i+32|0;if((i|0)>=(j|0))fa();T=aa+20|0;R=aa+16|0;P=aa+12|0;Q=aa+8|0;_=aa+4|0;Z=aa;V=c[(e&p)>>2]|0;O=e+438|0;U=a[(O&n)>>0]|0;Y=V+24|0;a:do if(c[(Y&p)>>2]&524288){S=f+68|0;m=c[(S&p)>>2]|0;b:do if(m){r=c[(V&p)+20>>2]|0;if((r|0)>0){q=c[(V&p)+16>>2]|0;u=0;while(1){t=u+1|0;if((c[(q+(u<<4)&p)+12>>2]|0)==(m|0)){t=u;break b}if((t|0)<(r|0))u=t;else break}}else t=0}else t=-1e6;while(0);N=c[((c[(V&p)+16>>2]|0)+(t<<4)&p)>>2]|0;A=c[(f&p)+16>>2]|0;if(!A)q=f;else{C=(k|0)==0;D=U<<24>>24==0;E=V+65|0;F=g+1|0;G=e+68|0;H=(g|0)==0;I=(h|0)==0;J=e+408|0;K=f+36|0;L=V+284|0;M=(l|0)!=0;B=A;do{c[(R&p)>>2]=0;c[(P&p)>>2]=0;c:do if(!C){A=c[(B&p)+8>>2]|0;if(dd(c[(f&p)>>2]|0,A)|0){z=c[(B&p)+20>>2]|0;if((z|0)>0){q=0;do{m=c[(B+(q<<3)&p)+36>>2]|0;if((c[(k+(m<<2)&p)>>2]|0)>-1){$=17;break c}q=q+1|0;if((m|0)==(b[(K&o)>>1]|0)&M){$=17;break c}}while((q|0)<(z|0))}}else $=17}else{A=c[(B&p)+8>>2]|0;$=17}while(0);do if(($|0)==17){$=0;if(!(a[(O&n)>>0]|0))y=sh(e,0,A,N)|0;else y=_h(V,A,N)|0;A=(y|0)==0;if(!A?(Mt(e,y,B,R,P)|0)==0:0){A=c[(P&p)>>2]|0;if(!A){c[(Q&p)>>2]=c[(B&p)+36>>2];A=Q}q=B+20|0;if((c[(q&p)>>2]|0)>0){w=c[(R&p)>>2]|0;r=(w|0)==0;u=y+36|0;v=y+4|0;w=w+4|0;m=0;x=0;do{z=A+(x<<2)|0;if((c[(z&p)>>2]|0)==(b[(K&o)>>1]|0))c[(z&p)>>2]=-1;if(c[(L&p)>>2]|0){if(r)z=u;else z=(c[(w&p)>>2]|0)+(x<<1)|0;m=(ev(e,c[(y&p)>>2]|0,c[((c[(v&p)>>2]|0)+((b[(z&o)>>1]|0)*24|0)&p)>>2]|0,t)|0)==2&1}x=x+1|0}while((x|0)<(c[(q&p)>>2]|0));z=y}else{z=y;m=0}gs(e,t,c[(y&p)+32>>2]|0,0,c[(z&p)>>2]|0);c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;if(!H)fv(e,t,y,c[(R&p)>>2]|0,B,A,g,-1,m);d:do if(!I){z=c[(J&p)>>2]|0;z=c[(((z|0)==0?e:z)&p)+528>>2]|0;do if(z){z=c[(z&p)>>2]|0;if((z|0)==(c[(B&p)+28>>2]|0)?(a[(B&n)+25>>0]|0)==7:0)break d;if((z|0)!=(c[(B&p)+32>>2]|0))break;if((a[(B&n)+26>>0]|0)==7)break d}while(0);fv(e,t,y,c[(R&p)>>2]|0,B,A,h,1,m)}while(0);mg(V,c[(P&p)>>2]|0);break}if(D)break a;if(a[(E&n)>>0]|0)break a;if(A){A=Oq(e)|0;z=B+20|0;q=c[(z&p)>>2]|0;m=(c[(A&p)+32>>2]|0)+1+q|0;if((q|0)>0){q=0;do{wh(A,76,F+(c[(B+(q<<3)&p)+36>>2]|0)|0,m,0)|0;q=q+1|0}while((q|0)<(c[(z&p)>>2]|0))}wh(A,134,d[(B&n)+24>>0]|0,-1,0)|0}}while(0);B=c[(B&p)+4>>2]|0}while((B|0)!=0);q=f;m=c[(S&p)>>2]|0}m=bn(m+56|0,c[(q&p)>>2]|0,T)|0;if((m|0)!=0?(s=c[(m&p)+8>>2]|0,W=V+65|0,(s|0)!=0):0){u=(k|0)!=0;v=e+408|0;w=e+20|0;x=e+68|0;y=(h|0)==0;z=(g|0)==0;A=u&1;t=U<<24>>24==0;do{c[(_&p)>>2]=0;c[(Z&p)>>2]=0;if(!(u?(bv(f,s,k,l)|0)==0:0))$=57;do if(($|0)==57){$=0;q=s+24|0;if((((a[(q&n)>>0]|0)==0?(c[(Y&p)>>2]&16777216|0)==0:0)?(c[(v&p)>>2]|0)==0:0)?(a[(w&n)>>0]|0)==0:0)break;if(Mt(e,f,s,_,Z)|0){if(t)break a;if(!(a[(W&n)>>0]|0))break;else break a}m=pr(V,0,0,0)|0;if(m){K=c[(s&p)>>2]|0;c[(m&p)+24>>2]=K;r=m+16|0;c[(r&p)>>2]=c[(K&p)>>2];K=K+40|0;b[(K&o)>>1]=(b[(K&o)>>1]|0)+1<<16>>16;K=c[(x&p)>>2]|0;c[(x&p)>>2]=K+1;c[(m&p)+48>>2]=K;if(!y)gv(e,m,f,c[(_&p)>>2]|0,s,c[(Z&p)>>2]|0,h,-1);if((!z?(X=a[(s+A&n)+25>>0]|0,gv(e,m,f,c[(_&p)>>2]|0,s,c[(Z&p)>>2]|0,g,1),(a[(q&n)>>0]|0)==0):0)?!(X<<24>>24==7|X<<24>>24==9):0){K=c[(v&p)>>2]|0;a[(((K|0)==0?e:K)&n)+21>>0]=1}c[(r&p)>>2]=0;Do(V,m)}mg(V,c[(Z&p)>>2]|0)}while(0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}}while(0);i=aa;return}function At(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))fa();u=v;t=c[(b&p)+8>>2]|0;l=c[(d&p)+8>>2]|0;a:do if(a[(d&n)+44>>0]&32){if(l){k=l;while(1){if((a[(k&n)+51>>0]&3)==2){s=5;break a}k=c[(k&p)+20>>2]|0;if(!k){k=0;s=5;break}}}}else{k=0;s=5}while(0);if((s|0)==5?(l|0)!=0:0){q=(h|0)==0;r=0;d=0;m=-1;while(1){if(q){if((l|0)!=(k|0))s=10}else if(!((l|0)==(k|0)?1:(c[(h+(r<<2)&p)>>2]|0)==0))s=10;if((s|0)==10){s=0;m=Pt(b,l,f,0,1,u,d,m)|0;wh(t,111,r+g|0,m,e[(((a[(l&n)+51>>0]&8)==0?l+48|0:l+46|0)&o)>>1]|0)|0;Qt(b,c[(u&p)>>2]|0);d=l}l=c[(l&p)+20>>2]|0;if(!l)break;else r=r+1|0}}i=v;return}function Bt(d,e,f,g,h,i,j,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=Oq(d)|0;t=c[(e&p)+8>>2]|0;if(!t){q=e+44|0;s=0}else{u=(l|0)!=0;q=e+44|0;v=u?17:1;w=z+4|0;x=z+32|0;s=0;y=0;m=t;while(1){r=i+(y<<2)|0;t=c[(r&p)>>2]|0;do if(t){if(c[(m&p)+36>>2]|0){wh(z,76,t,(c[(x&p)>>2]|0)+2|0,0)|0;t=c[(r&p)>>2]|0}wh(z,110,y+g|0,t,0)|0;if((a[(m&n)+51>>0]&3)==2){t=(a[(q&n)>>0]&32)!=0;if(t|u)s=t?v:16;else{s=1;break}}else if(u)s=16;else{s=1;break}t=c[(w&p)>>2]|0;if(!t)s=1;else{a[(t+(((c[(x&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=s;s=1}}while(0);m=c[(m&p)+20>>2]|0;if(!m)break;else y=y+1|0}}if(!(a[(q&n)>>0]&32)){r=h+1|0;q=d+19|0;m=a[(q&n)>>0]|0;if(!(m<<24>>24)){i=d+72|0;t=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=t}else{t=m+-1<<24>>24;a[(q&n)>>0]=t;t=c[(d+((t&255)<<2)&p)+24>>2]|0}q=e+38|0;wh(z,49,r,b[(q&o)>>1]|0,t)|0;if(!(s<<24>>24))wt(z,e,0);dt(d,r,b[(q&o)>>1]|0);r=d+18|0;if(!(a[(r&n)>>0]|0))m=(j|0)!=0?5:3;else m=0;if(k)m=(m&255|8)&255;if(!l)q=m;else q=(m&255|16)&255;wh(z,75,f,t,h)|0;if(!(a[(r&n)>>0]|0))xh(z,-1,c[(e&p)>>2]|0,0);m=c[(z&p)+4>>2]|0;if(m)a[(m+(((c[(z&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=q}return}function Ct(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;$=i;i=i+64|0;if((i|0)>=(j|0))fa();U=$+52|0;T=$+48|0;Y=$+8|0;X=$;W=$+40|0;Z=$+32|0;V=$+24|0;if(((c[((c[(d&p)>>2]|0)&p)+24>>2]&524288|0)!=0?(S=e+68|0,l=bn((c[(S&p)>>2]|0)+56|0,c[(e&p)>>2]|0,$+16|0)|0,(l|0)!=0):0)?(m=c[(l&p)+8>>2]|0,(m|0)!=0):0){R=(h|0)==0;K=(f|0)!=0;L=K&1;M=Z+4|0;N=W+4|0;O=e+4|0;P=V+4|0;Q=K?110:109;do{if(!(!R?(bv(e,m,h,k)|0)==0:0)){H=c[(d&p)>>2]|0;G=a[(m+L&n)+25>>0]|0;I=G&255;J=m+(L<<2)+28|0;f=c[(J&p)>>2]|0;do if(!(G<<24>>24==0|(f|0)!=0)){c[(U&p)>>2]=0;c[(T&p)>>2]=0;if(!(Mt(d,e,m,U,T)|0)){u=m+20|0;if((c[(u&p)>>2]|0)>0){A=34352;z=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;C=34360;B=c[(C&p)>>2]|0;C=c[(C&p)+4>>2]|0;D=m+36|0;F=G<<24>>24!=6&(G<<24>>24!=9|K);E=0;r=0;l=0;q=0;do{f=Y;c[(f&p)>>2]=z;c[(f&p)+4>>2]=A;f=X;c[(f&p)>>2]=B;c[(f&p)+4>>2]=C;f=c[(T&p)>>2]|0;if(!f)f=D;else f=f+(E<<2)|0;t=c[(f&p)>>2]|0;v=c[(U&p)>>2]|0;if(!v)x=34368;else x=c[((c[(O&p)>>2]|0)+((b[((c[(v&p)+4>>2]|0)+(E<<1)&o)>>1]|0)*24|0)&p)>>2]|0;c[(Z&p)>>2]=x;f=c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(t*24|0)&p)>>2]|0;c[(W&p)>>2]=f;if(!x)w=0;else{y=x;while(1)if(!(a[(y&n)>>0]|0))break;else y=y+1|0;w=y-x&1073741823}c[(M&p)>>2]=w;if(!f)s=0;else{x=f;while(1)if(!(a[(x&n)>>0]|0))break;else x=x+1|0;s=x-f&1073741823}c[(N&p)>>2]=s;y=Zq(d,27,0,0,Y)|0;y=Zq(d,122,y,Zq(d,27,0,0,Z)|0,0)|0;q=ss(H,q,Zq(d,79,y,Zq(d,27,0,0,W)|0,0)|0)|0;if(K){x=Zq(d,27,0,0,Y)|0;x=Zq(d,122,x,Zq(d,27,0,0,Z)|0,0)|0;y=Zq(d,27,0,0,X)|0;l=ss(H,l,Zq(d,73,x,Zq(d,122,y,Zq(d,27,0,0,Z)|0,0)|0,0)|0)|0}if(F){do if(G<<24>>24==8){f=c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(t*24|0)&p)+4>>2]|0;if(!f){f=Zq(d,101,0,0,0)|0;break}else{f=Mr(H,f,0,0)|0;break}}else if(G<<24>>24==9){f=Zq(d,27,0,0,X)|0;f=Zq(d,122,f,Zq(d,27,0,0,Z)|0,0)|0}else f=Zq(d,101,0,0,0)|0;while(0);r=lr(d,r,f)|0;mr(d,r,W,0)}E=E+1|0}while((E|0)<(c[(u&p)>>2]|0));f=m}else{f=m;r=0;l=0;q=0}mg(H,c[(T&p)>>2]|0);y=c[(c[(f&p)>>2]&p)>>2]|0;if(!y)s=0;else{f=y;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;s=f-y&1073741823}if(G<<24>>24==6){c[(V&p)>>2]=y;c[(P&p)>>2]=s;f=tt(H,57,34376)|0;if(f)a[(f&n)+1>>0]=2;x=lr(d,0,f)|0;x=kr(d,x,pr(H,0,V,0)|0,q,0,0,0,0,0,0)|0;w=0}else{x=0;w=q}t=H+250|0;u=a[(t&n)>>0]|0;a[(t&n)>>0]=0;f=s+77|0;v=mh(H,f,0)|0;if(v){fw(v|0,0,f|0)|0;q=v+36|0;c[(v&p)+28>>2]=q;G=v+76|0;c[(v&p)+48>>2]=G;c[(v&p)+52>>2]=s;kw(G|0,y|0,s|0)|0;c[(v&p)+56>>2]=Mr(H,w,1,0)|0;c[(v&p)+60>>2]=Pr(H,r,1)|0;c[(v&p)+44>>2]=gr(H,x,1)|0;if(!l){f=v;l=0}else{l=Zq(d,19,l,0,0)|0;c[(v&p)+12>>2]=Mr(H,l,1,0)|0;f=v}}else{f=0;q=0}a[(t&n)>>0]=u;Gk(H,w);Gk(H,l);Nk(H,r);Mk(H,x,1);if((a[(H&n)+65>>0]|0)==1){Kk(H,f);f=0;break}if((I|0)==6)a[(q&n)>>0]=119;else if((I|0)==9?!K:0)a[(q&n)>>0]=109;else _=49;if((_|0)==49){_=0;a[(q&n)>>0]=110}c[(q&p)+4>>2]=f;I=c[(S&p)>>2]|0;c[(v&p)+20>>2]=I;c[(v&p)+24>>2]=I;c[(J&p)>>2]=f;a[(v&n)+8>>0]=Q}else f=0}while(0);if(f)dv(d,f,e,g,2,0)}m=c[(m&p)+12>>2]|0}while((m|0)!=0)}i=$;return}function Dt(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0;f=b[(d&o)+46>>1]|0;a:do if(f<<16>>16==(b[(e&o)+46>>1]|0)?(a[(d&n)+50>>0]|0)==(a[(e&n)+50>>0]|0):0){if(f<<16>>16){g=c[(e&p)+4>>2]|0;h=c[(d&p)+4>>2]|0;i=e+28|0;j=d+28|0;k=e+32|0;l=d+32|0;s=0;do{if((b[(g+(s<<1)&o)>>1]|0)!=(b[(h+(s<<1)&o)>>1]|0)){f=0;break a}if((a[((c[(i&p)>>2]|0)+s&n)>>0]|0)!=(a[((c[(j&p)>>2]|0)+s&n)>>0]|0)){f=0;break a}m=c[((c[(k&p)>>2]|0)+(s<<2)&p)>>2]|0;q=c[((c[(l&p)>>2]|0)+(s<<2)&p)>>2]|0;r=(q|0)==0;if(!m){if(!r){f=0;break a}}else{if(r){f=0;break a}if(dd(m,q)|0){f=0;break a}}s=s+1|0}while((s|0)<(f&65535|0))}f=(Cu(c[(e&p)+36>>2]|0,c[(d&p)+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function Et(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[(e&n)+44>>0]&8))f=0;else{h=c[(b&p)+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[(g&p)>>2]|0;a:do if(!f)i=5;else while(1){if((c[(f&p)+4>>2]|0)==(e|0))break a;f=c[(f&p)>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=mh(c[(b&p)>>2]|0,16,0)|0;if(!f){f=0;break}c[(f&p)>>2]=c[(g&p)>>2];c[(g&p)>>2]=f;c[(f&p)+4>>2]=e;c[(f&p)+8>>2]=d;b=h+72|0;g=c[(b&p)>>2]|0;c[(f&p)+12>>2]=g+2;c[(b&p)>>2]=g+3}f=c[(f&p)+12>>2]|0}while(0);return f|0}function Ft(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;g=b[(e&o)+36>>1]|0;h=c[(a&p)>>2]|0;f=c[(e&p)>>2]|0;if(g<<16>>16>-1){g=c[((c[(e&p)+4>>2]|0)+((g<<16>>16)*24|0)&p)>>2]|0;c[(k&p)>>2]=f;c[(k&p)+4>>2]=g;g=1555;f=uh(h,27824,k)|0}else{c[(k&p)>>2]=f;g=2579;f=uh(h,34408,k)|0}zs(a,g,d,f,-1,2);i=l;return}function Gt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[(g&p)>>2]|0;d=lr(b,h,Mr(c[(b&p)>>2]|0,d,0,0)|0)|0;if(d){b=(c[(d&p)>>2]|0)+-1|0;h=c[(d&p)+4>>2]|0;c[(h+(b*20|0)&p)+16>>2]=e;b=h+(b*20|0)+13|0;a[(b&n)>>0]=a[(b&n)>>0]&-5|f<<2&4}c[(g&p)>>2]=d;return}function Ht(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=c[(e&p)>>2]|0;if(!(g+-1&g)){i=ca((g|0)==0?1:g<<1,d)|0;a=ro(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[(f&p)>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){fw(a+(ca(g,d)|0)|0,0,d|0)|0;c[(f&p)>>2]=g;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}return a|0}function It(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;c[(h&p)>>2]=0;b=c[(a&p)+12>>2]|0;if((b|0)!=0?(d=c[(b&p)+24>>2]|0,(d|0)>0):0){c[(h&p)>>2]=d;b=d}else b=0;d=c[(a&p)+16>>2]|0;if((d|0)!=0?(e=c[(d&p)+24>>2]|0,(e|0)>(b|0)):0)c[(h&p)>>2]=e;f=a+4|0;b=a+20|0;if(!(c[(f&p)>>2]&2048)){d=c[(b&p)>>2]|0;if(d){tu(d,h);b=c[(b&p)>>2]|0;if((b|0)!=0?(g=c[(b&p)>>2]|0,(g|0)>0):0){e=c[(b&p)+4>>2]|0;d=0;b=0;do{b=c[((c[(e+(d*20|0)&p)>>2]|0)&p)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[(f&p)>>2]=c[(f&p)>>2]|b}}else Es(c[(b&p)>>2]|0,h);c[(a&p)+24>>2]=(c[(h&p)>>2]|0)+1;i=k;return}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Oq(b)|0;i=b+72|0;h=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=h;b=mh(c[(b&p)>>2]|0,8,0)|0;if(b){i=b;c[(i&p)>>2]=e;c[(i&p)+4>>2]=f}xh(g,wh(g,26,0,h,0)|0,b,-13);iq(g,1);if(!(a[((c[(g&p)>>2]|0)&n)+65>>0]|0))Xg(c[(g&p)+16>>2]|0,d,-1,1,0)|0;wh(g,35,h,1,0)|0;return}function Kt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;d=c[(b&p)>>2]|0;e=d+16|0;f=c[((c[(e&p)>>2]|0)&p)+20>>2]|0;do if(!f)d=0;else{if((a[(d&n)+63>>0]|0)!=0?(a[(f&n)+8>>0]|0)==0:0){Ml(f);c[((c[(e&p)>>2]|0)&p)+20>>2]=0;Eg(d);d=0;break}th(b,32128,g);d=1}while(0);i=h;return d|0}function Lt(b){b=b|0;var e=0,f=0,g=0;if((a[(b&n)+63>>0]|0)!=0?(e=c[(b&p)+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[(b&p)+16>>2]|0;while(1){e=e+-1|0;b=c[(f&p)+4>>2]|0;if(b)to(b,c[(g&p)>>2]&28|d[(f&n)+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function Mt(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=i;i=i+16|0;if((i|0)>=(j|0))fa();z=C;A=c[(g&p)+20>>2]|0;m=c[(g&p)+40>>2]|0;if((A|0)==1){v=b[(f&o)+36>>1]|0;l=v<<16>>16;if(v<<16>>16>-1)if((m|0)!=0?(dd(c[((c[(f&p)+4>>2]|0)+(l*24|0)&p)>>2]|0,m)|0)!=0:0){y=0;B=8}else k=0;else{y=0;B=8}}else if(k){l=mh(c[(d&p)>>2]|0,A<<2,0)|0;if(!l)k=1;else{c[(k&p)>>2]=l;y=l;B=8}}else{y=0;B=8}a:do if((B|0)==8){k=c[(f&p)+8>>2]|0;b:do if(k){v=(m|0)==0;x=(A|0)>0;u=f+4|0;w=(y|0)==0;c:while(1){do if((e[(k&o)+46>>1]|0)==(A|0)?(a[(k&n)+50>>0]|0)!=0:0){if(v)if((a[(k&n)+51>>0]&3)==2){B=16;break c}else break;d:do if(x){q=c[(k&p)+4>>2]|0;r=c[(u&p)>>2]|0;s=c[(k&p)+32>>2]|0;t=0;while(1){f=b[(q+(t<<1)&o)>>1]|0;m=c[(r+(f*24|0)&p)+16>>2]|0;if(dd(c[(s+(t<<2)&p)>>2]|0,(m|0)!=0?m:11152)|0){m=t;break d}m=c[(r+(f*24|0)&p)>>2]|0;l=0;while(1){f=l+1|0;if(!(dd(c[(g+(l<<3)&p)+40>>2]|0,m)|0)){f=l;B=23;break}if((f|0)<(A|0))l=f;else break}if((B|0)==23){B=0;if(!w)c[(y+(t<<2)&p)>>2]=c[(g+(f<<3)&p)+36>>2]}m=t+1|0;if((f|0)==(A|0)){m=t;break d}if((m|0)<(A|0))t=m;else break}}else m=0;while(0);if((m|0)==(A|0))break c}while(0);k=c[(k&p)+20>>2]|0;if(!k)break b}if((B|0)==16)if(!(w|x^1)){l=0;do{c[(y+(l<<2)&p)>>2]=c[(g+(l<<3)&p)+36>>2];l=l+1|0}while((l|0)!=(A|0))}c[(h&p)>>2]=k;k=0;break a}while(0);if(!(a[(d&n)+438>>0]|0)){v=c[(g&p)+8>>2]|0;c[(z&p)>>2]=c[(c[(g&p)>>2]&p)>>2];c[(z&p)+4>>2]=v;th(d,32008,z)}mg(c[(d&p)>>2]|0,y);k=1}while(0);i=C;return k|0}function Nt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if(!(c[(d&p)+12>>2]|0)){c[(h&p)>>2]=0;l=c[(b&p)>>2]|0;g=d+4|0;d=c[(g&p)>>2]|0;Zr(l,c[(d+(e*24|0)&p)+4>>2]|0,a[(l&n)+62>>0]|0,a[(d+(e*24|0)&n)+21>>0]|0,h)|0;d=c[(h&p)>>2]|0;if(d)xh(b,-1,d,-8);if((a[((c[(g&p)>>2]|0)+(e*24|0)&n)+21>>0]|0)==69)wh(b,39,f,0,0)|0}i=k;return}function Ot(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Sh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[(g&o)>>1]=e[(g&o)>>1]|f&255}return}function Pt(d,e,f,g,h,i,j,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=c[(d&p)+8>>2]|0;u=c[(e&p)+12>>2]|0;do if(i){l=e+36|0;if(!(c[(l&p)>>2]|0)){c[(i&p)>>2]=0;break}else{c[(i&p)>>2]=xs(t)|0;c[(d&p)+96>>2]=f;s=d+100|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;gt(d,c[(l&p)>>2]|0,c[(i&p)>>2]|0,16);break}}while(0);if((h|0)!=0?(a[(e&n)+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[(l&o)>>1]|0;q=l&65535;r=d+60|0;h=c[(r&p)>>2]|0;s=d+56|0;i=c[(s&p)>>2]|0;if((i|0)<(q|0)){h=d+72|0;m=c[(h&p)>>2]|0;c[(h&p)>>2]=m+q;m=m+1|0}else{c[(r&p)>>2]=h+q;c[(s&p)>>2]=i-q;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[(j&p)+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[((c[(k&p)>>2]|0)+(l<<1)&o)>>1]|0;if((b[((c[(i&p)>>2]|0)+(l<<1)&o)>>1]|0)!=h<<16>>16)v=21}else{h=b[((c[(k&p)>>2]|0)+(l<<1)&o)>>1]|0;v=21}if((v|0)==21){v=0;nt(t,u,f,h<<16>>16,l+m|0);Pq(t,39)|0}l=l+1|0}while((l|0)<(q|0))}if(g)wh(t,49,m,q,g)|0;dt(d,m,q);if((c[(s&p)>>2]|0)<(q|0)){c[(s&p)>>2]=q;c[(r&p)>>2]=m}return m|0}function Qt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[(a&p)+8>>2]|0;e=c[(d&p)+24>>2]|0;f=~b;if((b|0)<0?(g=c[(e&p)+112>>2]|0,(g|0)!=0):0)c[(g+(f<<2)&p)>>2]=c[(d&p)+32>>2];c[(e&p)+88>>2]=(c[(d&p)+32>>2]|0)+-1;bu(a)}return}function Rt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(d&p)+16>>2]|0;a:do if((e|0)!=0?(f=c[(d&p)+64>>2]|0,(f|0)!=0):0){e=c[(e&p)+8>>2]|0;b:do if(e){while(1){if(!(dd(c[(e&p)>>2]|0,f)|0))break;e=c[(e&p)+20>>2]|0;if(!e)break b}c[(d&p)+68>>2]=e;e=0;break a}while(0);c[(g&p)>>2]=f;c[(g&p)+4>>2]=0;th(b,28104,g);a[(b&n)+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function St(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Tt(a,b)|0;if(b&1){e=St(c[(a&p)+12>>2]|0,b)|0;return e+d+(St(c[(a&p)+16>>2]|0,b)|0)|0}}else d=0;return d|0} [all...] |
H A D | sqlite-change-heap.js | 6 function cs(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,n=0,o=0,q=0,t=0,u=0,v=0,w=0,x=0;x=r;r=r+16|0;if((r|0)>=(s|0))ka();u=x;v=x+8|0;k[v>>2]=0;a:do if(!b){k[e>>2]=0;f=0}else{g=i[b>>0]|0;if(g<<24>>24==-98)do{b=k[b+12>>2]|0;g=i[b>>0]|0}while(g<<24>>24==-98);if(g<<24>>24==-97)n=l[b+38>>0]|0;else n=g&255;if((n|0)==157){b=k[b+12>>2]|0;n=i[b>>0]|0;if((n&-2)<<24>>24==-124){h=-1;g=-1;t=n&255;n=26016;w=12}else w=30}else if((n|0)==38){h=ar(k[b+8>>2]|0,0)|0;f=cs(a,k[b+12>>2]|0,c,h,e)|0;g=k[e>>2]|0;if(!g)break;lm(g,h,1);km(k[e>>2]|0,d,1);break}else{h=1;g=0;t=n;n=10360;w=12}b:do if((w|0)==12){c:do switch(t|0){case 97:case 132:case 133:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;do if(!(k[b+4>>2]&1024)){h=k[b+8>>2]|0;k[u>>2]=n;k[u+4>>2]=h;h=zh(a,19456,u)|0;if(!h)break c;if(f)ah(f,h,-1,1,75)|0}else{n=k[b+8>>2]|0;n=xw(n|0,((n|0)<0)<<31>>31|0,h|0,g|0)|0;h=L;b=f+8|0;if(!(j[b>>1]&9312)){v=f;k[v>>2]=n;k[v+4>>2]=h;j[b>>1]=4;break}else{ch(f,n,h);break}}while(0);if((t&-2|0)==132&d<<24>>24==65)km(f,67,1);else km(f,d,1);g=f+8|0;b=m[g>>1]|0;if(b&12)j[g>>1]=b&65533;if(c<<24>>24==1){g=f;f=0;break b}g=f;f=bm(f,c&255)|0;break b}case 101:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}else{o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;g=f;f=0;break b}}case 157:{b=k[b+12>>2]|0;w=30;break b}case 134:{f=rh(a,40,0)|0;if(!f){k[v>>2]=f;break c}o=f+0|0;q=o+40|0;do{i[o>>0]=0;o=o+1|0}while((o|0)<(q|0));j[f+8>>1]=1;k[f+32>>2]=a;k[v>>2]=f;g=(k[b+8>>2]|0)+2|0;b=g;while(1)if(!(i[b>>0]|0))break;else b=b+1|0;v=(b-g&1073741823)+-1|0;ah(f,bu(a,g,v)|0,(v|0)/2|0,0,75)|0;g=f;f=0;break b}default:{g=0;f=0;break b}}while(0);i[a+65>>0]=1;rg(a,0);Rh(f);f=7;break a}while(0);if((w|0)==30){u=(cs(a,b,c,d,v)|0)==0;g=k[v>>2]|0;if(u&(g|0)!=0){tp(g);h=g+8|0;b=j[h>>1]|0;do if(!(b&8)){n=g;f=k[n>>2]|0;n=k[n+4>>2]|0;if((f|0)==0&(n|0)==-2147483648){p[g>>3]=9223372036854775808.0;j[h>>1]=b&48640|8;break}else{u=iw(0,0,f|0,n|0)|0;v=g;k[v>>2]=u;k[v+4>>2]=L;break}}else p[g>>3]=-+p[g>>3];while(0);km(g,d,c);f=0}else f=0}k[e>>2]=g}while(0);r=x;return f|0}function ds(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;do if((b|0)!=0?(e=a+19|0,f=i[e>>0]|0,(f&255)<8):0){d=0;c=a+116|0;while(1){if((k[c+12>>2]|0)==(b|0)){d=5;break}d=d+1|0;if((d|0)>=10){d=7;break}else c=c+20|0}if((d|0)==5){i[c+6>>0]=1;break}else if((d|0)==7){i[e>>0]=f+1<<24>>24;k[a+((f&255)<<2)+24>>2]=b;break}}while(0);return}function es(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0;m=r;r=r+32|0;if((r|0)>=(s|0))ka();l=m;c=a+484|0;h=k[c>>2]|0;j=k[a>>2]|0;do if((h|0)!=0?(gs(a),k[a+512>>2]=0,(k[h+52>>2]|0)>=1):0){if(i[j+145>>0]|0)if(!(Nk((k[h+68>>2]|0)+8|0,k[h>>2]|0,h)|0)){k[c>>2]=0;break}else{i[j+65>>0]=1;break}if(b)k[a+500>>2]=(k[b>>2]|0)-(k[a+496>>2]|0)+(k[b+4>>2]|0);k[l>>2]=a+496;g=zh(j,25256,l)|0;b=k[h+68>>2]|0;a:do if(b){d=k[j+20>>2]|0;if((d|0)>0){e=k[j+16>>2]|0;f=0;while(1){c=f+1|0;if((k[e+(f<<4)+12>>2]|0)==(b|0)){c=f;break a}if((c|0)<(d|0))f=c;else break}}else c=0}else c=-1e6;while(0);e=k[h>>2]|0;f=k[a+384>>2]|0;k[l>>2]=k[(k[j+16>>2]|0)+(c<<4)>>2];k[l+4>>2]=(c|0)==1?13184:13208;k[l+8>>2]=e;k[l+12>>2]=e;k[l+16>>2]=g;k[l+20>>2]=f;Gr(a,25280,l);rg(j,g);g=Tq(a)|0;Ir(a,c);Bh(g,144,0,0,0)|0;k[l>>2]=k[h>>2];Nr(g,c,zh(j,25368,l)|0);a=a+72|0;l=(k[a>>2]|0)+1|0;k[a>>2]=l;a=k[h>>2]|0;Ch(g,Bh(g,97,0,l,0)|0,a,0);Bh(g,147,c,l,0)|0}while(0);r=m;return}function fs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;g=b+52|0;h=k[g>>2]|0;d=h+1|0;k[g>>2]=d;f=(h<<2)+8|0;e=b+56|0;f=wo(a,k[e>>2]|0,f,((f|0)<0)<<31>>31)|0;if(!f){if((h|0)>0){b=0;do{rg(a,k[(k[e>>2]|0)+(b<<2)>>2]|0);b=b+1|0}while((b|0)!=(h|0))}rg(a,c);rg(a,k[e>>2]|0);k[g>>2]=0}else{k[f+(h<<2)>>2]=c;k[f+(d<<2)>>2]=0}k[e>>2]=f;return}function gs(a){a=a|0;var b=0,c=0,d=0,e=0;b=k[a+512>>2]|0;if((b|0)!=0?(e=k[a+484>>2]|0,(e|0)!=0):0){c=k[a+516>>2]|0;d=k[a>>2]|0;a=ow(c|0,((c|0)<0)<<31>>31|0,1,0)|0;a=rh(d,a,L)|0;if(!a)a=0;else{pw(a|0,b|0,c|0)|0;i[a+c>>0]=0}fs(d,e,a)}return}function hs(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();h=m;j=k[a>>2]|0;l=$q(j,c)|0;g=(b|0)!=0;if((l|0)!=0&g?(f=k[b>>2]|0,(f|0)>0):0){c=f;f=0;do{if(!(id(l,k[b+(f<<4)+8>>2]|0)|0)){k[h>>2]=l;yh(a,25184,h);c=k[b>>2]|0}f=f+1|0}while((f|0)<(c|0))}if(g){f=(k[b>>2]<<4)+24|0;f=wo(j,b,f,((f|0)<0)<<31>>31)|0;if(!f)c=10;else{b=f;c=11}}else{c=rh(j,24,0)|0;if(!c)c=10;else{f=c+0|0;b=f+24|0;do{i[f>>0]=0;f=f+1|0}while((f|0)<(b|0));b=c;c=11}}if((c|0)==10){Sk(j,d);Rk(j,e,1);rg(j,l)}else if((c|0)==11){j=b+8|0;k[j+(k[b>>2]<<4)+8>>2]=e;e=k[b>>2]|0;k[j+(e<<4)+4>>2]=d;k[j+(e<<4)>>2]=l;k[j+(e<<4)+12>>2]=0;k[b>>2]=e+1}r=m;return b|0}function is(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,j=0;j=r;r=r+96|0;if((r|0)>=(s|0))ka();h=j+48|0;c=j;d=k[k[a+32>>2]>>2]|0;e=h+0|0;f=d+0|0;g=e+48|0;do{i[e>>0]=i[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));if((i[a+43>>0]|0)!=2){e=k[a+4>>2]|0;hc[k[(k[e>>2]|0)+60>>2]&31](e)}e=c+0|0;f=d+48|0;g=e+48|0;do{i[e>>0]=i[f>>0]|0;e=e+1|0;f=f+1|0}while((e|0)<(g|0));if((cw(h,c,48)|0)==0?(i[h+12>>0]|0)!=0:0){f=h+40|0;g=h;d=0;c=0;do{d=d+c+(k[g>>2]|0)|0;c=d+c+(k[g+4>>2]|0)|0;g=g+8|0}while(g>>>0<f>>>0);if((d|0)==(k[f>>2]|0)?(c|0)==(k[h+44>>2]|0):0){c=a+52|0;if(!(cw(c,h,48)|0))c=0;else{k[b>>2]=1;e=c+0|0;f=h+0|0;g=e+48|0;do{k[e>>2]=k[f>>2];e=e+4|0;f=f+4|0}while((e|0)<(g|0));c=m[a+66>>1]|0;k[a+36>>2]=c<<16&65536|c&65024;c=0}}else c=1}else c=1;r=j;return c|0}function js(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;b=yc[k[(k[a>>2]|0)+8>>2]&31](a,e,4,b,c)|0;if(!b)k[d>>2]=(l[e+1>>0]|0)<<16|(l[e>>0]|0)<<24|(l[e+2>>0]|0)<<8|(l[e+3>>0]|0);r=f;return b|0}function ks(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=nw(a|0,b|0,1)|0;b=L}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;e=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){d=b;c=40;while(1){c=(c&65535)+40|0;e=rw(a|0,d|0,4)|0;b=L;if(d>>>0>0|(d|0)==0&a>>>0>4095){a=e;d=b}else{a=e;break}}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){while(1){c=(c&65535)+10&65535;d=rw(a|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&a>>>0>31){a=d;b=L}else{a=d;break}}e=11}else e=11}if((e|0)==11)a=(c&65535)+65526+(m[13496+((a&7)<<1)>>1]|0)&65535;return a|0}function ls(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0;j=k[a+408>>2]|0;j=(j|0)==0?a:j;g=j+396|0;f=k[g>>2]|0;h=k[j+400>>2]|0;a:do if((f|0)>0){a=0;while(1){if((k[h+(a<<4)>>2]|0)==(b|0)?(k[h+(a<<4)+4>>2]|0)==(c|0):0)break;a=a+1|0;if((a|0)>=(f|0)){l=8;break a}}a=h+(a<<4)+8|0;if(!(i[a>>0]|0))f=d<<24>>24!=0&1;else f=1;i[a>>0]=f}else l=8;while(0);do if((l|0)==8){a=(f<<4)+16|0;a=$l(k[j>>2]|0,h,a,((a|0)<0)<<31>>31)|0;k[j+400>>2]=a;if(!a){k[g>>2]=0;i[(k[j>>2]|0)+65>>0]=1;break}else{f=k[g>>2]|0;k[g>>2]=f+1;k[a+(f<<4)>>2]=b;k[a+(f<<4)+4>>2]=c;i[a+(f<<4)+8>>0]=d;k[a+(f<<4)+12>>2]=e;break}}while(0);return}function ms(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0;e=j[b+48>>1]|0;h=e&65535;d=m[b+46>>1]|0;l=a+64|0;if(!(k[l>>2]|0)){c=k[a>>2]|0;if(!(i[b+51>>0]&8))g=Ws(c,h,0)|0;else g=Ws(c,d,h-d|0)|0;if(g){if(e<<16>>16){f=b+32|0;b=b+28|0;d=g+16|0;c=0;do{e=k[(k[f>>2]|0)+(c<<2)>>2]|0;if(!(dw(e,11152)|0))e=0;else e=hr(a,e)|0;k[g+(c<<2)+20>>2]=e;i[(k[d>>2]|0)+c>>0]=i[(k[b>>2]|0)+c>>0]|0;c=c+1|0}while((c|0)<(h|0))}c=(k[l>>2]|0)==0;if(!c){c=(k[g>>2]|0)+-1|0;k[g>>2]=c;if(!c){$c(g);c=0}else c=0}else c=c?g:0}else c=0}else c=0;return c|0}function ns(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;F=r;r=r+112|0;if((r|0)>=(s|0))ka();A=F;C=F+100|0;D=F+96|0;g=F+48|0;B=k[a+8>>2]|0;k[C>>2]=0;k[D>>2]=0;z=k[a>>2]|0;a:do if(!B)c=0;else{b:do if(!b)E=16;else{o=i[b>>0]|0;n=o&255;do switch(n|0){case 77:case 76:{Bh(B,25,1,c,0)|0;d=Bh(B,n,eu(a,k[b+12>>2]|0,C)|0,0,0)|0;Bh(B,25,0,c,0)|0;e=k[B+32>>2]|0;if(e>>>0>d>>>0)k[(k[B+4>>2]|0)+(d*20|0)+8>>2]=e;k[(k[B+24>>2]|0)+88>>2]=e+-1;break b}case 135:{e=b+32|0;Bh(B,31,j[e>>1]|0,c,0)|0;if(!(i[(k[b+8>>2]|0)+1>>0]|0))break b;Ch(B,-1,k[(k[a+472>>2]|0)+((j[e>>1]|0)+-1<<2)>>2]|0,-2);break b}case 148:case 73:{y=b+12|0;A=eu(a,k[y>>2]|0,C)|0;z=b+16|0;B=eu(a,k[z>>2]|0,D)|0;fu(a,k[y>>2]|0,k[z>>2]|0,o<<24>>24==73?79:78,A,B,c,160);break b}case 133:{du(B,k[b+8>>2]|0,0,c);break b}case 154:break;case 101:{E=16;break b}case 74:{o=k[b+12>>2]|0;h=k[(k[b+20>>2]|0)+4>>2]|0;d=k[h>>2]|0;l=eu(a,o,C)|0;n=eu(a,d,D)|0;g=a+19|0;e=i[g>>0]|0;if(e<<24>>24){A=e+-1<<24>>24;i[g>>0]=A;f=k[a+((A&255)<<2)+24>>2]|0;if(!(A<<24>>24))E=103;else{A=e+-2<<24>>24;i[g>>0]=A;g=k[a+((A&255)<<2)+24>>2]|0}}else{E=a+72|0;f=(k[E>>2]|0)+1|0;k[E>>2]=f;E=103}if((E|0)==103){A=a+72|0;g=(k[A>>2]|0)+1|0;k[A>>2]=g}fu(a,o,d,83,l,n,f,32);A=k[h+20>>2]|0;ds(a,k[D>>2]|0);fu(a,o,A,81,l,eu(a,A,D)|0,g,32);Bh(B,72,f,g,c)|0;ds(a,f);ds(a,g);break b}case 132:{cu(a,b,0,c);break b}case 79:case 78:case 83:case 80:case 81:case 82:{y=b+12|0;A=eu(a,k[y>>2]|0,C)|0;z=b+16|0;B=eu(a,k[z>>2]|0,D)|0;fu(a,k[y>>2]|0,k[z>>2]|0,n,A,B,c,32);break b}case 19:case 96:{Bh(B,n,eu(a,k[b+12>>2]|0,C)|0,c,0)|0;break b}case 158:case 95:{c=ns(a,k[b+12>>2]|0,c)|0;break b}case 62:{d=k[b+44>>2]|0;e=b+32|0;Bh(B,132,(ha((j[d+38>>1]|0)+1|0,k[b+28>>2]|0)|0)+((j[e>>1]|0)+1)|0,c,0)|0;e=j[e>>1]|0;if(e<<16>>16<=-1)break b;if((i[(k[d+4>>2]|0)+((e<<16>>16)*24|0)+21>>0]|0)!=69)break b;Bh(B,39,c,0,0)|0;break b}case 24:{c=ns(a,k[b+12>>2]|0,c)|0;break b}case 155:{e=k[b+40>>2]|0;if(!e){k[A>>2]=k[b+8>>2];yh(a,28936,A);break b}else{c=k[(k[e+40>>2]|0)+(j[b+34>>1]<<4)+8>>2]|0;break b}}case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{A=eu(a,k[b+12>>2]|0,C)|0;Bh(B,n,eu(a,k[b+16>>2]|0,D)|0,A,c)|0;break b}case 157:{e=b+12|0;d=k[e>>2]|0;f=i[d>>0]|0;if(f<<24>>24==-124){cu(a,d,1,c);break b}else if(f<<24>>24==-123){du(B,k[d+8>>2]|0,1,c);break b}else{i[g>>0]=-124;k[g+4>>2]=17408;k[g+8>>2]=0;A=eu(a,g,C)|0;Bh(B,90,eu(a,k[e>>2]|0,D)|0,A,c)|0;break b}}case 119:case 20:{c=ju(a,b,0,0)|0;break b}case 75:{A=Cs(B)|0;h=Cs(B)|0;Bh(B,28,0,c,0)|0;ku(a,b,A,h);Bh(B,25,1,c,0)|0;e=B+24|0;d=k[e>>2]|0;f=~A;if((A|0)<0?(l=k[d+112>>2]|0,(l|0)!=0):0)k[l+(f<<2)>>2]=k[B+32>>2];g=B+32|0;k[d+88>>2]=(k[g>>2]|0)+-1;Bh(B,37,c,0,0)|0;f=k[e>>2]|0;e=~h;if((h|0)<0?(p=k[f+112>>2]|0,(p|0)!=0):0)k[p+(e<<2)>>2]=k[g>>2];k[f+88>>2]=(k[g>>2]|0)+-1;break b}case 156:{d=k[b+40>>2]|0;e=j[b+34>>1]|0;f=k[d+28>>2]|0;if(!(i[d>>0]|0)){c=k[f+(e*24|0)+16>>2]|0;break b}if(i[d+1>>0]|0){Bh(B,47,k[d+8>>2]|0,k[f+(e*24|0)+12>>2]|0,c)|0;break b}break}case 38:{e=ns(a,k[b+12>>2]|0,c)|0;if((e|0)!=(c|0))Bh(B,34,e,c,0)|0;Bh(B,40,c,(ar(k[b+8>>2]|0,0)|0)<<24>>24,0)|0;it(a,c,1);break b}case 153:{l=i[z+62>>0]|0;x=b+4|0;if((k[x>>2]&16384|0)==0?(h=k[b+20>>2]|0,(h|0)!=0):0){y=k[h>>2]|0;v=1;w=h}else{y=0;v=0;w=0}o=k[b+8>>2]|0;if(!o)n=0;else{n=o;while(1)if(!(i[n>>0]|0))break;else n=n+1|0;n=n-o&1073741823}g=Xh(z,o,n,y,l,0)|0;if((g|0)!=0?(k[g+12>>2]|0)!=0:0){u=g+2|0;h=m[u>>1]|0;if(h&512){g=Cs(B)|0;f=w+4|0;Wq(a,k[k[f>>2]>>2]|0,c);if((y|0)>1){e=a+100|0;d=1;do{Bh(B,77,c,g,0)|0;it(a,c,1);k[e>>2]=(k[e>>2]|0)+1;Wq(a,k[(k[f>>2]|0)+(d*20|0)>>2]|0,c);gu(a);d=d+1|0}while((d|0)!=(y|0))}f=k[B+24>>2]|0;e=~g;if((g|0)<0?(t=k[f+112>>2]|0,(t|0)!=0):0)k[t+(e<<2)>>2]=k[B+32>>2];k[f+88>>2]=(k[B+32>>2]|0)+-1;break b}if(h&1024){Wq(a,k[k[w+4>>2]>>2]|0,c);break b}t=(y|0)>0;if(t){n=w+4|0;l=A+20|0;h=A+4|0;e=A+24|0;o=0;d=0;f=0;do{if((d|0)<32?(b=k[(k[n>>2]|0)+(d*20|0)>>2]|0,k[A+0>>2]=0,k[A+4>>2]=0,k[A+8>>2]=0,k[A+12>>2]=0,k[A+16>>2]=0,k[A+20>>2]=0,i[l>>0]=1,k[A>>2]=78,k[h>>2]=79,k[e>>2]=0,ws(A,b)|0,(i[l>>0]|0)!=0):0)o=o|1<<d;if(!((j[u>>1]&32)==0|(f|0)!=0))f=hu(a,k[(k[n>>2]|0)+(d*20|0)>>2]|0)|0;d=d+1|0}while((d|0)!=(y|0));p=o}else{p=0;f=0}if(v){do if(!p){n=a+60|0;o=k[n>>2]|0;l=a+56|0;h=k[l>>2]|0;if((h|0)<(y|0)){A=a+72|0;o=k[A>>2]|0;k[A>>2]=o+y;o=o+1|0;break}else{k[n>>2]=o+y;k[l>>2]=h-y;break}}else{A=a+72|0;o=k[A>>2]|0;k[A>>2]=o+y;o=o+1|0}while(0);h=j[u>>1]|0;if((h&192)!=0?(q=k[k[w+4>>2]>>2]|0,A=i[q>>0]|0,A<<24>>24==-100|A<<24>>24==-102):0)i[q+38>>0]=h&192;A=a+100|0;k[A>>2]=(k[A>>2]|0)+1;gt(a,w,o,3);gu(a)}else o=0;if((y|0)>1?(k[x>>2]&128|0)!=0:0)g=iu(z,g,y,k[(k[w+4>>2]|0)+20>>2]|0)|0;else if(t)g=iu(z,g,y,k[k[w+4>>2]>>2]|0)|0;if(j[g+2>>1]&32){if(!f)f=k[z+8>>2]|0;Ch(B,Bh(B,36,0,0,0)|0,f,-4)}Ch(B,Bh(B,1,p,o,c)|0,g,-5);f=k[B+4>>2]|0;if(f)i[f+(((k[B+32>>2]|0)+-1|0)*20|0)+3>>0]=y;if(!((y|0)!=0&(p|0)==0))break b;it(a,o,y);e=a+56|0;if((k[e>>2]|0)>=(y|0))break b;k[e>>2]=y;k[a+60>>2]=o;break b}k[A>>2]=n;k[A+4>>2]=o;yh(a,28968,A);break b}case 159:{c=k[b+28>>2]|0;break b}case 134:{d=(k[b+8>>2]|0)+2|0;e=d;while(1)if(!(i[e>>0]|0))break;else e=e+1|0;z=(e-d&1073741823)+-1|0;A=bu(k[B>>2]|0,d,z)|0;Ch(B,Bh(B,30,(z|0)/2|0,c,0)|0,A,-1);break b}case 57:{if(!(k[a+412>>2]|0)){yh(a,29e3,A);c=0;break a}f=i[b+1>>0]|0;if(f<<24>>24!=2){d=k[b+8>>2]|0;if(f<<24>>24==4){Ch(B,Bh(B,24,0,4,0)|0,d,0);break b}}else{d=k[a+408>>2]|0;i[((d|0)==0?a:d)+21>>0]=1;d=k[b+8>>2]|0}Es(a,1811,f<<24>>24,d,0,0);break b}case 97:{A=k[b+8>>2]|0;Ch(B,Bh(B,97,0,c,0)|0,A,0);break b}default:{u=k[b+20>>2]|0;q=u+4|0;t=k[q>>2]|0;u=k[u>>2]|0;v=Cs(B)|0;o=k[b+12>>2]|0;b=(o|0)!=0;if(b){n=g+0|0;l=o+0|0;h=n+48|0;do{k[n>>2]=k[l>>2];n=n+4|0;l=l+4|0}while((n|0)<(h|0));o=eu(a,o,C)|0;i[g+38>>0]=i[g>>0]|0;i[g>>0]=-97;k[g+28>>2]=o;o=g+4|0;k[o>>2]=k[o>>2]&-4097;i[A>>0]=79;k[A+12>>2]=g;k[C>>2]=0;o=A}else o=0;p=u+-1|0;if((p|0)>0){d=a+100|0;h=A+16|0;g=B+24|0;f=B+32|0;e=0;n=o;while(1){k[d>>2]=(k[d>>2]|0)+1;o=k[t+(e*20|0)>>2]|0;if(b){k[h>>2]=o;o=n}A=Cs(B)|0;lt(a,o,A,16);Wq(a,k[t+((e|1)*20|0)>>2]|0,c);Bh(B,16,0,v,0)|0;gu(a);n=k[g>>2]|0;l=~A;if((A|0)<0?(w=k[n+112>>2]|0,(w|0)!=0):0)k[w+(l<<2)>>2]=k[f>>2];k[n+88>>2]=(k[f>>2]|0)+-1;e=e+2|0;if((e|0)>=(p|0))break;else n=o}}if(!(u&1))Bh(B,28,0,c,0)|0;else{A=a+100|0;k[A>>2]=(k[A>>2]|0)+1;Wq(a,k[(k[q>>2]|0)+(p*20|0)>>2]|0,c);gu(a)}f=k[B+24>>2]|0;e=~v;if((v|0)<0?(x=k[f+112>>2]|0,(x|0)!=0):0)k[x+(e<<2)>>2]=k[B+32>>2];k[f+88>>2]=(k[B+32>>2]|0)+-1;break b}}while(0);d=k[b+28>>2]|0;do if((d|0)<0){d=k[a+92>>2]|0;if((d|0)>0){c=(j[b+32>>1]|0)+d|0;break b}else{d=k[a+96>>2]|0;break}}while(0);c=ht(a,k[b+44>>2]|0,j[b+32>>1]|0,d,c,i[b+38>>0]|0)|0}while(0);if((E|0)==16)Bh(B,28,0,c,0)|0;ds(a,k[C>>2]|0);ds(a,k[D>>2]|0)}while(0);r=F;return c|0}function os(a,b){a=a|0;b=b|0;var c=0;c=Tq(a)|0;ls(a,b,1,1,(b|0)==1?13184:13208);Ch(c,Bh(c,55,0,1,b)|0,5,-14);b=a+68|0;if(!(k[b>>2]|0))k[b>>2]=1;return}function ps(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=b+48|0;if((m[d>>1]|0|0)<(c|0)){e=c*7|0;a=rh(a,e,((e|0)<0)<<31>>31)|0;if(!a)a=7;else{kw(a|0,0,e|0)|0;f=b+32|0;pw(a|0,k[f>>2]|0,(m[d>>1]|0)<<2|0)|0;k[f>>2]=a;f=a+(c<<2)|0;e=b+4|0;pw(f|0,k[e>>2]|0,(m[d>>1]|0)<<1|0)|0;k[e>>2]=f;e=a+(c*6|0)|0;a=b+28|0;pw(e|0,k[a>>2]|0,m[d>>1]|0|0)|0;k[a>>2]=e;j[d>>1]=c;a=b+51|0;i[a>>0]=i[a>>0]|16;a=0}}else a=0;return a|0}function qs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,l=0,n=0;n=r;r=r+32|0;if((r|0)>=(s|0))ka();f=n;l=n+4|0;do if(!b)c=0;else{g=k[a>>2]|0;i=b+24|0;e=g+460|0;d=(k[e>>2]|0)+(k[i>>2]|0)|0;c=k[(k[g>>2]|0)+100>>2]|0;if((c|0)<(d|0)){k[f>>2]=c;yh(g,27152,f);c=1;break}k[e>>2]=d;f=a+28|0;e=m[f>>1]|0;h=e&4098;j[f>>1]=e&61437;k[l+0>>2]=0;k[l+4>>2]=0;k[l+8>>2]=0;k[l+12>>2]=0;k[l+16>>2]=0;k[l+20>>2]=0;k[l>>2]=82;k[l+4>>2]=83;e=l+12|0;k[e>>2]=g;k[l+24>>2]=a;ws(l,b)|0;l=(k[a>>2]|0)+460|0;k[l>>2]=(k[l>>2]|0)-(k[i>>2]|0);if(!((k[a+24>>2]|0)<=0?(k[(k[e>>2]|0)+64>>2]|0)<=0:0)){l=b+4|0;k[l>>2]=k[l>>2]|8}e=j[f>>1]|0;d=b+4|0;c=k[d>>2]|0;if(e&2){c=c|2;k[d>>2]=c}j[f>>1]=e&65535|h;c=c>>>3&1}while(0);r=n;return c|0}function rs(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;f=k[(k[a+12>>2]|0)+4>>2]|0;c=j[a+48>>1]|0;if(!(c<<16>>16)){b=0;c=0}else{g=k[a+4>>2]|0;d=c&65535;e=0;b=0;do{c=j[g+(e<<1)>>1]|0;if(c<<16>>16<0)c=1;else c=l[f+((c<<16>>16)*24|0)+22>>0]|0;b=c+b|0;e=e+1|0}while((e|0)<(d|0));b=b<<2;c=0}b=ks(b,c)|0;j[a+44>>1]=b;return}function ss(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;g=k[a>>2]|0;d=g+24|0;f=k[d>>2]|0;k[d>>2]=f&-97|64;Is(a,b,0);if(!(k[a+64>>2]|0)){while(1){c=k[b+52>>2]|0;if(!c){e=b;break}else b=c}k[d>>2]=f;b=rh(g,76,0)|0;if(b){c=b+0|0;d=c+76|0;do{i[c>>0]=0;c=c+1|0}while((c|0)<(d|0));j[b+40>>1]=1;k[b>>2]=0;j[b+28>>1]=200;nu(a,k[e>>2]|0,b+38|0,b+4|0);ou(a,b,e);j[b+36>>1]=-1;if(i[g+65>>0]|0){pg(g,b);b=0}}else b=0}else b=0;return b|0}function ts(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=k[b>>2]|0;e=i[c>>0]|0;a:do if(!(e<<24>>24)){g=0;f=0}else{g=e;h=0;while(1){f=h+1|0;if(!(g<<24>>24==95?1:(i[10368+(g&255)>>0]&6)!=0)){f=h;break a}g=i[c+f>>0]|0;if(!(g<<24>>24)){g=0;break}else h=f}}while(0);if((((e&255)+-48|0)>>>0>=10?(ki(c,f)|0)==27:0)?!((f|0)==0|g<<24>>24!=0):0)j=0;else{i[a+d>>0]=34;j=1;e=i[c>>0]|0;d=d+1|0}if(e<<24>>24){f=c;h=0;do{g=d+1|0;i[a+d>>0]=e;if((i[f>>0]|0)==34){i[a+g>>0]=34;d=d+2|0}else d=g;h=h+1|0;f=c+h|0;e=i[f>>0]|0}while(e<<24>>24!=0)}if(j){i[a+d>>0]=34;d=d+1|0}i[a+d>>0]=0;k[b>>2]=d;return}function us(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;c=a+20|0;d=i[c>>0]|0;if(d<<24>>24==2?(k[b+4>>2]&1|0)!=0:0){i[c>>0]=0;c=2}else e=4;a:do if((e|0)==4)switch(l[b>>0]|0|0){case 135:if(d<<24>>24==4){i[c>>0]=0;c=2;break a}else if(d<<24>>24==5){i[b>>0]=101;c=0;break a}else{c=0;break a}case 153:{if((d&255)>3){c=0;break a}if(k[b+4>>2]&524288){c=0;break a}i[c>>0]=0;c=2;break a}case 156:case 155:case 154:case 27:{if(d<<24>>24==3?(k[b+28>>2]|0)==(k[a+24>>2]|0):0){c=0;break a}i[c>>0]=0;c=2;break a}default:{c=0;break a}}while(0);return c|0}function vs(a,b){a=a|0;b=b|0;i[a+20>>0]=0;return 2}function ws(a,b){a=a|0;b=b|0;var c=0,d=0;a:do if(!b)b=0;else{c=wc[k[a>>2]&127](a,b)|0;do if((c|0)==0?(d=b+4|0,(k[d>>2]&16384|0)==0):0){if(ws(a,k[b+12>>2]|0)|0){b=2;break a}if(ws(a,k[b+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(k[d>>2]&2048))if(!(qu(a,k[b>>2]|0)|0))break;else{b=2;break a}else if(!(pu(a,k[b>>2]|0)|0))break;else{b=2;break a}}while(0);b=c&2}while(0);return b|0}function xs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;do if(b){if(c){if((ru(b)|0)==0?(ru(c)|0)==0:0){d=rh(a,48,0)|0;if(d){e=d+0|0;f=e+48|0;do{i[e>>0]=0;e=e+1|0}while((e|0)<(f|0));i[d>>0]=72;j[d+34>>1]=-1;k[d+24>>2]=1}ys(a,d,b,c);b=d;break}Lk(a,b);Lk(a,c);b=sr(a,132,20616,0)|0}}else b=c;while(0);return b|0}function ys(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(!b){Lk(a,c);Lk(a,d)}else{if(d){k[b+16>>2]=d;a=b+4|0;k[a>>2]=k[a>>2]|k[d+4>>2]&2097408}if(c){k[b+12>>2]=c;a=b+4|0;k[a>>2]=k[a>>2]|k[c+4>>2]&2097408}Nt(b)}return}function zs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,l=0;f=b<<16>>16;h=(f<<2)+63&-8;i=f<<1;l=i+2|0;g=(f+7+i+l&-8)+h|0;e=g+c|0;c=rh(a,e,((e|0)<0)<<31>>31)|0;if(c){kw(c|0,0,e|0)|0;k[c+32>>2]=c+56;k[c+8>>2]=c+h;e=h+l|0;k[c+4>>2]=c+e;k[c+28>>2]=c+(e+i);j[c+48>>1]=b;j[c+46>>1]=f+65535;k[d>>2]=c+g}return c|0}function As(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+16|0;if((r|0)>=(s|0))ka();t=z;n=k[b+12>>2]|0;l=a+68|0;w=k[l>>2]|0;y=w+1|0;k[l>>2]=w+2;j=k[a>>2]|0;g=k[b+24>>2]|0;a:do if(g){e=k[j+20>>2]|0;if((e|0)>0){d=k[j+16>>2]|0;h=0;while(1){f=h+1|0;if((k[d+(h<<4)+12>>2]|0)==(g|0)){f=h;break a}if((f|0)<(e|0))h=f;else break}}else f=0}else f=-1e6;while(0);if((Xq(a,27,k[b>>2]|0,0,k[(k[j+16>>2]|0)+(f<<4)>>2]|0)|0)==0?(ls(a,f,k[n+32>>2]|0,1,k[n>>2]|0),x=Tq(a)|0,(x|0)!=0):0){if((c|0)>-1)o=c;else o=k[b+40>>2]|0;u=ms(a,b)|0;v=k[l>>2]|0;k[l>>2]=v+1;q=b+46|0;e=m[q>>1]|0;if(u)k[u>>2]=(k[u>>2]|0)+1;Ch(x,Bh(x,58,v,0,e)|0,u,-6);Vq(a,w,f,n,54);j=Bh(x,108,w,0,0)|0;e=a+19|0;d=i[e>>0]|0;if(!(d<<24>>24)){n=a+72|0;p=(k[n>>2]|0)+1|0;k[n>>2]=p}else{p=d+-1<<24>>24;i[e>>0]=p;p=k[a+((p&255)<<2)+24>>2]|0}Ut(a,b,w,p,0,t,0,0)|0;Bh(x,109,v,p,0)|0;Vt(a,k[t>>2]|0);Bh(x,9,w,j+1|0,0)|0;n=x+32|0;h=k[n>>2]|0;if(h>>>0>j>>>0)k[(k[x+4>>2]|0)+(j*20|0)+8>>2]=h;g=x+24|0;k[(k[g>>2]|0)+88>>2]=h+-1;if((c|0)<0)Bh(x,118,o,f,0)|0;Ch(x,Bh(x,55,y,o,f)|0,u,-6);l=x+4|0;e=k[l>>2]|0;if(e)i[e+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=(c>>31)+4&252|1;j=Bh(x,106,v,0,0)|0;e=k[n>>2]|0;if((i[b+50>>0]|0)!=0&(u|0)!=0){h=e+3|0;Bh(x,16,0,h,0)|0;e=k[n>>2]|0;o=m[q>>1]|0;Ch(x,Bh(x,99,v,h,p)|0,o,-14);su(a,2,b)}Bh(x,100,v,p,y)|0;Bh(x,110,y,p,1)|0;d=k[l>>2]|0;if(d)i[d+(((k[n>>2]|0)+-1|0)*20|0)+3>>0]=16;ds(a,p);Bh(x,5,v,e,0)|0;d=k[n>>2]|0;if(d>>>0>j>>>0)k[(k[l>>2]|0)+(j*20|0)+8>>2]=d;k[(k[g>>2]|0)+88>>2]=d+-1;Bh(x,61,w,0,0)|0;Bh(x,61,y,0,0)|0;Bh(x,61,v,0,0)|0}r=z;return}function Bs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0;p=r;r=r+16|0;if((r|0)>=(s|0))ka();o=p;n=k[a>>2]|0;if(!c){c=bo(n,b,d,0)|0;if(!c)h=4;else h=3}else h=3;if((h|0)==3)if(!(k[c+12>>2]|0))h=4;else h=14;if((h|0)==4){f=b&255;e=n+224|0;if(k[e>>2]|0){g=ph(n,d)|0;if(g){vc[k[e>>2]&15](k[n+232>>2]|0,n,f,g);rg(n,g);h=7}}else h=7;if((h|0)==7?(m=n+228|0,(k[m>>2]|0)!=0):0){e=rh(n,40,0)|0;if(!e)e=0;else{g=e+0|0;f=g+40|0;do{i[g>>0]=0;g=g+1|0}while((g|0)<(f|0));j[e+8>>1]=1;k[e+32>>2]=n;ah(e,d,-1,1,0)|0}c=Xg(e,2)|0;if(c)vc[k[m>>2]&15](k[n+232>>2]|0,n,l[n+62>>0]|0,c);Rh(e)}c=bo(n,b,d,0)|0;if(!c)h=19;else h=14}a:do if((h|0)==14)if(!(k[c+12>>2]|0)){f=k[c>>2]|0;g=0;while(1){e=bo(n,i[26816+g>>0]|0,f,0)|0;g=g+1|0;if(k[e+12>>2]|0)break;if((g|0)>=3){h=19;break a}}k[c+0>>2]=k[e+0>>2];k[c+4>>2]=k[e+4>>2];k[c+8>>2]=k[e+8>>2];k[c+12>>2]=k[e+12>>2];k[c+16>>2]=0}while(0);if((h|0)==19){k[o>>2]=d;yh(a,26784,o);c=0}r=p;return c|0}function Cs(a){a=a|0;var b=0,c=0;a=k[a+24>>2]|0;c=a+108|0;b=k[c>>2]|0;k[c>>2]=b+1;if(!(b+-1&b)){c=a+112|0;a=$l(k[a>>2]|0,k[c>>2]|0,b<<3|4,0)|0;k[c>>2]=a}else a=k[a+112>>2]|0;if(a)k[a+(b<<2)>>2]=-1;return ~b|0}function Ds(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0;if(b){d=k[b>>2]|0;if((d|0)>0){e=(d*72|0)+8|0;d=e;e=((e|0)<0)<<31>>31}else{d=80;e=0}d=rh(a,d,e)|0;if(d){e=k[b>>2]|0;k[d+4>>2]=e;k[d>>2]=e;if((k[b>>2]|0)>0){e=d+8|0;g=0;do{k[e+(g*72|0)>>2]=k[b+(g*72|0)+8>>2];h=ph(a,k[b+(g*72|0)+12>>2]|0)|0;k[e+(g*72|0)+4>>2]=h;h=ph(a,k[b+(g*72|0)+16>>2]|0)|0;k[e+(g*72|0)+8>>2]=h;h=ph(a,k[b+(g*72|0)+20>>2]|0)|0;k[e+(g*72|0)+12>>2]=h;i[e+(g*72|0)+36>>0]=i[b+(g*72|0)+44>>0]|0;k[e+(g*72|0)+40>>2]=k[b+(g*72|0)+48>>2];k[e+(g*72|0)+24>>2]=k[b+(g*72|0)+32>>2];k[e+(g*72|0)+28>>2]=k[b+(g*72|0)+36>>2];h=b+(g*72|0)+45|0;f=e+(g*72|0)+37|0;l=i[f>>0]&-3|i[h>>0]&2;i[f>>0]=l;l=l&-5|i[h>>0]&4;i[f>>0]=l;i[f>>0]=l&-9|i[h>>0]&8;l=ph(a,k[b+(g*72|0)+72>>2]|0)|0;k[e+(g*72|0)+64>>2]=l;i[f>>0]=i[f>>0]&-2|i[h>>0]&1;k[e+(g*72|0)+68>>2]=k[b+(g*72|0)+76>>2];f=k[b+(g*72|0)+24>>2]|0;k[e+(g*72|0)+16>>2]=f;if(f){f=f+40|0;j[f>>1]=(j[f>>1]|0)+1<<16>>16}l=lr(a,k[b+(g*72|0)+28>>2]|0,c)|0;k[e+(g*72|0)+20>>2]=l;l=Rr(a,k[b+(g*72|0)+52>>2]|0,c,0)|0;k[e+(g*72|0)+44>>2]=l;l=Sr(a,k[b+(g*72|0)+56>>2]|0)|0;k[e+(g*72|0)+48>>2]=l;l=b+(g*72|0)+64|0;h=k[l+4>>2]|0;f=e+(g*72|0)+56|0;k[f>>2]=k[l>>2];k[f+4>>2]=h;g=g+1|0}while((g|0)<(k[b>>2]|0))}}else d=0}else d=0;return d|0}function Es(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0;g=Tq(a)|0;if((c|0)==2){j=k[a+408>>2]|0;i[((j|0)==0?a:j)+21>>0]=1}Ch(g,Bh(g,24,b,c,0)|0,d,e<<24>>24);if(f<<24>>24!=0?(h=k[g+4>>2]|0,(h|0)!=0):0)i[h+(((k[g+32>>2]|0)+-1|0)*20|0)+3>>0]=f;return}function Fs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=k[(k[(k[a>>2]|0)+16>>2]|0)+28>>2]|0;do if(!(i[a+438>>0]|0)){f=k[b+68>>2]|0;if((c|0)!=(f|0)?(d=k[c+48>>2]|0,(d|0)!=0):0){e=b+64|0;c=0;while(1){a=k[d+8>>2]|0;if((k[a+24>>2]|0)==(f|0)?(id(k[a+4>>2]|0,k[b>>2]|0)|0)==0:0){if(!c)c=k[e>>2]|0;k[a+32>>2]=c}else a=c;d=k[d>>2]|0;if(!d)break;else c=a}if(a)break}a=k[b+64>>2]|0}else a=0;while(0);return a|0}function Gs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;i=k[b+32>>2]|0;j=b+8|0;h=b+68|0;e=0;while(1){f=(e|0)==0;b=f|(i|0)<(e|0)?i:0;c=k[j>>2]|0;if(!c)g=b;else{do{d=k[c+40>>2]|0;b=(f|(d|0)<(e|0))&(d|0)>(b|0)?d:b;c=k[c+20>>2]|0}while((c|0)!=0);g=b}if(!g)break;b=k[a>>2]|0;e=k[h>>2]|0;a:do if(e){f=k[b+20>>2]|0;if((f|0)>0){c=k[b+16>>2]|0;d=0;while(1){b=d+1|0;if((k[c+(d<<4)+12>>2]|0)==(e|0)){b=d;break a}if((b|0)<(f|0))d=b;else break}}else b=0}else b=-1e6;while(0);Jr(a,g,b);e=g}return}function Hs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(c=k[b>>2]|0,(c|0)>0):0){g=a+68|0;e=0;f=b+8|0;while(1){d=f+40|0;if((k[d>>2]|0)>-1)break a;h=k[g>>2]|0;k[g>>2]=h+1;k[d>>2]=h;d=k[f+20>>2]|0;if(d){Hs(a,k[d+32>>2]|0);c=k[b>>2]|0}e=e+1|0;if((e|0)>=(c|0))break;else f=f+72|0}}while(0);return}function Is(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0;l=r;r=r+32|0;if((r|0)>=(s|0))ka();h=l;if(((b|0)!=0?(g=(k[a>>2]|0)+65|0,(i[g>>0]|0)==0):0)?(e=b+6|0,d=j[e>>1]|0,(d&32)==0):0){k[h+0>>2]=0;k[h+4>>2]=0;k[h+8>>2]=0;k[h+12>>2]=0;k[h+16>>2]=0;k[h+20>>2]=0;k[h+24>>2]=0;k[h>>2]=84;k[h+12>>2]=a;f=h+4|0;if(i[a+22>>0]|0){k[f>>2]=85;pu(h,b)|0;d=j[e>>1]|0}k[f>>2]=86;if(!(d&256))k[h+8>>2]=9;pu(h,b)|0;d=a+64|0;if((((k[d>>2]|0)==0?(i[g>>0]|0)==0:0)?(k[h+0>>2]=0,k[h+4>>2]=0,k[h+8>>2]=0,k[h+12>>2]=0,k[h+16>>2]=0,k[h+20>>2]=0,k[h>>2]=82,k[h+4>>2]=83,k[h+12>>2]=a,k[h+24>>2]=c,pu(h,b)|0,(k[d>>2]|0)==0):0)?(i[g>>0]|0)==0:0){k[h+0>>2]=0;k[h+4>>2]=0;k[h+8>>2]=0;k[h+12>>2]=0;k[h+16>>2]=0;k[h+20>>2]=0;k[h+24>>2]=0;k[h+8>>2]=10;k[h>>2]=84;k[h+12>>2]=a;pu(h,b)|0}}r=l;return}function Js(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if(a)do{c=k[a+36>>2]|0;if((c|0)!=0?(g=k[c+24>>2]|0,(g|0)>(k[b>>2]|0)):0)k[b>>2]=g;c=k[a+44>>2]|0;if((c|0)!=0?(d=k[c+24>>2]|0,(d|0)>(k[b>>2]|0)):0)k[b>>2]=d;c=k[a+60>>2]|0;if((c|0)!=0?(e=k[c+24>>2]|0,(e|0)>(k[b>>2]|0)):0)k[b>>2]=e;c=k[a+64>>2]|0;if((c|0)!=0?(f=k[c+24>>2]|0,(f|0)>(k[b>>2]|0)):0)k[b>>2]=f;yu(k[a>>2]|0,b);yu(k[a+40>>2]|0,b);yu(k[a+48>>2]|0,b);a=k[a+52>>2]|0}while((a|0)!=0);return}function Ks(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;e=k[b>>2]|0;f=e+c|0;if(f>>>0>(k[b+4>>2]|0)>>>0){g=wo(a,b,(f*72|0)+8|0,0)|0;if(g){do if(!a)b=qc[k[8744+48>>2]&127](g)|0;else{if((k[a+276>>2]|0)>>>0<=g>>>0?(k[a+280>>2]|0)>>>0>g>>>0:0){b=m[a+248>>1]|0;break}b=qc[k[8744+48>>2]&127](g)|0}while(0);k[g+4>>2]=(((b+-80|0)>>>0)/72|0)+1;b=g;e=k[g>>2]|0;h=10}}else h=10;if((h|0)==10){if((e|0)>(d|0)){do{e=e+-1|0;f=b+((e+c|0)*72|0)+8|0;a=b+(e*72|0)+8|0;g=f+72|0;do{k[f>>2]=k[a>>2];f=f+4|0;a=a+4|0}while((f|0)<(g|0))}while((e|0)>(d|0));e=k[b>>2]|0}k[b>>2]=e+c;kw(b+(d*72|0)+8|0,0,c*72|0)|0;e=d+c|0;if((c|0)>0)do{k[b+(d*72|0)+48>>2]=-1;d=d+1|0}while((d|0)<(e|0))}return b|0}function Ls(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;if((b|0)!=0?(k[b>>2]|0)>0:0){e=b+4|0;f=k[e>>2]|0;g=0;do{h=Ms(a,k[f+(g*20|0)>>2]|0,c,d)|0;f=k[e>>2]|0;k[f+(g*20|0)>>2]=h;g=g+1|0}while((g|0)<(k[b>>2]|0))}return}function Ms(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;do if(b){if((i[b>>0]|0)==-102?(k[b+28>>2]|0)==(c|0):0){e=j[b+32>>1]|0;if(e<<16>>16<0){i[b>>0]=101;break}else{e=Rr(a,k[(k[d+4>>2]|0)+((e<<16>>16)*20|0)>>2]|0,0,0)|0;Lk(a,b);b=e;break}}e=b+12|0;f=Ms(a,k[e>>2]|0,c,d)|0;k[e>>2]=f;e=b+16|0;f=Ms(a,k[e>>2]|0,c,d)|0;k[e>>2]=f;e=b+20|0;if(!(k[b+4>>2]&2048)){Ls(a,k[e>>2]|0,c,d);break}else{zu(a,k[e>>2]|0,c,d);break}}else b=0;while(0);return b|0}function Ns(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=k[k[b>>2]>>2]|0;d=b;f=1;while(1){b=k[d+52>>2]|0;if(!b){e=5;break}if((k[k[b>>2]>>2]|0)==(e|0)){d=b;f=f+1|0}else{e=3;break}}a:do if((e|0)==3){Os(a,b);b=1}else if((e|0)==5)if(!d)b=0;else{g=((f|0)<0)<<31>>31;e=0;while(1){h=d+52|0;k[h>>2]=0;b=nr(a,d,c)|0;k[h>>2]=e;if(b)break a;b=d+24|0;k[b>>2]=f;k[b+4>>2]=g;b=k[d+56>>2]|0;if(!b){b=0;break a}d=b;e=k[b+52>>2]|0}}while(0);return b|0}function Os(a,b){a=a|0;b=b|0;var c=0,d=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();c=d;if(!(j[b+6>>1]&128)){b=l[b+4>>0]|0;if((b|0)==116)b=35320;else if((b|0)==118)b=35336;else if((b|0)==117)b=35352;else b=35360;k[c>>2]=b;yh(a,35232,c)}else yh(a,35184,c);r=d;return}function Ps(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;E=r;r=r+32|0;if((r|0)>=(s|0))ka();v=E;e=k[b+32>>2]|0;h=k[k[b>>2]>>2]|0;q=k[a+8>>2]|0;t=b+52|0;u=k[t>>2]|0;if(!(Xq(a,33,0,0,0)|0)){w=Cs(q)|0;Ts(a,b,w);x=b+60|0;y=k[x>>2]|0;z=b+64|0;A=k[z>>2]|0;B=b+8|0;n=k[B>>2]|0;C=b+12|0;o=k[C>>2]|0;k[z>>2]=0;k[x>>2]=0;k[C>>2]=0;k[B>>2]=0;B=b+48|0;C=k[B>>2]|0;f=k[e>>2]|0;a:do if((f|0)>0){g=0;while(1){if(i[e+(g*72|0)+45>>0]&8)break;g=g+1|0;if((g|0)>=(f|0)){l=0;break a}}l=k[e+(g*72|0)+48>>2]|0}else l=0;while(0);g=a+68|0;e=k[g>>2]|0;f=e+1|0;k[g>>2]=f;d=(C|0)!=0;if((i[b+4>>0]|0)==115){k[g>>2]=e+2;g=d?8:6}else{g=d?7:5;f=0}i[v>>0]=g;k[v+4>>2]=e;i[v+1>>0]=0;k[v+8>>2]=0;k[v+12>>2]=0;F=a+72|0;g=(k[F>>2]|0)+1|0;k[F>>2]=g;Bh(q,60,l,g,h)|0;if(d){h=Au(a,b)|0;Ch(q,Bh(q,57,e,(k[C>>2]|0)+2|0,0)|0,h,-6);k[v+16>>2]=C}else Bh(q,57,e,h,0)|0;if(f){f=Bh(q,57,f,0,0)|0;k[b+16>>2]=f;f=b+6|0;j[f>>1]=m[f>>1]|8}k[B>>2]=0;h=u+56|0;k[h>>2]=0;f=nr(a,u,v)|0;k[h>>2]=b;if(!f){h=Bh(q,108,e,w,0)|0;Bh(q,104,l,0,0)|0;if(d)Bh(q,47,e,(k[C>>2]|0)+1|0,g)|0;else Bh(q,102,e,g,0)|0;Bh(q,95,e,0,0)|0;f=Cs(q)|0;nt(q,o,f);Us(a,b,k[b>>2]|0,l,0,0,c,f,w);if(n)Bh(q,140,n,w,0)|0;d=q+24|0;g=k[d>>2]|0;e=~f;if((f|0)<0?(p=k[g+112>>2]|0,(p|0)!=0):0)k[p+(e<<2)>>2]=k[q+32>>2];f=q+32|0;k[g+88>>2]=(k[f>>2]|0)+-1;k[t>>2]=0;nr(a,b,v)|0;k[t>>2]=u;Bh(q,16,0,h,0)|0;d=k[d>>2]|0;e=~w;if((w|0)<0?(D=k[d+112>>2]|0,(D|0)!=0):0)k[D+(e<<2)>>2]=k[f>>2];k[d+88>>2]=(k[f>>2]|0)+-1}Sk(k[a>>2]|0,k[B>>2]|0);k[B>>2]=C;k[x>>2]=y;k[z>>2]=A}r=E;return}function Qs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;X=r;r=r+48|0;if((r|0)>=(s|0))ka();p=X+40|0;I=X+20|0;J=X;T=k[a>>2]|0;Q=k[a+8>>2]|0;S=Cs(Q)|0;P=Cs(Q)|0;U=b+4|0;K=i[U>>0]|0;V=b+52|0;W=k[V>>2]|0;t=b+48|0;f=k[t>>2]|0;e=k[f>>2]|0;N=K<<24>>24==116;a:do if(!N?(n=T+65|0,(i[n>>0]|0)==0):0){g=p+4|0;o=1;while(1){if((o|0)>(k[k[b>>2]>>2]|0)){M=e;q=14;break a}b:do if((e|0)>0){d=0;h=k[f+4>>2]|0;while(1){if((m[h+16>>1]|0)==(o|0))break b;d=d+1|0;if((d|0)<(e|0))h=h+20|0;else break}}else d=0;while(0);if((d|0)==(e|0)){k[p>>2]=0;k[g>>2]=0;d=sr(T,132,p,0)|0;if(!d){d=7;break a}F=d+4|0;k[F>>2]=k[F>>2]|1024;k[d+8>>2]=o;f=qr(a,f,d)|0;if(!f)f=0;else{j[(k[f+4>>2]|0)+(e*20|0)+16>>1]=o;e=e+1|0}}if(!(i[n>>0]|0))o=o+1|0;else{M=e;q=14;break}}}else{M=e;q=14}while(0);if((q|0)==14){H=rh(T,M<<2,0)|0;if(!H)F=0;else{if((M|0)>0){e=0;d=k[f+4>>2]|0;while(1){k[H+(e<<2)>>2]=(m[d+16>>1]|0)+-1;e=e+1|0;if((e|0)==(M|0))break;else d=d+20|0}}F=Au(a,b)|0}k[t>>2]=f;E=Ur(k[a>>2]|0,f,0)|0;n=W+48|0;k[n>>2]=E;if(!N){f=k[k[b>>2]>>2]|0;e=a+72|0;E=k[e>>2]|0;h=E+1|0;k[e>>2]=f+1+E;Bh(Q,25,0,h,0)|0;e=Ws(T,f,1)|0;if(e){if((f|0)>0){d=e+16|0;g=0;do{E=Xs(a,b,g)|0;k[e+(g<<2)+20>>2]=E;i[(k[d>>2]|0)+g>>0]=0;g=g+1|0}while((g|0)!=(f|0))}}else e=0}else{e=0;h=0}k[V>>2]=0;G=W+56|0;k[G>>2]=0;Bu(a,b,k[t>>2]|0,26880)|0;if(!(k[W+52>>2]|0))Bu(a,W,k[n>>2]|0,26880)|0;Ts(a,b,S);g=b+8|0;f=k[g>>2]|0;n=a+72|0;if((f|0)!=0&N){q=k[n>>2]|0;o=q+1|0;q=q+2|0;k[n>>2]=q;E=k[b+12>>2]|0;Bh(Q,33,(E|0)==0?f:E+1|0,o,0)|0;Bh(Q,33,o,q,0)|0}else{o=0;q=0}w=b+60|0;Lk(T,k[w>>2]|0);k[w>>2]=0;w=b+64|0;Lk(T,k[w>>2]|0);k[w>>2]=0;w=k[n>>2]|0;x=w+1|0;y=w+2|0;u=w+3|0;w=w+4|0;k[n>>2]=w;i[I>>0]=13;k[I+4>>2]=x;i[I+1>>0]=0;A=I+8|0;k[A>>2]=0;k[I+12>>2]=0;i[J>>0]=13;k[J+4>>2]=y;i[J+1>>0]=0;B=J+8|0;k[B>>2]=0;k[J+12>>2]=0;D=Q+32|0;p=Bh(Q,20,x,0,(k[D>>2]|0)+1|0)|0;k[W+8>>2]=o;n=a+468|0;E=k[n>>2]|0;nr(a,W,I)|0;Bh(Q,21,x,0,0)|0;o=k[D>>2]|0;if(o>>>0>p>>>0)k[(k[Q+4>>2]|0)+(p*20|0)+8>>2]=o;z=Q+24|0;k[(k[z>>2]|0)+88>>2]=o+-1;v=Bh(Q,20,y,0,o+1|0)|0;d=k[g>>2]|0;f=b+12|0;t=k[f>>2]|0;k[g>>2]=q;k[f>>2]=0;C=k[n>>2]|0;nr(a,b,J)|0;k[g>>2]=d;k[f>>2]=t;Bh(Q,21,y,0,0)|0;f=Cu(a,b,I,c,u,h,e,S)|0;t=(K+-115&255)<2;if(t)d=Cu(a,b,J,c,w,h,e,S)|0;else d=0;if((e|0)!=0?(g=(k[e>>2]|0)+-1|0,k[e>>2]=g,(g|0)==0):0)$c(e);h=K<<24>>24==118;if((K+-117&255)<2){q=S;e=S}else{q=Bh(Q,17,w,d,0)|0;e=Bh(Q,22,y,S,0)|0;Bh(Q,16,0,q,0)|0;n=W+24|0;g=b+24|0;o=g;n=ow(k[o>>2]|0,k[o+4>>2]|0,k[n>>2]|0,k[n+4>>2]|0)|0;k[g>>2]=n;k[g+4>>2]=L}if(h){p=b+24|0;g=p;I=k[g+4>>2]|0;n=W+24|0;o=k[n>>2]|0;n=k[n+4>>2]|0;if(I>>>0>n>>>0|((I|0)==(n|0)?(k[g>>2]|0)>>>0>o>>>0:0)){g=p;k[g>>2]=o;k[g+4>>2]=n;g=q}else g=q}else{g=Bh(Q,17,u,f,0)|0;Bh(Q,22,x,S,0)|0;Bh(Q,16,0,g,0)|0}p=Bh(Q,17,u,f,0)|0;Bh(Q,22,x,q,0)|0;Bh(Q,16,0,P,0)|0;do if(!N)if(h){q=p;p=p+1|0;break}else{q=Bh(Q,22,x,q,0)|0;Bh(Q,16,0,P,0)|0;break}else q=p;while(0);o=k[D>>2]|0;if(t)Bh(Q,17,w,d,0)|0;Bh(Q,22,y,g,0)|0;Bh(Q,16,0,P,0)|0;n=k[D>>2]|0;if(n>>>0>v>>>0)k[(k[Q+4>>2]|0)+(v*20|0)+8>>2]=n;k[(k[z>>2]|0)+88>>2]=n+-1;Bh(Q,22,x,e,0)|0;Bh(Q,22,y,g,0)|0;g=k[z>>2]|0;f=~P;if((P|0)<0?(O=k[g+112>>2]|0,(O|0)!=0):0)k[O+(f<<2)>>2]=k[D>>2];k[g+88>>2]=(k[D>>2]|0)+-1;Ch(Q,Bh(Q,41,0,0,0)|0,H,-15);Ch(Q,Bh(Q,42,k[A>>2]|0,k[B>>2]|0,M)|0,F,-6);e=k[Q+4>>2]|0;if(e)i[e+(((k[D>>2]|0)+-1|0)*20|0)+3>>0]=1;Bh(Q,43,p,q,o)|0;e=k[z>>2]|0;d=~S;if((S|0)<0?(R=k[e+112>>2]|0,(R|0)!=0):0)k[R+(d<<2)>>2]=k[D>>2];k[e+88>>2]=(k[D>>2]|0)+-1;if((i[c>>0]|0)==9){d=W;while(1){e=k[d+52>>2]|0;if(!e)break;else d=e}Ss(a,0,k[d>>2]|0)}d=k[V>>2]|0;if(d)Rk(T,d,1);k[V>>2]=W;k[G>>2]=b;Vs(a,l[U>>0]|0,E,C,0);d=0}r=X;return d|0}function Rs(a,b){a=a|0;b=b|0;var c=0,d=0,e=0;e=r;r=r+16|0;if((r|0)>=(s|0))ka();d=e;do if(!(k[a+4>>2]&1024)){c=l[a>>0]|0;if((c|0)==158){c=Rs(k[a+12>>2]|0,b)|0;break}else if((c|0)!=157){c=0;break}if(!(Rs(k[a+12>>2]|0,d)|0))c=0;else{k[b>>2]=0-(k[d>>2]|0);c=1}}else{k[b>>2]=k[a+8>>2];c=1}while(0);r=e;return c|0}function Ss(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=r;r=r+32|0;if((r|0)>=(s|0))ka();z=A;y=a+8|0;v=k[y>>2]|0;w=k[a>>2]|0;if(((i[a+450>>0]|0)==0?(f=a+16|0,!((i[f>>0]|0)!=0|(v|0)==0)):0)?(i[w+65>>0]|0)==0:0){i[f>>0]=1;f=k[w+24>>2]|0;u=(f&32|0)==0;nq(v,k[c>>2]|0);e=k[c>>2]|0;if((e|0)>0){t=c+4|0;q=(b|0)==0;n=(f&96|0)==0;o=(b|0)!=0;p=0;do{m=k[t>>2]|0;e=k[m+(p*20|0)>>2]|0;do if(e){f=k[m+(p*20|0)+4>>2]|0;if(f){oq(v,p,0,f,-1);break}f=i[e>>0]|0;if(f<<24>>24==-102){if(q)x=25}else if(!(f<<24>>24==-100&o))x=25;if((x|0)==25){x=0;f=k[m+(p*20|0)+8>>2]|0;if(!f){k[z>>2]=p+1;f=zh(w,34880,z)|0}else f=ph(w,f)|0;oq(v,p,0,f,75);break}l=j[e+32>>1]|0;f=l<<16>>16;h=k[b>>2]|0;a:do if((h|0)>0){d=k[e+28>>2]|0;g=0;while(1){e=g+1|0;if((k[b+(g*72|0)+48>>2]|0)==(d|0)){e=g;break a}if((e|0)<(h|0))g=e;else break}}else e=0;while(0);e=k[b+(e*72|0)+24>>2]|0;if(l<<16>>16<0)f=j[e+36>>1]|0;if((f|0)<0)f=20456;else f=k[(k[e+4>>2]|0)+(f*24|0)>>2]|0;if(n){oq(v,p,0,ph(w,k[m+(p*20|0)+8>>2]|0)|0,75);break}if(u){oq(v,p,0,f,-1);break}else{k[z>>2]=k[e>>2];k[z+4>>2]=f;oq(v,p,0,zh(w,27824,z)|0,75);break}}while(0);p=p+1|0;e=k[c>>2]|0}while((p|0)<(e|0))}f=k[y>>2]|0;k[z+4>>2]=b;k[z>>2]=a;if((e|0)>0){d=c+4|0;e=0;do{oq(f,e,1,Du(z,k[(k[d>>2]|0)+(e*20|0)>>2]|0,0)|0,-1);e=e+1|0}while((e|0)<(k[c>>2]|0))}}r=A;return}function Ts(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,l=0,m=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();e=m;g=b+8|0;if((k[g>>2]|0)==0?(ft(a),f=b+60|0,(k[f>>2]|0)!=0):0){i=a+72|0;j=(k[i>>2]|0)+1|0;k[i>>2]=j;k[g>>2]=j;l=Tq(a)|0;do if(Rs(k[f>>2]|0,e)|0){e=k[e>>2]|0;Bh(l,25,e,j,0)|0;if(!e){Bh(l,16,0,c,0)|0;break}if((e|0)>-1?(d=b+24|0,c=d,g=k[c+4>>2]|0,h=((e|0)<0)<<31>>31,g>>>0>h>>>0|((g|0)==(h|0)?(k[c>>2]|0)>>>0>e>>>0:0)):0){c=d;k[c>>2]=e;k[c+4>>2]=h}}else{Wq(a,k[f>>2]|0,j);Bh(l,38,j,0,0)|0;Bh(l,46,j,c,0)|0}while(0);e=k[b+64>>2]|0;if(e){h=k[i>>2]|0;c=h+1|0;k[b+12>>2]=c;k[i>>2]=h+2;Wq(a,e,c);Bh(l,38,c,0,0)|0;e=Bh(l,137,c,0,0)|0;Bh(l,25,0,c,0)|0;f=l+32|0;d=k[f>>2]|0;if(d>>>0>e>>>0)k[(k[l+4>>2]|0)+(e*20|0)+8>>2]=d;g=l+24|0;k[(k[g>>2]|0)+88>>2]=d+-1;d=h+2|0;Bh(l,89,j,c,d)|0;e=Bh(l,137,j,0,0)|0;Bh(l,25,-1,d,0)|0;d=k[f>>2]|0;if(d>>>0>e>>>0)k[(k[l+4>>2]|0)+(e*20|0)+8>>2]=d;k[(k[g>>2]|0)+88>>2]=d+-1}}r=m;return}function Us(a,b,c,d,e,f,g,h,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;j=j|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;F=k[a+8>>2]|0;A=i[g>>0]|0;u=A&255;w=g+4|0;D=k[w>>2]|0;if(!f)n=0;else n=l[f+1>>0]|0;if(!e)E=0;else E=(k[e>>2]|0)==0?0:e;z=(E|0)!=0;v=(n|0)!=0;if(!(z|v))nt(F,k[b+12>>2]|0,h);B=k[c>>2]|0;q=g+8|0;e=k[q>>2]|0;if(e){p=a+72|0;o=k[p>>2]|0;if((e+B|0)>(o|0)){k[p>>2]=o+B;C=e;x=0}else{C=e;x=0}}else{if(z){o=((i[E+24>>0]&1^1)&255)+(k[k[E>>2]>>2]|0)|0;C=a+72|0;p=o+(k[C>>2]|0)|0;k[C>>2]=p}else{p=k[a+72>>2]|0;o=0}C=p+1|0;k[q>>2]=C;k[a+72>>2]=p+B;x=o}k[g+12>>2]=B;do if((d|0)>-1){if((B|0)>0){p=0;do{Bh(F,47,d,p,p+C|0)|0;p=p+1|0}while((p|0)!=(B|0))}}else{if(A<<24>>24==9)o=1;else if(A<<24>>24==3)break;else o=A<<24>>24==13&1;gt(a,c,C,o)}while(0);if(v){o=l[f+1>>0]|0;if((o|0)==1)Eh(F,k[f+8>>2]|0);else if((o|0)==2){o=a+72|0;d=k[o>>2]|0;t=d+1|0;k[o>>2]=d+B;o=f+8|0;Eh(F,k[o>>2]|0);o=k[o>>2]|0;if((o|0)<0)o=(k[F+32>>2]|0)+-1|0;if(!(i[(k[F>>2]|0)+65>>0]|0))o=(k[F+4>>2]|0)+(o*20|0)|0;else o=29120;i[o>>0]=28;k[o+4>>2]=1;k[o+8>>2]=t;d=F+32|0;e=(k[d>>2]|0)+B|0;if((B|0)>0){p=c+4|0;o=B+-1|0;q=F+4|0;s=0;do{v=hu(a,k[(k[p>>2]|0)+(s*20|0)>>2]|0)|0;f=s+C|0;n=s+t|0;if((s|0)<(o|0))Bh(F,78,f,e,n)|0;else Bh(F,79,f,h,n)|0;Ch(F,-1,v,-4);r=k[q>>2]|0;if(r)i[r+(((k[d>>2]|0)+-1|0)*20|0)+3>>0]=-128;s=s+1|0}while((s|0)!=(B|0))}else o=B+-1|0;Bh(F,33,C,t,o)|0}else Eu(a,k[f+4>>2]|0,h,B,C);if(!E)nt(F,k[b+12>>2]|0,h)}a:do switch(u|0){case 12:case 14:case 6:case 5:{p=x+1|0;o=a+60|0;e=k[o>>2]|0;q=a+56|0;n=k[q>>2]|0;if((n|0)<(p|0)){y=a+72|0;e=k[y>>2]|0;k[y>>2]=e+p;e=e+1|0}else{k[o>>2]=e+p;k[q>>2]=n-p}n=e+x|0;Bh(F,49,C,B,n)|0;if(A<<24>>24==6){C=D+1|0;Ch(F,Bh(F,69,C,(k[F+32>>2]|0)+4|0,e)|0,0,-14);Bh(F,110,C,e,0)|0}if(z)Fu(a,E,b,n,1,x);else{n=a+19|0;f=i[n>>0]|0;if(!(f<<24>>24)){C=a+72|0;f=(k[C>>2]|0)+1|0;k[C>>2]=f}else{f=f+-1<<24>>24;i[n>>0]=f;f=k[a+((f&255)<<2)+24>>2]|0}Bh(F,74,D,f,0)|0;Bh(F,75,D,e,f)|0;n=k[F+4>>2]|0;if(n)i[n+(((k[F+32>>2]|0)+-1|0)*20|0)+3>>0]=8;ds(a,f)}it(a,e,p);if((k[q>>2]|0)<(p|0)){k[q>>2]=p;k[o>>2]=e;y=94}else y=94;break}case 11:{e=g+1|0;B=Gu(k[k[c+4>>2]>>2]|0,i[e>>0]|0)|0;i[e>>0]=B;if(z){Fu(a,E,b,C,1,x);break a}f=a+19|0;n=i[f>>0]|0;if(!(n<<24>>24)){B=a+72|0;f=(k[B>>2]|0)+1|0;k[B>>2]=f}else{B=n+-1<<24>>24;i[f>>0]=B;f=k[a+((B&255)<<2)+24>>2]|0}Ch(F,Bh(F,49,C,1,f)|0,e,1);it(a,C,1);Bh(F,110,D,f,0)|0;ds(a,f);y=94;break}case 2:{Bh(F,111,D,C,B)|0;y=94;break}case 3:{Bh(F,25,1,D,0)|0;y=94;break}case 10:{if(z)Fu(a,E,b,C,1,x);else y=95;break}case 9:case 13:{if(z){Fu(a,E,b,C,B,x);break a}if(A<<24>>24==13){Bh(F,22,k[w>>2]|0,0,0)|0;y=95;break a}else{Bh(F,35,C,B,0)|0;it(a,C,B);y=94;break a}}case 1:{n=a+19|0;f=i[n>>0]|0;if(!(f<<24>>24)){A=a+72|0;f=(k[A>>2]|0)+1|0;k[A>>2]=f}else{f=f+-1<<24>>24;i[n>>0]=f;f=k[a+((f&255)<<2)+24>>2]|0}Bh(F,49,C,B,f)|0;Bh(F,110,D,f,0)|0;ds(a,f);y=94;break}case 7:case 8:{r=k[g+16>>2]|0;d=k[r>>2]|0;n=a+19|0;f=i[n>>0]|0;if(!(f<<24>>24)){z=a+72|0;s=(k[z>>2]|0)+1|0;k[z>>2]=s}else{s=f+-1<<24>>24;i[n>>0]=s;s=k[a+((s&255)<<2)+24>>2]|0}t=d+2|0;u=a+60|0;e=k[u>>2]|0;v=a+56|0;n=k[v>>2]|0;if((n|0)<(t|0)){z=a+72|0;e=k[z>>2]|0;k[z>>2]=e+t;e=e+1|0}else{k[u>>2]=e+t;k[v>>2]=n-t}q=e+d|0;o=q+1|0;if(A<<24>>24==8){n=D+1|0;f=Bh(F,69,n,0,C)|0;Ch(F,f,B,-14);Bh(F,49,C,B,o)|0;Bh(F,110,n,o,0)|0;n=k[F+4>>2]|0;if(!n)p=f;else{i[n+(((k[F+32>>2]|0)+-1|0)*20|0)+3>>0]=16;p=f}}else{Bh(F,49,C,B,o)|0;p=0}if((d|0)>0){o=r+4|0;n=C+-1|0;f=0;do{Bh(F,34,n+(m[(k[o>>2]|0)+(f*20|0)+16>>1]|0)|0,f+e|0,0)|0;f=f+1|0}while((f|0)!=(d|0))}Bh(F,73,D,q,0)|0;Bh(F,49,e,t,s)|0;Bh(F,110,D,s,0)|0;if(p){n=k[F+32>>2]|0;if(n>>>0>p>>>0)k[(k[F+4>>2]|0)+(p*20|0)+8>>2]=n;k[(k[F+24>>2]|0)+88>>2]=n+-1}ds(a,s);it(a,e,t);if((k[v>>2]|0)<(t|0)){k[v>>2]=t;k[u>>2]=e;y=94}else y=94;break}default:y=94}while(0);if((y|0)==94?(E|0)==0:0)y=95;if((y|0)==95?(G=k[b+8>>2]|0,(G|0)!=0):0)Bh(F,140,G,j,0)|0;return}function Vs(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0;l=r;r=r+16|0;if((r|0)>=(s|0))ka();j=l;if((i[a+450>>0]|0)==2){g=k[a+8>>2]|0;h=k[a>>2]|0;f=(e|0)!=0?35160:10360;if((b|0)==117)e=35352;else if((b|0)==116)e=35320;else if((b|0)==118)e=35336;else e=35360;k[j>>2]=c;k[j+4>>2]=d;k[j+8>>2]=f;k[j+12>>2]=e;e=zh(h,35120,j)|0;Ch(g,Bh(g,157,k[a+464>>2]|0,0,0)|0,e,-1)}r=l;return}function Ws(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=c+b|0;e=(d*5|0)+24|0;f=vg(e,0)|0;if(!f)i[a+65>>0]=1;else{kw(f|0,0,e|0)|0;k[f+16>>2]=f+20+(d<<2);j[f+6>>1]=b;j[f+8>>1]=c;i[f+4>>0]=i[a+62>>0]|0;k[f+12>>2]=a;k[f>>2]=1}return f|0}function Xs(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=k[b+52>>2]|0;if(!((e|0)!=0?(d=Xs(a,e,c)|0,(d|0)!=0):0)){d=k[b>>2]|0;if((k[d>>2]|0)>(c|0))d=hu(a,k[(k[d+4>>2]|0)+(c*20|0)>>2]|0)|0;else d=0}return d|0}function Ys(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;e=(a|0)==0;d=(b|0)==0;a:do if(!(e&d))if(!(e|d)?(f=k[a>>2]|0,(f|0)==(k[b>>2]|0)):0)if((f|0)>0){a=k[a+4>>2]|0;d=k[b+4>>2]|0;e=0;while(1){if((i[a+(e*20|0)+12>>0]|0)!=(i[d+(e*20|0)+12>>0]|0)){d=1;break a}if(Hu(k[a+(e*20|0)>>2]|0,k[d+(e*20|0)>>2]|0,c)|0){d=1;break a}e=e+1|0;if((e|0)>=(f|0)){d=0;break}}}else d=0;else d=1;else d=0;while(0);return d|0}function Zs(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0;e=k[a>>2]|0;l=k[b>>2]|0;j=Ws(e,l-c|0,d+1|0)|0;if((j|0)!=0&(l|0)>(c|0)){f=e+8|0;g=j+16|0;h=c;d=(k[b+4>>2]|0)+(c*20|0)|0;while(1){e=hu(a,k[d>>2]|0)|0;if(!e)e=k[f>>2]|0;b=h-c|0;k[j+(b<<2)+20>>2]=e;i[(k[g>>2]|0)+b>>0]=i[d+12>>0]|0;h=h+1|0;if((h|0)==(l|0))break;else d=d+20|0}}return j|0}function _s(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0;Ma=r;r=r+64|0;if((r|0)>=(s|0))ka();Ka=Ma;La=Ma+48|0;Ja=Ma+52|0;Y=Ma+28|0;Ha=a+8|0;da=k[Ha>>2]|0;Ia=k[a>>2]|0;k[Y+0>>2]=0;k[Y+4>>2]=0;k[Y+8>>2]=0;k[Y+12>>2]=0;k[Y+16>>2]=0;if(!d)P=0;else P=(k[d>>2]|0)>63?0:d;Z=Y+8|0;k[Z>>2]=P;_=Ia+60|0;if(j[_>>1]&32)f=f&64511;d=k[b>>2]|0;a:do if((d|0)<=64){H=f&65535;K=(H&64|0)!=0;U=K?1:d;u=(U*80|0)+743&-16;h=u+72|0;d=rh(Ia,h,0)|0;Ga=(d|0)==0;if(!Ga)kw(d|0,0,h|0)|0;xa=Ia+65|0;if(i[xa>>0]|0){rg(Ia,d);d=0;break}ba=d+60|0;ca=d+64|0;k[ca>>2]=-1;k[ba>>2]=-1;ya=d+41|0;i[ya>>0]=U;k[d>>2]=a;za=d+4|0;k[za>>2]=b;$=d+8|0;k[$>>2]=P;k[d+12>>2]=e;Ba=Cs(da)|0;Aa=d+48|0;k[Aa>>2]=Ba;o=d+52|0;k[o>>2]=Ba;Ba=d+34|0;j[Ba>>1]=f;Ca=a+424|0;Da=d+56|0;k[Da>>2]=k[Ca>>2];Ea=d+68|0;k[Y>>2]=d;Fa=d+328|0;X=Y+4|0;k[X>>2]=Fa;S=Y+12|0;k[S>>2]=d+u;k[d+(u+48)>>2]=d+(u+56);j[d+(u+40)>>1]=0;j[d+(u+44)>>1]=3;k[d+(u+36)>>2]=0;k[Ea>>2]=0;k[Fa>>2]=d;k[d+332>>2]=0;va=d+340|0;k[va>>2]=0;k[d+344>>2]=8;wa=d+348|0;k[wa>>2]=d+352;Iu(Fa,c,72);y=(U|0)==0;if((k[d+340>>2]|0)>0){x=Ka+20|0;w=Ka+4|0;h=Ka+24|0;c=Fa;n=0;do{if(!y){c=k[(k[c+20>>2]|0)+(n*48|0)>>2]|0;k[Ka+0>>2]=0;k[Ka+4>>2]=0;k[Ka+8>>2]=0;k[Ka+12>>2]=0;k[Ka+16>>2]=0;k[Ka+20>>2]=0;i[x>>0]=2;k[Ka>>2]=78;k[w>>2]=79;k[h>>2]=0;ws(Ka,c)|0;c=k[X>>2]|0;if(i[x>>0]|0)ua=15}else ua=15;if((ua|0)==15){ua=0;lt(a,k[(k[c+20>>2]|0)+(n*48|0)>>2]|0,k[o>>2]|0,16);c=k[X>>2]|0;aa=(k[c+20>>2]|0)+(n*48|0)+20|0;j[aa>>1]=m[aa>>1]|4}n=n+1|0}while((n|0)<(k[c+12>>2]|0))}if(y){if(P)i[d+36>>0]=k[P>>2];if(H&1024)i[d+40>>0]=1}if((k[b>>2]|0)>0){u=0;do{O=k[b+(u*72|0)+48>>2]|0;aa=k[Ea>>2]|0;k[Ea>>2]=aa+1;k[Ea+(aa<<2)+4>>2]=O;u=u+1|0}while((u|0)<(k[b>>2]|0))}p=k[va>>2]|0;if((p|0)>0)do{p=p+-1|0;Ju(Fa,p)}while((p|0)>0);b:do if(!(i[xa>>0]|0)){aa=(H&1024|0)==0;c:do if(!aa){d:do if((k[b>>2]|0)==1){G=k[b+48>>2]|0;n=k[b+24>>2]|0;x=k[e>>2]|0;e:do if((x|0)>0){w=k[e+4>>2]|0;h=0;while(1){c=k[w+(h*20|0)>>2]|0;f:do if(!c)c=0;else while(1){y=k[c+4>>2]|0;if(!(y&4096))break f;if(!(y&262144))c=c+12|0;else c=k[(k[c+20>>2]|0)+4>>2]|0;c=k[c>>2]|0;if(!c){c=0;break}}while(0);do if((i[c>>0]|0)==-102){if((k[c+28>>2]|0)!=(G|0))break;if((j[c+32>>1]|0)<0)break e}while(0);h=h+1|0;if((h|0)>=(x|0)){ua=41;break}}}else ua=41;while(0);g:do if((ua|0)==41){c=k[n+8>>2]|0;if(!c)break d;o=e+4|0;n=n+4|0;while(1){if(i[c+50>>0]|0){C=c+46|0;h:do if(!(j[C>>1]|0))y=0;else{E=c+4|0;D=c+32|0;y=0;do{B=j[(k[E>>2]|0)+(y<<1)>>1]|0;if(!(Ku(Fa,G,B,-1,-1,2,c)|0)){h=k[(k[D>>2]|0)+(y<<2)>>2]|0;if((k[e>>2]|0)>0)x=0;else break h;i:while(1){z=k[(k[o>>2]|0)+(x*20|0)>>2]|0;j:do if(!z)w=0;else{w=z;while(1){A=k[w+4>>2]|0;if(!(A&4096))break j;if(!(A&262144))w=w+12|0;else w=k[(k[w+20>>2]|0)+4>>2]|0;w=k[w>>2]|0;if(!w){w=0;break}}}while(0);do if((i[w>>0]|0)==-102){if((j[w+32>>1]|0)!=(j[(k[E>>2]|0)+(y<<1)>>1]|0))break;if((k[w+28>>2]|0)!=(G|0))break;w=hu(a,z)|0;if(!w)break;if(!(id(k[w>>2]|0,h)|0))break i}while(0);x=x+1|0;if((x|0)>=(k[e>>2]|0))break h}if((x|0)<0)break h;if(!(i[(k[n>>2]|0)+(B*24|0)+20>>0]|0))break h}y=y+1|0}while((y|0)<(m[C>>1]|0))}while(0);if((y|0)==(m[C>>1]|0))break g}c=k[c+20>>2]|0;if(!c)break d}}while(0);i[d+40>>0]=1;break c}while(0);if(!P){j[Ba>>1]=m[Ba>>1]|512;k[$>>2]=e}}while(0);k:do if((((U|0)==1?(W=k[Y>>2]|0,V=W+34|0,(j[V>>1]&32)==0):0)?(R=k[W+4>>2]|0,N=k[R+24>>2]|0,(i[N+44>>0]&16)==0):0)?(k[R+72>>2]|0)==0:0){P=k[R+48>>2]|0;z=W+328|0;O=k[S>>2]|0;G=O+36|0;k[G>>2]=0;j[O+42>>1]=0;v=Ku(z,P,-1,0,0,2,0)|0;l:do if(!v){x=k[N+8>>2]|0;m:do if(x){A=O+48|0;n:while(1){do if(i[x+50>>0]|0){if(k[x+36>>2]|0)break;w=x+46|0;c=j[w>>1]|0;if((c&65535)>3)break;o=x+4|0;o:do if(!(c<<16>>16)){c=0;y=0}else{y=0;while(1){c=Ku(z,P,j[(k[o>>2]|0)+(y<<1)>>1]|0,0,0,2,x)|0;if(!c)break;k[(k[A>>2]|0)+(y<<2)>>2]=c;y=y+1|0;c=j[w>>1]|0;if((y|0)>=(c&65535|0))break o}c=j[w>>1]|0}while(0);if((y|0)==(c&65535|0)){A=y;break n}}while(0);x=k[x+20>>2]|0;if(!x)break m}k[G>>2]=4609;if(!(i[x+51>>0]&32)){n=R+64|0;h=k[n>>2]|0;n=k[n+4>>2]|0;w=0;v=0;c=m[x+48>>1]|0;p:while(1){y=c;while(1){c=y+-1|0;if((y|0)<=0)break p;y=j[(k[o>>2]|0)+(c<<1)>>1]|0;if((y&65535)<63)break;else y=c}Y=nw(1,0,y<<16>>16|0)|0;w=Y|w;v=L|v}if((h&~w|0)==0&(n&~v|0)==0)ua=91}else ua=91;if((ua|0)==91)k[G>>2]=4673;Y=A&65535;j[O+40>>1]=Y;j[O+24>>1]=Y;k[O+28>>2]=x;j[O+20>>1]=39;break l}while(0);if(!(k[G>>2]|0)){ua=103;break k}}else{k[G>>2]=4353;k[k[O+48>>2]>>2]=v;j[O+40>>1]=1;j[O+24>>1]=1;j[O+20>>1]=33}while(0);j[O+22>>1]=1;k[W+800>>2]=O;o=k[W+68>>2]|0;q:do if((o|0)>0){p=0;while(1){if((k[W+(p<<2)+72>>2]|0)==(P|0))break;p=p+1|0;if((p|0)>=(o|0)){p=0;o=0;break q}}p=nw(1,0,p|0)|0;o=L}else{p=0;o=0}while(0);n=O+8|0;k[n>>2]=p;k[n+4>>2]=o;k[W+740>>2]=P;j[W+32>>1]=1;n=k[W+8>>2]|0;if(n)i[W+36>>0]=k[n>>2];if(!(j[V>>1]&1024)){ua=120;break}i[W+40>>0]=1;ua=120}else ua=103;while(0);if((ua|0)==103){C=k[Y>>2]|0;c=k[C+4>>2]|0;D=k[k[C>>2]>>2]|0;W=i[C+41>>0]|0;E=W&255;w=k[S>>2]|0;k[w+48>>2]=w+56;j[w+40>>1]=0;j[w+44>>1]=3;k[w+36>>2]=0;h=D+65|0;r:do if(W<<24>>24){n=w+16|0;o=C+68|0;p=w+8|0;q=0;t=0;u=0;v=0;B=0;A=c+8|0;z=0;while(1){i[n>>0]=B;y=k[A+40>>2]|0;x=k[o>>2]|0;s:do if((x|0)>0){c=0;while(1){if((k[C+(c<<2)+72>>2]|0)==(y|0))break;c=c+1|0;if((c|0)>=(x|0)){c=0;y=0;break s}}c=nw(1,0,c|0)|0;y=L}else{c=0;y=0}while(0);W=p;k[W>>2]=c;k[W+4>>2]=y;W=z;z=i[A+36>>0]|0;W=((z|W)&10)==0;t=W?t:q;v=W?v:u;if(!(i[(k[A+16>>2]|0)+44>>0]&16))c=Mu(Y,t,v)|0;else c=Lu(Y,t,v)|0;if(c)break;W=Nu(Y,t,v)|0;c=p;if(W)break;if(i[h>>0]|0)break r;B=B+1|0;if((B|0)>=(E|0))break r;else{q=k[c>>2]|q;u=k[c+4>>2]|u;A=A+72|0}}Ou(D,w);break b}while(0);Ou(D,w);Pu(d,0);if(i[xa>>0]|0)break;if(k[$>>2]|0){Pu(d,(m[d+32>>1]|0)+1&65535);if(!(i[xa>>0]|0))ua=120;else break}else ua=121}if((ua|0)==120?(k[$>>2]|0)==0:0)ua=121;if((ua|0)==121?(k[Ia+24>>2]&131072|0)!=0:0){$=d+24|0;k[$>>2]=-1;k[$+4>>2]=-1}if((k[a+64>>2]|0)==0?(i[xa>>0]|0)==0:0){u=i[ya>>0]|0;t:do if((u&255)>1&(e|0)!=0?(j[_>>1]&1024)==0:0){n=Qu(Ea,e)|0;o=L;h=k[Z>>2]|0;if(h){$=Qu(Ea,h)|0;n=$|n;o=L|o}y=d+736|0;c=k[za>>2]|0;x=k[X>>2]|0;w=x+20|0;x=x+12|0;v=u;h=U;do{p=k[y+(((v&255)+-1|0)*80|0)+64>>2]|0;if(!(i[c+((l[p+16>>0]|0)*72|0)+44>>0]&8))break t;if(aa?(k[p+36>>2]&4096|0)==0:0)break t;t=p+8|0;q=k[t>>2]|0;t=k[t+4>>2]|0;if(!((q&n|0)==0&(t&o|0)==0))break t;p=k[w>>2]|0;$=k[x>>2]|0;u=p+($*48|0)|0;if(($|0)>0)do{$=p+40|0;if(!((q&k[$>>2]|0)==0?(t&k[$+4>>2]|0)==0:0)?(k[(k[p>>2]|0)+4>>2]&1|0)==0:0)break t;p=p+48|0}while(p>>>0<u>>>0);v=v+-1<<24>>24;i[ya>>0]=v;h=h+-1|0}while((v&255)>1)}else h=U;while(0);aa=(k[d>>2]|0)+424|0;k[aa>>2]=(k[aa>>2]|0)+(j[d+32>>1]|0);do if((H&4|0)!=0?(T=(k[d+800>>2]|0)+36|0,Q=k[T>>2]|0,(Q&4096|0)!=0):0){i[d+38>>0]=1;if(i[(k[b+24>>2]|0)+44>>0]&32)break;k[T>>2]=Q&-65}while(0);ta=d+736|0;P=(h|0)>0;if(P){M=H&16;N=d+38|0;O=da+32|0;I=K^1;K=(g|0)==0|I;J=a+68|0;G=54-(H>>>12&1)|0;F=da+4|0;B=Ia+20|0;z=Ia+16|0;q=0;H=ta;while(1){A=l[H+44>>0]|0;C=b+(A*72|0)+24|0;o=k[C>>2]|0;c=k[o+68>>2]|0;u:do if(!c)w=-1e6;else{y=k[B>>2]|0;if((y|0)<=0){w=0;break}x=k[z>>2]|0;n=0;while(1){w=n+1|0;if((k[x+(n<<4)+12>>2]|0)==(c|0)){w=n;break u}if((w|0)<(y|0))n=w;else break}}while(0);E=k[H+64>>2]|0;D=o+44|0;c=l[D>>0]|0;do if(!(c&2)){if(k[o+12>>2]|0)break;y=k[E+36>>2]|0;if(y&1024){v=k[o+60>>2]|0;v:do if(!v)v=0;else while(1){if((k[v>>2]|0)==(Ia|0))break v;v=k[v+24>>2]|0;if(!v){v=0;break}}while(0);Ch(da,Bh(da,149,k[b+(A*72|0)+48>>2]|0,0,0)|0,v,-10);break}if(c&16)break;if(y&64|M){ls(a,w,k[o+32>>2]|0,0,k[o>>2]|0);break}x=b+(A*72|0)+48|0;if(!(i[N>>0]|0))c=54;else{k[ba>>2]=k[x>>2];c=55}Vq(a,k[x>>2]|0,w,o,c);if(i[N>>0]|0)break;if((j[o+38>>1]|0)>=64)break;if(i[D>>0]&32)break;x=b+(A*72|0)+64|0;v=k[x>>2]|0;x=k[x+4>>2]|0;if((v|0)==0&(x|0)==0)u=0;else{u=0;do{v=rw(v|0,x|0,1)|0;x=L;u=u+1|0}while(!((v|0)==0&(x|0)==0))}Ch(da,(k[O>>2]|0)+-1|0,u,-14)}while(0);y=E+36|0;w:do if(k[y>>2]&512){c=k[E+28>>2]|0;do if(i[D>>0]&32){if((i[c+51>>0]&3)!=2|I)break;k[H+8>>2]=k[H+4>>2];break w}while(0);do if(!(i[N>>0]|0)){if(!K){u=g;t=G;break}u=k[J>>2]|0;k[J>>2]=u+1;t=54}else{t=k[(k[C>>2]|0)+8>>2]|0;if((t|0)==0|(t|0)==(c|0))u=g;else{u=g;do{u=u+1|0;t=k[t+20>>2]|0}while(!((t|0)==0|(t|0)==(c|0)))}k[ca>>2]=u;t=55}while(0);k[H+8>>2]=u;Bh(da,t,u,k[c+40>>2]|0,w)|0;aa=k[Ha>>2]|0;Ch(aa,-1,ms(a,c)|0,-6);aa=k[y>>2]|0;if(!((aa&15|0)!=0&(aa&32770|0)==0))break;if(j[Ba>>1]&1)break;p=k[F>>2]|0;if(!p)break;i[p+(((k[O>>2]|0)+-1|0)*20|0)+3>>0]=2}while(0);if((w|0)>-1)Fr(a,w);q=q+1|0;if((q|0)==(h|0))break;else H=H+80|0}ca=(i[xa>>0]|0)==0;k[d+44>>2]=k[O>>2];if(!ca)break}else{O=da+32|0;k[d+44>>2]=k[O>>2]}if(!P)break a;ga=d+24|0;ha=d+36|0;ia=d+39|0;ja=a+80|0;la=a+68|0;ma=a+100|0;na=a+19|0;oa=a+72|0;pa=Ka+20|0;qa=Ka+4|0;ra=Ka+24|0;o=-1;n=-1;sa=0;while(1){V=ta+(sa*80|0)|0;c=ta+(sa*80|0)+64|0;X=ta+(sa*80|0)+44|0;if(k[(k[c>>2]|0)+36>>2]&16384){G=l[X>>0]|0;R=b+(G*72|0)+8|0;W=k[Ha>>2]|0;v=Tq(a)|0;Y=k[ja>>2]|0;k[ja>>2]=Y+1;Y=Bh(v,44,Y,0,0)|0;v=k[b+(G*72|0)+24>>2]|0;ca=k[va>>2]|0;y=k[wa>>2]|0;Q=y+(ca*48|0)|0;I=k[c>>2]|0;x:do if((ca|0)>0){w=b+(G*72|0)+48|0;q=v+4|0;t=I+48|0;C=0;z=0;x=0;p=0;B=0;while(1){A=k[y>>2]|0;ca=I;do if((k[ca>>2]|0)==0&(k[ca+4>>2]|0)==0){if(j[y+20>>1]&2)break;if(k[A+4>>2]&1)break;ca=k[w>>2]|0;k[Ka+0>>2]=0;k[Ka+4>>2]=0;k[Ka+8>>2]=0;k[Ka+12>>2]=0;k[Ka+16>>2]=0;k[Ka+20>>2]=0;i[pa>>0]=3;k[Ka>>2]=78;k[qa>>2]=79;k[ra>>2]=ca;ws(Ka,A)|0;if(!(i[pa>>0]|0))break;ca=k[a>>2]|0;p=xs(ca,p,Rr(ca,A,0,0)|0)|0}while(0);do if(!(Ru(y,R,o,n)|0)){E=C;A=z;c=x}else{A=k[y+12>>2]|0;if((A|0)>63){E=0;D=-2147483648}else{E=nw(1,0,A|0)|0;D=L}if(!(B<<24>>24)){B=k[(k[q>>2]|0)+(A*24|0)>>2]|0;k[Ka>>2]=k[v>>2];k[Ka+4>>2]=B;gd(284,33960,Ka);B=1}if(!((E&C|0)==0&(D&z|0)==0)){E=C;A=z;c=x;break}c=x+1|0;if(Su(k[a>>2]|0,I,c)|0)break x;k[(k[t>>2]|0)+(x<<2)>>2]=y;E=E|C;A=D|z}while(0);y=y+48|0;if(y>>>0>=Q>>>0){y=E;ua=207;break}else{C=E;z=A;x=c}}}else{A=0;y=0;c=0;p=0;ua=207}while(0);do if((ua|0)==207){ua=0;q=c&65535;j[I+40>>1]=q;j[I+24>>1]=q;q=I+36|0;k[q>>2]=16961;H=b+(G*72|0)+64|0;J=H;D=k[J+4>>2]|0;J=k[J>>2]&~y;M=D&((A|-2147483648)^2147483647);u=v+38|0;N=j[u>>1]|0;E=N<<16>>16;N=N<<16>>16>63?63:E;P=(N|0)>0;if(P){A=0;do{ca=nw(1,0,A|0)|0;c=(((ca&J|0)!=0|(L&M|0)!=0)&1)+c|0;A=A+1|0}while((A|0)!=(N|0))}if((D|0)<0)c=c+-63+E|0;K=c+1|0;F=zs(k[a>>2]|0,K&65535,0,La)|0;if(!F)break;k[I+28>>2]=F;k[F>>2]=33992;k[F+12>>2]=v;A=k[wa>>2]|0;if(A>>>0<Q>>>0){c=F+4|0;y=F+32|0;D=0;E=0;x=0;do{do if(Ru(A,R,o,n)|0){C=k[A+12>>2]|0;if((C|0)>63){B=0;z=-2147483648}else{B=nw(1,0,C|0)|0;z=L}if(!((B&D|0)==0&(z&E|0)==0))break;ca=k[A>>2]|0;j[(k[c>>2]|0)+(x<<1)>>1]=C;C=Tu(a,k[ca+12>>2]|0,k[ca+16>>2]|0)|0;if(!C)C=11152;else C=k[C>>2]|0;k[(k[y>>2]|0)+(x<<2)>>2]=C;D=B|D;E=z|E;x=x+1|0}while(0);A=A+48|0}while(A>>>0<Q>>>0)}else x=0;if(P){A=F+4|0;z=F+32|0;c=0;do{ca=nw(1,0,c|0)|0;if(!((ca&J|0)==0&(L&M|0)==0)){j[(k[A>>2]|0)+(x<<1)>>1]=c;k[(k[z>>2]|0)+(x<<2)>>2]=11152;x=x+1|0}c=c+1|0}while((c|0)!=(N|0))}do if((k[H+4>>2]|0)<0){if((j[u>>1]|0)<=63)break;c=F+4|0;y=F+32|0;w=63;do{j[(k[c>>2]|0)+(x<<1)>>1]=w;k[(k[y>>2]|0)+(x<<2)>>2]=11152;x=x+1|0;w=w+1|0}while((w|0)<(j[u>>1]|0))}while(0);j[(k[F+4>>2]|0)+(x<<1)>>1]=-1;k[(k[F+32>>2]|0)+(x<<2)>>2]=11152;A=k[la>>2]|0;k[la>>2]=A+1;y=ta+(sa*80|0)+8|0;k[y>>2]=A;Bh(W,56,A,K,0)|0;A=k[Ha>>2]|0;Ch(A,-1,ms(a,F)|0,-6);k[ma>>2]=(k[ma>>2]|0)+1;A=ta+(sa*80|0)+4|0;t=Bh(W,108,k[A>>2]|0,0,0)|0;x=(p|0)!=0;if(x){w=Cs(W)|0;lt(a,p,w,16);k[q>>2]=k[q>>2]|131072}else w=0;c=i[na>>0]|0;if(!(c<<24>>24)){q=(k[oa>>2]|0)+1|0;k[oa>>2]=q}else{q=c+-1<<24>>24;i[na>>0]=q;q=k[a+((q&255)<<2)+24>>2]|0}Ut(a,F,k[A>>2]|0,q,0,0,0,0)|0;Bh(W,110,k[y>>2]|0,q,0)|0;z=W+4|0;c=k[z>>2]|0;if(c)i[c+(((k[W+32>>2]|0)+-1|0)*20|0)+3>>0]=16;if(x){y=k[W+24>>2]|0;x=~w;do if((w|0)<0){c=k[y+112>>2]|0;if(!c)break;k[c+(x<<2)>>2]=k[W+32>>2]}while(0);k[y+88>>2]=(k[W+32>>2]|0)+-1}Bh(W,9,k[A>>2]|0,t+1|0,0)|0;c=k[z>>2]|0;y=k[W+32>>2]|0;if(c)i[c+((y+-1|0)*20|0)+3>>0]=3;if(y>>>0>t>>>0)k[c+(t*20|0)+8>>2]=y;c=W+24|0;k[(k[c>>2]|0)+88>>2]=y+-1;ds(a,q);gu(a);u=k[W+32>>2]|0;if(u>>>0>Y>>>0)k[(k[z>>2]|0)+(Y*20|0)+8>>2]=u;k[(k[c>>2]|0)+88>>2]=u+-1}while(0);Lk(k[a>>2]|0,p);if(i[xa>>0]|0)break b}Uu(a,b,V,sa,l[X>>0]|0,f);k[ta+(sa*80|0)+32>>2]=k[O>>2];fa=k[d>>2]|0;K=fa+8|0;ba=k[K>>2]|0;da=k[fa>>2]|0;p=d+(sa*80|0)+736|0;J=k[d+(sa*80|0)+800>>2]|0;$=d+(sa*80|0)+780|0;G=l[$>>0]|0;E=k[za>>2]|0;N=E+(G*72|0)+8|0;g=k[E+(G*72|0)+48>>2]|0;y=k[Ea>>2]|0;y:do if((y|0)>0){c=0;while(1){if((k[Ea+(c<<2)+4>>2]|0)==(g|0))break;c=c+1|0;if((c|0)>=(y|0)){c=-1;y=-1;break y}}c=nw(1,0,c|0)|0;c=~c;y=~L}else{c=-1;y=-1}while(0);ea=d+(sa*80|0)+808|0;M=ea;k[M>>2]=c&o;k[M+4>>2]=y&n;M=ga;M=rw(k[M>>2]|0,k[M+4>>2]|0,sa|0)|0;_=M&1;T=J+36|0;if(!(k[T>>2]&64))v=0;else v=(j[Ba>>1]&32)==0;F=Cs(ba)|0;P=d+(sa*80|0)+752|0;k[P>>2]=F;aa=d+(sa*80|0)+748|0;k[aa>>2]=F;ca=Cs(ba)|0;k[d+(sa*80|0)+760>>2]=ca;do if(i[$>>0]|0){if(!(i[E+(G*72|0)+44>>0]&8))break;Z=fa+72|0;e=(k[Z>>2]|0)+1|0;k[Z>>2]=e;k[p>>2]=e;Bh(ba,25,0,e,0)|0}while(0);A=i[E+(G*72|0)+45>>0]|0;z:do if(!(A&4)){C=k[T>>2]|0;if(C&1024){q=j[J+40>>1]|0;t=q&65535;v=fa+100|0;k[v>>2]=(k[v>>2]|0)+1;v=t+2|0;F=fa+60|0;c=k[F>>2]|0;G=fa+56|0;y=k[G>>2]|0;if((y|0)<(v|0)){$=fa+72|0;u=k[$>>2]|0;k[$>>2]=u+v;u=u+1|0}else{k[F>>2]=c+v;k[G>>2]=y-v;u=c}c=k[aa>>2]|0;B=q<<16>>16==0;if(!B){D=u+2|0;C=J+48|0;E=0;do{A=D+E|0;z=k[(k[C>>2]|0)+(E<<2)>>2]|0;do if(z)if(!(j[z+18>>1]&1)){Wq(fa,k[(k[z>>2]|0)+16>>2]|0,A);break}else{Vu(fa,z,p,E,_,A)|0;c=k[P>>2]|0;break}while(0);E=E+1|0}while((E|0)<(t|0))}Bh(ba,25,k[J+24>>2]|0,u,0)|0;Bh(ba,25,t,u+1|0,0)|0;_=k[J+32>>2]|0;aa=J+28|0;$=(i[aa>>0]|0)!=0?-11:-2;Ch(ba,Bh(ba,14,g,c,u)|0,_,$);i[aa>>0]=0;if(!B){w=J+30|0;x=J+48|0;c=(q&65535)>1?0-t|0:-1;c=c>>>0>4294967280?0-c|0:16;y=0;do{if(m[w>>1]&1<<y)Wu(p,k[(k[x>>2]|0)+(y<<2)>>2]|0);y=y+1|0}while((y|0)!=(c|0))}i[d+(sa*80|0)+781>>0]=-105;k[d+(sa*80|0)+784>>2]=g;k[d+(sa*80|0)+788>>2]=k[ba+32>>2];it(fa,u,v);if((k[G>>2]|0)<(v|0)){k[G>>2]=v;k[F>>2]=u}gu(fa);ua=459;break}if(!((C&256|0)==0|(C&5|0)==0)){v=k[k[J+48>>2]>>2]|0;aa=fa+72|0;x=(k[aa>>2]|0)+1|0;k[aa>>2]=x;v=Vu(fa,v,p,0,_,x)|0;if((v|0)!=(x|0))ds(fa,x);ua=k[P>>2]|0;Bh(ba,38,v,ua,0)|0;Bh(ba,70,g,ua,v)|0;it(fa,v,1);Xu(fa,g,-1,v);i[d+(sa*80|0)+781>>0]=-100;ua=459;break}if((C&258|0)==258){if(!(C&32)){c=0;x=0}else{c=1;x=k[k[J+48>>2]>>2]|0}if(!(C&16))c=0;else c=k[(k[J+48>>2]|0)+(c<<2)>>2]|0;y=(_|0)!=0;w=y?x:c;c=y?c:x;if(!c)Bh(ba,y?105:108,g,F,0)|0;else{$=k[c>>2]|0;aa=eu(fa,k[$+16>>2]|0,Ka)|0;Bh(ba,l[33536+((l[$>>0]|0)+-80)>>0]|0,g,F,aa)|0;it(fa,aa,1);ds(fa,k[Ka>>2]|0);Wu(p,c)}if(!w){c=0;y=156}else{aa=k[w>>2]|0;$=fa+72|0;c=(k[$>>2]|0)+1|0;k[$>>2]=c;Wq(fa,k[aa+16>>2]|0,c);aa=i[aa>>0]|0;if(aa<<24>>24==80|aa<<24>>24==82)y=_<<1^83;else y=_<<1|80;Wu(p,w)}x=ba+32|0;aa=k[x>>2]|0;i[d+(sa*80|0)+781>>0]=_^9;k[d+(sa*80|0)+784>>2]=g;k[d+(sa*80|0)+788>>2]=aa;if((y|0)==156){ua=459;break}aa=fa+72|0;u=(k[aa>>2]|0)+1|0;k[aa>>2]=u;Bh(ba,103,g,u,0)|0;Xu(fa,g,-1,u);Bh(ba,y,c,F,u)|0;u=k[ba+4>>2]|0;if(!u){ua=459;break}i[u+(((k[x>>2]|0)+-1|0)*20|0)+3>>0]=83;ua=459;break}if(C&512){K=j[J+24>>1]|0;i[Ja>>0]=0;S=k[J+28>>2]|0;U=k[d+(sa*80|0)+744>>2]|0;do if(!(j[Ba>>1]&1)){D=0;A=0}else{if((i[ha>>0]|0)<=0){D=0;A=0;break}A=(m[S+46>>1]|0)>(K&65535);D=A&1;A=A&1}while(0);c=K&65535;if(!(C&32)){E=c;G=0}else{E=c+1|0;A=1;G=k[(k[J+48>>2]|0)+(c<<2)>>2]|0}do if(!(C&16))z=0;else{z=k[(k[J+48>>2]|0)+(E<<2)>>2]|0;if(j[z+20>>1]&256){$=fa+72|0;aa=(k[$>>2]|0)+1|0;k[$>>2]=aa;k[d+(sa*80|0)+772>>2]=aa;Bh(ba,25,(i[(k[S+28>>2]|0)+c>>0]|0)==1^_,aa,0)|0;k[d+(sa*80|0)+776>>2]=k[ba+32>>2]}if(G){A=1;break}A=j[(k[S+4>>2]|0)+(c<<1)>>1]|0;if(A<<16>>16<=-1){A=1;break}D=(i[(k[(k[S+12>>2]|0)+4>>2]|0)+((A<<16>>16)*24|0)+20>>0]|0)==0?1:D;A=1}while(0);I=Yu(fa,p,_,A,La)|0;H=k[La>>2]|0;F=(H|0)==0;if(!F)i[Ja>>0]=i[H+c>>0]|0;J=k[P>>2]|0;B=j[S+46>>1]|0;if((K&65535)<(B&65535)?!((i[(k[S+28>>2]|0)+c>>0]|0)==0^((M&1|0)!=0|0!=0)):0)ua=318;else if((_|0)!=0?B<<16>>16==K<<16>>16:0)ua=318;else{N=D;D=0;M=z;P=G}if((ua|0)==318){N=0;M=G;P=z}z=(P|0)!=0;if(z)B=(j[P+18>>1]&40)!=0;else B=1;C=B&1;G=(M|0)!=0;if(G)E=(j[M+18>>1]&40)!=0;else E=1;A=E&1;E=(z|K<<16>>16!=0)&1;do if(z){y=k[(k[P>>2]|0)+16>>2]|0;z=I+c|0;Wq(fa,y,z);if(j[P+20>>1]&256){if(!(i[(k[ba>>2]|0)+65>>0]|0))B=(k[ba+4>>2]|0)+(((k[ba+32>>2]|0)+-1|0)*20|0)|0;else B=29120;k[B+12>>2]=k[d+(sa*80|0)+772>>2];i[B+3>>0]=1}if(Zu(y)|0)Bh(ba,76,z,J,0)|0;do if(!F){B=H+c|0;if((Gu(y,i[B>>0]|0)|0)<<24>>24==65){i[B>>0]=65;z=65}else z=i[B>>0]|0;if(!(_u(y,z)|0))break;i[B>>0]=65}while(0);B=c+1|0}else{if(!(N<<24>>24)){B=c;break}Bh(ba,28,0,I+c|0,0)|0;B=c+1|0;C=0;E=1}while(0);$u(fa,I,B-(N&255)|0,H);Ch(ba,Bh(ba,l[33544+(E<<2|_|C<<1)>>0]|0,U,J,I)|0,B,-14);do if(G){y=k[(k[M>>2]|0)+16>>2]|0;x=I+c|0;it(fa,x,1);Wq(fa,y,x);if(j[M+20>>1]&256){if(!(i[(k[ba>>2]|0)+65>>0]|0))z=(k[ba+4>>2]|0)+(((k[ba+32>>2]|0)+-1|0)*20|0)|0;else z=29120;k[z+12>>2]=k[d+(sa*80|0)+772>>2];i[z+3>>0]=1}if(Zu(y)|0)Bh(ba,76,x,J,0)|0;do if((Gu(y,i[Ja>>0]|0)|0)<<24>>24!=65){if(_u(y,i[Ja>>0]|0)|0)break;$u(fa,x,1,Ja)}while(0);c=c+1|0}else{if(!(D<<24>>24))break;Bh(ba,28,0,I+c|0,0)|0;A=0;c=c+1|0}while(0);rg(da,H);k[d+(sa*80|0)+788>>2]=k[ba+32>>2];if(c)Ch(ba,Bh(ba,l[33552+(A|_<<1)>>0]|0,U,J,I)|0,c,-14);Wu(p,P);Wu(p,M);do if(!v){c=k[S+12>>2]|0;if(!(i[c+44>>0]&32)){$=fa+72|0;aa=(k[$>>2]|0)+1|0;k[$>>2]=aa;Bh(ba,112,U,aa,0)|0;Xu(fa,g,-1,aa);Bh(ba,66,g,aa,0)|0;break}if((g|0)==(U|0))break;c=k[c+8>>2]|0;A:do if(!c)A=0;else while(1){if((i[c+51>>0]&3)==2){A=c;break A}c=k[c+20>>2]|0;if(!c){A=0;break}}while(0);E=A+46|0;t=j[E>>1]|0;c=t&65535;y=fa+60|0;x=k[y>>2]|0;w=fa+56|0;q=k[w>>2]|0;if((q|0)<(c|0)){aa=fa+72|0;x=k[aa>>2]|0;k[aa>>2]=x+c;x=x+1|0}else{k[y>>2]=x+c;k[w>>2]=q-c}if(t<<16>>16){q=A+4|0;t=S+48|0;w=S+4|0;B=0;do{A=j[(k[q>>2]|0)+(B<<1)>>1]|0;c=j[t>>1]|0;B:do if(!(c<<16>>16))c=-1;else{z=k[w>>2]|0;y=c&65535;c=0;while(1){if((j[z+(c<<1)>>1]|0)==A<<16>>16)break B;c=c+1|0;if((c|0)>=(y|0)){c=-1;break}}}while(0);Bh(ba,47,U,c<<16>>16,B+x|0)|0;B=B+1|0;c=m[E>>1]|0}while((B|0)<(c|0))}Ch(ba,Bh(ba,68,g,ca,x)|0,c,-14)}while(0);x=k[T>>2]|0;do if(!(x&4096)){w=d+(sa*80|0)+781|0;if(!_){i[w>>0]=9;break}else{i[w>>0]=8;break}}else i[d+(sa*80|0)+781>>0]=-100;while(0);k[d+(sa*80|0)+784>>2]=U;i[d+(sa*80|0)+782>>0]=x>>>16&1;if(x&15){ua=459;break}i[d+(sa*80|0)+783>>0]=1;ua=459;break}if(!(C&8192))if(!(A&8)){i[d+(sa*80|0)+781>>0]=i[33560+_>>0]|0;k[d+(sa*80|0)+784>>2]=g;ua=(Bh(ba,l[33568+_>>0]|0,g,F,0)|0)+1|0;k[d+(sa*80|0)+788>>2]=ua;i[d+(sa*80|0)+783>>0]=1;ua=459;break}else{i[d+(sa*80|0)+781>>0]=-100;ua=459;break}F=fa+68|0;Z=k[F>>2]|0;k[F>>2]=Z+1;X=fa+72|0;Y=(k[X>>2]|0)+1|0;k[X>>2]=Y;_=Cs(ba)|0;W=k[E+(G*72|0)+24>>2]|0;e=k[k[J+48>>2]>>2]|0;P=k[e+12>>2]|0;i[d+(sa*80|0)+781>>0]=18;k[d+(sa*80|0)+784>>2]=Y;A=i[ya>>0]|0;do if((A&255)>1){E=(A&255)-sa|0;C=E+-1|0;B=rh(da,(C*72|0)+80|0,0)|0;if(!B)break z;A=E&255;k[B+4>>2]=A;k[B>>2]=A;A=B+8|0;G=A+0|0;z=N+0|0;c=G+72|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));D=k[za>>2]|0;if((E|0)<2){V=B;break}else E=1;while(1){G=A+(E*72|0)+0|0;z=D+((l[d+((E+sa|0)*80|0)+780>>0]|0)*72|0)+8|0;c=G+72|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));if((E|0)<(C|0))E=E+1|0;else{V=B;break}}}else V=k[za>>2]|0;while(0);if(!(j[Ba>>1]&8)){if(!(i[W+44>>0]&32)){A=(k[X>>2]|0)+1|0;k[X>>2]=A;Bh(ba,28,0,A,0)|0}else{A=k[W+8>>2]|0;C:do if(!A)A=0;else while(1){if((i[A+51>>0]&3)==2)break C;A=k[A+20>>2]|0;if(!A){A=0;break}}while(0);U=k[F>>2]|0;k[F>>2]=U+1;Bh(ba,57,U,m[A+46>>1]|0,0)|0;T=k[K>>2]|0;Ch(T,-1,ms(fa,A)|0,-6);A=U}T=(k[X>>2]|0)+1|0;k[X>>2]=T}else{T=0;A=0}U=Bh(ba,25,0,Y,0)|0;z=k[va>>2]|0;do if((z|0)>1){B=0;E=0;do{D=k[wa>>2]|0;S=D+(B*48|0)|0;C=k[S>>2]|0;do if((S|0)!=(e|0)){if(k[C+4>>2]&1)break;if(j[D+(B*48|0)+20>>1]&2)break;if(!(j[D+(B*48|0)+18>>1]&4095))break;E=xs(da,E,Rr(da,C,0,0)|0)|0;z=k[va>>2]|0}while(0);B=B+1|0}while((B|0)<(z|0));z=E;if(!z){S=0;break}S=cr(fa,72,0,z,0)|0}else S=0;while(0);R=P+12|0;do if((k[R>>2]|0)>0){u=P+20|0;t=(S|0)==0;q=W+44|0;w=ba+32|0;x=ba+4|0;z=ba+24|0;B=W+8|0;C=fa+60|0;D=fa+56|0;E=S+12|0;Q=0;y=0;c=0;v=240;while(1){G=k[u>>2]|0;if((k[G+(Q*48|0)+8>>2]|0)!=(g|0)?(j[G+(Q*48|0)+18>>1]&512)==0:0)G=v;else ua=407;do if((ua|0)==407){ua=0;G=k[G+(Q*48|0)>>2]|0;do if(!t){if(k[G+4>>2]&1)break;k[E>>2]=G;G=S}while(0);H=_s(fa,V,G,0,0,v,Z)|0;if(!H){G=v;break}Uu(fa,V,H+736|0,sa,l[$>>0]|0,0);do if(!(j[Ba>>1]&8)){K=(Q|0)==((k[R>>2]|0)+-1|0)?-1:Q;do if(!(i[q>>0]&32)){F=Bh(ba,130,A,0,ht(fa,W,-1,g,T,0)|0)|0;Ch(ba,F,K,-14)}else{G=k[B>>2]|0;D:do if(!G)G=0;else while(1){if((i[G+51>>0]&3)==2)break D;G=k[G+20>>2]|0;if(!G){G=0;break}}while(0);M=j[G+46>>1]|0;I=M&65535;P=k[C>>2]|0;N=k[D>>2]|0;if((N|0)<(I|0)){J=k[X>>2]|0;k[X>>2]=J+I;J=J+1|0}else{k[C>>2]=P+I;k[D>>2]=N-I;J=P}if(M<<16>>16){N=G+4|0;P=0;do{ht(fa,W,j[(k[N>>2]|0)+(P<<1)>>1]|0,g,P+J|0,0)|0;P=P+1|0}while((P|0)<(I|0))}P=(K|0)!=0;if(P){F=Bh(ba,69,A,0,J)|0;Ch(ba,F,I,-14);if((K|0)>-1)ua=426}else{F=0;ua=426}do if((ua|0)==426){ua=0;Bh(ba,49,J,I,T)|0;Bh(ba,110,A,T,0)|0;if(!P)break;K=k[x>>2]|0;if(!K)break;i[K+(((k[w>>2]|0)+-1|0)*20|0)+3>>0]=16}while(0);it(fa,J,I);if((k[D>>2]|0)>=(I|0))break;k[D>>2]=I;k[C>>2]=J}while(0);Bh(ba,17,Y,_,0)|0;if(!F)break;G=k[w>>2]|0;if(G>>>0>F>>>0)k[(k[x>>2]|0)+(F*20|0)+8>>2]=G;k[(k[z>>2]|0)+88>>2]=G+-1}else Bh(ba,17,Y,_,0)|0;while(0);c=(i[H+39>>0]|0)==0?c:1;G=k[H+800>>2]|0;do if(!(k[G+36>>2]&512)){y=0;G=v}else{if((Q|0)!=0?(k[G+28>>2]|0)!=(y|0):0){y=0;G=v;break}y=k[G+28>>2]|0;if((i[q>>0]&32)!=0?(i[y+51>>0]&3)==2:0){y=0;G=v;break}G=(v&65535|4096)&65535}while(0);at(H)}while(0);Q=Q+1|0;if((Q|0)>=(k[R>>2]|0))break;else v=G}k[d+(sa*80|0)+792>>2]=y;if(!y){q=c;break}k[d+(sa*80|0)+744>>2]=Z;q=c}else{k[d+(sa*80|0)+792>>2]=0;q=0}while(0);if(S){k[S+12>>2]=0;Lk(da,S)}w=ba+32|0;c=k[w>>2]|0;if(c>>>0>U>>>0)k[(k[ba+4>>2]|0)+(U*20|0)+4>>2]=c;Bh(ba,16,0,k[aa>>2]|0,0)|0;y=k[ba+24>>2]|0;x=~_;do if((_|0)<0){c=k[y+112>>2]|0;if(!c)break;k[c+(x<<2)>>2]=k[w>>2]}while(0);k[y+88>>2]=(k[w>>2]|0)+-1;if((l[ya>>0]|0)>1)rg(da,V);if(q){ua=459;break}Wu(p,e);ua=459}else{ua=k[E+(G*72|0)+36>>2]|0;Bh(ba,20,ua,0,k[E+(G*72|0)+32>>2]|0)|0;ua=Bh(ba,22,ua,F,0)|0;k[d+(sa*80|0)+788>>2]=ua;i[d+(sa*80|0)+781>>0]=16;ua=459}while(0);if((ua|0)==459){ua=0;c=k[va>>2]|0;do if((c|0)>0){u=d+(sa*80|0)+772|0;v=ba+32|0;z=ba+4|0;A=ba+24|0;t=k[wa>>2]|0;while(1){q=t+20|0;y=j[q>>1]|0;do if(!(y&6)){aa=t+40|0;$=ea;if(!((k[$>>2]&k[aa>>2]|0)==0?(k[$+4>>2]&k[aa+4>>2]|0)==0:0)){i[ia>>0]=1;break}x=k[t>>2]|0;if((k[p>>2]|0)!=0?(k[x+4>>2]&1|0)==0:0)break;do if(!(y&512))lt(fa,x,ca,16);else{w=Bh(ba,46,k[u>>2]|0,0,0)|0;lt(fa,x,ca,16);if(!w)break;y=k[v>>2]|0;if(y>>>0>w>>>0)k[(k[z>>2]|0)+(w*20|0)+8>>2]=y;k[(k[A>>2]|0)+88>>2]=y+-1}while(0);j[q>>1]=m[q>>1]|4}while(0);c=c+-1|0;if((c|0)<=0)break;else t=t+48|0}u=k[va>>2]|0;if((u|0)<=0){ua=475;break}w=k[wa>>2]|0;while(1){do if(!(j[w+20>>1]&6)){if((j[w+18>>1]|0)!=1026)break;if((k[w+8>>2]|0)!=(g|0))break;if(k[p>>2]|0)break;y=k[w>>2]|0;c=Ku(Fa,g,k[w+12>>2]|0,o,n,3,0)|0;if(!c)break;if(j[c+20>>1]&4)break;x=rh(da,48,0)|0;if(!x)break;G=x+0|0;z=(k[c>>2]|0)+0|0;c=G+48|0;do{k[G>>2]=k[z>>2];G=G+4|0;z=z+4|0}while((G|0)<(c|0));k[x+12>>2]=k[y+12>>2];lt(fa,x,ca,16);rg(da,x)}while(0);u=u+-1|0;if((u|0)<=0)break;else w=w+48|0}}else ua=475;while(0);if((ua|0)==475)ua=0;p=k[p>>2]|0;do if(p){k[d+(sa*80|0)+764>>2]=k[ba+32>>2];Bh(ba,25,1,p,0)|0;ft(fa);p=k[va>>2]|0;if((p|0)<=0)break;u=0;t=k[wa>>2]|0;while(1){o=t+20|0;do if(!(j[o>>1]&6)){ba=t+40|0;aa=ea;if(!((k[aa>>2]&k[ba>>2]|0)==0?(k[aa+4>>2]&k[ba+4>>2]|0)==0:0))break;lt(fa,k[t>>2]|0,ca,16);j[o>>1]=m[o>>1]|4;p=k[va>>2]|0}while(0);u=u+1|0;if((u|0)>=(p|0))break;else t=t+48|0}}while(0);n=ea;o=k[n>>2]|0;n=k[n+4>>2]|0}k[Aa>>2]=k[ta+(sa*80|0)+24>>2];sa=sa+1|0;if((sa|0)>=(h|0))break a}}}while(0);if(Ga)d=0;else{k[Ca>>2]=k[Da>>2];av(Ia,d);d=0}}else{k[Ka>>2]=64;yh(a,33504,Ka);d=0}while(0);r=Ma;return d|0}function $s(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=ow(a|0,b|0,-2,-1)|0;d=L}else{c=((a|0)!=0)<<31>>31;c=ow(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=L}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=ow(c|0,d|0,8,0)|0;a=rw(b|0,L|0,3-a|0)|0;b=L;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=ow(c|0,d|0,8,0)|0;a=nw(b|0,L|0,a+-3|0)|0;b=L}}else{b=0;a=1}while(0);L=b;return a|0}function at(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;C=k[a>>2]|0;D=k[C+8>>2]|0;F=k[a+4>>2]|0;G=k[C>>2]|0;ft(C);H=a+41|0;c=i[H>>0]|0;if(!(c<<24>>24))b=D+24|0;else{b=D+24|0;p=D+32|0;r=D+4|0;o=c&255;do{o=o+-1|0;e=k[a+(o*80|0)+800>>2]|0;A=k[a+(o*80|0)+760>>2]|0;c=k[b>>2]|0;d=~A;if((A|0)<0?(s=k[c+112>>2]|0,(s|0)!=0):0)k[s+(d<<2)>>2]=k[p>>2];k[c+88>>2]=(k[p>>2]|0)+-1;B=a+(o*80|0)+781|0;d=i[B>>0]|0;if(d<<24>>24!=-100?(Bh(D,d&255,k[a+(o*80|0)+784>>2]|0,k[a+(o*80|0)+788>>2]|0,l[a+(o*80|0)+782>>0]|0)|0,u=k[r>>2]|0,(u|0)!=0):0)i[u+(((k[p>>2]|0)+-1|0)*20|0)+3>>0]=i[a+(o*80|0)+783>>0]|0;t=e+36|0;if((k[t>>2]&2048|0)!=0?(v=a+(o*80|0)+792|0,w=k[v>>2]|0,(w|0)>0):0){A=k[a+(o*80|0)+752>>2]|0;g=k[b>>2]|0;d=~A;if((A|0)<0?(x=k[g+112>>2]|0,(x|0)!=0):0){k[x+(d<<2)>>2]=k[p>>2];h=k[v>>2]|0;f=k[p>>2]|0;k[g+88>>2]=f+-1;c=a+(o*80|0)+796|0;if((h|0)>0)I=16}else{f=k[p>>2]|0;k[g+88>>2]=f+-1;c=a+(o*80|0)+796|0;h=w;I=16}if((I|0)==16){I=0;d=g;n=h;m=(k[c>>2]|0)+((h+-1|0)*12|0)|0;while(1){h=m+4|0;g=k[h>>2]|0;e=g+1|0;if(f>>>0>e>>>0)k[(k[r>>2]|0)+(e*20|0)+8>>2]=f;k[d+88>>2]=f+-1;Bh(D,l[m+8>>0]|0,k[m>>2]|0,g,0)|0;h=(k[h>>2]|0)+-1|0;f=k[p>>2]|0;if(f>>>0>h>>>0)k[(k[r>>2]|0)+(h*20|0)+8>>2]=f;d=k[b>>2]|0;k[d+88>>2]=f+-1;n=n+-1|0;if((n|0)<=0)break;else m=m+-12|0}}rg(G,k[c>>2]|0)}A=k[a+(o*80|0)+748>>2]|0;e=k[b>>2]|0;d=~A;if((A|0)<0?(q=k[e+112>>2]|0,(q|0)!=0):0)k[q+(d<<2)>>2]=k[p>>2];d=k[p>>2]|0;k[e+88>>2]=d+-1;e=a+(o*80|0)+756|0;c=k[e>>2]|0;if(c){Bh(D,16,0,c,0)|0;e=k[e>>2]|0;d=k[p>>2]|0;if(d>>>0>e>>>0)k[(k[r>>2]|0)+(e*20|0)+8>>2]=d;f=d+-1|0;c=(k[b>>2]|0)+88|0;k[c>>2]=f;e=e+-2|0;if(d>>>0>e>>>0)k[(k[r>>2]|0)+(e*20|0)+8>>2]=d;k[c>>2]=f}e=k[a+(o*80|0)+776>>2]|0;if(e){if(!(i[(k[D>>2]|0)+65>>0]|0))d=(k[r>>2]|0)+((((e|0)<1?d:e)+-1|0)*20|0)|0;else d=29120;Bh(D,(k[d+4>>2]|0)==0?141:140,k[a+(o*80|0)+772>>2]|0,e,0)|0}c=k[a+(o*80|0)+736>>2]|0;if(c){f=Bh(D,137,c,0,0)|0;c=k[t>>2]|0;if(!(c&64)){Bh(D,104,k[F+(o*72|0)+48>>2]|0,0,0)|0;c=k[t>>2]|0}if(c&512)Bh(D,104,k[a+(o*80|0)+744>>2]|0,0,0)|0;c=k[a+(o*80|0)+764>>2]|0;if((i[B>>0]|0)==18)Bh(D,17,k[a+(o*80|0)+784>>2]|0,c,0)|0;else Bh(D,16,0,c,0)|0;c=k[p>>2]|0;if(c>>>0>f>>>0)k[(k[r>>2]|0)+(f*20|0)+8>>2]=c;k[(k[b>>2]|0)+88>>2]=c+-1}}while((o|0)>0)}A=k[a+52>>2]|0;c=k[b>>2]|0;b=~A;if((A|0)<0?(y=k[c+112>>2]|0,(y|0)!=0):0)k[y+(b<<2)>>2]=k[D+32>>2];B=D+32|0;k[c+88>>2]=(k[B>>2]|0)+-1;if(i[H>>0]|0){u=a+34|0;v=a+38|0;w=a+64|0;x=G+65|0;y=D+4|0;z=0;A=a+736|0;while(1){e=l[A+44>>0]|0;f=k[F+(e*72|0)+24>>2]|0;d=k[A+64>>2]|0;if((i[F+(e*72|0)+45>>0]&4)!=0?(i[x>>0]|0)==0:0){g=k[B>>2]|0;d=k[A+32>>2]|0;if(!(i[(k[D>>2]|0)+65>>0]|0))c=(k[y>>2]|0)+(((d|0)<0?g+-1|0:d)*20|0)|0;else c=29120;if((d|0)<(g|0)){h=k[A+4>>2]|0;f=F+(e*72|0)+40|0;e=c;while(1){c=e+4|0;do if((k[c>>2]|0)==(h|0)){b=i[e>>0]|0;if(b<<24>>24==47){i[e>>0]=33;s=e+8|0;k[c>>2]=(k[f>>2]|0)+(k[s>>2]|0);t=e+12|0;k[s>>2]=k[t>>2];k[t>>2]=0;break}else if(b<<24>>24==103){i[e>>0]=28;k[c>>2]=0;k[e+12>>2]=0;break}else break}while(0);d=d+1|0;if((d|0)==(g|0))break;else e=e+20|0}}}else I=64;do if((I|0)==64){I=0;t=f+44|0;if(((i[t>>0]&2)==0?(k[f+12>>2]|0)==0:0)?(j[u>>1]&16)==0:0){c=k[d+36>>2]|0;if((i[v>>0]|0)==0&(c&64|0)==0)Bh(D,61,k[F+(e*72|0)+48>>2]|0,0,0)|0;if((c&17152|0)==512?(E=k[A+8>>2]|0,(E|0)!=(k[w>>2]|0)):0)Bh(D,61,E,0,0)|0}c=k[d+36>>2]|0;if(!(c&576)){if(!(c&8192))break;c=A+56|0}else c=d+28|0;d=k[c>>2]|0;if((d|0)!=0?(i[x>>0]|0)==0:0){r=k[B>>2]|0;h=k[A+32>>2]|0;if(!(i[(k[D>>2]|0)+65>>0]|0))g=(k[y>>2]|0)+(((h|0)<0?r+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(r|0)){s=d+48|0;p=d+4|0;q=A+8|0;o=f+8|0;b=k[A+4>>2]|0;c=g;while(1){d=c+4|0;a:do if((k[d>>2]|0)==(b|0)){g=i[c>>0]|0;if(g<<24>>24==103){k[d>>2]=k[q>>2];i[c>>0]=112;break}else if(g<<24>>24!=47)break;e=c+8|0;g=k[e>>2]|0;if(i[t>>0]&32){f=o;while(1){f=k[f>>2]|0;if((i[f+51>>0]&3)==2)break;else f=f+20|0}g=j[(k[f+4>>2]|0)+(g<<1)>>1]|0}n=g&65535;g=j[s>>1]|0;if(g<<16>>16){f=k[p>>2]|0;m=g&65535;g=0;while(1){if((j[f+(g<<1)>>1]|0)==n<<16>>16)break;g=g+1|0;if((g|0)>=(m|0))break a}if((g&65535)<<16>>16>-1){k[e>>2]=g<<16>>16;k[d>>2]=k[q>>2]}}}while(0);h=h+1|0;if((h|0)==(r|0))break;else c=c+20|0}}}}while(0);z=z+1|0;if((z|0)>=(l[H>>0]|0))break;else A=A+80|0}}k[C+424>>2]=k[a+56>>2];av(G,a);return}function bt(a,b){a=a|0;b=b|0;var c=0,d=0;if((b|0)!=0?(k[b>>2]|0)>0:0){c=0;d=k[b+4>>2]|0;while(1){bv(a,k[d>>2]|0);c=c+1|0;if((c|0)>=(k[b>>2]|0))break;else d=d+20|0}}return}function ct(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0;u=r;r=r+16|0;if((r|0)>=(s|0))ka();p=u;d=k[a+24>>2]|0;q=k[d>>2]|0;g=k[d+4>>2]|0;t=k[d+12>>2]|0;c=l[b>>0]|0;a:do if((c|0)==154|(c|0)==156)if((g|0)!=0?(f=k[g>>2]|0,(f|0)>0):0){n=b+28|0;m=k[n>>2]|0;c=0;d=g+8|0;while(1){if((m|0)==(k[d+40>>2]|0))break;c=c+1|0;if((c|0)>=(f|0)){a=1;break a}else d=d+72|0}h=t+28|0;e=t+32|0;d=k[e>>2]|0;b:do if((d|0)>0){g=b+32|0;a=0;f=k[h>>2]|0;while(1){if((k[f+4>>2]|0)==(m|0)?(k[f+8>>2]|0)==(j[g>>1]|0):0)break b;a=a+1|0;if((a|0)<(d|0))f=f+24|0;else break}}else a=0;while(0);c:do if((a|0)>=(d|0)){d=Mt(k[q>>2]|0,k[h>>2]|0,24,e,p)|0;k[h>>2]=d;a=k[p>>2]|0;if((a|0)>-1){k[d+(a*24|0)>>2]=k[b+44>>2];e=k[n>>2]|0;k[d+(a*24|0)+4>>2]=e;f=j[b+32>>1]|0;k[d+(a*24|0)+8>>2]=f<<16>>16;n=q+72|0;g=(k[n>>2]|0)+1|0;k[n>>2]=g;k[d+(a*24|0)+16>>2]=g;g=d+(a*24|0)+12|0;k[g>>2]=-1;k[d+(a*24|0)+20>>2]=b;d=k[t+24>>2]|0;d:do if((d|0)!=0?(o=k[d>>2]|0,(o|0)>0):0){c=0;d=k[d+4>>2]|0;while(1){n=k[d>>2]|0;if(((i[n>>0]|0)==-102?(k[n+28>>2]|0)==(e|0):0)?(j[n+32>>1]|0)==f<<16>>16:0)break;c=c+1|0;if((c|0)>=(o|0))break d;else d=d+20|0}k[g>>2]=c;if((c|0)>=0)break c}while(0);n=t+12|0;o=k[n>>2]|0;k[n>>2]=o+1;k[g>>2]=o}}while(0);k[b+40>>2]=t;i[b>>0]=-100;j[b+34>>1]=a;a=1}else a=1;else if(((c|0)==155?(j[d+28>>1]&8)==0:0)?(k[a+16>>2]|0)==(l[b+38>>0]|0):0){f=t+40|0;g=t+44|0;c=k[g>>2]|0;e:do if((c|0)>0){a=0;d=k[f>>2]|0;while(1){if(!(Hu(k[d>>2]|0,b,-1)|0))break e;a=a+1|0;if((a|0)<(c|0))d=d+16|0;else break}}else a=0;while(0);do if((a|0)>=(c|0)){e=k[q>>2]|0;h=i[e+62>>0]|0;e=Mt(e,k[f>>2]|0,16,g,p)|0;k[f>>2]=e;a=k[p>>2]|0;if((a|0)>-1){k[e+(a<<4)>>2]=b;f=q+72|0;g=(k[f>>2]|0)+1|0;k[f>>2]=g;k[e+(a<<4)+8>>2]=g;g=k[q>>2]|0;f=k[b+8>>2]|0;if(!f)c=0;else{d=f;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;c=d-f&1073741823}d=k[b+20>>2]|0;if(!d)d=0;else d=k[d>>2]|0;o=Xh(g,f,c,d,h,0)|0;k[e+(a<<4)+4>>2]=o;if(!(k[b+4>>2]&16)){k[e+(a<<4)+12>>2]=-1;break}else{n=q+68|0;o=k[n>>2]|0;k[n>>2]=o+1;k[e+(a<<4)+12>>2]=o;break}}}while(0);j[b+34>>1]=a;k[b+40>>2]=t;a=1}else a=0;while(0);r=u;return a|0}function dt(a,b){a=a|0;b=b|0;return 0}function et(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=r;r=r+16|0;if((r|0)>=(s|0))ka();c=d;if((i[a+450>>0]|0)==2){e=k[a+8>>2]|0;f=k[a>>2]|0;k[c>>2]=b;c=zh(f,35e3,c)|0;Ch(e,Bh(e,157,k[a+464>>2]|0,0,0)|0,c,-1)}r=d;return}function ft(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=a+19|0;g=0;h=a+116|0;while(1){c=h+12|0;d=k[c>>2]|0;if(d){e=h+6|0;if(i[e>>0]|0){f=i[b>>0]|0;if((f&255)<8){i[b>>0]=f+1<<24>>24;k[a+((f&255)<<2)+24>>2]=d}i[e>>0]=0}k[c>>2]=0}g=g+1|0;if((g|0)==10)break;else h=h+20|0}return}function gt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+32|0;if((r|0)>=(s|0))ka();x=z;e=d&255;o=34-(e&1)|0;t=k[b>>2]|0;if(!(i[a+23>>0]|0))d=e&253;if((t|0)>0){f=(d&2)==0;g=a+8|0;h=(o|0)==33;j=x+20|0;l=x+4|0;m=x+24|0;n=0;b=k[b+4>>2]|0;while(1){e=k[b>>2]|0;if(!f?(k[x+0>>2]=0,k[x+4>>2]=0,k[x+8>>2]=0,k[x+12>>2]=0,k[x+16>>2]=0,k[x+20>>2]=0,i[j>>0]=1,k[x>>2]=78,k[l>>2]=79,k[m>>2]=0,ws(x,e)|0,(i[j>>0]|0)!=0):0)Lt(a,e,n+c|0,0);else y=8;do if((y|0)==8?(y=0,p=n+c|0,q=ns(a,e,p)|0,(q|0)!=(p|0)):0){d=k[g>>2]|0;if(h){if(!(i[(k[d>>2]|0)+65>>0]|0))e=(k[d+4>>2]|0)+(((k[d+32>>2]|0)+-1|0)*20|0)|0;else e=29120;if(((i[e>>0]|0)==33?(u=e+12|0,v=k[u>>2]|0,((k[e+4>>2]|0)+1+v|0)==(q|0)):0)?(w=v+1|0,(w+(k[e+8>>2]|0)|0)==(p|0)):0){k[u>>2]=w;break}}Bh(d,o,q,p,0)|0}while(0);n=n+1|0;if((n|0)==(t|0))break;else b=b+20|0}}r=z;return}function ht(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,l=0,m=0,n=0;n=k[a+8>>2]|0;g=a+116|0;m=0;h=g;while(1){l=k[h+12>>2]|0;if(((l|0)>0?(k[h>>2]|0)==(d|0):0)?(j[h+4>>1]|0)==(c|0):0){e=l;m=5;break}m=m+1|0;if((m|0)>=10){m=10;break}else h=h+20|0}do if((m|0)==5){n=a+104|0;f=k[n>>2]|0;k[n>>2]=f+1;k[h+16>>2]=f;h=0;while(1){if((k[g+12>>2]|0)==(e|0))i[g+6>>0]=0;h=h+1|0;if((h|0)==10)break;else g=g+20|0}}else if((m|0)==10){st(n,b,d,c,e);if(!(f<<24>>24)){Xu(a,d,c,e);break}g=k[n+4>>2]|0;if(g)i[g+(((k[n+32>>2]|0)+-1|0)*20|0)+3>>0]=f}while(0);return e|0}function it(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,j=0,l=0;c=b+-1+c|0;e=a+19|0;j=0;l=a+116|0;while(1){f=l+12|0;g=k[f>>2]|0;if(!((g|0)<(b|0)|(g|0)>(c|0))){h=l+6|0;if(i[h>>0]|0){d=i[e>>0]|0;if((d&255)<8){i[e>>0]=d+1<<24>>24;k[a+((d&255)<<2)+24>>2]=g}i[h>>0]=0}k[f>>2]=0}j=j+1|0;if((j|0)==10)break;else l=l+20|0}return}function jt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=k[a+8>>2]|0;i[b>>0]=1;s=b+44|0;if((k[s>>2]|0)>0){t=A+4|0;v=a+56|0;w=a+60|0;o=A+24|0;p=A+32|0;q=b+36|0;r=a+72|0;x=0;y=k[b+40>>2]|0;c=0;while(1){h=k[(k[y>>2]|0)+20>>2]|0;if(!h){d=0;f=0}else{d=k[h>>2]|0;f=k[w>>2]|0;e=k[v>>2]|0;if((e|0)<(d|0)){f=k[r>>2]|0;k[r>>2]=f+d;f=f+1|0}else{k[w>>2]=f+d;k[v>>2]=e-d}gt(a,h,f,1)}e=y+12|0;if((k[e>>2]|0)>-1){n=Cs(A)|0;Eu(a,k[e>>2]|0,n,1,f)}else n=0;m=y+4|0;e=k[m>>2]|0;if(j[e+2>>1]&32){if((d|0)>0){l=0;h=k[h+4>>2]|0;while(1){e=hu(a,k[h>>2]|0)|0;l=l+1|0;g=(e|0)!=0;if(!((l|0)<(d|0)&(g^1)))break;else h=h+20|0}if(!g)z=15}else z=15;if((z|0)==15){z=0;e=k[(k[a>>2]|0)+8>>2]|0}if(!c)if(!(k[q>>2]|0))c=0;else{c=(k[r>>2]|0)+1|0;k[r>>2]=c}Ch(A,Bh(A,36,c,0,0)|0,e,-4);e=k[m>>2]|0}Ch(A,Bh(A,10,0,f,k[y+8>>2]|0)|0,e,-5);e=k[t>>2]|0;if(e)i[e+(((k[p>>2]|0)+-1|0)*20|0)+3>>0]=d;it(a,f,d);it(a,f,d);if((k[v>>2]|0)<(d|0)){k[v>>2]=d;k[w>>2]=f}if(n){f=k[o>>2]|0;e=~n;if((n|0)<0?(u=k[f+112>>2]|0,(u|0)!=0):0)k[u+(e<<2)>>2]=k[p>>2];k[f+88>>2]=(k[p>>2]|0)+-1;ft(a)}x=x+1|0;if((x|0)>=(k[s>>2]|0))break;else y=y+16|0}if(c)f=Bh(A,45,c,0,0)|0;else f=0}else f=0;ft(a);c=b+36|0;if((k[c>>2]|0)>0){d=0;e=k[b+28>>2]|0;while(1){Wq(a,k[e+20>>2]|0,k[e+16>>2]|0);d=d+1|0;if((d|0)>=(k[c>>2]|0))break;else e=e+24|0}}i[b>>0]=0;ft(a);if(f){c=k[A+32>>2]|0;if(c>>>0>f>>>0)k[(k[A+4>>2]|0)+(f*20|0)+8>>2]=c;k[(k[A+24>>2]|0)+88>>2]=c+-1}return}function kt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=k[a+8>>2]|0;d=b+44|0;if((k[d>>2]|0)>0){e=0;b=k[b+40>>2]|0;while(1){a=k[(k[b>>2]|0)+20>>2]|0;if(!a)a=0;else a=k[a>>2]|0;f=k[b+4>>2]|0;Ch(c,Bh(c,142,k[b+8>>2]|0,a,0)|0,f,-5);e=e+1|0;if((e|0)>=(k[d>>2]|0))break;else b=b+16|0}}return}function lt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,m=0,n=0,o=0;n=r;r=r+16|0;if((r|0)>=(s|0))ka();j=n+4|0;m=n;h=k[a+8>>2]|0;k[j>>2]=0;k[m>>2]=0;if(!((h|0)==0|(b|0)==0)){o=l[b>>0]|0;e=o^1;a:do switch(o|0){case 19:{cv(a,k[b+12>>2]|0,c,d);break}case 77:case 76:{Bh(h,e,eu(a,k[b+12>>2]|0,j)|0,c,0)|0;break}case 148:case 73:{d=b+12|0;g=eu(a,k[d>>2]|0,j)|0;f=b+16|0;h=eu(a,k[f>>2]|0,m)|0;fu(a,k[d>>2]|0,k[f>>2]|0,(i[b>>0]|0)==73?78:79,g,h,c,128);break}case 79:case 78:case 83:case 80:case 81:case 82:{o=b+12|0;g=eu(a,k[o>>2]|0,j)|0;f=b+16|0;h=eu(a,k[f>>2]|0,m)|0;fu(a,k[o>>2]|0,k[f>>2]|0,e,g,h,c,d);break}case 75:{if(d){ku(a,b,c,c);break a}f=Cs(h)|0;ku(a,b,c,f);e=k[h+24>>2]|0;c=~f;if((f|0)<0?(g=k[e+112>>2]|0,(g|0)!=0):0)k[g+(c<<2)>>2]=k[h+32>>2];k[e+88>>2]=(k[h+32>>2]|0)+-1;break}case 71:{g=Cs(h)|0;cv(a,k[b+12>>2]|0,g,d^16);e=a+100|0;k[e>>2]=(k[e>>2]|0)+1;lt(a,k[b+16>>2]|0,c,d);c=k[h+24>>2]|0;e=~g;if((g|0)<0?(f=k[c+112>>2]|0,(f|0)!=0):0)k[f+(e<<2)>>2]=k[h+32>>2];k[c+88>>2]=(k[h+32>>2]|0)+-1;gu(a);break}case 72:{lt(a,k[b+12>>2]|0,c,d);h=a+100|0;k[h>>2]=(k[h>>2]|0)+1;lt(a,k[b+16>>2]|0,c,d);gu(a);break}case 74:{dv(a,b,c,0,d);break}default:{if(ru(b)|0){Bh(h,16,0,c,0)|0;break a}if(!(ev(b)|0))Bh(h,46,eu(a,b,j)|0,c,(d|0)!=0&1)|0}}while(0);ds(a,k[j>>2]|0);ds(a,k[m>>2]|0)}r=n;return}function mt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0;i=r;r=r+16|0;if((r|0)>=(s|0))ka();h=i;e=k[a+8>>2]|0;f=b+44|0;if((k[f>>2]|0)!=(0-(k[b+32>>2]|0)|0)?(Bh(e,28,0,k[b+16>>2]|0,k[b+20>>2]|0)|0,(k[f>>2]|0)>0):0){g=0;d=k[b+40>>2]|0;while(1){b=d+12|0;do if((k[b>>2]|0)>-1){c=k[(k[d>>2]|0)+20>>2]|0;if((c|0)!=0?(k[c>>2]|0)==1:0){c=Zs(a,c,0,0)|0;Ch(e,Bh(e,57,k[b>>2]|0,0,0)|0,c,-6);break}yh(a,34944,h);k[b>>2]=-1}while(0);g=g+1|0;if((g|0)>=(k[f>>2]|0))break;else d=d+16|0}}r=i;return}function nt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if((b|0)>0){d=Bh(a,138,b,0,-1)|0;Bh(a,16,0,c,0)|0;b=k[a+32>>2]|0;if(b>>>0>d>>>0)k[(k[a+4>>2]|0)+(d*20|0)+8>>2]=b;k[(k[a+24>>2]|0)+88>>2]=b+-1}return}function ot(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0;if((k[(k[a>>2]|0)+24>>2]&8388608|0)!=0?(f=Fs(a,b)|0,(f|0)!=0):0){a=0;b=f;do{if((l[b+8>>0]|0|0)==(c|0)?(fv(k[b+16>>2]|0,d)|0)!=0:0)a=l[b+9>>0]|0|a;b=k[b+32>>2]|0}while((b|0)!=0)}else{a=0;f=0}if(e)k[e>>2]=a;return ((a|0)!=0?f:0)|0}function pt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;f=i[b+44>>0]|0;if(f&16){e=k[a>>2]|0;d=b+60|0;while(1){d=k[d>>2]|0;if((k[d>>2]|0)==(e|0))break;else d=d+24|0}if(!(k[(k[k[d+4>>2]>>2]|0)+52>>2]|0))e=8;else e=5}else e=5;do if((e|0)==5){if(((f&1)!=0?(k[(k[a>>2]|0)+24>>2]&2048|0)==0:0)?(i[a+18>>0]|0)==0:0){e=8;break}if((c|0)==0?(k[b+12>>2]|0)!=0:0){k[g>>2]=k[b>>2];yh(a,34456,g);d=1}else d=0}while(0);if((e|0)==8){k[g>>2]=k[b>>2];yh(a,34424,g);d=1}r=h;return d|0}function qt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0;n=r;r=r+32|0;if((r|0)>=(s|0))ka();m=n;l=k[a>>2]|0;f=k[b+68>>2]|0;a:do if(f){e=k[l+20>>2]|0;if((e|0)>0){h=k[l+16>>2]|0;j=0;while(1){g=j+1|0;if((k[h+(j<<4)+12>>2]|0)==(f|0)){g=j;break a}if((g|0)<(e|0))j=g;else break}}else g=0}else g=-1e6;while(0);e=Rr(l,c,0,0)|0;f=ur(l,0,0,0)|0;if(f){c=ph(l,k[b>>2]|0)|0;k[f+16>>2]=c;c=ph(l,k[(k[l+16>>2]|0)+(g<<4)>>2]|0)|0;k[f+12>>2]=c}c=pr(a,0,f,e,0,0,0,0,0,0)|0;i[m>>0]=12;k[m+4>>2]=d;i[m+1>>0]=0;k[m+8>>2]=0;k[m+12>>2]=0;nr(a,c,m)|0;Rk(l,c,1);r=n;return}function rt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0;n=r;r=r+16|0;if((r|0)>=(s|0))ka();m=n+4|0;f=n;a:do if(k[(k[a>>2]|0)+24>>2]&524288){if(!c){d=gn((k[b+68>>2]|0)+56|0,k[b>>2]|0,f)|0;if((d|0)!=0?(k[d+8>>2]|0)!=0:0)e=1;else e=(k[b+16>>2]|0)!=0;e=e&1;break}a=k[b+16>>2]|0;if(a){i=b+36|0;l=(d|0)!=0;do{f=k[a+20>>2]|0;if((f|0)>0){h=0;do{g=k[a+(h<<3)+36>>2]|0;if((k[c+(g<<2)>>2]|0)>-1){e=1;break a}h=h+1|0;if((g|0)==(j[i>>1]|0)&l){e=1;break a}}while((h|0)<(f|0))}a=k[a+4>>2]|0}while((a|0)!=0)}f=gn((k[b+68>>2]|0)+56|0,k[b>>2]|0,m)|0;if((f|0)!=0?(e=k[f+8>>2]|0,(e|0)!=0):0)while(1){if(gv(b,e,c,d)|0){e=1;break a}e=k[e+12>>2]|0;if(!e){e=0;break}}else e=0}else e=0;while(0);r=n;return e|0}function st(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,m=0,n=0;if((d|0)>=0?(j[b+36>>1]|0)!=(d|0):0){f=l[b+44>>0]|0;n=(f&16|0)!=0?150:47;if(!(f&32))f=d;else{f=k[b+8>>2]|0;a:do if(!f)f=0;else while(1){if((i[f+51>>0]&3)==2)break a;f=k[f+20>>2]|0;if(!f){f=0;break}}while(0);m=d&65535;g=j[f+48>>1]|0;b:do if(!(g<<16>>16))f=-1;else{h=k[f+4>>2]|0;g=g&65535;f=0;while(1){if((j[h+(f<<1)>>1]|0)==m<<16>>16)break b;f=f+1|0;if((f|0)>=(g|0)){f=-1;break}}}while(0);f=f<<16>>16}Bh(a,n,c,f,e)|0}else Bh(a,103,c,e,0)|0;if((d|0)>-1)St(a,b,d,e);return}function tt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=b+16|0;c=k[f>>2]|0;do if(!c){d=k[b+12>>2]|0;c=k[a>>2]|0;e=b+48|0;a=vg((m[e>>1]|0)+1|0,0)|0;k[f>>2]=a;if(!a){i[c+65>>0]=1;c=0;break}if(!(j[e>>1]|0))c=0;else{b=b+4|0;d=d+4|0;c=0;do{a=j[(k[b>>2]|0)+(c<<1)>>1]|0;if(a<<16>>16<0)a=68;else a=i[(k[d>>2]|0)+((a<<16>>16)*24|0)+21>>0]|0;i[(k[f>>2]|0)+c>>0]=a;c=c+1|0}while((c|0)<(m[e>>1]|0));a=k[f>>2]|0}i[a+c>>0]=0;c=k[f>>2]|0}while(0);return c|0}function ut(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,j=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=b+44|0;if(!(i[r>>0]&16)){j=k[a>>2]|0;m=k[b+68>>2]|0;a:do if(m){n=k[j+20>>2]|0;if((n|0)>0){j=k[j+16>>2]|0;l=0;while(1){h=l+1|0;if((k[j+(l<<4)+12>>2]|0)==(m|0))break a;if((h|0)<(n|0))l=h;else{l=h;break}}}else l=0}else l=-1e6;while(0);q=Tq(a)|0;if((d|0)<0)d=k[a+68>>2]|0;j=d+1|0;p=(f|0)!=0;if(p)k[f>>2]=d;do if(!(i[r>>0]&32)){if((e|0)!=0?(i[e>>0]|0)==0:0){o=15;break}Vq(a,d,l,b,c)}else o=15;while(0);if((o|0)==15)ls(a,l,k[b+32>>2]|0,(c|0)==55&1,k[b>>2]|0);if(g)k[g>>2]=j;d=k[b+8>>2]|0;if(!d)h=0;else{m=(e|0)==0;b=a+8|0;n=j;h=0;while(1){j=n+1|0;if((i[d+51>>0]&3)==2?(i[r>>0]&32)!=0&p:0)k[f>>2]=n;h=h+1|0;if(!(!m?(i[e+h>>0]|0)==0:0)){Bh(q,c,n,k[d+40>>2]|0,l)|0;o=k[b>>2]|0;Ch(o,-1,ms(a,d)|0,-6)}d=k[d+20>>2]|0;if(!d)break;else n=j}}d=a+68|0;if((j|0)>(k[d>>2]|0))k[d>>2]=j}else h=0;return h|0}function vt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;f=k[a+408>>2]|0;f=(f|0)==0?a:f;e=f+452|0;a=k[e>>2]|0;c=k[f+520>>2]|0;a:do if((a|0)>0){d=0;while(1){if((k[c+(d<<2)>>2]|0)==(b|0))break a;d=d+1|0;if((d|0)>=(a|0)){g=4;break}}}else g=4;while(0);do if((g|0)==4){a=ad(c,(a<<2)+4|0)|0;if(!a){i[(k[f>>2]|0)+65>>0]=1;break}else{k[f+520>>2]=a;c=k[e>>2]|0;k[e>>2]=c+1;k[a+(c<<2)>>2]=b;break}}while(0);return}function wt(a,b,c,d,e,f,g,h,l,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;w=k[a+8>>2]|0;x=Cs(w)|0;u=(i[b+44>>0]&32)>>>4^70;if(!(m<<24>>24))Ch(w,Bh(w,u,d,x,f)|0,g<<16>>16,-14);if((rt(a,b,0,0)|0)!=0|(c|0)!=0){q=l&255;r=At(a,c,0,0,3,b,q)|0;r=zt(a,b)|0|r;o=a+72|0;n=k[o>>2]|0;m=n+1|0;s=b+38|0;k[o>>2]=m+(j[s>>1]|0);Bh(w,33,f,m,0)|0;o=j[s>>1]|0;if(o<<16>>16>0){t=(r|0)==-1;p=n+2|0;n=0;do{if(!t){if((n|0)<32?(1<<n&r|0)!=0:0)v=9}else v=9;if((v|0)==9){v=0;st(w,b,d,n,p+n|0);o=j[s>>1]|0}n=n+1|0}while((n|0)<(o<<16>>16|0))}t=w+32|0;s=k[t>>2]|0;Ct(a,c,109,0,1,b,m,q,x);if((s|0)<(k[t>>2]|0))Ch(w,Bh(w,u,d,x,f)|0,g<<16>>16,-14);Et(a,b,m,0,0,0)}else m=0;if((k[b+12>>2]|0)==0?(Ft(a,b,d,e,0),Bh(w,95,d,h<<24>>24!=0&1,0)|0,h<<24>>24!=0):0)Ch(w,-1,k[b>>2]|0,0);Ht(a,b,0,m,0,0);Ct(a,c,109,0,2,b,m,l&255,x);n=k[w+24>>2]|0;m=~x;if((x|0)<0?(y=k[n+112>>2]|0,(y|0)!=0):0)k[y+(m<<2)>>2]=k[w+32>>2];k[n+88>>2]=(k[w+32>>2]|0)+-1;return}function xt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,j=0,l=0,m=0,n=0,o=0,p=0;h=k[a+8>>2]|0;b=k[a+404>>2]|0;if(b){l=(k[a>>2]|0)+16|0;m=a+19|0;n=a+72|0;o=h+32|0;p=h+4|0;j=h+24|0;do{d=k[b+8>>2]|0;e=k[l>>2]|0;g=k[b+12>>2]|0;c=i[m>>0]|0;if(!(c<<24>>24)){f=(k[n>>2]|0)+1|0;k[n>>2]=f}else{f=c+-1<<24>>24;i[m>>0]=f;f=k[a+((f&255)<<2)+24>>2]|0}Vq(a,0,d,k[(k[e+(d<<4)+12>>2]|0)+72>>2]|0,55);e=g+1|0;d=Bh(h,77,e,0,0)|0;Bh(h,74,0,e,0)|0;c=k[o>>2]|0;if(c>>>0>d>>>0)k[(k[p>>2]|0)+(d*20|0)+8>>2]=c;k[(k[j>>2]|0)+88>>2]=c+-1;Bh(h,49,g+-1|0,2,f)|0;Bh(h,75,0,f,e)|0;c=k[p>>2]|0;if(c)i[c+(((k[o>>2]|0)+-1|0)*20|0)+3>>0]=8;Bh(h,61,0,0,0)|0;ds(a,f);b=k[b>>2]|0}while((b|0)!=0)}return}function yt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;k[e>>2]=c;if(!c)d=0;else{d=c;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-c&1073741823}k[e+4>>2]=d;d=sr(a,b,e,0)|0;r=f;return d|0}function zt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,l=0,m=0,n=0;m=r;r=r+16|0;if((r|0)>=(s|0))ka();g=m+4|0;l=m;if(k[(k[a>>2]|0)+24>>2]&524288){d=k[b+16>>2]|0;if(!d)c=0;else{c=0;do{e=k[d+20>>2]|0;if((e|0)>0){f=0;do{n=k[d+(f<<3)+36>>2]|0;c=((n|0)>31?-1:1<<n)|c;f=f+1|0}while((f|0)<(e|0))}d=k[d+4>>2]|0}while((d|0)!=0)}d=gn((k[b+68>>2]|0)+56|0,k[b>>2]|0,g)|0;if((d|0)!=0?(h=k[d+8>>2]|0,(h|0)!=0):0)do{k[l>>2]=0;Rt(a,b,h,l,0)|0;d=k[l>>2]|0;if((d|0)!=0?(i=j[d+46>>1]|0,i<<16>>16!=0):0){g=i&65535;f=k[d+4>>2]|0;e=0;do{d=j[f+(e<<1)>>1]|0;if(d<<16>>16>31)d=-1;else d=1<<(d<<16>>16);c=d|c;e=e+1|0}while((e|0)<(g|0))}h=k[h+12>>2]|0}while((h|0)!=0)}else c=0;r=m;return c|0}function At(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;i=(c|0)!=0?110:109;if(!b)h=0;else{h=0;do{if((((l[b+8>>0]|0|0)==(i|0)?((l[b+9>>0]|0)&e|0)!=0:0)?(fv(k[b+16>>2]|0,c)|0)!=0:0)?(j=hv(a,b,f,g)|0,(j|0)!=0):0)h=k[j+(d<<2)+16>>2]|h;b=k[b+32>>2]|0}while((b|0)!=0)}return h|0}function Bt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,l=0;l=b+20|0;d=k[l>>2]|0;do if(!d){f=k[a>>2]|0;h=b+38|0;e=(j[h>>1]|0)+1|0;e=vg(e,((e|0)<0)<<31>>31)|0;if(!e){i[f+65>>0]=1;break}if((j[h>>1]|0)>0){f=b+4|0;d=0;do{i[e+d>>0]=i[(k[f>>2]|0)+(d*24|0)+21>>0]|0;d=d+1|0}while((d|0)<(j[h>>1]|0))}else d=0;do{i[e+d>>0]=0;if((d|0)<=0)break;d=d+-1|0}while((i[e+d>>0]|0)==65);k[l>>2]=e;g=10}else{e=d;g=10}while(0);do if((g|0)==10){d=e;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-e&1073741823;if(d)if(!c){Ch(a,-1,e,d);break}else{Ch(a,Bh(a,48,c,d,0)|0,e,d);break}}while(0);return}function Ct(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;if(b)do{if(((l[b+8>>0]|0|0)==(c|0)?(l[b+9>>0]|0|0)==(e|0):0)?(fv(k[b+16>>2]|0,d)|0)!=0:0)iv(a,b,f,g,h,i);b=k[b+32>>2]|0}while((b|0)!=0);return}function Dt(a,b,c,d,e,f,g,h,l,n,o){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;n=n|0;o=o|0;var p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0;la=r;r=r+16|0;if((r|0)>=(s|0))ka();I=la;ea=(g|0)!=0;N=k[a>>2]|0;ja=Tq(a)|0;A=j[b+38>>1]|0;ha=b+44|0;if(!(i[ha>>0]&32)){da=1;ca=0}else{u=b+8|0;while(1){u=k[u>>2]|0;if((i[u+51>>0]&3)==2)break;else u=u+20|0}da=m[u+46>>1]|0;ca=u}if(A<<16>>16>0){w=b+36|0;v=b+4|0;u=l<<24>>24==10;t=a+408|0;q=f+1|0;B=ja+4|0;C=ja+32|0;D=ja+24|0;E=l&255;y=A<<16>>16;x=0;do{a:do if((x|0)!=(j[w>>1]|0)?(F=k[v>>2]|0,G=i[F+(x*24|0)+20>>0]|0,H=G&255,G<<24>>24!=0):0){if(u)if(G<<24>>24==10)ia=14;else{A=H;ia=11}else{A=E;ia=11}do if((ia|0)==11){ia=0;if((A|0)==5)A=(k[F+(x*24|0)+4>>2]|0)==0?2:5;if((A|0)==2){ia=14;break}else if((A|0)==3|(A|0)==1)break;else if((A|0)==4){Bh(ja,76,q+x|0,n,0)|0;break a}z=q+x|0;A=Bh(ja,77,z,0,0)|0;Wq(a,k[(k[v>>2]|0)+(x*24|0)+4>>2]|0,z);z=k[C>>2]|0;if(z>>>0>A>>>0)k[(k[B>>2]|0)+(A*20|0)+8>>2]=z;k[(k[D>>2]|0)+88>>2]=z+-1;break a}while(0);if((ia|0)==14){ia=0;A=k[t>>2]|0;i[((A|0)==0?a:A)+21>>0]=1;A=2}ba=k[F+(x*24|0)>>2]|0;k[I>>2]=k[b>>2];k[I+4>>2]=ba;ba=zh(N,27824,I)|0;Ch(ja,Bh(ja,23,1299,A,q+x|0)|0,ba,-1);A=k[B>>2]|0;if(A)i[A+(((k[C>>2]|0)+-1|0)*20|0)+3>>0]=1}while(0);x=x+1|0}while((x|0)!=(y|0))}x=k[b+24>>2]|0;if(((x|0)!=0?(k[N+24>>2]&8192|0)==0:0)?(k[a+92>>2]=f+1,(k[x>>2]|0)>0):0){w=x+4|0;q=ja+24|0;y=ja+32|0;A=0;u=l<<24>>24==10?2:l&255;while(1){z=Cs(ja)|0;cv(a,k[(k[w>>2]|0)+(A*20|0)>>2]|0,z,16);if((u|0)==4){Bh(ja,16,0,n,0)|0;t=4}else{v=k[(k[w>>2]|0)+(A*20|0)+4>>2]|0;if(!v)v=k[b>>2]|0;t=(u|0)==5?2:u;Es(a,275,t,v,0,3)}v=k[q>>2]|0;u=~z;if((z|0)<0?(J=k[v+112>>2]|0,(J|0)!=0):0)k[J+(u<<2)>>2]=k[y>>2];k[v+88>>2]=(k[y>>2]|0)+-1;A=A+1|0;if((A|0)>=(k[x>>2]|0))break;else u=t}}if(h<<24>>24!=0&(ca|0)==0){w=Cs(ja)|0;q=i[b+45>>0]|0;if(l<<24>>24==10)q=q<<24>>24==10?2:q&255;else q=l&255;if(ea?(Bh(ja,79,f,w,g)|0,K=k[ja+4>>2]|0,(K|0)!=0):0)i[K+(((k[ja+32>>2]|0)+-1|0)*20|0)+3>>0]=-112;b:do if(!((q|0)!=5|l<<24>>24==5)?(p=k[b+8>>2]|0,(p|0)!=0):0){while(1){if(((i[p+50>>0]|0)+-3&255)<2)break;p=k[p+20>>2]|0;if(!p){x=0;break b}}x=Bh(ja,16,0,0,0)|0}else x=0;while(0);Bh(ja,70,d,w,f)|0;c:do switch(q|0){case 4:{Bh(ja,16,0,n,0)|0;q=0;break}case 5:{if((k[N+24>>2]&262144|0)!=0?(L=ot(a,b,109,0,0)|0,(L|0)!=0):0)q=L;else if(!(rt(a,b,0,0)|0)){if(!(k[b+8>>2]|0)){q=1;break c}q=k[a+408>>2]|0;i[((q|0)==0?a:q)+20>>0]=1;Ft(a,b,d,e,0);q=1;break c}else q=0;ba=k[a+408>>2]|0;i[((ba|0)==0?a:ba)+20>>0]=1;wt(a,b,q,d,e,f,1,0,5,1);q=1;break}case 3:case 2:case 1:{ia=49;break}default:{q=2;ia=49}}while(0);if((ia|0)==49){Kt(a,q,b);q=0}v=ja+24|0;u=k[v>>2]|0;t=~w;if((w|0)<0?(M=k[u+112>>2]|0,(M|0)!=0):0)k[M+(t<<2)>>2]=k[ja+32>>2];p=ja+32|0;k[u+88>>2]=(k[p>>2]|0)+-1;if(!x){t=0;x=0}else{t=Bh(ja,16,0,0,0)|0;p=k[p>>2]|0;if(p>>>0>x>>>0)k[(k[ja+4>>2]|0)+(x*20|0)+8>>2]=p;k[(k[v>>2]|0)+88>>2]=p+-1}}else{t=0;x=0;q=0}A=k[b+8>>2]|0;if(A){_=f+1|0;$=a+60|0;aa=a+56|0;ba=a+72|0;Q=h<<24>>24==0;R=ja+24|0;S=ja+32|0;T=l<<24>>24==10;U=ja+4|0;V=ca+46|0;W=ca+32|0;X=ca+4|0;Y=g+1|0;Z=a+408|0;O=N+24|0;P=da&65535;w=l&255;v=b+36|0;u=a+92|0;E=0;p=0;z=-1;while(1){L=c+(p<<2)|0;do if(k[L>>2]|0){if(!(E<<24>>24)){Bt(ja,b,_);E=1}M=p+e|0;l=Cs(ja)|0;K=A+36|0;if(k[K>>2]|0){Bh(ja,28,0,k[L>>2]|0,0)|0;k[u>>2]=_;lt(a,k[K>>2]|0,l,16);k[u>>2]=0}N=A+48|0;F=j[N>>1]|0;I=F&65535;H=k[$>>2]|0;G=k[aa>>2]|0;if((G|0)<(I|0)){h=k[ba>>2]|0;k[ba>>2]=h+I;h=h+1|0}else{k[$>>2]=H+I;k[aa>>2]=G-I;h=H}if(!(F<<16>>16))J=z;else{J=A+4|0;G=0;do{y=j[(k[J>>2]|0)+(G<<1)>>1]|0;I=y<<16>>16;if(y<<16>>16>=0?y<<16>>16!=(j[v>>1]|0):0){H=G+h|0;I=_+I|0;ia=81}else{I=G+h|0;if((z|0)!=(I|0)){H=I;z=(k[K>>2]|0)==0?I:-1;I=f;ia=81}}if((ia|0)==81){ia=0;Bh(ja,34,I,H,0)|0;F=j[N>>1]|0}G=G+1|0;I=F&65535}while((G|0)<(I|0));J=z}Bh(ja,49,h,I,k[L>>2]|0)|0;it(a,h,m[N>>1]|0);K=(ca|0)==(A|0);if(ea&K&Q){z=k[R>>2]|0;y=~l;if((l|0)<0?(fa=k[z+112>>2]|0,(fa|0)!=0):0)k[fa+(y<<2)>>2]=k[S>>2];k[z+88>>2]=(k[S>>2]|0)+-1;z=J;break}D=i[A+50>>0]|0;C=D&255;if(!(D<<24>>24)){z=m[N>>1]|0;it(a,h,z);if((k[aa>>2]|0)<(z|0)){k[aa>>2]=z;k[$>>2]=h}z=k[R>>2]|0;y=~l;if((l|0)<0?(ga=k[z+112>>2]|0,(ga|0)!=0):0)k[ga+(y<<2)>>2]=k[S>>2];k[z+88>>2]=(k[S>>2]|0)+-1;z=J;break}if(T)L=D<<24>>24==10?2:C;else L=w;z=m[A+46>>1]|0;Ch(ja,Bh(ja,67,M,l,h)|0,z,-14);do if(!K){I=k[$>>2]|0;H=k[aa>>2]|0;if((H|0)<(da|0)){I=k[ba>>2]|0;k[ba>>2]=I+da;I=I+1|0;break}else{k[$>>2]=I+da;k[aa>>2]=H-da;break}}else I=h;while(0);do if(ea|(L|0)==5){if(!(i[ha>>0]&32)){Bh(ja,112,M,I,0)|0;if(!ea)break;Bh(ja,79,I,l,g)|0;D=k[U>>2]|0;if(!D)break;i[D+(((k[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;break}do if(!K){if(!(j[V>>1]|0))break;C=A+4|0;B=0;do{F=j[(k[X>>2]|0)+(B<<1)>>1]|0;H=j[N>>1]|0;d:do if(!(H<<16>>16))H=-1;else{D=k[C>>2]|0;G=H&65535;H=0;while(1){if((j[D+(H<<1)>>1]|0)==F<<16>>16)break d;H=H+1|0;if((H|0)>=(G|0)){H=-1;break}}}while(0);Bh(ja,47,M,H<<16>>16,B+I|0)|0;B=B+1|0}while((B|0)<(m[V>>1]|0))}while(0);if(!ea)break;C=(i[A+51>>0]&3)==2?h:I;H=j[V>>1]|0;if(!(H<<16>>16))break;G=(H&65535)+(k[S>>2]|0)|0;F=0;D=78;do{H=hr(a,k[(k[W>>2]|0)+(F<<2)>>2]|0)|0;z=(F|0)==((m[V>>1]|0)+-1|0);G=z?l:G;D=z?79:D;Ch(ja,Bh(ja,D,Y+(j[(k[X>>2]|0)+(F<<1)>>1]|0)|0,G,F+C|0)|0,H,-4);H=k[U>>2]|0;if(H)i[H+(((k[S>>2]|0)+-1|0)*20|0)+3>>0]=-112;F=F+1|0}while((F|0)<(m[V>>1]|0))}while(0);if((L|0)==3|(L|0)==2|(L|0)==1)su(a,L,A);else if((L|0)==4)Bh(ja,16,0,n,0)|0;else{z=k[Z>>2]|0;i[((z|0)==0?a:z)+20>>0]=1;if(!(k[O>>2]&262144))D=0;else D=ot(a,b,109,0,0)|0;wt(a,b,D,d,e,I,P,0,5,K&1);q=1}H=k[R>>2]|0;G=~l;do if((l|0)<0){D=k[H+112>>2]|0;if(!D)break;k[D+(G<<2)>>2]=k[S>>2]}while(0);k[H+88>>2]=(k[S>>2]|0)+-1;z=m[N>>1]|0;it(a,h,z);if((k[aa>>2]|0)<(z|0)){k[aa>>2]=z;k[$>>2]=h}if((I|0)==(h|0)){z=J;break}it(a,I,da);if((k[aa>>2]|0)>=(da|0)){z=J;break}k[aa>>2]=da;k[$>>2]=I;z=J}while(0);A=k[A+20>>2]|0;if(!A)break;else p=p+1|0}}if(x){Bh(ja,16,0,x+1|0,0)|0;p=k[ja+32>>2]|0;if(p>>>0>t>>>0)k[(k[ja+4>>2]|0)+(t*20|0)+8>>2]=p;k[(k[ja+24>>2]|0)+88>>2]=p+-1}k[o>>2]=q;r=la;return}function Et(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0;Z=r;r=r+32|0;if((r|0)>=(s|0))ka();Q=Z+20|0;O=Z+16|0;M=Z+12|0;N=Z+8|0;X=Z+4|0;W=Z;S=k[a>>2]|0;L=a+438|0;R=i[L>>0]|0;V=S+24|0;a:do if(k[V>>2]&524288){P=b+68|0;g=k[P>>2]|0;b:do if(g){m=k[S+20>>2]|0;if((m|0)>0){h=k[S+16>>2]|0;p=0;while(1){o=p+1|0;if((k[h+(p<<4)+12>>2]|0)==(g|0)){o=p;break b}if((o|0)<(m|0))p=o;else break}}else o=0}else o=-1e6;while(0);K=k[(k[S+16>>2]|0)+(o<<4)>>2]|0;x=k[b+16>>2]|0;if(!x)h=b;else{z=(e|0)==0;A=R<<24>>24==0;B=S+65|0;C=c+1|0;D=a+68|0;E=(c|0)==0;F=(d|0)==0;G=a+408|0;H=b+36|0;I=S+284|0;J=(f|0)!=0;y=x;do{k[O>>2]=0;k[M>>2]=0;c:do if(!z){x=k[y+8>>2]|0;if(id(k[b>>2]|0,x)|0){w=k[y+20>>2]|0;if((w|0)>0){h=0;do{g=k[y+(h<<3)+36>>2]|0;if((k[e+(g<<2)>>2]|0)>-1){Y=17;break c}h=h+1|0;if((g|0)==(j[H>>1]|0)&J){Y=17;break c}}while((h|0)<(w|0))}}else Y=17}else{x=k[y+8>>2]|0;Y=17}while(0);do if((Y|0)==17){Y=0;if(!(i[L>>0]|0))v=xh(a,0,x,K)|0;else v=di(S,x,K)|0;x=(v|0)==0;if(!x?(Rt(a,v,y,O,M)|0)==0:0){x=k[M>>2]|0;if(!x){k[N>>2]=k[y+36>>2];x=N}h=y+20|0;if((k[h>>2]|0)>0){t=k[O>>2]|0;m=(t|0)==0;p=v+36|0;q=v+4|0;t=t+4|0;g=0;u=0;do{w=x+(u<<2)|0;if((k[w>>2]|0)==(j[H>>1]|0))k[w>>2]=-1;if(k[I>>2]|0){if(m)w=p;else w=(k[t>>2]|0)+(u<<1)|0;g=(jv(a,k[v>>2]|0,k[(k[q>>2]|0)+((j[w>>1]|0)*24|0)>>2]|0,o)|0)==2&1}u=u+1|0}while((u|0)<(k[h>>2]|0));w=v}else{w=v;g=0}ls(a,o,k[v+32>>2]|0,0,k[w>>2]|0);k[D>>2]=(k[D>>2]|0)+1;if(!E)kv(a,o,v,k[O>>2]|0,y,x,c,-1,g);d:do if(!F){w=k[G>>2]|0;w=k[((w|0)==0?a:w)+528>>2]|0;do if(w){w=k[w>>2]|0;if((w|0)==(k[y+28>>2]|0)?(i[y+25>>0]|0)==7:0)break d;if((w|0)!=(k[y+32>>2]|0))break;if((i[y+26>>0]|0)==7)break d}while(0);kv(a,o,v,k[O>>2]|0,y,x,d,1,g)}while(0);rg(S,k[M>>2]|0);break}if(A)break a;if(i[B>>0]|0)break a;if(x){x=Tq(a)|0;w=y+20|0;h=k[w>>2]|0;g=(k[x+32>>2]|0)+1+h|0;if((h|0)>0){h=0;do{Bh(x,76,C+(k[y+(h<<3)+36>>2]|0)|0,g,0)|0;h=h+1|0}while((h|0)<(k[w>>2]|0))}Bh(x,134,l[y+24>>0]|0,-1,0)|0}}while(0);y=k[y+4>>2]|0}while((y|0)!=0);h=b;g=k[P>>2]|0}g=gn(g+56|0,k[h>>2]|0,Q)|0;if((g|0)!=0?(n=k[g+8>>2]|0,T=S+65|0,(n|0)!=0):0){p=(e|0)!=0;q=a+408|0;t=a+20|0;u=a+68|0;v=(d|0)==0;w=(c|0)==0;x=p&1;o=R<<24>>24==0;do{k[X>>2]=0;k[W>>2]=0;if(!(p?(gv(b,n,e,f)|0)==0:0))Y=57;do if((Y|0)==57){Y=0;h=n+24|0;if((((i[h>>0]|0)==0?(k[V>>2]&16777216|0)==0:0)?(k[q>>2]|0)==0:0)?(i[t>>0]|0)==0:0)break;if(Rt(a,b,n,X,W)|0){if(o)break a;if(!(i[T>>0]|0))break;else break a}g=ur(S,0,0,0)|0;if(g){H=k[n>>2]|0;k[g+24>>2]=H;m=g+16|0;k[m>>2]=k[H>>2];H=H+40|0;j[H>>1]=(j[H>>1]|0)+1<<16>>16;H=k[u>>2]|0;k[u>>2]=H+1;k[g+48>>2]=H;if(!v)lv(a,g,b,k[X>>2]|0,n,k[W>>2]|0,d,-1);if((!w?(U=i[n+x+25>>0]|0,lv(a,g,b,k[X>>2]|0,n,k[W>>2]|0,c,1),(i[h>>0]|0)==0):0)?!(U<<24>>24==7|U<<24>>24==9):0){H=k[q>>2]|0;i[((H|0)==0?a:H)+21>>0]=1}k[m>>2]=0;Io(S,g)}rg(S,k[W>>2]|0)}while(0);n=k[n+12>>2]|0}while((n|0)!=0)}}while(0);r=Z;return}function Ft(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,l=0,n=0,o=0,p=0,q=0;q=r;r=r+16|0;if((r|0)>=(s|0))ka();p=q;o=k[a+8>>2]|0;g=k[b+8>>2]|0;a:do if(i[b+44>>0]&32){if(g){f=g;while(1){if((i[f+51>>0]&3)==2){n=5;break a}f=k[f+20>>2]|0;if(!f){f=0;n=5;break}}}}else{f=0;n=5}while(0);if((n|0)==5?(g|0)!=0:0){j=(e|0)==0;l=0;b=0;h=-1;while(1){if(j){if((g|0)!=(f|0))n=10}else if(!((g|0)==(f|0)?1:(k[e+(l<<2)>>2]|0)==0))n=10;if((n|0)==10){n=0;h=Ut(a,g,c,0,1,p,b,h)|0;Bh(o,111,l+d|0,h,m[((i[g+51>>0]&8)==0?g+48|0:g+46|0)>>1]|0)|0;Vt(a,k[p>>2]|0);b=g}g=k[g+20>>2]|0;if(!g)break;else l=l+1|0}}r=q;return}function Gt(a,b,c,d,e,f,g,h,l){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=Tq(a)|0;q=k[b+8>>2]|0;if(!q){n=b+44|0;p=0}else{r=(l|0)!=0;n=b+44|0;s=r?17:1;t=w+4|0;u=w+32|0;p=0;v=0;m=q;while(1){o=f+(v<<2)|0;q=k[o>>2]|0;do if(q){if(k[m+36>>2]|0){Bh(w,76,q,(k[u>>2]|0)+2|0,0)|0;q=k[o>>2]|0}Bh(w,110,v+d|0,q,0)|0;if((i[m+51>>0]&3)==2){q=(i[n>>0]&32)!=0;if(q|r)p=q?s:16;else{p=1;break}}else if(r)p=16;else{p=1;break}q=k[t>>2]|0;if(!q)p=1;else{i[q+(((k[u>>2]|0)+-1|0)*20|0)+3>>0]=p;p=1}}while(0);m=k[m+20>>2]|0;if(!m)break;else v=v+1|0}}if(!(i[n>>0]&32)){o=e+1|0;n=a+19|0;m=i[n>>0]|0;if(!(m<<24>>24)){f=a+72|0;q=(k[f>>2]|0)+1|0;k[f>>2]=q}else{q=m+-1<<24>>24;i[n>>0]=q;q=k[a+((q&255)<<2)+24>>2]|0}n=b+38|0;Bh(w,49,o,j[n>>1]|0,q)|0;if(!(p<<24>>24))Bt(w,b,0);it(a,o,j[n>>1]|0);o=a+18|0;if(!(i[o>>0]|0))m=(g|0)!=0?5:3;else m=0;if(h)m=(m&255|8)&255;if(!l)n=m;else n=(m&255|16)&255;Bh(w,75,c,q,e)|0;if(!(i[o>>0]|0))Ch(w,-1,k[b>>2]|0,0);m=k[w+4>>2]|0;if(m)i[m+(((k[w+32>>2]|0)+-1|0)*20|0)+3>>0]=n}return}function Ht(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,l=0,m=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=r;r=r+64|0;if((r|0)>=(s|0))ka();R=Y+52|0;Q=Y+48|0;V=Y+8|0;U=Y;T=Y+40|0;W=Y+32|0;S=Y+24|0;if(((k[(k[a>>2]|0)+24>>2]&524288|0)!=0?(P=b+68|0,g=gn((k[P>>2]|0)+56|0,k[b>>2]|0,Y+16|0)|0,(g|0)!=0):0)?(h=k[g+8>>2]|0,(h|0)!=0):0){O=(e|0)==0;H=(c|0)!=0;I=H&1;J=W+4|0;K=T+4|0;L=b+4|0;M=S+4|0;N=H?110:109;do{if(!(!O?(gv(b,h,e,f)|0)==0:0)){E=k[a>>2]|0;D=i[h+I+25>>0]|0;F=D&255;G=h+(I<<2)+28|0;c=k[G>>2]|0;do if(!(D<<24>>24==0|(c|0)!=0)){k[R>>2]=0;k[Q>>2]=0;if(!(Rt(a,b,h,R,Q)|0)){p=h+20|0;if((k[p>>2]|0)>0){x=34352;w=k[x>>2]|0;x=k[x+4>>2]|0;z=34360;y=k[z>>2]|0;z=k[z+4>>2]|0;A=h+36|0;C=D<<24>>24!=6&(D<<24>>24!=9|H);B=0;m=0;g=0;l=0;do{c=V;k[c>>2]=w;k[c+4>>2]=x;c=U;k[c>>2]=y;k[c+4>>2]=z;c=k[Q>>2]|0;if(!c)c=A;else c=c+(B<<2)|0;o=k[c>>2]|0;q=k[R>>2]|0;if(!q)u=34368;else u=k[(k[L>>2]|0)+((j[(k[q+4>>2]|0)+(B<<1)>>1]|0)*24|0)>>2]|0;k[W>>2]=u;c=k[(k[(k[h>>2]|0)+4>>2]|0)+(o*24|0)>>2]|0;k[T>>2]=c;if(!u)t=0;else{v=u;while(1)if(!(i[v>>0]|0))break;else v=v+1|0;t=v-u&1073741823}k[J>>2]=t;if(!c)n=0;else{u=c;while(1)if(!(i[u>>0]|0))break;else u=u+1|0;n=u-c&1073741823}k[K>>2]=n;v=cr(a,27,0,0,V)|0;v=cr(a,122,v,cr(a,27,0,0,W)|0,0)|0;l=xs(E,l,cr(a,79,v,cr(a,27,0,0,T)|0,0)|0)|0;if(H){u=cr(a,27,0,0,V)|0;u=cr(a,122,u,cr(a,27,0,0,W)|0,0)|0;v=cr(a,27,0,0,U)|0;g=xs(E,g,cr(a,73,u,cr(a,122,v,cr(a,27,0,0,W)|0,0)|0,0)|0)|0}if(C){do if(D<<24>>24==9){c=cr(a,27,0,0,U)|0;c=cr(a,122,c,cr(a,27,0,0,W)|0,0)|0}else if(D<<24>>24==8){c=k[(k[(k[h>>2]|0)+4>>2]|0)+(o*24|0)+4>>2]|0;if(!c){c=cr(a,101,0,0,0)|0;break}else{c=Rr(E,c,0,0)|0;break}}else c=cr(a,101,0,0,0)|0;while(0);m=qr(a,m,c)|0;rr(a,m,T,0)}B=B+1|0}while((B|0)<(k[p>>2]|0));c=h}else{c=h;m=0;g=0;l=0}rg(E,k[Q>>2]|0);v=k[k[c>>2]>>2]|0;if(!v)n=0;else{c=v;while(1)if(!(i[c>>0]|0))break;else c=c+1|0;n=c-v&1073741823}if(D<<24>>24==6){k[S>>2]=v;k[M>>2]=n;c=yt(E,57,34376)|0;if(c)i[c+1>>0]=2;u=qr(a,0,c)|0;u=pr(a,u,ur(E,0,S,0)|0,l,0,0,0,0,0,0)|0;t=0}else{u=0;t=l}o=E+250|0;p=i[o>>0]|0;i[o>>0]=0;c=n+77|0;q=rh(E,c,0)|0;if(q){kw(q|0,0,c|0)|0;l=q+36|0;k[q+28>>2]=l;D=q+76|0;k[q+48>>2]=D;k[q+52>>2]=n;pw(D|0,v|0,n|0)|0;D=Rr(E,t,1,0)|0;k[q+56>>2]=D;D=Ur(E,m,1)|0;k[q+60>>2]=D;D=lr(E,u,1)|0;k[q+44>>2]=D;if(!g){c=q;g=0}else{g=cr(a,19,g,0,0)|0;c=Rr(E,g,1,0)|0;k[q+12>>2]=c;c=q}}else{c=0;l=0}i[o>>0]=p;Lk(E,t);Lk(E,g);Sk(E,m);Rk(E,u,1);if((i[E+65>>0]|0)==1){Pk(E,c);c=0;break}if((F|0)==6)i[l>>0]=119;else if((F|0)==9?!H:0)i[l>>0]=109;else X=49;if((X|0)==49){X=0;i[l>>0]=110}k[l+4>>2]=c;F=k[P>>2]|0;k[q+20>>2]=F;k[q+24>>2]=F;k[G>>2]=c;i[q+8>>0]=N}else c=0}while(0);if(c)iv(a,c,b,d,2,0)}h=k[h+12>>2]|0}while((h|0)!=0)}r=Y;return}function It(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,l=0,m=0,n=0,o=0,p=0;c=j[a+46>>1]|0;a:do if(c<<16>>16==(j[b+46>>1]|0)?(i[a+50>>0]|0)==(i[b+50>>0]|0):0){if(c<<16>>16){d=k[b+4>>2]|0;e=k[a+4>>2]|0;f=b+28|0;g=a+28|0;h=b+32|0;l=a+32|0;p=0;do{if((j[d+(p<<1)>>1]|0)!=(j[e+(p<<1)>>1]|0)){c=0;break a}if((i[(k[f>>2]|0)+p>>0]|0)!=(i[(k[g>>2]|0)+p>>0]|0)){c=0;break a}m=k[(k[h>>2]|0)+(p<<2)>>2]|0;n=k[(k[l>>2]|0)+(p<<2)>>2]|0;o=(n|0)==0;if(!m){if(!o){c=0;break a}}else{if(o){c=0;break a}if(id(m,n)|0){c=0;break a}}p=p+1|0}while((p|0)<(c&65535|0))}c=(Hu(k[b+36>>2]|0,k[a+36>>2]|0,-1)|0)==0&1}else c=0;while(0);return c|0}function Jt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;do if(!(i[c+44>>0]&8))d=0;else{f=k[a+408>>2]|0;f=(f|0)==0?a:f;e=f+404|0;d=k[e>>2]|0;a:do if(!d)g=5;else while(1){if((k[d+4>>2]|0)==(c|0))break a;d=k[d>>2]|0;if(!d){g=5;break}}while(0);if((g|0)==5){d=rh(k[a>>2]|0,16,0)|0;if(!d){d=0;break}k[d>>2]=k[e>>2];k[e>>2]=d;k[d+4>>2]=c;k[d+8>>2]=b;a=f+72|0;e=k[a>>2]|0;k[d+12>>2]=e+2;k[a>>2]=e+3}d=k[d+12>>2]|0}while(0);return d|0}function Kt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;e=j[c+36>>1]|0;f=k[a>>2]|0;d=k[c>>2]|0;if(e<<16>>16>-1){e=k[(k[c+4>>2]|0)+((e<<16>>16)*24|0)>>2]|0;k[g>>2]=d;k[g+4>>2]=e;e=1555;d=zh(f,27824,g)|0}else{k[g>>2]=d;e=2579;d=zh(f,34408,g)|0}Es(a,e,b,d,-1,2);r=h;return}function Lt(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a+316|0;f=k[e>>2]|0;b=qr(a,f,Rr(k[a>>2]|0,b,0,0)|0)|0;if(b){a=(k[b>>2]|0)+-1|0;f=k[b+4>>2]|0;k[f+(a*20|0)+16>>2]=c;a=f+(a*20|0)+13|0;i[a>>0]=i[a>>0]&-5|d<<2&4}k[e>>2]=b;return}function Mt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=k[d>>2]|0;if(!(f+-1&f)){h=ha((f|0)==0?1:f<<1,c)|0;a=wo(a,b,h,((h|0)<0)<<31>>31)|0;if(!a){k[e>>2]=-1;a=b}else g=4}else{a=b;g=4}if((g|0)==4){kw(a+(ha(f,c)|0)|0,0,c|0)|0;k[e>>2]=f;k[d>>2]=(k[d>>2]|0)+1}return a|0}function Nt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;h=r;r=r+16|0;if((r|0)>=(s|0))ka();g=h;k[g>>2]=0;b=k[a+12>>2]|0;if((b|0)!=0?(c=k[b+24>>2]|0,(c|0)>0):0){k[g>>2]=c;b=c}else b=0;c=k[a+16>>2]|0;if((c|0)!=0?(d=k[c+24>>2]|0,(d|0)>(b|0)):0)k[g>>2]=d;e=a+4|0;b=a+20|0;if(!(k[e>>2]&2048)){c=k[b>>2]|0;if(c){yu(c,g);b=k[b>>2]|0;if((b|0)!=0?(f=k[b>>2]|0,(f|0)>0):0){d=k[b+4>>2]|0;c=0;b=0;do{b=k[(k[d+(c*20|0)>>2]|0)+4>>2]|b;c=c+1|0}while((c|0)!=(f|0));b=b&2097408}else b=0;k[e>>2]=k[e>>2]|b}}else Js(k[b>>2]|0,g);k[a+24>>2]=(k[g>>2]|0)+1;r=h;return}function Ot(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=Tq(a)|0;g=a+72|0;f=(k[g>>2]|0)+1|0;k[g>>2]=f;a=rh(k[a>>2]|0,8,0)|0;if(a){g=a;k[g>>2]=c;k[g+4>>2]=d}Ch(e,Bh(e,26,0,f,0)|0,a,-13);nq(e,1);if(!(i[(k[e>>2]|0)+65>>0]|0))ah(k[e+16>>2]|0,b,-1,1,0)|0;Bh(e,35,f,1,0)|0;return}function Pt(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;b=k[a>>2]|0;c=b+16|0;d=k[(k[c>>2]|0)+20>>2]|0;do if(!d)b=0;else{if((i[b+63>>0]|0)!=0?(i[d+8>>0]|0)==0:0){Rl(d);k[(k[c>>2]|0)+20>>2]=0;Jg(b);b=0;break}yh(a,32128,e);b=1}while(0);r=f;return b|0}function Qt(a){a=a|0;var b=0,c=0,d=0;if((i[a+63>>0]|0)!=0?(b=k[a+20>>2]|0,(b|0)>0):0){d=a+24|0;c=k[a+16>>2]|0;while(1){b=b+-1|0;a=k[c+4>>2]|0;if(a)yo(a,k[d>>2]&28|l[c+8>>0]);if((b|0)<=0)break;else c=c+16|0}}return}function Rt(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,l=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=r;r=r+16|0;if((r|0)>=(s|0))ka();w=z;x=k[c+20>>2]|0;g=k[c+40>>2]|0;if((x|0)==1){q=j[b+36>>1]|0;f=q<<16>>16;if(q<<16>>16>-1)if((g|0)!=0?(id(k[(k[b+4>>2]|0)+(f*24|0)>>2]|0,g)|0)!=0:0){v=0;y=8}else e=0;else{v=0;y=8}}else if(e){f=rh(k[a>>2]|0,x<<2,0)|0;if(!f)e=1;else{k[e>>2]=f;v=f;y=8}}else{v=0;y=8}a:do if((y|0)==8){e=k[b+8>>2]|0;b:do if(e){q=(g|0)==0;u=(x|0)>0;p=b+4|0;t=(v|0)==0;c:while(1){do if((m[e+46>>1]|0)==(x|0)?(i[e+50>>0]|0)!=0:0){if(q)if((i[e+51>>0]&3)==2){y=16;break c}else break;d:do if(u){h=k[e+4>>2]|0;l=k[p>>2]|0;n=k[e+32>>2]|0;o=0;while(1){b=j[h+(o<<1)>>1]|0;g=k[l+(b*24|0)+16>>2]|0;if(id(k[n+(o<<2)>>2]|0,(g|0)!=0?g:11152)|0){g=o;break d}g=k[l+(b*24|0)>>2]|0;f=0;while(1){b=f+1|0;if(!(id(k[c+(f<<3)+40>>2]|0,g)|0)){b=f;y=23;break}if((b|0)<(x|0))f=b;else break}if((y|0)==23){y=0;if(!t)k[v+(o<<2)>>2]=k[c+(b<<3)+36>>2]}g=o+1|0;if((b|0)==(x|0)){g=o;break d}if((g|0)<(x|0))o=g;else break}}else g=0;while(0);if((g|0)==(x|0))break c}while(0);e=k[e+20>>2]|0;if(!e)break b}if((y|0)==16)if(!(t|u^1)){f=0;do{k[v+(f<<2)>>2]=k[c+(f<<3)+36>>2];f=f+1|0}while((f|0)!=(x|0))}k[d>>2]=e;e=0;break a}while(0);if(!(i[a+438>>0]|0)){q=k[c+8>>2]|0;k[w>>2]=k[k[c>>2]>>2];k[w+4>>2]=q;yh(a,32008,w)}rg(k[a>>2]|0,v);e=1}while(0);r=z;return e|0}function St(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;g=r;r=r+16|0;if((r|0)>=(s|0))ka();f=g;if(!(k[b+12>>2]|0)){k[f>>2]=0;h=k[a>>2]|0;e=b+4|0;b=k[e>>2]|0;cs(h,k[b+(c*24|0)+4>>2]|0,i[h+62>>0]|0,i[b+(c*24|0)+21>>0]|0,f)|0;b=k[f>>2]|0;if(b)Ch(a,-1,b,-8);if((i[(k[e>>2]|0)+(c*24|0)+21>>0]|0)==69)Bh(a,39,d,0,0)|0}r=g;return}function Tt(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;if(!b)d=0;else{d=b;while(1)if(!(i[d>>0]|0))break;else d=d+1|0;d=d-b&1073741823}d=Xh(a,b,d,2,1,0)|0;if(d){d=d+2|0;j[d>>1]=m[d>>1]|c&255}return}function Ut(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;q=k[a+8>>2]|0;r=k[b+12>>2]|0;do if(f){l=b+36|0;if(!(k[l>>2]|0)){k[f>>2]=0;break}else{p=Cs(q)|0;k[f>>2]=p;k[a+96>>2]=c;p=a+100|0;k[p>>2]=(k[p>>2]|0)+1;lt(a,k[l>>2]|0,k[f>>2]|0,16);break}}while(0);if((e|0)!=0?(i[b+51>>0]&8)!=0:0)l=b+46|0;else l=b+48|0;l=j[l>>1]|0;n=l&65535;o=a+60|0;e=k[o>>2]|0;p=a+56|0;f=k[p>>2]|0;if((f|0)<(n|0)){e=a+72|0;m=k[e>>2]|0;k[e>>2]=m+n;m=m+1|0}else{k[o>>2]=e+n;k[p>>2]=f-n;m=e}do if(!g)e=0;else{if((m|0)==(h|0)?(k[g+36>>2]|0)==0:0){e=g;break}e=0}while(0);if(l<<16>>16){g=(e|0)==0;h=b+4|0;f=e+4|0;l=0;do{if(!g){e=j[(k[h>>2]|0)+(l<<1)>>1]|0;if((j[(k[f>>2]|0)+(l<<1)>>1]|0)!=e<<16>>16)s=21}else{e=j[(k[h>>2]|0)+(l<<1)>>1]|0;s=21}if((s|0)==21){s=0;st(q,r,c,e<<16>>16,l+m|0);Uq(q,39)|0}l=l+1|0}while((l|0)<(n|0))}if(d)Bh(q,49,m,n,d)|0;it(a,m,n);if((k[p>>2]|0)<(n|0)){k[p>>2]=n;k[o>>2]=m}return m|0}function Vt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;if(b){c=k[a+8>>2]|0;d=k[c+24>>2]|0;e=~b;if((b|0)<0?(f=k[d+112>>2]|0,(f|0)!=0):0)k[f+(e<<2)>>2]=k[c+32>>2];k[d+88>>2]=(k[c+32>>2]|0)+-1;gu(a)}return}function Wt(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=r;r=r+16|0;if((r|0)>=(s|0))ka();e=f;c=k[b+16>>2]|0;a:do if((c|0)!=0?(d=k[b+64>>2]|0,(d|0)!=0):0){c=k[c+8>>2]|0;b:do if(c){while(1){if(!(id(k[c>>2]|0,d)|0))break;c=k[c+20>>2]|0;if(!c)break b}k[b+68>>2]=c;c=0;break a}while(0);k[e>>2]=d;k[e+4>>2]=0;yh(a,28104,e);i[a+17>>0]=1;c=1}else c=0;while(0);r=f;return c|0}function Xt(a,b){a=a|0;b=b|0;var c=0,d=0;if(a){c=Yt(a,b)|0;if(b&1){d=Xt(k[a+12>>2]|0,b)|0;return d+c+(Xt(k[a+16>>2]|0,b)|0)|0}}else c=0;return c|0} 12 function nr(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,n=0,o=0,p=0,q=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0;za=r;r=r+240|0;if((r|0)>=(s|0))ka();oa=za;pa=za+220|0;ga=za+216|0;ea=za+196|0;fa=za+176|0;ra=za+164|0;sa=za+136|0;va=za+88|0;ca=za+64|0;ia=za+32|0;xa=a+464|0;ya=k[xa>>2]|0;la=a+468|0;ua=k[la>>2]|0;k[la>>2]=ua+1;k[xa>>2]=ua;ua=k[a>>2]|0;a:do if((((b|0)!=0?(ma=ua+65|0,(i[ma>>0]|0)==0):0)?(d=a+64|0,(k[d>>2]|0)==0):0)?(Xq(a,21,0,0,0)|0)==0:0){A=va+0|0;z=A+48|0;do{k[A>>2]=0;A=A+4|0}while((A|0)<(z|0));ha=b+48|0;if((l[c>>0]|0)<9){Sk(ua,k[ha>>2]|0);k[ha>>2]=0;ba=b+6|0;j[ba>>1]=m[ba>>1]&65534}Is(a,b,0);k[sa+0>>2]=0;k[sa+4>>2]=0;k[sa+8>>2]=0;k[sa+12>>2]=0;k[sa+16>>2]=0;k[sa+20>>2]=0;k[sa+24>>2]=0;k[sa>>2]=k[ha>>2];ja=b+32|0;u=k[ja>>2]|0;t=k[b>>2]|0;b:do if(((k[d>>2]|0)==0?(i[ma>>0]|0)==0:0)?(qa=b+6|0,w=(m[qa>>1]|0)>>>2&1,ta=Tq(a)|0,(ta|0)!=0):0){if((k[t>>2]|0)>1?(i[c>>0]&-2)<<24>>24==10:0){yh(a,35368,oa);wa=444;break}na=b+52|0;t=k[na>>2]|0;c:do if(!t){h=a+460|0;g=a+492|0;f=b+36|0;e=a+408|0;d=b+60|0;Q=b+64|0;R=b+4|0;S=ua+60|0;T=ta+32|0;U=a+72|0;V=ca+4|0;W=ca+1|0;X=ca+8|0;Y=ca+12|0;Z=ta+4|0;_=ta+24|0;$=a+19|0;aa=a+56|0;ba=a+80|0;P=0;v=w;while(1){if((P|0)>=(k[u>>2]|0)){D=f;N=0;w=v;R=u;break c}J=k[u+(P*72|0)+28>>2]|0;do if(!J)w=P;else{M=u+(P*72|0)+32|0;x=k[M>>2]|0;if(x){if(i[u+(P*72|0)+45>>0]&4){w=P;break}Bh(ta,17,k[u+(P*72|0)+36>>2]|0,x,0)|0;w=P;break}k[oa>>2]=0;Js(b,oa);k[h>>2]=(k[h>>2]|0)+(k[oa>>2]|0);q=j[J+6>>1]&4;N=k[g>>2]|0;p=k[a>>2]|0;d:do if(!(j[p+60>>1]&1)){H=k[ja>>2]|0;o=k[H+(P*72|0)+48>>2]|0;G=H+(P*72|0)+28|0;K=k[G>>2]|0;n=q<<16>>16!=0;do if(n){if(v){wa=120;break d}if((k[H>>2]|0)>1){wa=120;break d}O=k[f>>2]|0;if((O|0)!=0?(k[O+4>>2]&2097152|0)!=0:0){wa=120;break d}D=k[b>>2]|0;do if(D){B=k[D>>2]|0;if((B|0)<=0)break;E=k[D+4>>2]|0;D=0;C=0;do{C=k[(k[E+(D*20|0)>>2]|0)+4>>2]|C;D=D+1|0}while((D|0)!=(B|0));if(C&2097152){wa=120;break d}}while(0);D=k[ha>>2]|0;if(!D)break;B=k[D>>2]|0;if((B|0)<=0)break;E=k[D+4>>2]|0;D=0;C=0;do{C=k[(k[E+(D*20|0)>>2]|0)+4>>2]|C;D=D+1|0}while((D|0)!=(B|0));if(C&2097152){wa=120;break d}}while(0);E=k[K+32>>2]|0;D=(k[K+60>>2]|0)==0;if(!D?(k[d>>2]|0)!=0:0){wa=120;break}if(k[K+64>>2]|0){wa=120;break}B=j[qa>>1]|0;C=(B&64)==0;if(!(C|D)){wa=120;break}if(!(k[E>>2]|0)){wa=120;break}A=j[K+6>>1]|0;if(A&1){wa=120;break}E=D|C^1;if(!E?(k[H>>2]|0)>1|(v|0)!=0:0){wa=120;break}D=B&1;if(D<<16>>16!=0&n){wa=120;break}y=k[ha>>2]|0;z=(y|0)==0;if(!z?(k[K+48>>2]|0)!=0:0){wa=120;break}F=(v|0)!=0;if(F?(k[K+48>>2]|0)!=0:0){wa=120;break}if(E){if(A&6144){wa=120;break}}else if(!((k[f>>2]|0)==0&D<<16>>16==0&(A&6144)==0)){wa=120;break}if((B&2048)!=0?(k[K+52>>2]|0)!=0:0){wa=120;break}O=H+(P*72|0)+44|0;if(i[O>>0]&32){wa=120;break}B=K+52|0;E=k[B>>2]|0;do if(E){if(!(D<<16>>16==0&(((k[K+48>>2]|0)!=0|F)^1))){wa=120;break d}if((k[H>>2]|0)!=1){wa=120;break d}e:do if(K){if(!(A&5))C=K;else{wa=120;break d}while(1){D=(E|0)==0;if(!D?(i[C+4>>0]|0)!=116:0){wa=120;break d}if((k[k[C+32>>2]>>2]|0)<1){wa=120;break d}if((k[k[K>>2]>>2]|0)!=(k[k[C>>2]>>2]|0)){wa=120;break d}if(D)break e;if(j[E+6>>1]&5){wa=120;break d}C=E;E=k[E+52>>2]|0}}while(0);if(z)break;C=k[y>>2]|0;if((C|0)<=0)break;E=k[y+4>>2]|0;D=0;do{if(!(j[E+(D*20|0)+16>>1]|0)){wa=120;break d}D=D+1|0}while((D|0)<(C|0))}while(0);x=H+(P*72|0)+16|0;k[g>>2]=k[x>>2];Xq(a,21,0,0,0)|0;k[g>>2]=N;E=k[B>>2]|0;f:do if(!E)wa=81;else{y=p+65|0;B=k[ha>>2]|0;A=k[d>>2]|0;z=k[Q>>2]|0;C=k[na>>2]|0;while(1){k[ha>>2]=0;k[ja>>2]=0;k[na>>2]=0;k[d>>2]=0;k[Q>>2]=0;D=lr(p,b,0)|0;k[Q>>2]=z;k[d>>2]=A;k[ha>>2]=B;k[ja>>2]=H;i[R>>0]=116;if(!D)D=C;else{k[D+52>>2]=C;if(C)k[C+56>>2]=D;k[D+56>>2]=b}k[na>>2]=D;if(i[y>>0]|0)break f;E=k[E+52>>2]|0;if(!E){wa=81;break}else C=D}}while(0);if((wa|0)==81){wa=0;I=k[G>>2]|0;B=H+(P*72|0)+12|0;rg(p,k[B>>2]|0);rg(p,k[x>>2]|0);C=H+(P*72|0)+20|0;rg(p,k[C>>2]|0);k[B>>2]=0;k[x>>2]=0;k[C>>2]=0;k[G>>2]=0;C=H+(P*72|0)+24|0;B=k[C>>2]|0;if(B){A=B+40|0;z=j[A>>1]|0;if(z<<16>>16==1){N=k[e>>2]|0;N=((N|0)==0?a:N)+524|0;k[B+72>>2]=k[N>>2];k[N>>2]=B}else j[A>>1]=z+-1<<16>>16;k[C>>2]=0}N=P+1|0;M=p+65|0;K=b;J=I;while(1){y=k[J+32>>2]|0;x=k[y>>2]|0;D=K+32|0;E=k[D>>2]|0;if(!E){E=ur(p,0,0,0)|0;k[D>>2]=E;if(!E)break;else w=0}else w=i[O>>0]|0;if((x|0)>1){E=Ks(p,E,x+-1|0,N)|0;k[D>>2]=E;if(i[M>>0]|0)break}if((x|0)>0){C=0;do{A=C+P|0;Mk(p,k[E+(A*72|0)+56>>2]|0);D=y+(C*72|0)+8|0;A=E+(A*72|0)+8|0;B=D+0|0;z=A+72|0;do{k[A>>2]=k[B>>2];A=A+4|0;B=B+4|0}while((A|0)<(z|0));A=D+0|0;z=A+72|0;do{k[A>>2]=0;A=A+4|0}while((A|0)<(z|0));C=C+1|0}while((C|0)!=(x|0))}i[E+(P*72|0)+44>>0]=w;D=k[K>>2]|0;E=k[D>>2]|0;if((E|0)>0){A=D+4|0;C=k[A>>2]|0;B=0;do{if(!(k[C+(B*20|0)+4>>2]|0)){E=ph(p,k[C+(B*20|0)+8>>2]|0)|0;qo(E);C=k[A>>2]|0;k[C+(B*20|0)+4>>2]=E;E=k[D>>2]|0}B=B+1|0}while((B|0)<(E|0));D=k[K>>2]|0}Ls(p,D,o,k[J>>2]|0);if(F){Ls(p,k[K+40>>2]|0,o,k[J>>2]|0);H=K+44|0;G=Ms(p,k[H>>2]|0,o,k[J>>2]|0)|0;k[H>>2]=G}E=J+48|0;D=k[E>>2]|0;do if(!D){D=k[K+48>>2]|0;if(!D)break;Ls(p,D,o,k[J>>2]|0)}else{C=k[D>>2]|0;if((C|0)>0){B=k[D+4>>2]|0;A=0;do{j[B+(A*20|0)+16>>1]=0;A=A+1|0}while((A|0)!=(C|0))}k[K+48>>2]=D;k[E>>2]=0}while(0);D=k[J+36>>2]|0;if(!D)C=0;else C=Rr(p,D,0,0)|0;E=K+36|0;D=k[E>>2]|0;if(n){H=K+44|0;k[H>>2]=D;k[E>>2]=C;G=Ms(p,D,o,k[J>>2]|0)|0;k[H>>2]=G;G=xs(p,G,Rr(p,k[J+44>>2]|0,0,0)|0)|0;k[H>>2]=G;H=Ur(p,k[J+40>>2]|0,0)|0;k[K+40>>2]=H}else{H=Ms(p,D,o,k[J>>2]|0)|0;k[E>>2]=H;H=xs(p,H,C)|0;k[E>>2]=H}D=K+6|0;j[D>>1]=m[D>>1]|m[J+6>>1]&1;D=J+60|0;C=k[D>>2]|0;if(C){k[K+60>>2]=C;k[D>>2]=0}K=k[K+52>>2]|0;if(!K)break;else J=k[J+52>>2]|0}Rk(p,I,1)}if(!(q<<16>>16)){w=-1;break}j[qa>>1]=m[qa>>1]|4;w=-1;v=1}else wa=120;while(0);g:do if((wa|0)==120){wa=0;do if((k[u>>2]|0)==1){if(j[S>>1]&256)break;A=k[T>>2]|0;O=A+1|0;N=(k[U>>2]|0)+1|0;k[U>>2]=N;w=u+(P*72|0)+36|0;k[w>>2]=N;Bh(ta,20,N,0,O)|0;k[M>>2]=O;O=k[w>>2]|0;i[ca>>0]=13;k[V>>2]=O;i[W>>0]=0;k[X>>2]=0;k[Y>>2]=0;i[u+(P*72|0)+46>>0]=k[la>>2];nr(a,J,ca)|0;O=J+24|0;O=ks(k[O>>2]|0,k[O+4>>2]|0)|0;j[(k[u+(P*72|0)+24>>2]|0)+28>>1]=O;O=u+(P*72|0)+45|0;i[O>>0]=i[O>>0]|4;k[u+(P*72|0)+40>>2]=k[X>>2];Bh(ta,21,k[w>>2]|0,0,0)|0;w=k[T>>2]|0;if(w>>>0>A>>>0)k[(k[Z>>2]|0)+(A*20|0)+8>>2]=w;k[(k[_>>2]|0)+88>>2]=w+-1;i[$>>0]=0;k[aa>>2]=0;w=P;break g}while(0);z=(k[U>>2]|0)+1|0;k[U>>2]=z;B=u+(P*72|0)+36|0;k[B>>2]=z;z=Bh(ta,25,0,z,0)|0;k[M>>2]=z+1;if(!(i[u+(P*72|0)+45>>0]&2)){O=Tq(a)|0;A=k[ba>>2]|0;k[ba>>2]=A+1;A=Bh(O,44,A,0,0)|0}else A=0;O=k[u+(P*72|0)+48>>2]|0;i[ca>>0]=12;k[V>>2]=O;i[W>>0]=0;k[X>>2]=0;k[Y>>2]=0;i[u+(P*72|0)+46>>0]=k[la>>2];nr(a,J,ca)|0;O=J+24|0;O=ks(k[O>>2]|0,k[O+4>>2]|0)|0;j[(k[u+(P*72|0)+24>>2]|0)+28>>1]=O;if(A){x=k[T>>2]|0;if(x>>>0>A>>>0)k[(k[Z>>2]|0)+(A*20|0)+8>>2]=x;k[(k[_>>2]|0)+88>>2]=x+-1}w=Bh(ta,18,k[B>>2]|0,0,0)|0;if((k[T>>2]|0)>>>0>z>>>0)k[(k[Z>>2]|0)+(z*20|0)+4>>2]=w;i[$>>0]=0;k[aa>>2]=0;w=P}while(0);if(i[ma>>0]|0){wa=444;break b}k[oa>>2]=0;Js(b,oa);k[h>>2]=(k[h>>2]|0)-(k[oa>>2]|0);u=k[ja>>2]|0;if((l[c>>0]|0)<9)break;k[sa>>2]=k[ha>>2]}while(0);t=k[na>>2]|0;if(!t)P=w+1|0;else{D=f;N=t;w=v;R=u;break}}}else{D=b+36|0;N=t;R=u}while(0);Q=k[b>>2]|0;y=k[D>>2]|0;e=b+40|0;t=k[e>>2]|0;E=b+44|0;ca=k[E>>2]|0;f=j[qa>>1]|0;i[ra>>0]=f&1;if(N){K=k[a>>2]|0;k[pa+0>>2]=k[c+0>>2];k[pa+4>>2]=k[c+4>>2];k[pa+8>>2]=k[c+8>>2];k[pa+12>>2]=k[c+12>>2];k[pa+16>>2]=k[c+16>>2];h:do if(!(k[N+48>>2]|0)){u=N+60|0;if(k[u>>2]|0){d=l[b+4>>0]|0;if((d|0)==118)d=35336;else if((d|0)==117)d=35352;else if((d|0)==116)d=35320;else d=35360;k[oa>>2]=d;yh(a,35072,oa);f=0;d=1;wa=227;break}O=Tq(a)|0;o=i[pa>>0]|0;if(o<<24>>24==12){Bh(O,57,k[pa+4>>2]|0,k[k[b>>2]>>2]|0,0)|0;o=k[O+4>>2]|0;if(o)i[o+(((k[O+32>>2]|0)+-1|0)*20|0)+3>>0]=8;i[pa>>0]=14;o=14}n=m[qa>>1]|0;if(n&256){f=0;d=Ns(a,b,pa)|0;wa=227;break}if((k[k[b>>2]>>2]|0)!=(k[k[N>>2]>>2]|0)){Os(a,b);f=0;d=1;wa=227;break}do if(!(n&2048)){if(k[ha>>2]|0){d=Qs(a,b,c)|0;break h}M=b+4|0;n=l[M>>0]|0;if((n|0)==116){q=b+8|0;o=N+8|0;k[o>>2]=k[q>>2];p=b+12|0;n=N+1 (…) [all...] |
/external/v8/test/mjsunit/asm/poppler/ |
H A D | poppler.js | [all...] |