<?php
/*
Generated by OutputBooks Team
*/

namespace Trans;

class TransCompare
{
    private static function key_compare_func($a, $b)
    {
        if ($a === $b) {
            return 0;
        }
        return $a > $b ? 1 : -1;
    }
    private static function my_array_diff_uassoc($arr1, $arr2)
    {
        return array_diff_uassoc($arr1, $arr2, "\x73\145\x6c\146\72\x3a\x6b\x65\x79\137\x63\157\x6d\160\x61\162\x65\137\x66\x75\156\x63");
    }
    public static function Compare($oldRecord, $newRecord, $transId)
    {
        goto ifaZp;
        FlRFu:
        return $logData;
        goto Twkp7;
        ifaZp:
        $logData = array();
        goto HZiB2;
        snxZN:
        $skipAddressCheck = false;
        goto rHqEB;
        HZiB2:
        $jsonData = array();
        goto snxZN;
        rHqEB:
        if (!empty($oldRecord) && !empty($newRecord)) {
            goto eLFMT;
            YLWbu:
            $diff_new = array_diff_uassoc($newRecord["\164\162\141\x6e\x73"], $oldRecord["\x74\x72\x61\x6e\x73"], "\x6b\145\171\137\143\x6f\155\x70\x61\x72\145\x5f\x66\165\x6e\143");
            goto jdIui;
            RZzLx:
            if (!empty($newRecord["\152\157\165\162\156\x61\154"])) {
                self::mergeTransArrayFields($oldRecord["\152\157\x75\162\x6e\141\154"], $newRecord["\152\157\165\x72\x6e\141\x6c"], $tType, "\124\x72\x61\x6e\163\101\x63\x63\157\x75\x6e\x74", "\151\x64", $jsonData);
            }
            goto A0Ta8;
            A0Ta8:
            if (!empty($newRecord["\145\170\x70\145\156\x73\145\x73"])) {
                self::mergeTransArrayFields($oldRecord["\145\170\160\145\x6e\x73\x65\163"], $newRecord["\x65\x78\x70\145\x6e\163\x65\163"], $tType, "\105\x78\x70\145\156\x73\145\x2f\120\141\x79\x6d\145\156\x74", "\x69\x64", $jsonData);
            }
            goto UN3P4;
            jdIui:
            $translog = array_merge_recursive($diff_old, $diff_new);
            goto IcCAi;
            XvhO7:
            if (empty($skipAddressCheck)) {
                goto jYxdH;
                jYxdH:
                $oldTransAddress = array();
                goto OqRXw;
                mAa0X:
                UL0pT:
                goto Iy3h2;
                kCQy3:
                $TransAddresskeys = array_unique(array_merge($oldTransAddress, $newTransAddress));
                goto uSCvq;
                WCpf1:
                if (!empty($newRecord["\x74\162\x61\x6e\163\x41\144\144\162"])) {
                    $newTransAddress = array_column($newRecord["\164\162\141\x6e\163\x41\x64\144\x72"], "\141\x64\144\162\x54\x79\160\x65");
                }
                goto kCQy3;
                Om6uZ:
                foreach ($TransAddresskeys as $key => $val) {
                    goto pLxdJ;
                    m9qsN:
                    if (is_numeric($nIndex) && is_numeric($oIndex) && $nIndex >= 0 && $oIndex >= 0) {
                        goto CqxrE;
                        eYTx6:
                        $diff_new = array_diff_uassoc($newRecord["\164\162\141\156\163\101\x64\144\162"][$nIndex], $oldRecord["\164\x72\x61\x6e\163\x41\x64\144\x72"][$oIndex], "\x6b\145\171\137\143\157\155\160\141\x72\x65\137\x66\x75\156\x63");
                        goto tLOEF;
                        CqxrE:
                        $diff_old = array_diff_uassoc($oldRecord["\164\162\141\x6e\163\x41\144\144\x72"][$oIndex], $newRecord["\x74\162\141\x6e\x73\101\x64\144\162"][$nIndex], "\153\145\171\x5f\x63\x6f\x6d\160\141\162\x65\x5f\x66\x75\156\143");
                        goto eYTx6;
                        tLOEF:
                        if (!empty($diff_old) && !empty($diff_new)) {
                            goto IKWcr;
                            q2SXZ:
                            $jsonData["\x54\x72\x61\156\163\x41\x64\x64\162\145\x73\163"][$loopCnt]["\124\x79\160\x65"] = $val;
                            goto nxJfQ;
                            IKWcr:
                            $cusFieldlog = array_merge_recursive($diff_old, $diff_new);
                            goto q2SXZ;
                            gwedK:
                            $loopCnt++;
                            goto p9mrN;
                            yiQLM:
                            sQ7Ut:
                            goto gwedK;
                            nxJfQ:
                            $jsonData["\x54\162\x61\x6e\163\x41\x64\144\x72\145\163\163"][$loopCnt]["\101\x63\164\x69\x6f\156"] = "\x4d";
                            goto y6f1o;
                            y6f1o:
                            foreach ($cusFieldlog as $ikey => $ival) {
                                goto bQENF;
                                YpfdC:
                                $jsonData["\124\162\141\156\163\101\144\x64\162\145\163\x73"][$loopCnt]["\x46\151\x65\x6c\x64"][$ikey]["\x4e"] = $ival[1];
                                goto hB7QP;
                                hB7QP:
                                g0OWY:
                                goto mX010;
                                bQENF:
                                $jsonData["\x54\x72\x61\156\163\101\144\x64\162\x65\163\163"][$loopCnt]["\106\x69\145\x6c\x64"][$ikey]["\x4f"] = $ival[0];
                                goto YpfdC;
                                mX010:
                            }
                            goto yiQLM;
                            p9mrN:
                        }
                        goto GZNx0;
                        GZNx0:
                    } else {
                        $jsonData["\124\x72\141\x6e\163\x41\144\144\162\x65\163\x73"]["\x4e"] = $newRecord["\164\162\141\156\x73\x41\x64\x64\162"];
                        $jsonData["\x54\162\x61\x6e\x73\x41\x64\x64\x72\145\x73\163"]["\x4f"] = $oldRecord["\x74\x72\141\156\163\x41\144\x64\162"];
                    }
                    goto STClX;
                    STClX:
                    tRsud:
                    goto SItTH;
                    PLn0N:
                    $oIndex = array_search($val, $oldTransAddress);
                    goto m9qsN;
                    pLxdJ:
                    $nIndex = array_search($val, $newTransAddress);
                    goto PLn0N;
                    SItTH:
                }
                goto mAa0X;
                OqRXw:
                $newTransAddress = array();
                goto IYnoo;
                IYnoo:
                if (!empty($oldRecord["\164\x72\141\x6e\x73\101\144\144\162"])) {
                    $oldTransAddress = array_column($oldRecord["\164\x72\x61\x6e\163\x41\144\144\162"], "\141\144\x64\x72\124\x79\160\145");
                }
                goto WCpf1;
                uSCvq:
                $loopCnt = 0;
                goto Om6uZ;
                Iy3h2:
            }
            goto bbmci;
            eLFMT:
            $diff_old = array_diff_uassoc($oldRecord["\x74\162\x61\156\x73"], $newRecord["\164\x72\141\156\x73"], "\x6b\x65\x79\x5f\143\x6f\x6d\160\141\162\145\137\146\x75\x6e\x63");
            goto YLWbu;
            fWQje:
            if (!empty($newRecord["\x70\141\x79\x6d\x65\156\164"])) {
                self::mergeTransArrayFields($oldRecord["\x70\x61\171\x6d\x65\156\164"], $newRecord["\x70\x61\x79\x6d\x65\x6e\x74"], $tType, "\124\x72\141\x6e\x73\120\x61\171\x6d\145\156\x74", "\164\116\157", $jsonData);
            }
            goto RGtbn;
            w40IF:
            foreach ($translog as $key => $val) {
                goto pguUT;
                pguUT:
                if ($key == "\x63\x6f\x6e\111\x64") {
                    $skipAddressCheck = true;
                }
                goto uA6z_;
                HVPRd:
                SWjHF:
                goto gCZf_;
                uA6z_:
                $jsonData["\106\x69\x65\154\x64"][$key]["\x4f"] = $val[0];
                goto aqgEm;
                aqgEm:
                $jsonData["\x46\151\x65\154\x64"][$key]["\116"] = $val[1];
                goto HVPRd;
                gCZf_:
            }
            goto aPOgz;
            IcCAi:
            $tType = $newRecord["\x74\x72\141\x6e\x73"]["\x74\x54\x79\x70\x65"];
            goto UCYtq;
            bbmci:
            $logData["\x74\162\141\156\163"][] = $jsonData;
            goto Q2S4p;
            lk2HO:
            if (!empty($newRecord["\x74\x72\x61\156\163\111\x74\145\x6d\163"])) {
                self::mergeTransArrayFields($oldRecord["\x74\162\141\156\163\x49\x74\145\155\x73"], $newRecord["\x74\x72\x61\156\163\x49\164\x65\x6d\x73"], $tType, "\x49\x74\x65\x6d\163", "\151\x64", $jsonData, !empty($oldRecord["\x69\164\x65\x6d\101\x74\x74\162"]) ? $oldRecord["\x69\164\x65\155\101\164\164\x72"] : null, !empty($newRecord["\151\x74\145\155\x41\164\164\x72"]) ? $newRecord["\x69\164\145\155\101\x74\x74\x72"] : null);
            }
            goto RZzLx;
            RGtbn:
            if (!empty($newRecord["\141\x74\x74\141\x63\x68\x6d\145\156\164\x73"])) {
                self::mergeTransArrayFields($oldRecord["\x61\x74\164\141\x63\x68\x6d\145\156\164\x73"], $newRecord["\x61\x74\164\141\x63\x68\155\x65\156\164\163"], $tType, "\141\164\164\141\x63\x68\x6d\145\x6e\x74\163", "\146\151\154\x65\116\x61\x6d\x65", $jsonData);
            }
            goto lk2HO;
            fUZrD:
            if (!empty($newRecord["\x70\141\171\115\157\x64\x65\x73"])) {
                self::mergeTransNoIdFields($oldRecord["\160\141\171\x4d\157\144\145\x73"], $newRecord["\160\141\171\115\x6f\144\145\163"], $tType, "\120\141\x79\155\x65\x6e\x74\x4d\157\x64\145\x73", "\x61\x63\x63\111\144", $jsonData);
            }
            goto fWQje;
            UCYtq:
            $jsonData["\151\144"] = $oldRecord["\x74\162\x61\x6e\163"]["\x69\x64"];
            goto w40IF;
            aPOgz:
            yv4bR:
            goto fUZrD;
            UN3P4:
            if (!empty($newRecord["\164\x72\x61\x6e\163\x46\151\x65\154\x64\163"])) {
                self::mergeTransArrayFields($oldRecord["\x74\x72\141\x6e\163\x46\x69\145\x6c\x64\x73"], $newRecord["\x74\162\x61\156\163\x46\x69\x65\x6c\144\163"], $tType, "\x74\x72\x61\156\163\106\x69\145\154\x64\x73", "\x66\x4e\x61\155\145", $jsonData);
            }
            goto XvhO7;
            Q2S4p:
        } else {
            if (!empty($oldRecord) && $oldRecord) {
                goto YWdie;
                BZar5:
                if (!empty($oldRecord["\x6a\x6f\x75\162\x6e\x61\154"])) {
                    foreach ($oldRecord["\x6a\x6f\165\162\156\141\x6c"] as $key => $val) {
                        goto Q36_A;
                        vGEcq:
                        unset($val["\151\x64"]);
                        goto iq2o4;
                        Bp1XZ:
                        N33SE:
                        goto a0s1J;
                        Q36_A:
                        $jsonData["\124\x72\141\156\163\x41\x63\x63\x6f\x75\x6e\x74"][$key]["\101\143\x63\x6f\165\x6e\164"] = $val["\x61\143\x63\103\157\144\145"] == "\x41\122" || $val["\141\143\x63\103\x6f\x64\x65"] == "\x41\x50" ? $val["\x43\x6f\x6e\164\141\x63\164"] : $val["\x61\143\x63\x4e\141\x6d\x65"];
                        goto vGEcq;
                        jhMd0:
                        foreach ($val as $pkey => $pval) {
                            if (!empty($pval) && (!is_numeric($pval) || (float) $pval != 0)) {
                                $jsonData["\124\162\141\156\163\x41\143\x63\x6f\165\156\164"][$key]["\x46\x69\145\x6c\x64"][][$pkey] = $pval;
                            }
                            vd1pI:
                        }
                        goto Bp1XZ;
                        a0s1J:
                        vZXAY:
                        goto PtsDA;
                        iq2o4:
                        unset($val["\x61\x63\143\103\x6f\144\x65"]);
                        goto jhMd0;
                        PtsDA:
                    }
                    InZfB:
                }
                goto CKpWC;
                J1CqA:
                if (!empty($oldRecord["\164\x72\x61\156\x73\101\x64\144\x72"])) {
                    foreach ($oldRecord["\x74\162\141\x6e\163\x41\x64\144\162"] as $key => $val) {
                        goto MYu4P;
                        MYu4P:
                        $jsonData["\124\162\141\156\163\x41\x64\144\162\145\163\x73"][$key]["\x54\x79\x70\x65"] = $val["\x61\144\x64\162\124\x79\160\145"];
                        goto zauhP;
                        fR7rT:
                        h3p8U:
                        goto EALyE;
                        EALyE:
                        JK_h_:
                        goto cgQcY;
                        zauhP:
                        foreach ($val as $tkey => $tval) {
                            if (!empty($tval) && (!is_numeric($tval) || (float) $tval != 0)) {
                                $jsonData["\x54\x72\141\x6e\163\x41\144\x64\x72\145\163\163"][$key]["\106\x69\x65\154\144"][][$tkey] = $tval;
                            }
                            ROGMG:
                        }
                        goto fR7rT;
                        cgQcY:
                    }
                    sXMBq:
                }
                goto CPTel;
                Dgsj0:
                foreach ($oldRecord["\164\x72\x61\156\163"] as $key => $val) {
                    if ($key != "\151\144" && !empty($val) && (!is_numeric($val) || (float) $val != 0)) {
                        $jsonData["\x46\x69\x65\154\144"][$key] = $val;
                    }
                    PENfA:
                }
                goto O2FBM;
                YWdie:
                $jsonData["\x41\x63\x74\151\x6f\156"] = "\x44";
                goto RqRan;
                O2FBM:
                CnPUm:
                goto wocOS;
                wocOS:
                if (!empty($oldRecord["\164\162\141\x6e\x73\x49\164\145\x6d\163"])) {
                    foreach ($oldRecord["\164\162\141\x6e\163\x49\x74\145\155\163"] as $key => $val) {
                        goto PQdnf;
                        AsL83:
                        foreach ($val as $tkey => $tval) {
                            if ($tkey == "\151\164\x65\x6d\101\x74\164\162\111\x64" && !empty($tval) && $oldRecord["\151\x74\145\155\x41\x74\x74\x72"] && array_key_exists($tval, $oldRecord["\151\164\x65\x6d\x41\164\164\162"])) {
                                goto O6VwE;
                                xSHH2:
                                $attributes = '';
                                goto uNgFv;
                                o74gl:
                                IOoGO:
                                goto Culhb;
                                uNgFv:
                                foreach ($oldRecord["\x69\164\145\x6d\101\164\x74\x72"][$val["\x69\164\145\x6d\101\164\x74\x72\111\x64"]] as $akey => $aval) {
                                    goto HVSwR;
                                    HVSwR:
                                    $attributes .= $sep . $aval;
                                    goto GFegk;
                                    GFegk:
                                    $sep = "\174";
                                    goto tZ7V3;
                                    tZ7V3:
                                    Mxv0W:
                                    goto xJEFU;
                                    xJEFU:
                                }
                                goto o74gl;
                                Culhb:
                                $jsonData["\111\x74\x65\x6d\x73"][$key]["\x46\151\145\154\x64"][]["\x61\x74\164\162\x69\142\165\x74\x65"] = $attributes;
                                goto Ddz2A;
                                O6VwE:
                                $sep = '';
                                goto xSHH2;
                                Ddz2A:
                            } else {
                                if ($tkey != "\151\144" && !empty($tval) && (!is_numeric($tval) || (float) $tval != 0)) {
                                    $jsonData["\111\164\x65\155\x73"][$key]["\106\x69\x65\154\144"][][$tkey] = $tval;
                                }
                            }
                            cF8FK:
                        }
                        goto jutc1;
                        A2QJF:
                        KkMz5:
                        goto CR8hJ;
                        PQdnf:
                        $jsonData["\111\x74\145\x6d\x73"][$key]["\x49\x74\145\155\116\141\155\x65"] = $val["\x49\164\145\x6d\x4e\141\x6d\145"];
                        goto AsL83;
                        jutc1:
                        HRGt2:
                        goto A2QJF;
                        CR8hJ:
                    }
                    RmeyR:
                }
                goto J1CqA;
                CKpWC:
                if (!empty($oldRecord["\145\x78\x70\145\x6e\x73\145\x73"])) {
                    foreach ($oldRecord["\145\x78\x70\x65\x6e\x73\145\x73"] as $key => $val) {
                        goto UsKjt;
                        Whihj:
                        unset($val["\151\x64"]);
                        goto lf31V;
                        lf31V:
                        foreach ($val as $pkey => $pval) {
                            if (!empty($pval) && (!is_numeric($pval) || (float) $pval != 0)) {
                                $jsonData["\x45\x78\x70\145\156\x73\145\x2f\120\141\171\x6d\145\x6e\164"][$key]["\106\x69\x65\x6c\144"][][$pkey] = $pval;
                            }
                            EO370:
                        }
                        goto HgCGw;
                        UsKjt:
                        $jsonData["\x45\170\x70\x65\x6e\163\145\x2f\120\141\x79\x6d\x65\156\164"][$key]["\x41\143\x63\157\165\x6e\x74"] = $val["\x69\x64"];
                        goto Whihj;
                        V39HN:
                        jL87q:
                        goto Bzx_i;
                        HgCGw:
                        X_bwV:
                        goto V39HN;
                        Bzx_i:
                    }
                    x3waz:
                }
                goto rKWVP;
                wUKxt:
                if (!empty($oldRecord["\x74\x72\x61\156\163\106\x69\x65\x6c\144\163"])) {
                    $jsonData["\x46\x69\145\x6c\x64"]["\x63\165\163\164\x6f\x6d\106\151\145\x6c\144\163"] = $oldRecord["\x74\162\141\x6e\x73\x46\151\145\154\144\x73"];
                }
                goto pPdIa;
                pPdIa:
                if (!empty($oldRecord["\x61\164\x74\141\x63\150\155\145\x6e\x74\163"])) {
                    $jsonData["\106\151\145\x6c\x64"]["\141\x74\x74\141\143\150\x6d\x65\156\164\163"] = $oldRecord["\x61\x74\x74\x61\143\150\x6d\145\156\164\163"];
                }
                goto BZar5;
                RqRan:
                $tType = $oldRecord["\164\x72\141\x6e\x73"]["\x74\124\x79\x70\145"];
                goto Dgsj0;
                rKWVP:
                $logData["\x74\162\x61\x6e\x73"][] = $jsonData;
                goto eZI1J;
                CPTel:
                if (!empty($oldRecord["\160\x61\x79\x4d\157\144\145\x73"])) {
                    foreach ($oldRecord["\160\141\171\115\x6f\144\145\163"] as $key => $val) {
                        goto h8_sS;
                        h8_sS:
                        $accountType = $tType == "\x50\120" || $tType == "\120\105" ? "\120\x61\x69\144\146\x72\157\155\101\143\143\x6f\165\156\x74" : "\x44\145\x70\157\163\x69\164\x41\143\143\x6f\x75\x6e\x74";
                        goto IuF3H;
                        LFLSt:
                        Uzwwm:
                        goto SY2oe;
                        IuF3H:
                        $jsonData["\x50\141\x79\x6d\x65\156\x74\x4d\x6f\144\145\x73"][$key][$accountType] = $val["\x41\143\x63\x6f\x75\x6e\164\116\x61\x6d\x65"];
                        goto sPv0N;
                        sPv0N:
                        foreach ($val as $pkey => $pval) {
                            if (!empty($pval) && $pkey != "\141\x63\x63\111\144" && (!is_numeric($pval) || (float) $pval != 0)) {
                                $jsonData["\120\141\x79\155\x65\x6e\164\x4d\x6f\144\x65\x73"][$key]["\x46\x69\145\x6c\144"][][$pkey] = $pval;
                            }
                            AjxAr:
                        }
                        goto LFLSt;
                        SY2oe:
                        nTnPh:
                        goto RKImX;
                        RKImX:
                    }
                    dRYVY:
                }
                goto wUKxt;
                eZI1J:
            }
        }
        goto FlRFu;
        Twkp7:
    }
    private static function mergeTransNoIdFields($oldData, $newData, $tType, $type, $field, &$jsonData)
    {
        goto GyC6g;
        U9IJa:
        $loopCnt = 0;
        goto Wr89U;
        GyC6g:
        $oldFieldids = array_column($oldData, $field);
        goto Fas3j;
        VU9OT:
        EWUz6:
        goto Is_Dp;
        WlUFS:
        foreach ($uniqueFieldKeys as $key => $val) {
            goto QeO1A;
            zGcma:
            $oindexCnt = sizeof($oFieldIndexes);
            goto dpvc4;
            F_Irh:
            taLYd:
            goto DqW26;
            QeO1A:
            $nFieldIndexes = array_keys($newFieldids, $val);
            goto tG1B8;
            lAcif:
            $cnt = 0;
            goto cG5Rp;
            DJSj8:
            if (array_key_exists($cnt, $oFieldIndexes) && array_key_exists($cnt, $nFieldIndexes)) {
                goto rvzLQ;
                bWM8z:
                if (!empty($diff_old) && !empty($diff_new)) {
                    goto PNaVr;
                    PNaVr:
                    $fieldlog = array_merge_recursive($diff_old, $diff_new);
                    goto Qq0ZV;
                    vICU2:
                    cYftw:
                    goto sSbur;
                    sSbur:
                    GHWv0:
                    goto g1Zvo;
                    Qq0ZV:
                    switch ($type) {
                        case "\x50\x61\171\x6d\x65\x6e\x74\x4d\x6f\144\145\x73":
                            goto Qev0v;
                            H4cIT:
                            $jsonData[$type][$loopCnt]["\101\143\x74\151\x6f\156"] = "\x4d";
                            goto d6lnU;
                            d6lnU:
                            foreach ($fieldlog as $ikey => $ival) {
                                if ($ikey != "\141\x63\143\111\144") {
                                    $jsonData[$type][$loopCnt]["\106\x69\145\154\144"][$ikey]["\x4f"] = $ival[0];
                                    $jsonData[$type][$loopCnt]["\x46\151\145\154\x64"][$ikey]["\116"] = $ival[1];
                                }
                                a9lA2:
                            }
                            goto zzjPB;
                            QXuB3:
                            $loopCnt++;
                            goto tmO3T;
                            kPMix:
                            $jsonData[$type][$loopCnt][$accountType] = $newData[$nFieldIndexes[$cnt]]["\101\x63\143\x6f\x75\x6e\x74\116\141\155\145"];
                            goto H4cIT;
                            tmO3T:
                            goto GHWv0;
                            goto YdcgX;
                            Qev0v:
                            $accountType = $tType == "\120\120" || $tType == "\120\105" ? "\120\141\x69\x64\146\162\157\x6d\x41\143\x63\x6f\165\x6e\x74" : "\104\145\160\157\163\151\x74\x41\x63\x63\157\x75\x6e\x74";
                            goto kPMix;
                            zzjPB:
                            LCg40:
                            goto QXuB3;
                            YdcgX:
                    }
                    goto vICU2;
                    g1Zvo:
                }
                goto TKemY;
                hF8L8:
                $diff_new = array_diff_uassoc($newData[$nFieldIndexes[$cnt]], $oldData[$oFieldIndexes[$cnt]], "\x6b\x65\171\137\143\x6f\x6d\160\x61\162\x65\x5f\x66\165\156\x63");
                goto bWM8z;
                rvzLQ:
                $diff_old = array_diff_uassoc($oldData[$oFieldIndexes[$cnt]], $newData[$nFieldIndexes[$cnt]], "\x6b\145\x79\137\143\157\155\x70\x61\x72\x65\137\x66\x75\x6e\143");
                goto hF8L8;
                TKemY:
            } else {
                if (array_key_exists($cnt, $oFieldIndexes)) {
                    goto yt26P;
                    q7HNh:
                    switch ($type) {
                        case "\120\141\x79\155\x65\156\164\115\157\144\x65\x73":
                            goto CpUJh;
                            gcfB3:
                            $jsonData[$type][$loopCnt]["\101\143\164\151\157\156"] = "\104";
                            goto DPi1K;
                            DPi1K:
                            foreach ($oldData[$oIndex] as $itkey => $itval) {
                                if ($itkey != "\141\x63\143\x49\144" && !empty($itval) && (is_numeric($itval) && (float) $itval != 0)) {
                                    $jsonData[$type][$loopCnt]["\x46\151\145\154\144"][][$itkey] = $itval;
                                }
                                N8lJz:
                            }
                            goto QgyXf;
                            kUR3V:
                            goto Wp6PS;
                            goto eXRZl;
                            QgyXf:
                            sf1rs:
                            goto MWQz4;
                            CpUJh:
                            $accountType = $tType == "\120\120" || $tType == "\x50\105" ? "\120\x61\151\x64\x66\x72\157\155\x41\143\143\157\x75\x6e\164" : "\x44\145\x70\157\163\151\164\101\143\x63\157\165\156\164";
                            goto eyYhh;
                            eyYhh:
                            $jsonData[$type][$loopCnt][$accountType] = $oldData[$oIndex]["\x41\143\143\x6f\x75\x6e\x74\116\x61\x6d\x65"];
                            goto gcfB3;
                            MWQz4:
                            $loopCnt++;
                            goto kUR3V;
                            eXRZl:
                    }
                    goto yv3He;
                    uez3n:
                    Wp6PS:
                    goto b49pu;
                    yv3He:
                    pulwC:
                    goto uez3n;
                    yt26P:
                    $oIndex = $oFieldIndexes[$cnt];
                    goto kl2cb;
                    kl2cb:
                    $oldData[$oIndex] = array_filter($oldData[$oIndex]);
                    goto q7HNh;
                    b49pu:
                } else {
                    if (array_key_exists($cnt, $nFieldIndexes)) {
                        goto Obqvq;
                        c56jq:
                        switch ($type) {
                            case "\120\141\171\x6d\x65\156\x74\115\x6f\144\x65\163":
                                goto J4QYj;
                                UMJmz:
                                foreach ($newData[$nIndex] as $itkey => $itval) {
                                    if ($itkey != "\x61\143\143\x49\x64" && !empty($itval) && (is_numeric($itval) && (float) $itval != 0)) {
                                        $jsonData[$type][$loopCnt]["\x46\151\145\x6c\144"][][$itkey] = $itval;
                                    }
                                    Ylvfm:
                                }
                                goto cyvz6;
                                J4QYj:
                                $accountType = $tType == "\x50\120" || $tType == "\x50\x45" ? "\120\x61\151\144\x66\x72\157\155\101\143\x63\x6f\165\x6e\x74" : "\104\145\x70\157\x73\x69\x74\x41\x63\x63\x6f\165\156\164";
                                goto RR2Et;
                                o8pbP:
                                $loopCnt++;
                                goto z0WCE;
                                cyvz6:
                                LTKeL:
                                goto o8pbP;
                                RR2Et:
                                $jsonData[$type][$loopCnt][$accountType] = $newData[$nIndex]["\x41\x63\x63\x6f\165\x6e\164\116\141\155\x65"];
                                goto etxHx;
                                etxHx:
                                $jsonData[$type][$loopCnt]["\x41\143\x74\x69\x6f\x6e"] = "\116";
                                goto UMJmz;
                                z0WCE:
                                goto NGG3m;
                                goto j3gc6;
                                j3gc6:
                        }
                        goto u6dWH;
                        u6dWH:
                        iIu99:
                        goto iYbam;
                        iYbam:
                        NGG3m:
                        goto wyNa5;
                        UiGSg:
                        $newData[$nIndex] = array_filter($newData[$nIndex]);
                        goto c56jq;
                        Obqvq:
                        $nIndex = $nFieldIndexes[$cnt];
                        goto UiGSg;
                        wyNa5:
                    }
                }
            }
            goto tVRz3;
            tG1B8:
            $oFieldIndexes = array_keys($oldFieldids, $val);
            goto fJEfu;
            cG5Rp:
            FHTo2:
            goto hKfJA;
            fJEfu:
            $nindexCnt = sizeof($nFieldIndexes);
            goto zGcma;
            tVRz3:
            PKr4X:
            goto q4pHV;
            dpvc4:
            $lcnt = $nindexCnt < $oindexCnt ? $oindexCnt : $nindexCnt;
            goto lAcif;
            hKfJA:
            if (!($cnt < $lcnt)) {
                goto taLYd;
            }
            goto DJSj8;
            q4pHV:
            $cnt++;
            goto u0_8p;
            u0_8p:
            goto FHTo2;
            goto F_Irh;
            DqW26:
            Td0Mj:
            goto OfyJa;
            OfyJa:
        }
        goto VU9OT;
        Fas3j:
        $newFieldids = array_column($newData, $field);
        goto U9IJa;
        Wr89U:
        $uniqueFieldKeys = array_unique(array_merge($oldFieldids, $newFieldids));
        goto WlUFS;
        Is_Dp:
    }
    private static function mergeTransArrayFields($oldData, $newData, $tType, $type, $field, &$jsonData, $olditemAttr = array(), $newitemAttr = array())
    {
        goto gEt_U;
        hS8l_:
        foreach ($uniqueFieldKeys as $key => $val) {
            goto MjTKm;
            d0FRJ:
            if (is_numeric($nIndex) && is_numeric($oIndex) && $nIndex >= 0 && $oIndex >= 0) {
                goto V6gkt;
                Q2ZJe:
                if (!empty($diff_old) && !empty($diff_new)) {
                    goto sOlRJ;
                    woGNW:
                    b3BBQ:
                    goto DNgoK;
                    DNgoK:
                    Je9ml:
                    goto xc8iJ;
                    I2OGZ:
                    switch ($type) {
                        case "\x74\162\141\156\163\x46\x69\145\x6c\x64\x73":
                            goto po4iq;
                            ETA7K:
                            goto Je9ml;
                            goto Hk5VX;
                            po4iq:
                            foreach ($fieldlog as $ikey => $ival) {
                                goto Qc0PC;
                                Yqi7B:
                                $jsonData["\x46\x69\145\x6c\144"][$fName]["\x4f"] = $ival[0];
                                goto Hz7Sc;
                                Hz7Sc:
                                $jsonData["\x46\x69\x65\x6c\x64"][$fName]["\116"] = $ival[1];
                                goto RxKAT;
                                Qc0PC:
                                $fName = $oldData[$oIndex]["\146\116\x61\x6d\145"];
                                goto Yqi7B;
                                RxKAT:
                                ws6va:
                                goto S0N2V;
                                S0N2V:
                            }
                            goto KanM3;
                            KanM3:
                            blHwV:
                            goto ETA7K;
                            Hk5VX:
                        case "\x54\162\141\x6e\163\x41\143\143\x6f\x75\x6e\164":
                            goto ahKT2;
                            I7QR8:
                            D8f01:
                            goto g8qML;
                            g8qML:
                            $loopCnt++;
                            goto zG6bu;
                            zG6bu:
                            goto Je9ml;
                            goto XYx2i;
                            ahKT2:
                            $jsonData[$type][$loopCnt]["\x41\143\143\157\165\x6e\164"] = $newData[$nIndex]["\141\143\143\103\x6f\144\145"] == "\x41\x52" || $newData[$nIndex]["\141\143\143\103\157\x64\x65"] == "\101\x50" ? $newData[$nIndex]["\103\x6f\x6e\x74\x61\143\164"] : $newData[$nIndex]["\x61\x63\x63\116\141\155\x65"];
                            goto O0smW;
                            HM5of:
                            foreach ($fieldlog as $ikey => $ival) {
                                goto pNWni;
                                pNWni:
                                $fName = $ikey;
                                goto wAzUD;
                                wAzUD:
                                $jsonData[$type][$loopCnt]["\106\x69\145\x6c\144"][$ikey]["\x4f"] = $ival[0];
                                goto u60WX;
                                dppl1:
                                XyCBc:
                                goto gSFkG;
                                u60WX:
                                $jsonData[$type][$loopCnt]["\106\151\x65\154\144"][$ikey]["\x4e"] = $ival[1];
                                goto dppl1;
                                gSFkG:
                            }
                            goto I7QR8;
                            O0smW:
                            $jsonData[$type][$loopCnt]["\101\x63\164\x69\157\156"] = "\x4d";
                            goto HM5of;
                            XYx2i:
                        case "\105\x78\160\145\x6e\163\x65\57\x50\141\171\155\x65\x6e\164":
                            goto RukR1;
                            nuPMP:
                            goto Je9ml;
                            goto RlV17;
                            GpOY7:
                            YBzUT:
                            goto xPfb5;
                            P2XSh:
                            $jsonData[$type][$loopCnt]["\x41\143\x74\151\x6f\156"] = "\115";
                            goto rPQQd;
                            xPfb5:
                            $loopCnt++;
                            goto nuPMP;
                            RukR1:
                            $jsonData[$type][$loopCnt]["\x41\x63\143\x6f\x75\156\x74"] = $newData[$nIndex]["\x69\144"];
                            goto P2XSh;
                            rPQQd:
                            foreach ($fieldlog as $ikey => $ival) {
                                goto F4FzR;
                                tMXGD:
                                $jsonData[$type][$loopCnt]["\x46\151\x65\x6c\x64"][$ikey]["\x4e"] = $ival[1];
                                goto RwZCk;
                                RwZCk:
                                igiJ2:
                                goto GRaeX;
                                urcro:
                                $jsonData[$type][$loopCnt]["\106\151\145\154\x64"][$ikey]["\x4f"] = $ival[0];
                                goto tMXGD;
                                F4FzR:
                                $fName = $ikey;
                                goto urcro;
                                GRaeX:
                            }
                            goto GpOY7;
                            RlV17:
                        case "\124\162\141\156\x73\120\141\171\155\x65\156\x74":
                            goto SVP72;
                            kvPJm:
                            $loopCnt++;
                            goto ywJtm;
                            Udg0X:
                            foreach ($fieldlog as $ikey => $ival) {
                                goto VwTh1;
                                MSXFG:
                                $jsonData[$type][$loopCnt]["\106\151\x65\154\144"][$ikey]["\x4e"] = $ival[1];
                                goto ZdRgI;
                                ZdRgI:
                                yf5dt:
                                goto oyKU0;
                                VwTh1:
                                $jsonData[$type][$loopCnt]["\106\x69\145\154\x64"][$ikey]["\117"] = $ival[0];
                                goto MSXFG;
                                oyKU0:
                            }
                            goto tVf6B;
                            ZoDdt:
                            $jsonData[$type][$loopCnt]["\x41\x63\164\151\x6f\156"] = "\x4d";
                            goto Udg0X;
                            SVP72:
                            $jsonData[$type][$loopCnt]["\124\162\141\x6e\163\x61\143\x74\x69\157\156\x44\x65\x73\143"] = $newData[$nIndex]["\124\162\141\x6e\163\141\143\x74\x69\157\x6e\104\x65\x73\x63"];
                            goto ZoDdt;
                            tVf6B:
                            SJLLh:
                            goto kvPJm;
                            ywJtm:
                            goto Je9ml;
                            goto fjNRB;
                            fjNRB:
                        case "\111\x74\145\x6d\163":
                            goto nYgmI;
                            KIelP:
                            if (!empty($resArray["\x46\x69\145\154\x64"]) && !empty($resArray["\106\151\145\154\x64"]["\141\x74\164\162\151\x62\x75\164\145"])) {
                                $jsonData[$type][$loopCnt]["\x46\151\145\x6c\144"]["\141\164\x74\x72\151\x62\x75\x74\145"] = $resArray["\106\x69\x65\154\x64"]["\141\164\x74\162\151\x62\165\164\145"];
                            }
                            goto zRotD;
                            spqwR:
                            if (!empty($olditemAttr) && !empty($olditemAttr[$oldData[$oIndex]["\x69\164\145\x6d\101\x74\164\x72\111\x64"]])) {
                                $arOldAttr = $olditemAttr[$oldData[$oIndex]["\151\164\x65\x6d\x41\164\164\162\x49\x64"]];
                            }
                            goto vxzrd;
                            wxV01:
                            goto Je9ml;
                            goto D4Mug;
                            a6wdH:
                            $jsonData[$type][$loopCnt]["\x41\143\x74\151\157\156"] = "\115";
                            goto VBe7h;
                            nYgmI:
                            $jsonData[$type][$loopCnt]["\124\x72\x61\156\x73\111\x74\x65\x6d\x49\144"] = $val;
                            goto iwsga;
                            o31uT:
                            WgGqb:
                            goto yEijq;
                            VBe7h:
                            foreach ($fieldlog as $ikey => $ival) {
                                goto PGy6L;
                                voQN7:
                                $jsonData[$type][$loopCnt]["\106\x69\x65\x6c\x64"][$ikey]["\x4f"] = $ival[0];
                                goto Wp2HA;
                                Gp7r6:
                                j4GGY:
                                goto Tc2Hy;
                                Wp2HA:
                                $jsonData[$type][$loopCnt]["\106\151\145\154\144"][$ikey]["\116"] = $ival[1];
                                goto Gp7r6;
                                PGy6L:
                                if ($ikey == "\151\x74\x65\155\101\x74\164\162\x49\144") {
                                    goto j4GGY;
                                }
                                goto voQN7;
                                Tc2Hy:
                            }
                            goto o31uT;
                            yEijq:
                            $arOldAttr = array();
                            goto yXrQC;
                            iwsga:
                            $jsonData[$type][$loopCnt]["\111\x74\x65\x6d\116\141\155\x65"] = $newData[$nIndex]["\111\164\x65\x6d\116\x61\x6d\145"];
                            goto a6wdH;
                            Ca_Ky:
                            self::mergeTransFields($arOldAttr, $arNewAttr, 1, "\x61\x74\x74\162\151\x62\x75\164\x65", $resArray);
                            goto KIelP;
                            zRotD:
                            $loopCnt++;
                            goto wxV01;
                            vxzrd:
                            if (!empty($newitemAttr) && !empty($newitemAttr[$newData[$nIndex]["\x69\x74\x65\155\x41\164\x74\162\111\144"]])) {
                                $arNewAttr = $newitemAttr[$newData[$nIndex]["\x69\x74\145\155\101\164\x74\x72\x49\144"]];
                            }
                            goto Ca_Ky;
                            yXrQC:
                            $arNewAttr = array();
                            goto spqwR;
                            D4Mug:
                        default:
                            foreach ($fieldlog as $ikey => $ival) {
                                goto w_BTZ;
                                Sge2K:
                                $jsonData["\x46\151\x65\x6c\x64"][$fName]["\116"] = $ival[1];
                                goto i2HGX;
                                w_BTZ:
                                $fName = $ikey;
                                goto OEiAb;
                                i2HGX:
                                POHtW:
                                goto f4NZ2;
                                OEiAb:
                                $jsonData["\106\x69\x65\154\x64"][$fName]["\117"] = $ival[0];
                                goto Sge2K;
                                f4NZ2:
                            }
                            mr4Vf:
                    }
                    goto woGNW;
                    sOlRJ:
                    $fieldlog = array_merge_recursive($diff_old, $diff_new);
                    goto I2OGZ;
                    xc8iJ:
                }
                goto cyhQp;
                be_T2:
                $diff_new = array_diff_uassoc($newData[$nIndex], $oldData[$oIndex], "\153\x65\x79\x5f\x63\x6f\x6d\160\x61\x72\x65\137\x66\x75\156\143");
                goto Q2ZJe;
                V6gkt:
                $diff_old = array_diff_uassoc($oldData[$oIndex], $newData[$nIndex], "\x6b\145\x79\137\143\x6f\x6d\x70\x61\x72\145\x5f\x66\x75\x6e\143");
                goto be_T2;
                cyhQp:
            } else {
                if (is_numeric($nIndex) && $nIndex >= 0) {
                    goto DKnEC;
                    QaC59:
                    R8oAo:
                    goto krEhd;
                    cnUzM:
                    $newData[$nIndex]["\x61\143\143\x43\157\x64\x65"] = isset($newData[$nIndex]["\141\x63\x63\x43\157\x64\145"]) ? $newData[$nIndex]["\141\x63\143\x43\157\144\x65"] : '';
                    goto Ew5eI;
                    Ew5eI:
                    switch ($type) {
                        case "\x54\162\141\156\x73\101\x63\x63\x6f\165\x6e\164":
                            goto AqrWF;
                            D_f3t:
                            unset($newData[$nIndex]["\141\x63\143\103\x6f\x64\145"]);
                            goto y2gLj;
                            XLdcU:
                            unset($newData[$nIndex]["\x69\144"]);
                            goto D_f3t;
                            TlXCY:
                            goto R8oAo;
                            goto cgcBT;
                            o0IdQ:
                            y0Hu0:
                            goto mzK5T;
                            AqrWF:
                            $jsonData[$type][$loopCnt]["\x41\143\164\151\x6f\x6e"] = "\116";
                            goto AC9qP;
                            mzK5T:
                            $loopCnt++;
                            goto TlXCY;
                            AC9qP:
                            $jsonData[$type][$loopCnt]["\x41\x63\143\x6f\165\156\x74"] = $newData[$nIndex]["\x61\x63\143\x43\x6f\x64\145"] == "\x41\122" || $newData[$nIndex]["\x61\x63\x63\103\157\x64\145"] == "\101\x50" ? $newData[$nIndex]["\x43\157\156\x74\x61\143\x74"] : $newData[$nIndex]["\x61\143\143\x4e\141\155\x65"];
                            goto XLdcU;
                            y2gLj:
                            foreach ($newData[$nIndex] as $itkey => $itval) {
                                if (!empty($itval) && (!is_numeric($itval) || (float) $itval != 0)) {
                                    $jsonData[$type][$loopCnt]["\x46\151\145\154\144"][][$itkey] = $itval;
                                }
                                k0xkS:
                            }
                            goto o0IdQ;
                            cgcBT:
                        case "\124\x72\x61\156\x73\120\x61\x79\155\x65\156\x74":
                            goto fdL0H;
                            IYFa4:
                            $jsonData[$type][$loopCnt]["\x41\143\x74\x69\x6f\x6e"] = "\x4e";
                            goto JNFyN;
                            djD99:
                            k21hI:
                            goto CLwb_;
                            fdL0H:
                            $jsonData[$type][$loopCnt]["\x54\162\141\x6e\163\x61\143\164\x69\157\x6e\104\145\163\143"] = $newData[$nIndex]["\124\x72\141\156\x73\x61\143\x74\151\157\156\104\x65\163\x63"];
                            goto IYFa4;
                            XzjgH:
                            foreach ($newData[$nIndex] as $itkey => $itval) {
                                if (!empty($itval) && (!is_numeric($itval) || (float) $itval != 0)) {
                                    $jsonData[$type][$loopCnt]["\106\151\x65\x6c\x64"][][$itkey] = $itval;
                                }
                                xJqNX:
                            }
                            goto djD99;
                            CLwb_:
                            $loopCnt++;
                            goto JhcBh;
                            JNFyN:
                            unset($newData[$nIndex]["\x74\116\x6f"]);
                            goto XzjgH;
                            JhcBh:
                            goto R8oAo;
                            goto IPdQG;
                            IPdQG:
                        case "\x45\x78\x70\x65\x6e\163\x65\57\x50\141\171\x6d\145\x6e\164":
                            goto bOdxG;
                            anlni:
                            foreach ($newData[$nIndex] as $itkey => $itval) {
                                if (!empty($itval) && (!is_numeric($itval) || (float) $itval != 0)) {
                                    $jsonData[$type][$loopCnt]["\106\x69\x65\x6c\144"][][$itkey] = $itval;
                                }
                                PmETc:
                            }
                            goto QD7Wc;
                            QD7Wc:
                            xlRIk:
                            goto JmPuI;
                            bOdxG:
                            $jsonData[$type][$loopCnt]["\x41\143\x63\x6f\x75\156\x74"] = $newData[$nIndex]["\151\144"];
                            goto Jc9mv;
                            Jc9mv:
                            $jsonData[$type][$loopCnt]["\101\x63\x74\151\x6f\156"] = "\x4e";
                            goto kPUMm;
                            JmPuI:
                            $loopCnt++;
                            goto rOLhE;
                            kPUMm:
                            unset($newData[$nIndex]["\x69\x64"]);
                            goto anlni;
                            rOLhE:
                            goto R8oAo;
                            goto HZwTY;
                            HZwTY:
                        case "\x49\164\145\x6d\163":
                            goto KZ8SF;
                            Fd1JK:
                            $jsonData[$type][$loopCnt]["\101\x63\164\151\x6f\156"] = "\x4e";
                            goto iXVfb;
                            MS0Oh:
                            gCc0G:
                            goto Aw04W;
                            KjngB:
                            if (!empty($resArray["\x46\151\145\154\144"]) && !empty($resArray["\106\151\145\x6c\x64"]["\x61\x74\164\x72\x69\x62\165\164\145"])) {
                                $jsonData[$type][$loopCnt]["\106\x69\145\154\x64"][]["\141\164\x74\162\151\x62\165\164\145"] = $resArray["\106\x69\x65\x6c\144"]["\x61\x74\x74\x72\151\142\165\164\x65"];
                            }
                            goto WP5Rg;
                            Z_pgs:
                            unset($newData[$nIndex]["\111\164\x65\x6d\116\141\155\x65"]);
                            goto cfkcb;
                            Aw04W:
                            if (!empty($itemAttrId) && !empty($newitemAttr[$itemAttrId])) {
                                $arNewAttr = $newitemAttr[$itemAttrId];
                                self::mergeTransFields($arOldAttr, $arNewAttr, 1, "\x61\x74\164\x72\151\x62\x75\164\145", $resArray);
                            }
                            goto KjngB;
                            iXVfb:
                            if (!empty($newData[$nIndex]["\x69\164\145\x6d\101\x74\x74\162\x49\144"])) {
                                $itemAttrId = $newData[$nIndex]["\x69\x74\145\155\101\x74\x74\x72\x49\144"];
                                unset($newData[$nIndex]["\x69\x74\x65\155\x41\164\164\x72\x49\x64"]);
                            }
                            goto ut0gi;
                            cfkcb:
                            foreach ($newData[$nIndex] as $itkey => $itval) {
                                if (!empty($itval) && (!is_numeric($itval) || (float) $itval != 0)) {
                                    $jsonData[$type][$loopCnt]["\106\x69\x65\154\144"][][$itkey] = $itval;
                                }
                                TmQmV:
                            }
                            goto MS0Oh;
                            dZD69:
                            goto R8oAo;
                            goto uc9DS;
                            ut0gi:
                            unset($newData[$nIndex]["\x69\x64"]);
                            goto Z_pgs;
                            WP5Rg:
                            $loopCnt++;
                            goto dZD69;
                            KZ8SF:
                            $jsonData[$type][$loopCnt]["\124\x72\141\x6e\163\x49\x74\x65\x6d\x49\x64"] = $val;
                            goto kV8y4;
                            kV8y4:
                            $jsonData[$type][$loopCnt]["\x49\164\145\155\116\141\x6d\x65"] = $newData[$nIndex]["\x49\x74\145\155\116\141\155\x65"];
                            goto Fd1JK;
                            uc9DS:
                        case "\164\162\141\x6e\x73\x46\151\145\154\x64\163":
                        default:
                            $jsonData["\106\151\145\154\x64"][$type]["\116"][] = $newData[$nIndex];
                            goto R8oAo;
                    }
                    goto NwOHA;
                    DKnEC:
                    $newData[$nIndex] = array_filter($newData[$nIndex]);
                    goto cnUzM;
                    NwOHA:
                    rZ9kZ:
                    goto QaC59;
                    krEhd:
                } else {
                    if (is_numeric($oIndex) && $oIndex >= 0) {
                        goto oS3Hb;
                        oS3Hb:
                        $oldData[$oIndex] = array_filter($oldData[$oIndex]);
                        goto Bw7Or;
                        KAsTV:
                        switch ($type) {
                            case "\124\162\x61\x6e\x73\x41\143\x63\x6f\165\x6e\x74":
                                goto dv1E4;
                                XlXMi:
                                rU7b_:
                                goto rXbt3;
                                rXbt3:
                                $loopCnt++;
                                goto Qu7np;
                                oy1NZ:
                                unset($oldData[$oIndex]["\141\143\143\x43\157\144\x65"]);
                                goto aDjQE;
                                Qu7np:
                                goto Z3i0Z;
                                goto xJGUx;
                                HGCgC:
                                $jsonData[$type][$loopCnt]["\101\143\143\157\x75\156\x74"] = $oldData[$oIndex]["\x61\x63\143\103\x6f\x64\145"] == "\x41\x52" || $oldData[$oIndex]["\x61\x63\143\x43\x6f\x64\145"] == "\x41\x50" ? $oldData[$oIndex]["\x43\157\156\164\x61\143\x74"] : $oldData[$oIndex]["\x61\x63\143\116\x61\155\145"];
                                goto LNys_;
                                dv1E4:
                                $jsonData[$type][$loopCnt]["\x41\143\164\x69\157\156"] = "\x44";
                                goto HGCgC;
                                LNys_:
                                unset($oldData[$oIndex]["\151\144"]);
                                goto oy1NZ;
                                aDjQE:
                                foreach ($oldData[$oIndex] as $itkey => $itval) {
                                    if (!empty($itval) && (!is_numeric($itval) || (float) $itval != 0)) {
                                        $jsonData[$type][$loopCnt]["\x46\x69\x65\154\x64"][][$itkey] = $itval;
                                    }
                                    PZWt3:
                                }
                                goto XlXMi;
                                xJGUx:
                            case "\124\x72\141\x6e\x73\x50\141\x79\155\145\156\164":
                                goto Ijn9J;
                                v_sZI:
                                $loopCnt++;
                                goto C3d2k;
                                C3d2k:
                                goto Z3i0Z;
                                goto X7azQ;
                                tJ1CW:
                                foreach ($oldData[$oIndex] as $itkey => $itval) {
                                    if (!empty($itval) && (!is_numeric($itval) || (float) $itval != 0)) {
                                        $jsonData[$type][$loopCnt]["\106\151\145\x6c\x64"][][$itkey] = $itval;
                                    }
                                    fisNP:
                                }
                                goto HKuWQ;
                                T5Wvj:
                                $jsonData[$type][$loopCnt]["\x41\x63\x74\x69\x6f\x6e"] = "\104";
                                goto zdlvK;
                                Ijn9J:
                                $jsonData[$type][$loopCnt]["\124\x72\141\156\x73\141\x63\x74\x69\157\x6e\x44\145\x73\x63"] = $oldData[$oIndex]["\124\x72\141\156\163\x61\143\x74\151\157\156\x44\x65\163\x63"];
                                goto T5Wvj;
                                zdlvK:
                                unset($oldData[$oIndex]["\164\x4e\x6f"]);
                                goto tJ1CW;
                                HKuWQ:
                                f5mRx:
                                goto v_sZI;
                                X7azQ:
                            case "\105\x78\x70\x65\x6e\163\x65\x2f\x50\x61\171\x6d\145\156\164":
                                goto SdB2d;
                                S8pxw:
                                $jsonData[$type][$loopCnt]["\x41\x63\164\x69\157\156"] = "\x44";
                                goto Msx94;
                                jnxxB:
                                goto Z3i0Z;
                                goto IwLwM;
                                N6ZJP:
                                foreach ($oldData[$oIndex] as $itkey => $itval) {
                                    if (!empty($itval) && (!is_numeric($itval) || (float) $itval != 0)) {
                                        $jsonData[$type][$loopCnt]["\106\151\145\x6c\x64"][][$itkey] = $itval;
                                    }
                                    G_xbO:
                                }
                                goto kJAlR;
                                Msx94:
                                unset($oldData[$oIndex]["\x69\x64"]);
                                goto N6ZJP;
                                SdB2d:
                                $jsonData[$type][$loopCnt]["\x41\143\x63\x6f\x75\156\x74"] = $oldData[$oIndex]["\151\x64"];
                                goto S8pxw;
                                fXsGT:
                                $loopCnt++;
                                goto jnxxB;
                                kJAlR:
                                Q6zbk:
                                goto fXsGT;
                                IwLwM:
                            case "\x49\164\145\x6d\163":
                                goto dOB_h;
                                vlVfC:
                                unset($oldData[$oIndex]["\x49\164\145\x6d\116\141\155\x65"]);
                                goto GDlPa;
                                dOB_h:
                                $jsonData[$type][$loopCnt]["\x54\x72\x61\x6e\x73\111\x74\x65\155\x49\x64"] = $val;
                                goto jn7Mm;
                                x3a97:
                                $jsonData[$type][$loopCnt]["\101\143\x74\x69\x6f\156"] = "\104";
                                goto Vk2YD;
                                mbqNp:
                                goto Z3i0Z;
                                goto bhPms;
                                yo4do:
                                if (!empty($itemAttrId) && !empty($olditemAttr[$itemAttrId])) {
                                    $arOldAttr = $olditemAttr[$itemAttrId];
                                    self::mergeTransFields($arOldAttr, $arNewAttr, 1, "\x61\x74\164\162\x69\x62\x75\x74\x65", $resArray);
                                }
                                goto bh6m_;
                                Vk2YD:
                                if (!empty($oldData[$oIndex]["\151\164\145\155\101\164\164\x72\111\x64"])) {
                                    $itemAttrId = $oldData[$oIndex]["\x69\x74\145\x6d\101\164\x74\x72\x49\144"];
                                    unset($oldData[$oIndex]["\151\164\x65\x6d\101\164\164\x72\111\144"]);
                                }
                                goto APpjE;
                                aD2bI:
                                $loopCnt++;
                                goto mbqNp;
                                jn7Mm:
                                $jsonData[$type][$loopCnt]["\x49\164\145\155\116\141\x6d\x65"] = $oldData[$oIndex]["\111\164\x65\155\116\x61\155\145"];
                                goto x3a97;
                                zqw29:
                                r8d0W:
                                goto yo4do;
                                APpjE:
                                unset($oldData[$oIndex]["\x69\144"]);
                                goto vlVfC;
                                bh6m_:
                                if (!empty($resArray["\x46\x69\145\154\x64"]) && !empty($resArray["\106\151\x65\x6c\x64"]["\141\164\164\162\x69\142\x75\x74\145"])) {
                                    $jsonData[$type][$loopCnt]["\106\x69\145\154\x64"][]["\141\164\164\x72\x69\142\x75\164\145"] = $resArray["\106\x69\145\154\144"]["\141\x74\164\162\151\x62\165\x74\x65"];
                                }
                                goto aD2bI;
                                GDlPa:
                                foreach ($oldData[$oIndex] as $itkey => $itval) {
                                    if (!empty($itval) && (!is_numeric($itval) || (float) $itval != 0)) {
                                        $jsonData[$type][$loopCnt]["\106\x69\x65\x6c\x64"][][$itkey] = $itval;
                                    }
                                    YpB4X:
                                }
                                goto zqw29;
                                bhPms:
                            case "\x74\x72\141\156\x73\x46\151\145\154\x64\163":
                            default:
                                $jsonData["\x46\x69\145\154\x64"][$type]["\117"][] = $oldData[$oIndex];
                                goto Z3i0Z;
                        }
                        goto mIZGO;
                        mIZGO:
                        EyolJ:
                        goto MKLio;
                        MKLio:
                        Z3i0Z:
                        goto SnZ6j;
                        Bw7Or:
                        $oldData[$oIndex]["\141\x63\x63\x43\157\144\x65"] = isset($oldData[$oIndex]["\141\x63\x63\103\157\x64\x65"]) ? $oldData[$oIndex]["\141\x63\x63\x43\157\144\145"] : '';
                        goto KAsTV;
                        SnZ6j:
                    }
                }
            }
            goto mWcuw;
            Jk4Mb:
            $nIndex = array_search($val, $newFieldids);
            goto ZJJNf;
            Gf1cO:
            $resArray = array();
            goto Jk4Mb;
            mWcuw:
            gr0dy:
            goto eEtUy;
            kHs4F:
            $arNewAttr = array();
            goto Gf1cO;
            ZJJNf:
            $oIndex = array_search($val, $oldFieldids);
            goto d0FRJ;
            MjTKm:
            $arOldAttr = array();
            goto kHs4F;
            eEtUy:
        }
        goto K02Nw;
        LgOMr:
        $loopCnt = 0;
        goto sT0Kd;
        o1_Fi:
        if (!empty($newData) && $newData != NULL) {
            $newFieldids = array_column($newData, $field);
        }
        goto LgOMr;
        FnF0A:
        if (!empty($oldData) && $oldData != NULL) {
            $oldFieldids = array_column($oldData, $field);
        }
        goto o1_Fi;
        gEt_U:
        $oldFieldids = array();
        goto fDO4L;
        sT0Kd:
        $uniqueFieldKeys = array_unique(array_merge($oldFieldids, $newFieldids));
        goto hS8l_;
        K02Nw:
        AmHtc:
        goto M_lpe;
        fDO4L:
        $newFieldids = array();
        goto FnF0A;
        M_lpe:
    }
    private static function mergeTransFields($oldData, $newData, $isStrFormat, $fieldType, &$jsonData)
    {
        goto y9shV;
        y9shV:
        $sep = '';
        goto oNvhd;
        oNvhd:
        if (!array_key_exists("\x46\x69\x65\x6c\x64", $jsonData)) {
            $jsonData = ["\x46\151\145\154\144" => array()];
        }
        goto l0SlY;
        l0SlY:
        if (!empty($oldData) && !empty($newData)) {
            goto buVmi;
            buVmi:
            $diff_old = array_diff_uassoc($oldData, $newData, "\153\x65\171\137\x63\157\x6d\160\141\x72\x65\137\x66\x75\x6e\x63");
            goto WJdKW;
            WJdKW:
            $diff_new = array_diff_uassoc($newData, $oldData, "\153\145\171\137\x63\x6f\155\160\x61\162\x65\x5f\x66\165\156\x63");
            goto qf_eU;
            qf_eU:
            if (!empty($diff_old) && !empty($diff_new)) {
                goto mcZLU;
                wSco3:
                foreach ($translog as $ikey => $ival) {
                    if ($isStrFormat) {
                        goto fF6WE;
                        Ltv96:
                        $sep = "\x7c";
                        goto haY_t;
                        WjxKJ:
                        $jsonData["\x46\x69\145\x6c\144"][$fieldType]["\116"] .= $sep . $ival[1];
                        goto Ltv96;
                        fF6WE:
                        $jsonData["\106\151\145\x6c\x64"][$fieldType]["\117"] .= $sep . $ival[0];
                        goto WjxKJ;
                        haY_t:
                    } else {
                        $jsonData["\106\151\x65\154\144"][$ikey]["\117"] = $ival[0];
                        $jsonData["\x46\x69\145\x6c\144"][$ikey]["\x4e"] = $ival[1];
                    }
                    akLnA:
                }
                goto XAARw;
                mcZLU:
                $translog = array_merge_recursive($diff_old, $diff_new);
                goto wSco3;
                XAARw:
                Hmwme:
                goto VIzql;
                VIzql:
            }
            goto vwYtV;
            vwYtV:
        } else {
            if (!empty($oldData)) {
                foreach ($oldData as $ikey => $ival) {
                    if ($isStrFormat && !empty($ival) && (!is_numeric($ival) || (float) $ival != 0)) {
                        if (array_key_exists($fieldType, $jsonData["\106\x69\145\x6c\x64"])) {
                            $jsonData["\106\151\x65\154\x64"][$fieldType] .= $sep . $ival;
                        } else {
                            $jsonData["\106\151\145\154\x64"] = [$fieldType => $sep . $ival];
                        }
                        $sep = "\x7c";
                    } else {
                        if (!empty($ival) && (!is_numeric($ival) || (float) $ival != 0)) {
                            $jsonData["\x46\x69\x65\x6c\x64"][$ikey]["\x4f"] = $ival;
                            $jsonData["\x46\x69\x65\154\144"][$ikey]["\116"] = '';
                        }
                    }
                    oMpn7:
                }
                s0zPw:
            } else {
                if (!empty($newData)) {
                    foreach ($newData as $ikey => $ival) {
                        if ($isStrFormat && !empty($ival) && (!is_numeric($ival) || (float) $ival != 0)) {
                            if (array_key_exists($fieldType, $jsonData["\106\151\x65\x6c\144"])) {
                                $jsonData["\x46\151\x65\x6c\x64"][$fieldType] .= $sep . $ival;
                            } else {
                                $jsonData["\x46\x69\x65\154\x64"] = [$fieldType => $sep . $ival];
                            }
                            $sep = "\x7c";
                        } else {
                            if (!empty($ival) && (!is_numeric($ival) || (float) $ival != 0)) {
                                $jsonData["\106\x69\145\154\144"][$ikey]["\116"] = $ival;
                                $jsonData["\x46\151\x65\154\x64"][$ikey]["\117"] = '';
                            }
                        }
                        asbOv:
                    }
                    OTJ7x:
                }
            }
        }
        goto GJYLF;
        GJYLF:
    }
}
