require('../../@babel/runtime/helpers/Arrayincludes')
var e = require('../../@babel/runtime/helpers/toConsumableArray'),
  t = require('../../@babel/runtime/helpers/regeneratorRuntime'),
  n = require('../../@babel/runtime/helpers/slicedToArray'),
  a = require('../../@babel/runtime/helpers/defineProperty'),
  i = require('../../@babel/runtime/helpers/createForOfIteratorHelper')
require('../../@babel/runtime/helpers/Objectvalues')
var r = require('../../@babel/runtime/helpers/typeof')
require('../sub-vendors.js'),
  (wx.webpackJsonp = wx.webpackJsonp || []).push([
    [1486],
    {
      2686: function (e) {
        e.exports = (function () {
          var e,
            t,
            n = 1e3,
            a = 6e4,
            i = 36e5,
            o = 864e5,
            c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
            l = 31536e6,
            s = 2628e6,
            u =
              /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,
            d = { years: l, months: s, days: o, hours: i, minutes: a, seconds: n, milliseconds: 1, weeks: 6048e5 },
            m = function (e) {
              return e instanceof b
            },
            p = function (e, t, n) {
              return new b(e, n, t.$l)
            },
            f = function (e) {
              return t.p(e) + 's'
            },
            v = function (e) {
              return e < 0
            },
            h = function (e) {
              return v(e) ? Math.ceil(e) : Math.floor(e)
            },
            g = function (e) {
              return Math.abs(e)
            },
            y = function (e, t) {
              return e
                ? v(e)
                  ? { negative: !0, format: '' + g(e) + t }
                  : { negative: !1, format: '' + e + t }
                : { negative: !1, format: '' }
            },
            b = (function () {
              function v(e, t, n) {
                var a = this
                if (((this.$d = {}), (this.$l = n), void 0 === e && ((this.$ms = 0), this.parseFromMilliseconds()), t))
                  return p(e * d[f(t)], this)
                if ('number' == typeof e) return (this.$ms = e), this.parseFromMilliseconds(), this
                if ('object' == r(e))
                  return (
                    Object.keys(e).forEach(function (t) {
                      a.$d[f(t)] = e[t]
                    }),
                    this.calMilliseconds(),
                    this
                  )
                if ('string' == typeof e) {
                  var i = e.match(u)
                  if (i) {
                    var o = i.slice(2).map(function (e) {
                      return null != e ? Number(e) : 0
                    })
                    return (
                      (this.$d.years = o[0]),
                      (this.$d.months = o[1]),
                      (this.$d.weeks = o[2]),
                      (this.$d.days = o[3]),
                      (this.$d.hours = o[4]),
                      (this.$d.minutes = o[5]),
                      (this.$d.seconds = o[6]),
                      this.calMilliseconds(),
                      this
                    )
                  }
                }
                return this
              }
              var g = v.prototype
              return (
                (g.calMilliseconds = function () {
                  var e = this
                  this.$ms = Object.keys(this.$d).reduce(function (t, n) {
                    return t + (e.$d[n] || 0) * d[n]
                  }, 0)
                }),
                (g.parseFromMilliseconds = function () {
                  var e = this.$ms
                  ;(this.$d.years = h(e / l)),
                    (e %= l),
                    (this.$d.months = h(e / s)),
                    (e %= s),
                    (this.$d.days = h(e / o)),
                    (e %= o),
                    (this.$d.hours = h(e / i)),
                    (e %= i),
                    (this.$d.minutes = h(e / a)),
                    (e %= a),
                    (this.$d.seconds = h(e / n)),
                    (e %= n),
                    (this.$d.milliseconds = e)
                }),
                (g.toISOString = function () {
                  var e = y(this.$d.years, 'Y'),
                    t = y(this.$d.months, 'M'),
                    n = +this.$d.days || 0
                  this.$d.weeks && (n += 7 * this.$d.weeks)
                  var a = y(n, 'D'),
                    i = y(this.$d.hours, 'H'),
                    r = y(this.$d.minutes, 'M'),
                    o = this.$d.seconds || 0
                  this.$d.milliseconds && ((o += this.$d.milliseconds / 1e3), (o = Math.round(1e3 * o) / 1e3))
                  var c = y(o, 'S'),
                    l = e.negative || t.negative || a.negative || i.negative || r.negative || c.negative,
                    s = i.format || r.format || c.format ? 'T' : '',
                    u = (l ? '-' : '') + 'P' + e.format + t.format + a.format + s + i.format + r.format + c.format
                  return 'P' === u || '-P' === u ? 'P0D' : u
                }),
                (g.toJSON = function () {
                  return this.toISOString()
                }),
                (g.format = function (e) {
                  var n = e || 'YYYY-MM-DDTHH:mm:ss',
                    a = {
                      Y: this.$d.years,
                      YY: t.s(this.$d.years, 2, '0'),
                      YYYY: t.s(this.$d.years, 4, '0'),
                      M: this.$d.months,
                      MM: t.s(this.$d.months, 2, '0'),
                      D: this.$d.days,
                      DD: t.s(this.$d.days, 2, '0'),
                      H: this.$d.hours,
                      HH: t.s(this.$d.hours, 2, '0'),
                      m: this.$d.minutes,
                      mm: t.s(this.$d.minutes, 2, '0'),
                      s: this.$d.seconds,
                      ss: t.s(this.$d.seconds, 2, '0'),
                      SSS: t.s(this.$d.milliseconds, 3, '0'),
                    }
                  return n.replace(c, function (e, t) {
                    return t || String(a[e])
                  })
                }),
                (g.as = function (e) {
                  return this.$ms / d[f(e)]
                }),
                (g.get = function (e) {
                  var t = this.$ms,
                    n = f(e)
                  return 'milliseconds' === n ? (t %= 1e3) : (t = 'weeks' === n ? h(t / d[n]) : this.$d[n]), t || 0
                }),
                (g.add = function (e, t, n) {
                  var a
                  return (a = t ? e * d[f(t)] : m(e) ? e.$ms : p(e, this).$ms), p(this.$ms + a * (n ? -1 : 1), this)
                }),
                (g.subtract = function (e, t) {
                  return this.add(e, t, !0)
                }),
                (g.locale = function (e) {
                  var t = this.clone()
                  return (t.$l = e), t
                }),
                (g.clone = function () {
                  return p(this.$ms, this)
                }),
                (g.humanize = function (t) {
                  return e().add(this.$ms, 'ms').locale(this.$l).fromNow(!t)
                }),
                (g.valueOf = function () {
                  return this.asMilliseconds()
                }),
                (g.milliseconds = function () {
                  return this.get('milliseconds')
                }),
                (g.asMilliseconds = function () {
                  return this.as('milliseconds')
                }),
                (g.seconds = function () {
                  return this.get('seconds')
                }),
                (g.asSeconds = function () {
                  return this.as('seconds')
                }),
                (g.minutes = function () {
                  return this.get('minutes')
                }),
                (g.asMinutes = function () {
                  return this.as('minutes')
                }),
                (g.hours = function () {
                  return this.get('hours')
                }),
                (g.asHours = function () {
                  return this.as('hours')
                }),
                (g.days = function () {
                  return this.get('days')
                }),
                (g.asDays = function () {
                  return this.as('days')
                }),
                (g.weeks = function () {
                  return this.get('weeks')
                }),
                (g.asWeeks = function () {
                  return this.as('weeks')
                }),
                (g.months = function () {
                  return this.get('months')
                }),
                (g.asMonths = function () {
                  return this.as('months')
                }),
                (g.years = function () {
                  return this.get('years')
                }),
                (g.asYears = function () {
                  return this.as('years')
                }),
                v
              )
            })(),
            w = function (e, t, n) {
              return e
                .add(t.years() * n, 'y')
                .add(t.months() * n, 'M')
                .add(t.days() * n, 'd')
                .add(t.hours() * n, 'h')
                .add(t.minutes() * n, 'm')
                .add(t.seconds() * n, 's')
                .add(t.milliseconds() * n, 'ms')
            }
          return function (n, a, i) {
            ;(e = i),
              (t = i().$utils()),
              (i.duration = function (e, t) {
                var n = i.locale()
                return p(e, { $l: n }, t)
              }),
              (i.isDuration = m)
            var r = a.prototype.add,
              o = a.prototype.subtract
            ;(a.prototype.add = function (e, t) {
              return m(e) ? w(this, e, 1) : r.bind(this)(e, t)
            }),
              (a.prototype.subtract = function (e, t) {
                return m(e) ? w(this, e, -1) : o.bind(this)(e, t)
              })
          }
        })()
      },
      3415: function (o, c, l) {
        var s = l(4160),
          u = l(7456),
          d = l(758),
          m = l(9365),
          p = l(9371),
          f = l(5652),
          v = l(4576),
          h = l(2555),
          g = l(3526),
          y = l(2573),
          b = l.n(y),
          w = l(6981),
          N = l(8460),
          A = function (e) {
            return [
              {
                cssSelector: '.marketing-task',
                logkey: '/yanchu.marketing_task.'.concat(e),
                spmC: 'marketing',
                spmD: 'task',
                data: ['item_id', 'task_status', 'task_id'],
              },
              {
                cssSelector: '.bui-receive-drawer .log-share',
                logkey: '/yanchu.taskpop_share.'.concat(e),
                spmC: 'taskpop',
                spmD: 'share',
                data: ['item_id', 'task_id'],
              },
              {
                cssSelector: '.bui-receive-drawer .log-focus',
                logkey: '/yanchu.taskpop_follow.'.concat(e),
                spmC: 'taskpop',
                spmD: 'follow',
                data: ['item_id', 'baccount_id', 'task_id'],
              },
              {
                cssSelector: '.bui-receive-drawer .log-wantsee',
                logkey: '/yanchu.taskpop_favorite.'.concat(e),
                spmC: 'taskpop',
                spmD: 'favorite',
                data: ['item_id', 'task_id'],
              },
              {
                cssSelector: '.bui-receive-drawer .confirm-btn',
                logkey: '/yanchu.taskpop_confirm.'.concat(e),
                spmC: 'taskpop',
                spmD: 'confirm',
                data: ['item_id', 'task_id'],
              },
              {
                cssSelector: '.bui-recommend-feed .recommend-show-item',
                logkey: '/yanchu.wantrecommendlist_item.'.concat(e),
                spmC: 'wantrecommendlist',
                spmD: 'item_',
                data: ['item_id', 'project_id', 'city'],
              },
              {
                cssSelector: '.bui-recommend-feed .extra-btn',
                logkey: '/yanchu.wantrecommendlist_change.'.concat(e),
                spmC: 'wantrecommendlist',
                spmD: 'change',
                data: ['item_id', 'city'],
              },
              {
                cssSelector: '.bui-content-feed .feed-item',
                logkey: '/yanchu.feedrecommend_item.'.concat(e),
                spmC: 'feedrecommend',
                spmD: 'item_',
                data: ['item_id', 'city', 'card_id', 'card_type', 'project_id', 'publiser_id', 'discount_type'],
              },
              {
                cssSelector: '.bui-content-feed .show-container',
                logkey: '/yanchu.feedrecommend_itemproduct.'.concat(e),
                spmC: 'feedrecommend',
                spmD: 'itemproduct_',
                data: ['item_id', 'city', 'card_id', 'card_type', 'project_id', 'publiser_id', 'discount_type'],
              },
              {
                cssSelector: '.bui-show-detail-head .notice-container',
                logkey: '/yanchu.top_announcement.'.concat(e),
                spmC: 'top',
                spmD: 'announcement',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-detail-head .pic-container',
                logkey: '/yanchu.top_poster.'.concat(e),
                spmC: 'top',
                spmD: 'poster',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-detail-promotion .promotion-right',
                logkey: '/yanchu.preferentialexplain_enter.'.concat(e),
                spmC: 'preferentialexplain',
                spmD: 'enter',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-detail-promotion .atmosphere-hot',
                logkey: '/yanchu.center_annualpromotion.'.concat(e),
                spmC: 'center',
                spmD: 'annualpromotion',
                data: ['item_id', 'activity_id'],
              },
              {
                cssSelector: '.bui-dm-new-promotion-drawer .promotion-coupon-container .coupon-track',
                logkey: '/yanchu.center_getcoupon.'.concat(e),
                spmC: 'center',
                spmD: 'getcoupon_',
                data: ['item_id', 'coupon_id', 'coupon_status'],
              },
              {
                cssSelector: '.bui-dm-new-promotion-drawer .member-coupon-list .item-action-btn',
                logkey: '/yanchu.preferentialexplain_exchange.'.concat(e),
                spmC: 'preferentialexplain',
                spmD: 'exchange_',
                data: ['item_id', 'btn_status', 'vip_status', 'profitPoolId'],
              },
              {
                cssSelector: '.controls-highLight',
                logkey: '/yanchu.preferentialexplain_confirm.'.concat(e),
                spmC: 'preferentialexplain',
                spmD: 'confirm',
                data: ['item_id', 'vip_status', 'profitPoolId'],
              },
              {
                cssSelector: '.controls-normal',
                logkey: '/yanchu.preferentialexplain_cancel.'.concat(e),
                spmC: 'preferentialexplain',
                spmD: 'cancel',
                data: ['item_id', 'vip_status', 'profitPoolId'],
              },
              {
                cssSelector: '.bui-dm-new-promotion-drawer .member-tips-list .tip-bar-action',
                logkey: '/yanchu.preferentialexplain_benefit.'.concat(e),
                spmC: 'preferentialexplain',
                spmD: 'benefit_',
                data: ['item_id', 'vip_status', 'profitlabel'],
              },
              {
                cssSelector: '.bui-dm-new-promotion-drawer .member-more-btn',
                logkey: '/yanchu.preferentialexplain_moreitem.'.concat(e),
                spmC: 'preferentialexplain',
                spmD: 'moreitem',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-dm-new-promotion-drawer .close-button-container',
                logkey: '/yanchu.preferentialexplain_close.'.concat(e),
                spmC: 'preferentialexplain',
                spmD: 'close',
                data: ['item_id'],
              },
              {
                cssSelector: '.richtext-more .more-btn',
                logkey: '/yanchu.details_moreitem.'.concat(e),
                spmC: 'details',
                spmD: 'moreitem',
                data: ['item_id', 'type'],
              },
              {
                cssSelector: '.detail-page >>> .detail-nav-item',
                logkey: '/yanchu.anchor_tab.'.concat(e),
                spmC: 'anchor',
                spmD: 'tab',
                data: ['item_id', 'anchor'],
              },
              {
                cssSelector: '.bui-show-city-services-city-module',
                logkey: '/yanchu.center_touritem.'.concat(e),
                spmC: 'center',
                spmD: 'touritem_',
                data: ['item_id', 'city'],
              },
              {
                cssSelector: '.bui-show-city-services-addition',
                logkey: '/yanchu.center_wishcity.'.concat(e),
                spmC: 'center',
                spmD: 'wishcity',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-city-services-address',
                logkey: '/yanchu.center_venuenamebtn.'.concat(e),
                spmC: 'center',
                spmD: 'venuenamebtn',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-city-services-seat',
                logkey: '/yanchu.center_seatmap.'.concat(e),
                spmC: 'center',
                spmD: 'seatmap',
                data: ['item_id', 'desc'],
              },
              {
                cssSelector: '.bui-show-city-services-map',
                logkey: '/yanchu.address_item.'.concat(e),
                spmC: 'address',
                spmD: 'item',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-city-services-tab',
                logkey: '/yanchu.center_servicedivbtn.'.concat(e),
                spmC: 'center',
                spmD: 'servicedivbtn',
                data: ['item_id'],
              },
              {
                cssSelector: '.notice-title',
                logkey: '/yanchu.center_servicedivtab.'.concat(e),
                spmC: 'center',
                spmD: 'servicedivtab_',
                data: ['item_id'],
              },
              {
                cssSelector: '.notice-item-link',
                logkey: '/yanchu.center_newtheaudience.'.concat(e),
                spmC: 'center',
                spmD: 'newtheaudience',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-attention-card-brand',
                logkey: '/yanchu.brand_item.'.concat(e),
                spmC: 'brand',
                spmD: 'item',
                data: ['titlelabel', 'baccount_id'],
              },
              {
                cssSelector: '.bui-show-attention-card-artist',
                logkey: '/yanchu.artist_item.'.concat(e),
                spmC: 'artist',
                spmD: 'item',
                data: ['item_id', 'project_category', 'biz_type', 'biz_id'],
              },
              {
                cssSelector: '.bui-show-attention-card-follow-artist',
                logkey: '/yanchu.artist_follow.'.concat(e),
                spmC: 'artist',
                spmD: 'follow',
                data: ['item_id', 'project_category', 'biz_type', 'biz_id'],
              },
              {
                cssSelector: '.bui-show-performance-staff-module',
                logkey: '/yanchu.artist_artistdetail.'.concat(e),
                spmC: 'artist',
                spmD: 'artistdetail_',
                data: ['item_id', 'project_category', 'biz_type', 'biz_id'],
              },
              {
                cssSelector: '.bui-show-detail-notice',
                logkey: '/yanchu.center_ticketexplain.'.concat(e),
                spmC: 'center',
                spmD: 'ticketexplain',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-detail-notice-header',
                logkey: '/yanchu.center_ticketexplainall.'.concat(e),
                spmC: 'center',
                spmD: 'ticketexplainall',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-detail-rating-title',
                logkey: '/yanchu.score_description.'.concat(e),
                spmC: 'score',
                spmD: 'description',
                data: ['item_id', 'score'],
              },
              {
                cssSelector: '.bui-show-detail-rating-user',
                logkey: '/yanchu.score_evaluate.'.concat(e),
                spmC: 'score',
                spmD: 'evaluate_',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-detail-rating-forward',
                logkey: '/yanchu.score_more.'.concat(e),
                spmC: 'score',
                spmD: 'more',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-rank',
                logkey: '/yanchu.center_ranklist.'.concat(e),
                spmC: 'center',
                spmD: 'ranklist',
                data: ['pre_content_id'],
              },
              {
                cssSelector: '.show-question-body-item',
                logkey: '/yanchu.commonproblem_commonproblem.'.concat(e),
                spmC: 'commonproblem',
                spmD: 'commonproblem_',
                data: ['item_id'],
              },
              {
                cssSelector: '.show-question-header-right',
                logkey: '/yanchu.commonproblem_commonproblemmore.'.concat(e),
                spmC: 'commonproblem',
                spmD: 'commonproblemmore',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-hot-review-tag-btn',
                logkey: '/yanchu.evaluate_tag.'.concat(e),
                spmC: 'evaluate',
                spmD: 'tag_',
                data: ['item_id', 'titlelabel'],
              },
              {
                cssSelector: '.bui-comment-content-info',
                logkey: '/yanchu.evaluate_comment.'.concat(e),
                spmC: 'evaluate',
                spmD: 'comment_',
                data: ['item_id', 'evaluate_id', 'publiser_id'],
              },
              {
                cssSelector: '.bui-hot-review-bottom',
                logkey: '/yanchu.evaluate_list.'.concat(e),
                spmC: 'evaluate',
                spmD: 'list',
                data: ['item_id'],
              },
              {
                cssSelector: '.action-info-img-exp-like',
                logkey: '/yanchu.evaluate_likes.'.concat(e),
                spmC: 'evaluate',
                spmD: 'likes_',
                data: ['item_id', 'evaluate_id', 'publiser_id'],
              },
              {
                cssSelector: '.buy-button',
                logkey: '/yanchu.bottom_buy.'.concat(e),
                spmC: 'bottom',
                spmD: 'buy',
                data: ['item_id', 'buy_type', 'is_privilege'],
              },
              {
                cssSelector: '.buy-count-down-container .bui-show-buy-count-down .remind-btn-box',
                logkey: '/yanchu.remindme_addtocalendar.'.concat(e),
                spmC: 'remindme',
                spmD: 'addtocalendar',
                data: ['item_id'],
              },
              {
                cssSelector: '.group-buy-button',
                logkey: '/yanchu.bottom_djoingroupbtn.'.concat(e),
                spmC: 'bottom',
                spmD: 'djoingroupbtn',
                data: ['item_id', 'rule_id'],
              },
              {
                cssSelector: '.group-buy-tips',
                logkey: '/yanchu.bottom_djoingrouptipsenter.'.concat(e),
                spmC: 'bottom',
                spmD: 'djoingrouptipsenter',
                data: ['item_id', 'rule_id'],
              },
              {
                cssSelector: '.tips-close',
                logkey: '/yanchu.bottom_djoingrouptipsclose.'.concat(e),
                spmC: 'bottom',
                spmD: 'djoingrouptipsclose',
                data: ['item_id', 'rule_id'],
              },
              {
                cssSelector: '.bottom-share-button',
                logkey: '/yanchu.top_share.'.concat(e),
                spmC: 'top',
                spmD: 'share',
                data: ['item_id'],
              },
              {
                cssSelector: '.favor-guide-tips',
                logkey: '/yanchu.bottom_wanttips.'.concat(e),
                spmC: 'bottom',
                spmD: 'wanttips',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-real-name-modal-content-btn-form',
                logkey: '/yanchu.popup_fillbtn.'.concat(e),
                spmC: 'popup',
                spmD: 'fillbtn',
                data: ['item_id'],
              },
              {
                cssSelector: '.bui-show-real-name-modal-content-btn-close',
                logkey: '/yanchu.popup_knownbtn.'.concat(e),
                spmC: 'popup',
                spmD: 'knownbtn',
                data: ['item_id'],
              },
              {
                cssSelector: '.health-info-button',
                logkey: '/yanchu.popup_notice.'.concat(e),
                spmC: 'popup',
                spmD: 'notice',
                data: ['item_id'],
              },
              {
                cssSelector: '.show-detail-banner-item',
                logkey: '/yanchu.banner_item.'.concat(e),
                spmC: 'banner',
                spmD: 'item_',
                data: ['item_id', 'dispatch_id'],
              },
              {
                cssSelector: '.bui-show-performance-guide-item',
                logkey: '/yanchu.tips_item.'.concat(e),
                spmC: 'tips',
                spmD: 'item_',
                data: ['item_id', 'content_id', 'type'],
              },
              {
                cssSelector: '.bui-show-performance-guide-head-guide',
                logkey: '/yanchu.tips_square.'.concat(e),
                spmC: 'tips',
                spmD: 'square',
                data: ['item_id'],
              },
              {
                cssSelector: '.recommend-feed-item',
                logkey: '/yanchu.recommendlist_item.'.concat(e),
                spmC: 'recommendlist',
                spmD: 'item',
                data: ['item_id', 'project_id'],
              },
              {
                cssSelector: '.bui-group-coupon-list .coupon',
                logkey: '/yanchu.product_detail_groupcoupon.'.concat(e),
                spmC: 'groupcoupon',
                spmD: 'item',
                data: ['item_id', 'groupcoupon_item_id', 'groupcoupon_sku_id'],
              },
              {
                cssSelector: '.bui-group-coupon-list .fold-btn',
                logkey: '/yanchu.product_detail_groupcouponmore.'.concat(e),
                spmC: 'groupcoupon',
                spmD: 'more',
                data: ['item_id'],
              },
              {
                cssSelector: '.perform-table-td .extra-info',
                logkey: '/yanchu.preferentialdrawer_rule.'.concat(e),
                spmC: 'preferentialdrawer',
                spmD: 'rule',
                data: ['item_id', 'promotionType'],
              },
            ]
          },
          E = [
            {
              cssSelector: '.bui-recommend-feed .action-btn',
              logkey: '/yanchu.wantrecommendlist_favorite.exp',
              spmC: 'wantrecommendlist',
              spmD: 'favorite',
              data: ['item_id', 'project_id', 'city', 'type'],
            },
            {
              cssSelector: '.want-see-container .want-button',
              logkey: '/yanchu.top_favorite.exp',
              spmC: 'top',
              spmD: 'favorite',
              data: ['item_id', 'type'],
            },
            {
              cssSelector: '.bui-show-attention-card-follow-brand',
              logkey: '/yanchu.brand_followbtn.exp',
              spmC: 'brand',
              spmD: 'followbtn',
              data: ['titlelabel', 'type', 'baccount_id'],
            },
            {
              cssSelector: '.bui-show-want-see-btn',
              logkey: '/yanchu.want_favourite.exp',
              spmC: 'want',
              spmD: 'favorite',
              data: ['item_id', 'type'],
            },
          ],
          k = [
            {
              cssSelector: '.bui-recommend-feed .action-btn',
              logkey: '/yanchu.wantrecommendlist_favorite.clk',
              spmC: 'wantrecommendlist',
              spmD: 'favorite',
              data: ['item_id', 'project_id', 'city', ['type', ['clk_type']]],
            },
            {
              cssSelector: '.want-see-container .want-button',
              logkey: '/yanchu.top_favorite.clk',
              spmC: 'top',
              spmD: 'favorite',
              data: ['item_id', ['type', ['clk_type']]],
            },
            {
              cssSelector: '.bui-show-attention-card-follow-brand',
              logkey: '/yanchu.brand_followbtn.clk',
              spmC: 'brand',
              spmD: 'followbtn',
              data: ['titlelabel', ['type', ['clk_type']], 'baccount_id'],
            },
            {
              cssSelector: '.bui-show-want-see-btn',
              logkey: '/yanchu.want_favourite.clk',
              spmC: 'want',
              spmD: 'favorite',
              data: ['item_id', ['type', ['clk_type']]],
            },
          ],
          S = { exp: [].concat((0, N.A)(A('exp')), (0, N.A)(E)), clk: [].concat((0, N.A)(A('clk')), (0, N.A)(k)) },
          C = l(4269),
          I = l(6005),
          x = l(7867),
          _ = l(4911),
          D = l(334),
          T = function (e) {
            return (
              (null == e ? void 0 : e.version) === x.bV.SCENERY &&
              (_.A.navTo(
                ''.concat(D.A.h5_shows_url, 'scenery.html'),
                { itemId: e.itemId, id: e.venueId },
                { redirect: !0 },
              ),
              !0)
            )
          },
          j = l(5866),
          O = l(3150),
          P = l(8878),
          R = l.n(P),
          L = 'STASH_ROOT_CN__DETAIL',
          M = 'STASH_ROOT_CN__DETAIL_LIST',
          F = function (e) {
            var t = e.key
            b().removeStorage({ key: t, fail: function (e) {} })
          },
          H = function (e) {
            return new Promise(function (t, n) {
              var a = '.'.concat(e, ' .h5-img')
              try {
                b()
                  .createSelectorQuery()
                  .selectAll(a)
                  .boundingClientRect()
                  .exec(function (e) {
                    var n = null == e ? void 0 : e[0]
                    t(n)
                  })
              } catch (e) {
                n(e)
              }
            })
          },
          B = (function (e) {
            return (
              (e.ERROR_ID = '亲，商品ID无效'),
              (e.DEFAULT = '加载失败，请点击重试'),
              (e.INVALID_PARAM = '系统开小差了，请稍后重试哦'),
              (e.INTERNAL_ERROR = '系统开小差了，请稍后重试哦'),
              (e.ITEM_NOT_FOUND = '该商品已不存在'),
              (e.FAIL_SYS_TRAFFIC_LIMIT = '加载失败，请点击重试'),
              e
            )
          })(B || {}),
          V = 'showDetail'
        function z(e) {
          return e && e.length > 7
        }
        var U = (0, j.zD)(
            ''.concat(V, '/fetchShowDetail'),
            (function () {
              var e = (0, h.A)(
                (0, f.A)().m(function e(t, n) {
                  var a, i, r, o, c
                  return (0, f.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          if (((a = n.rejectWithValue), z((i = t.itemId)))) {
                            e.n = 1
                            break
                          }
                          return (
                            (0, O.Ay)('error', 'checkItemId error! itemid: '.concat(i)),
                            e.a(2, a({ code: 'ERROR_ID', message: B.ERROR_ID }))
                          )
                        case 1:
                          return (e.n = 2), (0, x.TM)({ itemId: i })
                        case 2:
                          if (((r = e.v), (o = r.error), (c = r.data), !o)) {
                            e.n = 3
                            break
                          }
                          return e.a(
                            2,
                            a({
                              code: (null == o ? void 0 : o.code) || 'DEFAULT',
                              message: B[null == o ? void 0 : o.code] ? B[o.code] : B.DEFAULT,
                            }),
                          )
                        case 3:
                          if (!T(c)) {
                            e.n = 4
                            break
                          }
                          return e.a(2)
                        case 4:
                          return e.a(2, c)
                      }
                  }, e)
                }),
              )
              return function (t, n) {
                return e.apply(this, arguments)
              }
            })(),
          ),
          W = (0, j.Z0)({
            name: ''.concat(V, '/main'),
            initialState: {
              pageStatus: 'idle',
              refreshCounter: 0,
              itemId: void 0,
              firstPrint: !0,
              canBackRefresh: !1,
              distributionId: '',
              options: void 0,
              moduleSort: [],
            },
            reducers: {
              setPageStatus: function (e, t) {
                e.pageStatus = t.payload
              },
              refreshPage: function (e) {
                e.refreshCounter += 1
              },
              setItemId: function (e, t) {
                e.itemId = t.payload
              },
              setDistributionId: function (e, t) {
                e.distributionId = t.payload
              },
              setOptions: function (e, t) {
                e.options = t.payload
              },
              setCanBackRefresh: function (e, t) {
                e.canBackRefresh = t.payload
              },
            },
            extraReducers: function (e) {
              e.addCase(U.pending, function (e) {
                e.pageStatus = 'loading'
              }),
                e.addCase(U.fulfilled, function (e, t) {
                  if (t.payload) {
                    var n
                    ;(e.pageStatus = 'success'), (e.firstPrint = !1), (e.canBackRefresh = !0)
                    var a = Object.keys(t.payload)
                    null == a ||
                      a.forEach(function (n) {
                        e[n] = t.payload[n]
                      }),
                      (function (e) {
                        var t = e.itemId,
                          n = e.hasCityTour,
                          a = 'subPackages/detail/item',
                          i = (0, y.getCurrentPages)().find(function (e) {
                            return (null == e ? void 0 : e.__route__) === a
                          })
                        ;(null == i ? void 0 : i.route) === a &&
                          setTimeout(
                            (0, h.A)(
                              (0, f.A)().m(function e() {
                                var a, r, o, c, l, s, u, d
                                return (0, f.A)().w(function (e) {
                                  for (;;)
                                    switch (e.n) {
                                      case 0:
                                        return (
                                          (r =
                                            (null == i ||
                                            null === (a = i.__data__) ||
                                            void 0 === a ||
                                            null === (a = a.root) ||
                                            void 0 === a
                                              ? void 0
                                              : a.cn) || []),
                                          (o = 'richtext-content'),
                                          (e.n = 1),
                                          H(o)
                                        )
                                      case 1:
                                        ;(c = e.v),
                                          (l = (null == c ? void 0 : c[0]) || {}),
                                          (r = (0, w.rI)(r, {
                                            scrollViewX: [],
                                            scrollIntoView: {
                                              'bui-show-city-services-city-container':
                                                'bui-show-city-services-city-module-',
                                            },
                                            popup: [
                                              'bui-show-notice-modal',
                                              'bui-show-real-name-modal',
                                              'buy-count-down-container',
                                              'favor-guide-tips',
                                              'group-buy-tips',
                                              'bui-modal',
                                            ],
                                            firstImageToBackground: [{ containerClassName: o, imageInfo: l }],
                                          })).length &&
                                            ((s = {
                                              version: D.A.appVersion,
                                              stashRootCNList: R().compress(JSON.stringify(r)),
                                              itemId: t,
                                              hasCityTour: n,
                                            }),
                                            (u = b().getStorageSync(M) || []),
                                            (d = u.findIndex(function (e) {
                                              return e === t
                                            })) > -1 && (u.splice(d, 1), F({ key: ''.concat(L, '_').concat(t) })),
                                            150 === u.length && (u.shift(), F({ key: ''.concat(L, '_').concat(u[0]) })),
                                            u.push(t),
                                            b().setStorage({ key: M, data: u, fail: function (e) {} }),
                                            b().setStorage({
                                              key: ''.concat(L, '_').concat(t),
                                              data: s,
                                              fail: function (e) {},
                                            }))
                                      case 2:
                                        return e.a(2)
                                    }
                                }, e)
                              }),
                            ),
                            1500,
                          )
                      })({
                        itemId: e.itemId,
                        hasCityTour: !(
                          null == e ||
                          null === (n = e.cityServiceInfo) ||
                          void 0 === n ||
                          null === (n = n.projectList) ||
                          void 0 === n ||
                          !n.length
                        ),
                      })
                  }
                }),
                e.addCase(U.rejected, function (e, t) {
                  ;(e.pageStatus = 'failed'), t.payload && (e.pageError = t.payload)
                })
            },
          }),
          q = W.actions,
          $ = q.setOptions,
          J = q.setDistributionId,
          G = (q.setPageStatus, q.refreshPage),
          Y = q.setItemId,
          X = q.setCanBackRefresh,
          Z = W.reducer,
          Q = function (e) {
            return e.showDetail.main
          },
          K = function (e) {
            var t
            return null === (t = e.showDetail.main) || void 0 === t ? void 0 : t.groupBuyInfo
          },
          ee = function (e) {
            var t
            return null === (t = e.showDetail.main) || void 0 === t ? void 0 : t.shareInfo
          },
          te = function (e) {
            return e.showDetail.main.itemId
          },
          ne = function (e) {
            return e.showDetail.main.popupTypeInfo
          },
          ae = function (e) {
            return e.showDetail.main.isConcertType
          },
          ie = l(4107),
          re = l(8838),
          oe = l(9044),
          ce = (function (e) {
            return (e.REAL_NAME = 'REAL_NAME'), (e.HEALTH = 'HEALTH'), (e.PRIVILEGE = 'PRIVILEGE'), e
          })({}),
          le =
            '3HyIwynaygIur04RC84_uu_aWfcyFSQWeFqpJBDa0Fk,2i_x0M5DSCsvocvjYp87AX1Gdvf_qWh6Cj7GRFxXQIY,W07AfEJk3ljMedId8-m3oEvb-0lQzgSlZ3G9p5bqlVQ',
          se = '2i_x0M5DSCsvocvjYp87AX1Gdvf_qWh6Cj7GRFxXQIY,W07AfEJk3ljMedId8-m3oEvb-0lQzgSlZ3G9p5bqlVQ',
          ue = 'product_detail',
          de = 'DAMAI_LOC_HEALTH_CONFIRM',
          me = l(4694),
          pe = l(2333),
          fe = (l(4315), l(3816)),
          ve = me.Ay.isWX,
          he = 'showDetail',
          ge = (0, j.zD)(
            ''.concat(he, '/getSubscribeInfo'),
            (function () {
              var e = (0, h.A)(
                (0, f.A)().m(function e(t, n) {
                  var a, i, r, o, c, l, s, u, d, m, p
                  return (0, f.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          if (((a = n.rejectWithValue), ve)) {
                            e.n = 1
                            break
                          }
                          return e.a(2)
                        case 1:
                          return (
                            (r = (i = t || {}).itemId),
                            (o = i.status),
                            (c = o === oe.SH.SALE_PRE_ABOUT_TO_START ? le : se),
                            (l = { templateIds: c, targetId: r }),
                            (e.n = 2),
                            re.A.templateQuery(l)
                          )
                        case 2:
                          if (((s = e.v), (u = (0, v.A)(s, 2)), (d = u[0]), (m = u[1]), !d)) {
                            e.n = 3
                            break
                          }
                          return e.a(2, a(d))
                        case 3:
                          return (
                            (p = !(
                              null == m ||
                              !m.find(function (e) {
                                return 1 === e.state
                              })
                            )),
                            e.a(2, { templateIds: c, hasRemind: p })
                          )
                      }
                  }, e)
                }),
              )
              return function (t, n) {
                return e.apply(this, arguments)
              }
            })(),
          ),
          ye = (0, j.zD)(
            ''.concat(he, '/showSubscribe'),
            (function () {
              var e = (0, h.A)(
                (0, f.A)().m(function e(t, n) {
                  var a, i, r, o, c, l, s, u, d, m
                  return (0, f.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          if (((i = n.getState), (r = n.dispatch), (o = t.itemId), !(c = t.fromRemind))) {
                            e.n = 2
                            break
                          }
                          return (
                            (e.n = 1),
                            new Promise(function (e) {
                              wx.getSetting({
                                withSubscriptions: !0,
                                success: function (t) {
                                  var n, a, i, r
                                  if (
                                    null != t &&
                                    null !== (n = t.subscriptionsSetting) &&
                                    void 0 !== n &&
                                    n.mainSwitch
                                  )
                                    if (
                                      null != t &&
                                      null !== (a = t.subscriptionsSetting) &&
                                      void 0 !== a &&
                                      a.itemSettings &&
                                      (null ===
                                        (i = Object.keys(
                                          null == t || null === (r = t.subscriptionsSetting) || void 0 === r
                                            ? void 0
                                            : r.itemSettings,
                                        )) || void 0 === i
                                        ? void 0
                                        : i.length) >= 0
                                    ) {
                                      var o = t.subscriptionsSetting.itemSettings,
                                        c = Object.values(o).some(function (e) {
                                          return 'accept' === e
                                        })
                                      e(c)
                                    } else e(!0)
                                  else e(!1)
                                },
                                fail: function (t) {
                                  e(!1)
                                },
                              })
                            })
                          )
                        case 1:
                          if (e.v) {
                            e.n = 2
                            break
                          }
                          return (
                            b().showModal({
                              title: '未开启消息权限',
                              content: '你未开启订阅消息权限，请点击小程序右上角，在【设置】-【订阅消息】中开启。',
                              confirmText: '我知道了',
                              showCancel: !1,
                            }),
                            e.a(2, { success: !1 })
                          )
                        case 2:
                          return (
                            (l = i()),
                            (s =
                              (null == l || null === (a = l.showDetail) || void 0 === a ? void 0 : a.wantSubscribe) ||
                              {}),
                            (u = s.templateIds),
                            (d = s.wantBaseInfo),
                            'true' === (null == d ? void 0 : d.subFlag) ||
                              !1 ||
                              c ||
                              (r(Ie(!0)),
                              setTimeout(function () {
                                var e
                                ;(
                                  (null === (e = i()) || void 0 === e || null === (e = e.showDetail) || void 0 === e
                                    ? void 0
                                    : e.wantSubscribe) || {}
                                ).canShowPushGuideFlag && r(Se(!0))
                              }, 1e3)),
                            (m = (null == u ? void 0 : u.split(',')) || []),
                            e.a(
                              2,
                              new Promise(function (e) {
                                b().requestSubscribeMessage({
                                  entityIds: [],
                                  tmplIds: m,
                                  success: (function () {
                                    var t = (0, h.A)(
                                      (0, f.A)().m(function t(n) {
                                        var a, i, c
                                        return (0, f.A)().w(function (t) {
                                          for (;;)
                                            switch (t.n) {
                                              case 0:
                                                if (
                                                  ((a = (m || []).filter(function (e) {
                                                    return 'accept' === n[e]
                                                  })),
                                                  r(Ie(!1)),
                                                  !((null == a ? void 0 : a.length) > 0))
                                                ) {
                                                  t.n = 2
                                                  break
                                                }
                                                return (
                                                  (i = { templateIds: u, targetId: o, operateType: '1' }),
                                                  (t.n = 1),
                                                  r(be(i))
                                                )
                                              case 1:
                                                null != (c = t.v) && c.payload && r(Ce(!0)),
                                                  r(Se(!1)),
                                                  e({ success: null == c ? void 0 : c.payload }),
                                                  (t.n = 3)
                                                break
                                              case 2:
                                                r(Se(!1)), e({ success: !1 })
                                              case 3:
                                                return t.a(2)
                                            }
                                        }, t)
                                      }),
                                    )
                                    return function (e) {
                                      return t.apply(this, arguments)
                                    }
                                  })(),
                                  fail: function () {
                                    r(Ie(!1)), r(Se(!1)), e({ success: !1 })
                                  },
                                })
                              }),
                            )
                          )
                      }
                  }, e)
                }),
              )
              return function (t, n) {
                return e.apply(this, arguments)
              }
            })(),
          ),
          be = (0, j.zD)(
            ''.concat(he, '/subscribe'),
            (function () {
              var e = (0, h.A)(
                (0, f.A)().m(function e(t, n) {
                  var a, i, r, o
                  return (0, f.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          return (e.n = 1), re.A.templateSubscribe(t)
                        case 1:
                          if (((a = e.v), (i = (0, v.A)(a, 2)), (r = i[0]), (o = i[1]), !r)) {
                            e.n = 2
                            break
                          }
                          return e.a(2, n.rejectWithValue(r))
                        case 2:
                          return e.a(2, null == o ? void 0 : o.subscribeSuccess)
                      }
                  }, e)
                }),
              )
              return function (t, n) {
                return e.apply(this, arguments)
              }
            })(),
          ),
          we = (0, j.zD)(
            ''.concat(he, '/updateWant'),
            (function () {
              var e = (0, h.A)(
                (0, f.A)().m(function e(t, n) {
                  var a, i, r, o, c, l, s, u, d, m, p, g, y, b
                  return (0, f.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          return (
                            (i = n.rejectWithValue),
                            (r = n.getState),
                            (c = (o = t || {}).isWantSee),
                            (l = o.itemId),
                            (s = r()),
                            (u =
                              (null == s ||
                              null === (a = s.showDetail) ||
                              void 0 === a ||
                              null === (a = a.main) ||
                              void 0 === a
                                ? void 0
                                : a.options) || {}),
                            (d = u.encryptUserId),
                            (m = u.ruleId),
                            (p = u.activeType),
                            (g = {
                              operateType: c ? 1 : 0,
                              targetId: l,
                              group: 'PROJECT_GROUP',
                              targetType: 'ITEM',
                              pageName: 'DM_WX_ITEM_DETAIL',
                              extras: JSON.stringify({ encryptUserId: d, ruleId: m, type: p }),
                            }),
                            (y = (function () {
                              var e = (0, h.A)(
                                (0, f.A)().m(function e() {
                                  var t, n, a, r, o, c
                                  return (0, f.A)().w(function (e) {
                                    for (;;)
                                      switch (e.n) {
                                        case 0:
                                          return (e.n = 1), re.A.wantUpdate(g)
                                        case 1:
                                          if (((t = e.v), (n = (0, v.A)(t, 2)), (a = n[0]), (r = n[1]), !a)) {
                                            e.n = 2
                                            break
                                          }
                                          return e.a(2, i(a))
                                        case 2:
                                          return (
                                            (o = r.success),
                                            (c = r.index),
                                            e.a(2, { success: 'true' === String(o), index: c })
                                          )
                                      }
                                  }, e)
                                }),
                              )
                              return function () {
                                return e.apply(this, arguments)
                              }
                            })()),
                            (e.n = 1),
                            fe.A.isLogin()
                          )
                        case 1:
                          if (e.v) {
                            e.n = 5
                            break
                          }
                          return (e.n = 2), fe.A.login()
                        case 2:
                          if (((b = e.v), !b.success)) {
                            e.n = 4
                            break
                          }
                          return (e.n = 3), y()
                        case 3:
                          return e.a(2, e.v)
                        case 4:
                          e.n = 7
                          break
                        case 5:
                          return (e.n = 6), y()
                        case 6:
                          return e.a(2, e.v)
                        case 7:
                          return e.a(2)
                      }
                  }, e)
                }),
              )
              return function (t, n) {
                return e.apply(this, arguments)
              }
            })(),
          ),
          Ne = (0, j.zD)(
            ''.concat(he, '/onRemind'),
            (function () {
              var e = (0, h.A)(
                (0, f.A)().m(function e(t, n) {
                  var a, i, r, o, c, l, s, u, d, m, p, v, h, g, y
                  return (0, f.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          if (
                            ((i = n.getState),
                            (r = n.dispatch),
                            (o = i()),
                            (c =
                              (null == o || null === (a = o.showDetail) || void 0 === a ? void 0 : a.wantSubscribe) ||
                              {}),
                            (l = c.hasRemind),
                            (s = c.canSubscribe),
                            (u = c.wantBaseInfo),
                            (d = c.templateIds),
                            !l)
                          ) {
                            e.n = 1
                            break
                          }
                          return e.a(2)
                        case 1:
                          if (((m = {}), !(ve && s && d))) {
                            e.n = 4
                            break
                          }
                          return (e.n = 2), r(ye((0, ie.A)((0, ie.A)({}, t), {}, { fromRemind: !0 })))
                        case 2:
                          if (
                            ((v = e.v),
                            r(Se(!1)),
                            (h = null == v || null === (p = v.payload) || void 0 === p ? void 0 : p.success),
                            (m = { success: h }),
                            (g = 'true' === (null == u ? void 0 : u.subFlag) || !1),
                            !h || g)
                          ) {
                            e.n = 4
                            break
                          }
                          return (e.n = 3), r(we({ isWantSee: !0, itemId: t.itemId }))
                        case 3:
                          ;(y = e.v), (m = (0, ie.A)({ subSuc: h }, null == y ? void 0 : y.payload))
                        case 4:
                          return e.a(2, (0, ie.A)({}, m))
                      }
                  }, e)
                }),
              )
              return function (t, n) {
                return e.apply(this, arguments)
              }
            })(),
          ),
          Ae = (0, j.zD)(
            ''.concat(he, '/onWantSee'),
            (function () {
              var e = (0, h.A)(
                (0, f.A)().m(function e(t, n) {
                  var a, i, r, o, c, l, s, u, d, m
                  return (0, f.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          if (
                            ((i = n.getState),
                            (r = n.dispatch),
                            (o = i()),
                            (c =
                              (null == o || null === (a = o.showDetail) || void 0 === a ? void 0 : a.wantSubscribe) ||
                              {}),
                            (l = c.hasRemind),
                            (s = c.canSubscribe),
                            (u = c.templateIds),
                            !(ve && u && s && !l && t.isWantSee))
                          ) {
                            e.n = 1
                            break
                          }
                          return (e.n = 1), r(ye(t))
                        case 1:
                          return (e.n = 2), r(we(t))
                        case 2:
                          return (
                            (m = e.v), (d = null == m ? void 0 : m.payload), e.a(2, (0, ie.A)({ success: void 0 }, d))
                          )
                      }
                  }, e)
                }),
              )
              return function (t, n) {
                return e.apply(this, arguments)
              }
            })(),
          ),
          Ee = (0, j.Z0)({
            name: ''.concat(he, '/wantSubscribe'),
            initialState: { templateIds: '', hasRemind: !1, showPushGuide: !1, canShowPushGuideFlag: !1, hasInit: !1 },
            reducers: {
              setShowPushGuide: function (e, t) {
                e.showPushGuide = t.payload
              },
              setHasRemind: function (e, t) {
                e.hasRemind = t.payload
              },
              setCanShowPushGuideFlag: function (e, t) {
                e.canShowPushGuideFlag = t.payload
              },
              pureUpdateWantSee: function (e, t) {
                var n = e || {},
                  a = n.wantBaseInfo,
                  i = n.itemId,
                  r = t.payload,
                  o = r.index,
                  c = r.isWantSee,
                  l = r.itemId,
                  s = a || {},
                  u = s.wantNum,
                  d = void 0 === u ? 0 : u,
                  m = s.subFlagIndex,
                  p = void 0 === m ? 0 : m
                i === l &&
                  (e.wantBaseInfo = (0, ie.A)(
                    (0, ie.A)({}, a),
                    {},
                    { wantNum: c ? d + 1 : d - 1, subFlag: c ? 'true' : 'false', subFlagIndex: o || p },
                  ))
              },
            },
            extraReducers: function (e) {
              e.addCase(U.pending, function (e) {
                e.hasInit = !1
              }),
                e.addCase(U.fulfilled, function (e, t) {
                  if (!t.payload) return (0, ie.A)((0, ie.A)({}, e), {}, { hasInit: !1 })
                  var n = t.payload.wantInfo
                  return n ? (0, ie.A)((0, ie.A)((0, ie.A)({}, e), n), {}, { hasInit: !0 }) : void 0
                }),
                e.addCase(U.rejected, function (e) {
                  e.hasInit = !1
                }),
                e.addCase(ge.fulfilled, function (e, t) {
                  var n = t.payload,
                    a = n.templateIds,
                    i = n.hasRemind
                  ;(e.templateIds = a), (e.hasRemind = i)
                }),
                e.addCase(ge.rejected, function (e) {
                  e.templateIds = ''
                }),
                e.addCase(we.pending, function (e) {
                  e.wantLoading = !0
                }),
                e.addCase(Ae.fulfilled, function (e, t) {
                  e.wantLoading = !1
                  var n = t.payload,
                    a = n.index
                  if (n.success) {
                    var i = e.wantBaseInfo,
                      r = i || {},
                      o = r.subFlag,
                      c = r.wantNum,
                      l = void 0 === c ? 0 : c,
                      s = r.subFlagIndex,
                      u = void 0 === s ? 0 : s,
                      d = 'true' === o
                    ;(e.wantBaseInfo = (0, ie.A)(
                      (0, ie.A)({}, i),
                      {},
                      { wantNum: d ? l - 1 : l - 0 + 1, subFlag: d ? 'false' : 'true', subFlagIndex: a || u },
                    )),
                      (0, pe.o)({ message: d ? '已取消想看' : '已添加到[想看列表]' })
                  }
                }),
                e.addCase(we.rejected, function (e) {
                  e.wantLoading = !1
                }),
                e.addCase(Ne.fulfilled, function (e, t) {
                  var n = ((null == t ? void 0 : t.payload) || {}).subSuc
                  if (n) {
                    ;(e.hasRemind = n), (0, pe.o)({ message: '已添加提醒' })
                    var a = e.wantBaseInfo,
                      i = a || {},
                      r = i.subFlag,
                      o = i.wantNum,
                      c = void 0 === o ? 0 : o,
                      l = 'true' === r
                    l ||
                      (e.wantBaseInfo = (0, ie.A)(
                        (0, ie.A)({}, a),
                        {},
                        { wantNum: l ? c - 1 : c - 0 + 1, subFlag: l ? 'false' : 'true' },
                      ))
                  }
                })
            },
          }),
          ke = Ee.actions,
          Se = ke.setShowPushGuide,
          Ce = ke.setHasRemind,
          Ie = ke.setCanShowPushGuideFlag,
          xe = ke.pureUpdateWantSee,
          _e = Ee.reducer,
          De = function (e) {
            return e.showDetail.wantSubscribe
          },
          Te = function (e) {
            return e.showDetail.wantSubscribe.hasInit
          },
          je = function (e) {
            var t = e.showDetail.wantSubscribe.wantBaseInfo
            return 'true' === (null == t ? void 0 : t.subFlag)
          },
          Oe = function (e) {
            return e.showDetail.wantSubscribe.wantBaseInfo
          },
          Pe = l(8641),
          Re = l(1942),
          Le = l(1209),
          Me = l(9933),
          Fe = l(6454),
          He = l(872),
          Be = l(6160),
          Ve = l(9836),
          ze = l(5643),
          Ue = (function (e) {
            return (e.UNDONE = 'UNDONE'), (e.DONE_ISSUED = 'DONE_ISSUED'), e
          })(Ue || {}),
          We = (function (e) {
            return (e.NOT_WIN = 'NOT_WIN'), (e.WIN = 'WIN'), e
          })(We || {}),
          qe = (function (e) {
            return (e.Focus = '3'), (e.Share = '100'), e
          })(qe || {}),
          $e = (function (e) {
            return (e.FocusVenue = '3'), (e.FocusBrand = '4'), (e.WantSee = '7'), e
          })($e || {}),
          Je = (function (e) {
            return (
              (e.Share = 'share'),
              (e.FocusVenue = 'focusVenue'),
              (e.FocusBrand = 'focusBrand'),
              (e.WantSee = 'wantSee'),
              e
            )
          })(Je || {}),
          Ge = (function (e) {
            return (e.FollowProject = 'SPECIAL_PROJECT'), (e.FollowVenue = 'VENUE'), (e.FollowBrand = 'BRAND'), e
          })(Ge || {}),
          Ye = Object.defineProperty,
          Xe = Object.defineProperties,
          Ze = Object.getOwnPropertyDescriptors,
          Qe = Object.getOwnPropertySymbols,
          Ke = Object.prototype.hasOwnProperty,
          et = Object.prototype.propertyIsEnumerable,
          tt = function (e, t, n) {
            return t in e ? Ye(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          nt = function (e, t) {
            var n = (e || {}).taskDetails,
              r = (void 0 === n ? [] : n)[0] || {},
              o = r.userTaskConditionList,
              c = void 0 === o ? [] : o
            r.userTaskConditionList = c.map(function (e) {
              var t = (function (e) {
                  if (!e) return {}
                  var t = e.split(';')
                  return { title: null == t ? void 0 : t[0], subtitle: null == t ? void 0 : t[1] }
                })(null == e ? void 0 : e.displayText),
                n = t.title,
                a = t.subtitle,
                r = (function (e) {
                  var t =
                      Number((null == e ? void 0 : e.hasFinishedCount) || 0) >=
                      Number((null == e ? void 0 : e.totalCount) || 0),
                    n = 'true' === (null == e ? void 0 : e.followStatus)
                  if ((null == e ? void 0 : e.conditionType) === qe.Share)
                    return { isDone: t, isFollow: n, btnText: t ? '已完成' : '去分享', action: Je.Share }
                  if ((null == e ? void 0 : e.conditionType) === qe.Focus) {
                    if ((null == e ? void 0 : e.conditionSubType) === $e.FocusVenue)
                      return {
                        isDone: t,
                        isFollow: n,
                        needRequestCompleteTask: !t && n,
                        btnText: t ? '已完成' : '关注',
                        action: Je.FocusVenue,
                      }
                    if ((null == e ? void 0 : e.conditionSubType) === $e.FocusBrand)
                      return {
                        isDone: t,
                        isFollow: n,
                        needRequestCompleteTask: !t && n,
                        btnText: t ? '已完成' : '关注',
                        action: Je.FocusBrand,
                      }
                    if ((null == e ? void 0 : e.conditionSubType) === $e.WantSee)
                      return {
                        isDone: t,
                        isFollow: n,
                        needRequestCompleteTask: !t && n,
                        btnText: t ? '已完成' : '想看',
                        action: Je.WantSee,
                      }
                  }
                  return {}
                })(e),
                o = r.isDone,
                c = r.isFollow,
                l = r.needRequestCompleteTask,
                s = r.btnText,
                u = r.action
              return (function (e, t) {
                return Xe(e, Ze(t))
              })(
                (function (e, t) {
                  for (var n in t || (t = {})) Ke.call(t, n) && tt(e, n, t[n])
                  if (Qe) {
                    var a,
                      r = i(Qe(t))
                    try {
                      for (r.s(); !(a = r.n()).done; ) {
                        n = a.value
                        et.call(t, n) && tt(e, n, t[n])
                      }
                    } catch (e) {
                      r.e(e)
                    } finally {
                      r.f()
                    }
                  }
                  return e
                })({}, e),
                {
                  _title: n || '',
                  _subtitle: a || '',
                  _isDone: o || '',
                  _isFollow: c || '',
                  _btnText: s || '',
                  _btnAction: u || '',
                  _needRequestCompleteTask: l || '',
                },
              )
            })
            var l = []
            return (
              t &&
                (l = ((null == r ? void 0 : r.userTaskConditionList) || [])
                  .filter(function (e) {
                    return e._needRequestCompleteTask
                  })
                  .map(function (e) {
                    var n = a(
                      a(a({}, Je.FocusVenue, Ge.FollowVenue), Je.FocusBrand, Ge.FollowBrand),
                      Je.WantSee,
                      Ge.FollowProject,
                    )
                    return t({
                      taskId: null == r ? void 0 : r.taskId,
                      targetId: null == e ? void 0 : e.conditionTarget,
                      targetType: n[e._btnAction],
                    })
                  })),
              { returnValue: e, completeTaskReqList: l }
            )
          },
          at = function (e, t, n) {
            return new Promise(function (a, i) {
              var r = function (e) {
                  try {
                    c(n.next(e))
                  } catch (e) {
                    i(e)
                  }
                },
                o = function (e) {
                  try {
                    c(n.throw(e))
                  } catch (e) {
                    i(e)
                  }
                },
                c = function (e) {
                  return e.done ? a(e.value) : Promise.resolve(e.value).then(r, o)
                }
              c((n = n.apply(e, t)).next())
            })
          },
          it = l(3438),
          rt = l(6924),
          ot = l(4545),
          ct = l(2012),
          lt = l(3266),
          st = (0, lt.A)(
            '<path d="M72 6.4C94.9 19.7 102.8 49.1 89.6 72S46.9 102.8 24 89.6-6.8 46.9 6.4 24 49.1-6.8 72 6.4zm-1 1.7C49-4.6 20.8 2.9 8.1 25S2.9 75.2 25 87.9 75.2 93.1 87.9 71 93.1 20.8 71 8.1zM32.6 78.6l-1.4 1.7.6 2.2-2.1-.8-1.9 1.2.1-2.2-1.7-1.4 2.2-.5.8-2.1 1.2 1.9h2.2zM43 81.2l-1.2 1.5.5 1.8-1.8-.7-1.6 1.1.1-1.9-1.5-1.2 1.9-.5.7-1.8 1 1.6 1.9.1zM24.7 70.7l-1.2 1.5.5 1.8-1.8-.7-1.6 1.1.1-1.9-1.5-1.2 1.9-.5.7-1.8 1 1.6 1.9.1zm-6.8-8.4-1.2 1.5.5 1.8-1.8-.7-1.6 1.1.2-2-1.5-1.2 1.9-.5.7-1.8 1 1.6 1.8.2zm35.7 20.6-1.2 1.5.5 1.8-1.8-.7-1.6 1.1.1-1.9-1.5-1.2L50 83l.7-1.8 1 1.6 1.9.1zM22.2 50.4c.8 8.3 5.5 15.8 12.9 20 7.3 4.2 16.2 4.6 23.8 1.1.5-.2 1.1 0 1.3.5s0 1.1-.5 1.3c-8.2 3.7-17.6 3.4-25.5-1.2-7.9-4.6-13-12.6-13.8-21.5 0-.5.3-1 .9-1.1.4 0 .8.4.9.9zm49.6-.3 2.5 1.6-3.8 6.6 2.6 1.5-.9-2.5c1.6-.6 3.8-1.6 5.5-2.5l.2-.1 1.1 2.6-1.6.7c-.2.1-.3.2-.5.2l-.5.2c-.9.4-1.9.9-2.8 1.2l-.3.1 4 2.3-1.4 2.5-5-2.9-2.9 4.8c-.3.6-.3.9.2 1.2l.1.1.1.1c.2.2.6.4.9.5h.1c1 .5 1.4.5 1.9 0 .1-.1.1-.2.2-.3l.1-.2c.1-.1.1-.2.2-.3l.2-.2s0-.1.1-.1l.2-.3 1.9 1.9c-.3.6-.7 1.1-1 1.5l-.2.2c-1.4 1.9-2.4 2.1-4.1 1.2l-.2-.1h-.1c-.2-.1-.4-.2-.7-.4l-.3-.2s-.1 0-.2-.1l-.3-.2s-.1 0-.2-.1l-.3-.2c-.2-.1-.4-.2-.6-.4h-.1c-1.6-1.1-1.8-2.1-.8-4v-.1l3.2-5.5-2.1-1.2v.1c-.1.2-.3.5-.5.7l-.2.3c-2.5 3.4-4.9 4.4-9.6 4.5h-.4l-.6-3.3h2c3.2 0 4.8-.8 6.7-3.6l.1-.1-4-2.3 1.4-2.5 6.7 3.8 4-6.7zm-15.3-9.3c-.5 2.9.3 7.1 1.6 9.8l.1.2-2.5 1.5c-.3-.7-.6-1.4-.8-2.1l-.2.4s-.1.1-.1.2l-.4.6-1.2 1.7-.2.3c-1 1.6-1.9 2-3.6 1.2h-.1l-1.7-.8.7-2.6 1.5.7.1.1c.6.3.9.2 1.2-.4.1-.1.3-.4.4-.6l.2-.3s0-.1.1-.1l.3-.5-3.4-2.1-3.2 5.6-.1.2-.1.1c-.3.6-.2.8.2 1.2l.1.1.1.1h.1c.9.6 1.9 1.1 2.8 1.6l.3.1h.2c.5.2.7.1 1.2-.6l.6-.9.1-.2 1.9 2c0 .1-.1.2-.2.3l-.1.2-.3.5-.1.7v.1c-.1.1-.2.2-.3.4l-.1.1c-1 1-1.7 1-3.1.3l-.2-.1h-.1l-.2-.1h-.1c-1.3-.7-2.6-1.4-3.8-2.2-1.8-1.1-2.3-2.2-1.2-4.3v-.1l3.8-6.9-1 .2-.2-2.9c.2 0 .5 0 .7-.1l.8-.1-1.5-.9-1.5 2.1 1.4.3-.5 1.3-.5 1.3-1.9-.4-3 5.2c0 .1-.1.2-.2.3l-.1.2c-.7 1.1-1.4 1.2-2.8.6l-.2-.1-1.8-.8.8-2.9 1.5.7c.5.2.6.2.9-.3l2-3.5-.6-.1-.6-.1-.7-.2-.5-.1-.3-.1 1.2-2.7.3.1.4.1.4.1 1.8.5 1.7-3-1.7-1.3 1.4-2.4 1.9 1.1 1.7-3 2.3 1.5-1.6 2.8 1.9 1.1-1.2 2.2c2.4-.6 5.2-1.7 7.2-3.1l.2-.1 1.7 1.1zm-17.8-9.1-5.1 8.8L22 33.8l-2.4 4.1-.1.2c-.6 1.1-.5 1.4.5 2.1l.2.1.2.1c1.9 1.2 3.8 2.3 5.8 3.4l1.4.8.2.1c1 .5 1.4.4 1.9-.1l.1-.1.1-.1.1-.4.2-.2.3-.4.2-.2.2-.4.1-.2v-.2l2 2.4-.4.9c-.2.2-.4.5-.6.8l-.3.4-.1.1-.2.2-.2.2-.1.1c-1.2 1.1-2.1 1.2-3.8.4l-.2-.1c-.1 0-.2-.1-.3-.1l-.3-.1c-2.9-1.6-5.8-3.3-8.6-4.9l-.2-.1-.2-.1c-2.1-1.4-2.4-2.6-1-5.1l.1-.1 5.5-9.4 2.6 1.6-1.2 2 9 5.2 2.1-3.6-12-6.9 1.5-2.6 14.6 8.1zm28.5 17c.1.6.3 1.4.4 2.3v3.9l-2.8.5v-3c-.1-1.1-.2-2.2-.4-3v-.2l2.8-.5zm-13.4-5.1c-1.2.7-2.5 1.2-4.1 1.7l-.3.1 4.9 2.9c-.4-1.8-.6-3.4-.5-4.7zm8.1-19.7c7.9 4.6 13 12.6 13.8 21.5 0 .5-.3 1-.9 1.1-.5 0-1-.3-1.1-.9-.8-8.3-5.5-15.8-12.9-20-7.3-4.3-16.2-4.6-23.8-1.1-.5.2-1.1 0-1.3-.5-.2-.5 0-1.1.5-1.3 8.3-3.7 17.8-3.4 25.7 1.2zM82.2 30l-.2 2 1.5 1.2-1.9.5-.6 1.7-1-1.6-2-.1 1.2-1.5-.5-1.8 1.8.7 1.7-1.1zM46.5 9.4l-.1 1.9 1.5 1.2-2 .5-.7 1.8-1-1.6-1.9-.1 1.2-1.5-.5-1.9 1.8.7 1.7-1zm10.6 1.7L57 13l1.5 1.2-1.9.5-.7 1.8-1-1.6-1.9-.1 1.2-1.5-.5-1.8 1.8.7 1.6-1.1zm18.3 10.6-.1 1.9 1.5 1.2-1.9.5-.7 1.8-1-1.6-1.9-.1 1.2-1.5-.6-1.9 1.8.7 1.7-1zm-7.2-8.6-.2 2.2 1.7 1.4-2.2.5-.8 2.1-1.2-1.9-2.2-.1 1.4-1.7-.6-2.2 2.1.8 2-1.1z"/>',
            'HasRobOutCircleOutlinedIcon',
          ),
          ut = (0, lt.A)(
            '<path d="M72 6.4C94.9 19.7 102.8 49.1 89.6 72S46.9 102.8 24 89.6-6.8 46.9 6.4 24 49.1-6.8 72 6.4zm-1 1.7C49-4.6 20.8 2.9 8.1 25S2.9 75.2 25 87.9 75.2 93.1 87.9 71 93.1 20.8 71 8.1zM32.6 78.6l-1.4 1.7.6 2.2-2.1-.8-1.9 1.2.1-2.2-1.7-1.4 2.2-.5.8-2.1 1.2 1.9h2.2zM43 81.2l-1.2 1.5.5 1.8-1.8-.7-1.6 1.1.1-1.9-1.5-1.2 1.9-.5.7-1.8 1 1.6 1.9.1zM24.7 70.7l-1.2 1.5.5 1.8-1.8-.7-1.6 1.1.1-1.9-1.5-1.2 1.9-.5.7-1.8 1 1.6 1.9.1zm-6.8-8.4-1.2 1.5.5 1.8-1.8-.7-1.6 1.1.2-2-1.5-1.2 1.9-.5.7-1.8 1 1.6 1.8.2zm35.7 20.6-1.2 1.5.5 1.8-1.8-.7-1.6 1.1.1-1.9-1.5-1.2L50 83l.7-1.8 1 1.6 1.9.1zM22.2 50.4c.8 8.3 5.5 15.8 12.9 20 7.3 4.3 16.2 4.6 23.8 1.1.5-.2 1.1 0 1.3.5s0 1.1-.5 1.3c-8.2 3.7-17.6 3.4-25.5-1.2-7.9-4.6-13-12.6-13.8-21.5 0-.5.3-1 .9-1.1.4 0 .8.4.9.9zM51 47.2l2.2 1.4-1.8 3.2c-.5.9-1 1.6-1.6 2.3 0 .1.1.2.2.4l.2.4.2.5.2.5c0 .1.1.2.1.2l.2.5c0 .1.1.2.1.3l.2.5c.1.2.1.3.2.5l.2.5c0 .1 0 .2.1.2l.2.5c.1.2.2.5.2.7l.1.2-2.7 1.2c-.2-1-.6-2.3-1.1-3.5l-.2-.6c0-.1 0-.2-.1-.3l-.2-.5c0-.1 0-.2-.1-.2l-.2-.5c0-.1 0-.1-.1-.2-1.3.7-3.1 1-5.5.9h-1l-.3-2.9H43c2.8.1 4.2-.5 5.4-2.1l.1-.2.1-.1.1-.2.1-.2.1-.2.1-.2.1-.2.2-.4 1.7-2.4zm22.2 4.3-1.3 2.3-.9-.5-5.4 9.3 1.4.4-.5 1-.7 1.4-1.4-.6-2 3.5-2.3-1.3 1.8-3.1-.8-.3-1.3-.5-1.8-.6-2.6-.9h-.2l1.2-2.5h.1l.2.1 1.1.4.3.1 6-10.5-.9-.5 1.3-2.3 8.7 5.1zm7.2 5.3L79 59.2c-2.5 3-4.6 5.2-7.1 6.9.1 1.7.6 3.4 1.4 5.4l.1.3-2.7 1.1c-.7-2.1-1.2-3.8-1.4-5.5-1.4.6-3 1.2-4.8 1.6l-.5.1-.6-2.8c2.2-.4 4-1 5.6-1.7.1-2.4.8-5 2.1-8.2l.2-.7 2.4.9c-1 2.4-1.6 4.4-1.9 6.2 1.6-1.2 3.1-2.7 4.7-4.7l.2-.3-5.1-3 1.4-2.4 7.4 4.4zM38.7 31.7l-5.1 8.8L22 33.8l-2.4 4.1-.1.2c-.6 1.1-.5 1.5.6 2.2l.2.1h.1c1.9 1.2 3.8 2.3 5.8 3.4l1.4.8.2.1c1 .5 1.4.4 1.9-.1l.1-.1.1-.1.1-.4.2-.2.3-.4.2-.2.2-.4.1-.2v-.2l2 2.4-.4.9c-.2.2-.4.5-.6.8l-.3.4-.1.1-.2.2-.2.2-.1.1c-1.2 1.1-2.1 1.2-3.8.4l-.2-.1c-.1 0-.2-.1-.3-.1l-.3-.1c-2.9-1.6-5.8-3.3-8.6-4.9l-.2-.1-.2-.1c-2.1-1.4-2.4-2.6-1-5.1l.1-.1 5.5-9.4 2.6 1.6-1.2 2 9 5.2 2.1-3.6-12-6.9 1.5-2.6 14.6 8.1zm6.6 9.4c.2 1 .4 2.3.4 3.5v.2l-1.8.2 2.6 1.5-1.3 2.5c-1.3 1-2.9 1.8-4.3 2.4l.3 1 .1.4c0 .1 0 .2.1.3v.1l-2.5 1.2-.5-2-.1-.6c0-.2-.1-.4-.1-.6l-.2-.6c-.3-1.1-.6-2-.9-2.8l-.2-.2 2.3-.9c.3.7.7 1.6 1 2.5.3-.1.5-.2.8-.3l.3-.1c.7-.3 1.4-.7 1.8-1.1h.1L38.5 45l1.2-2.2 3.7 2.2c0-1.1-.1-2.4-.3-3.2v-.1l2.2-.6zm2.2-5.5 1.8 1.8-.8.7c.4 1.3.8 3.1 1 4.5v.3l2.4 1.3 1.2-1.2-3.4-2 1.3-2.3 9.7 5.6-1.3 2.3-3.8-2.2c-.3.3-.6.6-.9 1l-.2.2 3.6 2.1-5.1 8.8-2.4-1.3 3.9-6.8-4-2.3-3.9 6.8-2.3-1.3 4.6-8-1.8.6c0-.6-.1-1.2-.2-2l-.1-.6-.3-2.1c-1.9 1.2-3.9 2-6 2.6l-.5.1-.5-2.4c2.5-.7 5.8-2.4 7.8-4l.2-.2zM64.1 60l-2.4-1.4-1.2 2 2.6 1 1-1.6zm2.3-3.9L64 54.7l-1 1.8 2.4 1.4 1-1.8zm2.3-4.1-2.4-1.4-1.1 1.8 2.4 1.4 1.1-1.8zm-6.8-28.1c7.9 4.6 13 12.6 13.8 21.5 0 .5-.3 1-.9 1.1-.5 0-1-.3-1.1-.9-.8-8.3-5.5-15.8-12.9-20-7.3-4.3-16.2-4.6-23.8-1.1-.5.2-1.1 0-1.3-.5s0-1.1.5-1.3c8.3-3.7 17.8-3.4 25.7 1.2zM82.2 30l-.2 2 1.5 1.2-1.9.5-.6 1.7-1-1.6-2-.1 1.2-1.5-.5-1.8 1.8.7 1.7-1.1zM46.5 9.4l-.1 1.9 1.5 1.2-2 .5-.7 1.8-1-1.6-1.9-.1 1.2-1.5-.5-1.9 1.8.7 1.7-1zm10.6 1.7L57 13l1.5 1.2-1.9.5-.7 1.8-1-1.6-1.9-.1 1.2-1.5-.5-1.8 1.8.7 1.6-1.1zm18.3 10.6-.1 1.9 1.5 1.2-1.9.5-.7 1.8-1-1.6-1.9-.1 1.2-1.5L72 22l1.8.7 1.6-1zm-7.2-8.6-.2 2.2 1.7 1.4-2.2.5-.8 2.1-1.2-1.9-2.2-.1 1.4-1.7-.6-2.2 2.1.8 2-1.1z"/>',
            'HasReceivedCircleOutlinedIcon',
          ),
          dt = Object.defineProperty,
          mt = Object.defineProperties,
          pt = Object.getOwnPropertyDescriptors,
          ft = Object.getOwnPropertySymbols,
          vt = Object.prototype.hasOwnProperty,
          ht = Object.prototype.propertyIsEnumerable,
          gt = function (e, t, n) {
            return t in e ? dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          yt = (0, d.memo)(
            (0, d.forwardRef)(function (e, t) {
              var n = e,
                a = n.onClose,
                r = n.drawerData,
                o = n.diffServerTime,
                c = n.handleShare,
                l = n.handleWantSee,
                s = n.refreshMainPage,
                u = (n.fetchCompleteTask, n.queryTaskStatus, n.open),
                m = (function (e, t) {
                  var n = {}
                  for (var a in e) vt.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                  if (null != e && ft) {
                    var r,
                      o = i(ft(e))
                    try {
                      for (o.s(); !(r = o.n()).done; ) {
                        a = r.value
                        t.indexOf(a) < 0 && ht.call(e, a) && (n[a] = e[a])
                      }
                    } catch (e) {
                      o.e(e)
                    } finally {
                      o.f()
                    }
                  }
                  return n
                })(n, [
                  'onClose',
                  'drawerData',
                  'diffServerTime',
                  'handleShare',
                  'handleWantSee',
                  'refreshMainPage',
                  'fetchCompleteTask',
                  'queryTaskStatus',
                  'open',
                ]),
                p = r || {},
                f = p.encryptUserId,
                v = p.taskDetails,
                h = (void 0 === v ? [] : v)[0]
              if (!(null == h ? void 0 : h.taskId)) return null
              var g = h.taskPrizeInfo,
                y = void 0 === g ? {} : g,
                b = h.userTaskConditionList,
                w = void 0 === b ? [] : b
              return d.createElement(
                He.A,
                (function (e, t) {
                  return mt(e, pt(t))
                })(
                  (function (e, t) {
                    for (var n in t || (t = {})) vt.call(t, n) && gt(e, n, t[n])
                    if (ft) {
                      var a,
                        r = i(ft(t))
                      try {
                        for (r.s(); !(a = r.n()).done; ) {
                          n = a.value
                          ht.call(t, n) && gt(e, n, t[n])
                        }
                      } catch (e) {
                        r.e(e)
                      } finally {
                        r.f()
                      }
                    }
                    return e
                  })({ Component: rt.A, ref: t, className: (0, Fe.A)('bui-receive-drawer'), open: u && !!r }, m),
                  { onClose: a },
                ),
                d.createElement('div', { className: 'header-bg' }),
                (function () {
                  var e = Number(h.endTime) - new Date().getTime() + o
                  return e <= 0
                    ? null
                    : d.createElement(
                        'div',
                        { className: 'count-down-wrapper' },
                        '活动还剩',
                        d.createElement(it.A, {
                          remainingTime: e,
                          onFinish: function () {
                            return (
                              (0, pe.o)({ message: '抱歉～活动结束了哦', duration: 2e3 }),
                              void setTimeout(function () {
                                a(), null == s || s()
                              }, 2e3)
                            )
                          },
                          renderContent: function (e) {
                            var t = e.hoursWithDays,
                              n = e.days,
                              a = e.minutes,
                              i = e.seconds
                            return d.createElement(
                              'div',
                              { className: 'count-container' },
                              d.createElement('div', { className: 'count-item' }, n),
                              '天',
                              d.createElement('div', { className: 'count-item' }, t),
                              '时',
                              d.createElement('div', { className: 'count-item' }, a),
                              '分',
                              d.createElement('div', { className: 'count-item' }, i),
                              '秒',
                            )
                          },
                        }),
                      )
                })(),
                d.createElement(
                  'div',
                  { className: 'benefit-wrapper' },
                  d.createElement(
                    'div',
                    { className: 'price' },
                    (null == y ? void 0 : y.costPrice) &&
                      d.createElement(
                        'div',
                        { className: 'price-top' },
                        '¥',
                        d.createElement('span', { className: 'price-number' }, Number(y.costPrice) / 100),
                      ),
                    (null == y ? void 0 : y.startFee) &&
                      d.createElement('span', { className: 'price-desc' }, y.startFee),
                  ),
                  d.createElement(
                    'div',
                    { className: 'benefit-content' },
                    d.createElement(
                      'div',
                      { className: 'benefit-title' },
                      (null == y ? void 0 : y.couponTitle) || d.createElement(d.Fragment, null, ' '),
                    ),
                    d.createElement(
                      'div',
                      { className: 'benefit-subtitle' },
                      (null == y ? void 0 : y.couponSubTitle) || d.createElement(d.Fragment, null, ' '),
                    ),
                  ),
                  (function () {
                    if ((null == h ? void 0 : h.rewardStatus) === We.NOT_WIN) {
                      if ((null == h ? void 0 : h.applyStatus) === Ue.DONE_ISSUED)
                        return (
                          u && (0, pe.o)({ message: '优惠券被抢光啦，下次早点来哦' }),
                          d.createElement(st, { htmlColor: '#999999', className: 'complete-icon' })
                        )
                      if ((null == h ? void 0 : h.applyStatus) === Ue.UNDONE)
                        return d.createElement(Le.A, { className: 'benefit-btn', variant: 'contained' }, '待解锁')
                    }
                    return (null == h ? void 0 : h.rewardStatus) === We.WIN
                      ? d.createElement(ut, { htmlColor: '#999999', className: 'complete-icon' })
                      : null
                  })(),
                ),
                d.createElement(ot.A, { direction: 'horizontal' }, '完成以下任务即可领取哦'),
                d.createElement(
                  'div',
                  { className: 'task-list' },
                  w.map(function (e) {
                    return d.createElement(
                      'div',
                      { key: e.conditionId, className: 'task-item' },
                      d.createElement(Re.A, {
                        className: 'task-img',
                        src: 'https://gw.alicdn.com/imgextra/i4/O1CN01IDjSgM1niqLhF2OXA_!!6000000005124-0-tps-135-135.jpg',
                        lazy: !0,
                      }),
                      d.createElement(
                        'div',
                        { className: 'task-content' },
                        d.createElement(
                          'div',
                          { className: 'task-title' },
                          (null == e ? void 0 : e._title) || d.createElement(d.Fragment, null, ' '),
                        ),
                        d.createElement(
                          'div',
                          { className: 'task-subtitle' },
                          (null == e ? void 0 : e._subtitle) || d.createElement(d.Fragment, null, ' '),
                        ),
                      ),
                      d.createElement(
                        He.A,
                        {
                          Component: Le.A,
                          dynamicData: { task_id: h.taskId, baccount_id: null == e ? void 0 : e.conditionTarget },
                          openType: e._btnAction === Je.Share && !e._isDone && 'share',
                          'data-share': {
                            from: 'shareTask',
                            taskId: h.taskId,
                            dataId: null == e ? void 0 : e.dataId,
                            encryptUserId: f,
                          },
                          className: (0, Fe.A)(!e._isDone && 'task-btn', {
                            'log-share': e._btnAction === Je.Share,
                            'log-focus': [Je.FocusBrand, Je.FocusVenue].includes(e._btnAction),
                            'log-wantsee': e._btnAction === Je.WantSee,
                          }),
                          color: e._isDone ? 'default' : 'primary',
                          variant: e._isDone ? 'contained' : 'light',
                          onClick: function () {
                            return (function (e) {
                              if (!e._isDone) {
                                if (e._btnAction === Je.Share)
                                  return (
                                    a(),
                                    void (
                                      null == c ||
                                      c({
                                        taskId: null == h ? void 0 : h.taskId,
                                        dataId: null == e ? void 0 : e.dataId,
                                        encryptUserId: f,
                                      })
                                    )
                                  )
                                if ([Je.FocusVenue, Je.FocusBrand].includes(e._btnAction)) {
                                  a()
                                  var t = null == e ? void 0 : e.conditionTarget,
                                    n = e._btnAction === Je.FocusVenue,
                                    i = Pe.A,
                                    r = i.spmA,
                                    o = i.spmB,
                                    s = ''.concat(r, '.').concat(o, '.taskpop.follow')
                                  return void (0, ct.VJ)({
                                    page: n ? 'shows_venue' : 'shows_brand',
                                    query: n ? { id: t, spm: s } : { brandId: t, spm: s },
                                  })
                                }
                                l({ targetId: null == e ? void 0 : e.conditionTarget, operateType: '1' })
                              }
                            })(e)
                          },
                        },
                        e._btnText,
                      ),
                    )
                  }),
                ),
                d.createElement(
                  'div',
                  { className: 'task-footer' },
                  d.createElement(
                    He.A,
                    {
                      Component: Le.A,
                      dynamicData: { task_id: h.taskId },
                      className: 'confirm-btn',
                      color: 'primary',
                      variant: 'contained',
                      size: 'full',
                      onClick: a,
                    },
                    '确认',
                  ),
                ),
              )
            }),
          )
        yt.displayName = 'BuiReceiveDrawer'
        var bt = yt,
          wt = Object.defineProperty,
          Nt = Object.defineProperties,
          At = Object.getOwnPropertyDescriptors,
          Et = Object.getOwnPropertySymbols,
          kt = Object.prototype.hasOwnProperty,
          St = Object.prototype.propertyIsEnumerable,
          Ct = function (e, t, n) {
            return t in e ? wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          It = function (e, t) {
            for (var n in t || (t = {})) kt.call(t, n) && Ct(e, n, t[n])
            if (Et) {
              var a,
                r = i(Et(t))
              try {
                for (r.s(); !(a = r.n()).done; ) {
                  n = a.value
                  St.call(t, n) && Ct(e, n, t[n])
                }
              } catch (e) {
                r.e(e)
              } finally {
                r.f()
              }
            }
            return e
          },
          xt = (0, d.memo)(
            (0, d.forwardRef)(function (e, a) {
              var r = e,
                o = r.className,
                c = r.data,
                l = r.handleShare,
                s = r.refreshMainPage,
                u = r.onUpdateWantSee,
                m = r.DrawerProps,
                p = r.isShowEntry,
                f = r.showLoading,
                v = r.hideLoading,
                h = (function (e, t) {
                  var n = {}
                  for (var a in e) kt.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                  if (null != e && Et) {
                    var r,
                      o = i(Et(e))
                    try {
                      for (o.s(); !(r = o.n()).done; ) {
                        a = r.value
                        t.indexOf(a) < 0 && St.call(e, a) && (n[a] = e[a])
                      }
                    } catch (e) {
                      o.e(e)
                    } finally {
                      o.f()
                    }
                  }
                  return n
                })(r, [
                  'className',
                  'data',
                  'handleShare',
                  'refreshMainPage',
                  'onUpdateWantSee',
                  'DrawerProps',
                  'isShowEntry',
                  'showLoading',
                  'hideLoading',
                ]),
                g = (0, d.useState)(!1),
                y = n(g, 2),
                b = y[0],
                w = y[1],
                N = (function (e) {
                  var a = e.taskIds,
                    i = e.onUpdateWantSee,
                    r = (0, d.useState)(),
                    o = n(r, 2),
                    c = o[0],
                    l = o[1],
                    s = (0, d.useState)(0),
                    u = n(s, 2),
                    m = u[0],
                    p = u[1],
                    f = function () {
                      return Pe.A.mtop.call({
                        requestOptions: {
                          api: 'mtop.film.MtopTaskAPI.queryUserTaskModule',
                          v: '9.4',
                          data: { taskIds: a.join(','), platform: Ve.Yb ? '42' : '8' },
                        },
                      })
                    },
                    v = function () {
                      f()
                        .then(function (e) {
                          var t,
                            n,
                            a = nt(null == (t = null == e ? void 0 : e.data) ? void 0 : t.returnValue).returnValue,
                            i = (null == (n = null == e ? void 0 : e.data) ? void 0 : n.timestamp) || Date.now()
                          l(a), p(new Date().getTime() - Number(i))
                        })
                        .catch(function (e) {})
                    },
                    h = function (e) {
                      var t = e.taskId,
                        n = e.targetId,
                        a = e.targetType
                      return Pe.A.mtop.call({
                        requestOptions: {
                          api: 'mtop.film.MtopTaskAPI.completeTask',
                          v: '1.0',
                          data: {
                            taskId: t,
                            platform: Ve.Yb ? '42' : '8',
                            bizType: 'FOLLOW_CONDITION',
                            extParam: JSON.stringify({ targetId: n, targetType: a }),
                          },
                        },
                      })
                    }
                  return {
                    diffServerTime: m,
                    drawerData: c,
                    setDrawerData: l,
                    setDiffServerTime: p,
                    fetchTaskModule: f,
                    handleWantSee: function (e) {
                      return at(void 0, [e], function (e) {
                        var n = e.targetId,
                          a = e.operateType
                        return t().mark(function e() {
                          var r, o
                          return t().wrap(function (e) {
                            for (;;)
                              switch ((e.prev = e.next)) {
                                case 0:
                                  return (e.next = 2), (0, Be.A)({ failedMsg: '登录失败，请稍后再试' })
                                case 2:
                                  if (((r = e.sent), r.isLogin)) {
                                    e.next = 6
                                    break
                                  }
                                  return e.abrupt('return')
                                case 6:
                                  ;(o = 'DM_H5_ITEM_DETAIL'),
                                    ze.ND ? (o = 'DM_LOCAL_LIFE_ITEM_DETAIL') : Ve.Yb && (o = 'DM_WX_ITEM_DETAIL'),
                                    Pe.A.mtop
                                      .call({
                                        requestOptions: {
                                          api: 'mtop.damai.wireless.follow.relation.update.v2',
                                          v: '1.2',
                                          data: {
                                            group: 'PROJECT_GROUP',
                                            targetType: 'ITEM',
                                            operateType: a,
                                            targetId: n,
                                            pageName: o,
                                          },
                                        },
                                      })
                                      .then(function (e) {
                                        var t,
                                          r,
                                          o =
                                            'true' === (null == (t = null == e ? void 0 : e.data) ? void 0 : t.success),
                                          c = o ? '想看成功' : '想看失败'
                                        o &&
                                          (null == i ||
                                            i({
                                              itemId: n,
                                              isWantSee: '1' === a,
                                              index: null == (r = null == e ? void 0 : e.data) ? void 0 : r.index,
                                            })),
                                          (0, pe.o)({ message: c })
                                      })
                                      .catch(function (e) {})
                                      .finally(function () {
                                        setTimeout(function () {
                                          v()
                                        }, 1e3)
                                      })
                                case 8:
                                case 'end':
                                  return e.stop()
                              }
                          }, e)
                        })()
                      })
                    },
                    fetchCompleteTask: h,
                    handleCompleteTask: function (e, n) {
                      return at(void 0, [e, n], function (e, n) {
                        var a = e.taskId,
                          i = e.targetId,
                          r = e.targetType
                        return t().mark(function e() {
                          var o
                          return t().wrap(function (e) {
                            for (;;)
                              switch ((e.prev = e.next)) {
                                case 0:
                                  return (e.next = 2), (0, Be.A)({ failedMsg: '登录失败，请稍后再试' })
                                case 2:
                                  ;(o = e.sent),
                                    o.isLogin &&
                                      h({ taskId: a, targetId: i, targetType: r })
                                        .then(function (e) {
                                          var t,
                                            a =
                                              '0' ===
                                              (null == (t = null == e ? void 0 : e.data) ? void 0 : t.returnCode),
                                            i = ''
                                          n === Je.WantSee
                                            ? (i = '想看')
                                            : [Je.FocusVenue, Je.FocusBrand].includes(n) && (i = '关注')
                                          var r = ''.concat(i, a ? '成功' : '失败')
                                          ;(0, pe.o)({ message: r })
                                        })
                                        .catch(function (e) {})
                                        .finally(function () {
                                          r === Ge.FollowProject && v()
                                        })
                                case 5:
                                case 'end':
                                  return e.stop()
                              }
                          }, e)
                        })()
                      })
                    },
                    queryTaskStatus: v,
                  }
                })({ onUpdateWantSee: u, taskIds: [null == c ? void 0 : c.taskId] }),
                A = N.drawerData,
                E = N.diffServerTime,
                k = N.setDrawerData,
                S = N.setDiffServerTime,
                C = N.fetchTaskModule,
                I = N.handleWantSee,
                x = N.fetchCompleteTask,
                _ = N.queryTaskStatus
              return c && p
                ? d.createElement(
                    d.Fragment,
                    null,
                    d.createElement(
                      He.A,
                      It(
                        {
                          ref: a,
                          className: (0, Fe.A)('bui-marketing-task', o),
                          dynamicData: {
                            task_status: '1' === (null == c ? void 0 : c.status) ? '2' : '1',
                            task_id: null == c ? void 0 : c.taskId,
                          },
                        },
                        h,
                      ),
                      d.createElement(Re.A, {
                        className: 'task-img',
                        src: (0, Me.zp)({ url: null == c ? void 0 : c.iconUrl, width: 120 }),
                        placeholder: !0,
                      }),
                      d.createElement(
                        'div',
                        { className: 'task-content' },
                        (null == c ? void 0 : c.title) &&
                          d.createElement('div', {
                            className: 'task-title',
                            dangerouslySetInnerHTML: { __html: c.title },
                          }),
                        (null == c ? void 0 : c.subTitle) &&
                          d.createElement('div', { className: 'task-subtitle' }, c.subTitle),
                      ),
                      (null == c ? void 0 : c.btnText) &&
                        d.createElement(
                          Le.A,
                          {
                            className: 'task-btn',
                            color: 'primary',
                            variant: 'light',
                            onClick: function () {
                              null == f || f({ title: '加载中...' }),
                                C()
                                  .then(function (e) {
                                    return (function (e, t, n) {
                                      return new Promise(function (a, i) {
                                        var r = function (e) {
                                            try {
                                              c(n.next(e))
                                            } catch (e) {
                                              i(e)
                                            }
                                          },
                                          o = function (e) {
                                            try {
                                              c(n.throw(e))
                                            } catch (e) {
                                              i(e)
                                            }
                                          },
                                          c = function (e) {
                                            return e.done ? a(e.value) : Promise.resolve(e.value).then(r, o)
                                          }
                                        c((n = n.apply(e, t)).next())
                                      })
                                    })(
                                      void 0,
                                      null,
                                      t().mark(function n() {
                                        var a, i, r, o, c, l, u, d, m, p, f, h
                                        return t().wrap(
                                          function (t) {
                                            for (;;)
                                              switch ((t.prev = t.next)) {
                                                case 0:
                                                  if (
                                                    (r =
                                                      null == (a = null == e ? void 0 : e.data)
                                                        ? void 0
                                                        : a.returnValue)
                                                  ) {
                                                    t.next = 3
                                                    break
                                                  }
                                                  return t.abrupt(
                                                    'return',
                                                    void (0, pe.o)({ message: '啊哦出错了，请重新试试哦～' }),
                                                  )
                                                case 3:
                                                  if (
                                                    ((o = nt(r, x)),
                                                    (c = o.returnValue),
                                                    (l = o.completeTaskReqList),
                                                    (u = void 0 === l ? [] : l),
                                                    (d =
                                                      (null == (i = null == e ? void 0 : e.data)
                                                        ? void 0
                                                        : i.timestamp) || Date.now()),
                                                    (m = (c || {}).taskDetails),
                                                    (p = (void 0 === m ? [] : m)[0]),
                                                    (f = new Date().getTime() - Number(d)),
                                                    k(c),
                                                    S(f),
                                                    !(Number(p.endTime) - new Date().getTime() + f <= 0))
                                                  ) {
                                                    t.next = 8
                                                    break
                                                  }
                                                  return t.abrupt(
                                                    'return',
                                                    ((0, pe.o)({ message: '抱歉～活动结束了哦' }),
                                                    void (null == s || s())),
                                                  )
                                                case 8:
                                                  if (!u.length) {
                                                    t.next = 25
                                                    break
                                                  }
                                                  return (
                                                    (t.prev = 9),
                                                    (t.next = 12),
                                                    (0, Be.A)({ failedMsg: '登录失败，请稍后再试' })
                                                  )
                                                case 12:
                                                  if (((h = t.sent), h.isLogin)) {
                                                    t.next = 16
                                                    break
                                                  }
                                                  return t.abrupt('return')
                                                case 16:
                                                  return (t.next = 18), Promise.all(u)
                                                case 18:
                                                  t.next = 22
                                                  break
                                                case 20:
                                                  ;(t.prev = 20), (t.t0 = t.catch(9))
                                                case 22:
                                                  return (t.prev = 22), _(), t.finish(22)
                                                case 25:
                                                  w(!0), null == v || v()
                                                case 26:
                                                case 'end':
                                                  return t.stop()
                                              }
                                          },
                                          n,
                                          null,
                                          [[9, 20, 22, 25]],
                                        )
                                      }),
                                    )
                                  })
                                  .catch(function () {
                                    ;(0, pe.o)({ message: '啊哦出错了，请重新试试哦～' })
                                  })
                            },
                          },
                          c.btnText,
                        ),
                    ),
                    d.createElement(
                      bt,
                      (function (e, t) {
                        return Nt(e, At(t))
                      })(It({}, m), {
                        diffServerTime: E,
                        drawerData: A,
                        refreshMainPage: s,
                        handleShare: l,
                        handleWantSee: I,
                        fetchCompleteTask: x,
                        queryTaskStatus: _,
                        open: b,
                        onClose: function () {
                          w(!1)
                        },
                      }),
                    ),
                  )
                : null
            }),
          )
        xt.displayName = 'BuiMarketingTask'
        var _t = xt,
          Dt = l(2499),
          Tt = l(9337),
          jt = Object.defineProperty,
          Ot = Object.getOwnPropertySymbols,
          Pt = Object.prototype.hasOwnProperty,
          Rt = Object.prototype.propertyIsEnumerable,
          Lt = function (e, t, n) {
            return t in e ? jt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Mt = 'bui-show-performance-guide',
          Ft = d.forwardRef(function (e, a) {
            var r = e,
              o = r.list,
              c = void 0 === o ? [] : o,
              l = r.title,
              s = void 0 === l ? '用户观演攻略' : l,
              u = r.className,
              m = r.minCardsToStrategy,
              p = void 0 === m ? 10 : m,
              f = r.onClick,
              v = r.onStrategyGuideClick,
              h = (function (e, t) {
                var n = {}
                for (var a in e) Pt.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                if (null != e && Ot) {
                  var r,
                    o = i(Ot(e))
                  try {
                    for (o.s(); !(r = o.n()).done; ) {
                      a = r.value
                      t.indexOf(a) < 0 && Rt.call(e, a) && (n[a] = e[a])
                    }
                  } catch (e) {
                    o.e(e)
                  } finally {
                    o.f()
                  }
                }
                return n
              })(r, ['list', 'title', 'className', 'minCardsToStrategy', 'onClick', 'onStrategyGuideClick']),
              g = (0, d.useState)(!1),
              y = n(g, 2),
              b = y[0],
              w = y[1],
              N = (0, d.useRef)(null),
              A = (0, d.useState)(0),
              E = n(A, 2),
              k = E[0],
              S = E[1]
            return 0 === c.length
              ? null
              : d.createElement(
                  'div',
                  (function (e, t) {
                    for (var n in t || (t = {})) Pt.call(t, n) && Lt(e, n, t[n])
                    if (Ot) {
                      var a,
                        r = i(Ot(t))
                      try {
                        for (r.s(); !(a = r.n()).done; ) {
                          n = a.value
                          Rt.call(t, n) && Lt(e, n, t[n])
                        }
                      } catch (e) {
                        r.e(e)
                      } finally {
                        r.f()
                      }
                    }
                    return e
                  })({ ref: a, className: (0, Fe.A)(Mt, u) }, h),
                  d.createElement(
                    'div',
                    { className: ''.concat(Mt, '-head') },
                    d.createElement('div', { className: ''.concat(Mt, '-head-title') }, s),
                    b &&
                      d.createElement(He.A, {
                        className: ''.concat(Mt, '-head-guide'),
                        onClick: function () {
                          null == v || v()
                        },
                      }),
                  ),
                  d.createElement(
                    Dt.A,
                    {
                      scrollX: !0,
                      className: (0, Fe.A)(''.concat(Mt, '-scroll'), 'tph'),
                      onScroll: function (e) {
                        return (function (e, t, n) {
                          return new Promise(function (a, i) {
                            var r = function (e) {
                                try {
                                  c(n.next(e))
                                } catch (e) {
                                  i(e)
                                }
                              },
                              o = function (e) {
                                try {
                                  c(n.throw(e))
                                } catch (e) {
                                  i(e)
                                }
                              },
                              c = function (e) {
                                return e.done ? a(e.value) : Promise.resolve(e.value).then(r, o)
                              }
                            c((n = n.apply(e, t)).next())
                          })
                        })(
                          void 0,
                          null,
                          t().mark(function n() {
                            var a, i, r, o, l, s, u, d, m
                            return t().wrap(function (t) {
                              for (;;)
                                switch ((t.prev = t.next)) {
                                  case 0:
                                    if (null == c ? void 0 : c.length) {
                                      t.next = 2
                                      break
                                    }
                                    return t.abrupt('return')
                                  case 2:
                                    if (!((null == c ? void 0 : c.length) < p)) {
                                      t.next = 4
                                      break
                                    }
                                    return t.abrupt('return')
                                  case 4:
                                    if (
                                      ((a = e.detail),
                                      (r = (i = void 0 === a ? {} : a).scrollWidth),
                                      (o = void 0 === r ? 0 : r),
                                      (l = i.scrollLeft),
                                      (s = void 0 === l ? 0 : l),
                                      (u = o / c.length),
                                      !(k <= 0))
                                    ) {
                                      t.next = 12
                                      break
                                    }
                                    return (t.next = 9), (0, Tt.A)(null == N ? void 0 : N.current)
                                  case 9:
                                    ;(d = t.sent), (m = d.width), S(m), (u = m / c.length)
                                  case 12:
                                    w(s + k >= p * u)
                                  case 13:
                                  case 'end':
                                    return t.stop()
                                }
                            }, n)
                          }),
                        )
                      },
                      ref: N,
                    },
                    c.map(function (e, t) {
                      return (function (e, t) {
                        var n = e.comment,
                          a = void 0 === n ? '' : n,
                          i = e.picUrl,
                          r = void 0 === i ? '' : i,
                          o = e.userPic,
                          c = void 0 === o ? '' : o,
                          l = e.nickName,
                          s = void 0 === l ? '' : l,
                          u = e.showVideoIcon,
                          m = void 0 === u ? 'false' : u,
                          p = e.id,
                          v = void 0 === p ? t : p,
                          h = e.type,
                          g = h
                        return (
                          'STRATEGY' === h ? (g = 0) : 'GROUP' === h && (g = 1),
                          d.createElement(
                            He.A,
                            {
                              className: ''.concat(Mt, '-item'),
                              key: v,
                              onClick: function (n) {
                                f
                                  ? f(n, e)
                                  : (0, ct.VJ)({
                                      page: 'shows_content_detail',
                                      query: {
                                        contentId: null == e ? void 0 : e.id,
                                        spm: ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.tips.item_').concat(t),
                                      },
                                    })
                              },
                              dynamicData: { content_id: null == e ? void 0 : e.id, type: g },
                            },
                            d.createElement(
                              'div',
                              {
                                className: ''.concat(Mt, '-image'),
                                style: {
                                  background: 'url('.concat((0, Me.zp)({ url: r }), ')'),
                                  backgroundSize: 'cover',
                                  backgroundPosition: 'center',
                                },
                              },
                              'true' === m && d.createElement('div', { className: 'video-icon' }),
                            ),
                            d.createElement(
                              'div',
                              { className: ''.concat(Mt, '-content-wrap') },
                              d.createElement('div', { className: ''.concat(Mt, '-content ellipsis') }, a),
                            ),
                            d.createElement(
                              'div',
                              { className: ''.concat(Mt, '-user') },
                              d.createElement('img', { className: ''.concat(Mt, '-user-img'), src: c, alt: '' }),
                              d.createElement('div', { className: ''.concat(Mt, '-user-name') }, s),
                            ),
                          )
                        )
                      })(e, t)
                    }),
                  ),
                )
          }),
          Ht = l(1126),
          Bt = (0, lt.A)(
            '<path d="M72 0c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H24C10.745 96 0 85.255 0 72V24C0 10.745 10.745 0 24 0h48ZM50.17 11.417a5.04 5.04 0 0 0-6.462 1.966l-.242.455-7.274 15.497a5.04 5.04 0 0 1-3.257 2.726l-.544.114-16.667 2.547a5.04 5.04 0 0 0-3.208 8.088l.362.414 12.374 12.682a5.04 5.04 0 0 1 1.428 3.739l-.061.592-2.877 17.638a5.04 5.04 0 0 0 6.917 5.462l.495-.24 14.436-7.98a5.04 5.04 0 0 1 4.36-.248l.516.248 14.436 7.98a5.04 5.04 0 0 0 7.47-4.71l-.057-.512-2.877-17.638a5.04 5.04 0 0 1 .976-3.88l.39-.45 12.374-12.683a5.04 5.04 0 0 0-2.34-8.399l-.506-.103-16.667-2.547a5.04 5.04 0 0 1-3.537-2.35l-.264-.49-7.273-15.497a5.04 5.04 0 0 0-2.421-2.42Z"/>',
            'StarRoundedFilledIcon',
          ),
          Vt = (0, lt.A)(
            '<path d="M58.3 38.3c1.6-7 2.6-12 3.3-15.1C63.1 15.3 59.1 8 51 8c-7.2 0-10.9 3.6-13 10.8v.2c-1.3 5.8-3.3 10.3-5.9 13.6-2.8 3.4-6.9 5.4-11.2 5.5h-2.1c-4.9.1-8.8 4.1-8.8 9.1V77c0 6.1 4.9 11 10.9 11h38.7c7.9 0 15-5 17.7-12.6l8-22.5c2-5.7-.9-12-6.6-14.1-1.2-.4-2.4-.7-3.7-.7H58.3z"/>',
            'ThumbUpFilledIcon',
          ),
          zt = (0, lt.A)(
            '<path d="M58.3 38.3c1.6-7 2.6-12 3.3-15.1C63.1 15.3 59.1 8 51 8c-7.2 0-10.9 3.6-13 10.8v.2c-1.3 5.8-3.3 10.3-5.9 13.6-2.8 3.4-6.9 5.4-11.2 5.5h-2.1c-4.9.1-8.8 4.1-8.8 9.1V77c0 6.1 4.9 11 10.9 11h38.7c7.9 0 15-5 17.7-12.6l8-22.5c2-5.7-.9-12-6.6-14.1-1.2-.4-2.4-.7-3.7-.7H58.3zM51 14c3.7 0 5.6 3.4 4.7 8-.7 3.6-2.1 9.8-4.1 18.6-.4 1.9 1 3.7 2.9 3.7H75c.6 0 1.1.1 1.7.3 2.6.9 3.9 3.8 3 6.4l-8 22.5C69.8 78.6 65 82 59.6 82H21c-2.7 0-5-2.2-5-5V47.2c0-1.7 1.3-3 3-3.1h2.1c6.1-.1 11.8-3 15.7-7.7 3.2-4 5.5-9.3 7-15.9 1.4-4.9 3-6.5 7.2-6.5z"/>',
            'ThumbUpOutlinedIcon',
          ),
          Ut = (0, lt.A)(
            '<path d="M81.2 70.4c1-1.8 1.7-2.9 2-3.6C86.4 61.1 88 54.7 88 48 88 25.9 70.1 8 48 8S8 25.9 8 48s17.9 40 40 40c7.3 0 14.4-2 20.5-5.7.2-.1.9-.5 1.9-1.1l9.8 2.7c2.2.6 4.3-1.4 3.7-3.7l-2.7-9.8zm-6.1.4 1.6 5.9-5.9-1.6c-.8-.2-1.6-.1-2.3.3-1.7 1-2.7 1.6-3 1.8C60.2 80.3 54.2 82 48 82c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34c0 5.7-1.4 11.2-4 16-.3.6-1.2 2.1-2.6 4.4-.4.8-.5 1.6-.3 2.4z"/>',
            'ChatOutlinedIcon',
          ),
          Wt = (0, lt.A)(
            '<path d="M19 24h-4c-1.7 0-3-1.3-3-3s1.3-3 3-3h66c1.7 0 3 1.3 3 3s-1.3 3-3 3H25v53c0 2.8 2.2 5 5 5h36c2.8 0 5-2.2 5-5V22.8c0-1.7 1.3-3 3-3s3 1.3 3 3V77c0 6.1-4.9 11-11 11H30c-6.1 0-11-4.9-11-11V24zm21-10c-1.7 0-3-1.3-3-3s1.3-3 3-3h16c1.7 0 3 1.3 3 3s-1.3 3-3 3H40zm-3 27c0-1.7 1.3-3 3-3s3 1.3 3 3v24c0 1.7-1.3 3-3 3s-3-1.3-3-3V41zm16 0c0-1.7 1.3-3 3-3s3 1.3 3 3v24c0 1.7-1.3 3-3 3s-3-1.3-3-3V41z"/>',
            'DeleteOutlinedIcon',
          ),
          qt = function (e) {
            var t = e.isShow,
              n = void 0 === t || t,
              a = e.time,
              i = void 0 === a ? '' : a,
              r = e.cityName,
              o = void 0 === r ? '' : r,
              c = e.replyTotal,
              l = e.praiseTotal,
              s = e.hideActionBtn,
              u = void 0 !== s && s,
              m = e.showReply,
              p = void 0 === m || m,
              f = e.showDelete,
              v = void 0 !== f && f,
              h = e.isPraised,
              g = void 0 !== h && h,
              y = e.onReplyClick,
              b = e.onPraiseClick,
              w = e.onDeleteClick,
              N = e.replyDataLog
            return n
              ? d.createElement(
                  'div',
                  { className: 'action-info' },
                  d.createElement('div', { className: 'info' }, i, ' ', o),
                  !u &&
                    d.createElement(
                      'div',
                      { className: 'action' },
                      d.createElement(
                        'div',
                        {
                          className: 'praise',
                          onClick: function (e) {
                            b && (e.stopPropagation(), b(g))
                          },
                        },
                        g && d.createElement(Vt, { htmlColor: '#FF2869', className: 'action-info-img' }),
                        !g &&
                          d.createElement(He.A, {
                            Component: zt,
                            className: 'action-info-img action-info-img-exp-like',
                          }),
                        d.createElement('div', { className: 'count' }, Number(l || '0') > 0 ? l : '点赞'),
                      ),
                      p &&
                        d.createElement(
                          'div',
                          {
                            className: 'reply',
                            'data-log': N,
                            onClick: function (e) {
                              y && (e.stopPropagation(), y())
                            },
                          },
                          d.createElement(Ut, { className: 'action-info-img' }),
                          d.createElement('div', { className: 'count' }, Number(c || '0') > 0 ? c : '回复'),
                        ),
                      v
                        ? d.createElement(
                            'div',
                            {
                              className: 'delete',
                              onClick: function (e) {
                                w && (e.stopPropagation(), w())
                              },
                            },
                            d.createElement(Wt, { size: 'medium', htmlColor: '#2e333e' }),
                          )
                        : null,
                    ),
                )
              : null
          },
          $t = (0, Ve.jZ)(),
          Jt = function (e) {
            var t = (0, d.useState)(!1),
              a = n(t, 2),
              i = a[0],
              r = a[1],
              o = (0, d.useState)(!1),
              c = n(o, 2),
              l = c[0],
              s = c[1],
              u = (0, d.useRef)(null),
              m = (0, d.useRef)(null),
              p = e.title,
              f = e.contentDesc,
              v = e.growTxt,
              h = void 0 === v ? '查看全文' : v,
              g = e.shrinkTxt,
              y = void 0 === g ? '收起' : g,
              b = e.contentShrink,
              w = void 0 === b || b,
              N = e.isContentRetract,
              A = void 0 !== N && N,
              E = e.onContentClick,
              k = e.onExpandClick
            return (
              (0, d.useEffect)(function () {
                $t
                  ? setTimeout(function () {
                      var e, t
                      null == (t = null == (e = null == m ? void 0 : m.current) ? void 0 : e.getBoundingClientRect) ||
                        t.call(e).then(function (e) {
                          s((null == e ? void 0 : e.height) > 100)
                        })
                    }, 300)
                  : w && s(u.current.scrollHeight !== u.current.clientHeight)
              }, []),
              d.createElement(
                He.A,
                {
                  className: 'bui-show-comment-content-info',
                  onClick: function (e) {
                    E && (e.stopPropagation(), E(), null == k || k())
                  },
                },
                d.createElement(
                  'div',
                  {
                    ref: u,
                    className: (0, Fe.A)(
                      !w || i ? 'bui-show-comment-content-info-expand' : 'bui-show-comment-content-info-normal',
                    ),
                  },
                  p && d.createElement('div', { className: (0, Fe.A)('title') }, p),
                  f,
                ),
                $t && d.createElement('div', { ref: m, className: 'bui-show-comment-content-info-mini-content' }, f),
                w && l
                  ? d.createElement(
                      d.Fragment,
                      null,
                      !i &&
                        d.createElement(
                          'div',
                          {
                            className: 'bui-show-comment-content-info-more',
                            onClick: function (e) {
                              e.stopPropagation(), r(!0)
                            },
                          },
                          h,
                        ),
                      i &&
                        A &&
                        d.createElement(
                          'div',
                          {
                            className: 'bui-show-comment-content-info-more',
                            onClick: function (e) {
                              e.stopPropagation(), r(!1)
                            },
                          },
                          y,
                        ),
                    )
                  : null,
              )
            )
          },
          Gt = 'https://gw.alicdn.com/imgextra/i2/O1CN01rMauNU1g8TbqvB4oD_!!6000000004097-2-tps-69-104.png',
          Yt = 'https://gw.alicdn.com/imgextra/i4/O1CN01YYieBb1iLsQdJDbAP_!!6000000004397-2-tps-69-104.png',
          Xt = function (e) {
            var t = e.isShow,
              n = void 0 !== t && t,
              a = e.list,
              i = void 0 === a ? [] : a,
              r = e.isFeatured,
              o = e.children
            return n
              ? d.createElement(
                  'div',
                  { className: 'grade-detail-warp' },
                  d.createElement(
                    'div',
                    { className: 'grade-detail' },
                    o,
                    d.createElement(
                      'div',
                      { className: 'grade-desc' },
                      i.map(function (e, t) {
                        return d.createElement('span', { key: t }, e)
                      }),
                    ),
                  ),
                  r ? d.createElement('img', { className: 'featured', src: ze.Hk ? Gt : Yt, alt: '' }) : null,
                )
              : null
          },
          Zt = (function (e) {
            return (e.store = '1'), (e.script = '2'), e
          })(Zt || {}),
          Qt = l(9399),
          Kt = l.n(Qt),
          en = l(3919).document,
          tn = function (e) {
            var t = e.list,
              a = void 0 === t ? [] : t,
              i = e.num,
              r = void 0 === i ? 0 : i,
              o = e.usePreview,
              c = void 0 === o || o,
              l = e.showAll,
              s = void 0 !== l && l,
              u = e.onReferMediaClick,
              m = e.onReferMediaPreviewClick,
              p = e.Preview,
              f = (0, d.useState)('auto'),
              v = n(f, 2),
              h = v[0],
              g = v[1],
              y = (0, d.useState)(!1),
              b = n(y, 2),
              w = b[0],
              N = b[1],
              A = (0, d.useState)(0),
              E = n(A, 2),
              k = E[0],
              S = E[1],
              C = Kt()(a, 3),
              I = s ? C : C.slice(0, 1),
              x = !s && a.length > 3,
              _ = r || a.length,
              D = 1 === a.length
            return a.length > 0
              ? d.createElement(
                  'div',
                  { className: (0, Fe.A)('media-list', D ? 'media-large' : 'media-normal') },
                  I.map(function (e, t) {
                    return d.createElement(
                      'div',
                      { className: 'list', key: t },
                      x ? d.createElement('div', { className: 'num' }, _) : null,
                      Array.from(Array(D ? 1 : 3)).map(function (n, a) {
                        var i,
                          r,
                          o = null == (i = e[a]) ? void 0 : i.videoUrl,
                          l = (null == (r = e[a]) ? void 0 : r.imgUrl) || e[a]
                        return l
                          ? d.createElement(
                              'div',
                              { key: a, className: (0, Fe.A)('media', D ? 'large' : '') },
                              d.createElement(Re.A, {
                                src: l,
                                fit: 'cover',
                                onClick: function (n) {
                                  c
                                    ? (n.stopPropagation(),
                                      S(3 * t + a),
                                      N(!0),
                                      g(en.body.style.overflow),
                                      (en.body.style.overflow = 'hidden'))
                                    : u && (n.stopPropagation(), u(e[a], 3 * t + a))
                                },
                              }),
                              o ? d.createElement('div', { className: 'play-icon' }) : null,
                            )
                          : d.createElement('div', { key: a, className: 'media' })
                      }),
                    )
                  }),
                  c && w && a.length && p
                    ? d.createElement(p, {
                        list: a,
                        index: k,
                        onClose: function () {
                          N(!1), (en.body.style.overflow = h)
                        },
                        onItemClick: function (e, t) {
                          m && m(e, t)
                        },
                      })
                    : null,
                )
              : null
          },
          nn = l(7427),
          an = function (e) {
            var t = e.projectModel,
              n = void 0 === t ? 'default' : t,
              i = e.projectIcon,
              r = e.projectTitle,
              o = e.projectInfo,
              c = e.projectArrow,
              l = e.grade,
              s = e.onProjectClick
            return r
              ? d.createElement(
                  'div',
                  { className: (0, Fe.A)('project-wrap', a({}, 'project-wrap-'.concat(n), n)) },
                  d.createElement(
                    'div',
                    {
                      className: 'project',
                      onClick: function (e) {
                        s && (e.stopPropagation(), s())
                      },
                    },
                    d.createElement('div', {
                      className: 'project-img',
                      style: { backgroundImage: 'url('.concat(i, ')') },
                    }),
                    d.createElement(
                      'div',
                      { className: 'project-desc' },
                      d.createElement('div', { className: 'desc-title' }, r),
                      l &&
                        d.createElement(
                          'div',
                          { className: 'desc-grade' },
                          '大麦评分',
                          d.createElement('span', { className: 'grade-num' }, l),
                        ),
                      d.createElement('div', { className: 'desc-info' }, o),
                    ),
                    c ? d.createElement('div', { className: 'right-arrow' }, d.createElement(nn.A, null)) : null,
                  ),
                )
              : null
          },
          rn = function (e) {
            var t = e.nickname,
              n = void 0 === t ? '' : t,
              a = e.value,
              i = void 0 === a ? '' : a,
              r = e.replyTxt,
              o = void 0 === r ? '回复' : r,
              c = e.prefix,
              l = void 0 === c ? '@' : c,
              s = e.onReplyUserNickClick
            return n && i
              ? d.createElement(
                  'div',
                  { className: 'reply-user' },
                  d.createElement(
                    'span',
                    {
                      onClick: function (e) {
                        s && (e.stopPropagation(), s())
                      },
                    },
                    o,
                    l,
                    n,
                  ),
                  ' '.concat(i),
                )
              : null
          },
          on = function (e) {
            var t = e.isHighLevelUser,
              n = e.isUrbanEntertainer,
              a = e.hideFeature,
              i = e.nickname,
              r = e.avatar,
              o = e.memberLevel,
              c = e.children,
              l = e.isFeatured,
              s = e.isFollowed,
              u = e.showShare,
              m = e.showFollow,
              p = e.onFollowClick,
              f = e.onShareClick,
              v = e.onTitleClick
            return d.createElement(
              'div',
              {
                onClick: function (e) {
                  v && (e.stopPropagation(), v())
                },
              },
              d.createElement(
                'div',
                { className: 'title-info' },
                d.createElement('div', {
                  className: 'avatar',
                  style: {
                    backgroundImage: 'url('.concat(r || '//perico.damai.cn/userheadphotos/927551/185510204.jpg', ')'),
                  },
                }),
                d.createElement(
                  'div',
                  { className: 'title' },
                  d.createElement(
                    'div',
                    { className: 'center' },
                    d.createElement('div', { className: 'nickname' }, i),
                    '10' === o &&
                      d.createElement('img', {
                        className: 'member-level-icon',
                        src: 'https://gw.alicdn.com/imgextra/i3/O1CN01VuNSwa1DYTNylmWR6_!!6000000000228-2-tps-236-45.png',
                        alt: '',
                      }),
                    '1' === o &&
                      d.createElement('img', {
                        className: 'member-level-icon',
                        src: 'https://gw.alicdn.com/imgextra/i2/O1CN01Cy5vsU1b8PcyrsXhR_!!6000000003420-2-tps-236-45.png',
                        alt: '',
                      }),
                    t &&
                      d.createElement('img', {
                        className: 'high-level-icon',
                        src: 'https://gw.alicdn.com/imgextra/i1/O1CN01dFzKst1r6blV1UIO5_!!6000000005582-2-tps-234-58.png',
                        alt: '',
                      }),
                    '10' !== o &&
                      '1' !== o &&
                      n &&
                      d.createElement('img', {
                        className: 'city-level-icon',
                        src: 'https://gw.alicdn.com/imgextra/i1/O1CN01CdG6Mx1I73bNop2tG_!!6000000000845-2-tps-268-58.png',
                        alt: '',
                      }),
                  ),
                  c,
                ),
                u || m || a || !l
                  ? null
                  : d.createElement('img', { className: 'featured', src: ze.Hk ? Gt : Yt, alt: '' }),
                m
                  ? d.createElement(
                      Le.A,
                      {
                        size: 'small',
                        color: s ? void 0 : 'primary',
                        variant: 'contained',
                        onClick: function (e) {
                          p && (e.stopPropagation(), p(s))
                        },
                      },
                      s ? '已关注' : '关注',
                    )
                  : null,
                u
                  ? d.createElement(
                      Le.A,
                      {
                        size: 'small',
                        color: 'primary',
                        variant: 'outlined',
                        onClick: function (e) {
                          f && (e.stopPropagation(), f())
                        },
                      },
                      '分享',
                    )
                  : null,
              ),
            )
          },
          cn = Object.defineProperty,
          ln = Object.getOwnPropertySymbols,
          sn = Object.prototype.hasOwnProperty,
          un = Object.prototype.propertyIsEnumerable,
          dn = function (e, t, n) {
            return t in e ? cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          mn = function (e, t) {
            for (var n in t || (t = {})) sn.call(t, n) && dn(e, n, t[n])
            if (ln) {
              var a,
                r = i(ln(t))
              try {
                for (r.s(); !(a = r.n()).done; ) {
                  n = a.value
                  un.call(t, n) && dn(e, n, t[n])
                }
              } catch (e) {
                r.e(e)
              } finally {
                r.f()
              }
            }
            return e
          },
          pn = d.forwardRef(function (e, t) {
            var n = e,
              a = n.isHighLevelUser,
              r = void 0 !== a && a,
              o = n.isUrbanEntertainer,
              c = void 0 !== o && o,
              l = n.isDetail,
              s = void 0 !== l && l,
              u = n.indent,
              m = void 0 === u || u,
              p = n.userNick,
              f = void 0 === p ? '' : p,
              v = n.userAvatar,
              h = void 0 === v ? '' : v,
              g = n.userMemberLevel,
              y = void 0 === g ? '' : g,
              b = n.isFeatured,
              w = void 0 !== b && b,
              N = n.isFollowed,
              A = void 0 !== N && N,
              E = n.showFollow,
              k = void 0 !== E && E,
              S = n.showShare,
              C = void 0 !== S && S,
              I = n.userVip,
              x = void 0 !== I && I,
              _ = n.hideActionBtn,
              D = void 0 !== _ && _,
              T = n.rankScore,
              j = void 0 === T ? 0 : T,
              O = n.rankDesc,
              P = void 0 === O ? '' : O,
              R = n.rankDetail,
              L = void 0 === R ? [] : R,
              M = n.rankInside,
              F = void 0 !== M && M,
              H = n.title,
              B = void 0 === H ? '' : H,
              V = n.content,
              z = void 0 === V ? '' : V,
              U = n.contentShrink,
              W = void 0 === U || U,
              q = n.replyUserNick,
              $ = void 0 === q ? '' : q,
              J = n.replyContent,
              G = void 0 === J ? '' : J,
              Y = n.referMediaUrls,
              X = void 0 === Y ? [] : Y,
              Z = n.referMediaPreview,
              Q = void 0 !== Z && Z,
              K = n.referMediaShowAll,
              ee = void 0 !== K && K,
              te = n.projectModel,
              ne = n.projectIcon,
              ae = void 0 === ne ? '' : ne,
              ie = n.projectTitle,
              re = void 0 === ie ? '' : ie,
              oe = n.projectInfo,
              ce = void 0 === oe ? '' : oe,
              le = n.projectArrow,
              se = void 0 !== le && le,
              ue = n.grade,
              de = n.isSpoiler,
              me = void 0 !== de && de,
              pe = n.commentTime,
              fe = void 0 === pe ? '' : pe,
              ve = n.cityName,
              he = void 0 === ve ? '' : ve,
              ge = n.isShowActionInfo,
              ye = void 0 === ge || ge,
              be = n.replyTotal,
              we = n.praiseTotal,
              Ne = n.isPraised,
              Ae = void 0 !== Ne && Ne,
              Ee = n.showReply,
              ke = void 0 === Ee || Ee,
              Se = n.showDelete,
              Ce = void 0 !== Se && Se,
              Ie = n.extraContent,
              xe = n.sourceType,
              _e = n.itemType,
              De = n.isContentRetract,
              Te = void 0 !== De && De,
              je = n.onReplyUserNickClick,
              Oe = n.onReplyClick,
              Pe = n.onPraiseClick,
              Re = n.onDeleteClick,
              Le = n.onProjectClick,
              Me = n.onFollowClick,
              Be = n.onShareClick,
              Ve = n.onTitleClick,
              Ue = n.onContentClick,
              We = n.onReferMediaClick,
              qe = n.onReferMediaPreviewClick,
              $e = n.onClick,
              Je = n.onExpandClick,
              Ge = n.className,
              Ye = n.likeDataLog,
              Xe = n.replyDataLog,
              Ze = n.previewDom,
              Qe = (function (e, t) {
                var n = {}
                for (var a in e) sn.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                if (null != e && ln) {
                  var r,
                    o = i(ln(e))
                  try {
                    for (o.s(); !(r = o.n()).done; ) {
                      a = r.value
                      t.indexOf(a) < 0 && un.call(e, a) && (n[a] = e[a])
                    }
                  } catch (e) {
                    o.e(e)
                  } finally {
                    o.f()
                  }
                }
                return n
              })(n, [
                'isHighLevelUser',
                'isUrbanEntertainer',
                'isDetail',
                'indent',
                'userNick',
                'userAvatar',
                'userMemberLevel',
                'isFeatured',
                'isFollowed',
                'showFollow',
                'showShare',
                'userVip',
                'hideActionBtn',
                'rankScore',
                'rankDesc',
                'rankDetail',
                'rankInside',
                'title',
                'content',
                'contentShrink',
                'replyUserNick',
                'replyContent',
                'referMediaUrls',
                'referMediaPreview',
                'referMediaShowAll',
                'projectModel',
                'projectIcon',
                'projectTitle',
                'projectInfo',
                'projectArrow',
                'grade',
                'isSpoiler',
                'commentTime',
                'cityName',
                'isShowActionInfo',
                'replyTotal',
                'praiseTotal',
                'isPraised',
                'showReply',
                'showDelete',
                'extraContent',
                'sourceType',
                'itemType',
                'isContentRetract',
                'onReplyUserNickClick',
                'onReplyClick',
                'onPraiseClick',
                'onDeleteClick',
                'onProjectClick',
                'onFollowClick',
                'onShareClick',
                'onTitleClick',
                'onContentClick',
                'onReferMediaClick',
                'onReferMediaPreviewClick',
                'onClick',
                'onExpandClick',
                'className',
                'likeDataLog',
                'replyDataLog',
                'previewDom',
              ]),
              Ke = _e === Zt.store,
              et = d.createElement(
                'div',
                { className: 'rating-container' },
                d.createElement('div', { className: 'desc' }, P),
                +j > 0
                  ? d.createElement(Ht.A, {
                      value: +j / 2,
                      icon: Ke ? d.createElement(Bt, null) : void 0,
                      checkedIcon: Ke ? d.createElement(Bt, { color: 'warning' }) : void 0,
                      className: Ke ? 'bui-rating-jbs-store' : '',
                      allowHalf: !0,
                      readOnly: !0,
                      size: 'xsmall',
                    })
                  : null,
              ),
              tt = d.createElement('div', { className: 'desc-time' }, fe),
              nt = et
            return (
              s ? (nt = tt) : F && (nt = null),
              d.createElement(
                He.A,
                mn(
                  {
                    className: (0, Fe.A)('bui-show-comment', Ge),
                    ref: t,
                    onClick: function (e) {
                      $e && (e.stopPropagation(), $e())
                    },
                  },
                  Qe,
                ),
                d.createElement(
                  on,
                  {
                    isHighLevelUser: r,
                    isUrbanEntertainer: c,
                    hideFeature: s || F,
                    nickname: f,
                    avatar: h,
                    memberLevel: y,
                    userVip: x,
                    isFeatured: w,
                    isFollowed: A,
                    showFollow: k,
                    showShare: C,
                    onFollowClick: Me,
                    onShareClick: Be,
                    onTitleClick: Ve,
                  },
                  nt,
                ),
                d.createElement(
                  'div',
                  { className: (0, Fe.A)({ indent: m }) },
                  d.createElement(Xt, { isShow: s || F, list: L, isFeatured: w }, et),
                  d.createElement(
                    Jt,
                    mn(
                      {
                        title: B,
                        isContentRetract: Te,
                        contentDesc: z,
                        contentShrink: W,
                        onContentClick: Ue,
                        onExpandClick: Je,
                      },
                      Qe,
                    ),
                  ),
                  d.createElement(rn, { nickname: $, value: G, onReplyUserNickClick: je }),
                  d.createElement(tn, {
                    list: X,
                    usePreview: Q,
                    showAll: ee,
                    onReferMediaClick: We,
                    onReferMediaPreviewClick: qe,
                    Preview: Ze,
                  }),
                  d.createElement(d.Fragment, null, Ie),
                  me && d.createElement('div', { className: 'spoiler' }),
                  d.createElement(an, {
                    projectModel: te,
                    projectIcon: ae,
                    projectTitle: re,
                    projectInfo: ce,
                    projectArrow: se,
                    grade: ue,
                    onProjectClick: Le,
                  }),
                  ((ze.hJ && !s && !!xe && '2' !== xe) || (ze.HM && !s && !!xe && '4' !== xe)) &&
                    d.createElement('div', { className: 'from-tips' }, '来自第三方真实购票用户'),
                  d.createElement(qt, {
                    isShow: ye,
                    time: fe,
                    hideActionBtn: D,
                    cityName: he,
                    replyTotal: be,
                    praiseTotal: we,
                    isPraised: Ae,
                    showReply: ke,
                    showDelete: Ce,
                    likeDataLog: Ye,
                    replyDataLog: Xe,
                    onReplyClick: Oe,
                    onPraiseClick: Pe,
                    onDeleteClick: Re,
                  }),
                ),
              )
            )
          }),
          fn = (0, d.memo)(
            (0, d.forwardRef)(function (e, t) {
              var a = e.className,
                i = e.data,
                r = e.onClick,
                o = (0, d.useState)(),
                c = n(o, 1)[0]
              return d.createElement(
                'div',
                { ref: t, className: (0, Fe.A)('bui-comment-tag', a) },
                i.map(function (e, t) {
                  return d.createElement(
                    He.A,
                    {
                      className: (0, Fe.A)({
                        'bui-hot-review-tag-btn': !0,
                        mark: '99' === e.labelType && t !== c,
                        'bui-hot-review-tag-btn-action': t === c,
                        'bui-hot-review-tag-btn-icon-box': '3' === e.type,
                      }),
                      key: t,
                      onClick: function () {
                        return (function (e, t) {
                          r && r(e, t)
                        })(e, t)
                      },
                      dynamicData: { titlelabel: e.labelName },
                    },
                    d.createElement(
                      'div',
                      { className: 'bui-hot-review-tag-btn-box' },
                      '3' === e.type &&
                        d.createElement('img', {
                          className: 'bui-hot-review-tag-btn-icon',
                          src: 'https://gw.alicdn.com/imgextra/i3/O1CN01BtkqAk1dsKOH0mAm3_!!6000000003791-2-tps-45-40.png',
                          alt: '',
                        }),
                      d.createElement('span', { className: 'bui-hot-review-tag-btn-label-name' }, e.labelName),
                    ),
                  )
                }),
              )
            }),
          )
        fn.displayName = 'BuiCommentTag'
        var vn = fn,
          hn = l(6182),
          gn = function (e) {
            var t = !1
            return e.confirm && (t = !0), { ok: t }
          },
          yn = function (e) {
            var t = e.title,
              n = e.message,
              a = e.okbutton,
              i = e.cancelbutton
            return (0, hn.W)('showModal', { title: t, content: n, confirmText: a, cancelText: i }, gn)
          },
          bn = l(8765),
          wn = Object.defineProperty,
          Nn = Object.defineProperties,
          An = Object.getOwnPropertyDescriptors,
          En = Object.getOwnPropertySymbols,
          kn = Object.prototype.hasOwnProperty,
          Sn = Object.prototype.propertyIsEnumerable,
          Cn = function (e, t, n) {
            return t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          In = function (e, t) {
            for (var n in t || (t = {})) kn.call(t, n) && Cn(e, n, t[n])
            if (En) {
              var a,
                r = i(En(t))
              try {
                for (r.s(); !(a = r.n()).done; ) {
                  n = a.value
                  Sn.call(t, n) && Cn(e, n, t[n])
                }
              } catch (e) {
                r.e(e)
              } finally {
                r.f()
              }
            }
            return e
          },
          xn = function (e, t) {
            return Nn(e, An(t))
          },
          _n = '3',
          Dn = Object.defineProperty,
          Tn = Object.defineProperties,
          jn = Object.getOwnPropertyDescriptors,
          On = Object.getOwnPropertySymbols,
          Pn = Object.prototype.hasOwnProperty,
          Rn = Object.prototype.propertyIsEnumerable,
          Ln = function (e, t, n) {
            return t in e ? Dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Mn = function (e, t) {
            for (var n in t || (t = {})) Pn.call(t, n) && Ln(e, n, t[n])
            if (On) {
              var a,
                r = i(On(t))
              try {
                for (r.s(); !(a = r.n()).done; ) {
                  n = a.value
                  Rn.call(t, n) && Ln(e, n, t[n])
                }
              } catch (e) {
                r.e(e)
              } finally {
                r.f()
              }
            }
            return e
          },
          Fn = function (e, t) {
            return Tn(e, jn(t))
          },
          Hn = { api: 'mtop.damai.wireless.locallife.comment.module.get', v: '1.1', ecode: 0 },
          Bn = { api: 'mtop.damai.wireless.comment.module.get', v: '1.2', ecode: 0 },
          Vn = { api: 'mtop.damai.wireless.locallife.comment.praise', v: '1.0', ecode: 1 },
          zn = { api: 'mtop.damai.wireless.comment.praise', v: '1.0', ecode: 1 },
          Un = { api: 'mtop.damai.wireless.comment.delete', v: '1.0' },
          Wn = { api: 'mtop.damai.wireless.locallife.comment.delete', v: '1.0' },
          qn = function (e) {
            var t = e.tourId,
              a = e.itemId,
              i = e.ipId,
              r = e.categoryId,
              o = e.isInit,
              c = void 0 === o || o,
              l = (0, d.useState)({}),
              s = n(l, 2),
              u = s[0],
              m = s[1],
              p = Pe.A.mtop,
              f = ze.ND || ze.HM,
              v = f ? Hn : Bn,
              h = f ? Vn : zn,
              g = f ? Wn : Un,
              y = 9,
              b = 32
            ze.HM ? ((y = 10), (b = 100)) : ze.ND && ((y = 8), (b = 94))
            var w = function () {
              p.call({
                requestOptions: Fn(Mn({}, v), {
                  data: {
                    tourId: t,
                    itemId: a,
                    ipId: i,
                    categoryId: r,
                    moduleType: y,
                    commentType: b,
                    pageIndex: 1,
                    pageSize: 3,
                    isQueryHotComment: !0,
                  },
                }),
              })
                .then(function (e) {
                  var t = e.data,
                    n = (function () {
                      var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []
                      return e.map(function (e) {
                        var t,
                          n,
                          a,
                          i = e || {},
                          r = i.itemType,
                          o = i.userDO,
                          c = i.gmtDisplay,
                          l = i.feature,
                          s = i.textDOList,
                          u = i.imageDOList,
                          d = void 0 === u ? [] : u,
                          m = i.gradeDOList,
                          p = void 0 === m ? [] : m,
                          f = i.praiseInfo,
                          v = i.replyTotal,
                          h = i.hideInteraction,
                          g = i.spoilerType,
                          y = i.videoDO,
                          b = i.sourceType,
                          w = d
                            .filter(function (e) {
                              return e.url
                            })
                            .map(function (e) {
                              return { imgUrl: e.url }
                            })
                        return (
                          (null == y ? void 0 : y.url) && w.unshift({ imgUrl: y.coverUrl, videoUrl: y.url }),
                          xn(In({}, e), {
                            headerImage: (0, Me.zp)({ url: (null == o ? void 0 : o.headerImage) || '' }),
                            userNick: o.nickname,
                            userAvatar: o.headerImage,
                            userVip: 'true' === o.vip,
                            userMemberLevel: null == (t = o.performFilmVipDO) ? void 0 : t.memberFlag,
                            isHighLevelUser: o.userTypeCode === _n && ['2', '1'].includes(r),
                            isUrbanEntertainer: o.userTypeCode === _n && !r,
                            commentTime: c,
                            isFeatured: 'true' === l,
                            content: null == s ? void 0 : s[0].value,
                            referMediaUrls: w,
                            hideActionBtn: 'true' === h || (ze.hJ && '2' !== b) || (ze.HM && '4' !== b),
                            isSpoiler: 'true' === g,
                            rankScore: null == (n = p[0]) ? void 0 : n.value,
                            rankDesc: null == (a = p[0]) ? void 0 : a.valueDesc,
                            praiseInfo: f,
                            praiseTotal: +f.praiseCount,
                            isPraised: 'true' === f.hasPraised,
                            replyTotal: v,
                          })
                        )
                      })
                    })(t.moduleComments)
                  m({
                    status: 'success',
                    total: (null == t ? void 0 : t.total) || 0,
                    commentTag: (null == t ? void 0 : t.contentLabelInfo) || [],
                    commentList: n || [],
                  })
                })
                .catch(function (e) {
                  m({ status: 'failed', total: 0, commentTag: [], commentList: [] })
                })
            }
            return (
              (0, d.useEffect)(function () {
                c && w()
              }, []),
              {
                commentData: u,
                onRefreshData: function () {
                  w()
                },
                setCommentData: m,
                onCommentPraise: function (e, t) {
                  p.call({ requestOptions: Fn(Mn({}, h), { data: e }) })
                    .then(function () {
                      t({ status: !0 })
                    })
                    .catch(function (e) {
                      t({ status: !1 })
                    })
                },
                onDeleteComment: function (e) {
                  !(function () {
                    for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
                    var a,
                      i = t[0],
                      r = t[1]
                    void 0 === r && 'function' == typeof i && ((r = i), (i = void 0)),
                      (a = yn) || (a = bn.r1),
                      r && 'function' == typeof r
                        ? new Promise(function (e, t) {
                            var n = i ? a(i) : a()
                            n &&
                              n.then &&
                              n
                                .then(
                                  function (t) {
                                    return r(t), e(t)
                                  },
                                  function (e) {
                                    return r(e), t(e)
                                  },
                                )
                                .catch(function () {
                                  r({ message: '调用失败~' })
                                })
                          })
                        : a(i)
                  })(
                    { useH5: !0, title: '', message: '确定删除该留言信息吗？', okbutton: '确定', cancelbutton: '取消' },
                    function (t) {
                      t.ok &&
                        p
                          .call({ requestOptions: Fn(Mn({}, g), { data: e }) })
                          .then(function (t) {
                            t &&
                              (m(function (t) {
                                return (
                                  (t.commentList = t.commentList.filter(function (t) {
                                    return t.commentId !== e.commentId
                                  })),
                                  --t.total,
                                  Mn({}, t)
                                )
                              }),
                              (0, pe.o)({ message: '删除成功', useH5: !0 }))
                          })
                          .catch(function (e) {
                            ;(null == e ? void 0 : e.message) && (0, pe.o)({ message: e.message, useH5: !0 })
                          })
                    },
                  )
                },
              }
            )
          },
          $n = Object.defineProperty,
          Jn = Object.getOwnPropertySymbols,
          Gn = Object.prototype.hasOwnProperty,
          Yn = Object.prototype.propertyIsEnumerable,
          Xn = function (e, t, n) {
            return t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Zn = (0, d.memo)(
            (0, d.forwardRef)(function (t, a) {
              var r,
                o = t,
                c = o.className,
                l = o.isInit,
                s = void 0 === l || l,
                u = o.tourId,
                m = o.itemId,
                p = o.ipId,
                f = o.categoryId,
                v = o.isContentRetract,
                h = o.referMediaPreview,
                g = o.onCommentTagClick,
                y = o.onCommentItemClick,
                b = o.onCommentMoreClick,
                w = (function (e, t) {
                  var n = {}
                  for (var a in e) Gn.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                  if (null != e && Jn) {
                    var r,
                      o = i(Jn(e))
                    try {
                      for (o.s(); !(r = o.n()).done; ) {
                        a = r.value
                        t.indexOf(a) < 0 && Yn.call(e, a) && (n[a] = e[a])
                      }
                    } catch (e) {
                      o.e(e)
                    } finally {
                      o.f()
                    }
                  }
                  return n
                })(o, [
                  'className',
                  'isInit',
                  'tourId',
                  'itemId',
                  'ipId',
                  'categoryId',
                  'isContentRetract',
                  'referMediaPreview',
                  'onCommentTagClick',
                  'onCommentItemClick',
                  'onCommentMoreClick',
                ]),
                N = (0, d.useState)(!1),
                A = n(N, 2),
                E = A[0],
                k = A[1],
                S = qn({ tourId: u, itemId: m, ipId: p, categoryId: f, isInit: s }),
                C = S.commentData,
                I = S.setCommentData,
                x = S.onDeleteComment,
                _ = S.onRefreshData,
                D = S.onCommentPraise
              if (
                ((0, d.useImperativeHandle)(a, function () {
                  return {
                    refreshDataChange: function () {
                      _()
                    },
                  }
                }),
                'success' !== (null == C ? void 0 : C.status))
              )
                return null
              var T = function (e, t) {
                  var n
                  if (!E) {
                    k(!0)
                    var a =
                      'true' === ''.concat(null == (n = null == e ? void 0 : e.praiseInfo) ? void 0 : n.hasPraised)
                    D({ targetId: null == e ? void 0 : e.commentId, targetType: 1, operate: a ? 1 : 0 }, function (e) {
                      k(!1),
                        e.status &&
                          I(function (e) {
                            var n,
                              i,
                              r =
                                (null == (i = null == (n = e.commentList[t]) ? void 0 : n.praiseInfo)
                                  ? void 0
                                  : i.praiseCount) || 0
                            if (a) {
                              var o = 1 * r - 1 < 0 ? 0 : 1 * r - 1
                              ;(e.commentList[t].praiseInfo.praiseCount = o),
                                (e.commentList[t].praiseInfo.hasPraised = !1)
                            } else {
                              var c = 1 * r + 1
                              ;(e.commentList[t].praiseInfo.praiseCount = c),
                                (e.commentList[t].praiseInfo.hasPraised = !0)
                            }
                            return e
                          })
                    })
                  }
                },
                j = function (e) {
                  x(e)
                },
                O = function (e, t) {
                  var n = { projectId: m, ipId: p, tourId: u }
                  e
                    ? ((n.labelType = e.labelType),
                      (n.tagType = e.type),
                      (n.spm = ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.evaluate.tag_').concat(t)))
                    : (n.spm = ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.score.more')),
                    (0, ct.VJ)({ page: 'shows_all_comment', query: n })
                }
              return (null == C ? void 0 : C.total) <= 0
                ? null
                : d.createElement(
                    He.A,
                    (function (e, t) {
                      for (var n in t || (t = {})) Gn.call(t, n) && Xn(e, n, t[n])
                      if (Jn) {
                        var a,
                          r = i(Jn(t))
                        try {
                          for (r.s(); !(a = r.n()).done; ) {
                            n = a.value
                            Yn.call(t, n) && Xn(e, n, t[n])
                          }
                        } catch (e) {
                          r.e(e)
                        } finally {
                          r.f()
                        }
                      }
                      return e
                    })({ className: (0, Fe.A)('bui-hot-review', c) }, w),
                    d.createElement(
                      'div',
                      { className: 'bui-hot-review-top' },
                      d.createElement('div', { className: 'bui-hot-review-title' }, '观众热评'),
                      d.createElement(vn, {
                        data: null == C ? void 0 : C.commentTag,
                        onClick: function (e, t) {
                          g ? g(e, t) : O(e, t)
                        },
                      }),
                    ),
                    null == (r = null == C ? void 0 : C.commentList)
                      ? void 0
                      : r.map(function (t, n) {
                          var a,
                            i,
                            r,
                            o,
                            c,
                            l = t.userDO,
                            s = void 0 === l ? {} : l,
                            u = t.gradeDOList,
                            m = t.title,
                            p = t.textDOList,
                            f = t.replyTotal,
                            g = t.praiseInfo,
                            b = t.gmtDisplay,
                            w = t.cityName,
                            N = t.videoDO,
                            A = t.imageDOList,
                            E = t.sourceType,
                            k = [].concat(
                              e(
                                N
                                  ? [{ imgUrl: (0, Me.zp)({ url: N.coverUrl }), videoUrl: (0, Me.zp)({ url: N.url }) }]
                                  : [],
                              ),
                              e(
                                A
                                  ? A.map(function (e) {
                                      return { imgUrl: (0, Me.zp)({ url: e.url }) }
                                    })
                                  : [],
                              ),
                            )
                          return d.createElement(He.A, {
                            Component: pn,
                            key: n,
                            dynamicData: {
                              evaluate_id: null == t ? void 0 : t.commentId,
                              publiser_id: null == (a = null == t ? void 0 : t.userDO) ? void 0 : a.havanaIdStr,
                            },
                            onClick: function () {
                              y
                                ? y(t, n)
                                : (function (e, t) {
                                    ;(0, ct.VJ)({
                                      page: 'shows_comment_detail',
                                      query: {
                                        mainCommentId: e.commentId,
                                        commentType: 32,
                                        spm: ''
                                          .concat(Pe.A.spmA, '.')
                                          .concat(Pe.A.spmB, '.evaluate.comment_')
                                          .concat(t),
                                      },
                                    })
                                  })(t, n)
                            },
                            isContentRetract: v,
                            referMediaPreview: h,
                            isFeatured: t.isFeatured,
                            userNick: s.nickname,
                            userVip: t.userVip,
                            userAvatar: s.headerImage,
                            rankScore: null == (i = null == u ? void 0 : u[0]) ? void 0 : i.value,
                            rankDesc: null == (r = null == u ? void 0 : u[0]) ? void 0 : r.valueDesc,
                            referMediaUrls: k,
                            title: m,
                            content: null == (o = null == p ? void 0 : p[0]) ? void 0 : o.value,
                            replyTotal: f,
                            praiseTotal: null == g ? void 0 : g.praiseCount,
                            commentTime: b,
                            isPraised: g.hasPraised,
                            contentShrink: !0,
                            onPraiseClick: function () {
                              return T(t, n)
                            },
                            onDeleteClick: function () {
                              return j(t)
                            },
                            cityName: w,
                            userMemberLevel:
                              null == (c = null == s ? void 0 : s.performFilmVipDO) ? void 0 : c.memberFlag,
                            isHighLevelUser: t.isHighLevelUser,
                            isUrbanEntertainer: t.isUrbanEntertainer,
                            hideActionBtn: t.hideActionBtn,
                            sourceType: E,
                          })
                        }),
                    d.createElement(
                      He.A,
                      {
                        className: 'bui-hot-review-bottom',
                        onClick: function () {
                          b ? b() : O()
                        },
                      },
                      '全部',
                      null == C ? void 0 : C.total,
                      '条评价',
                    ),
                  )
            }),
          )
        Zn.displayName = 'BuiHotReview'
        var Qn = Zn,
          Kn = l(5215),
          ea = l(8273),
          ta = l(2614),
          na = l(7698),
          aa = Object.defineProperty,
          ia = Object.defineProperties,
          ra = Object.getOwnPropertyDescriptors,
          oa = Object.getOwnPropertySymbols,
          ca = Object.prototype.hasOwnProperty,
          la = Object.prototype.propertyIsEnumerable,
          sa = function (e, t, n) {
            return t in e ? aa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          ua = (0, d.forwardRef)(function (e, t) {
            var n = e,
              a = n.onClick,
              r = n.onAppear,
              o = n.onShowAndHide,
              c = n.onFirstAppear,
              l = n.onDisappear,
              s = n.children,
              u = (function (e, t) {
                var n = {}
                for (var a in e) ca.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                if (null != e && oa) {
                  var r,
                    o = i(oa(e))
                  try {
                    for (o.s(); !(r = o.n()).done; ) {
                      a = r.value
                      t.indexOf(a) < 0 && la.call(e, a) && (n[a] = e[a])
                    }
                  } catch (e) {
                    o.e(e)
                  } finally {
                    o.f()
                  }
                }
                return n
              })(n, ['onClick', 'onAppear', 'onShowAndHide', 'onFirstAppear', 'onDisappear', 'children']),
              m = (0, d.useRef)(0),
              p = (0, d.useRef)(null)
            ;(0, d.useImperativeHandle)(t, function () {
              return p.current
            })
            var f = r
            return (
              c &&
                (f = function (e) {
                  r && r(e), m.current <= 0 && ((m.current += 1), c && c(e)), o && o(!0, e)
                }),
              (0, d.useEffect)(function () {
                var e,
                  t,
                  n = function (e) {
                    f && f(e)
                  },
                  a = function (e) {
                    l && l(e), o && o(!1, e)
                  }
                return (
                  f && (null == (e = p.current) || e.addEventListener('appear', n)),
                  l && (null == (t = p.current) || t.addEventListener('disappear', a)),
                  function () {
                    var e, t
                    f && (null == (e = p.current) || e.removeEventListener('appear', n)),
                      l && (null == (t = p.current) || t.removeEventListener('disappear', a))
                  }
                )
              }),
              d.createElement(
                'div',
                (function (e, t) {
                  return ia(e, ra(t))
                })(
                  (function (e, t) {
                    for (var n in t || (t = {})) ca.call(t, n) && sa(e, n, t[n])
                    if (oa) {
                      var a,
                        r = i(oa(t))
                      try {
                        for (r.s(); !(a = r.n()).done; ) {
                          n = a.value
                          la.call(t, n) && sa(e, n, t[n])
                        }
                      } catch (e) {
                        r.e(e)
                      } finally {
                        r.f()
                      }
                    }
                    return e
                  })({}, u),
                  {
                    ref: p,
                    onClick: function (e) {
                      a && a(e)
                    },
                  },
                ),
                s,
              )
            )
          }),
          da = Object.defineProperty,
          ma = Object.defineProperties,
          pa = Object.getOwnPropertyDescriptors,
          fa = Object.getOwnPropertySymbols,
          va = Object.prototype.hasOwnProperty,
          ha = Object.prototype.propertyIsEnumerable,
          ga = function (e, t, n) {
            return t in e ? da(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          ya = function (e, t) {
            for (var n in t || (t = {})) va.call(t, n) && ga(e, n, t[n])
            if (fa) {
              var a,
                r = i(fa(t))
              try {
                for (r.s(); !(a = r.n()).done; ) {
                  n = a.value
                  ha.call(t, n) && ga(e, n, t[n])
                }
              } catch (e) {
                r.e(e)
              } finally {
                r.f()
              }
            }
            return e
          },
          ba = 'bui-waterfall',
          wa = function (e) {
            for (
              var t = e.renderItem,
                n = void 0 === t ? function () {} : t,
                a = e.dataSource,
                i = e.columnCount,
                r = void 0 === i ? 1 : i,
                o = e.wrapStyle,
                c = void 0 === o ? {} : o,
                l = e.columnStyle,
                s = void 0 === l ? {} : l,
                u = [],
                m = {},
                p = 0;
              p < r;
              p++
            )
              (u[p] = []), (m[p] = 0)
            return (
              a &&
                a.forEach(function (e) {
                  var t = (function (e) {
                    return Object.keys(e).reduce(function (t, n) {
                      return t || (t = n), e[t] > e[n] ? n : t
                    }, null)
                  })(m)
                  u[t].push(e), (m[t] += Number(e.height || 0))
                }),
              d.createElement(
                ua,
                { className: ''.concat(ba, '-wrap'), style: c },
                u.map(function (e, t) {
                  return d.createElement(
                    ua,
                    { key: ''.concat(ba, '-column-').concat(t), className: ''.concat(ba, '-column'), style: s },
                    e.map(function (e, t) {
                      return n(e, t)
                    }),
                  )
                }),
              )
            )
          },
          Na = (0, d.forwardRef)(function (e, t) {
            var n = e.renderHeader,
              a = e.renderFooter,
              i = 'function' == typeof n ? n() : [],
              r = 'function' == typeof a ? a() : []
            ;(i = Array.isArray(i) ? i : [i]), (r = Array.isArray(r) ? r : [r])
            var o = []
            return (
              (o = o.concat(
                i.map(function (e, t) {
                  return d.createElement(
                    ua,
                    { className: ''.concat(ba, '-header'), key: ''.concat(ba, "-header-'").concat(t) },
                    e,
                  )
                }),
                d.createElement(wa, ya({ key: ''.concat(ba, '-wrap') }, e)),
                r.map(function (e, t) {
                  return d.createElement(
                    ua,
                    { className: ''.concat(ba, '-footer'), key: ''.concat(ba, "-footer-'").concat(t) },
                    e,
                  )
                }),
              )),
              d.createElement(
                Dt.A,
                (function (e, t) {
                  return ma(e, pa(t))
                })(ya({ scrollY: !0 }, e), { ref: t }),
                o,
              )
            )
          })
        Na.defaultProps = { wrapStyle: {}, columnStyle: {}, columnCount: 1 }
        var Aa = Na,
          Ea = l(9152),
          ka = l(3566),
          Sa = l(3021),
          Ca = l.n(Sa),
          Ia = l(2686),
          xa = l.n(Ia),
          _a = Object.defineProperty,
          Da = Object.getOwnPropertySymbols,
          Ta = Object.prototype.hasOwnProperty,
          ja = Object.prototype.propertyIsEnumerable,
          Oa = function (e, t, n) {
            return t in e ? _a(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Pa = function (e, t) {
            for (var n in t || (t = {})) Ta.call(t, n) && Oa(e, n, t[n])
            if (Da) {
              var a,
                r = i(Da(t))
              try {
                for (r.s(); !(a = r.n()).done; ) {
                  n = a.value
                  ja.call(t, n) && Oa(e, n, t[n])
                }
              } catch (e) {
                r.e(e)
              } finally {
                r.f()
              }
            }
            return e
          },
          Ra = function () {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 150
            return new Promise(function (t) {
              setTimeout(t, e)
            })
          },
          La = function (e, t) {
            var a = e.argsFromRouter,
              i = void 0 === a ? [] : a,
              r = e.otherArgs,
              o = (function (e) {
                var t = {}
                ;(e.match(/[?&][^?&]+=[^?&]+/g) || []).forEach(function (e) {
                  var n = e.substring(1).split('='),
                    a = decodeURIComponent(n[0]),
                    i = decodeURIComponent(n[1])
                  t[a] = i
                })
                var n = e.indexOf('?')
                return { url: -1 === n ? e : e.slice(0, n), query: t }
              })(t).query,
              c = void 0 === o ? {} : o,
              l = {}
            return (
              i.forEach(function (e) {
                if (Array.isArray(e)) {
                  var t = n(e, 2),
                    a = t[0],
                    i = t[1],
                    r = void 0 === i ? [] : i,
                    o = Object.keys(c).find(function (e) {
                      return r.includes(e)
                    })
                  o && (l[a] = c[o])
                } else 'string' == typeof e && (l[e] = c[e])
              }),
              Pa(Pa({}, r), l)
            )
          },
          Ma = function (e) {
            return (function (e, t, n) {
              return new Promise(function (a, i) {
                var r = function (e) {
                    try {
                      c(n.next(e))
                    } catch (e) {
                      i(e)
                    }
                  },
                  o = function (e) {
                    try {
                      c(n.throw(e))
                    } catch (e) {
                      i(e)
                    }
                  },
                  c = function (e) {
                    return e.done ? a(e.value) : Promise.resolve(e.value).then(r, o)
                  }
                c((n = n.apply(e, t)).next())
              })
            })(
              void 0,
              null,
              t().mark(function n() {
                var a, i, r, o, c, l
                return t().wrap(function (t) {
                  for (;;)
                    switch ((t.prev = t.next)) {
                      case 0:
                        if (
                          ((a = Pe.A || {}),
                          (i = a.prefetchConfigs),
                          (r = void 0 === i ? [] : i),
                          (o = (0, ct.Jv)(e)),
                          (c = r.find(function (e) {
                            return null == o ? void 0 : o.includes(e.path)
                          })))
                        ) {
                          t.next = 3
                          break
                        }
                        return t.abrupt('return', void (0, ct.VJ)(e))
                      case 3:
                        return (l = La(c, o)), c.prefetch(l), (t.next = 7), Ra(150)
                      case 7:
                        ;(0, ct.VJ)(e)
                      case 8:
                      case 'end':
                        return t.stop()
                    }
                }, n)
              }),
            )
          },
          Fa = (function (e) {
            return (e.DNA = 'DNA'), (e.RELATION = 'RELATION'), (e.ACHIEVEMENT = 'ACHIEVEMENT'), e
          })(Fa || {}),
          Ha = (function (e) {
            return (
              (e.DNA = 'https://gw.alicdn.com/imgextra/i4/O1CN01evabfy1w8xrrQAkyQ_!!6000000006264-2-tps-126-33.png'),
              (e.ACHIEVEMENT =
                'https://gw.alicdn.com/imgextra/i2/O1CN011GKwZD1gDVwuw0eqx_!!6000000004108-2-tps-74-22.png'),
              e
            )
          })(Ha || {}),
          Ba = (function (e) {
            return (e.VIP = '1'), (e.BLACK_VIP = '10'), e
          })(Ba || {}),
          Va = (function (e) {
            return (
              (e.VIP = 'https://gw.alicdn.com/imgextra/i1/O1CN01V6lVLp1Sv6s3L1w3f_!!6000000002308-2-tps-54-54.png'),
              (e.BLACK_VIP =
                'https://gw.alicdn.com/imgextra/i3/O1CN01Bx90PL1OWbD29qFFS_!!6000000001713-2-tps-54-48.png'),
              e
            )
          })(Va || {}),
          za = Object.defineProperty,
          Ua = Object.defineProperties,
          Wa = Object.getOwnPropertyDescriptors,
          qa = Object.getOwnPropertySymbols,
          $a = Object.prototype.hasOwnProperty,
          Ja = Object.prototype.propertyIsEnumerable,
          Ga = function (e, t, n) {
            return t in e ? za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          }
        Ca().extend(xa())
        var Ya = (0, d.memo)(
          (0, d.forwardRef)(function (e, t) {
            var n,
              a,
              r,
              o,
              c,
              l,
              s,
              u,
              m,
              p,
              f,
              v,
              h,
              g,
              y,
              b,
              w,
              N,
              A,
              E,
              k,
              S,
              C,
              I,
              x,
              _,
              D,
              T,
              j,
              O,
              P,
              R,
              L,
              M,
              F = e,
              H = F.className,
              B = F.data,
              V = F.type,
              z = void 0 === V ? 'high' : V,
              U = (function (e, t) {
                var n = {}
                for (var a in e) $a.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                if (null != e && qa) {
                  var r,
                    o = i(qa(e))
                  try {
                    for (o.s(); !(r = o.n()).done; ) {
                      a = r.value
                      t.indexOf(a) < 0 && Ja.call(e, a) && (n[a] = e[a])
                    }
                  } catch (e) {
                    o.e(e)
                  } finally {
                    o.f()
                  }
                }
                return n
              })(F, ['className', 'data', 'type']),
              W =
                null == (a = null == (n = null == B ? void 0 : B.project) ? void 0 : n.marketPromotionTags)
                  ? void 0
                  : a[0],
              q = '1' === String(null == W ? void 0 : W.subType) && 'SINGLE' === (null == W ? void 0 : W.type),
              $ =
                (null == B ? void 0 : B.pic) || (null == (r = null == B ? void 0 : B.videoInfo) ? void 0 : r.coverUrl),
              J = [],
              G = (0, d.useMemo)(
                function () {
                  return 'strategy' === (null == B ? void 0 : B.contentLabels)
                    ? ze.Hk
                      ? 'https://gw.alicdn.com/imgextra/i4/O1CN01Ke3M5I1cIJdMKoGe8_!!6000000003577-2-tps-69-104.png'
                      : 'https://gw.alicdn.com/imgextra/i1/O1CN01QtO0l11lSh9YKgmrX_!!6000000004818-2-tps-69-104.png'
                    : '1' === (null == B ? void 0 : B.isFeature)
                    ? ze.Hk
                      ? 'https://gw.alicdn.com/imgextra/i2/O1CN014ccZH31TVkiBMkrBj_!!6000000002388-2-tps-69-104.png'
                      : 'https://gw.alicdn.com/imgextra/i1/O1CN01BqSCOa1ccvST11I15_!!6000000003622-2-tps-69-104.png'
                    : ''
                },
                [null == B ? void 0 : B.contentLabels, null == B ? void 0 : B.isFeature],
              ),
              Y = function (e) {
                Ma({
                  page: 'shows_item_detail',
                  query: {
                    itemId: null == e ? void 0 : e.id,
                    spm: ''
                      .concat(Pe.A.spmA, '.')
                      .concat(Pe.A.spmB, '.feedrecommend.itemproduct_')
                      .concat(B._realIndex),
                  },
                })
              }
            return d.createElement(
              He.A,
              (function (e, t) {
                return Ua(e, Wa(t))
              })(
                (function (e, t) {
                  for (var n in t || (t = {})) $a.call(t, n) && Ga(e, n, t[n])
                  if (qa) {
                    var a,
                      r = i(qa(t))
                    try {
                      for (r.s(); !(a = r.n()).done; ) {
                        n = a.value
                        Ja.call(t, n) && Ga(e, n, t[n])
                      }
                    } catch (e) {
                      r.e(e)
                    } finally {
                      r.f()
                    }
                  }
                  return e
                })(
                  {
                    ref: t,
                    dynamicData: {
                      type: null == B ? void 0 : B.type,
                      card_id: null == B ? void 0 : B.id,
                      card_type: null == B ? void 0 : B.type,
                      project_id: null == (o = null == B ? void 0 : B.project) ? void 0 : o.id,
                      publiser_id: null == (c = null == B ? void 0 : B.publishUser) ? void 0 : c.publisherId,
                      discount_type:
                        null ==
                        (u =
                          null == (s = null == (l = null == B ? void 0 : B.project) ? void 0 : l.marketPromotionTags)
                            ? void 0
                            : s[0])
                          ? void 0
                          : u.type,
                    },
                    dynamicIndex: B._realIndex,
                    className: (0, Fe.A)('bui-feed-item', H),
                  },
                  U,
                ),
                {
                  onClick: function () {
                    ;(0, ct.VJ)({
                      page: 'shows_content_detail',
                      query: {
                        contentId: null == B ? void 0 : B.id,
                        spm: ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.feedrecommend.item_').concat(B._realIndex),
                      },
                    })
                  },
                },
              ),
              d.createElement(
                'div',
                { className: 'poster-container' },
                $
                  ? d.createElement(Re.A, {
                      src: (0, Me.zp)({ url: $, width: 600 }),
                      className: (0, Fe.A)('poster-img', 'feed-item-'.concat(z)),
                      fit: 'cover',
                      lazy: !0,
                    })
                  : d.createElement(
                      'div',
                      {
                        className: (0, Fe.A)(
                          'use-content-bg',
                          (function () {
                            if (!J || J.length <= 0) {
                              for (
                                var e = ['bgcol1', 'bgcol2', 'bgcol3', 'bgcol4', 'bgcol5', 'bgcol6'], t = 0;
                                t < 2;
                                t++
                              ) {
                                var n = Math.floor(Math.random() * (e.length - 3)),
                                  a = Math.floor(3 * Math.random() + 3),
                                  i = [e[a], e[n]]
                                ;(e[n] = i[0]), (e[a] = i[1])
                              }
                              J = e
                            }
                            return J.pop()
                          })(),
                        ),
                      },
                      d.createElement('div', { className: 'content-text' }, B.content),
                    ),
                d.createElement(Re.A, { src: (0, Me.zp)({ url: G }), className: 'show-flag', lazy: !0 }),
                !!(null == B ? void 0 : B.videoInfo) &&
                  d.createElement(
                    'div',
                    { className: 'video-info' },
                    d.createElement(ka.A, { htmlColor: '#fff', className: 'video-icon' }),
                    (null == (m = B.videoInfo) ? void 0 : m.videoTime) &&
                      d.createElement(
                        'span',
                        { className: 'video-time' },
                        Ca().duration(Number(B.videoInfo.videoTime)).format('mm:ss'),
                      ),
                  ),
              ),
              d.createElement(
                'div',
                { className: 'item-content' },
                !!$ &&
                  (null == B ? void 0 : B.content) &&
                  d.createElement('div', { className: 'item-title' }, B.content),
                (null == B ? void 0 : B.publishUser) &&
                  d.createElement(
                    'div',
                    { className: 'user-container' },
                    d.createElement(
                      'div',
                      { className: 'user-avatar-container' },
                      d.createElement(Re.A, {
                        src: (0, Me.zp)({ url: null == (p = B.publishUser) ? void 0 : p.headImg }),
                        fit: 'cover',
                        className: 'user-avatar',
                        lazy: !0,
                      }),
                      [Ba.VIP, Ba.BLACK_VIP].includes(
                        null == (v = null == (f = B.publishUser) ? void 0 : f.performFilmVipDO) ? void 0 : v.memberFlag,
                      ) &&
                        d.createElement(Re.A, {
                          src:
                            (null == (g = null == (h = B.publishUser) ? void 0 : h.performFilmVipDO)
                              ? void 0
                              : g.memberFlag) === Ba.VIP
                              ? Va.VIP
                              : Va.BLACK_VIP,
                          fit: 'widthFix',
                          className: 'vip-icon',
                          lazy: !0,
                        }),
                    ),
                    d.createElement(
                      'span',
                      { className: 'user-name' },
                      null == (y = B.publishUser) ? void 0 : y.nickname,
                    ),
                    (null == (b = null == B ? void 0 : B.publishUser) ? void 0 : b.label) &&
                      d.createElement(
                        'div',
                        {
                          className: (0, Fe.A)('user-tag', {
                            'user-achievement':
                              (null == (w = B.publishUser.label) ? void 0 : w.labelType) === Fa.ACHIEVEMENT,
                            'user-dna': (null == (N = B.publishUser.label) ? void 0 : N.labelType) === Fa.DNA,
                            'user-relation': (null == (A = B.publishUser.label) ? void 0 : A.labelType) === Fa.RELATION,
                          }),
                        },
                        !!Ha[null == (E = B.publishUser.label) ? void 0 : E.labelType] &&
                          d.createElement(Re.A, {
                            className: 'user-tag-img',
                            fit: 'widthFix',
                            src: Ha[null == (k = B.publishUser.label) ? void 0 : k.labelType],
                            lazy: !0,
                          }),
                        null == (C = null == (S = null == B ? void 0 : B.publishUser) ? void 0 : S.label)
                          ? void 0
                          : C.labelTitle,
                      ),
                  ),
                (null == (I = null == B ? void 0 : B.project) ? void 0 : I.id) &&
                  d.createElement(
                    He.A,
                    {
                      className: 'show-container',
                      onClick: function (e) {
                        e.stopPropagation(), Y(B.project)
                      },
                    },
                    d.createElement(
                      'div',
                      { className: 'show-poster-container' },
                      d.createElement(Re.A, {
                        src: (0, Me.zp)({ url: null == (x = B.project) ? void 0 : x.verticalPic, width: 180 }),
                        fit: 'cover',
                        className: 'show-poster-img',
                        lazy: !0,
                      }),
                      (null == (_ = B.project) ? void 0 : _.itemScore) &&
                        d.createElement('div', { className: 'show-tag' }, B.project.itemScore),
                    ),
                    d.createElement(
                      'div',
                      { className: 'show-content' },
                      d.createElement('div', { className: 'show-title' }, null == (D = B.project) ? void 0 : D.name),
                      d.createElement(
                        'div',
                        { className: 'show-price' },
                        /^\d+(.\d+)?$/g.test(null == (T = B.project) ? void 0 : T.priceLow)
                          ? d.createElement(
                              d.Fragment,
                              null,
                              d.createElement('span', { className: 'price-unit' }, '¥'),
                              d.createElement(
                                'span',
                                { className: 'price-number' },
                                null == (j = B.project) ? void 0 : j.priceLow,
                              ),
                              d.createElement('span', { className: 'price-desc' }, '起'),
                            )
                          : (null == (O = B.project) ? void 0 : O.priceLow) &&
                              d.createElement(
                                'span',
                                { className: 'price-number price-custom' },
                                null == (P = B.project) ? void 0 : P.priceLow,
                              ),
                        q
                          ? d.createElement(Re.A, {
                              className: 'wednesday-icon',
                              fit: 'heightFix',
                              src: 'https://gw.alicdn.com/imgextra/i3/O1CN015SGPSS2A20NZU5wmH_!!6000000008144-2-tps-138-48.png',
                            })
                          : !!W &&
                              d.createElement(
                                Ea.A,
                                { variant: 'contained', color: 'primary', className: 'discount-tag' },
                                W.shortTag,
                              ),
                      ),
                    ),
                  ),
                (null == (R = null == B ? void 0 : B.project) ? void 0 : R.attractiveLabel) &&
                  d.createElement(
                    'span',
                    {
                      className: 'item-tips',
                      onClick: function (e) {
                        e.stopPropagation(), Y(B.project)
                      },
                    },
                    d.createElement(Re.A, {
                      src: (0, Me.zp)({ url: null == (L = B.project.attractiveLabel) ? void 0 : L.icon, width: 30 }),
                      className: 'tip-icon',
                    }),
                    null == (M = B.project.attractiveLabel) ? void 0 : M.title,
                  ),
              ),
            )
          }),
        )
        Ya.displayName = 'BuiFeedItem'
        var Xa = Ya,
          Za = Object.defineProperty,
          Qa = Object.getOwnPropertySymbols,
          Ka = Object.prototype.hasOwnProperty,
          ei = Object.prototype.propertyIsEnumerable,
          ti = function (e, t, n) {
            return t in e ? Za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          ni = function (e, t) {
            for (var n in t || (t = {})) Ka.call(t, n) && ti(e, n, t[n])
            if (Qa) {
              var a,
                r = i(Qa(t))
              try {
                for (r.s(); !(a = r.n()).done; ) {
                  n = a.value
                  ei.call(t, n) && ti(e, n, t[n])
                }
              } catch (e) {
                r.e(e)
              } finally {
                r.f()
              }
            }
            return e
          },
          ai = (0, d.memo)(
            (0, d.forwardRef)(function (e, t) {
              var n = e,
                a = n.className,
                r = n.dataList,
                o = (function (e, t) {
                  var n = {}
                  for (var a in e) Ka.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                  if (null != e && Qa) {
                    var r,
                      o = i(Qa(e))
                    try {
                      for (o.s(); !(r = o.n()).done; ) {
                        a = r.value
                        t.indexOf(a) < 0 && ei.call(e, a) && (n[a] = e[a])
                      }
                    } catch (e) {
                      o.e(e)
                    } finally {
                      o.f()
                    }
                  }
                  return n
                })(n, ['className', 'dataList']),
                c = []
              return (
                r.forEach(function (e, t) {
                  var n,
                    a = ni({}, e)
                  a._realIndex = t
                  var i = t % 5 == 0 ? 390 : 330
                  ;(a.height = (null == (n = null == e ? void 0 : e.project) ? void 0 : n.id) ? i : i - 51), c.push(a)
                }),
                d.createElement(
                  He.A,
                  ni({ ref: t, className: (0, Fe.A)('bui-content-feed', a) }, o),
                  d.createElement(Aa, {
                    dataSource: c,
                    columnWidth: 171,
                    columnCount: 2,
                    renderItem: function (e) {
                      return d.createElement(Xa, {
                        className: 'feed-item',
                        key: e.id,
                        data: e,
                        type: e._realIndex % 5 == 0 ? 'high' : 'low',
                      })
                    },
                  }),
                )
              )
            }),
          )
        ai.displayName = 'BuiContentFeed'
        var ii = ai,
          ri = l(9551),
          oi = l.n(ri),
          ci = function (e, t, n) {
            return new Promise(function (a, i) {
              var r = function (e) {
                  try {
                    c(n.next(e))
                  } catch (e) {
                    i(e)
                  }
                },
                o = function (e) {
                  try {
                    c(n.throw(e))
                  } catch (e) {
                    i(e)
                  }
                },
                c = function (e) {
                  return e.done ? a(e.value) : Promise.resolve(e.value).then(r, o)
                }
              c((n = n.apply(e, t)).next())
            })
          }
        var li = function (e) {
          var n = this,
            a = (0, d.useRef)(!1)
          return (0, d.useCallback)(
            function () {
              for (var i = arguments.length, r = new Array(i), o = 0; o < i; o++) r[o] = arguments[o]
              return ci(
                n,
                null,
                t().mark(function n() {
                  var i
                  return t().wrap(
                    function (t) {
                      for (;;)
                        switch ((t.prev = t.next)) {
                          case 0:
                            if (a.current) {
                              t.next = 12
                              break
                            }
                            return (a.current = !0), (t.prev = 2), (t.next = 5), e.apply(void 0, r)
                          case 5:
                            return (i = t.sent), t.abrupt('return', ((a.current = !1), i))
                          case 9:
                            throw ((t.prev = 9), (t.t0 = t.catch(2)), (a.current = !1), t.t0)
                          case 12:
                          case 'end':
                            return t.stop()
                        }
                    },
                    n,
                    null,
                    [[2, 9]],
                  )
                }),
              )
            },
            [e],
          )
        }
        var si = function (e) {
            var t = (0, d.useRef)(e)
            t.current = (0, d.useMemo)(
              function () {
                return e
              },
              [e],
            )
            var n = (0, d.useRef)()
            return (
              n.current ||
                (n.current = function () {
                  for (var e = arguments.length, n = new Array(e), a = 0; a < e; a++) n[a] = arguments[a]
                  return t.current.apply(this, n)
                }),
              n.current
            )
          },
          ui = l(3919).window,
          di = l(3919).document,
          mi = !(void 0 === ui || void 0 === di || !ui.document || !ui.document.createElement),
          pi = /scroll|auto/i,
          fi = mi ? ui : void 0
        function vi(e) {
          return 'HTML' !== e.tagName && 'BODY' !== e.tagName && 1 === e.nodeType
        }
        function hi(e) {
          for (
            var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : fi, n = e;
            n && n !== t && vi(n);

          ) {
            var a = ui.getComputedStyle(n),
              i = a.overflowY
            if (pi.test(i)) return n
            n = n.parentNode
          }
          return t
        }
        var gi = l(3919).window,
          yi = 'bui-infinite-scroll',
          bi = function (e) {
            return (e || {}).hasMore
              ? d.createElement('span', null, '加载中...')
              : d.createElement('span', null, '到底啦~')
          },
          wi = (0, d.forwardRef)(function (e, t) {
            var n = li(function () {
                return e.loadMore()
              }),
              a = (0, d.useRef)(null),
              i = si(function () {
                if (e.hasMore) {
                  var t = a.current
                  if (t && t.offsetParent) {
                    var i = hi(t)
                    if (i) {
                      var r = t.getBoundingClientRect().top
                      ;((function (e) {
                        return e === ui
                      })(i)
                        ? gi.innerHeight
                        : i.getBoundingClientRect().bottom) >=
                        r - e.threshold && n()
                    }
                  }
                }
              })
            return (
              (0, d.useEffect)(function () {
                var t = a.current
                if (t) {
                  var n = hi(t)
                  if (n) {
                    var r = oi()(i, e.wait || 300)
                    return (
                      n.addEventListener('scroll', r),
                      function () {
                        n.removeEventListener('scroll', r)
                      }
                    )
                  }
                }
              }, []),
              d.createElement(
                'div',
                { className: yi, ref: a },
                e.children || d.createElement(bi, { hasMore: e.hasMore }),
              )
            )
          })
        ;(wi.displayName = 'BuiInfiniteScroll'), (wi.defaultProps = { threshold: 300 })
        var Ni = wi,
          Ai = l(3903),
          Ei = (0, lt.A)(
            '<path d="M77.1 44.4c-1.4-.8-3.3-.3-4.1 1.1-.8 1.4-.3 3.3 1.1 4.1l9.1 5.1c1.9 1.1 4.3-.2 4.5-2.4.2-1.8.3-3.3.3-4.3C88 25.9 70.1 8 48 8S8 25.9 8 48s17.9 40 40 40c13.5 0 25.9-6.8 33.3-17.8.9-1.4.6-3.2-.8-4.2-1.4-.9-3.2-.6-4.2.8C70 76.3 59.5 82 48 82c-18.8 0-34-15.2-34-34s15.2-34 34-34c18.5 0 33.5 14.7 34 33.1l-4.9-2.7z"/>',
            'RefreshOutlinedIcon',
          ),
          ki = l(6865),
          Si = (function (e) {
            return (e.notWantSee = '0'), (e.alreadyWantSee = '1'), e
          })(Si || {}),
          Ci = Object.defineProperty,
          Ii = Object.getOwnPropertySymbols,
          xi = Object.prototype.hasOwnProperty,
          _i = Object.prototype.propertyIsEnumerable,
          Di = function (e, t, n) {
            return t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Ti = (0, d.memo)(
            (0, d.forwardRef)(function (e, t) {
              var n = e,
                a = n.className,
                r = n.data,
                o = n.recommendStatus,
                c = n.handleWantSee,
                l = n.onExtraClick,
                s = (function (e, t) {
                  var n = {}
                  for (var a in e) xi.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                  if (null != e && Ii) {
                    var r,
                      o = i(Ii(e))
                    try {
                      for (o.s(); !(r = o.n()).done; ) {
                        a = r.value
                        t.indexOf(a) < 0 && _i.call(e, a) && (n[a] = e[a])
                      }
                    } catch (e) {
                      o.e(e)
                    } finally {
                      o.f()
                    }
                  }
                  return n
                })(n, ['className', 'data', 'recommendStatus', 'handleWantSee', 'onExtraClick']),
                u = ((null == r ? void 0 : r.details) || []).slice(0, 4)
              return u.length < 2
                ? null
                : d.createElement(
                    ea.A,
                    (function (e, t) {
                      for (var n in t || (t = {})) xi.call(t, n) && Di(e, n, t[n])
                      if (Ii) {
                        var a,
                          r = i(Ii(t))
                        try {
                          for (r.s(); !(a = r.n()).done; ) {
                            n = a.value
                            _i.call(t, n) && Di(e, n, t[n])
                          }
                        } catch (e) {
                          r.e(e)
                        } finally {
                          r.f()
                        }
                      }
                      return e
                    })({ ref: t, className: (0, Fe.A)('bui-recommend-shows', a) }, s),
                    d.createElement(Ai.A, {
                      className: 'shows-header',
                      title: (null == r ? void 0 : r.recommendDesc) || '为你推荐',
                      endIcon: !1,
                      extra:
                        'nodata' === o
                          ? null
                          : d.createElement(
                              He.A,
                              {
                                className: 'extra-btn',
                                onClick: function () {
                                  return null == l ? void 0 : l()
                                },
                              },
                              '换一换',
                              d.createElement(Ei, { className: 'refresh-icon', htmlColor: '#9c9ca5' }),
                            ),
                    }),
                    d.createElement(
                      He.A,
                      { className: 'show-list' },
                      u.map(function (e, t) {
                        var n = (null == e ? void 0 : e.wantSeeStatus) === Si.alreadyWantSee
                        return d.createElement(
                          He.A,
                          {
                            key: null == e ? void 0 : e.id,
                            dynamicData: { project_id: null == e ? void 0 : e.id },
                            className: 'recommend-show-item',
                            onClick: function () {
                              return (function (e, t) {
                                Ma({
                                  page: 'shows_item_detail',
                                  query: {
                                    itemId: null == e ? void 0 : e.id,
                                    spm: ''
                                      .concat(Pe.A.spmA, '.')
                                      .concat(Pe.A.spmB, '.wantrecommendlist.item_')
                                      .concat(t),
                                  },
                                })
                              })(e, t)
                            },
                          },
                          d.createElement(
                            'div',
                            { className: (0, Fe.A)('poster-container') },
                            (null == e ? void 0 : e.guideSubCategoryName) &&
                              d.createElement(
                                Ea.A,
                                { variant: 'contained', className: (0, Fe.A)('top-right-tag') },
                                e.guideSubCategoryName,
                              ),
                            (null == e ? void 0 : e.verticalPic) &&
                              d.createElement(Re.A, {
                                className: 'show-poster',
                                src: (0, Me.zp)({ url: e.verticalPic, width: 600 }),
                                fit: 'cover',
                                lazy: !0,
                              }),
                            (null == e ? void 0 : e.itemScore) &&
                              d.createElement(
                                'div',
                                { className: (0, Fe.A)('bottom-left') },
                                d.createElement('span', { className: 'rating-number' }, e.itemScore),
                                d.createElement(Ht.A, {
                                  className: 'rating-star',
                                  size: 'xsmall',
                                  count: 5,
                                  defaultValue: Number(e.itemScore) / 2,
                                  allowHalf: !0,
                                  icon: d.createElement(ki.A, { htmlColor: '#9C9CA5' }),
                                  checkedIcon: d.createElement(ki.A, { color: 'warning' }),
                                }),
                              ),
                          ),
                          d.createElement(
                            'div',
                            { className: 'show-title' },
                            (null == e ? void 0 : e.name) || d.createElement(d.Fragment, null, ' '),
                          ),
                          d.createElement(
                            He.A,
                            {
                              Component: Le.A,
                              dynamicData: {
                                project_id: null == e ? void 0 : e.id,
                                type: null == e ? void 0 : e.wantSeeStatus,
                                clk_type: n ? '0' : '1',
                              },
                              dynamicIndex: t,
                              variant: n ? 'outlined' : 'contained',
                              className: (0, Fe.A)('action-btn', n ? 'has-want-btn' : 'want-btn'),
                              onClick: function (n) {
                                n.stopPropagation(), c({ item: e, index: t })
                              },
                            },
                            n ? '已想看' : '想看',
                          ),
                        )
                      }),
                    ),
                  )
            }),
          )
        Ti.displayName = 'BuiRecommendShows'
        var ji = Ti
        function Oi(e) {
          return (
            Array.isArray(e)
              ? e.forEach(function (e) {
                  return Oi(e)
                })
              : 'object' === r(e) &&
                null !== e &&
                ('priceCustom' in e && (e.priceLow = e.priceCustom),
                Object.keys(e).forEach(function (t) {
                  'priceCustom' !== t && Oi(e[t])
                })),
            e
          )
        }
        var Pi = Object.defineProperty,
          Ri = Object.getOwnPropertySymbols,
          Li = Object.prototype.hasOwnProperty,
          Mi = Object.prototype.propertyIsEnumerable,
          Fi = function (e, t, n) {
            return t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Hi = function (e, t) {
            for (var n in t || (t = {})) Li.call(t, n) && Fi(e, n, t[n])
            if (Ri) {
              var a,
                r = i(Ri(t))
              try {
                for (r.s(); !(a = r.n()).done; ) {
                  n = a.value
                  Mi.call(t, n) && Fi(e, n, t[n])
                }
              } catch (e) {
                r.e(e)
              } finally {
                r.f()
              }
            }
            return e
          },
          Bi = function (e, t, n) {
            return new Promise(function (a, i) {
              var r = function (e) {
                  try {
                    c(n.next(e))
                  } catch (e) {
                    i(e)
                  }
                },
                o = function (e) {
                  try {
                    c(n.throw(e))
                  } catch (e) {
                    i(e)
                  }
                },
                c = function (e) {
                  return e.done ? a(e.value) : Promise.resolve(e.value).then(r, o)
                }
              c((n = n.apply(e, t)).next())
            })
          },
          Vi = function (a) {
            var r = a.itemId,
              o = a.degradeControl,
              c = a.pageStatus,
              l = a.getDeviceId,
              s = a.comboChannel,
              u = (0, d.useRef)(),
              m = (0, d.useRef)(),
              p = (0, d.useRef)(1),
              f = (0, d.useRef)(1),
              v = (0, d.useState)(''),
              h = n(v, 2),
              g = h[0],
              y = h[1],
              b = (0, d.useState)([]),
              w = n(b, 2),
              N = w[0],
              A = w[1],
              E = (0, d.useState)('idle'),
              k = n(E, 2),
              S = k[0],
              C = k[1],
              I = (0, d.useState)('idle'),
              x = n(I, 2),
              _ = x[0],
              D = x[1],
              T = (0, d.useState)({}),
              j = n(T, 2),
              O = j[0],
              P = j[1],
              R = (0, d.useState)({}),
              L = n(R, 2),
              M = L[0],
              F = L[1],
              H = (0, d.useMemo)(
                function () {
                  return 'true' === (null == O ? void 0 : O.hasNext) && p.current <= 10
                },
                [null == O ? void 0 : O.hasNext],
              ),
              B = function (e) {
                return Bi(
                  void 0,
                  null,
                  t().mark(function n() {
                    var a, i, r, o, c, u
                    return t().wrap(function (t) {
                      for (;;)
                        switch ((t.prev = t.next)) {
                          case 0:
                            return (
                              C('loading'),
                              (i = (a = e || {}).itemId),
                              (r = a.pageNo),
                              (o = a.comboCityId),
                              (c = a.latitude),
                              (u = a.longitude),
                              (t.t0 = Pe.A.mtop),
                              (t.t1 = i),
                              (t.t2 = r),
                              (t.t3 = o),
                              (t.t4 = c),
                              (t.t5 = u),
                              (t.t6 = s),
                              (t.next = 11),
                              l()
                            )
                          case 11:
                            ;(t.t7 = t.sent),
                              (t.t8 = {
                                itemId: t.t1,
                                pageNo: t.t2,
                                comboCityId: t.t3,
                                latitude: t.t4,
                                longitude: t.t5,
                                comboChannel: t.t6,
                                utdidh5: t.t7,
                              }),
                              (t.t9 = { api: 'mtop.item.detail.recommend.all', v: '1.1', data: t.t8 }),
                              (t.t10 = { requestOptions: t.t9 }),
                              t.t0.call
                                .call(t.t0, t.t10)
                                .then(function (e) {
                                  var t = e.data || {},
                                    n = t.type,
                                    a = t.content,
                                    i = t.item,
                                    r = t.itemList,
                                    o = (void 0 === r ? {} : r).recommends,
                                    c = void 0 === o ? [] : o,
                                    l = Oi(a)
                                  if ((y(n), '1' === String(n) && (null == c ? void 0 : c.length) > 0)) A(c)
                                  else if ('2' === String(n)) {
                                    var s = ((null == i ? void 0 : i.details) || []).length >= 2
                                    D('false' !== (null == i ? void 0 : i.hasNext) && s ? 'success' : 'nodata'),
                                      C('false' === (null == l ? void 0 : l.hasNext) ? 'nodata' : 'success'),
                                      P(l),
                                      F(i),
                                      (p.current += 1),
                                      (f.current += 1)
                                  }
                                })
                                .catch(function (e) {
                                  D('failed'), C('failed')
                                })
                          case 16:
                          case 'end':
                            return t.stop()
                        }
                    }, n)
                  }),
                )
              }
            ;(0, d.useEffect)(
              function () {
                'true' !== (null == o ? void 0 : o.recommend) &&
                  'success' === c &&
                  Bi(
                    void 0,
                    null,
                    t().mark(function e() {
                      var n, a, i
                      return t().wrap(function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), Pe.A.getCity()
                            case 2:
                              return (u.current = e.sent), (e.next = 5), Pe.A.getPosition()
                            case 5:
                              ;(m.current = e.sent),
                                B({
                                  pageNo: 1,
                                  itemId: r,
                                  latitude: null == (n = m.current) ? void 0 : n.latitude,
                                  longitude: null == (a = m.current) ? void 0 : a.longitude,
                                  comboCityId: null == (i = u.current) ? void 0 : i.code,
                                })
                            case 7:
                            case 'end':
                              return e.stop()
                          }
                      }, e)
                    }),
                  )
              },
              [c],
            )
            return {
              showType: g,
              projectInfo: N,
              cityInfo: u.current,
              feedData: O,
              recommendData: M,
              feedStatus: S,
              recommendStatus: _,
              hasMoreFeed: H,
              changeRecommendList: function () {
                return Bi(
                  void 0,
                  null,
                  t().mark(function e() {
                    var n, a, i
                    return t().wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            if (((e.t0 = 'nodata' !== _), !e.t0)) {
                              e.next = 17
                              break
                            }
                            return D('loading'), (e.t1 = Pe.A.mtop), (e.t2 = r), (e.t3 = s), (e.next = 8), l()
                          case 8:
                            ;(e.t4 = e.sent),
                              (e.t5 = f.current),
                              (e.t6 = null == (n = u.current) ? void 0 : n.code),
                              (e.t7 = null == (a = m.current) ? void 0 : a.latitude),
                              (e.t8 = null == (i = m.current) ? void 0 : i.longitude),
                              (e.t9 = {
                                itemId: e.t2,
                                pageSize: 4,
                                comboChannel: e.t3,
                                utdidh5: e.t4,
                                pageNo: e.t5,
                                comboCityId: e.t6,
                                latitude: e.t7,
                                longitude: e.t8,
                              }),
                              (e.t10 = {
                                api: 'mtop.damai.wireless.discovery.detail.wanna.getrecommendinfo',
                                v: '1.1',
                                data: e.t9,
                              }),
                              (e.t11 = { requestOptions: e.t10 }),
                              e.t1.call
                                .call(e.t1, e.t11)
                                .then(function (e) {
                                  var t = e.data,
                                    n =
                                      'true' === (null == t ? void 0 : t.hasNext) &&
                                      ((null == t ? void 0 : t.details) || []).length >= 2
                                  D(n ? 'success' : 'nodata'),
                                    n ? (F(t), (f.current += 1)) : (0, pe.o)({ message: '没有更多相似的演出啦~' })
                                })
                                .catch(function (e) {
                                  D('failed'), (0, pe.o)({ message: '小二很忙, 请稍后再试吧~' })
                                })
                          case 17:
                          case 'end':
                            return e.stop()
                        }
                    }, e)
                  }),
                )
              },
              paginationFeedList: function () {
                var t, n, a
                !['success', 'failed'].includes(S) ||
                  p.current > 10 ||
                  (C('loading'),
                  Pe.A.mtop
                    .call({
                      requestOptions: {
                        api: 'mtop.item.detail.content.feed',
                        v: '1.0',
                        data: {
                          itemId: r,
                          pageNo: p.current,
                          pageSize: 10,
                          comboCityId: null == (t = u.current) ? void 0 : t.code,
                          latitude: null == (n = m.current) ? void 0 : n.latitude,
                          longitude: null == (a = m.current) ? void 0 : a.longitude,
                          maxPageNo: 10,
                        },
                      },
                    })
                    .then(function (t) {
                      var n = t.data || {},
                        a = n.card,
                        r = void 0 === a ? [] : a,
                        o = n.hasNext,
                        c = (function (e, t) {
                          var n = {}
                          for (var a in e) Li.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                          if (null != e && Ri) {
                            var r,
                              o = i(Ri(e))
                            try {
                              for (o.s(); !(r = o.n()).done; ) {
                                a = r.value
                                t.indexOf(a) < 0 && Mi.call(e, a) && (n[a] = e[a])
                              }
                            } catch (e) {
                              o.e(e)
                            } finally {
                              o.f()
                            }
                          }
                          return n
                        })(n, ['card', 'hasNext'])
                      C('true' === o && p.current < 10 ? 'success' : 'nodata'),
                        P(function (t) {
                          var n,
                            a = (n = (null == t ? void 0 : t.card) || []).concat.apply(n, e(r))
                          return Hi({ card: a, hasNext: o }, c)
                        }),
                        (p.current += 1)
                    })
                    .catch(function (e) {
                      C('failed')
                    }))
              },
              handleWantSee: function (e) {
                return Bi(void 0, [e], function (e) {
                  var n = e.item,
                    a = e.index
                  return t().mark(function e() {
                    var i, r, o, c
                    return t().wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (e.next = 2), (0, Be.A)({ failedMsg: '登录失败，请稍后再试' })
                          case 2:
                            if (((i = e.sent), i.isLogin)) {
                              e.next = 6
                              break
                            }
                            return e.abrupt('return')
                          case 6:
                            ;(r = '0' === (null == n ? void 0 : n.wantSeeStatus) ? 1 : 0),
                              (o = Ve.Yb ? 'DM_WX_ITEM_DETAIL' : 'DM_H5_ITEM_DETAIL'),
                              (c = ze.ND ? 'DM_LOCAL_LIFE_ITEM_DETAIL' : o),
                              Pe.A.mtop
                                .call({
                                  requestOptions: {
                                    api: 'mtop.damai.wireless.follow.relation.update.v2',
                                    v: '1.2',
                                    data: {
                                      targetType: 'ITEM',
                                      group: 'PROJECT_GROUP',
                                      pageName: c,
                                      operateType: r,
                                      targetId: null == n ? void 0 : n.id,
                                    },
                                  },
                                })
                                .then(function (e) {
                                  var t = e.data
                                  'true' === (null == t ? void 0 : t.success) &&
                                    F(function (e) {
                                      return (
                                        (((null == e ? void 0 : e.details) || [])[a].wantSeeStatus = ''.concat(r)),
                                        Hi({}, e)
                                      )
                                    })
                                })
                                .catch(function (e) {
                                  ;(0, pe.o)({ message: '操作失败' })
                                })
                          case 8:
                          case 'end':
                            return e.stop()
                        }
                    }, e)
                  })()
                })
              },
            }
          },
          zi = Object.defineProperty,
          Ui = Object.getOwnPropertySymbols,
          Wi = Object.prototype.hasOwnProperty,
          qi = Object.prototype.propertyIsEnumerable,
          $i = function (e, t, n) {
            return t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Ji = (0, d.memo)(
            (0, d.forwardRef)(function (e, t) {
              var n = e,
                a = n.className,
                r = n.itemId,
                o = n.children,
                c = n.degradeControl,
                l = n.pageStatus,
                s = n.comboChannel,
                u = n.getDeviceId,
                m = n.handleDmShowCardClick,
                p = (function (e, t) {
                  var n = {}
                  for (var a in e) Wi.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                  if (null != e && Ui) {
                    var r,
                      o = i(Ui(e))
                    try {
                      for (o.s(); !(r = o.n()).done; ) {
                        a = r.value
                        t.indexOf(a) < 0 && qi.call(e, a) && (n[a] = e[a])
                      }
                    } catch (e) {
                      o.e(e)
                    } finally {
                      o.f()
                    }
                  }
                  return n
                })(n, [
                  'className',
                  'itemId',
                  'children',
                  'degradeControl',
                  'pageStatus',
                  'comboChannel',
                  'getDeviceId',
                  'handleDmShowCardClick',
                ]),
                f = Vi({ comboChannel: s, getDeviceId: u, itemId: r, degradeControl: c, pageStatus: l }),
                v = f.showType,
                h = f.projectInfo,
                g = f.cityInfo,
                y = f.recommendData,
                b = f.feedData,
                w = f.feedStatus,
                N = f.recommendStatus,
                A = f.hasMoreFeed,
                E = f.handleWantSee,
                k = f.changeRecommendList,
                S = f.paginationFeedList,
                C = ((null == y ? void 0 : y.details) || []).length >= 2,
                I = !!((null == b ? void 0 : b.card) || []).length
              if (
                ((0, d.useImperativeHandle)(t, function () {
                  return { paginationFeedList: S, isShowRecommendAndFeed: C || I }
                }),
                '1' === v)
              ) {
                if (!(null == h ? void 0 : h.length)) return null
              } else {
                if ('2' !== v) return null
                if (!((null == y ? void 0 : y.details) || []).length && !((null == b ? void 0 : b.card) || []).length)
                  return null
              }
              var x = function () {
                return d.createElement(
                  'div',
                  { className: 'feed-tips' },
                  'loading' === w && '加载中...',
                  'nodata' === w && '没有更多内容了~',
                )
              }
              return d.createElement(
                He.A,
                (function (e, t) {
                  for (var n in t || (t = {})) Wi.call(t, n) && $i(e, n, t[n])
                  if (Ui) {
                    var a,
                      r = i(Ui(t))
                    try {
                      for (r.s(); !(a = r.n()).done; ) {
                        n = a.value
                        qi.call(t, n) && $i(e, n, t[n])
                      }
                    } catch (e) {
                      r.e(e)
                    } finally {
                      r.f()
                    }
                  }
                  return e
                })(
                  {
                    dynamicData: { city: null == g ? void 0 : g.name, city_id: null == g ? void 0 : g.code },
                    className: (0, Fe.A)('bui-recommend-feed', '1' === v && 'show-list', a),
                  },
                  p,
                ),
                '1' === v &&
                  d.createElement(
                    d.Fragment,
                    null,
                    d.createElement('div', { className: 'recommend-feed-title' }, '为你推荐'),
                    null == h
                      ? void 0
                      : h.map(function (e, t) {
                          return d.createElement(
                            d.Fragment,
                            null,
                            3 === t ? o : null,
                            d.createElement(He.A, {
                              key: t,
                              Component: ta.A,
                              className: 'recommend-feed-item',
                              dynamicData: { item_id: r, project_id: null == e ? void 0 : e.project.id },
                              data: (0, na.G)(null == e ? void 0 : e.project),
                              useBackgroundImage: !0,
                              index: t,
                              onClick: function () {
                                return null == m ? void 0 : m(null == e ? void 0 : e.project, t)
                              },
                            }),
                          )
                        }),
                  ),
                '2' === v &&
                  d.createElement(
                    d.Fragment,
                    null,
                    C &&
                      d.createElement(ji, {
                        className: 'recommend-shows',
                        data: y,
                        recommendStatus: N,
                        handleWantSee: E,
                        onExtraClick: k,
                      }),
                    (C || I) && o,
                    C && !I && d.createElement('div', { className: 'no-feed' }, '没有更多内容了~'),
                    I &&
                      d.createElement(
                        d.Fragment,
                        null,
                        !C && d.createElement('div', { className: 'recommend-feed-title' }, '为你推荐'),
                        d.createElement(ii, { className: 'content-feed', dataList: b.card }),
                        Ve.Yb ? x() : d.createElement(Ni, { loadMore: S, hasMore: A, threshold: 200 }, x()),
                      ),
                  ),
              )
            }),
          )
        Ji.displayName = 'BuiRecommendAndFeed'
        var Gi = Ji,
          Yi = l(6432),
          Xi = l(5765)
        function Zi() {
          var e = (0, u.wA)(),
            t = (0, y.useRouter)(),
            n = null == t ? void 0 : t.params
          return (0, d.useMemo)(
            function () {
              var a =
                  (function (e) {
                    if (e && e.startsWith('http')) {
                      var t = decodeURIComponent(e)
                      return new Xi.g(t).params
                    }
                  })(n.q) || {},
                i = n.utm || '',
                r = n.sqm || ''
              a && ((i = i || a.utm || ''), (r = r || a.sqm || '')),
                i && (0, Yi.hZ)('utm_value', i),
                r && (0, Yi.hZ)('sqm_value', r)
              var o = n.projectId || n.itemId || n.id || a.id,
                c = n.distributionId ? n.distributionId : ''
              return e(Y(o)), e(J(c)), e($(n)), t
            },
            [null == t ? void 0 : t.params],
          )
        }
        var Qi = function (e) {
            var t = e.routerInfo
            ;(0, d.useEffect)(function () {
              var e = (null == t ? void 0 : t.params) || {},
                a = e.taskId,
                i = e.dataId,
                r = e.encryptUserId
              a &&
                i &&
                r &&
                setTimeout(function () {
                  n({ taskId: a, dataId: i, encryptUserId: r })
                }, 1500)
            }, [])
            var n = function (e) {
              var t = e.taskId,
                n = e.dataId,
                a = e.encryptUserId
              try {
                re.A.reportTask({
                  data: {
                    taskId: t,
                    dataId: n,
                    encryptUserId: a,
                    feature: JSON.stringify({ scene: 'SHARE_REPORT_TASK' }),
                  },
                })
              } catch (e) {}
            }
            return { reportShare: n }
          },
          Ki = l(462),
          er = l.n(Ki),
          tr = (function (e) {
            return (
              (e.Header = 'header'),
              (e.DetailRating = 'rating_wanting'),
              (e.ShowContent = 'description'),
              (e.BrandCard = 'brand'),
              (e.PerformanceStaff = 'artist'),
              (e.GroupCoupon = 'group_coupon'),
              (e.MarketingTask = 'mission'),
              (e.ShowPerformanceGuide = 'show_guide'),
              (e.HotReview = 'comment'),
              (e.Banner = 'banner'),
              (e.DetailNotice = 'notice'),
              (e.Footer = 'footer'),
              e
            )
          })({}),
          nr = {},
          ar = '__',
          ir = (0, Yi.Jt)('statusBarHeight') || 0,
          rr = (0, Yi.Jt)('menubarHeight') || 0,
          or = function () {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
              t = e.moduleSort,
              n = (0, d.useRef)(),
              a = (0, d.useRef)(-1),
              i = (0, d.useState)(!1),
              r = (0, v.A)(i, 2),
              o = r[0],
              c = r[1],
              l = (0, d.useState)(''),
              s = (0, v.A)(l, 2),
              u = s[0],
              m = s[1],
              p = [
                { componentType: 'introduce-content', title: '详情', anchor: '0', serverSortName: tr.ShowContent },
                { componentType: 'detail-marketing', title: '福利', anchor: '1', serverSortName: tr.MarketingTask },
                { componentType: 'detail-comment', title: '热评', anchor: '2', serverSortName: tr.HotReview },
                { componentType: 'detail-notice', title: '须知', anchor: '3', serverSortName: tr.DetailNotice },
                { componentType: 'detail-suggest', title: '推荐', anchor: '4', serverSortName: tr.Footer },
              ],
              f = []
            null != t && t.length
              ? t.forEach(function (e) {
                  var t = p.find(function (t) {
                    return t.serverSortName === e
                  })
                  t && f.push(t)
                })
              : (f = p)
            var h = function (e, t) {
                var n = b().createSelectorQuery()
                e.map(function (e) {
                  n.select('#'.concat(e.componentType))
                    .boundingClientRect(function (n) {
                      var a = 'anchor'.concat(ar).concat(e.anchor)
                      n ? ((nr[a] = n.top), t && t((0, ie.A)({}, nr))) : nr[a] && delete nr[a]
                    })
                    .exec()
                })
              },
              g = function (e) {
                var t = (Object.keys(e) || []).map(function (e) {
                  var t
                  return null == e || null === (t = e.split(ar)) || void 0 === t ? void 0 : t[1]
                })
                return f.filter(function (e) {
                  return t.includes(e.anchor)
                })
              },
              y = function (e, t) {
                var a = e
                b()
                  .createSelectorQuery()
                  .select('.bui-show-detail-head')
                  .boundingClientRect(function (e) {
                    var i
                    e &&
                      e.top > 0 &&
                      ((a.opacity = 0), null == n || null === (i = n.current) || void 0 === i || i.updateData(a, t))
                  })
                  .exec()
              },
              w = er()(function (e, t) {
                var i,
                  r,
                  l = e.detail.scrollTop,
                  s = ir + rr + 44 + 20,
                  u = 225 + (t.length ? 42 : 0) - 44 - 12
                o && c(!1), h(f)
                var d = {
                  navIndex:
                    (null === (i = f) || void 0 === i || null === (i = i[0]) || void 0 === i ? void 0 : i.anchor) ||
                    '0',
                }
                d.opacity = 1 - Math.min(Math.max(0, (u - l) / 44), 1)
                for (
                  var m = Object.keys(nr).sort(function (e, t) {
                      var n, a
                      return (
                        Number(null == e || null === (n = e.split(ar)) || void 0 === n ? void 0 : n[1]) -
                        Number(null == t || null === (a = t.split(ar)) || void 0 === a ? void 0 : a[1])
                      )
                    }),
                    p = m.map(function (e) {
                      return nr[e]
                    }),
                    v = p.length - 1;
                  v >= 0;
                  v--
                )
                  if (p[v] <= s) {
                    var b
                    d.navIndex =
                      null === (b = m[v]) || void 0 === b || null === (b = b.split(ar)) || void 0 === b ? void 0 : b[1]
                    break
                  }
                a.current + 1 > 0 && (d.navIndex = a.current),
                  null == n || null === (r = n.current) || void 0 === r || r.updateData(d, g(nr)),
                  (a.current = -1),
                  y(d, g(nr))
              }, 100),
              N = function (e) {
                a.current = e.anchor
                var t,
                  i = (Object.keys(nr) || []).map(function (e) {
                    var t
                    return null == e || null === (t = e.split(ar)) || void 0 === t ? void 0 : t[1]
                  }),
                  r = ''.concat(Math.max.apply(Math, i)) === e.anchor,
                  o = {
                    0: 'introduce-content1',
                    1: 'detail-marketing1',
                    2: 'detail-comment1',
                    3: 'detail-notice1',
                    4: 'detail-suggest1',
                  }
                r &&
                  (null == n ||
                    null === (t = n.current) ||
                    void 0 === t ||
                    t.updateData({ navIndex: e.anchor, opacity: 1 }, g(nr))),
                  m(''),
                  setTimeout(function () {
                    m(o[e.anchor])
                  }, 0)
              }
            return {
              navRef: n,
              onScrollViewScroll: w,
              showTitleTips: o,
              setShowTitleTips: c,
              onNavItemTap: N,
              navSectionKeys: u,
            }
          },
          cr = l(7422),
          lr = function () {
            var e = (0, d.useRef)(!0),
              t = (0, y.useRouter)(),
              n = (0, d.useRef)({ itemId: '', hasCityTour: !1 })
            if (e.current) {
              e.current = !1
              var a = []
              try {
                var i,
                  r,
                  o,
                  c = (null == t ? void 0 : t.params) || {},
                  l = c.id,
                  s = c.itemId,
                  u = l || s,
                  m = (0, y.getStorageSync)(''.concat(L, '_').concat(u)),
                  p = (0, y.getEnterOptionsSync)(),
                  f =
                    (null == p || null === (i = p.query) || void 0 === i ? void 0 : i.url) ||
                    (null == p || null === (r = p.query) || void 0 === r ? void 0 : r.q)
                m &&
                  !f &&
                  (null == m ? void 0 : m.version) === (0, Yi.Jt)('__appVersion__') &&
                  ((a = (function (e) {
                    try {
                      return JSON.parse(R().decompress(e))
                    } catch (e) {
                      return null
                    }
                  })(m.stashRootCNList)),
                  (n.current = {
                    itemId: null == m ? void 0 : m.itemId,
                    hasCityTour: null == m ? void 0 : m.hasCityTour,
                  }),
                  null === (o = (0, y.getCurrentInstance)()) ||
                    void 0 === o ||
                    null === (o = o.page) ||
                    void 0 === o ||
                    o.setData({ root: { cn: a } }),
                  cr.A.sendOtherEvent('/yanchu.product_detail.root_cn_cache_hit', {
                    page: null == t ? void 0 : t.path,
                    error: '命中stashRootCN缓存',
                  }))
              } catch (e) {}
            }
            return n.current
          },
          sr = l(104),
          ur = function () {
            var e = (0, u.d4)(ee) || {},
              t = e.itemId,
              n = e.itemName,
              a = e.itemPic,
              i = (0, u.d4)(je)
            ;(0, y.useShareAppMessage)(function (e) {
              var r,
                o =
                  (null == e || null === (r = e.target) || void 0 === r || null === (r = r.dataset) || void 0 === r
                    ? void 0
                    : r.share) || {},
                c = o.from,
                l = o.taskId,
                s = o.dataId,
                u = o.encryptUserId,
                d = (0, Yi.Jt)('sqm_value') || '',
                m = (0, Yi.Jt)('utm_value') || '',
                p = ''
              d && (p += '&sqm='.concat(d)), m && (p += '&utm='.concat(m))
              var f = '/subPackages/detail/item?sc=wxmini_share&itemId='.concat(t).concat(p),
                v =
                  'shareTask' === c
                    ? ''.concat(f, '&taskId=').concat(l, '&dataId=').concat(s, '&encryptUserId=').concat(u)
                    : f,
                h = i ? '我超想看这场演出：'.concat(n) : n,
                g = (a || '').startsWith('https:') ? a : 'https:'.concat(a)
              return sr.A.createShareObject(h, g, v)
            })
          },
          dr = l(4752)
        function mr(e) {
          var t = e.routerInfo,
            n = e.itemId
          dr.Ay.sendPV(
            {},
            (0, ie.A)(
              (0, ie.A)({ _pageRoute: 'subPackages/detail/item' }, null == t ? void 0 : t.params),
              {},
              { item_id: n },
            ),
          )
        }
        var pr = l(6664),
          fr = (function (e) {
            return (e.PAGE_SCROLL = 'PAGE_SCROLL'), e
          })({}),
          vr = new pr.s(),
          hr = l(7963),
          gr = 'showDetail',
          yr = {
            codeVerifiedSuccessActivityId: !1,
            isCountDownEnd: !1,
            hideHalfCountDown: !1,
            start: !1,
            checkDetailStartEnd: !1,
            isRefreshDataBeforeSku: !1,
            skuData: null,
            isLessOneHour: !1,
          },
          br = (0, j.Z0)({
            name: ''.concat(gr, '/buy'),
            initialState: yr,
            reducers: {
              setIsLessOneHour: function (e, t) {
                e.isLessOneHour = t.payload
              },
              skuFavorChoice: function (e) {
                var t = e.baseInfo,
                  n = e.itemId,
                  a = e.isLessOneHour,
                  i = t || {},
                  r = i.status,
                  o = i.text,
                  c = i.tip,
                  l = (0, y.getStorageSync)('favorChoices'),
                  s = c,
                  u = o
                ;[oe.SH.FOR_SALE_REGISTRATION, oe.SH.SALE_PRE_ABOUT_TO_START].includes(r) &&
                  n &&
                  l[n] &&
                  ((u = '已预约'), (s = a ? '即将开抢 做好准备哦' : '票档已选好 抢票更丝滑'))
                var d = (0, ie.A)((0, ie.A)({}, t), {}, { tip: s, text: u })
                e.baseInfo = d
              },
              countDownEnd: function (e) {
                var t,
                  n,
                  a,
                  i,
                  r,
                  o = e.afterCountdown,
                  c = e.baseInfo,
                  l = e.privilege,
                  s = e.isPreview,
                  u = e.canRedeemCoupon
                return (
                  o &&
                    (r = (0, oe.yw)({
                      status: null == o ? void 0 : o.status,
                      text: null == o ? void 0 : o.text,
                      tip: null == o ? void 0 : o.tip,
                      privilege: l,
                    })),
                  (0, ie.A)(
                    (0, ie.A)({}, e),
                    {},
                    {
                      isRefreshDataBeforeSku: !0,
                      isCountDownEnd: !0,
                      baseInfo: (null === (t = r) || void 0 === t ? void 0 : t.baseInfo) || c,
                      privilege: (null === (n = r) || void 0 === n ? void 0 : n.privilege) || l,
                      isPreview: (null === (a = r) || void 0 === a ? void 0 : a.isPreview) || s,
                      canRedeemCoupon: (null === (i = r) || void 0 === i ? void 0 : i.canRedeemCoupon) || u,
                    },
                  )
                )
              },
              setCodeVerifiedSuccessActivityId: function (e, t) {
                e.codeVerifiedSuccessActivityId = t.payload
              },
              setHideHalfCountDown: function (e, t) {
                e.hideHalfCountDown = t.payload
              },
            },
            extraReducers: function (e) {
              e.addCase(U.fulfilled, function (e, t) {
                if (!t.payload) return (0, ie.A)({}, yr)
                var n = t.payload.buyInfo
                return (0, ie.A)((0, ie.A)((0, ie.A)({}, e), yr), n)
              }),
                e.addCase(Dr.pending, function (e) {
                  e.checkDetailStartEnd = !1
                }),
                e.addCase(Dr.fulfilled, function (e, t) {
                  if (((e.checkDetailStartEnd = !0), t.payload.performCalendar)) {
                    var n = t.payload,
                      a = n.itemBuyBtn,
                      i = !('msrdc' in a) || a.msrdc <= 0,
                      r = (0, ie.A)(
                        (0, ie.A)({}, null == e ? void 0 : e.baseInfo),
                        {},
                        {
                          status: a.btnStatus,
                          txt: a.btnText,
                          tips: a.btnTips,
                          enable: i,
                          style: i ? oe.pM.HIGHLIGHT : oe.pM.GRAY,
                        },
                      )
                    ;(e.start = i), (e.isRefreshDataBeforeSku = !1), (e.skuData = n), (e.baseInfo = r)
                  }
                }),
                e.addCase(Dr.rejected, function (e) {
                  ;(e.checkDetailStartEnd = !1), (e.isRefreshDataBeforeSku = !1)
                }),
                e.addCase(Tr.fulfilled, function (e, t) {
                  var n,
                    a = t.payload.success,
                    i = 'true' === e.itemSubscribed
                  a
                    ? (!i &&
                        b().showToast({ title: '预约成功，将通过大麦端推送通知你～', icon: 'none', duration: 3e3 }),
                      !i ||
                        b().showToast({
                          title: '开售提醒已取消，开启提醒可以及时收到开售通知哦～',
                          icon: 'none',
                          duration: 3e3,
                        }),
                      (e.itemSubscribed = i ? 'false' : 'true'),
                      null != e &&
                        null !== (n = e.baseInfo) &&
                        void 0 !== n &&
                        n.text &&
                        (e.baseInfo.text = i ? '预约开售提醒' : '已预约提醒'))
                    : b().showToast({ title: '麦麦开小差了，请稍后重试哦～', icon: 'none' })
                })
            },
          }),
          wr = br.actions,
          Nr = wr.setCodeVerifiedSuccessActivityId,
          Ar = wr.countDownEnd,
          Er = wr.setHideHalfCountDown,
          kr = wr.skuFavorChoice,
          Sr = wr.setIsLessOneHour,
          Cr = br.reducer,
          Ir = function (e) {
            return e.showDetail.buy
          },
          xr = function (e) {
            return e.showDetail.buy.hideHalfCountDown
          },
          _r = function (e) {
            return e.showDetail.buy.isCountDownEnd
          },
          Dr = (0, j.zD)(
            ''.concat(gr, '/checkDetailStart'),
            (function () {
              var e = (0, h.A)(
                (0, f.A)().m(function e(t, n) {
                  var a, i, r, o
                  return (0, f.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          return (e.n = 1), re.A.checkDetailStart({ data: t })
                        case 1:
                          if (((a = e.v), (i = (0, v.A)(a, 2)), (r = i[0]), (o = i[1]), !r)) {
                            e.n = 2
                            break
                          }
                          return e.a(2, n.rejectWithValue(r))
                        case 2:
                          return e.a(2, o)
                      }
                  }, e)
                }),
              )
              return function (t, n) {
                return e.apply(this, arguments)
              }
            })(),
          ),
          Tr = (0, j.zD)(
            ''.concat(gr, '/updateReminder'),
            (function () {
              var e = (0, h.A)(
                (0, f.A)().m(function e(t, n) {
                  var a, i, r
                  return (0, f.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          return (
                            (a = {
                              group: 'PROJECT_GROUP',
                              targetType: 'SALE_REMIND',
                              operateType: null == t ? void 0 : t.type,
                              targetId: null == t ? void 0 : t.id,
                            }),
                            (i = (function () {
                              var e = (0, h.A)(
                                (0, f.A)().m(function e() {
                                  var t, i, r, o, c
                                  return (0, f.A)().w(function (e) {
                                    for (;;)
                                      switch (e.n) {
                                        case 0:
                                          return (e.n = 1), re.A.wantUpdate(a)
                                        case 1:
                                          if (((t = e.v), (i = (0, v.A)(t, 2)), (r = i[0]), (o = i[1]), !r)) {
                                            e.n = 2
                                            break
                                          }
                                          return e.a(2, null == n ? void 0 : n.rejectWithValue(r))
                                        case 2:
                                          return (c = o.success), e.a(2, { success: 'true' === String(c) })
                                      }
                                  }, e)
                                }),
                              )
                              return function () {
                                return e.apply(this, arguments)
                              }
                            })()),
                            (e.n = 1),
                            fe.A.isLogin()
                          )
                        case 1:
                          if (e.v) {
                            e.n = 5
                            break
                          }
                          return (e.n = 2), fe.A.login()
                        case 2:
                          if (((r = e.v), !r.success)) {
                            e.n = 4
                            break
                          }
                          return (e.n = 3), i()
                        case 3:
                          return e.a(2, e.v)
                        case 4:
                          e.n = 7
                          break
                        case 5:
                          return (e.n = 6), i()
                        case 6:
                          return e.a(2, e.v)
                        case 7:
                          return e.a(2)
                      }
                  }, e)
                }),
              )
              return function (t, n) {
                return e.apply(this, arguments)
              }
            })(),
          ),
          jr = l(6070),
          Or = function () {
            var e = ((0, u.d4)(Ir) || {}).countDownData
            return (0, jr.jsx)('div', {
              className: 'safe-area-holder',
              style: { '--safe-bottom-height': null != e && e.countdown ? '80px' : '0px' },
            })
          },
          Pr = l(2645),
          Rr = l.n(Pr),
          Lr = l(7181),
          Mr = function (e, t, n) {
            return new Promise(function (a, i) {
              var r = function (e) {
                  try {
                    c(n.next(e))
                  } catch (e) {
                    i(e)
                  }
                },
                o = function (e) {
                  try {
                    c(n.throw(e))
                  } catch (e) {
                    i(e)
                  }
                },
                c = function (e) {
                  return e.done ? a(e.value) : Promise.resolve(e.value).then(r, o)
                }
              c((n = n.apply(e, t)).next())
            })
          },
          Fr = (0, Ve.jZ)(),
          Hr = d.forwardRef(function (e, a) {
            var i = e.open,
              r = e.title,
              o = void 0 === r ? '请输入特权码' : r,
              c = e.placeholder,
              l = void 0 === c ? '请输入特权码' : c,
              s = e.okText,
              u = void 0 === s ? '确定' : s,
              m = e.itemId,
              p = e.changeVisible,
              f = e.handleCallback,
              v = (0, d.useState)(''),
              h = n(v, 2),
              g = h[0],
              y = h[1],
              b = (0, d.useState)(!1),
              w = n(b, 2),
              N = w[0],
              A = w[1],
              E = function () {
                null == p || p(!1)
              }
            return d.createElement(
              rt.A,
              { open: i, onClose: E, className: 'bui-show-privilege-modal-drawer', ref: a },
              d.createElement(
                'div',
                null,
                d.createElement(
                  'div',
                  { className: 'container' },
                  d.createElement(
                    'div',
                    { className: 'title-container' },
                    d.createElement('div', { className: 'title' }, o),
                    d.createElement('div', { className: 'iconfont icon-close close-button', onClick: E }),
                  ),
                  d.createElement(
                    'div',
                    { className: 'privilege-form' },
                    d.createElement(Lr.A, {
                      className: 'dm-input',
                      placeholder: l,
                      name: 'privilegeCode',
                      type: 'text',
                      onChange: function (e, t) {
                        y((null == t ? void 0 : t.value) || '')
                      },
                    }),
                    d.createElement(
                      Le.A,
                      {
                        className: 'submit-button btn ' + (g ? 'primary' : 'disable'),
                        onClick: function () {
                          return Mr(
                            void 0,
                            null,
                            t().mark(function e() {
                              var n
                              return t().wrap(function (e) {
                                for (;;)
                                  switch ((e.prev = e.next)) {
                                    case 0:
                                      if (!g) {
                                        e.next = 8
                                        break
                                      }
                                      if (N || !g) {
                                        e.next = 6
                                        break
                                      }
                                      return (
                                        (e.next = 4),
                                        Mr(
                                          void 0,
                                          null,
                                          t().mark(function e() {
                                            var n
                                            return t().wrap(function (e) {
                                              for (;;)
                                                switch ((e.prev = e.next)) {
                                                  case 0:
                                                    return (
                                                      A(!0),
                                                      (n = {
                                                        channelId: Fr ? 'weapp@damai_h5' : '',
                                                        bizObjType: '1',
                                                        bizObjId: m,
                                                        code: g,
                                                      }),
                                                      e.abrupt(
                                                        'return',
                                                        new Promise(function (e) {
                                                          Pe.A.mtop
                                                            .call({
                                                              requestOptions: {
                                                                api: 'mtop.damai.wireless.mkt.privilege.verifyandsigncode',
                                                                v: '1.0',
                                                                data: n,
                                                              },
                                                            })
                                                            .then(function (t) {
                                                              var n, a, i
                                                              ;(null == t ? void 0 : t.data) &&
                                                              'true' ===
                                                                (null == (n = null == t ? void 0 : t.data)
                                                                  ? void 0
                                                                  : n.verifiedSuccess)
                                                                ? e(
                                                                    (null == (a = null == t ? void 0 : t.data)
                                                                      ? void 0
                                                                      : a.successActivityId) || !0,
                                                                  )
                                                                : ((0, pe.o)({
                                                                    message:
                                                                      (null == (i = null == t ? void 0 : t.data)
                                                                        ? void 0
                                                                        : i.failedMsg) || '亲，特权码验证失败',
                                                                  }),
                                                                  e(!1))
                                                            })
                                                            .catch(function () {
                                                              e(!1)
                                                            })
                                                            .finally(function () {
                                                              A(!1)
                                                            })
                                                        }),
                                                      )
                                                    )
                                                  case 3:
                                                  case 'end':
                                                    return e.stop()
                                                }
                                            }, e)
                                          }),
                                        )
                                      )
                                    case 4:
                                      ;(n = e.sent), null == f || f(n)
                                    case 6:
                                      e.next = 9
                                      break
                                    case 8:
                                      ;(0, pe.o)({ message: '亲，特权码为空' })
                                    case 9:
                                    case 'end':
                                      return e.stop()
                                  }
                              }, e)
                            }),
                          )
                        },
                      },
                      u,
                    ),
                  ),
                ),
              ),
            )
          })
        Hr.displayName = 'ShowPrivilegeModal'
        var Br = Hr,
          Vr = function (e) {
            var t = e.avatars,
              n = void 0 === t ? [] : t,
              a = (0, d.useState)([]),
              i = (0, v.A)(a, 2),
              r = i[0],
              o = i[1],
              c = (0, d.useState)(2),
              l = (0, v.A)(c, 2),
              s = l[0],
              u = l[1],
              m = (0, d.useRef)()
            ;(0, y.useDidHide)(function () {
              m.current && clearInterval(m.current)
            }),
              (0, d.useEffect)(
                function () {
                  n.length >= 3 &&
                    o([
                      { id: Date.now(), src: n[0], class: 'avatar-1' },
                      { id: Date.now() + 1, src: n[1], class: 'avatar-2' },
                      { id: Date.now() + 2, src: n[2], class: 'avatar-3' },
                    ])
                },
                [n],
              )
            var p = (0, d.useCallback)(
              function () {
                var e = (s + 1) % n.length,
                  t = { id: Date.now(), src: n[e], class: 'avatar-entering-start' }
                u(e),
                  o(function (e) {
                    return [
                      t,
                      (0, ie.A)((0, ie.A)({}, e[0]), {}, { class: 'avatar-2' }),
                      (0, ie.A)((0, ie.A)({}, e[1]), {}, { class: 'avatar-3' }),
                      (0, ie.A)((0, ie.A)({}, e[2]), {}, { class: 'avatar-exiting' }),
                    ]
                  })
              },
              [s, n],
            )
            return (
              (0, d.useEffect)(
                function () {
                  if (n.length >= 3)
                    return (
                      (m.current = setInterval(p, 2e3)),
                      function () {
                        m.current && (clearInterval(m.current), (m.current = null))
                      }
                    )
                },
                [p, n.length],
              ),
              (0, jr.jsx)('div', {
                className: 'avatar-carousel',
                children: r.map(function (e) {
                  return (0,
                  jr.jsx)('div', { className: 'avatar '.concat(e.class), style: { backgroundImage: 'url('.concat(e.src, ')') } }, e.id)
                }),
              })
            )
          },
          zr = m.A,
          Ur = function () {
            var e,
              t = (0, u.Pj)(),
              n = (0, u.wA)(),
              a = (0, u.d4)(Q),
              i = (0, d.useState)(!1),
              r = (0, v.A)(i, 2),
              o = r[0],
              c = r[1],
              l = (0, u.d4)(xr),
              s = (0, u.d4)(ae),
              m = (0, u.d4)(Ir),
              p = m || {},
              y = p.itemId,
              w = p.projectId,
              N = p.baseInfo,
              A = p.isPreview,
              E = p.countDownData,
              k = p.drawCouponMixedId,
              S = p.canRedeemCoupon,
              I = p.itemSubscribed,
              x = p.avatars,
              D = N || {},
              T = D.style,
              j = D.enable,
              O = D.text,
              P = D.tip,
              R = D.status,
              L = (E || {}).countdown,
              M = 'true' === I,
              F = (function () {
                var e = (0, h.A)(
                  (0, f.A)().m(function e() {
                    var a, i, r, o
                    return (0, f.A)().w(function (e) {
                      for (;;)
                        switch (e.n) {
                          case 0:
                            if (j) {
                              e.n = 1
                              break
                            }
                            return e.a(2)
                          case 1:
                            if (
                              ((a = t.getState()),
                              (i = a.showDetail.buy),
                              (r = (i || {}).isRefreshDataBeforeSku),
                              R !== oe.SH.ITEM_NOT_SALE)
                            ) {
                              e.n = 2
                              break
                            }
                            return (
                              b().showToast({
                                title: null == i || null === (o = i.baseInfo) || void 0 === o ? void 0 : o.toast,
                                icon: 'none',
                              }),
                              e.a(2)
                            )
                          case 2:
                            if (R !== oe.SH.SALE_APPOINTMENT_REMINDER) {
                              e.n = 3
                              break
                            }
                            return n(Tr({ type: M ? 0 : 1, id: y })), e.a(2)
                          case 3:
                            if (r || !A) {
                              e.n = 4
                              break
                            }
                            return q({ skuPreview: !0 }), e.a(2)
                          case 4:
                            return (e.n = 5), V()
                          case 5:
                            if (e.v) {
                              e.n = 6
                              break
                            }
                            return e.a(2)
                          case 6:
                            return (e.n = 7), B()
                          case 7:
                            return e.a(2)
                        }
                    }, e)
                  }),
                )
                return function () {
                  return e.apply(this, arguments)
                }
              })(),
              H = Rr()(F, 500, { leading: !0, trailing: !1 }),
              B = (function () {
                var e = (0, h.A)(
                  (0, f.A)().m(function e() {
                    var n,
                      a,
                      i,
                      r,
                      o,
                      c,
                      l,
                      s,
                      u,
                      d,
                      m,
                      p,
                      v = arguments
                    return (0, f.A)().w(function (e) {
                      for (;;)
                        switch (e.n) {
                          case 0:
                            if (v.length > 0 && void 0 !== v[0] && v[0]) {
                              e.n = 1
                              break
                            }
                            if (z()) {
                              e.n = 1
                              break
                            }
                            return e.a(2)
                          case 1:
                            if (((a = !1), (i = null), (r = t.getState()), !r.showDetail.buy.isRefreshDataBeforeSku)) {
                              e.n = 4
                              break
                            }
                            return (e.n = 2), W()
                          case 2:
                            if (
                              ((o = t.getState()),
                              (c = o.showDetail.buy),
                              (s = (l = c || {}).checkDetailStartEnd),
                              (u = l.start),
                              (d = l.skuData),
                              !s || !u)
                            ) {
                              e.n = 3
                              break
                            }
                            ;(a = !0), (i = d), (e.n = 4)
                            break
                          case 3:
                            return (a = !1), e.a(2, b().showToast({ title: '抢票还未开始，请稍后再试', icon: 'none' }))
                          case 4:
                            if (
                              ((m = t.getState()),
                              null != (p = m.showDetail.buy) && null !== (n = p.baseInfo) && void 0 !== n && n.enable)
                            ) {
                              e.n = 5
                              break
                            }
                            return e.a(2)
                          case 5:
                            q({ skuPreview: !1, skuInfo: { usePropSkuData: a, skuData: i } })
                          case 6:
                            return e.a(2)
                        }
                    }, e)
                  }),
                )
                return function () {
                  return e.apply(this, arguments)
                }
              })(),
              V = (function () {
                var e = (0, h.A)(
                  (0, f.A)().m(function e() {
                    var t, a
                    return (0, f.A)().w(function (e) {
                      for (;;)
                        switch (e.n) {
                          case 0:
                            return (e.n = 1), fe.A.isLogin()
                          case 1:
                            if (e.v) {
                              e.n = 7
                              break
                            }
                            return n(X(!1)), (e.n = 2), fe.A.login()
                          case 2:
                            if ((a = e.v)) {
                              e.n = 3
                              break
                            }
                            a = {}
                          case 3:
                            if (((t = a.success), n(X(!0)), !t)) {
                              e.n = 5
                              break
                            }
                            return (e.n = 4), n(U({ itemId: y }))
                          case 4:
                            return e.a(2, !0)
                          case 5:
                            return e.a(2, !1)
                          case 6:
                            e.n = 8
                            break
                          case 7:
                            return e.a(2, !0)
                          case 8:
                            return e.a(2)
                        }
                    }, e)
                  }),
                )
                return function () {
                  return e.apply(this, arguments)
                }
              })(),
              z = function () {
                var e = t.getState().showDetail.buy || {},
                  n = e.privilege,
                  a = e.codeVerifiedSuccessActivityId,
                  i = n || {},
                  r = i.type,
                  o = i.hasPrivilege
                return !(
                  n &&
                  r &&
                  (r === oe.fn.USER
                    ? !o && (b().showToast({ title: '亲，您没有购买特权', icon: 'none' }), 1)
                    : r === oe.fn.CODE && !a && (c(!0), 1))
                )
              },
              W = function () {
                var e = ((t.getState().showDetail.buy || {}).privilege || {}).id
                return new Promise(function (t) {
                  var a = { dataType: 4 }
                  e && (a.privilegeActId = e)
                  var i = {
                    itemId: y || '',
                    bizCode: 'ali.china.damai',
                    scenario: 'itemsku',
                    exParams: JSON.stringify(a),
                  }
                  n(Dr(i))
                    .then(function () {
                      t(!0)
                    })
                    .catch(function () {
                      t(!1)
                    })
                })
              },
              q = function () {
                var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
                  n = e.skuPreview,
                  i = void 0 !== n && n,
                  r = e.skuInfo,
                  o = void 0 === r ? {} : r,
                  c = t.getState(),
                  l = c.showDetail.buy,
                  s = l || {},
                  u = s.privilege,
                  d = s.codeVerifiedSuccessActivityId,
                  p = u || {},
                  f = p.id,
                  v = (null == a ? void 0 : a.options) || {},
                  h = v.activityId,
                  g = void 0 === h ? '' : h
                zr.globalData.detailSkuData = {
                  itemId: y,
                  activityId: g,
                  projectId: w,
                  skuPreview: i,
                  privilegeId: 'boolean' == typeof d ? f : d,
                  options: null == a ? void 0 : a.options,
                  distributionId: null == a ? void 0 : a.distributionId,
                  skuData: o.skuData,
                  usePropSkuData: o.usePropSkuData,
                  venue: null == m ? void 0 : m.venue,
                  drawCouponMixedId: k,
                  canRedeemCoupon: S,
                }
                console.log('id', y);
                console.log('activityId', g)
                var b = '/subPackages/sku/index?id='.concat(y)
                g && (b += '&activityId='.concat(g)), _.A.navTo(b)
              },
              $ = (function () {
                var e = (0, h.A)(
                  (0, f.A)().m(function e(t) {
                    return (0, f.A)().w(function (e) {
                      for (;;)
                        switch (e.n) {
                          case 0:
                            if ((n(Nr(t)), !t)) {
                              e.n = 1
                              break
                            }
                            return c(!1), (e.n = 1), B(t)
                          case 1:
                            return e.a(2)
                        }
                    }, e)
                  }),
                )
                return function (t) {
                  return e.apply(this, arguments)
                }
              })()
            return (
              (0, d.useEffect)(
                function () {
                  n(kr())
                },
                [l, L],
              ),
              m
                ? (0, jr.jsxs)(d.Fragment, {
                    children: [
                      (0, jr.jsxs)(He.A, {
                        Component: Le.A,
                        className: (0, g.A)('buy-button', { gray: 1 === T, 'is-concert': s }),
                        dynamicData: {
                          item_id: y,
                          buy_type: R,
                          is_privilege: null != m && null !== (e = m.privilege) && void 0 !== e && e.type ? 1 : 0,
                        },
                        onClick: H,
                        children: [
                          (null == x ? void 0 : x.length) >= 3 && (0, jr.jsx)(Vr, { avatars: x }),
                          (0, jr.jsxs)('div', {
                            className: 'btn-content',
                            children: [
                              (0, jr.jsx)(C.EY, { className: 'btn-title', children: O }),
                              !!P &&
                                (0, jr.jsx)(C.EY, {
                                  className: 'btn-tips',
                                  children:
                                    l && null != E && E.sellStartTimeStr
                                      ? ''.concat(null == E ? void 0 : E.sellStartTimeStr, '开抢')
                                      : P,
                                }),
                            ],
                          }),
                        ],
                      }),
                      (0, jr.jsx)(Br, { open: o, itemId: y, changeVisible: c, handleCallback: $ }),
                    ],
                  })
                : null
            )
          },
          Wr = l(1378),
          qr = l(2201),
          $r = l(5837),
          Jr = l(2424),
          Gr = me.Ay.isWX,
          Yr = function () {
            var e = (0, u.wA)(),
              t = (0, u.d4)(De).showPushGuide,
              n = (0, u.d4)(Oe),
              a = (0, u.d4)(Te),
              i = (0, u.d4)(je),
              r = (0, u.d4)(ae),
              o = (0, u.d4)(te),
              c = ((0, u.d4)(K) || {}).ruleId,
              l = (0, d.useState)(''),
              s = (0, v.A)(l, 2),
              m = s[0],
              p = s[1],
              y = (0, d.useState)(!1),
              w = (0, v.A)(y, 2),
              N = w[0],
              A = w[1],
              E = (0, d.useState)(!1),
              k = (0, v.A)(E, 2),
              S = k[0],
              I = k[1],
              x = n || {},
              _ = x.disableFollow,
              D = x.unfollowableTip,
              T = x.unfollowableToast,
              j = 'followPopover_'.concat(o),
              O = 'true' === b().getStorageSync(j),
              P = (0, d.useState)(_ && !O && D),
              R = (0, v.A)(P, 2),
              L = R[0],
              M = R[1],
              F = {
                show: r ? 'favor-show-tips-concert' : 'favor-show-tips',
                favor: r ? 'favor-favor-tips-concert' : 'favor-favor-tips',
                disfavor: r ? 'favor-disfavor-tips-concert' : 'favor-disfavor-tips',
              },
              H = r ? '想看' : '添加想看',
              B = r ? '我想看' : '已想看'
            ;(0, d.useEffect)(
              function () {
                L && b().setStorage({ key: j, data: 'true' })
              },
              [L],
            )
            var V = (function () {
              var t = (0, h.A)(
                (0, f.A)().m(function t() {
                  return (0, f.A)().w(function (t) {
                    for (;;)
                      switch (t.n) {
                        case 0:
                          if (!_) {
                            t.n = 1
                            break
                          }
                          return T && b().showToast({ title: T, icon: 'none' }), t.a(2)
                        case 1:
                          p(i ? F.disfavor : F.favor),
                            e(Ae({ itemId: o, isWantSee: !i })),
                            setTimeout(function () {
                              p('')
                            }, 1e3)
                        case 2:
                          return t.a(2)
                      }
                  }, t)
                }),
              )
              return function () {
                return t.apply(this, arguments)
              }
            })()
            return (
              (0, d.useEffect)(
                function () {
                  a &&
                    !i &&
                    !_ &&
                    (function () {
                      var e = b().getStorageSync('tipsClose'.concat(o))
                      if (Gr && (c || e || i)) return !1
                      var t = '1007' === (0, Yi.Jt)('scene') + '' && !(0, Yi.Jt)('isFromWXShareScene'),
                        n = 'DM.Detail.Favor.Tips',
                        a = b().getStorageSync(n),
                        r = t || !a
                      r &&
                        (I(t),
                        A(!0),
                        p(F.show),
                        (0, Yi.hZ)('isFromWXShareScene', t),
                        setTimeout(function () {
                          p('')
                        }, 5e3),
                        b().setStorage({ key: n, data: 1 }))
                    })()
                },
                [c, i, a],
              ),
              (0, jr.jsxs)(He.A, {
                className: (0, g.A)('want-see-container', { 'is-concert': r }),
                children: [
                  L
                    ? (0, jr.jsxs)('div', {
                        className: 'follow-popover',
                        onClick: function (e) {
                          return e.stopPropagation()
                        },
                        children: [
                          (0, jr.jsx)('div', { className: 'follow-popover-arrow' }),
                          D,
                          (0, jr.jsx)(Wr.A, {
                            onClick: function (e) {
                              e.stopPropagation(), M(!1)
                            },
                            children: (0, jr.jsx)(qr.A, { htmlColor: '#fff' }),
                          }),
                        ],
                      })
                    : null,
                  (0, jr.jsx)(He.A, {
                    Component: Le.A,
                    dynamicData: { item_id: o, type: i ? 1 : 0 },
                    className: (0, g.A)('want-button', _ && 'disable-follow'),
                    startIcon: m
                      ? (0, jr.jsx)('div', { className: m })
                      : i && !_
                      ? (0, jr.jsx)($r.A, { className: 'has-favor', htmlColor: r ? 'rgb(255, 40, 105)' : '#fff' })
                      : (0, jr.jsx)(Jr.A, { className: 'add-favor', htmlColor: r ? '#3c3f44' : '#fff' }),
                    onClick: V,
                    children: i && !_ ? B : H,
                  }),
                  N &&
                    (0, jr.jsxs)(
                      He.A,
                      {
                        Component: C.Ss,
                        dynamicData: { item_id: o, type: i ? 1 : 0, clk_type: i ? 0 : 1 },
                        className: (0, g.A)('favor-guide-tips', S && 'share-tips'),
                        children: [
                          (0, jr.jsx)(C.Ss, {
                            className: 'favor-guide-title',
                            children: S ? n.guideTipShareTitle : n.guideTipTitle,
                          }),
                          (0, jr.jsx)(C.Ss, {
                            className: 'favor-guide-content',
                            children: S ? n.guideTipShareSubTitle : n.guideTipSubTitle,
                          }),
                          (0, jr.jsx)(C.Ss, {
                            className: 'favor-guide-close',
                            onClick: function () {
                              A(!1)
                            },
                            children: (0, jr.jsx)(qr.A, { htmlColor: '#999' }),
                          }),
                        ],
                      },
                      ''.concat(N),
                    ),
                  t &&
                    (0, jr.jsx)('div', {
                      className: 'favor-push-guide',
                      onClick: function () {
                        e(Se(!1))
                      },
                      children: (0, jr.jsx)('img', {
                        className: 'guide-img',
                        src: 'https://gw.alicdn.com/imgextra/i1/O1CN017YxW921Nfvj4eLxfA_!!6000000001598-2-tps-1000-760.png',
                        alt: '',
                      }),
                    }),
                ],
              })
            )
          },
          Xr = (0, lt.A)(
            '<path d="m56.7 10.4 28.7 24.2.5.4c3.5 3.3 3.9 8.7 1 12.4-.3.4-.7.8-1.2 1.1l-1 .6c-2.1 1.5-3.4 3.9-3.4 6.6v14.8c0 7.8-5.3 13.8-12.7 13.8H29.5c-7.6 0-14.5-6.2-14.5-13.8V54c0-2-1.2-3.8-3-4.6-1.1-.5-1.9-1-2.6-1.9-3-3.8-2.5-9.2.9-12.4l29-24.7c5-4 12.4-4 17.4 0zm-12.6 5.9L15.6 40.7c-.5.4-.7 1.2-.5 1.8 4.5 2 7.5 6.6 7.5 11.6v16.6c0 3.1 3.3 6.1 6.9 6.1h38.9c3.1 0 5.1-2.3 5.1-6.1V55.9c0-5.2 2.5-10 6.7-12.9l.7-.5.1-.3c.1-.6-.1-1.2-.5-1.6L51.9 16.4c-2.2-1.8-5.7-1.8-7.8-.1zm4 28c3 0 6.7 2.2 11.9 6.6 3 2.5 4.7 6.2 4.7 10.1v3.7c0 1.4-.7 2.6-1.9 3.3-1.2.7-2.6.7-3.8 0-1.2-.7-1.9-1.9-1.9-3.3V61c0-1.6-.7-3.2-2-4.2-2.1-1.8-3.9-3.1-5.3-3.9-.4-.2-.8-.5-1.3-.7l-.2-.2h-.2l-.3.1-.7.4-.7.4c-1.4.8-3.2 2.2-5.4 4-1.3 1-2 2.6-2 4.2v3.7c0 2.1-1.7 3.8-3.8 3.8s-3.8-1.7-3.8-3.8V61c0-3.9 1.7-7.6 4.8-10.1 5.4-4.4 9-6.6 11.9-6.6z" style="fill:#3c3f44"/>',
            'HomeIcon',
          ),
          Zr = function () {
            return (0, jr.jsxs)(C.Ss, {
              className: 'home_button',
              onClick: function () {
                var e = ''.concat(cr.A.spmA, '.project.bottom.dgotohome')
                _.A.navTo('/pages/home/index', { spm: e })
              },
              children: [
                (0, jr.jsx)(Xr, { className: 'btn_icon', htmlColor: '#3C3F44' }),
                (0, jr.jsx)(C.EY, { className: 'btn_text', children: '大麦首页' }),
              ],
            })
          },
          Qr = (0, lt.A)(
            '<path d="M47 12c1.7 0 3 1.3 3 3s-1.3 3-3 3H24c-5 0-9 4-9 9v42c0 5 4 9 9 9h48c5 0 9-4 9-9V49c0-1.7 1.3-3 3-3s3 1.3 3 3v20c0 8.3-6.7 15-15 15H24c-8.3 0-15-6.7-15-15V27c0-8.3 6.7-15 15-15h23zm27.1.9 12 12c1.9 1.9.6 5.1-2.1 5.1h-7.9C61.8 30 50 41 49 55.2c-.1 1.7-1.6 2.9-3.2 2.8-1.7-.1-2.9-1.6-2.8-3.2C44.2 37.4 58.7 24 76.1 24h.7l-6.9-6.9c-1.1-1.1-1.2-2.9-.1-4.1l.1-.1c1.1-1.2 3-1.2 4.2 0z"/>',
            'ShareIcon',
          ),
          Kr = function () {
            var e = (0, u.d4)(ee)
            return e && null != e && e.itemId && null != e && e.itemName
              ? (0, jr.jsxs)(He.A, {
                  Component: C.$n,
                  openType: 'share',
                  className: 'bottom-share-button',
                  children: [
                    (0, jr.jsx)(Qr, { className: 'btn-icon' }),
                    (0, jr.jsx)(C.EY, { className: 'btn-text', children: '分享' }),
                  ],
                })
              : null
          },
          eo = null,
          to = function (e) {
            var t = e.title,
              n = void 0 === t ? '拼团' : t,
              a = (0, u.d4)(te),
              i = (0, u.d4)(K) || {},
              r = i.ruleId,
              o = i.tipsTitle,
              c = i.tipsSubTitle,
              l = i.jumpUrl,
              s = (0, d.useState)(!b().getStorageSync('tipsClose'.concat(a)) || !1),
              m = (0, v.A)(s, 2),
              p = m[0],
              f = m[1],
              h = function () {
                l && _.A.navTo(l)
              }
            return (
              (0, d.useEffect)(
                function () {
                  if (a && r && n)
                    return (
                      (eo = setTimeout(function () {
                        b().setStorageSync('tipsClose'.concat(a), !0), f(!1), clearTimeout(eo)
                      }, 6e3)),
                      function () {
                        eo && clearTimeout(eo)
                      }
                    )
                },
                [a, r, n],
              ),
              r && n
                ? (0, jr.jsxs)(d.Fragment, {
                    children: [
                      (0, jr.jsxs)(He.A, {
                        className: 'group-buy-button',
                        onClick: function () {
                          return h()
                        },
                        dynamicData: { item_id: a, rule_id: r },
                        children: [
                          (0, jr.jsx)(C.Ss, { className: 'btn-icon' }),
                          (0, jr.jsx)(C.EY, { className: 'btn-text', children: n }),
                        ],
                      }),
                      p &&
                        (o || c) &&
                        (0, jr.jsxs)(He.A, {
                          Component: C.Ss,
                          className: 'group-buy-tips',
                          onClick: function () {
                            return h()
                          },
                          dynamicData: { item_id: a, rule_id: r },
                          children: [
                            (0, jr.jsxs)(C.Ss, {
                              className: 'tips-title',
                              children: [o, (0, jr.jsx)(C.Ss, { className: 'tips-icon' })],
                            }),
                            (0, jr.jsx)(C.Ss, { className: 'tips-content', children: c }),
                            (0, jr.jsx)(He.A, {
                              Component: qr.A,
                              className: 'tips-close',
                              onClick: function (e) {
                                e.stopPropagation(),
                                  b().setStorageSync('tipsClose'.concat(a), !0),
                                  f(!1),
                                  eo && clearTimeout(eo)
                              },
                            }),
                          ],
                        }),
                    ],
                  })
                : null
            )
          },
          no = l(9063),
          ao = function () {
            return (0, hn.L)('getSystemInfoSync', void 0)
          },
          io = function (e) {
            var t = e.preNum,
              a = e.curNum,
              i = (0, d.useState)(t),
              r = n(i, 2),
              o = r[0],
              c = r[1],
              l = (0, d.useState)(a),
              s = n(l, 2),
              u = s[0],
              m = s[1],
              p = (0, d.useState)(!1),
              f = n(p, 2),
              v = f[0],
              h = f[1],
              g = (0, d.useMemo)(function () {
                var e = (
                  (function () {
                    for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
                    var a,
                      i = t[0]
                    return (a = ao) || (a = bn.RV), a(i)
                  })() || {}
                ).model
                return (null == e ? void 0 : e.indexOf('iPhone 14 Pro Max')) > -1
              }, [])
            return (
              (0, d.useEffect)(
                function () {
                  if (a) {
                    h(!1), c(t), m(a)
                    var e = setTimeout(function () {
                      h(!0), clearTimeout(e), (e = null)
                    }, 100)
                  }
                },
                [a],
              ),
              d.createElement(
                'div',
                {
                  className: (0, Fe.A)('day-container-outer', {
                    'day-container-outer-three': (null == a ? void 0 : a.length) > 2,
                  }),
                },
                d.createElement(
                  'div',
                  { className: (0, Fe.A)('day-container', { 'iphone-14-pro-max': g }) },
                  d.createElement('div', { className: 'day day-top' }, u),
                  d.createElement(
                    'div',
                    { className: (0, Fe.A)('day-box', { 'flip-animate': v }) },
                    d.createElement('div', { className: 'day day-front' }, o),
                    d.createElement('div', { className: 'day day-back' }, u),
                  ),
                  d.createElement('div', { className: 'day day-bottom' }, o),
                ),
              )
            )
          },
          ro = !1,
          oo = function (e) {
            return e < 0 ? '00' : e < 10 ? '0'.concat(e) : ''.concat(e)
          }
        var co = (0, d.memo)(
            function (e) {
              var t = e.countDownTime,
                n = e.endCountDown,
                a = e.onLessThan1HourFlag,
                i = e.sellStartTime
              return d.createElement(it.A, {
                remainingTime: t,
                serverTimestamp: i,
                onFinish: n,
                renderContent: function (e) {
                  var t = e.total,
                    n = e.days,
                    i = e.hoursWithDays,
                    r = e.minutes,
                    o = e.seconds,
                    c = t + 1e3,
                    l = oo(Math.floor((c / 1e3) % 60)),
                    s = oo(Math.floor((c / 1e3 / 60) % 60)),
                    u = oo(Math.floor(c / 36e5) % 24),
                    m = oo(Math.floor(c / 864e5))
                  return (
                    t > 0 && t <= 36e5 && !ro && ((ro = !0), null == a || a()),
                    d.createElement(
                      d.Fragment,
                      null,
                      d.createElement('div', { className: 'day-text' }, '仅'),
                      d.createElement(io, { curNum: n, preNum: m }),
                      d.createElement('div', { className: 'day-text' }, '天'),
                      d.createElement(io, { curNum: i, preNum: u }),
                      d.createElement('div', { className: 'day-text' }, '时'),
                      d.createElement(io, { curNum: r, preNum: s }),
                      d.createElement('div', { className: 'day-text' }, '分'),
                      d.createElement(io, { curNum: o, preNum: l }),
                      d.createElement('div', { className: 'day-text last-text' }, '秒'),
                    )
                  )
                },
              })
            },
            function (e, t) {
              return e.countDownTime === t.countDownTime
            },
          ),
          lo = function (e) {
            var t,
              a,
              i = e.countDownTime,
              r = e.sellStartTime,
              o = e.sellStartTimeStr,
              c = e.hasRemind,
              l = e.topCardInfo,
              s = e.endCountDown,
              u = e.addRemind,
              m = e.hideHalfCountDown,
              p = e.onLessThan1HourFlag,
              f = (0, d.useState)(!1),
              v = n(f, 2),
              h = v[0],
              g = v[1]
            return d.createElement(
              He.A,
              {
                className: (0, Fe.A)('bui-show-buy-count-down', { 'hide-count-down-container': m }),
                onClick: function (e) {
                  return e.stopPropagation()
                },
              },
              d.createElement(
                'div',
                {
                  className: (0, Fe.A)('count-down-container', {
                    'is-flash-sale': 'true' === (null == l ? void 0 : l.isFlashSale),
                  }),
                },
                d.createElement(
                  'div',
                  { className: 'count-down' },
                  d.createElement(
                    'div',
                    { className: 'count-down-clock' },
                    'true' === (null == l ? void 0 : l.isFlashSale) &&
                      d.createElement(Re.A, {
                        className: 'flash-sale-icon',
                        onClick: function () {
                          g(!0)
                        },
                        src: 'https://gw.alicdn.com/imgextra/i3/O1CN01qvXogX1aNhDgqG4no_!!6000000003318-2-tps-189-45.png',
                        fit: 'widthFix',
                      }),
                    d.createElement(co, {
                      sellStartTime: r,
                      countDownTime: i,
                      endCountDown: s,
                      onLessThan1HourFlag: p,
                    }),
                  ),
                ),
                d.createElement(
                  'div',
                  { className: 'btn-group ' + (ro ? 'hide-remind-btn' : '') },
                  d.createElement('div', { className: 'count-down-start' }, o, '开抢'),
                  !ro &&
                    d.createElement(
                      He.A,
                      {
                        className: 'remind-btn-box',
                        onClick: function () {
                          null == u || u()
                        },
                      },
                      d.createElement('div', { className: 'remind-btn' }, c ? '已添加提醒' : '添加提醒'),
                    ),
                ),
              ),
              (null == l ? void 0 : l.flashSaleInfo) &&
                d.createElement(
                  no.A,
                  {
                    className: 'buy-first-modal',
                    open: h,
                    onClose: function () {
                      g(!1)
                    },
                    hideBackdrop: !0,
                  },
                  d.createElement(
                    'div',
                    { className: 'buy-first-container' },
                    d.createElement(
                      'div',
                      { className: 'buy-first-title' },
                      null == (t = l.flashSaleInfo) ? void 0 : t.popupTitle,
                    ),
                    d.createElement('div', {
                      className: 'buy-first-content',
                      dangerouslySetInnerHTML: { __html: null == (a = l.flashSaleInfo) ? void 0 : a.popupContent },
                    }),
                    d.createElement(
                      Le.A,
                      {
                        className: 'btn-get',
                        size: 'full',
                        variant: 'contained',
                        onClick: function () {
                          return g(!1)
                        },
                      },
                      '知道了',
                    ),
                  ),
                ),
            )
          }
        ;(lo.defaultProps = {}), (lo.displayName = 'ShowBuyCountDown')
        var so,
          uo,
          mo = lo,
          po = (null === (so = b().getWindowInfo()) || void 0 === so ? void 0 : so.windowHeight) || 800,
          fo = function () {
            var e = (0, u.wA)(),
              t = (0, u.d4)(Ir) || {},
              n = (0, u.d4)(te),
              a = (0, u.d4)(De).hasRemind,
              i = (0, u.d4)(xr),
              r = (0, u.d4)(_r),
              o = (0, u.d4)(Q).topCardInfo,
              c = (t || {}).countDownData
            return (
              (0, d.useEffect)(
                function () {
                  if (null != c && c.countdown) {
                    var t = function () {
                        var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}
                        uo && clearTimeout(uo),
                          (uo = setTimeout(function () {
                            var n,
                              a =
                                null === (n = t.data) || void 0 === n || null === (n = n.detail) || void 0 === n
                                  ? void 0
                                  : n.scrollTop
                            e(Er(a > 1.5 * po))
                          }, 300))
                      },
                      n = {}
                    return (
                      vr.on(fr.PAGE_SCROLL, t, n),
                      function () {
                        vr.off(fr.PAGE_SCROLL, t, n)
                      }
                    )
                  }
                },
                [null == c ? void 0 : c.countdown],
              ),
              null == c || !c.countdown || r
                ? null
                : (0, jr.jsx)(He.A, {
                    className: 'buy-count-down-container',
                    children: (0, jr.jsx)(mo, {
                      sellStartTime: Number(null == c ? void 0 : c.sellStartTime),
                      hideHalfCountDown: i,
                      countDownTime: 1e3 * (null == c ? void 0 : c.countdown),
                      sellStartTimeStr: null == c ? void 0 : c.sellStartTimeStr,
                      hasRemind: a,
                      addRemind: function () {
                        e(Ne({ itemId: n }))
                      },
                      topCardInfo: o,
                      onLessThan1HourFlag: (0, h.A)(
                        (0, f.A)().m(function t() {
                          return (0, f.A)().w(function (t) {
                            for (;;)
                              switch (t.n) {
                                case 0:
                                  return (t.n = 1), e(Sr(!0))
                                case 1:
                                  e(kr())
                                case 2:
                                  return t.a(2)
                              }
                          }, t)
                        }),
                      ),
                      endCountDown: function () {
                        e(Ar())
                      },
                    }),
                  })
            )
          },
          vo = me.Ay.isWX,
          ho = function () {
            var e = (0, Yi.Jt)('safeAreaInsetBottom'),
              t = (0, u.wA)(),
              n = (0, u.d4)(te),
              a = (0, u.d4)(De),
              i = a.status,
              r = a.canSubscribe,
              o = (0, u.d4)(ae)
            return (
              (0, d.useEffect)(
                function () {
                  r && n && i && t(ge({ itemId: n, status: i }))
                },
                [i, r, n],
              ),
              (0, jr.jsxs)(C.Ss, {
                className: 'bottom-bar-container',
                style: (0, ie.A)({}, e),
                children: [
                  (0, jr.jsx)(fo, {}),
                  (0, jr.jsxs)(C.Ss, {
                    className: (0, g.A)('btn-bar-wrapper', { 'is-concert-bar': o }),
                    children: [
                      vo && (0, jr.jsx)(to, {}),
                      !vo && (0, jr.jsx)(Zr, {}),
                      (0, jr.jsx)(Kr, {}),
                      o
                        ? (0, jr.jsxs)(jr.Fragment, { children: [(0, jr.jsx)(Yr, {}), (0, jr.jsx)(Ur, {})] })
                        : (0, jr.jsxs)(C.Ss, {
                            className: 'btn-wrapper',
                            children: [(0, jr.jsx)(Yr, {}), (0, jr.jsx)(Ur, {})],
                          }),
                    ],
                  }),
                ],
              })
            )
          },
          go = function (e) {
            var t = e.contentData,
              n = e.maxHeight,
              a = e.id,
              i = (0, d.useRef)(null),
              r = (0, d.useState)(!1),
              o = (0, v.A)(r, 2),
              c = o[0],
              l = o[1],
              s = (0, d.useRef)(!1),
              u = (0, d.useRef)(0.954)
            b().options.html &&
              (b().options.html.transformElement = function (e) {
                var t = e
                return (
                  'image' === t.nodeName &&
                    ((t.props.mode = 'widthFix'),
                    t.addEventListener(
                      'load',
                      function (e) {
                        return m(e, t)
                      },
                      {},
                    )),
                  'text' === t.nodeName && ((t.nodeName = 'view'), (t.props.class = t.props.class + ' h5-inline')),
                  t
                )
              })
            var m = (function () {
              var e = (0, h.A)(
                (0, f.A)().m(function e(t, a) {
                  var r, o, c, d, m, p, v
                  return (0, f.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          if (n) {
                            e.n = 1
                            break
                          }
                          return e.a(2)
                        case 1:
                          if (
                            (t &&
                              a &&
                              ((c = t.detail),
                              (d = void 0 === c ? {} : c),
                              (m = ((100 * u.current * d.height) / d.width).toFixed(2)),
                              a.setAttribute('style', 'height: '.concat(m, 'vw'))),
                            !s.current)
                          ) {
                            e.n = 2
                            break
                          }
                          return e.a(2)
                        case 2:
                          return (
                            (e.n = 3),
                            null == i ||
                            null === (r = i.current) ||
                            void 0 === r ||
                            null === (o = r.getBoundingClientRect) ||
                            void 0 === o
                              ? void 0
                              : o.call(r)
                          )
                        case 3:
                          if ((v = e.v)) {
                            e.n = 4
                            break
                          }
                          v = {}
                        case 4:
                          ;(p = v),
                            (u.current = p.width / (p.left + p.right)),
                            p.height >= n && ((s.current = !0), l(!0))
                        case 5:
                          return e.a(2)
                      }
                  }, e)
                }),
              )
              return function (t, n) {
                return e.apply(this, arguments)
              }
            })()
            return (
              (0, d.useEffect)(
                function () {
                  setTimeout(function () {
                    m()
                  }, 500)
                },
                [t],
              ),
              (0, jr.jsxs)(C.Ss, {
                id: a,
                ref: i,
                style: c ? { maxHeight: n + 'px' } : {},
                className: (0, g.A)('richtext-wrapper', { 'over-height': c }),
                children: [
                  (0, jr.jsx)(C.Ss, { className: 'richtext-content', dangerouslySetInnerHTML: { __html: t } }),
                  c &&
                    (0, jr.jsxs)(He.A, {
                      className: 'richtext-more',
                      children: [
                        (0, jr.jsx)(C.Ss, { className: 'more-mask' }),
                        (0, jr.jsx)(He.A, {
                          className: 'more-btn',
                          onClick: function () {
                            l(!1)
                          },
                          children: '展开全部',
                        }),
                      ],
                    }),
                ],
              })
            )
          },
          yo = [
            'https://gw.alicdn.com/imgextra/i1/O1CN01RQaFmm1apAp5ilZOi_!!6000000003378-2-tps-83-83.png',
            'https://gw.alicdn.com/imgextra/i2/O1CN01OWxfC622MbLvmflAU_!!6000000007106-2-tps-83-83.png',
            'https://gw.alicdn.com/imgextra/i1/O1CN013rOIJT20kl0qnsPQx_!!6000000006888-2-tps-83-83.png',
            'https://gw.alicdn.com/imgextra/i4/O1CN01GXemuL1Z7pjlsENQo_!!6000000003148-2-tps-84-84.png',
            'https://gw.alicdn.com/imgextra/i2/O1CN01RhrA5k1QaNsvneeee_!!6000000001992-2-tps-84-84.png',
            'https://gw.alicdn.com/imgextra/i3/O1CN0143CV0C1ZcWH4rkHSU_!!6000000003215-2-tps-84-84.png',
          ],
          bo = function () {
            var e,
              t,
              n,
              a,
              i = (0, u.d4)(Q),
              r = i.highlight,
              o = i.importantInfo,
              c = i.introduceInfo
            if (
              !(
                (null != r && null !== (e = r.content) && void 0 !== e && e.length) ||
                (null != o && o.content) ||
                (null != c && c.content)
              )
            )
              return null
            var l = 1 === (null == r || null === (t = r.content) || void 0 === t ? void 0 : t.length)
            return (0, jr.jsxs)(jr.Fragment, {
              children: [
                (0, jr.jsx)('div', { id: 'introduce-content1', className: 'anchor-dom' }),
                (0, jr.jsxs)(ea.A, {
                  className: 'detail-content',
                  children: [
                    (null == o ? void 0 : o.content) &&
                      (0, jr.jsxs)(jr.Fragment, {
                        children: [(0, jr.jsx)(Ai.A, { title: o.title }), (0, jr.jsx)(go, { contentData: o.content })],
                      }),
                    null != r && null !== (n = r.content) && void 0 !== n && n.length
                      ? (0, jr.jsxs)(jr.Fragment, {
                          children: [
                            (0, jr.jsx)(Ai.A, { title: r.title }),
                            (0, jr.jsx)('div', {
                              className: 'highlight-content',
                              children:
                                null == r || null === (a = r.content) || void 0 === a
                                  ? void 0
                                  : a.map(function (e, t) {
                                      return (0,
                                      jr.jsxs)('div', { className: 'highlight-item', children: [(0, jr.jsx)('img', { className: 'highlight-tag', src: l ? 'https://gw.alicdn.com/imgextra/i4/O1CN01NNmsj225YurZX5mso_!!6000000007539-2-tps-84-84.png' : yo[t], alt: '' }), (0, jr.jsx)('div', { className: (0, g.A)({ 'highlight-text': !0, 'one-highlight-text': l }), children: e })] }, t)
                                    }),
                            }),
                          ],
                        })
                      : null,
                    (null == c ? void 0 : c.content) &&
                      (0, jr.jsxs)(jr.Fragment, {
                        children: [
                          (0, jr.jsx)(Ai.A, { title: c.title }),
                          (0, jr.jsx)(go, {
                            id: 'introduce-content',
                            contentData: null == c ? void 0 : c.content,
                            maxHeight: c.maxHeight,
                          }),
                        ],
                      }),
                  ],
                }),
              ],
            })
          },
          wo = l(3672),
          No = l(4440),
          Ao = l(6868),
          Eo = l(2760),
          ko = (0, lt.A)(
            '<path d="m24.1 30.2 20.2-12.5c2.3-1.4 5.4-.7 6.9 1.6.5.8.8 1.7.8 2.6V74c0 2.7-2.2 4.9-5 4.9-.9 0-1.9-.3-2.6-.8L24.1 65.8H15c-3.9 0-7-3.1-7-6.9V37.1c0-3.8 3.1-6.9 7-6.9h9.1zm2.5 5.5c-.5.3-1 .5-1.6.5H15c-.6 0-1 .4-1 1v21.7c0 .5.4 1 1 1h10c.6 0 1.1.2 1.6.5l19.4 12V23.7l-19.4 12zm48.5 42.1c-1.2 1.1-3.1 1.1-4.2-.1-1.2-1.2-1.1-3.1.1-4.2 14.8-14.1 14.8-36.9 0-51-1.2-1.1-1.2-3-.1-4.2 1.2-1.2 3.1-1.2 4.2-.1 17.2 16.5 17.2 43.1 0 59.6zM65.1 66c-1.2 1.1-3.1 1.1-4.2-.1-1.1-1.2-1.1-3.1.1-4.2 8.1-7.6 8.1-19.7 0-27.3-1.2-1.1-1.3-3-.1-4.2 1.1-1.2 3-1.2 4.2-.1 10.5 9.8 10.5 26 0 35.9z"/>',
            'VolumeUpOutlinedIcon',
          ),
          So = l(9424),
          Co = d.forwardRef(function (e, t) {
            var n = e.noticeList,
              a = e.onPublicNoticeClicked
            return (
              n &&
              n.length &&
              d.createElement(
                'div',
                { className: 'notice-container', onClick: a, ref: t },
                d.createElement(ko, { className: 'notice-icon', htmlColor: '#ff6e00' }),
                d.createElement(
                  Ao.A,
                  { className: 'notice-swiper tph', autoplay: n.length > 1, vertical: !0, circular: !0, interval: 3e3 },
                  n.map(function (e, t) {
                    return d.createElement(Eo.A, { key: t }, d.createElement('div', { className: 'notice-content' }, e))
                  }),
                ),
                d.createElement(So.A, { className: 'notice-icon-jiantou', htmlColor: '#ff6e00' }),
              )
            )
          }),
          Io = l(8212),
          xo = function (e) {
            var t = e.prefix,
              n = e.suffix
            return t && n ? ''.concat(t, ' | ').concat(n) : t || n ? t || n : ''
          },
          _o = function (e) {
            var t = e.tag
            return d.createElement(Ea.A, { className: 'coupon-tag' }, xo(t))
          },
          Do = {
            5: function (e) {
              var t = e.tag,
                n = 'true' === (null == t ? void 0 : t.couponClaimed)
              return d.createElement(
                'div',
                { className: 'coupon-tag-group' },
                d.createElement(
                  'div',
                  { className: (0, Fe.A)('coupon-tag-prefix', { 'is-h5': !Ve.WD, 'coupon-has-claimed': n }) },
                  t.suffix,
                ),
                d.createElement(
                  'div',
                  { className: (0, Fe.A)('coupon-tag-suffix', { 'is-h5': !Ve.WD, 'coupon-has-claimed': n }) },
                  n ? '已领' : '领',
                ),
              )
            },
            7: function (e) {
              var t = e.tag
              return d.createElement(Ea.A, { className: 'coupon-tag' }, '大麦VIP·', xo(t))
            },
          },
          To = function (e) {
            var t = e.tags
            return t && 0 !== t.length
              ? d.createElement(
                  'div',
                  { className: 'coupon-left-content' },
                  t.map(function (e, t) {
                    return d.createElement(
                      d.Fragment,
                      { key: 'tag_'.concat(t) },
                      (function (e) {
                        var t = Do[null == e ? void 0 : e.type] || _o
                        return d.createElement(t, { tag: e })
                      })(e),
                    )
                  }),
                )
              : null
          },
          jo = function (e) {
            var t,
              n,
              a = e.promotionList,
              i = e.onClick
            if (!a) return null
            var r = (null == (t = null == a ? void 0 : a.generalPromotions) ? void 0 : t.length) > 0,
              o = (null == (n = null == a ? void 0 : a.normalPromotions) ? void 0 : n.length) > 0
            return r || o
              ? d.createElement(
                  'div',
                  { className: 'bui-promotion-list', onClick: i },
                  d.createElement(
                    'div',
                    { className: 'promotion-left' },
                    r && d.createElement(To, { tags: a.generalPromotions }),
                    o && d.createElement(To, { tags: a.normalPromotions }),
                  ),
                  d.createElement(
                    'div',
                    { className: 'promotion-right' },
                    d.createElement('span', { className: 'promotion-num' }, '全部'),
                    d.createElement(nn.A, { className: 'promotion-icon', htmlColor: '#989898' }),
                  ),
                )
              : null
          },
          Oo = 864e5,
          Po = (0, Ve.jZ)(),
          Ro = { secondKill: 1, wedHalfPrice: 2, earlyBird: 3 },
          Lo = d.forwardRef(function (e, t) {
            var a,
              i,
              r,
              o,
              c,
              l,
              s,
              u,
              m,
              p,
              f,
              v,
              h,
              g,
              y,
              b,
              w,
              N,
              A,
              E,
              k,
              S = e.className,
              C = e.isZLife,
              I = void 0 !== C && C,
              x = e.sectionData,
              _ = void 0 === x ? {} : x,
              D = e.queryCouponParams,
              T = void 0 === D ? {} : D,
              j = e.promotionInfo,
              O = void 0 === j ? {} : j,
              P = e.showTitleTips,
              R = e.setShowTitleTips,
              L = e.showTipsBtn,
              M = void 0 !== L && L,
              F = e.topMainPicClk,
              H = void 0 === F ? function () {} : F,
              B = e.previewImage,
              V = void 0 === B ? function () {} : B,
              z = e.handleRefreshData,
              U = (0, d.useState)(!1),
              W = n(U, 2),
              q = W[0],
              $ = W[1],
              J = String(null == (a = null == _ ? void 0 : _.generalAgent) ? void 0 : a.generalType),
              G = (0, d.useState)(!1),
              Y = n(G, 2),
              X = Y[0],
              Z = Y[1],
              Q = (0, d.useState)(!1),
              K = n(Q, 2),
              ee = K[0],
              te = K[1],
              ne = (0, d.useState)(),
              ae = n(ne, 2),
              ie = ae[0],
              re = ae[1],
              oe = (0, d.useRef)(),
              ce = (0, d.useRef)(),
              le = (0, d.useState)(!1),
              se = n(le, 2),
              ue = se[0],
              de = se[1],
              me =
                '3' === J
                  ? 'https://img.alicdn.com/imgextra/i2/O1CN018saxBt1VubQy2RVZQ_!!6000000002713-2-tps-219-48.png'
                  : 'https://gw.alicdn.com/imgextra/i4/O1CN01vsbjGg1Q0Cal71PN3_!!6000000001913-2-tps-98-32.png',
              pe = '3' === J ? 'only-damai-tag' : 'normal-damai-tag',
              fe = Number(null == _ ? void 0 : _.sfpt),
              ve = O.atmosphere,
              he = Number(null == ve ? void 0 : ve.type) === Ro.earlyBird,
              ge = Number(null == ve ? void 0 : ve.type) === Ro.wedHalfPrice,
              ye = 1 === Number(null == ve ? void 0 : ve.level),
              be = null == (i = null == O ? void 0 : O.marketing) ? void 0 : i.promotionList,
              we = be && Object.keys(be).length > 0,
              Ne = function () {
                var e,
                  t,
                  n,
                  a =
                    null == (t = null == (e = null == O ? void 0 : O.price) ? void 0 : e.range) ? void 0 : t.split('-')
                return (
                  (null == (n = null == O ? void 0 : O.price) ? void 0 : n.priceCustom) ||
                  (null == a
                    ? void 0
                    : a.map(function (e) {
                        return {
                          priceSign: '价格待定' === e ? '' : '¥',
                          priceNum:
                            (null == e ? void 0 : e.indexOf('¥')) > -1 ? (null == e ? void 0 : e.substring(1)) : e,
                        }
                      }))
                )
              }
            ;(0, d.useEffect)(function () {
              he && (null == ve ? void 0 : ve.countdown)
                ? re(Number(null == ve ? void 0 : ve.countdown))
                : (re(0), te(!0))
            }, []),
              (0, d.useEffect)(
                function () {
                  setTimeout(function () {
                    var e, t
                    !Po &&
                    (null == (e = null == oe ? void 0 : oe.current) ? void 0 : e.scrollHeight) >
                      Number(null == (t = null == oe ? void 0 : oe.current) ? void 0 : t.clientHeight) + 1
                      ? de(!0)
                      : de(!1)
                  }, 100)
                },
                [null == _ ? void 0 : _.itemName],
              )
            var Ae = function (e, t) {
              return d.createElement(
                'div',
                { className: 'title-dom-container' },
                d.createElement(
                  'div',
                  { className: e, ref: t, style: { paddingRight: M || ue ? '18px' : '0px' } },
                  ['2', '3'].includes(J) &&
                    d.createElement('div', {
                      className: 'title-proxy-tag '.concat(pe),
                      style: { backgroundImage: 'url('.concat(me, ')') },
                    }),
                  null == _ ? void 0 : _.itemName,
                ),
                (M || ue) &&
                  d.createElement(
                    'div',
                    {
                      className: 'show-name-cn-icon-container',
                      onClick: function () {
                        R && R(!P)
                      },
                    },
                    d.createElement(wo.A, { size: 'small', htmlColor: '#5f6672' }),
                  ),
              )
            }
            return d.createElement(
              d.Fragment,
              null,
              d.createElement(
                'div',
                { className: (0, Fe.A)('bui-show-detail-top', S, { 'is-h5': !Po }), ref: t },
                d.createElement(
                  'div',
                  {
                    className: (0, Fe.A)('detail-top-main', { 'detail-top-main-local': I, 'detail-top-main-h5': !Po }),
                  },
                  (null == _ ? void 0 : _.notice) &&
                    d.createElement(Co, {
                      noticeList: null == (r = null == _ ? void 0 : _.notice) ? void 0 : r.noticeList,
                      onPublicNoticeClicked: function () {
                        $(!0)
                      },
                    }),
                  d.createElement(
                    'div',
                    { className: 'top-main-inner' },
                    d.createElement(
                      'div',
                      {
                        className: 'pic-container',
                        onClick: function (e) {
                          return (function (e) {
                            Po && H(e, _)
                          })(e)
                        },
                      },
                      (null == (o = null == _ ? void 0 : _.video) ? void 0 : o.videoUrl) &&
                        Po &&
                        d.createElement('div', { className: 'pic-container-video' }),
                      d.createElement('div', {
                        className: 'pic-container-pic',
                        style: {
                          backgroundImage: 'url('.concat(
                            (function () {
                              var e,
                                t,
                                n,
                                a,
                                i =
                                  (null ==
                                  (n =
                                    null == (t = null == (e = null == _ ? void 0 : _.itemPics) ? void 0 : e.itemPicList)
                                      ? void 0
                                      : t[0])
                                    ? void 0
                                    : n.picUrl) || ''
                              return i
                                ? (i &&
                                    (0 === (null == i ? void 0 : i.indexOf('http://')) &&
                                      (i = null == i ? void 0 : i.replace('http://', 'https://')),
                                    ((null == i ? void 0 : i.indexOf('alicdn.com')) >= 0 ||
                                      (null == i ? void 0 : i.indexOf('daily.taobaocdn.net')) >= 0) &&
                                      (a = ''.concat(i, '_400x400'))),
                                  a)
                                : null
                            })(),
                            ')',
                          ),
                        },
                      }),
                      (null == (c = null == _ ? void 0 : _.tagList) ? void 0 : c[0]) &&
                        d.createElement(
                          'div',
                          { className: 'pic-container-tag' },
                          null == (l = _.tagList[0]) ? void 0 : l.tag,
                        ),
                      'true' === (null == _ ? void 0 : _.isFlashSale) &&
                        d.createElement('div', { className: 'pic-container-flash-buy' }),
                    ),
                    d.createElement(
                      'div',
                      { className: 'info-content' },
                      Ae('title-container-title', oe),
                      Po && Ae('title-container-title1', ce),
                      P && d.createElement('div', { className: 'show-name-tooltip' }, null == _ ? void 0 : _.itemName),
                      d.createElement(
                        'div',
                        { className: 'price-container' },
                        d.createElement(
                          'div',
                          {
                            className: (0, Fe.A)('price-top', { 'is-super-marketing': ye }),
                            style: ye
                              ? { backgroundImage: 'url('.concat(null == ve ? void 0 : ve.concertBgUrl, ')') }
                              : {},
                            onClick: function () {
                              ;(null == ve ? void 0 : ve.jumpUrl) &&
                                (0, ct.VJ)({ url: ve.jumpUrl, spmC: 'topCard', spmD: 'concert-atmosphere' })
                            },
                          },
                          d.createElement(
                            'div',
                            {
                              className: (0, Fe.A)('price-range', {
                                'price-range_damai': !I,
                                'is-small-size':
                                  (null == (u = null == (s = null == O ? void 0 : O.price) ? void 0 : s.range)
                                    ? void 0
                                    : u.length) >= 8 &&
                                  (null == (p = null == (m = null == O ? void 0 : O.price) ? void 0 : m.range)
                                    ? void 0
                                    : p.length) <= 10 &&
                                  ye,
                                'is-mini-size':
                                  (null == (v = null == (f = null == O ? void 0 : O.price) ? void 0 : f.range)
                                    ? void 0
                                    : v.length) > 10 && ye,
                              }),
                            },
                            Array.isArray(Ne())
                              ? null == (h = Ne())
                                ? void 0
                                : h.map(function (e, t) {
                                    return d.createElement(
                                      d.Fragment,
                                      { key: 'priceText'.concat(t) },
                                      0 !== t && d.createElement('div', { className: 'price-range-split' }),
                                      0 === t &&
                                        d.createElement(
                                          'div',
                                          { className: 'price-range-text' },
                                          null == e ? void 0 : e.priceSign,
                                        ),
                                      d.createElement(
                                        'div',
                                        { className: 'price-range-num' },
                                        null == e ? void 0 : e.priceNum,
                                      ),
                                    )
                                  })
                              : d.createElement(
                                  'div',
                                  {
                                    className: (0, Fe.A)('price-custom', {
                                      'is-super-marketing': ye,
                                      'is-normal-marketing': ge || (he && void 0 !== ie && (ie <= 0 || (ie > 0 && ee))),
                                    }),
                                  },
                                  Ne(),
                                ),
                          ),
                          [Ro.wedHalfPrice, Ro.earlyBird].includes(Number(null == ve ? void 0 : ve.type)) &&
                            void 0 !== ie &&
                            (ie <= 0 || (ie > 0 && ee)) &&
                            d.createElement('div', {
                              className: (0, Fe.A)('activity-mark', { 'wed-half-price-img': ge, 'early-bird-img': he }),
                            }),
                        ),
                        'true' === (null == (g = null == _ ? void 0 : _.renderControl) ? void 0 : g.hasServiceFee) &&
                          d.createElement(
                            'div',
                            { className: 'service-fee' },
                            null == (y = null == O ? void 0 : O.price) ? void 0 : y.sfptPrefix,
                            d.createElement(
                              'span',
                              { className: (0, Fe.A)('service-fee-tip') },
                              null == (b = null == O ? void 0 : O.price) ? void 0 : b.sfptTip,
                            ),
                            null == (w = null == O ? void 0 : O.price) ? void 0 : w.sfptSuffix,
                            0 === fe && '(限时免费)',
                          ),
                        he &&
                          ie > 0 &&
                          d.createElement(
                            'div',
                            { className: (0, Fe.A)('promotion-countdown', { 'promotion-countdown-hide': ee }) },
                            d.createElement('div', {
                              className: (0, Fe.A)('activity-mark', {
                                'early-bird-img-left': Number(null == ve ? void 0 : ve.type) === Ro.earlyBird,
                              }),
                            }),
                            d.createElement(it.A, {
                              remainingTime: ie,
                              onFinish: function () {
                                te(!0), null == z || z()
                              },
                              renderContent: function (e) {
                                var t = e.total,
                                  n = e.days,
                                  a = e.hoursWithDays,
                                  i = e.minutes,
                                  r = e.seconds
                                return t <= 0
                                  ? null
                                  : (function (e) {
                                      var t = e.total,
                                        n = e.days,
                                        a = e.hoursWithDays,
                                        i = e.minutes,
                                        r = e.seconds
                                      return ge
                                        ? (te(!0), null)
                                        : he
                                        ? t >= 3 * Oo
                                          ? d.createElement(
                                              'div',
                                              { className: 'countdown-list' },
                                              d.createElement('div', { className: 'countdown-time' }, n),
                                              d.createElement(
                                                'div',
                                                { className: 'countdown-unit countdown-unit-last' },
                                                '天后结束',
                                              ),
                                            )
                                          : t > Oo && t < 3 * Oo
                                          ? d.createElement(
                                              'div',
                                              { className: 'countdown-list' },
                                              d.createElement('div', { className: 'countdown-time' }, n),
                                              d.createElement('div', { className: 'countdown-unit' }, '天'),
                                              d.createElement('div', { className: 'countdown-time' }, a),
                                              d.createElement(
                                                'div',
                                                { className: 'countdown-unit countdown-unit-last' },
                                                '时后结束',
                                              ),
                                            )
                                          : t > 36e5 && t <= Oo
                                          ? d.createElement(
                                              'div',
                                              { className: 'countdown-list' },
                                              d.createElement('div', { className: 'countdown-time' }, a),
                                              d.createElement('div', { className: 'countdown-unit' }, '时'),
                                              d.createElement('div', { className: 'countdown-time' }, i),
                                              d.createElement(
                                                'div',
                                                { className: 'countdown-unit countdown-unit-last' },
                                                '分后结束',
                                              ),
                                            )
                                          : d.createElement(
                                              'div',
                                              { className: 'countdown-list' },
                                              d.createElement('div', { className: 'countdown-time' }, i),
                                              d.createElement('div', { className: 'countdown-unit' }, '分'),
                                              d.createElement('div', { className: 'countdown-time' }, r),
                                              d.createElement(
                                                'div',
                                                { className: 'countdown-unit countdown-unit-last' },
                                                '秒后结束',
                                              ),
                                            )
                                        : null
                                    })({ total: t, days: n, hoursWithDays: a, minutes: i, seconds: r })
                              },
                            }),
                          ),
                        we &&
                          d.createElement(jo, {
                            promotionList: be,
                            onClick: function () {
                              Z(!0)
                            },
                          }),
                      ),
                    ),
                  ),
                ),
              ),
              (null == (A = null == (N = null == _ ? void 0 : _.notice) ? void 0 : N.detailList) ? void 0 : A.length) >
                0 &&
                d.createElement(No.A, {
                  detailList: null == (E = null == _ ? void 0 : _.notice) ? void 0 : E.detailList,
                  openNoticeLayer: q,
                  hideNoticeLayer: function () {
                    $(!1)
                  },
                  previewImage: V,
                }),
              (null == O ? void 0 : O.marketing) &&
                d.createElement(Io.A, {
                  openPromotion: X,
                  hidePromotionModel: function () {
                    Z(!1)
                  },
                  promotionData: null == (k = null == O ? void 0 : O.marketing) ? void 0 : k.promotionDetail,
                  queryCouponParams: T,
                  isZLife: I,
                  refreshData: z,
                }),
            )
          })
        Lo.displayName = 'ShowDetailTop'
        var Mo = Lo,
          Fo = d.forwardRef(function (e, t) {
            var n = e.noticeList,
              a = e.onPublicNoticeClicked
            return (
              n &&
              n.length &&
              d.createElement(
                He.A,
                { className: 'notice-container', onClick: a, ref: t },
                d.createElement(ko, { className: 'notice-icon', htmlColor: '#171717' }),
                d.createElement(
                  Ao.A,
                  { className: 'notice-swiper tph', autoplay: n.length > 1, vertical: !0, circular: !0, interval: 3e3 },
                  n.map(function (e, t) {
                    return d.createElement(Eo.A, { key: t }, d.createElement('div', { className: 'notice-content' }, e))
                  }),
                ),
                d.createElement(So.A, { className: 'notice-icon-jiantou', htmlColor: '#171717' }),
              )
            )
          }),
          Ho = d.forwardRef(function (e, t) {
            var a,
              i,
              r,
              o = e.sectionData,
              c = e.handleTopMainPicClk,
              l = e.onPublicNoticeClicked,
              s = e.showTitleTips,
              u = e.setShowTitleTips,
              m = e.showTipsBtn,
              p = void 0 !== m && m,
              f = (0, d.useRef)(),
              v = (0, d.useRef)(),
              h = (0, d.useState)(!1),
              g = n(h, 2),
              y = g[0],
              b = g[1],
              w = (0, d.useState)(null),
              N = n(w, 2),
              A = N[0],
              E = N[1],
              k = (null == o ? void 0 : o.showTime.split('-')) || [],
              S = String(null == (a = null == o ? void 0 : o.generalAgent) ? void 0 : a.generalType)
            ;(0, d.useEffect)(
              function () {
                setTimeout(function () {
                  var e, t
                  !Ve.WD &&
                  (null == (e = null == f ? void 0 : f.current) ? void 0 : e.scrollHeight) >
                    Number(null == (t = null == f ? void 0 : f.current) ? void 0 : t.clientHeight) + 1
                    ? b(!0)
                    : b(!1)
                }, 100)
              },
              [null == o ? void 0 : o.itemName],
            )
            var C = function (e, t) {
              var n =
                  '3' === S
                    ? 'https://img.alicdn.com/imgextra/i2/O1CN018saxBt1VubQy2RVZQ_!!6000000002713-2-tps-219-48.png'
                    : 'https://gw.alicdn.com/imgextra/i4/O1CN01vsbjGg1Q0Cal71PN3_!!6000000001913-2-tps-98-32.png',
                a = '3' === S ? 'only-damai-tag' : 'normal-damai-tag'
              return d.createElement(
                'div',
                { className: 'title-dom-container' },
                ['2', '3'].includes(S) &&
                  d.createElement('div', {
                    className: 'title-proxy-tag '.concat(a),
                    style: { backgroundImage: 'url('.concat(n, ')') },
                  }),
                d.createElement(
                  'div',
                  { className: e, ref: t, style: { paddingRight: p || y ? '18px' : '0px' } },
                  null == o ? void 0 : o.itemName,
                ),
                (p || y) &&
                  d.createElement(
                    'div',
                    {
                      className: 'show-name-cn-icon-container',
                      onClick: function () {
                        u && u(!s)
                      },
                    },
                    d.createElement(wo.A, { className: 'show-name-cn-icon', size: 'small', htmlColor: '#ffffff' }),
                  ),
              )
            }
            return (
              (0, d.useEffect)(function () {
                var e, t
                ;(null == (e = null == o ? void 0 : o.tagList) ? void 0 : e[0]) &&
                  E(null == (t = null == o ? void 0 : o.tagList) ? void 0 : t[0])
              }, []),
              d.createElement(
                'div',
                { className: 'head-card', ref: t },
                (null == o ? void 0 : o.notice) &&
                  d.createElement(Fo, {
                    noticeList: null == (i = null == o ? void 0 : o.notice) ? void 0 : i.noticeList,
                    onPublicNoticeClicked: l,
                  }),
                d.createElement(
                  'div',
                  { className: 'head-main-inner' },
                  d.createElement(
                    He.A,
                    {
                      className: 'pic-container',
                      onClick: function (e) {
                        return c(e, o)
                      },
                    },
                    (null == (r = null == o ? void 0 : o.video) ? void 0 : r.videoUrl) &&
                      Ve.WD &&
                      d.createElement('div', { className: 'pic-container-video' }),
                    d.createElement('div', {
                      className: 'pic-container-pic',
                      style: {
                        backgroundImage: 'url('.concat(
                          (function () {
                            var e,
                              t,
                              n,
                              a =
                                (null ==
                                (n =
                                  null == (t = null == (e = null == o ? void 0 : o.itemPics) ? void 0 : e.itemPicList)
                                    ? void 0
                                    : t[0])
                                  ? void 0
                                  : n.picUrl) || ''
                            return (0, Me.zp)({ url: a, width: 400 })
                          })(),
                          ')',
                        ),
                      },
                    }),
                    A && d.createElement('div', { className: 'pic-container-tag' }, null == A ? void 0 : A.tag),
                    'true' === (null == o ? void 0 : o.isFlashSale) &&
                      d.createElement('div', { className: 'pic-container-flash-buy' }),
                  ),
                  s && d.createElement('div', { className: 'show-name-tooltip' }, null == o ? void 0 : o.itemName),
                  d.createElement(
                    'div',
                    { className: 'right-container' },
                    C('title-container-title', f),
                    Ve.WD && C('title-container-title1', v),
                    d.createElement(
                      'div',
                      { className: 'show-time-container' },
                      d.createElement(
                        'div',
                        { className: 'show-time' },
                        null == k ? void 0 : k[0],
                        (null == k ? void 0 : k[1]) && d.createElement('div', { className: 'show-time-line' }),
                        null == k ? void 0 : k[1],
                      ),
                      d.createElement('div', { className: 'show-time-des' }, null == o ? void 0 : o.showDuration),
                    ),
                  ),
                ),
              )
            )
          }),
          Bo = (0, Ve.jZ)(),
          Vo = d.forwardRef(function (e, t) {
            var a,
              i,
              r,
              o = e.className,
              c = e.sectionData,
              l = e.topMainPicClk,
              s = void 0 === l ? function () {} : l,
              u = e.previewImage,
              m = void 0 === u ? function () {} : u,
              p = e.showTitleTips,
              f = e.setShowTitleTips,
              v = e.showTipsBtn,
              h = (0, d.useState)(!1),
              g = n(h, 2),
              y = g[0],
              b = g[1]
            return d.createElement(
              d.Fragment,
              null,
              d.createElement(
                He.A,
                { className: (0, Fe.A)('bui-show-detail-head', o), ref: t },
                d.createElement(Ho, {
                  sectionData: c,
                  handleTopMainPicClk: function (e) {
                    Bo && s(e, c)
                  },
                  onPublicNoticeClicked: function () {
                    b(!0)
                  },
                  showTitleTips: p,
                  setShowTitleTips: f,
                  showTipsBtn: v,
                }),
              ),
              (null == (i = null == (a = null == c ? void 0 : c.notice) ? void 0 : a.detailList) ? void 0 : i.length) >
                0 &&
                d.createElement(No.A, {
                  detailList: null == (r = null == c ? void 0 : c.notice) ? void 0 : r.detailList,
                  openNoticeLayer: y,
                  hideNoticeLayer: function () {
                    b(!1)
                  },
                  previewImage: m,
                }),
            )
          })
        Vo.displayName = 'ShowDetailHead'
        var zo = Vo,
          Uo = (0, d.memo)(function (e) {
            var t = e.showTitleTips,
              n = e.setShowTitleTips,
              a = e.isConcert,
              i = (0, u.d4)(Q),
              r = i.topCardInfo,
              o = i.promotionInfo,
              c = (0, d.useState)(0),
              l = (0, v.A)(c, 2),
              s = l[0],
              m = l[1],
              p = (0, d.useState)(0),
              f = (0, v.A)(p, 2),
              h = f[0],
              g = f[1],
              y = (0, d.useState)(!1),
              w = (0, v.A)(y, 2),
              N = w[0],
              A = w[1],
              E = (0, u.wA)(),
              k = function (e, t) {
                if (null != t && t.video) {
                  var n,
                    a,
                    i = {
                      videoUrl: null == t || null === (n = t.video) || void 0 === n ? void 0 : n.videoUrl,
                      picUrl: null == t || null === (a = t.video) || void 0 === a ? void 0 : a.picUrl,
                    }
                  _.A.navTo('/subPackages/video/index', i)
                } else {
                  var r = []
                  t.itemPics.itemPicList.map(function (e) {
                    r.push(null == e ? void 0 : e.picUrl)
                  }),
                    b().previewImage({ urls: r, current: r[0] })
                }
              },
              S = (0, u.d4)(te),
              C = function (e) {
                b().previewImage({ urls: [e], current: e })
              }
            return (
              (0, d.useEffect)(
                function () {
                  setTimeout(function () {
                    var e = b().createSelectorQuery()
                    e
                      .select('.title-container-title')
                      .boundingClientRect(function (e) {
                        e && m(e.height)
                      })
                      .exec(),
                      e
                        .select('.title-container-title1')
                        .boundingClientRect(function (e) {
                          e && g(e.height)
                        })
                        .exec()
                  }, 100)
                },
                [r],
              ),
              (0, d.useEffect)(
                function () {
                  A(h > s)
                },
                [h, s],
              ),
              a
                ? (0, jr.jsx)(Mo, {
                    sectionData: r,
                    promotionInfo: o,
                    queryCouponParams: { itemId: S },
                    handleRefreshData: function () {
                      E(G())
                    },
                    previewImage: C,
                    topMainPicClk: k,
                    showTitleTips: t,
                    setShowTitleTips: n,
                    showTipsBtn: N,
                  })
                : r &&
                  (0, jr.jsx)(
                    zo,
                    {
                      sectionData: r,
                      topMainPicClk: k,
                      previewImage: C,
                      showTitleTips: t,
                      setShowTitleTips: n,
                      showTipsBtn: N,
                    },
                    S,
                  )
            )
          }),
          Wo = l(5846)
        function qo(e) {
          var t = e.hasScrollPage,
            n = e.hasCustomAtmosphere,
            a = e.isConcert
          return (0, jr.jsx)('div', {
            className: (0, g.A)('header-container', { 'header-contained': !n || t, 'concert-header-contained': a }),
            children: (0, jr.jsx)('div', {
              className: 'header-back',
              onClick: function () {
                ;(0, y.getCurrentPages)().length > 1
                  ? (0, y.navigateBack)()
                  : _.A.navTo('pages/home/index', {}, { redirect: !0 })
              },
              children: (0, jr.jsx)(Wo.A, { className: 'header-back-icon', htmlColor: '#fff' }),
            }),
          })
        }
        var $o = 864e5,
          Jo = { secondKill: 1, wedHalfPrice: 2, earlyBird: 3 },
          Go = 2,
          Yo = 1,
          Xo = d.forwardRef(function (e, t) {
            var a,
              i,
              r,
              o,
              c,
              l,
              s,
              u = e.className,
              m = e.sectionData,
              p = e.handleRefreshData,
              f = e.queryCouponParams,
              v = e.isZLife,
              h = m.atmosphere,
              g = (0, d.useState)(!1),
              y = n(g, 2),
              b = y[0],
              w = y[1],
              N = (0, d.useState)(0),
              A = n(N, 2),
              E = A[0],
              k = A[1],
              S = null == (a = null == m ? void 0 : m.marketing) ? void 0 : a.promotionList,
              C = (0, d.useState)(!1),
              I = n(C, 2),
              x = I[0],
              _ = I[1],
              D = S && Object.keys(S).length > 0,
              T = function () {
                var e,
                  t,
                  n,
                  a =
                    null == (t = null == (e = null == m ? void 0 : m.price) ? void 0 : e.range) ? void 0 : t.split('-')
                return (
                  (null == (n = null == m ? void 0 : m.price) ? void 0 : n.priceCustom) ||
                  (null == a
                    ? void 0
                    : a.map(function (e) {
                        return {
                          priceSign: '价格待定' === e ? '' : '¥',
                          priceNum:
                            (null == e ? void 0 : e.indexOf('¥')) > -1 ? (null == e ? void 0 : e.substring(1)) : e,
                        }
                      }))
                )
              }
            ;(0, d.useEffect)(function () {
              Number(null == h ? void 0 : h.type) === Jo.earlyBird && (null == h ? void 0 : h.countdown)
                ? k(Number(null == h ? void 0 : h.countdown))
                : (k(0), w(!0))
            }, [])
            return d.createElement(
              d.Fragment,
              null,
              d.createElement(
                He.A,
                {
                  className: (0, Fe.A)(
                    'bui-show-detail-promotion',
                    u,
                    D ? '' : 'show-detail-pure-price',
                    Number(null == h ? void 0 : h.level) === Yo ? 'bui-show-detail-promotion-atmosphere' : '',
                  ),
                  style: (function () {
                    var e = {}
                    return (
                      Number(null == h ? void 0 : h.level) === Go &&
                        (e = {
                          backgroundImage:
                            'url(https://img.alicdn.com/imgextra/i4/O1CN01dBBku82AGf8nVIHDf_!!6000000008176-2-tps-1125-300.png)',
                        }),
                      Number(null == h ? void 0 : h.level) === Yo &&
                        (e = { backgroundImage: 'url('.concat(null == h ? void 0 : h.bgUrl, ')') }),
                      e
                    )
                  })(),
                  ref: t,
                },
                (null == h ? void 0 : h.jumpUrl) &&
                  Number(null == h ? void 0 : h.level) === Yo &&
                  d.createElement(He.A, {
                    className: 'atmosphere-hot',
                    onClick: function () {
                      return (function (e) {
                        e && (0, ct.VJ)({ url: e, spmC: 'center', spmD: 'annualpromotion' })
                      })(h.jumpUrl)
                    },
                    dynamicData: { activity_id: null == h ? void 0 : h.activityId },
                  }),
                d.createElement(
                  'div',
                  { className: 'price-container' },
                  d.createElement(
                    'div',
                    { className: 'price-container-left' },
                    [Jo.wedHalfPrice, Jo.earlyBird].includes(Number(null == h ? void 0 : h.type)) &&
                      d.createElement('div', {
                        className: (0, Fe.A)({
                          'activity-mark': !0,
                          'wed-half-price-img': Number(null == h ? void 0 : h.type) === Jo.wedHalfPrice,
                          'early-bird-img': Number(null == h ? void 0 : h.type) === Jo.earlyBird,
                        }),
                      }),
                    d.createElement(
                      'div',
                      {
                        className: 'price-line',
                        style: { width: Number(null == h ? void 0 : h.type) === Jo.earlyBird ? '178px' : '235px' },
                      },
                      d.createElement(
                        'div',
                        { className: 'price-range' },
                        Array.isArray(T())
                          ? null == (i = T())
                            ? void 0
                            : i.map(function (e, t) {
                                return d.createElement(
                                  d.Fragment,
                                  { key: 'priceText'.concat(t) },
                                  0 !== t && d.createElement('div', { className: 'price-range-split' }),
                                  0 === t &&
                                    d.createElement(
                                      'div',
                                      { className: 'price-range-text' },
                                      null == e ? void 0 : e.priceSign,
                                    ),
                                  d.createElement(
                                    'div',
                                    { className: 'price-range-num' },
                                    null == e ? void 0 : e.priceNum,
                                  ),
                                )
                              })
                          : d.createElement('div', { className: 'price-custom' }, T()),
                      ),
                      d.createElement(
                        'div',
                        { className: 'promotion-gray' },
                        (null == (r = null == m ? void 0 : m.price) ? void 0 : r.origin) &&
                          d.createElement(
                            'div',
                            { className: 'promotion-price' },
                            m.price.origin.indexOf('¥') > -1 ? m.price.origin : '¥'.concat(m.price.origin),
                          ),
                        d.createElement(
                          'div',
                          { className: 'service-fee' },
                          null == (o = null == m ? void 0 : m.price) ? void 0 : o.sfptPrefix,
                          d.createElement(
                            'span',
                            { className: (0, Fe.A)('service-fee-tip') },
                            null == (c = null == m ? void 0 : m.price) ? void 0 : c.sfptTip,
                          ),
                          null == (l = null == m ? void 0 : m.price) ? void 0 : l.sfptSuffix,
                        ),
                      ),
                    ),
                  ),
                  Number(null == h ? void 0 : h.type) === Jo.earlyBird &&
                    E > 0 &&
                    d.createElement(
                      'div',
                      { className: 'promotion-countdown\n                ' + (b ? 'promotion-countdown-hide' : '') },
                      d.createElement(it.A, {
                        remainingTime: E,
                        onFinish: function () {
                          w(!0), null == p || p()
                        },
                        renderContent: function (e) {
                          var t = e.total,
                            n = e.days,
                            a = e.hoursWithDays,
                            i = e.minutes,
                            r = e.seconds
                          return t <= 0
                            ? null
                            : (function (e) {
                                var t = e.total,
                                  n = e.days,
                                  a = e.hoursWithDays,
                                  i = e.minutes,
                                  r = e.seconds
                                return Number(null == h ? void 0 : h.type) === Jo.wedHalfPrice
                                  ? (w(!0), null)
                                  : Number(null == h ? void 0 : h.type) === Jo.earlyBird
                                  ? t >= 3 * $o
                                    ? d.createElement(
                                        'div',
                                        { className: 'countdown-list' },
                                        d.createElement('div', { className: 'countdown-time' }, n),
                                        d.createElement('div', { className: 'countdown-unit' }, '天后结束'),
                                      )
                                    : t > $o && t < 3 * $o
                                    ? d.createElement(
                                        'div',
                                        { className: 'countdown-list' },
                                        d.createElement('div', { className: 'countdown-time' }, n),
                                        d.createElement('div', { className: 'countdown-unit' }, '天'),
                                        d.createElement('div', { className: 'countdown-time' }, a),
                                        d.createElement('div', { className: 'countdown-unit' }, '时后结束'),
                                      )
                                    : t > 36e5 && t <= $o
                                    ? d.createElement(
                                        'div',
                                        { className: 'countdown-list' },
                                        d.createElement('div', { className: 'countdown-time' }, a),
                                        d.createElement('div', { className: 'countdown-unit' }, '时'),
                                        d.createElement('div', { className: 'countdown-time' }, i),
                                        d.createElement('div', { className: 'countdown-unit' }, '分后结束'),
                                      )
                                    : d.createElement(
                                        'div',
                                        { className: 'countdown-list' },
                                        d.createElement('div', { className: 'countdown-time' }, i),
                                        d.createElement('div', { className: 'countdown-unit' }, '分'),
                                        d.createElement('div', { className: 'countdown-time' }, r),
                                        d.createElement('div', { className: 'countdown-unit' }, '秒后结束'),
                                      )
                                  : null
                              })({ total: t, days: n, hoursWithDays: a, minutes: i, seconds: r })
                        },
                      }),
                    ),
                ),
                D &&
                  d.createElement(jo, {
                    promotionList: S,
                    onClick: function () {
                      _(!0)
                    },
                  }),
              ),
              (null == m ? void 0 : m.marketing) &&
                d.createElement(Io.A, {
                  openPromotion: x,
                  hidePromotionModel: function () {
                    _(!1)
                  },
                  promotionData: null == (s = null == m ? void 0 : m.marketing) ? void 0 : s.promotionDetail,
                  queryCouponParams: f,
                  isZLife: v,
                  refreshData: p,
                }),
            )
          }),
          Zo = (0, d.memo)(function () {
            var e = (0, u.d4)(Q),
              t = e.itemId,
              n = e.promotionInfo,
              a = (0, u.wA)()
            return (0, jr.jsx)(jr.Fragment, {
              children:
                n &&
                (0, jr.jsx)(Xo, {
                  sectionData: n,
                  queryCouponParams: { itemId: t },
                  handleRefreshData: function () {
                    a(G())
                  },
                }),
            })
          }),
          Qo = (0, lt.A)(
            '<path d="M48 20c2.2 0 4 1.8 4 4v20h20c2.2 0 4 1.8 4 4s-1.8 4-4 4H52v20c0 2.2-1.8 4-4 4s-4-1.8-4-4V52H24c-2.2 0-4-1.8-4-4s1.8-4 4-4h20V24c0-2.2 1.8-4 4-4z"/>',
            'AddIcon',
          ),
          Ko = (0, lt.A)(
            '<path d="M70.28 80H9.37C5.922 80 0 73.934 0 70.393v-35.19c0-3.53 2.79-6.4 6.244-6.4h6.243c3.45 0 6.244 2.856 6.244 6.4V56.68a4.117 4.117 0 0 0 4.115 4.121h43.308a4.117 4.117 0 0 0 4.115-4.12v-21.48c0-3.529 2.79-6.4 6.244-6.4h6.243c3.45 0 6.244 2.857 6.244 6.4V70.41C89.023 73.94 83.103 80 79.65 80h-9.37Zm-6.246-47.998V52.11a2.288 2.288 0 0 1-2.284 2.29H27.268a2.288 2.288 0 0 1-2.286-2.29V32c0-5.303-4.195-9.605-9.368-9.605-3.131 0-3.131-1.76-3.131-1.76V9.605C12.487 4.304 16.682 0 21.862 0h45.292c5.18 0 9.37 4.304 9.37 9.605v11.033s0 1.76-3.117 1.76c-5.176.002-9.37 4.306-9.37 9.607l-.003-.003Z"/>',
            'InboxFilledBoldIcon',
          ),
          ec = (0, lt.A)(
            '<path d="M48 91C42.6 91 9 65.1 9 43.7S26.5 5 48 5s39 17.3 39 38.7S53.4 91 48 91zm0-35c6.6 0 12-5.4 12-12s-5.4-12-12-12-12 5.4-12 12 5.4 12 12 12z"/>',
            'LocationFilledIcon',
          ),
          tc = l(5598),
          nc = l(3498),
          ac = function (e) {
            return (0, hn.W)(
              'previewImage',
              (function (e) {
                var t = e || {},
                  n = t.images,
                  a = t.index
                return { urls: n, current: me.Ay.isWXApp ? (null == n ? void 0 : n[a]) : a }
              })(e),
            )
          },
          ic = l(7905)
        var rc = Object.defineProperty,
          oc = Object.getOwnPropertySymbols,
          cc = Object.prototype.hasOwnProperty,
          lc = Object.prototype.propertyIsEnumerable,
          sc = function (e, t, n) {
            return t in e ? rc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          uc = 'bui-show-city-services',
          dc = d.forwardRef(function (e, t) {
            var r = e,
              o = r.className,
              c = r.projectList,
              l = r.showAddition,
              s = r.venueName,
              u = void 0 === s ? '' : s,
              m = r.venueCityName,
              p = void 0 === m ? '' : m,
              f = r.venueId,
              v = r.venueAddr,
              h = r.venueType,
              g = r.distance,
              y = r.venueAddrCustom,
              b = r.showCountText,
              w = r.seatImages,
              N = r.serviceNotes,
              A = r.hasNoneSeatImg,
              E = r.onServiceClick,
              k = r.additionTargetUrl,
              S = r.itemId,
              C = r.distributionId,
              I = r.tips,
              x = r.isConcert,
              _ = r.showTime,
              D = r.showDuration,
              T = r.onMapClick,
              j = (function (e, t) {
                var n = {}
                for (var a in e) cc.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                if (null != e && oc) {
                  var r,
                    o = i(oc(e))
                  try {
                    for (o.s(); !(r = o.n()).done; ) {
                      a = r.value
                      t.indexOf(a) < 0 && lc.call(e, a) && (n[a] = e[a])
                    }
                  } catch (e) {
                    o.e(e)
                  } finally {
                    o.f()
                  }
                }
                return n
              })(r, [
                'className',
                'projectList',
                'showAddition',
                'venueName',
                'venueCityName',
                'venueId',
                'venueAddr',
                'venueType',
                'distance',
                'venueAddrCustom',
                'showCountText',
                'seatImages',
                'serviceNotes',
                'hasNoneSeatImg',
                'onServiceClick',
                'additionTargetUrl',
                'itemId',
                'distributionId',
                'tips',
                'isConcert',
                'showTime',
                'showDuration',
                'onMapClick',
              ]),
              O =
                null == c
                  ? void 0
                  : c.findIndex(function (e) {
                      return (null == e ? void 0 : e.itemId) === S
                    }),
              P = x && (_ || D),
              R = (0, d.useState)(''),
              L = n(R, 2),
              M = L[0],
              F = L[1]
            return (
              (0, d.useEffect)(
                function () {
                  var e
                  if (S && null != O) {
                    var t = ''.concat(uc, '-city-module-').concat(S)
                    t !== M &&
                      (e = setTimeout(function () {
                        F(t)
                      }, 500))
                  }
                  return function () {
                    clearTimeout(e)
                  }
                },
                [S, O],
              ),
              d.createElement(
                'div',
                (function (e, t) {
                  for (var n in t || (t = {})) cc.call(t, n) && sc(e, n, t[n])
                  if (oc) {
                    var a,
                      r = i(oc(t))
                    try {
                      for (r.s(); !(a = r.n()).done; ) {
                        n = a.value
                        lc.call(t, n) && sc(e, n, t[n])
                      }
                    } catch (e) {
                      r.e(e)
                    } finally {
                      r.f()
                    }
                  }
                  return e
                })({ className: (0, Fe.A)(uc, o, { 'is-concert': x }), ref: t }, j),
                d.createElement(
                  ea.A,
                  { className: 'city-services-card' },
                  d.createElement(
                    tc.A,
                    {
                      className: (0, Fe.A)(
                        a(
                          a({}, ''.concat(uc, '-main'), l || (null == c ? void 0 : c.length)),
                          ''.concat(uc, '-main-concert'),
                          x,
                        ),
                      ),
                    },
                    l || (null == c ? void 0 : c.length)
                      ? d.createElement(
                          'div',
                          { className: (0, Fe.A)(''.concat(uc, '-header')) },
                          (l || (null == c ? void 0 : c.length)) &&
                            d.createElement(
                              Dt.A,
                              {
                                className: (0, Fe.A)(
                                  ''.concat(uc, '-city-container tph'),
                                  a({}, ''.concat(uc, '-city-container-margin'), M),
                                ),
                                scrollX: !0,
                                enhanced: !0,
                                enableFlex: !0,
                                scrollWithAnimation: !0,
                                scrollAnchoring: !0,
                                scrollIntoView: M,
                                scrollIntoViewAlignment: 'start',
                              },
                              c.map(function (e, t) {
                                var n = e || {},
                                  i = n.cityName,
                                  r = n.saleStatus,
                                  o = n.showTime,
                                  c = n.statusLight,
                                  l = n.itemId
                                return d.createElement(
                                  He.A,
                                  {
                                    dynamicIndex: t,
                                    dynamicData: { city: i, item_Id: l },
                                    className: (0, Fe.A)(
                                      ''.concat(uc, '-city-module'),
                                      a({}, ''.concat(uc, '-city-module-active'), O === t),
                                    ),
                                    id: ''.concat(uc, '-city-module-').concat(l),
                                    key: t,
                                    onClick: function () {
                                      !(function (e) {
                                        var t = e.item,
                                          n = e.index,
                                          a = t.itemId
                                        switch (
                                          (function (e) {
                                            var t = +e
                                            return t <= 0
                                              ? 'invalid'
                                              : t > 0 && t < 1e8
                                              ? 'expired'
                                              : t <= 1e11
                                              ? 'appointment'
                                              : 'detail'
                                          })(a)
                                        ) {
                                          case 'expired':
                                          case 'invalid':
                                            break
                                          case 'appointment':
                                            ;(0, ct.VJ)({
                                              page: 'shows_project_item',
                                              query: {
                                                id: a,
                                                spm: ''
                                                  .concat(Pe.A.spmA, '.')
                                                  .concat(Pe.A.spmB, '.center.touritem_')
                                                  .concat(n),
                                              },
                                            })
                                            break
                                          case 'detail':
                                            Ma({
                                              page: 'shows_item_detail',
                                              query: {
                                                id: a,
                                                distributionId: C,
                                                spm: ''
                                                  .concat(Pe.A.spmA, '.')
                                                  .concat(Pe.A.spmB, '.center.touritem_')
                                                  .concat(n),
                                              },
                                              isReplace: !0,
                                            })
                                        }
                                      })({ item: e, index: t })
                                    },
                                  },
                                  r &&
                                    d.createElement(
                                      'div',
                                      {
                                        className: (0, Fe.A)(
                                          ''.concat(uc, '-sale-status'),
                                          a({}, ''.concat(uc, '-sale-status-active'), 'true' === String(c)),
                                        ),
                                      },
                                      r,
                                    ),
                                  d.createElement(
                                    'div',
                                    { className: (0, Fe.A)(''.concat(uc, '-city-marquee-box')) },
                                    d.createElement('div', { className: (0, Fe.A)(''.concat(uc, '-city')) }, i),
                                    d.createElement(
                                      'div',
                                      {
                                        className: (0, Fe.A)(
                                          ''.concat(uc, '-city-time'),
                                          a(
                                            {},
                                            ''.concat(uc, '-city-marquee'),
                                            (null == o ? void 0 : o.length) > 13 && O === t,
                                          ),
                                        ),
                                      },
                                      o,
                                    ),
                                  ),
                                )
                              }),
                              l &&
                                d.createElement(
                                  He.A,
                                  {
                                    dynamicData: { city: p },
                                    className: (0, Fe.A)(''.concat(uc, '-addition')),
                                    onClick: function () {
                                      k && (0, ct.VJ)({ url: k, spmC: 'center', spmD: 'wishcity' })
                                    },
                                  },
                                  d.createElement(Qo, {
                                    className: (0, Fe.A)(''.concat(uc, '-addition-icon')),
                                    htmlColor: '#ff4886',
                                    size: 'medium',
                                  }),
                                  '求加场',
                                ),
                              d.createElement('div', { className: (0, Fe.A)(''.concat(uc, '-city-container-right')) }),
                            ),
                        )
                      : null,
                    P &&
                      d.createElement(
                        'div',
                        { className: (0, Fe.A)(''.concat(uc, '-time')) },
                        _ && d.createElement('div', { className: 'show-time' }, _),
                        D && d.createElement('div', { className: 'show-duration' }, D),
                      ),
                    d.createElement(
                      'div',
                      { className: (0, Fe.A)(''.concat(uc, '-content')) },
                      d.createElement(
                        He.A,
                        {
                          className: (0, Fe.A)(''.concat(uc, '-address')),
                          onClick: function () {
                            f &&
                              (0, ct.VJ)({
                                page: '1' === ''.concat(h) ? 'shows_scenery' : 'shows_venue',
                                query: {
                                  id: f,
                                  spm: ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.center.venuenamebtn'),
                                },
                              })
                          },
                        },
                        d.createElement(
                          'div',
                          { className: (0, Fe.A)(''.concat(uc, '-address-title')) },
                          u ? ''.concat(p || '').concat(p ? '·'.concat(u) : u) : '场馆待定',
                        ),
                        d.createElement(
                          'div',
                          { className: (0, Fe.A)(''.concat(uc, '-address-subtitle')) },
                          d.createElement('div', { className: (0, Fe.A)(''.concat(uc, '-address-message')) }, y || v),
                          !y &&
                            d.createElement(
                              d.Fragment,
                              null,
                              d.createElement('b', null, b),
                              b && d.createElement(nn.A, { htmlColor: '#959aa5' }),
                            ),
                        ),
                      ),
                      ((null == w ? void 0 : w.length) > 0 || (A && !ze.ND)) &&
                        !y &&
                        d.createElement(
                          He.A,
                          {
                            dynamicData: { desc: A ? '无座位图' : '查看座位图' },
                            className: (0, Fe.A)(''.concat(uc, '-seat')),
                            onClick: function () {
                              A ||
                                ((null == w ? void 0 : w.length) &&
                                  (function () {
                                    for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
                                      t[n] = arguments[n]
                                    var a,
                                      i = t[0],
                                      r = t[1]
                                    void 0 === r && 'function' == typeof i && ((r = i), (i = void 0)),
                                      (a = ac) || (a = bn.r1),
                                      r && 'function' == typeof r
                                        ? new Promise(function (e, t) {
                                            var n = i ? a(i) : a()
                                            n &&
                                              n.then &&
                                              n
                                                .then(
                                                  function (t) {
                                                    return r(t), e(t)
                                                  },
                                                  function (e) {
                                                    return r(e), t(e)
                                                  },
                                                )
                                                .catch(function () {
                                                  r({ message: '调用失败~' })
                                                })
                                          })
                                        : a(i)
                                  })({ images: w, index: 0, needDefault: !0, useH5: !!me.Ay.isOpenHarmony }))
                            },
                          },
                          d.createElement(Ko, { style: { color: '#C5D0EC' } }),
                          A ? '无座位图' : '座位图',
                        ),
                      !y &&
                        d.createElement(
                          He.A,
                          { className: (0, Fe.A)(''.concat(uc, '-map')), onClick: T },
                          d.createElement(ec, { style: { color: '#C5D0EC' } }),
                          g || '查看地图',
                        ),
                    ),
                  ),
                  N &&
                    d.createElement(
                      nc.A,
                      { onClick: E },
                      d.createElement(ic.A, {
                        className: (0, Fe.A)(''.concat(uc, '-tab')),
                        serviceData: { serviceNotes: N },
                        tips: I,
                      }),
                    ),
                ),
              )
            )
          })
        dc.displayName = 'ShowCityServices'
        var mc = dc,
          pc = (0, j.Z0)({
            name: ''.concat('showDetail', '/service'),
            initialState: { open: !1, scrollIntoView: '' },
            reducers: {
              hideServiceDrawer: function (e) {
                ;(e.open = !1), (e.scrollIntoView = '')
              },
              showServiceDrawer: function (e, t) {
                ;(e.open = !0), (e.scrollIntoView = t.payload)
              },
            },
          }),
          fc = pc.actions,
          vc = fc.hideServiceDrawer,
          hc = fc.showServiceDrawer,
          gc = pc.reducer,
          yc = function (e) {
            var t
            return null == e || null === (t = e.showDetail) || void 0 === t ? void 0 : t.service
          }
        var bc = function (e) {
            var t = e || {},
              n = t.rootCacheData,
              a = t.className,
              i = (0, u.d4)(Q),
              r = i.cityServiceInfo,
              o = i.distributionId,
              c = (0, u.d4)(ae),
              l = (0, u.wA)(),
              s = (r || {}).venueId
            return (0, jr.jsx)(
              mc,
              (0, ie.A)(
                (0, ie.A)({}, r),
                {},
                {
                  className: a,
                  isConcert: c,
                  rootCacheData: n,
                  distributionId: o,
                  onServiceClick: function () {
                    l(hc('show-detail-service'))
                  },
                  onMapClick: function () {
                    ;(0, ct.VJ)({ page: 'shows_scenic_map', query: { venueId: s } })
                  },
                },
              ),
            )
          },
          wc = l(3919).document,
          Nc = Object.defineProperty,
          Ac = Object.defineProperties,
          Ec = Object.getOwnPropertyDescriptors,
          kc = Object.getOwnPropertySymbols,
          Sc = Object.prototype.hasOwnProperty,
          Cc = Object.prototype.propertyIsEnumerable,
          Ic = function (e, t, n) {
            return t in e ? Nc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          xc = 'bui-show-attention-card',
          _c = function (e) {
            var t = /[\u4e00-\u9fa5]/g
            return d.createElement(
              d.Fragment,
              null,
              d.createElement('b', { className: ''.concat(xc, '-count') }, e.replace(t, '')),
              d.createElement('b', { className: ''.concat(xc, '-count-desc') }, t.exec(e)),
            )
          },
          Dc = d.forwardRef(function (e, r) {
            var o = e,
              c = o.id,
              l = o.poster,
              s = o.title,
              u = o.tcCategoryId,
              m = o.fansCount,
              p = void 0 === m ? '' : m,
              f = o.fansCountDesc,
              v = void 0 === f ? '' : f,
              h = o.sellCount,
              g = o.sellCountDesc,
              y = void 0 === g ? '' : g,
              b = o.activityId,
              w = o.followTip,
              N = o.hasAttention,
              A = o.canBackRefresh,
              E = o.type,
              k = o.group,
              S = o.pageName,
              C = o.resume,
              I = (function (e, t) {
                var n = {}
                for (var a in e) Sc.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                if (null != e && kc) {
                  var r,
                    o = i(kc(e))
                  try {
                    for (o.s(); !(r = o.n()).done; ) {
                      a = r.value
                      t.indexOf(a) < 0 && Cc.call(e, a) && (n[a] = e[a])
                    }
                  } catch (e) {
                    o.e(e)
                  } finally {
                    o.f()
                  }
                }
                return n
              })(o, [
                'id',
                'poster',
                'title',
                'tcCategoryId',
                'fansCount',
                'fansCountDesc',
                'sellCount',
                'sellCountDesc',
                'activityId',
                'followTip',
                'hasAttention',
                'canBackRefresh',
                'type',
                'group',
                'pageName',
                'resume',
              ]),
              x = (0, d.useState)(N),
              _ = n(x, 2),
              D = _[0],
              T = _[1]
            Ve.WD &&
              C &&
              C(function () {
                A && T(N)
              }),
              (0, d.useEffect)(
                function () {
                  var e = function () {
                    'visible' === wc.visibilityState && T(N)
                  }
                  return (
                    Ve.WD || wc.addEventListener('visibilitychange', e),
                    function () {
                      Ve.WD || wc.removeEventListener('visibilitychange', e)
                    }
                  )
                },
                [N],
              ),
              (0, d.useEffect)(
                function () {
                  T(N)
                },
                [N],
              )
            var j = function () {
              return (function (e, t, n) {
                return new Promise(function (a, i) {
                  var r = function (e) {
                      try {
                        c(n.next(e))
                      } catch (e) {
                        i(e)
                      }
                    },
                    o = function (e) {
                      try {
                        c(n.throw(e))
                      } catch (e) {
                        i(e)
                      }
                    },
                    c = function (e) {
                      return e.done ? a(e.value) : Promise.resolve(e.value).then(r, o)
                    }
                  c((n = n.apply(e, t)).next())
                })
              })(
                void 0,
                null,
                t().mark(function e() {
                  var n
                  return t().wrap(function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (e.next = 2), (0, Be.A)({ failedMsg: '登录失败，请稍后再试' })
                        case 2:
                          ;(n = e.sent),
                            n.isLogin &&
                              Pe.A.mtop
                                .call({
                                  requestOptions: {
                                    api: 'mtop.damai.wireless.follow.relation.update.v2',
                                    v: '1.2',
                                    data: { group: k, targetType: E, operateType: D ? 0 : 1, targetId: c, pageName: S },
                                  },
                                })
                                .then(function (e) {
                                  var t = (null == e ? void 0 : e.data) || {},
                                    n = t.status
                                  if ('true' === t.success)
                                    switch (n) {
                                      case '0':
                                        T(!1)
                                        break
                                      case '1':
                                      case '2':
                                        T(!0)
                                    }
                                  else (0, pe.o)({ message: '更新关注失败，请稍后再试' })
                                })
                                .catch(function () {
                                  ;(0, pe.o)({ message: '更新关注失败，请稍后再试' })
                                })
                        case 5:
                        case 'end':
                          return e.stop()
                      }
                  }, e)
                }),
              )
            }
            return s
              ? d.createElement(
                  He.A,
                  (function (e, t) {
                    return Ac(e, Ec(t))
                  })(
                    (function (e, t) {
                      for (var n in t || (t = {})) Sc.call(t, n) && Ic(e, n, t[n])
                      if (kc) {
                        var a,
                          r = i(kc(t))
                        try {
                          for (r.s(); !(a = r.n()).done; ) {
                            n = a.value
                            Cc.call(t, n) && Ic(e, n, t[n])
                          }
                        } catch (e) {
                          r.e(e)
                        } finally {
                          r.f()
                        }
                      }
                      return e
                    })(
                      {
                        dynamicData: {
                          project_category: u,
                          titlelabel: s,
                          baccount_id: c,
                          biz_type: 'ARTIST' === E ? 1 : 2,
                          biz_id: c,
                        },
                        className: (0, Fe.A)(
                          xc,
                          a({}, ''.concat(xc, '-').concat(null == E ? void 0 : E.toLowerCase()), E),
                        ),
                        ref: r,
                      },
                      I,
                    ),
                    {
                      onClick: function () {
                        'BRAND' === E
                          ? (0, ct.VJ)({
                              page: 'shows_brand',
                              query: { brandId: c, spm: ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.brand.follow') },
                            })
                          : 'ARTIST' === E &&
                            (0, ct.VJ)({
                              page: 'shows_artist',
                              query: {
                                artistId: c,
                                spm: ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.artist.follow'),
                              },
                            })
                      },
                    },
                  ),
                  d.createElement(Re.A, { className: (0, Fe.A)(''.concat(xc, '-poster')), src: l, fit: 'cover' }),
                  d.createElement(
                    'div',
                    { className: (0, Fe.A)(''.concat(xc, '-content')) },
                    d.createElement(
                      'div',
                      { className: (0, Fe.A)(''.concat(xc, '-title')) },
                      d.createElement('div', { className: (0, Fe.A)(''.concat(xc, '-title-desc')) }, ' ', s),
                      'BRAND' === E &&
                        d.createElement(Re.A, {
                          className: (0, Fe.A)(''.concat(xc, '-tag')),
                          src: 'https://gw.alicdn.com/imgextra/i2/O1CN01mJhLbG1XOCfD03Eju_!!6000000002913-2-tps-92-36.png',
                        }),
                    ),
                    p || h
                      ? d.createElement(
                          'div',
                          { className: (0, Fe.A)(''.concat(xc, '-subtitle')) },
                          p
                            ? d.createElement('div', { className: (0, Fe.A)(''.concat(xc, '-fans-massage')) }, _c(p), v)
                            : null,
                          'ARTIST' === E
                            ? d.createElement(
                                'div',
                                { className: (0, Fe.A)(''.concat(xc, '-city-message')) },
                                0 === Number(h) ? '暂无在售演出' : d.createElement(d.Fragment, null, _c(h), y),
                              )
                            : null,
                        )
                      : null,
                  ),
                  d.createElement(
                    He.A,
                    {
                      dynamicData: { type: D ? 1 : 0, clk_type: D ? 0 : 1 },
                      className: (0, Fe.A)(
                        ''.concat(xc, '-attention'),
                        a({}, ''.concat(xc, '-follow-').concat(null == E ? void 0 : E.toLowerCase()), E),
                      ),
                    },
                    w && !D && b && d.createElement('div', { className: (0, Fe.A)(''.concat(xc, '-bubble')) }, w),
                    d.createElement(
                      Le.A,
                      {
                        className: (0, Fe.A)(
                          ''.concat(xc, '-attention-btn'),
                          a({}, ''.concat(xc, '-attention-btn-light'), D),
                        ),
                        variant: 'contained',
                        onClick: function (e) {
                          e.stopPropagation(),
                            b && 'BRAND' === E
                              ? (0, ct.VJ)({
                                  page: 'shows_brand',
                                  query: {
                                    brandId: c,
                                    spm: ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.brand.follow'),
                                  },
                                })
                              : j()
                        },
                      },
                      !D && d.createElement(Qo, { htmlColor: D ? '#ff4886' : '#fff', size: 'medium' }),
                      D ? '已关注' : '关注',
                    ),
                  ),
                )
              : null
          })
        Dc.displayName = 'ShowAttentionCard'
        var Tc = Dc
        var jc = function () {
            var e = (0, u.d4)(Q),
              t = e.brandInfo,
              n = e.canBackRefresh
            return null != t && t.length
              ? (0, jr.jsx)(jr.Fragment, {
                  children:
                    null == t
                      ? void 0
                      : t.map(function (e, t) {
                          return (0,
                          jr.jsx)(Tc, (0, ie.A)((0, ie.A)({}, e), {}, { resume: y.useDidShow, canBackRefresh: n }), t)
                        }),
                })
              : null
          },
          Oc = Object.defineProperty,
          Pc = Object.getOwnPropertySymbols,
          Rc = Object.prototype.hasOwnProperty,
          Lc = Object.prototype.propertyIsEnumerable,
          Mc = function (e, t, n) {
            return t in e ? Oc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Fc = 'bui-show-performance-staff',
          Hc = d.forwardRef(function (e, t) {
            var n = e,
              a = n.title,
              r = n.staffList,
              o = (function (e, t) {
                var n = {}
                for (var a in e) Rc.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                if (null != e && Pc) {
                  var r,
                    o = i(Pc(e))
                  try {
                    for (o.s(); !(r = o.n()).done; ) {
                      a = r.value
                      t.indexOf(a) < 0 && Lc.call(e, a) && (n[a] = e[a])
                    }
                  } catch (e) {
                    o.e(e)
                  } finally {
                    o.f()
                  }
                }
                return n
              })(n, ['title', 'staffList'])
            return (null == r ? void 0 : r.length)
              ? d.createElement(
                  'div',
                  (function (e, t) {
                    for (var n in t || (t = {})) Rc.call(t, n) && Mc(e, n, t[n])
                    if (Pc) {
                      var a,
                        r = i(Pc(t))
                      try {
                        for (r.s(); !(a = r.n()).done; ) {
                          n = a.value
                          Lc.call(t, n) && Mc(e, n, t[n])
                        }
                      } catch (e) {
                        r.e(e)
                      } finally {
                        r.f()
                      }
                    }
                    return e
                  })({ className: (0, Fe.A)(Fc), ref: t }, o),
                  d.createElement('div', { className: (0, Fe.A)(''.concat(Fc, '-title')) }, a),
                  d.createElement(
                    'div',
                    { className: (0, Fe.A)(''.concat(Fc, '-content')) },
                    r.map(function (e, t) {
                      var n = e.poster,
                        a = e.name,
                        i = e.id,
                        r = e.tcCategoryId
                      return d.createElement(
                        He.A,
                        {
                          className: (0, Fe.A)(''.concat(Fc, '-module')),
                          dynamicData: { project_category: r, biz_type: 1, biz_id: i },
                          dynamicIndex: t,
                          onClick: function () {
                            !(function (e) {
                              ;(0, ct.VJ)({
                                page: 'shows_artist',
                                query: {
                                  artistId: e,
                                  spm: ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.artist.detail'),
                                },
                              })
                            })(i)
                          },
                          key: i || t,
                        },
                        d.createElement(
                          'div',
                          { className: (0, Fe.A)(''.concat(Fc, '-staff')) },
                          d.createElement('div', {
                            className: (0, Fe.A)(''.concat(Fc, '-avatar')),
                            style: { backgroundImage: 'url('.concat(n, ')') },
                          }),
                          d.createElement('div', { className: (0, Fe.A)(''.concat(Fc, '-tag')) }),
                        ),
                        a && d.createElement('div', { className: (0, Fe.A)(''.concat(Fc, '-name')) }, a),
                      )
                    }),
                    d.createElement('div', { className: (0, Fe.A)(''.concat(Fc, '-module-last')) }, ' '),
                  ),
                )
              : null
          })
        Hc.displayName = 'ShowPerformanceStaff'
        var Bc = Hc
        var Vc = function () {
            var e = (0, u.d4)(Q),
              t = e.performanceStaffInfo,
              n = e.canBackRefresh,
              a = t || {},
              i = a.artistsTitle,
              r = a.artistList
            if (null != r && r.length)
              return 1 === (null == r ? void 0 : r.length)
                ? (0, jr.jsx)(Tc, (0, ie.A)((0, ie.A)({}, r[0]), {}, { resume: y.useDidShow, canBackRefresh: n }))
                : (0, jr.jsx)(Bc, { title: i, staffList: r })
          },
          zc = Object.defineProperty,
          Uc = Object.getOwnPropertySymbols,
          Wc = Object.prototype.hasOwnProperty,
          qc = Object.prototype.propertyIsEnumerable,
          $c = function (e, t, n) {
            return t in e ? zc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          Jc = 'bui-show-detail-notice',
          Gc = d.forwardRef(function (e, t) {
            var n = e,
              r = n.title,
              o = n.extra,
              c = n.noticeList,
              l = n.onDetailNotice,
              s = (function (e, t) {
                var n = {}
                for (var a in e) Wc.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                if (null != e && Uc) {
                  var r,
                    o = i(Uc(e))
                  try {
                    for (o.s(); !(r = o.n()).done; ) {
                      a = r.value
                      t.indexOf(a) < 0 && qc.call(e, a) && (n[a] = e[a])
                    }
                  } catch (e) {
                    o.e(e)
                  } finally {
                    o.f()
                  }
                }
                return n
              })(n, ['title', 'extra', 'noticeList', 'onDetailNotice'])
            return !c || (null == c ? void 0 : c.length) <= 0
              ? null
              : d.createElement(
                  He.A,
                  (function (e, t) {
                    for (var n in t || (t = {})) Wc.call(t, n) && $c(e, n, t[n])
                    if (Uc) {
                      var a,
                        r = i(Uc(t))
                      try {
                        for (r.s(); !(a = r.n()).done; ) {
                          n = a.value
                          qc.call(t, n) && $c(e, n, t[n])
                        }
                      } catch (e) {
                        r.e(e)
                      } finally {
                        r.f()
                      }
                    }
                    return e
                  })({ className: Jc, ref: t, Component: ea.A }, s),
                  d.createElement(He.A, {
                    className: (0, Fe.A)(a({}, ''.concat(Jc, '-header'), o)),
                    Component: Ai.A,
                    title: r,
                    extra: o,
                    onClick: l,
                  }),
                  d.createElement(
                    tc.A,
                    null,
                    null == c
                      ? void 0
                      : c.map(function (e, t) {
                          var n = e || {},
                            a = n.icon,
                            i = n.title,
                            r = n.subtitle
                          return d.createElement(
                            'div',
                            { className: ''.concat(Jc, '-module'), key: t, onClick: l },
                            d.createElement(
                              'div',
                              { className: ''.concat(Jc, '-module-header') },
                              a && d.createElement(Re.A, { src: a, className: ''.concat(Jc, '-module-icon') }),
                              d.createElement('div', { className: ''.concat(Jc, '-module-title') }, i),
                            ),
                            d.createElement('div', { className: ''.concat(Jc, '-module-subtitle') }, r),
                          )
                        }),
                  ),
                )
          })
        Gc.displayName = 'ShowDetailNotice'
        var Yc = Gc
        var Xc = function () {
            var e,
              t = (0, u.d4)(Q).detailNoticeInfo,
              n = (0, u.wA)()
            if (null != t && null !== (e = t.noticeList) && void 0 !== e && e.length)
              return (0, jr.jsx)(
                Yc,
                (0, ie.A)(
                  (0, ie.A)({}, t),
                  {},
                  {
                    onDetailNotice: function () {
                      n(hc('show-detail-important-notes'))
                    },
                    id: 'detail-notice',
                  },
                ),
              )
          },
          Zc = (0, lt.A)(
            '<path d="M46.469 7.426C52.544 2.27 56.948 0 63.436 0c13.748 0 23.167 8.36 27.047 22.1a3.485 3.485 0 1 1-6.708 1.896C80.69 13.071 73.82 6.973 63.436 6.973c-4.522 0-7.663 1.662-12.751 6.02-.236.202-1.569 1.352-1.955 1.682a3.484 3.484 0 0 1-4.522 0c-.386-.33-1.719-1.48-1.955-1.682-5.088-4.358-8.23-6.02-12.751-6.02-13.734 0-22.532 11.008-22.532 26.886 0 12.09 12.337 27.116 37.419 44.54a3.54 3.54 0 0 0 4.052-.018c5.168-3.654 8.604-6.148 10.269-7.45a3.484 3.484 0 0 1 4.892.6 3.487 3.487 0 0 1-.6 4.895c-1.781 1.392-5.28 3.931-10.537 7.65a10.509 10.509 0 0 1-12.052.05C13.607 65.506 0 48.93 0 33.859 0 14.429 11.532 0 29.502 0c6.488 0 10.892 2.271 16.967 7.426Zm33.416 39.157h9.538A3.58 3.58 0 0 1 93 50.167a3.58 3.58 0 0 1-3.577 3.583h-9.538v9.556a3.58 3.58 0 0 1-3.577 3.583 3.58 3.58 0 0 1-3.577-3.583V53.75h-9.539a3.58 3.58 0 0 1-3.577-3.583 3.58 3.58 0 0 1 3.577-3.584h9.539v-9.555a3.58 3.58 0 0 1 3.577-3.584 3.58 3.58 0 0 1 3.577 3.584v9.555Z"/>',
            'HeartAddOutlinedBoldIcon',
          ),
          Qc = Object.defineProperty,
          Kc = Object.getOwnPropertySymbols,
          el = Object.prototype.hasOwnProperty,
          tl = Object.prototype.propertyIsEnumerable,
          nl = function (e, t, n) {
            return t in e ? Qc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          al = 'bui-show-want-see',
          il = { piaopiao: ['标记想看让淘票票更懂你', '人气飙升中'], damai: ['标记想看让大麦更懂你', '人气飙升中'] },
          rl = ze.ND || ze.HM ? 'piaopiao' : 'damai',
          ol = d.forwardRef(function (e, t) {
            var n,
              r = e,
              o = r.showWantSee,
              c = r.wantDesc,
              l = r.rank,
              s = r.rankId,
              u = r.isWantSee,
              m = r.wantNum,
              p = r.subFlagIndex,
              f = r.onWantSeeClick,
              v = (function (e, t) {
                var n = {}
                for (var a in e) el.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                if (null != e && Kc) {
                  var r,
                    o = i(Kc(e))
                  try {
                    for (o.s(); !(r = o.n()).done; ) {
                      a = r.value
                      t.indexOf(a) < 0 && tl.call(e, a) && (n[a] = e[a])
                    }
                  } catch (e) {
                    o.e(e)
                  } finally {
                    o.f()
                  }
                }
                return n
              })(r, [
                'showWantSee',
                'wantDesc',
                'rank',
                'rankId',
                'isWantSee',
                'wantNum',
                'subFlagIndex',
                'onWantSeeClick',
              ])
            return o
              ? d.createElement(
                  'div',
                  (function (e, t) {
                    for (var n in t || (t = {})) el.call(t, n) && nl(e, n, t[n])
                    if (Kc) {
                      var a,
                        r = i(Kc(t))
                      try {
                        for (r.s(); !(a = r.n()).done; ) {
                          n = a.value
                          tl.call(t, n) && nl(e, n, t[n])
                        }
                      } catch (e) {
                        r.e(e)
                      } finally {
                        r.f()
                      }
                    }
                    return e
                  })({ className: al, ref: t }, v),
                  d.createElement('div', {
                    className: (0, Fe.A)(
                      ''.concat(al, '-title'),
                      a({}, ''.concat(al, '-title-piaopiao'), 'piaopiao' === rl),
                    ),
                  }),
                  d.createElement(
                    'div',
                    { className: (0, Fe.A)(''.concat(al, '-content'), a({}, ''.concat(al, '-content-padding'), !l)) },
                    d.createElement(
                      'div',
                      { className: (0, Fe.A)(''.concat(al, '-message')) },
                      Number(m) && Number(m) >= 30
                        ? d.createElement(
                            'div',
                            { className: (0, Fe.A)(''.concat(al, '-message-title')) },
                            (function (e) {
                              var t
                              if (!e || (null == (t = String(e)) ? void 0 : t.length) <= 3)
                                return d.createElement(d.Fragment, null, d.createElement('b', null, e), '人想看')
                              if (String(e).length >= 4 && String(e).length < 6) {
                                return d.createElement(
                                  d.Fragment,
                                  null,
                                  d.createElement(
                                    'b',
                                    null,
                                    String(e).replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g, '$1,'),
                                  ),
                                  '人想看',
                                )
                              }
                              return e % 1e4 > 1e3
                                ? d.createElement(
                                    d.Fragment,
                                    null,
                                    d.createElement('b', null, Math.floor((10 * e) / 1e4) / 10),
                                    '万人想看',
                                  )
                                : d.createElement(
                                    d.Fragment,
                                    null,
                                    d.createElement('b', null, (e - (e % 1e4)) / 1e4),
                                    '万人想看',
                                  )
                            })(m),
                          )
                        : null,
                      c || u
                        ? d.createElement(
                            'div',
                            { className: (0, Fe.A)(''.concat(al, '-message-subtitle')) },
                            c || (p ? '这是你标记的第'.concat(p, '个想看哦') : '人气飙升中'),
                          )
                        : d.createElement(
                            Ao.A,
                            {
                              className: (0, Fe.A)(''.concat(al, '-message-subtitle tph')),
                              vertical: !0,
                              autoplay: !0,
                              circular: !0,
                            },
                            null == (n = il[rl])
                              ? void 0
                              : n.map(function (e, t) {
                                  return d.createElement(Eo.A, { key: t }, e)
                                }),
                          ),
                    ),
                    d.createElement(
                      He.A,
                      {
                        className: (0, Fe.A)(''.concat(al, '-btn'), a({}, ''.concat(al, '-btn-attention'), u)),
                        dynamicData: { type: u ? 1 : 0, clk_type: u ? 0 : 1 },
                        Component: Le.A,
                        variant: 'contained',
                        color: 'warning',
                        startIcon: !u && d.createElement(Zc, { htmlColor: '#fff', size: 'small' }),
                        onClick: f,
                      },
                      u ? '已想看' : '想看',
                    ),
                  ),
                  l
                    ? d.createElement(
                        He.A,
                        {
                          className: (0, Fe.A)(''.concat(al, '-footer bui-show-rank')),
                          dynamicData: { pre_content_id: s },
                          onClick: function () {
                            s &&
                              (0, ct.VJ)({
                                page: 'shows_performlist',
                                query: { id: s, spm: ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.center.ranklist') },
                              })
                          },
                        },
                        d.createElement('div', { className: (0, Fe.A)(''.concat(al, '-footer-tag')) }),
                        d.createElement('div', { className: (0, Fe.A)(''.concat(al, '-footer-desc')) }, l),
                        d.createElement(nn.A, {
                          className: (0, Fe.A)(''.concat(al, '-footer-icon')),
                          htmlColor: '#959AA5',
                        }),
                      )
                    : null,
                )
              : null
          })
        ol.displayName = 'ShowWantSee'
        var cl = ol
        var ll = function () {
            var e = (0, u.wA)(),
              t = (0, u.d4)(te),
              n = (0, u.d4)(Q).rankingInfo,
              a = (0, u.d4)(De).wantBaseInfo,
              i = (0, u.d4)(je),
              r = a || {},
              o = r.subFlag,
              c = r.showWant,
              l = r.wantNum,
              s = r.subFlagIndex,
              d = r.wantDesc,
              m = (function () {
                var n = (0, h.A)(
                  (0, f.A)().m(function n() {
                    return (0, f.A)().w(function (n) {
                      for (;;)
                        switch (n.n) {
                          case 0:
                            e(Ae({ itemId: t, isWantSee: !i }))
                          case 1:
                            return n.a(2)
                        }
                    }, n)
                  }),
                )
                return function () {
                  return n.apply(this, arguments)
                }
              })()
            return (0, jr.jsx)(
              cl,
              (0, ie.A)(
                {
                  onWantSeeClick: m,
                  showWantSee: 'true' === c,
                  isWantSee: 'true' === o,
                  wantNum: l,
                  subFlagIndex: s,
                  wantDesc: d,
                },
                n,
              ),
            )
          },
          sl = l(5882),
          ul = l(5317),
          dl = l(905),
          ml = l(5885),
          pl = Object.defineProperty,
          fl = Object.getOwnPropertySymbols,
          vl = Object.prototype.hasOwnProperty,
          hl = Object.prototype.propertyIsEnumerable,
          gl = function (e, t, n) {
            return t in e ? pl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          yl = 'bui-show-detail-rating',
          bl = ze.ND || ze.HM ? 'piaopiao' : 'damai',
          wl = !0,
          Nl = d.forwardRef(function (e, t) {
            var r = e,
              o = r.itemId,
              c = r.ipId,
              l = r.title,
              s = r.ratingNumDesc,
              u = r.star,
              m = r.rating,
              p = r.userRatings,
              f = r.wantSeeNum,
              v = r.showDetailRating,
              h = r.rank,
              g = r.rankId,
              y = r.commentUrl,
              b = (function (e, t) {
                var n = {}
                for (var a in e) vl.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                if (null != e && fl) {
                  var r,
                    o = i(fl(e))
                  try {
                    for (o.s(); !(r = o.n()).done; ) {
                      a = r.value
                      t.indexOf(a) < 0 && hl.call(e, a) && (n[a] = e[a])
                    }
                  } catch (e) {
                    o.e(e)
                  } finally {
                    o.f()
                  }
                }
                return n
              })(r, [
                'itemId',
                'ipId',
                'title',
                'ratingNumDesc',
                'star',
                'rating',
                'userRatings',
                'wantSeeNum',
                'showDetailRating',
                'rank',
                'rankId',
                'commentUrl',
              ]),
              w = (0, d.useState)(0),
              N = n(w, 2),
              A = N[0],
              E = N[1],
              k = function () {
                ;(0, ct.VJ)({ url: y, spmC: 'score', spmD: 'description' })
              },
              S = function (e) {
                var t = (e || {}).contentId
                ;(0, ct.VJ)({
                  page: 'shows_all_comment',
                  query: {
                    projectId: o,
                    ipId: c,
                    posCommentId: t,
                    spm: ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.evaluate.comment'),
                  },
                })
              }
            if (
              ((0, d.useEffect)(
                function () {
                  wl && (wl = !1)
                  var e = setInterval(function () {
                    A < (null == p ? void 0 : p.length) - 1 ? E(A + 1) : E(0)
                  }, 2800)
                  return function () {
                    clearInterval(e)
                  }
                },
                [A],
              ),
              (0, d.useEffect)(function () {
                return function () {
                  wl = !0
                }
              }, []),
              !v || (!m && !(null == p ? void 0 : p.length)))
            )
              return null
            var C = Number(f) >= 30
            return d.createElement(
              'div',
              (function (e, t) {
                for (var n in t || (t = {})) vl.call(t, n) && gl(e, n, t[n])
                if (fl) {
                  var a,
                    r = i(fl(t))
                  try {
                    for (r.s(); !(a = r.n()).done; ) {
                      n = a.value
                      hl.call(t, n) && gl(e, n, t[n])
                    }
                  } catch (e) {
                    r.e(e)
                  } finally {
                    r.f()
                  }
                }
                return e
              })({ className: (0, Fe.A)(yl), ref: t }, b),
              d.createElement(
                'div',
                { className: (0, Fe.A)(''.concat(yl, '-header')) },
                d.createElement(He.A, {
                  dynamicData: { score: m, ip_id: c },
                  className: (0, Fe.A)(
                    ''.concat(yl, '-title'),
                    a({}, ''.concat(yl, '-title-piaopiao'), 'piaopiao' === bl),
                  ),
                  onClick: k,
                }),
                d.createElement(ml.A, { className: ''.concat(yl, '-alert'), htmlColor: '#9c9ca5', onClick: k }),
                d.createElement(He.A, {
                  className: ''.concat(yl, '-forward'),
                  Component: nn.A,
                  htmlColor: '#959aa5',
                  onClick: function () {
                    ;(0, ct.VJ)({
                      page: 'shows_all_comment',
                      query: {
                        projectId: o,
                        ipId: c,
                        spm: ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.evaluate.comment'),
                      },
                    })
                  },
                }),
              ),
              d.createElement(
                'div',
                { className: (0, Fe.A)(''.concat(yl, '-body')) },
                l &&
                  d.createElement(
                    'div',
                    { className: (0, Fe.A)(''.concat(yl, '-project')) },
                    d.createElement('div', { className: (0, Fe.A)(''.concat(yl, '-project-message')) }, l),
                    (u || s) &&
                      d.createElement(
                        'div',
                        { className: (0, Fe.A)(''.concat(yl, '-project-rating')) },
                        d.createElement(Ht.A, { size: 'xsmall', value: u }),
                        ' ',
                        s,
                      ),
                  ),
                d.createElement(
                  'div',
                  { className: (0, Fe.A)(''.concat(yl, '-user-container')) },
                  null == p
                    ? void 0
                    : p.map(function (e, t) {
                        var n = e.comment,
                          a = e.userName,
                          i = e.avatar
                        return d.createElement(
                          ul.A,
                          {
                            in: t === A,
                            appear: !wl,
                            timeout: { enter: wl ? 0 : 1e3, exit: 1e3 },
                            style: { visibility: 'visible' },
                            key: t,
                          },
                          d.createElement(
                            He.A,
                            {
                              className: (0, Fe.A)(''.concat(yl, '-user')),
                              key: t,
                              onClick: function () {
                                S(e)
                              },
                              style: { zIndex: t === A ? '2' : '1' },
                            },
                            d.createElement('div', { className: (0, Fe.A)(''.concat(yl, '-user-comment')) }, n),
                            d.createElement(
                              'div',
                              { className: (0, Fe.A)(''.concat(yl, '-user-message')) },
                              d.createElement(dl.A, { src: i }),
                              a,
                            ),
                          ),
                        )
                      }),
                ),
              ),
              C || h
                ? d.createElement(
                    'div',
                    { className: (0, Fe.A)(''.concat(yl, '-footer')) },
                    C
                      ? d.createElement(
                          'div',
                          { className: (0, Fe.A)(''.concat(yl, '-want-see')) },
                          (function (e) {
                            var t
                            if (!e || (null == (t = String(e)) ? void 0 : t.length) <= 3)
                              return d.createElement(d.Fragment, null, d.createElement('b', null, e), '人想看')
                            if (String(e).length >= 4 && String(e).length < 6) {
                              return d.createElement(
                                d.Fragment,
                                null,
                                d.createElement('b', null, String(e).replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g, '$1,')),
                                '人想看',
                              )
                            }
                            return e % 1e4 > 1e3
                              ? d.createElement(
                                  d.Fragment,
                                  null,
                                  d.createElement('b', null, Math.floor((10 * e) / 1e4) / 10),
                                  '万人想看',
                                )
                              : d.createElement(
                                  d.Fragment,
                                  null,
                                  d.createElement('b', null, (e - (e % 1e4)) / 1e4),
                                  '万人想看',
                                )
                          })(f),
                        )
                      : null,
                    h
                      ? d.createElement(
                          He.A,
                          {
                            className: (0, Fe.A)(
                              ''.concat(yl, '-top-list bui-show-rank'),
                              a({}, ''.concat(yl, '-rank-only'), !f),
                            ),
                            dynamicData: { pre_content_id: g },
                            onClick: function () {
                              g &&
                                (0, ct.VJ)({
                                  page: 'shows_performlist',
                                  query: {
                                    id: g,
                                    spm: ''.concat(Pe.A.spmA, '.').concat(Pe.A.spmB, '.evaluate.ranklist'),
                                  },
                                })
                            },
                          },
                          d.createElement('div', { className: (0, Fe.A)(''.concat(yl, '-footer-tag')) }),
                          h,
                          d.createElement(nn.A, {
                            className: (0, Fe.A)(''.concat(yl, '-footer-icon')),
                            htmlColor: '#959aa5',
                          }),
                        )
                      : null,
                  )
                : null,
            )
          })
        Nl.displayName = 'ShowDetailRating'
        var Al = Nl,
          El = ['rating', 'starDesc']
        var kl = function () {
            var e = (0, u.d4)(Q),
              t = e.detailRatingInfo,
              n = e.rankingInfo,
              a = (0, u.d4)(Oe) || {},
              i = a.wantNum,
              r = a.showWant,
              o = t || {},
              c = o.rating,
              l = o.starDesc,
              s = (0, sl.A)(o, El)
            return (0, jr.jsx)(
              Al,
              (0, ie.A)(
                (0, ie.A)(
                  {
                    title: (0, jr.jsxs)(jr.Fragment, { children: [(0, jr.jsx)('b', { children: c }), l] }),
                    wantSeeNum: i,
                    showDetailRating: 'true' !== r,
                  },
                  s,
                ),
                n,
              ),
            )
          },
          Sl = l(9892),
          Cl = (0, d.forwardRef)(function (e, t) {
            var n = e.onNavItemTap,
              a = e.data,
              i = (0, d.useState)('0'),
              r = (0, v.A)(i, 2),
              o = r[0],
              c = r[1],
              l = (0, d.useState)({ opacity: 0 }),
              s = (0, v.A)(l, 2),
              u = s[0],
              m = s[1],
              p = (0, Yi.Jt)('statusBarHeight') || 0,
              f = (0, Yi.Jt)('menubarHeight') || 0,
              h = (0, d.useState)([]),
              y = (0, v.A)(h, 2),
              b = y[0],
              w = y[1]
            ;(0, d.useImperativeHandle)(t, function () {
              return {
                updateData: function (e, t) {
                  w(t), N(e.navIndex), m(e)
                },
              }
            })
            var N = function (e) {
                String(e) !== String(o) && c(e)
              },
              A = (0, d.useMemo)(
                function () {
                  return 'position:fixed;top:'
                    .concat(p + f, 'px;opacity:')
                    .concat(null == u ? void 0 : u.opacity, ';display:')
                    .concat(0 === (null == u ? void 0 : u.opacity) ? 'none' : 'flex')
                },
                [p, f, null == u ? void 0 : u.opacity],
              )
            return b.length <= 0
              ? null
              : (0, jr.jsx)(C.Ss, {
                  className: 'detail-nav',
                  style: A,
                  children: b.map(function (e) {
                    return (0, jr.jsxs)(
                      He.A,
                      {
                        className: 'detail-nav-item',
                        onClick: function () {
                          n(e)
                        },
                        'data-index': e.anchor,
                        dynamicData: { anchor: e.anchor },
                        children: [
                          (0, jr.jsx)(C.EY, {
                            className: (0, g.A)(e.anchor === o ? 'detail-nav-text-selected' : 'detail-nav-text'),
                            children: e.title,
                          }),
                          '1' === e.anchor && null != a && a.couponText
                            ? (0, jr.jsx)('div', {
                                className: 'promotion-bubble',
                                children: null == a ? void 0 : a.couponText,
                              })
                            : null,
                          (0, jr.jsx)(C.Ss, { className: (0, g.A)(e.anchor === o ? 'detail-nav-icon_selected' : '') }),
                          e.anchor === o && (0, jr.jsx)(C.Ss, { className: 'detail-nav-selected-line' }),
                        ],
                      },
                      e.anchor,
                    )
                  }),
                })
          }),
          Il = l(29),
          xl = l(5517),
          _l = l(6703),
          Dl = l(1925),
          Tl = (function (e) {
            function t(e) {
              var n
              return (
                (0, Il.A)(this, t),
                (n = (0, _l.A)(this, t, [e])),
                (0, p.A)(n, 'state', void 0),
                (0, p.A)(n, 'props', void 0),
                (n.state = { error: null }),
                n
              )
            }
            return (
              (0, Dl.A)(t, e),
              (0, xl.A)(t, [
                {
                  key: 'componentDidCatch',
                  value: function (e) {
                    this.setState({ error: e }), (0, O.Ay)('error', e)
                  },
                },
                {
                  key: 'render',
                  value: function () {
                    var e = this.props,
                      t = e.fallback,
                      n = e.children
                    return this.state.error ? t || null : n
                  },
                },
              ])
            )
          })(d.Component),
          jl = l(985)
        var Ol = function () {
          var e = (0, u.wA)(),
            t = (0, u.d4)(Q).serviceDetailInfo,
            n = (0, u.d4)(yc),
            a = n.open,
            i = n.scrollIntoView
          return (0, jr.jsx)(jl.A, {
            list: null == t ? void 0 : t.list,
            defaultScrollIntoView: i,
            miniappProps: { createSelectorQuery: b().createSelectorQuery },
            open: a,
            onAddRealNameClk: function () {
              _.A.navTo('https://m.damai.cn/shows/mine/audience.html', { spmC: 'center', spmD: 'service' })
            },
            onClose: function () {
              e(vc())
            },
            disableScrollLock: !0,
          })
        }
        var Pl = function (e) {
            var t = e.bannerData
            return (0, jr.jsx)(jr.Fragment, {
              children:
                (null == t ? void 0 : t.length) > 0 &&
                (0, jr.jsx)(C.RC, {
                  className: 'banner-swiper',
                  vertical: !1,
                  circular: !0,
                  indicatorDots: (null == t ? void 0 : t.length) > 1,
                  autoplay: !0,
                  children: t.map(function (e, t) {
                    return (0, jr.jsx)(
                      'div',
                      {
                        children:
                          null != e && e.picUrl
                            ? (0, jr.jsx)(C.wu, {
                                children: (0, jr.jsx)(He.A, {
                                  Component: Re.A,
                                  className: 'show-detail-banner-item',
                                  dynamicData: { dispatch_id: e.dispatchId },
                                  fit: 'fill',
                                  src: ''.concat((0, Me.zp)({ url: e.picUrl })),
                                  width: '100%',
                                  height: '100%',
                                  onClick: function () {
                                    null != e &&
                                      e.jumpUrl &&
                                      _.A.navTo(e.jumpUrl, {
                                        spm: ''.concat(cr.A.spmA, '.').concat(ue, '.banner.item_').concat(t),
                                      })
                                  },
                                }),
                              })
                            : null,
                      },
                      ''.concat(e.picUrl, '-').concat(t),
                    )
                  }),
                }),
            })
          },
          Rl = l(3919).document,
          Ll = function (e) {
            var a = e.itemId,
              i = e.btnTxt,
              r = void 0 === i ? '确认并知悉' : i,
              o = e.tips,
              c = void 0 === o ? '您需要阅读完全部内容哦〜' : o,
              l = e.catchNoticeError,
              s = e.transformRichText,
              u = e.onClose,
              m = (0, d.useState)(!1),
              p = n(m, 2),
              f = p[0],
              v = p[1],
              h = (0, d.useState)(!1),
              g = n(h, 2),
              y = g[0],
              b = g[1],
              w = (0, d.useState)(!1),
              N = n(w, 2),
              A = N[0],
              E = N[1],
              k = (0, d.useState)(''),
              S = n(k, 2),
              C = S[0],
              I = S[1],
              x = (0, d.useState)(''),
              _ = n(x, 2),
              D = _[0],
              T = _[1],
              j = (0, d.useRef)(null),
              O = function () {
                return (function (e, t, n) {
                  return new Promise(function (a, i) {
                    var r = function (e) {
                        try {
                          c(n.next(e))
                        } catch (e) {
                          i(e)
                        }
                      },
                      o = function (e) {
                        try {
                          c(n.throw(e))
                        } catch (e) {
                          i(e)
                        }
                      },
                      c = function (e) {
                        return e.done ? a(e.value) : Promise.resolve(e.value).then(r, o)
                      }
                    c((n = n.apply(e, t)).next())
                  })
                })(
                  void 0,
                  null,
                  t().mark(function e() {
                    var n, a, i, r, o
                    return t().wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            if (((a = null == j ? void 0 : j.current), (e.t0 = a), !e.t0)) {
                              e.next = 6
                              break
                            }
                            return (e.next = 5), (0, Tt.A)(a)
                          case 5:
                            n = e.sent
                          case 6:
                            if (
                              ((i = (null == n ? void 0 : n.height) || 0),
                              (o = Rl.getElementById('health-info-html-box')),
                              (e.t1 = o),
                              !e.t1)
                            ) {
                              e.next = 13
                              break
                            }
                            return (e.next = 12), (0, Tt.A)(o)
                          case 12:
                            r = e.sent
                          case 13:
                            ;(((null == r ? void 0 : r.height) || 0) <= i + 10 || i <= 0) && (E(!0), b(!0))
                          case 15:
                          case 'end':
                            return e.stop()
                        }
                    }, e)
                  }),
                )
              }
            return (
              (0, d.useEffect)(function () {
                !(function () {
                  var e = { itemId: a }
                  Pe.A.mtop
                    .call({ requestOptions: { api: 'mtop.damai.item.tips.information', v: '1.0', data: e } })
                    .then(function (e) {
                      var t = (null == e ? void 0 : e.data) || {},
                        n = t.title,
                        a = t.content
                      if (!n || !a) throw Error('notice no data')
                      I(n), T(a), v(!0)
                    })
                    .catch(function () {
                      v(!1), null == l || l()
                    })
                })()
              }, []),
              (0, d.useEffect)(
                function () {
                  D &&
                    setTimeout(function () {
                      O()
                    }, 500)
                },
                [D],
              ),
              d.createElement(
                no.A,
                { className: (0, Fe.A)([''.concat('bui-show-notice-modal')]), open: f },
                d.createElement(
                  'div',
                  { className: 'health-info-container' },
                  d.createElement(
                    'div',
                    { className: 'health-info-content' },
                    d.createElement('div', { className: 'health-info-title' }, C),
                    d.createElement(
                      Dt.A,
                      {
                        className: 'scroll-view-health',
                        enableFlex: !0,
                        scrollY: !0,
                        id: 'scroll-view-box',
                        ref: j,
                        onScrollToLower: function () {
                          E(!0), b(!0)
                        },
                      },
                      d.createElement('div', {
                        className: 'health-info-html-box',
                        dangerouslySetInnerHTML: { __html: s ? s(D) : D },
                        id: 'health-info-html-box',
                      }),
                    ),
                    d.createElement(
                      He.A,
                      {
                        dynamicData: { item_id: a },
                        className: 'health-info-button ' + (A ? '' : 'health-info-gray-btn'),
                        onClick: A
                          ? function (e) {
                              e.stopPropagation(), null == u || u(), v(!1)
                            }
                          : function (e) {
                              e.stopPropagation(), O(), (0, pe.o)({ message: c })
                            },
                      },
                      r,
                    ),
                    d.createElement('div', { className: 'health-info-cover-layer ' + (y ? 'fn-hide' : '') }),
                  ),
                ),
              )
            )
          }
        Ll.displayName = 'ShowNoticeModal'
        var Ml = Ll,
          Fl = Object.defineProperty,
          Hl = Object.defineProperties,
          Bl = Object.getOwnPropertyDescriptors,
          Vl = Object.getOwnPropertySymbols,
          zl = Object.prototype.hasOwnProperty,
          Ul = Object.prototype.propertyIsEnumerable,
          Wl = function (e, t, n) {
            return t in e ? Fl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n)
          },
          ql = 'bui-show-real-name-modal',
          $l = ''.concat(ql, '-content'),
          Jl = (0, Ve.jZ)(),
          Gl = function (e) {
            var t = e,
              a = t.header,
              r = t.content,
              o = t.onOk,
              c = t.okText,
              l = void 0 === c ? '预填实名制观演人' : c,
              s = t.cancelText,
              u = void 0 === s ? '知道了' : s,
              m = (function (e, t) {
                var n = {}
                for (var a in e) zl.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a])
                if (null != e && Vl) {
                  var r,
                    o = i(Vl(e))
                  try {
                    for (o.s(); !(r = o.n()).done; ) {
                      a = r.value
                      t.indexOf(a) < 0 && Ul.call(e, a) && (n[a] = e[a])
                    }
                  } catch (e) {
                    o.e(e)
                  } finally {
                    o.f()
                  }
                }
                return n
              })(t, ['header', 'content', 'onOk', 'okText', 'cancelText']),
              p = (0, d.useState)(!0),
              f = n(p, 2),
              v = f[0],
              h = f[1]
            return d.createElement(
              no.A,
              (function (e, t) {
                return Hl(e, Bl(t))
              })(
                (function (e, t) {
                  for (var n in t || (t = {})) zl.call(t, n) && Wl(e, n, t[n])
                  if (Vl) {
                    var a,
                      r = i(Vl(t))
                    try {
                      for (r.s(); !(a = r.n()).done; ) {
                        n = a.value
                        Ul.call(t, n) && Wl(e, n, t[n])
                      }
                    } catch (e) {
                      r.e(e)
                    } finally {
                      r.f()
                    }
                  }
                  return e
                })({ className: (0, Fe.A)(ql) }, m),
                { open: v },
              ),
              d.createElement(
                'div',
                { className: (0, Fe.A)([$l, Jl ? '' : ''.concat($l, '-hide-logo')]) },
                Jl &&
                  d.createElement(
                    'div',
                    {
                      className: (0, Fe.A)(''.concat($l, '-head')),
                      style: {
                        backgroundImage: 'url('.concat(
                          'https://gw.alicdn.com/tfs/TB1XbcbH7L0gK0jSZFtXXXQCXXa-825-465.png',
                          ')',
                        ),
                      },
                    },
                    d.createElement('div', {
                      className: (0, Fe.A)(''.concat($l, '-head-photo')),
                      style: {
                        backgroundImage: 'url('.concat(
                          'https://gw.alicdn.com/tfs/TB1a6_6H1L2gK0jSZPhXXahvXXa-825-660.png',
                          ')',
                        ),
                      },
                    }),
                  ),
                d.createElement(
                  'div',
                  { className: (0, Fe.A)([''.concat($l, '-card')]) },
                  d.createElement('div', { className: (0, Fe.A)(''.concat($l, '-title')) }, a),
                  d.createElement('div', {
                    className: (0, Fe.A)([''.concat($l, '-desc'), 'rich-text']),
                    dangerouslySetInnerHTML: { __html: r },
                  }),
                  d.createElement(
                    He.A,
                    {
                      className: (0, Fe.A)([''.concat($l, '-btn-form')]),
                      onClick: function () {
                        null == o || o(), h(!1)
                      },
                    },
                    l,
                  ),
                  d.createElement(
                    He.A,
                    {
                      className: (0, Fe.A)([''.concat($l, '-btn-close')]),
                      onClick: function () {
                        h(!1)
                      },
                    },
                    u,
                  ),
                ),
              ),
            )
          }
        Gl.displayName = 'ShowRealNameModal'
        var Yl = Gl,
          Xl = (function (e) {
            return (e.TICKET = '1'), (e.LIVE = '2'), (e.COUPON = '3'), (e.HEALTH = '4'), e
          })({}),
          Zl = l(5723),
          Ql = function () {
            var e = (0, u.d4)(ne) || {},
              t = e.itemId,
              n = e.itemType,
              a = e.realName,
              i = e.showRealNamePopup,
              r = (a || {}).popup,
              o = void 0 === r ? {} : r,
              c = o.title,
              l = void 0 === c ? '' : c,
              s = o.desc,
              m = void 0 === s ? '' : s,
              p = (0, d.useState)(''),
              f = (0, v.A)(p, 2),
              h = f[0],
              g = f[1],
              y = ''.concat(de, '_').concat(t)
            ;(0, d.useEffect)(
              function () {
                n === Xl.HEALTH && 'YES' !== b().getStorageSync(y) ? g(ce.HEALTH) : w()
              },
              [n, i, y],
            )
            var w = function () {
              g(i ? ce.REAL_NAME : '')
            }
            return (0, jr.jsxs)(d.Fragment, {
              children: [
                h === ce.HEALTH &&
                  (0, jr.jsx)(Ml, {
                    itemId: t,
                    transformRichText: Zl.ce,
                    catchNoticeError: function () {
                      w()
                    },
                    onClose: function () {
                      b().setStorageSync(y, 'YES'), g(''), w()
                    },
                  }),
                i &&
                  h === ce.REAL_NAME &&
                  (0, jr.jsx)(Yl, {
                    header: l,
                    content: m,
                    onOk: function () {
                      _.A.navTo('https://m.damai.cn/damai/mine/audience/index.html', {
                        spm: ''.concat(cr.A.spmA, '.').concat(ue, '.layer_real_name.dwriterealname'),
                      })
                    },
                  }),
              ],
            })
          },
          Kl = (0, lt.A)(
            '<path d="m48 40.9 21.1 22.8c1.5 1.6 4 1.7 5.7.2 1.6-1.5 1.7-4 .2-5.7l-24-26a4.05 4.05 0 0 0-5.9 0l-24 26c-1.5 1.6-1.4 4.2.2 5.7 1.6 1.5 4.2 1.4 5.7-.2l21-22.8z"/>',
            'ArrowUpwardIcon',
          ),
          es = (0, lt.A)(
            '<path d="m48 55.1 21.1-22.8c1.5-1.6 4-1.7 5.7-.2 1.6 1.5 1.7 4 .2 5.7l-24 26a4.05 4.05 0 0 1-5.9 0l-24-26c-1.5-1.6-1.4-4.2.2-5.7 1.6-1.5 4.2-1.4 5.7.2l21 22.8z"/>',
            'ArrowDownwardIcon',
          )
        var ts = function (e) {
            var t = e.titleImage,
              a =
                void 0 === t
                  ? 'https://gw.alicdn.com/imgextra/i1/O1CN01vCo5BE1UKambBfQa4_!!6000000002499-2-tps-294-45.png'
                  : t,
              i = e.extra,
              r = void 0 === i ? '先囤券后线上兑换' : i,
              o = e.cityCode,
              c = void 0 === o ? '' : o,
              l = e.goodsItemId,
              s = void 0 === l ? '' : l,
              u = e.data,
              m = void 0 === u ? [] : u,
              p = (0, d.useState)(!1),
              f = n(p, 2),
              v = f[0],
              h = f[1],
              g = function (e) {
                ;(0, ct.VJ)({ page: 'shows_groupcoupon_detail', query: { itemId: e, cityCode: c } })
              }
            return d.createElement(
              He.A,
              { Component: ea.A, className: 'bui-group-coupon-list' },
              d.createElement(
                'div',
                { className: 'header' },
                d.createElement(Re.A, { className: 'title', src: (0, Me.xn)(a) }),
                d.createElement('div', { className: 'extra' }, r),
              ),
              d.createElement(
                'div',
                { className: 'content' },
                m.slice(0, v ? m.length : 1).map(function (e, t) {
                  var n
                  return d.createElement(
                    d.Fragment,
                    { key: e.itemId },
                    d.createElement(
                      He.A,
                      {
                        className: 'coupon',
                        onClick: function () {
                          return g(e.itemId)
                        },
                        dynamicData: { item_id: s, groupcoupon_item_id: e.itemId, groupcoupon_sku_id: e.skuId },
                      },
                      d.createElement(
                        'div',
                        { className: 'left' },
                        d.createElement('div', { className: 'coupon-title' }, e.title),
                        d.createElement(
                          'div',
                          { className: 'subtitle-wrapper' },
                          d.createElement(
                            'div',
                            { className: 'tags' },
                            null == (n = e.serviceTags)
                              ? void 0
                              : n.map(function (e) {
                                  return d.createElement('span', { className: 'tag' }, e.tagName)
                                }),
                          ),
                          d.createElement('div', { className: 'subtitle-divider' }),
                          e.dmPriceName && d.createElement('span', { className: 'price-name' }, e.dmPriceName, ' '),
                          d.createElement('span', null, e.dmPriceSuffix),
                        ),
                      ),
                      d.createElement(
                        'div',
                        { className: 'right' },
                        d.createElement(
                          'span',
                          { className: 'price' },
                          d.createElement('span', { className: 'unit' }, '￥'),
                          (0, Me.OX)(parseFloat(e.price)),
                        ),
                        d.createElement(
                          'div',
                          { className: 'sku-wrapper' },
                          d.createElement('span', { className: 'sku' }, '￥', (0, Me.OX)(parseFloat(e.maxSkuPrice))),
                          e.maxDiscount &&
                            d.createElement(
                              'div',
                              { className: 'discount' },
                              (0, Me.OX)(parseFloat(e.maxDiscount) / 10, { precision: 1 }),
                              '折起',
                            ),
                        ),
                      ),
                    ),
                    m.length > 1 &&
                      d.createElement('div', { className: (0, Fe.A)('divider', { single: !v || t === m.length - 1 }) }),
                  )
                }),
              ),
              m.length > 1 &&
                d.createElement(
                  He.A,
                  { className: 'footer', dynamicData: { item_id: s } },
                  v
                    ? d.createElement(
                        'div',
                        {
                          className: 'fold-btn',
                          onClick: function () {
                            return h(!1)
                          },
                        },
                        '收起',
                        d.createElement(Kl, { color: 'default', className: 'arrow-icon' }),
                      )
                    : d.createElement(
                        'div',
                        {
                          className: 'fold-btn',
                          onClick: function () {
                            return h(!0)
                          },
                        },
                        '查看更多',
                        d.createElement(es, { color: 'default', className: 'arrow-icon' }),
                      ),
                ),
            )
          },
          ns = l(7852)
        function as() {
          var e = (0, u.d4)(Q),
            t = e.marketing,
            n = e.itemId,
            a = (0, d.useState)(''),
            i = (0, v.A)(a, 2),
            r = i[0],
            o = i[1],
            c = (function () {
              var e = (0, h.A)(
                (0, f.A)().m(function e() {
                  var t
                  return (0, f.A)().w(function (e) {
                    for (;;)
                      switch (e.n) {
                        case 0:
                          return (e.n = 1), (0, ns.KM)()
                        case 1:
                          ;(t = e.v), o(t.code || '')
                        case 2:
                          return e.a(2)
                      }
                  }, e)
                }),
              )
              return function () {
                return e.apply(this, arguments)
              }
            })()
          return (
            (0, d.useEffect)(
              function () {
                !r && null != t && t.groupCoupon && c()
              },
              [null == t ? void 0 : t.groupCoupon],
            ),
            null != t && t.groupCoupon
              ? (0, jr.jsx)(ts, { extra: t.groupCoupon.tip, data: t.groupCoupon.items, cityCode: r, goodsItemId: n })
              : null
          )
        }
        function is() {
          var e = (0, Yi.Jt)('safeAreaInsetBottom')
          return (0, jr.jsx)('div', {
            className: (0, g.A)('verify-bottom-bar'),
            style: (0, ie.A)({}, e),
            children: (0, jr.jsx)('div', { className: 'verify-bottom-bar-button', children: '立即购票' }),
          })
        }
        var rs,
          os = l(1091)
        Pe.A.set('spmB', ue)
        var cs = function () {
            var e,
              t = (0, Yi.Jt)('statusBarHeight') || 0,
              n = (0, Yi.Jt)('menubarHeight') || 0,
              a = lr(),
              i = (0, u.wA)(),
              r = Zi(),
              o = (0, d.useRef)(),
              c = (0, u.d4)(Q),
              l = c.pageStatus,
              s = c.itemId,
              m = c.pageError,
              N = c.marketing,
              A = c.atmosphere,
              E = c.firstPrint,
              k = c.topCardInfo,
              j = c.actionControl,
              O = c.refreshCounter,
              P = c.canBackRefresh,
              R = c.commentParamsInfo,
              L = c.showCommentModule,
              M = c.bannerData,
              F = c.userViewingGuide,
              H = c.moduleSort,
              B = c.verifyMark,
              V = (0, u.d4)(ae),
              z = !V && A,
              W = (function () {
                var e = (0, d.useState)(!1),
                  t = (0, v.A)(e, 2),
                  n = t[0],
                  a = t[1],
                  i = (0, d.useRef)(null),
                  r = (0, d.useRef)(),
                  o = er()(
                    (function () {
                      var e = (0, h.A)(
                        (0, f.A)().m(function e(t) {
                          var n
                          return (0, f.A)().w(function (e) {
                            for (;;)
                              switch (e.n) {
                                case 0:
                                  a((null == t || null === (n = t.detail) || void 0 === n ? void 0 : n.scrollTop) > 0),
                                    i.current && (clearTimeout(i.current), (i.current = null)),
                                    (i.current = setTimeout(
                                      (0, h.A)(
                                        (0, f.A)().m(function e() {
                                          var t, n, i, o, c
                                          return (0, f.A)().w(function (e) {
                                            for (;;)
                                              switch (e.n) {
                                                case 0:
                                                  return (
                                                    (e.n = 1),
                                                    null === (n = r.current) || void 0 === n
                                                      ? void 0
                                                      : n.getBoundingClientRect()
                                                  )
                                                case 1:
                                                  if (((o = t = e.v), (i = null === o))) {
                                                    e.n = 2
                                                    break
                                                  }
                                                  i = void 0 === t
                                                case 2:
                                                  if (!i) {
                                                    e.n = 3
                                                    break
                                                  }
                                                  ;(c = void 0), (e.n = 4)
                                                  break
                                                case 3:
                                                  c = t.top
                                                case 4:
                                                  a(0 !== c)
                                                case 5:
                                                  return e.a(2)
                                              }
                                          }, e)
                                        }),
                                      ),
                                      200,
                                    ))
                                case 1:
                                  return e.a(2)
                              }
                          }, e)
                        }),
                      )
                      return function (t) {
                        return e.apply(this, arguments)
                      }
                    })(),
                    100,
                  )
                return { atmosphereRef: r, hasScrollPage: n, handleScroll: o }
              })(),
              q = W.hasScrollPage,
              $ = W.atmosphereRef,
              J = W.handleScroll,
              Y = or({ moduleSort: H }),
              X = Y.navRef,
              Z = Y.showTitleTips,
              K = Y.setShowTitleTips,
              ee = Y.navSectionKeys,
              te = Y.onScrollViewScroll,
              ne = Y.onNavItemTap
            Qi({ routerInfo: r }), ur()
            var ie = (0, d.useRef)(null)
            return (
              (0, y.useLoad)(function () {
                var e
                if (s) {
                  var t = null === (e = b().getCurrentInstance()) || void 0 === e ? void 0 : e.preloadData,
                    n = null == t ? void 0 : t.fetchShowDetail
                  n && ''.concat(s) === ''.concat(null == t ? void 0 : t.itemId)
                    ? n
                        .then(
                          (function () {
                            var e = (0, h.A)(
                              (0, f.A)().m(function e(t) {
                                var n, a, o, c, l
                                return (0, f.A)().w(function (e) {
                                  for (;;)
                                    switch (e.n) {
                                      case 0:
                                        if (((n = (0, v.A)(t, 2)), (a = n[0]), (o = n[1]), !a)) {
                                          e.n = 1
                                          break
                                        }
                                        return i(G()), e.a(2)
                                      case 1:
                                        return (
                                          cr.A.sendOtherEvent('/yanchu.product_detail.prefetch_success', {
                                            page: null == r ? void 0 : r.path,
                                            error: '商详页接口预加载',
                                          }),
                                          (e.n = 2),
                                          (0, x.Yw)(a, o)
                                        )
                                      case 2:
                                        if (((c = e.v), (l = c.data), !T(l))) {
                                          e.n = 3
                                          break
                                        }
                                        return e.a(2)
                                      case 3:
                                        i({ type: U.fulfilled.type, payload: l })
                                      case 4:
                                        return e.a(2)
                                    }
                                }, e)
                              }),
                            )
                            return function (t) {
                              return e.apply(this, arguments)
                            }
                          })(),
                        )
                        .catch(function (e) {
                          cr.A.sendOtherEvent('/yanchu.product_detail.prefetch_fail', {
                            page: null == r ? void 0 : r.path,
                            error: '商详页接口预加载',
                          }),
                            i(G())
                        })
                    : i(G())
                }
              }),
              (0, Sl.A)(
                function () {
                  i(U({ itemId: s, routerInfo: r }))
                },
                [O, s, r],
              ),
              (0, y.useLoad)(function () {
                var e, t
                null === (e = rs = (0, hr.A)({ spmB: ue })) ||
                  void 0 === e ||
                  null === (t = e.sendFCP) ||
                  void 0 === t ||
                  t.call(e),
                  mr({ itemId: s, routerInfo: r })
              }),
              (0, d.useEffect)(
                function () {
                  var e, t, n, a
                  'success' === l &&
                    (null === (e = rs) || void 0 === e || null === (t = e.sendFMP) || void 0 === t || t.call(e),
                    null === (n = rs) || void 0 === n || null === (a = n.sendFLT) || void 0 === a || a.call(n))
                },
                [l],
              ),
              (0, y.useDidShow)(function () {
                P && (mr({ itemId: s, routerInfo: r }), i(G()))
              }),
              (0, d.useEffect)(
                function () {
                  'success' === l && null != o && o.current && o.current.refreshDataChange()
                },
                [l, o],
              ),
              'failed' === l
                ? (0, jr.jsx)(Kn.A, {
                    message: null == m ? void 0 : m.message,
                    theme: 'show',
                    onClick: function () {
                      return i(G())
                    },
                  })
                : 'success' !== l && E
                ? null
                : (0, jr.jsxs)(He.A, {
                    className: 'detail-page bui-dm-light',
                    dynamicData: { item_id: s },
                    onMutate: function (e) {
                      ;(0, I.E0)(e, S)
                    },
                    onAutoClick: function (e, t) {
                      ;(0, I.MQ)(e, t, S)
                    },
                    style: {
                      '--header-bar-height': ''.concat(t + n, 'px'),
                      '--status-bar-height': ''.concat(t, 'px'),
                      '--notice-bar-height': (
                        (null == k || null === (e = k.notice) || void 0 === e ? void 0 : e.detailList) || []
                      ).length
                        ? '42px'
                        : '0px',
                    },
                    children: [
                      (0, jr.jsx)(Tl, {
                        children: (0, jr.jsx)(C.RW, {
                          children: (0, jr.jsx)(qo, { hasScrollPage: q, isConcert: V, hasCustomAtmosphere: z }),
                        }),
                      }),
                      (0, jr.jsx)(Tl, {
                        children: (0, jr.jsx)(C.RW, {
                          children: (0, jr.jsx)(Cl, {
                            ref: X,
                            onNavItemTap: function (e) {
                              ne(e)
                            },
                            data: null == N ? void 0 : N.taskEntryData,
                          }),
                        }),
                      }),
                      (0, jr.jsxs)(C.BM, {
                        className: 'detail-scrollview',
                        scrollY: !0,
                        minDragDistance: 0,
                        showScrollbar: !1,
                        onScroll: function (e) {
                          var t
                          J(e),
                            te(e, (null == k || null === (t = k.notice) || void 0 === t ? void 0 : t.detailList) || []),
                            vr.trigger(fr.PAGE_SCROLL, { data: e })
                        },
                        scrollIntoView: ee,
                        lowerThreshold: 200,
                        onScrollToLower: function () {
                          var e, t
                          null === (e = ie.current) ||
                            void 0 === e ||
                            null === (t = e.paginationFeedList) ||
                            void 0 === t ||
                            t.call(e)
                        },
                        children: [
                          !!z &&
                            (0, jr.jsx)('div', {
                              ref: $,
                              className: 'atmosphere-bg',
                              style: { '--detail-atmosphere': 'url('.concat(z, ')') },
                              children: (0, jr.jsx)('div', { className: 'atmosphere-fg' }),
                            }),
                          (0, jr.jsxs)('div', {
                            className: (0, g.A)('main-container', { 'has-atmosphere': !!z, 'concert-atmosphere': V }),
                            children: [
                              !V &&
                                (0, jr.jsx)(Tl, {
                                  children: (0, jr.jsx)(Uo, { isConcert: V, showTitleTips: Z, setShowTitleTips: K }),
                                }),
                              (0, jr.jsxs)('div', {
                                className: 'component-container',
                                children: [
                                  V
                                    ? (0, jr.jsxs)(ea.A, {
                                        className: 'concert-top-card',
                                        children: [
                                          (0, jr.jsx)(Tl, {
                                            children: (0, jr.jsx)(Uo, {
                                              isConcert: V,
                                              showTitleTips: Z,
                                              setShowTitleTips: K,
                                            }),
                                          }),
                                          (0, jr.jsx)(Tl, {
                                            children: (0, jr.jsx)(bc, {
                                              className: 'concert-city-services',
                                              rootCacheData: a,
                                            }),
                                          }),
                                        ],
                                      })
                                    : (0, jr.jsxs)(jr.Fragment, {
                                        children: [
                                          (0, jr.jsx)(Tl, { children: (0, jr.jsx)(Zo, {}) }),
                                          (0, jr.jsx)(Tl, { children: (0, jr.jsx)(bc, { rootCacheData: a }) }),
                                        ],
                                      }),
                                  (H || []).map(function (e) {
                                    return (function (e) {
                                      return (0, p.A)(
                                        (0, p.A)(
                                          (0, p.A)(
                                            (0, p.A)(
                                              (0, p.A)(
                                                (0, p.A)(
                                                  (0, p.A)(
                                                    (0, p.A)(
                                                      (0, p.A)(
                                                        (0, p.A)(
                                                          {},
                                                          tr.DetailRating,
                                                          (0, jr.jsxs)(jr.Fragment, {
                                                            children: [
                                                              (0, jr.jsx)(Tl, { children: (0, jr.jsx)(ll, {}) }),
                                                              (0, jr.jsx)(Tl, { children: (0, jr.jsx)(kl, {}) }),
                                                            ],
                                                          }),
                                                        ),
                                                        tr.ShowContent,
                                                        (0, jr.jsx)(Tl, { children: (0, jr.jsx)(bo, {}) }),
                                                      ),
                                                      tr.BrandCard,
                                                      (0, jr.jsx)(Tl, { children: (0, jr.jsx)(jc, {}) }),
                                                    ),
                                                    tr.PerformanceStaff,
                                                    (0, jr.jsx)(Tl, { children: (0, jr.jsx)(Vc, {}) }),
                                                  ),
                                                  tr.GroupCoupon,
                                                  (0, jr.jsx)(Tl, { children: (0, jr.jsx)(as, {}) }),
                                                ),
                                                tr.MarketingTask,
                                                (0, jr.jsxs)(jr.Fragment, {
                                                  children: [
                                                    (0, jr.jsx)('div', {
                                                      id: 'detail-marketing1',
                                                      className: 'anchor-dom',
                                                    }),
                                                    (0, jr.jsx)(Tl, {
                                                      children: (0, jr.jsx)(_t, {
                                                        id: 'detail-marketing',
                                                        className: 'marketing-task',
                                                        data: null == N ? void 0 : N.taskEntryData,
                                                        isShowEntry: !0,
                                                        handleShare: function () {},
                                                        onUpdateWantSee: function (e) {
                                                          i(xe(e))
                                                        },
                                                        refreshMainPage: function () {
                                                          return i(G())
                                                        },
                                                        showLoading: b().showLoading,
                                                        hideLoading: b().hideLoading,
                                                      }),
                                                    }),
                                                  ],
                                                }),
                                              ),
                                              tr.ShowPerformanceGuide,
                                              (0, jr.jsx)(Tl, {
                                                children: (0, jr.jsx)(Ft, {
                                                  className: 'user-viewing-guide',
                                                  list: F,
                                                  onStrategyGuideClick: function () {
                                                    var e,
                                                      t =
                                                        (null === ns.Di ||
                                                        void 0 === ns.Di ||
                                                        null === (e = ns.Di.getUserSelectedCitySite()) ||
                                                        void 0 === e
                                                          ? void 0
                                                          : e.cityId) || '',
                                                      n =
                                                        'https://m.damai.cn/shows/pages/strategy.html?comboDamaiCityId='.concat(
                                                          t,
                                                        )
                                                    _.A.navTo(n, {
                                                      spm: ''.concat(cr.A.spmA, '.').concat(ue, '.shows_guide.more'),
                                                    })
                                                  },
                                                }),
                                              }),
                                            ),
                                            tr.HotReview,
                                            (0, jr.jsxs)(jr.Fragment, {
                                              children: [
                                                (0, jr.jsx)('div', { id: 'detail-comment1', className: 'anchor-dom' }),
                                                R &&
                                                  L &&
                                                  (0, jr.jsx)(Tl, {
                                                    children: (0, jr.jsx)(Qn, {
                                                      className: 'hot-review',
                                                      id: 'detail-comment',
                                                      ref: o,
                                                      isInit: !1,
                                                      tourId: null == R ? void 0 : R.tourId,
                                                      itemId: null == R ? void 0 : R.itemId,
                                                      ipId: null == R ? void 0 : R.ipId,
                                                      categoryId: null == R ? void 0 : R.categoryId,
                                                    }),
                                                  }),
                                              ],
                                            }),
                                          ),
                                          tr.Banner,
                                          (0, jr.jsx)(Tl, { children: (0, jr.jsx)(Pl, { bannerData: M }) }),
                                        ),
                                        tr.DetailNotice,
                                        (0, jr.jsxs)(jr.Fragment, {
                                          children: [
                                            (0, jr.jsx)('div', { id: 'detail-notice1', className: 'anchor-dom' }),
                                            (0, jr.jsx)(Tl, { children: (0, jr.jsx)(Xc, {}) }),
                                          ],
                                        }),
                                      )[e]
                                    })(e)
                                  }),
                                  (0, w.X1)(),
                                  (0, jr.jsx)('div', { id: 'detail-suggest1', className: 'anchor-dom' }),
                                  (0, jr.jsx)(Tl, {
                                    children: (0, jr.jsx)(Gi, {
                                      id: 'detail-suggest',
                                      comboChannel: '4',
                                      ref: ie,
                                      pageStatus: l,
                                      itemId: s,
                                      getDeviceId: function () {
                                        return fe.A.getUtdid()
                                      },
                                      degradeControl: null == j ? void 0 : j.degradeControl,
                                      handleDmShowCardClick: function (e, t) {
                                        var n = e || {},
                                          a = n.id,
                                          i = n.type,
                                          r = n.alg
                                        a &&
                                          (0, os.A)(a, i, {
                                            item: e.data,
                                            spm_cnt: ''
                                              .concat(D.A.SPM_A, '.project.recommend.ditem_')
                                              .concat(t, '|alg=')
                                              .concat(r),
                                          })
                                      },
                                      children: (0, jr.jsx)(C.Ad, {
                                        unitId: 'adunit-e3d6879ccfebd646',
                                        className: 'detail-ad',
                                      }),
                                    }),
                                  }),
                                ],
                              }),
                            ],
                          }),
                          (0, jr.jsx)(Or, {}),
                        ],
                      }),
                      !1 === B ? (0, jr.jsx)(is, {}) : (0, jr.jsx)(Tl, { children: (0, jr.jsx)(ho, {}) }),
                      (0, jr.jsx)(Tl, { children: (0, jr.jsx)(Ol, {}) }),
                      (0, jr.jsx)(Tl, { children: (0, jr.jsx)(Ql, {}) }),
                    ],
                  })
            )
          },
          ls = { showDetail: (0, l(333).HY)({ main: Z, wantSubscribe: _e, service: gc, buy: Cr }) }
        function ss() {
          var e = (0, d.useMemo)(function () {
            return (0, j.U1)({ reducer: ls })
          }, [])
          return (0, jr.jsx)(u.Kq, { store: e, children: (0, jr.jsx)(cs, {}) })
        }
        ;(ss.enableShareAppMessage = !0),
          Page(
            (0, s.eU)(
              ss,
              'subPackages/detail/item',
              { root: { cn: [] } },
              {
                navigationStyle: 'custom',
                navigationBarTextStyle: 'white',
                enableShareAppMessage: !0,
                disableScroll: !0,
                spmB: 'product_detail',
              } || {},
            ),
          )
      },
      9399: function (e) {
        var t = 9007199254740991,
          n = /^\s+|\s+$/g,
          a = /^[-+]0x[0-9a-f]+$/i,
          i = /^0b[01]+$/i,
          o = /^0o[0-7]+$/i,
          c = /^(?:0|[1-9]\d*)$/,
          l = parseInt,
          s = Object.prototype.toString,
          u = Math.ceil,
          d = Math.max
        function m(e, t, n) {
          var a = -1,
            i = e.length
          t < 0 && (t = -t > i ? 0 : i + t),
            (n = n > i ? i : n) < 0 && (n += i),
            (i = t > n ? 0 : (n - t) >>> 0),
            (t >>>= 0)
          for (var r = Array(i); ++a < i; ) r[a] = e[a + t]
          return r
        }
        function p(e, n) {
          return !!(n = null == n ? t : n) && ('number' == typeof e || c.test(e)) && e > -1 && e % 1 == 0 && e < n
        }
        function f(e, t, n) {
          if (!h(n)) return !1
          var a = r(t)
          return (
            !!('number' == a
              ? (function (e) {
                  return (
                    null != e &&
                    v(e.length) &&
                    !(function (e) {
                      var t = h(e) ? s.call(e) : ''
                      return '[object Function]' == t || '[object GeneratorFunction]' == t
                    })(e)
                  )
                })(n) && p(t, n.length)
              : 'string' == a && t in n) &&
            (function (e, t) {
              return e === t || (e != e && t != t)
            })(n[t], e)
          )
        }
        function v(e) {
          return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= t
        }
        function h(e) {
          var t = r(e)
          return !!e && ('object' == t || 'function' == t)
        }
        function g(e) {
          return (
            'symbol' == r(e) ||
            ((function (e) {
              return !!e && 'object' == r(e)
            })(e) &&
              '[object Symbol]' == s.call(e))
          )
        }
        function y(e) {
          return e
            ? (e = (function (e) {
                if ('number' == typeof e) return e
                if (g(e)) return NaN
                if (h(e)) {
                  var t = 'function' == typeof e.valueOf ? e.valueOf() : e
                  e = h(t) ? t + '' : t
                }
                if ('string' != typeof e) return 0 === e ? e : +e
                e = e.replace(n, '')
                var r = i.test(e)
                return r || o.test(e) ? l(e.slice(2), r ? 2 : 8) : a.test(e) ? NaN : +e
              })(e)) ===
                1 / 0 || e === -1 / 0
              ? 17976931348623157e292 * (e < 0 ? -1 : 1)
              : e == e
              ? e
              : 0
            : 0 === e
            ? e
            : 0
        }
        e.exports = function (e, t, n) {
          t = (n ? f(e, t, n) : void 0 === t)
            ? 1
            : d(
                (function (e) {
                  var t = y(e),
                    n = t % 1
                  return t == t ? (n ? t - n : t) : 0
                })(t),
                0,
              )
          var a = e ? e.length : 0
          if (!a || t < 1) return []
          for (var i = 0, r = 0, o = Array(u(a / t)); i < a; ) o[r++] = m(e, i, (i += t))
          return o
        }
      },
    },
    function (e) {
      e.O(0, [933, 6907, 8096, 2076], function () {
        return (t = 3415), e((e.s = t))
        var t
      }),
        e.O()
    },
  ])
