f = function()

in static/js/aplus_v2.js [598:829]


              f = function () {
                var e = a.goldlog || (a.goldlog = {}),
                  t = !0;
                try {
                  var n = a.location.href.match(/aplusDebug=(true|false)/);
                  n &&
                    n.length > 0 &&
                    a.localStorage.setItem('aplusDebug', n[1]),
                    (t = 'true' === a.localStorage.getItem('aplusDebug')),
                    (e.aplusDebug = t);
                } catch (r) {}
                var o = {
                    'aplus_o.js': {
                      stable_version: {
                        value: '8.15.21',
                      },
                      grey_version: {
                        value: '8.15.22',
                      },
                      dev_version: {},
                    },
                    'aplus_std.js': {
                      stable_version: {
                        value: '8.15.21',
                      },
                      grey_version: {
                        value: '8.15.22',
                      },
                      dev_version: {},
                    },
                    'aplus_wap.js': {
                      stable_version: {
                        value: '8.15.21',
                      },
                      grey_version: {
                        value: '8.15.22',
                      },
                      dev_version: {},
                    },
                    'aplus_int.js': {
                      stable_version: {
                        value: '8.15.21',
                      },
                      grey_version: {
                        value: '8.15.22',
                      },
                      dev_version: {},
                    },
                    'aplus_u.js': {
                      stable_version: {
                        value: '8.15.21',
                      },
                      grey_version: {
                        value: '8.15.22',
                      },
                      dev_version: {},
                    },
                  },
                  i = p ? 'APLUS_CORE' : 'APLUS_S_CORE',
                  u = i + '_0.21.97_20240125170405_',
                  f = a.location.protocol;
                0 !== f.indexOf('http') && (f = 'https:');
                var v = p ? '//d.alicdn.com' : c.getCdnpath();
                e.getCdnPath = c.getCdnpath;
                var d = f + v + '/alilog',
                  h = s.getAplusBuVersion(),
                  _ = h.v,
                  m = h.BU,
                  b =
                    c.getArgsQuery('aplusCoreVersion') ||
                    c.getMetaCnt('aplus-core-version'),
                  y = b || '1.12.15',
                  w = b || '1.12.17',
                  S = '',
                  j = 1e4,
                  C = p ? S : j,
                  E = [
                    {
                      key: '202401251800',
                      value: 0.1,
                    },
                    {
                      key: '202401301000',
                      value: 0.5,
                    },
                    {
                      key: '202402011000',
                      value: 1,
                    },
                  ],
                  A = function () {
                    var e = '';
                    if (E && E.length > 0)
                      for (var t = c.getDateMin(), n = 0; n < E.length; n++) {
                        var a = E[n].key + '';
                        t >= a && (e = Math.floor(1e4 * E[n].value));
                      }
                    return e;
                  },
                  L = function (e) {
                    var n,
                      r = t
                        ? []
                        : g.getFrontPlugins({
                            version: e,
                            fn: _,
                            BU: m,
                            isDebug: t,
                            isUseNewAplusJs: p,
                          }),
                      o = p
                        ? [
                            [
                              'aplus',
                              e,
                              c.isMobile(a.navigator.userAgent)
                                ? 'aplus_wap.js'
                                : 'aplus_pc.js',
                            ].join('/'),
                          ]
                        : [['s', e, _].join('/')],
                      i = t
                        ? []
                        : g.getPlugins({
                            version: e,
                            fn: _,
                            BU: m,
                            isUseNewAplusJs: p,
                          }),
                      s = 0;
                    try {
                      var u = [].concat(r, o, i);
                      (n = d + '/??' + u.join(',') + '?v=20240125170405'),
                        (s = u.length);
                    } catch (l) {
                      (n = d + '/??' + o.join(',')), (s = o.length);
                    }
                    return {
                      size: s,
                      url: n,
                    };
                  },
                  k = A();
                k && !C && (C = k),
                  (e.aplus_cplugin_ver = '0.7.12'),
                  e.record ||
                    (e.record = function (e, t, n, r) {
                      (a.goldlog_queue || (a.goldlog_queue = [])).push({
                        action: 'goldlog.record',
                        arguments: [e, t, n, r],
                      });
                    });
                var V = o[_] || {},
                  U = V.stable_version || {},
                  x = V.grey_version || {},
                  M = V.dev_version || {},
                  B = p ? y : U.value || '8.5.9',
                  N = p ? w : x.value || B,
                  P = M.value || N,
                  T = L(P),
                  O = L(B),
                  R = L(N),
                  q = c.getCurrentNode(),
                  D = q ? q.getAttribute('cspx') : '',
                  z = {
                    LS_KEY_CLUSTER: 'APLUS_LS_KEY',
                    LS_KEY: u,
                    LS_PREFIX: i,
                    isDebug: t,
                    isLoadDevVersion: !1,
                    dev: T.url,
                    devSize: T.size,
                    stable: O.url,
                    stableSize: O.size,
                    grey: R.url,
                    greySize: R.size,
                    ratio: C,
                    nonce: D,
                    before: function (n, a) {
                      switch (n.type) {
                        case 'grey':
                          e.lver = P;
                          break;
                        case 'stable':
                          e.lver = B;
                          break;
                        case 'dev':
                          e.lver = P;
                      }
                      if (t) {
                        var r = {
                          version: e.lver,
                          fn: _,
                          BU: m,
                          isDebug: t,
                          isUseNewAplusJs: p,
                        };
                        c.loopAddScript(d, g.getFrontPlugins(r));
                      }
                      if ('function' == typeof a) {
                        var o = L(e.lver),
                          i = o.url;
                        a(i);
                      }
                    },
                  };
                t &&
                  (z.after = function () {
                    var t = 0,
                      n = function () {
                        if (!(t >= 100)) {
                          t++;
                          var r = e._$ || {};
                          a.setTimeout(function () {
                            'complete' === r.status
                              ? c.loopAddScript(
                                  d,
                                  g.getPlugins({
                                    version: e.lver,
                                    fn: _,
                                    BU: m,
                                    isUseNewAplusJs: p,
                                  })
                                )
                              : n();
                          }, 100);
                        }
                      };
                    n();
                  }),
                  l.load(z);
              },