(function(t){function e(e){for(var n,r,i=e[0],c=e[1],u=e[2],d=0,m=[];d<i.length;d++)r=i[d],Object.prototype.hasOwnProperty.call(s,r)&&s[r]&&m.push(s[r][0]),s[r]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(t[n]=c[n]);l&&l(e);while(m.length)m.shift()();return o.push.apply(o,u||[]),a()}function a(){for(var t,e=0;e<o.length;e++){for(var a=o[e],n=!0,i=1;i<a.length;i++){var c=a[i];0!==s[c]&&(n=!1)}n&&(o.splice(e--,1),t=r(r.s=a[0]))}return t}var n={},s={app:0},o=[];function r(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=t,r.c=n,r.d=function(t,e,a){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(a,n,function(e){return t[e]}.bind(null,n));return a},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="https://qiniu.swarma.org/mobile/";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],c=i.push.bind(i);i.push=e,i=i.slice();for(var u=0;u<i.length;u++)e(i[u]);var l=c;o.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"0000":function(t,e,a){},"0350":function(t,e,a){"use strict";var n=a("431b"),s=a.n(n);s.a},"0747":function(t,e,a){},"088b":function(t,e,a){"use strict";var n=a("3314"),s=a.n(n);s.a},"0897":function(t,e,a){"use strict";var n=a("af05"),s=a.n(n);s.a},"0ac4":function(t,e,a){},"0f92":function(t,e,a){"use strict";var n=a("d484"),s=a.n(n);s.a},1676:function(t,e,a){"use strict";var n=a("95f7"),s=a.n(n);s.a},1681:function(t,e,a){"use strict";var n=a("0000"),s=a.n(n);s.a},1885:function(t,e,a){},1996:function(t,e,a){},"255e":function(t,e,a){},"26f5":function(t,e,a){"use strict";var n=a("4d0a"),s=a.n(n);s.a},3314:function(t,e,a){},"3b0c":function(t,e,a){},"3cbc":function(t,e,a){"use strict";var n=a("937b"),s=a.n(n);s.a},"3cc1":function(t,e,a){"use strict";var n=a("6c8e"),s=a.n(n);s.a},"3fe7":function(t,e,a){},"431b":function(t,e,a){},4410:function(t,e,a){"use strict";var n=a("6a57"),s=a.n(n);s.a},"452c":function(t,e,a){},4616:function(t,e,a){"use strict";var n=a("6946"),s=a.n(n);s.a},4678:function(t,e,a){var n={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function s(t){var e=o(t);return a(e)}function o(t){if(!a.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}s.keys=function(){return Object.keys(n)},s.resolve=o,t.exports=s,s.id="4678"},"4d0a":function(t,e,a){},"4f78":function(t,e,a){},5389:function(t,e,a){"use strict";var n=a("ee94"),s=a.n(n);s.a},"56d7":function(t,e,a){"use strict";a.r(e);a("99af"),a("c975"),a("d3b7"),a("ac1f"),a("25f0"),a("3ca3"),a("5319"),a("ddb0"),a("2b3d"),a("96cf");var n=a("1da1"),s=(a("e260"),a("e6cf"),a("cca6"),a("a79d"),a("2b0e")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"app",attrs:{id:"app"}},[a("router-view"),a("van-popup",{attrs:{"close-on-click-overlay":!1,"close-icon":"close",closeable:""},model:{value:t.showLoginDialog,callback:function(e){t.showLoginDialog=e},expression:"showLoginDialog"}},[a("LoginDialog")],1)],1)},r=[],i=(a("b0c0"),a("5530")),c=a("ade3"),u=(a("8a58"),a("e41f")),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-login"},["login"===t.type?a("div",{key:"login"},[a("div",{staticClass:"u-title"},[t._v("登录")]),a("van-field",{attrs:{name:"username","left-icon":"phone-o",center:""},scopedSlots:t._u([{key:"input",fn:function(){return[a("InputPhone",{attrs:{"default-country-code":"86",placeholder:"请输入手机号码"},on:{"update-country-code":function(e){t.loginCountryCode=e}},model:{value:t.loginPhone,callback:function(e){t.loginPhone=e},expression:"loginPhone"}})]},proxy:!0}],null,!1,937642713)}),a("van-field",{attrs:{type:"password",name:"password",size:"large",placeholder:"请输入密码",rules:[{required:!0,message:"请输入密码"}]},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}},[a("van-icon",{attrs:{slot:"left-icon","class-prefix":"swarma-icon",name:"password"},slot:"left-icon"})],1),a("div",{staticClass:"u-go-forget",on:{click:t.goForget}},[t._v("忘记密码")]),a("div",{staticClass:"m-submit"},[a("van-button",{staticClass:"u-submit",attrs:{type:"info",loading:t.loadingLogin,block:""},on:{click:t.login}},[t._v(" 登录 ")]),t.$_isWechat?a("van-button",{staticClass:"u-submit",staticStyle:{"margin-top":"16px"},attrs:{type:"info",color:"#07c160",block:""},on:{click:t.loginWechat}},[a("van-icon",{staticClass:"u-icon",attrs:{"class-prefix":"swarma-icon",name:"wechat"}}),t._v(" 微信登录 ")],1):a("van-button",{staticClass:"u-submit",staticStyle:{"margin-top":"16px"},attrs:{type:"info",color:"#07c160",block:""},on:{click:function(e){t.type="register"}}},[t._v(" 注册 ")])],1)],1):t._e(),"forget"===t.type?a("div",{key:"forget"},[a("div",{staticClass:"u-title"},[t._v("忘记密码")]),a("van-field",{attrs:{name:"username","left-icon":"phone-o",center:""},scopedSlots:t._u([{key:"input",fn:function(){return[a("InputPhone",{attrs:{"default-country-code":"86",placeholder:"请输入手机号码"},on:{"update-country-code":function(e){t.forgetCountryCode=e}},model:{value:t.forgetPhone,callback:function(e){t.forgetPhone=e},expression:"forgetPhone"}})]},proxy:!0}],null,!1,1714781273)}),a("van-field",{attrs:{type:"digit",size:"large",autocomplete:"new-password",placeholder:"验证码"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}},[a("van-icon",{attrs:{slot:"left-icon","class-prefix":"swarma-icon",name:"captcha"},slot:"left-icon"}),a("van-button",{attrs:{slot:"button",size:"small",type:"info",loading:t.loadingSms,disabled:!!t.smsWait,plain:""},on:{click:t.sms},slot:"button"},[t._v(" 发送验证码"+t._s(t.smsWait?"（"+t.smsWait+"秒）":"")+" ")])],1),a("van-field",{attrs:{type:"password",size:"large",autocomplete:"new-password",placeholder:"新密码"},model:{value:t.newPassword,callback:function(e){t.newPassword=e},expression:"newPassword"}},[a("van-icon",{attrs:{slot:"left-icon","class-prefix":"swarma-icon",name:"password"},slot:"left-icon"})],1),a("van-field",{attrs:{type:"password",size:"large",autocomplete:"new-password",placeholder:"确认密码"},model:{value:t.rePassword,callback:function(e){t.rePassword=e},expression:"rePassword"}},[a("van-icon",{attrs:{slot:"left-icon","class-prefix":"swarma-icon",name:"password"},slot:"left-icon"})],1),a("div",{staticClass:"u-go-login",on:{click:t.goLogin}},[t._v("返回登录")]),a("div",{staticClass:"m-submit"},[a("van-button",{staticClass:"u-submit",attrs:{type:"info",loading:t.loadingForget,block:""},on:{click:t.forget}},[t._v(" 确认修改 ")])],1)],1):t._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:"register"===t.type,expression:"type === 'register'"}]},[a("div",{staticClass:"u-title"},[t._v("注册")]),a("div",{staticClass:"u-tip"},[t._v("请截图后在微信中扫码打开，即可自动注册")]),a("div",{ref:"qrcodeEl",staticClass:"u-qrcode"}),a("div",{staticClass:"u-go-forget",staticStyle:{"padding-bottom":"16px"},on:{click:function(e){t.type="login"}}},[t._v("返回用户名密码登录")])])])},d=[],m=(a("be7f"),a("565f")),p=(a("4160"),a("159b"),a("2f62")),h=function(t){return U.post("/track",{session_id:sessionStorage.getItem("sessionId"),device_id:localStorage.getItem("deviceId"),url:t}).then((function(t){return t.data}))},v=function(t,e){return U.get("/orders/status?oid=".concat(t),{cancelToken:e}).then((function(t){return t.data}))},y=function(t){return U.post("/track/play_action",{actions:t}).then((function(t){return t.data}))},f=function(t){return U.get("/courses/cid?cid=".concat(t)).then((function(t){return t.data}))},_=function(t){return U.post("/track/share",{share_id:t},{silent:!0}).then((function(t){return t.data})).catch((function(){}))},C={track:h,isPaid:v,uploadPlayActions:y,cidToCourseId:f,share:_};s["a"].use(p["a"]);var g=new p["a"].Store({state:{isLogin:!1,showLoginDialog:!1,user:"",shareId:"",from:""},mutations:{login:function(t,e){t.isLogin=!0,t.user=e},lgout:function(t){t.isLogin=!1,t.user=""},changeLoginDialog:function(t,e){t.showLoginDialog=e},changeUserPoint:function(t,e){t.user&&(t.user.point=e)},initShareId:function(t,e){t.shareId=e},initFrom:function(t,e){t.from=e}},actions:{share:function(t){t.state.shareId&&t.state.shareId!==t.state.user.share_id&&C.share(t.state.shareId)},uploadActions:function(){var t=localStorage.getItem("player_actions");t&&(t=JSON.parse(t),Array.isArray(t)&&t.length>0&&C.uploadPlayActions(t).then((function(){localStorage.setItem("player_actions","[]")})))}}}),b=a("bc3a"),w=a.n(b),k="campus.swarma.org"!==window.location.hostname,N=w.a.create({baseURL:k?"https://test.api.swarma.org/api":"https://api.swarma.org/api"});N.interceptors.request.use((function(t){if(t.needLogin&&!g.state.jwt_token)throw new Error("未登录");var e=localStorage.getItem("access_token");return e&&(t.headers.Authorization="Bearer ".concat(e)),t}),(function(t){return Promise.reject(t)})),N.interceptors.response.use((function(t){return t}),(function(t){if(w.a.isCancel(t))console.warn("Request Canceled");else if(t.response){if(console.log("Request Status",t.response.status),console.log("Request Data",t.response.data),!t.config.silent)if(401===t.response.status)s["a"].prototype.$Toast({message:t.config.isLogin?"用户名密码错误":"未登录",position:"bottom"}),t.response.data.campus_user_phone&&(s["a"].prototype.$_isWechat?s["a"].prototype.$Dialog.confirm({message:"由于系统升级，请您在微信登录后在个人中心>设置>绑定手机号"}).then((function(){s["a"].prototype.$_wechatLogin(k?"https://test.pattern.swarma.org/bind":"https://pattern.swarma.org/bind")})):s["a"].prototype.$Dialog.alert({message:"由于系统升级，请您在微信中打开并在个人中心>设置>绑定手机号"}));else if(422===t.response.status)for(var e in t.response.data.errors)t.response.data.errors[e].forEach((function(t){s["a"].prototype.$Toast({message:t||"服务器错误",position:"bottom"})}));else s["a"].prototype.$Toast({message:t.response.data.message||"服务器错误",position:"bottom"})}else t.request?(console.log("Request",t.request),s["a"].prototype.$Toast({message:"请求失败",position:"bottom"})):(console.log("Request Error",t.message),s["a"].prototype.$Toast({message:t.message,position:"bottom"}));return console.log("Error Request Config",t.config),Promise.reject(t)}));var x,j,P,$,T,S,I,O,L,A,z,E,q,D,M,R,V,B,U=N,W=function(){return U.put("/auth",null,{silent:!0}).then((function(t){if(64331!==t.data.user.id)return localStorage.setItem("access_token",t.data.access_token),s["a"].prototype.$_loginTransfer(t.data.access_token),g.commit("login",t.data.user),g.dispatch("share"),t.data;alert("你的账户已被封禁")})).catch((function(){localStorage.removeItem("access_token")}))},F=function(t){return U.get("/weixin/official?code=".concat(t)).then((function(t){if(64331!==t.data.user.id)return localStorage.setItem("access_token",t.data.access_token),s["a"].prototype.$_loginTransfer(t.data.access_token),g.commit("login",t.data.user),g.dispatch("share"),t.data;alert("你的账户已被封禁")}))},G=function(t,e,a){return U.post("/auth",{country_code:t,phone:e,password:a},{isLogin:!0}).then((function(t){if(64331!==t.data.user.id)return localStorage.setItem("access_token",t.data.access_token),s["a"].prototype.$_loginTransfer(t.data.access_token),g.commit("login",t.data.user),t.data;alert("你的账户已被封禁")}))},H=function(t,e){return U.post("/verificationCodes/forget",{country_code:t,phone:e}).then((function(t){return t.data})).catch((function(){}))},K=function(t,e,a,n,s){return U.post("/auth/forget",{country_code:t,phone:e,password:a,password_confirmation:a,verification_key:n,verification_code:s}).then((function(t){return t.data}))},J=function(){return U.delete("/auth").then((function(t){return localStorage.removeItem("access_token"),s["a"].prototype.$_loginTransfer(""),g.commit("lgout"),t.data}))},Q={update:W,weixin:F,login:G,smsForget:H,forget:K,lgout:J},X=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"u-input-phone"},[a("div",{staticClass:"u-country-code-picker-label"},[t._v(" +"+t._s(t.countryCode)+" "),a("van-icon",{attrs:{name:"arrow-down"},on:{click:function(e){t.showPicker=!0}}})],1),a("van-field",{staticClass:"u-phone-input-field",attrs:{value:t.value,placeholder:t.placeholder,"error-message":t.errorMessage,rules:[{required:!0,message:"请输入新手机号码"}]},on:{input:function(e){return t.$emit("input",e)}}})],1),a("van-popup",{attrs:{"get-container":"body",position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[a("van-picker",{attrs:{"show-toolbar":"",columns:t.columns,"visible-item-count":"10"},on:{confirm:t.onConfirm,cancel:function(e){t.showPicker=!1}}})],1)],1)},Z=[],Y=(a("5f5f"),a("f253")),tt=(a("c3a6"),a("ad06")),et=a("5acc"),at={components:(x={},Object(c["a"])(x,m["a"].name,m["a"]),Object(c["a"])(x,tt["a"].name,tt["a"]),Object(c["a"])(x,Y["a"].name,Y["a"]),Object(c["a"])(x,u["a"].name,u["a"]),x),props:["value","defaultCountryCode","placeholder"],emits:["update-country-code"],data:function(){return{countryCode:"",showPicker:!1,errorMessage:"",columns:[]}},computed:{phone:function(){return this.$props.value}},watch:{phone:function(){this.validatePhone()},countryCode:function(){""!==this.phone&&this.validatePhone()}},mounted:function(){this.countryCode=this.$props.defaultCountryCode,this.$emit("update-country-code",this.countryCode);for(var t=0;t<et.length;t++){var e=et[t];this.columns.push("".concat(e.countryNameChinese," (").concat(e.countryName,")  +").concat(e.countryCode))}},methods:{onConfirm:function(t,e){this.countryCode=et[e].countryCode,this.showPicker=!1,this.$emit("update-country-code",this.countryCode)},validatePhone:function(){var t=/^1\d{10}$/;if("86"===this.countryCode){if(11!==this.phone.length)return void(this.errorMessage="手机号码长度应为11位");if(!t.test(this.phone))return void(this.errorMessage="请检查手机号码是否有效")}else if(this.phone.length<5||this.phone.length>11)return void(this.errorMessage="手机号码长度应在5-11位之间");this.errorMessage=""}}},nt=at,st=(a("26f5"),a("2877")),ot=Object(st["a"])(nt,X,Z,!1,null,"d87f4c66",null),rt=ot.exports,it={name:"loginDialog",components:(j={},Object(c["a"])(j,m["a"].name,m["a"]),Object(c["a"])(j,"InputPhone",rt),j),data:function(){return{type:"login",loginCountryCode:"",loginPhone:"",forgetCountryCode:"",forgetPhone:"",phone:"",password:"",captcha:"",captchaKey:"",newPassword:"",rePassword:"",smsWait:0,smsInterval:0,loadingLogin:!1,loadingSms:!1,loadingForget:!1,qrcode:""}},computed:{location:function(){return this.$route.fullPath}},watch:{location:function(){this.makeQrcode()}},mounted:function(){this.qrcode=new window.QRCode(this.$refs.qrcodeEl,{width:150,height:150}),this.makeQrcode()},methods:{goForget:function(){this.type="forget"},goLogin:function(){this.type="login"},login:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.loginPhone){e.next=3;break}return t.$Toast({message:"手机号不能为空",position:"bottom"}),e.abrupt("return",!1);case 3:if(t.password){e.next=6;break}return t.$Toast({message:"密码不能为空",position:"bottom"}),e.abrupt("return",!1);case 6:return t.loadingLogin=!0,e.next=9,Q.login(t.loginCountryCode,t.loginPhone,t.password).then((function(){t.loadingLogin=!1,t.$Toast({message:"登录成功",position:"bottom"}),t.$store.commit("changeLoginDialog",!1)})).catch((function(){t.loadingLogin=!1}));case 9:case"end":return e.stop()}}),e)})))()},loginWechat:function(){this.$_wechatLogin()},sms:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.forgetPhone){e.next=3;break}return t.$Toast({message:"手机号不能为空",position:"bottom"}),e.abrupt("return",!1);case 3:return t.loadingSms=!0,t.smsWait=30,t.smsInterval=setInterval((function(){--t.smsWait||clearInterval(t.smsInterval)}),1e3),e.next=8,Q.smsForget(t.forgetCountryCode,t.forgetPhone);case 8:a=e.sent,t.loadingSms=!1,t.captchaKey=a.key;case 11:case"end":return e.stop()}}),e)})))()},forget:function(){var t=this;return this.forgetPhone?this.captchaKey?this.captcha?isNaN(this.captcha)||6!==this.captcha.length?(this.$Toast({message:"验证码必须是6位数字",position:"bottom"}),!1):this.newPassword?this.rePassword?this.rePassword!==this.newPassword?(this.$Toast({message:"确认密码与新密码不相符",position:"bottom"}),!1):(this.loadingForget=!0,void Q.forget(this.forgetCountryCode,this.forgetPhone,this.newPassword,this.captchaKey,this.captcha).then((function(){t.loadingForget=!1,t.$Toast({message:"密码修改成功",position:"bottom"}),t.goLogin()})).catch((function(){t.loadingForget=!1}))):(this.$Toast({message:"确认密码不能为空",position:"bottom"}),!1):(this.$Toast({message:"新密码不能为空",position:"bottom"}),!1):(this.$Toast({message:"验证码不能为空",position:"bottom"}),!1):(this.$Toast({message:"请先发送验证码",position:"bottom"}),!1):(this.$Toast({message:"手机号不能为空",position:"bottom"}),!1)},makeQrcode:function(){if(this.qrcode){var t=new URL(window.location.href);this.$store.state.from&&t.searchParams.set("from",this.$store.state.from),this.qrcode.makeCode(t.href)}}}},ct=it,ut=(a("e288"),Object(st["a"])(ct,l,d,!1,null,"671f223d",null)),lt=ut.exports,dt={name:"app",components:(P={},Object(c["a"])(P,u["a"].name,u["a"]),Object(c["a"])(P,"LoginDialog",lt),P),computed:{showLoginDialog:{get:function(){return this.$store.state.showLoginDialog},set:function(t){this.$store.commit("changeLoginDialog",t)}}},mounted:function(){this.track()},watch:{$route:function(t){this.track(),"vip"===t.name&&this.$refs.app.scrollTo(0,0)}},methods:{track:function(){var t=this;C.track(window.location.href).then((function(e){try{t.$_isWechat&&window.wx.config(Object(i["a"])({},e.jssdk,{jsApiList:["updateAppMessageShareData","updateTimelineShareData","chooseWXPay","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareQZone"]})),"courseDetail"!==t.$route.name&&"courseStudy"!==t.$route.name&&"bnu"!==t.$route.name&&"myCourses"!==t.$route.name&&"myStudy"!==t.$route.name&&("chargePointActivity"===t.$route.name?(document.title="积分充值优惠活动",t.$_isWechat&&window.wx.ready((function(){t.$_updateWxShareData("积分充值优惠活动","充值送10%积分，还赠送集智限量周边，快来参与活动吧~")}))):"vip"===t.$route.name?(document.title="开通集智学园VIP",t.$_isWechat&&t.$_updateWxShareData("开通集智学园VIP","加入集智VIP，一起探索复杂性")):(document.title="集智学园",t.$_isWechat&&window.wx.ready((function(){t.$_updateWxShareData()}))))}catch(a){console.error(a)}}))}}},mt=dt,pt=(a("088b"),a("b0a0"),Object(st["a"])(mt,o,r,!1,null,"279629e7",null)),ht=pt.exports,vt=a("8c4f"),yt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-weixin"})},ft=[],_t={mounted:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=new URL(window.location.href).searchParams,n=a.get("code"),s=a.get("state"),!n){e.next=9;break}return t.$Toast.loading({message:"登录中...",forbidClick:!0,duration:0}),e.next=7,Q.weixin(n);case 7:t.$Toast.clear(!0),s&&window.location.replace(s);case 9:t.$router.replace({name:"home"});case 10:case"end":return e.stop()}}),e)})))()}},Ct=_t,gt=(a("e21d"),Object(st["a"])(Ct,yt,ft,!1,null,"2fe39ada",null)),bt=gt.exports,wt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"index"},[a("router-view"),a("van-tabbar",{attrs:{route:""}},[a("van-tabbar-item",{attrs:{replace:"",to:"/",icon:"home-o"}},[t._v("首页")]),a("van-tabbar-item",{attrs:{replace:"",to:{name:"bnu"}}},[a("span",[t._v("北师讲堂")]),a("van-icon",{attrs:{slot:"icon",size:"20","class-prefix":"swarma-icon",name:"college"},slot:"icon"})],1),a("van-tabbar-item",{staticStyle:{color:"#fbc682"},attrs:{replace:"",to:{name:"vip"},icon:"diamond-o"}},[t._v("VIP")]),a("van-tabbar-item",{attrs:{replace:"",to:{name:"myStudy"},icon:"todo-list-o"}},[t._v("最近学习")]),a("van-tabbar-item",{attrs:{replace:"",to:{name:"user"},icon:"user-o"}},[t._v("个人中心")])],1)],1)},kt=[],Nt=(a("a52c"),a("2ed4")),xt=(a("537a"),a("ac28")),jt={name:"index",components:($={},Object(c["a"])($,xt["a"].name,xt["a"]),Object(c["a"])($,Nt["a"].name,Nt["a"]),$)},Pt=jt,$t=(a("a01c"),Object(st["a"])(Pt,wt,kt,!1,null,"0798fae8",null)),Tt=$t.exports,St=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-home"},[a("van-search",{attrs:{placeholder:"请输入搜索关键词","show-action":"",clearable:""},on:{search:t.search},model:{value:t.searchKeyword,callback:function(e){t.searchKeyword=e},expression:"searchKeyword"}},[a("div",{attrs:{slot:"action"},on:{click:t.search},slot:"action"},[t._v("搜索")])]),a("van-swipe",{staticClass:"m-swipe",attrs:{autoplay:3e3}},t._l(t.banners,(function(e,n){return a("van-swipe-item",{key:n,staticClass:"u-swipe-item"},[a("van-image",{attrs:{width:"100vw",height:"43.2vw",src:t._f("url")(e.url),fit:"contain"},on:{click:function(e){return t.clickBanner(n)}}})],1)})),1),a("van-tabs",{attrs:{"before-change":function(e){return e!==t.tabs.length}},on:{change:t.changeTab},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[t._l(t.tabs,(function(t,e){return a("van-tab",{key:e,attrs:{title:t.name_short,name:t.id}})})),a("van-tab",{attrs:{title:"读书会",url:"https://pattern.swarma.org/?from=campus",name:t.tabs.length}})],2),t.isInit?a("van-list",{staticClass:"m-list",attrs:{finished:t.isFinish,error:t.isError},on:{load:t.load},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.courses,(function(t,e){return a("Course",{key:e,attrs:{course:t}})})),1):t._e()],1)},It=[],Ot=a("2909"),Lt=(a("2994"),a("2bdd")),At=(a("da3c"),a("0b33")),zt=(a("bda7"),a("5e46")),Et=(a("4b0a"),a("2bb1")),qt=(a("7844"),a("5596")),Dt=(a("5852"),a("d961")),Mt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("router-link",{staticClass:"m-course",attrs:{to:{name:"courseDetail",params:{id:t.course.id}}}},[a("div",{staticClass:"m-main"},[a("div",{staticClass:"m-image"},[a("van-image",{attrs:{width:"100%",height:"100%",src:t._f("url")(t.course.image),fit:"contain"}}),2===t.course.type?a("div",{staticClass:"u-tag"},[t._v("系列课")]):t._e(),t.showProgress&&void 0!==t.course.study_time&&null!==t.course.study_time?a("div",{staticClass:"u-progress"},[t._v("已学"+t._s(t._f("progress")(t.course.study_time,t.course.duration))+"%")]):t._e()],1),a("div",{staticClass:"m-info"},[a("div",{staticClass:"u-title van-ellipsis"},[t._v(t._s(t.course.title))]),a("div",{staticClass:"m-detail"},[a("div",{staticClass:"u-teachers"},[t._v(t._s(t._f("teachers")(t.course.masters)))]),a("div",{staticClass:"u-study-count"},[a("van-icon",{attrs:{name:"contact"}}),t._v(" "+t._s(t.course.study_count)+"人学习中 ")],1)]),a("div",{staticClass:"m-detail"},[a("div",{staticClass:"u-difficulty"},[t._v(t._s(t._f("difficulty")(t.course.difficulty)))]),a("div",{staticClass:"u-duration"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"clock-o"}}),t._v(" "+t._s(t._f("duration")(t.course.duration))+" ")],1)]),a("div",{staticClass:"m-footer"},[a("div"),t.course.is_access?a("div",{staticClass:"u-price f-access"},[t._v("已购买")]):a("div",{staticClass:"u-price"},[t._v(t._s(t._f("price")(t.course.price)))])])])]),a("div",{staticClass:"u-introduction van-multi-ellipsis--l2"},[t._v(t._s(t.course.introduction))])])},Rt=[],Vt={name:"course",props:{course:Object,showProgress:{type:Boolean,default:!1}},filters:{teachers:function(t){if(t&&t.length)return t[0].name+(t.length>1?"等":"")}}},Bt=Vt,Ut=(a("dc8c"),Object(st["a"])(Bt,Mt,Rt,!1,null,"909de7bc",null)),Wt=Ut.exports,Ft=function(){return U.get("/campus/banners").then((function(t){return t.data}))},Gt=function(t,e){return U.get("/campus/latest?page=".concat(t),{cancelToken:e}).then((function(t){return t.data}))},Ht=function(){return U.get("/categories").then((function(t){return t.data}))},Kt=function(t,e,a){return U.get("/categories/".concat(t,"?page=").concat(e),{cancelToken:a}).then((function(t){return t.data}))},Jt=function(t,e,a){return U.get("/search/course?keyword=".concat(t,"&page=").concat(e),{cancelToken:a}).then((function(t){return t.data}))},Qt=function(t,e){return U.get("/courses/bnu?page=".concat(t),{cancelToken:e}).then((function(t){return t.data}))},Xt={banners:Ft,latest:Gt,categories:Ht,categoryCourses:Kt,search:Jt,bnuCourses:Qt},Zt=function(t){return U.get("/users/course_recommendations",{cancelToken:t}).then((function(t){return t.data}))},Yt=function(t){return U.get("/users/campus/study_records"+(t?"?max_time=".concat(t):"")).then((function(t){return t.data}))},te=function(t,e){return U.get("/users/campus/purchases?page=".concat(t),{cancelToken:e}).then((function(t){return t.data}))},ee=function(t,e){return U.get("/users/collect/courses?page=".concat(t),{cancelToken:e}).then((function(t){return t.data}))},ae=function(t,e){return U.get("/point_records/user?page=".concat(t),{cancelToken:e}).then((function(t){return t.data}))},ne=function(t,e){return U.post("/point_records/order",{amount:t,type:e,origin:3,from:g.state.from||void 0}).then((function(t){return t.data}))},se=function(t){return U.post("/point_activity",t).then((function(t){return t.data}))},oe=function(t,e){return U.post("/vips/order",{duration:t,type:e,origin:3,from:g.state.from||void 0}).then((function(t){return t.data}))},re=function(t,e){return U.get("/users/campus/course_accesses?page=".concat(t),{cancelToken:e}).then((function(t){return t.data}))},ie=function(t){return U.get("vips/discount/20221111").then((function(t){return t.data}))},ce={recommendations:Zt,studyRecords:Yt,purchases:te,collects:ee,points:ae,chargePoint:ne,chargePointActivity:se,buyVip:oe,accesses:re,vip20221111:ie},ue={name:"home",components:(T={},Object(c["a"])(T,Dt["a"].name,Dt["a"]),Object(c["a"])(T,qt["a"].name,qt["a"]),Object(c["a"])(T,Et["a"].name,Et["a"]),Object(c["a"])(T,zt["a"].name,zt["a"]),Object(c["a"])(T,At["a"].name,At["a"]),Object(c["a"])(T,Lt["a"].name,Lt["a"]),Object(c["a"])(T,"Course",Wt),T),data:function(){return{banners:[],tabs:[],activeTab:0,searchKeyword:"",isInit:!1,isLoading:!1,isFinish:!1,isError:!1,courses:[],page:1}},mounted:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Xt.banners(t.axiosCancelToken).then((function(e){t.banners=e})),e.next=3,Xt.categories();case 3:a=e.sent,a.unshift({id:"latest",name:"最新",name_short:"最新"}),a.unshift({id:"recommendation",name:"推荐课程",name_short:"推荐"}),t.tabs=a,t.isInit=!0;case 8:case"end":return e.stop()}}),e)})))()},methods:{search:function(){this.$router.push({name:"search",query:{keyword:this.searchKeyword}})},clickBanner:function(t){this.banners[t].category_id?this.activeTab=this.banners[t].category_id:this.banners[t].course_id&&this.$router.push({name:"courseDetail",params:{id:this.banners[t].course_id}})},changeTab:function(){this.load(!0)},load:function(t){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function a(){var n,s,o,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e.isLoading=!0,e.axiosCancel("请求已取消"),e.createAxiosCancelToken(),t&&(e.courses=[],e.page=1,e.isFinish=!1),"recommendation"!==e.activeTab){a.next=11;break}return a.next=7,ce.recommendations(e.axiosCancelToken);case 7:e.courses=a.sent,e.isFinish=!0,a.next=24;break;case 11:if("latest"!==e.activeTab){a.next=19;break}return a.next=14,Xt.latest(e.page,e.axiosCancelToken);case 14:s=a.sent,(n=e.courses).push.apply(n,Object(Ot["a"])(s.data)),s.meta.last_page>e.page?e.page++:e.isFinish=!0,a.next=24;break;case 19:return a.next=21,Xt.categoryCourses(e.activeTab,e.page,e.axiosCancelToken);case 21:r=a.sent,(o=e.courses).push.apply(o,Object(Ot["a"])(r.data)),r.meta.last_page>e.page?e.page++:e.isFinish=!0;case 24:e.isLoading=!1;case 25:case"end":return a.stop()}}),a)})))()}}},le=ue,de=Object(st["a"])(le,St,It,!1,null,"9c398860",null),me=de.exports,pe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-my-study"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticStyle:{"margin-right":"0.5em"},attrs:{size:"18","class-prefix":"swarma-icon",name:"study"}}),t._v(" 我的学习记录 ")],1),t.isLogin?[t.isEmpty?a("GoStudy",{attrs:{name:"学习记录"}}):a("van-list",{staticClass:"m-list",attrs:{finished:t.isFinish,error:t.isError},on:{load:t.load},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.courses,(function(t,e){return a("Course",{key:e,attrs:{course:t,showProgress:!0}})})),1)]:a("NeedLogin")],2)},he=[],ve=(a("4de4"),a("caad"),a("d81d"),a("2532"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("van-button",{staticClass:"u-need-login",attrs:{type:"info",icon:"user-o"},on:{click:function(e){return t.changeLoginDialog(!0)}}},[t._v("登录")])}),ye=[],fe={name:"needLogin",methods:Object(i["a"])({},Object(p["c"])(["changeLoginDialog"]))},_e=fe,Ce=(a("0350"),Object(st["a"])(_e,ve,ye,!1,null,"32cd2aaf",null)),ge=Ce.exports,be=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-go-study"},[t._v(" 您还没有"+t._s(t.name)+"，"),a("span",{staticClass:"u-go",on:{click:t.goStudy}},[t._v("赶快开始学习吧~")])])},we=[],ke={name:"goStudy",props:{name:String},methods:{goStudy:function(){this.$router.push({name:"home"})}}},Ne=ke,xe=(a("d9cc"),Object(st["a"])(Ne,be,we,!1,null,"522940b4",null)),je=xe.exports,Pe={name:"myStudy",components:(S={},Object(c["a"])(S,Lt["a"].name,Lt["a"]),Object(c["a"])(S,"NeedLogin",ge),Object(c["a"])(S,"GoStudy",je),Object(c["a"])(S,"Course",Wt),S),data:function(){return{isLoading:!1,isFinish:!1,isError:!1,isEmpty:!1,courses:[],page:1,maxTime:"",purchasedCourses:[],loadedPurchased:!1,axiosCancelToken:null}},computed:{isLogin:function(){return this.$store.state.isLogin}},mounted:function(){var t=this;document.title="最近学习",this.$_isWechat&&window.wx.ready((function(){t.$_updateWxShareData("最近学习")}))},methods:{loadPurchasedCourses:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ce.accesses(1,t.axiosCancelToken);case 3:a=e.sent,a.data&&a.data.length&&(t.purchasedCourses=a.data.filter((function(t){return t.course.price>0})).map((function(t){return Object(i["a"])({},t.course,{study_time:0,is_access:!0})}))),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.error("加载已购课程失败",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()},load:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a,n,s,o,r,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.isLoading=!0,t.loadedPurchased){e.next=5;break}return e.next=4,t.loadPurchasedCourses();case 4:t.loadedPurchased=!0;case 5:return e.next=7,ce.studyRecords(t.maxTime);case 7:n=e.sent,s=n.data.map((function(t){return Object(i["a"])({},t.course,{study_time:t.study_time||t.course.study_time})})),(a=t.courses).push.apply(a,Object(Ot["a"])(s)),n.data&&n.data.length&&(t.maxTime=n.data[n.data.length-1].study_at),n.meta.last_page>t.page?t.page++:(0===n.meta.total&&(t.isEmpty=!0),t.purchasedCourses.length>0&&(r=t.courses.map((function(t){return t.id})),c=t.purchasedCourses.filter((function(t){return!r.includes(t.id)})),(o=t.courses).push.apply(o,Object(Ot["a"])(c))),0===t.courses.length&&(t.isEmpty=!0),t.isFinish=!0),t.isLoading=!1;case 13:case"end":return e.stop()}}),e)})))()}}},$e=Pe,Te=(a("5bdf"),Object(st["a"])($e,pe,he,!1,null,"cca50a5a",null)),Se=Te.exports,Ie=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-user"},[t.isLogin?[a("div",{staticClass:"m-user-info f-shadow",on:{click:t.goPatternUserInfo}},[a("van-image",{staticClass:"u-avatar",attrs:{width:"20vw",height:"20vw",src:t._f("url")(t.user.avatar,!0),round:"",contain:""}}),a("div",{staticClass:"m-info"},[a("div",{staticClass:"m-name"},[a("div",{staticClass:"u-text van-ellipsis"},[t._v(t._s(t.user.nick_name))]),t.user.is_vip?a("div",{staticClass:"u-vip"},[t._v("VIP")]):t._e()]),a("div",{staticClass:"u-introduce"},[t._v("用户id: "+t._s(t.user.id))]),a("div",{staticClass:"u-introduce"},[t._v(t._s(t.user.introduce||"ta还没有个人简介"))])]),a("van-icon",{staticClass:"u-arrow",attrs:{name:"arrow"}})],1),a("van-cell-group",{staticClass:"f-shadow"},[a("van-cell",{attrs:{icon:"like-o",title:"我的收藏",size:"large",to:{name:"collects"},"is-link":""}}),a("van-cell",{attrs:{icon:"cart-o",title:"我的课程",size:"large",to:{name:"myStudy"},"is-link":""}}),a("van-cell",{attrs:{icon:"coupon-o",title:"发票",size:"large",url:"//"+(this.$_isTest?"test.":"")+"pattern.swarma.org/mobile/user/invoice","is-link":""}}),a("van-cell",{attrs:{icon:"points",title:"集智积分",size:"large",value:t.user.point+" ∫",to:{name:"points"},"is-link":""}}),a("van-cell",{attrs:{icon:"setting-o",title:"个人设置",size:"large","is-link":""},on:{click:t.goPatternUserInfo}}),a("van-cell",{attrs:{icon:"service-o",title:"意见反馈",size:"large",url:"https://support.qq.com/products/103561","is-link":""}}),a("van-cell",{attrs:{icon:"chart-trending-o",title:"企业合作",size:"large",url:"http://business.swarma.org","is-link":""}}),a("van-cell",{attrs:{icon:"smile-o",title:"关于我们",size:"large",url:"https://pattern.swarma.org/about_us","is-link":""}})],1),a("van-cell-group",{staticClass:"f-shadow"},[a("van-cell",{attrs:{title:"退出登录",size:"large","is-link":""},on:{click:t.lgout}},[a("van-icon",{staticStyle:{"margin-right":"5px"},attrs:{slot:"icon","class-prefix":"swarma-icon",name:"exit"},slot:"icon"})],1)],1)]:a("NeedLogin")],2)},Oe=[],Le=(a("5f1a"),a("a3e2")),Ae=(a("0653"),a("34e9")),ze=(a("c194"),a("7744")),Ee={name:"user",components:(I={},Object(c["a"])(I,ze["a"].name,ze["a"]),Object(c["a"])(I,Ae["a"].name,Ae["a"]),Object(c["a"])(I,Le["a"].name,Le["a"]),Object(c["a"])(I,"NeedLogin",ge),I),computed:{isLogin:function(){return this.$store.state.isLogin},user:function(){return this.$store.state.user}},methods:{goPatternUserInfo:function(){window.location.assign("campus.swarma.org"!==window.location.hostname?"https://test.pattern.swarma.org/user/setting":"https://pattern.swarma.org/user/setting")},lgout:function(){return Object(n["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Q.lgout();case 2:case"end":return t.stop()}}),t)})))()}}},qe=Ee,De=(a("5389"),Object(st["a"])(qe,Ie,Oe,!1,null,"39588cf8",null)),Me=De.exports,Re=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-vip"},[a("img",{staticClass:"m-head",attrs:{src:t.vipHead}}),t.isLogin?t._e():a("NeedLogin",{staticClass:"u-need-login"}),t.isLogin?[t.discount_20221111.is_discount&&!t.discount_20221111.is_participated?["renewal"===t.discount_20221111.type?a("div",{staticClass:"m-vip-btns",staticStyle:{position:"relative"}},[a("div",{staticClass:"m-vip-btn",on:{click:function(e){return t.buyBip(1,t.discount_20221111.combo[1].price)}}},[a("div",{staticClass:"u-name"},[t._v("点击"+t._s(t.isVip?"续费":"开通")+" "),a("b",[t._v("1")]),t._v(" 年")]),a("div",{staticClass:"u-price"},[a("span",{staticStyle:{"text-decoration":"line-through"}},[t._v("￥3299")]),t._v("￥"),a("span",{staticClass:"u-num"},[t._v(t._s(t.discount_20221111.combo[1].price))])])]),a("div",{staticClass:"m-vip-btn",on:{click:function(e){return t.buyBip(2,t.discount_20221111.combo[2].price)}}},[a("div",{staticClass:"u-name"},[t._v("点击续"+t._s(t.isVip?"续费":"开通")+" "),a("b",[t._v("2")]),t._v(" 年")]),a("div",{staticClass:"u-price"},[a("span",{staticStyle:{"text-decoration":"line-through"}},[t._v("￥5899")]),t._v("￥"),a("span",{staticClass:"u-num"},[t._v(t._s(t.discount_20221111.combo[2].price))])])]),t.isVip?a("div",{staticStyle:{position:"absolute",left:"50%",bottom:"0",transform:"translate(-50%, 40%)"}},[t._v("当前VIP "+t._s(t.vipExpireDate)+" 到期")]):t._e()]):a("div",{staticClass:"m-vip-btns"},[a("div",{staticClass:"m-vip-btn",on:{click:function(e){return t.buyBip(1,t.discount_20221111.combo[1].price)}}},[t._m(0),a("div",{staticClass:"u-price"},[t._v("￥"),a("span",{staticClass:"u-num"},[t._v(t._s(t.discount_20221111.combo[1].price))])])]),a("div",{staticClass:"m-vip-btn",on:{click:function(e){return t.buyBip(2,t.discount_20221111.combo[2].price)}}},[t._m(1),a("div",{staticClass:"u-price"},[t._v("￥"),a("span",{staticClass:"u-num"},[t._v(t._s(t.discount_20221111.combo[2].price))])])])])]:t.isVip?[t.canRenew?a("div",{staticClass:"m-vip-btns"},[a("div",{staticClass:"m-vip-btn",on:{click:function(e){return t.buyBip(1,t.discount_20221111.combo[1].price)}}},[t._m(2),a("div",{staticClass:"u-price"},[a("span",{staticStyle:{"text-decoration":"line-through"}},[t._v("￥3299")]),t._v("￥"),a("span",{staticClass:"u-num"},[t._v(t._s(t.discount_20221111.combo[1].price))])])]),a("div",{staticClass:"m-vip-btn",on:{click:function(e){return t.buyBip(2,t.discount_20221111.combo[2].price)}}},[t._m(3),a("div",{staticClass:"u-price"},[a("span",{staticStyle:{"text-decoration":"line-through"}},[t._v("￥5899")]),t._v("￥"),a("span",{staticClass:"u-num"},[t._v(t._s(t.discount_20221111.combo[2].price))])])])]):a("div",{staticClass:"m-vip-btn m-vip-time"},[a("div",{staticClass:"u-title"},[t._v("VIP会员")]),a("div",{staticClass:"u-time"},[t._v(t._s(t.vipExpireDate)+" 到期")])])]:"renewal"===t.discount_20221111.type?a("div",{staticClass:"m-vip-btns"},[a("div",{staticClass:"m-vip-btn",on:{click:function(e){return t.buyBip(1,t.discount_20221111.combo[1].price)}}},[t._m(4),a("div",{staticClass:"u-price"},[a("span",{staticStyle:{"text-decoration":"line-through"}},[t._v("￥3299")]),t._v("￥"),a("span",{staticClass:"u-num"},[t._v(t._s(t.discount_20221111.combo[1].price))])])]),a("div",{staticClass:"m-vip-btn",on:{click:function(e){return t.buyBip(2,t.discount_20221111.combo[2].price)}}},[t._m(5),a("div",{staticClass:"u-price"},[a("span",{staticStyle:{"text-decoration":"line-through"}},[t._v("￥5899")]),t._v("￥"),a("span",{staticClass:"u-num"},[t._v(t._s(t.discount_20221111.combo[2].price))])])])]):a("div",{staticClass:"m-vip-btns"},[a("div",{staticClass:"m-vip-btn",on:{click:function(e){return t.buyBip(1,3299)}}},[t._m(6),t._m(7)]),a("div",{staticClass:"m-vip-btn",on:{click:function(e){return t.buyBip(2,5899)}}},[t._m(8),t._m(9)])])]:t._e(),a("van-popup",{attrs:{position:"bottom"},model:{value:t.showPay,callback:function(e){t.showPay=e},expression:"showPay"}},[a("BuyVip",{attrs:{duration:t.duration,amount:t.amount},on:{paid:t.paid}})],1),a("div",{staticClass:"m-detail"},[a("div",{staticClass:"u-title-2"},[t._v("你好，探索者！")]),t.isVip?[t.discount_20221111.is_discount?[a("div",[t._v("欢迎你成为集智学园VIP会员。你已成功解锁所有集智学园在线系列课程、集智斑图前沿主题读书会、更好链接资源的微信群、集智俱乐部学术年会受邀资格等！")]),a("div",[t._v("现在向你汇报我们2025年的进展，截止目前，我们共推出了数十个主题的前沿读书会，包括非平衡统计物理、大模型II、地球系统科学、具身智能、AI+学习、金融复杂性、AI+传播、神经动力学、复杂网络瓦解、非线性动力学与混沌、意识科学等主题，组织了超百场分享，吸引近万名成员加入，还有群体智能、细胞生物学、因果涌现读书会第七季、物理启发的机器学习、具身智能+实业、理论生态学、网络药理学等即将推出。")]),a("div",[t._v("双十一将至，我们特别为你制定了续费优惠方案，现在加入立享八折优惠！")]),a("div",[t._v("未来我们将与社区成员共学共研共创，推动复杂科学发展。")]),t._m(10),t._m(11)]:[a("div",[t._v("欢迎你成为集智学园VIP会员。你已成功解锁所有集智学园在线系列课程、集智斑图前沿主题读书会、更好链接资源的微信群、集智俱乐部学术年会受邀资格等！")]),a("div",[t._v("未来我们将与社区成员共学共研共创，推动复杂科学发展。")]),t._m(12)]]:[t.discount_20221111.is_discount?[a("div",[t._v("截止目前，我们共推出了数十个主题的前沿读书会，包括非平衡统计物理、大模型II、地球系统科学、具身智能、AI+学习、金融复杂性、AI+传播、神经动力学、复杂网络瓦解、非线性动力学与混沌、意识科学等主题，组织了超百场分享，吸引近万名成员加入，还有群体智能、细胞生物学、因果涌现读书会第七季、物理启发的机器学习、具身智能+实业、理论生态学、网络药理学等即将推出。双十一将至，我们为集智社区的探索者制定了特别优惠方案，细节如下：")]),t._m(13),a("div",[t._v("集智学园VIP计划是面向有长期学习需求和科研交流需求的朋友开放的付费服务，加入VIP可解锁所有集智学园在线系列课程、集智斑图前沿主题读书会、更好链接资源的微信群、集智俱乐部学术年会受邀资格，还有限量版集智复杂科学知识卡片、集智T恤等专属礼包。")]),a("div",[t._v("欢迎各位学术界、企业界的朋友加入VIP，在这里你会找到新朋友、发现新问题、获得新认知，和社区朋友共同迭代，共探未来！")])]:[a("div",[t._v("集智学园VIP计划是面向有长期学习需求和科研交流需求的朋友开放的付费服务，加入VIP可解锁所有集智学园在线系列课程、集智斑图前沿主题读书会、更好链接资源的微信群、集智俱乐部学术年会受邀资格等。")]),a("div",[t._v("欢迎各位学术界、企业界的朋友加入VIP，在这里你会找到新朋友、发现新问题、获得新认知，和社区朋友共同迭代，共探未来！")])]],a("div",{staticClass:"u-title-2"},[t._v("需要开发票或有其他任何问题都可以咨询集智学园VIP负责人（微信号：16601040080）")]),t._m(14),a("div",[a("div",{staticClass:"u-title"},[t._v("全站课程")]),a("div",[t._v("集智学园网站共分为 5 大模块，复杂系统、人工智能、数理基础、编程实战、北师讲堂，包含复杂科学与人工智能的核心内容，课程累计时长约有 6 万分钟。")]),a("div",[t._v("截止目前，我们推出了多个专题课程，包括控制科学前沿理论与方法、混沌科学、第三代人工智能技术基础、神经网络的统计力学、复杂系统入门、网络科学系列课程、范畴论系列课程、复杂系统的计算实验、量子力学、量子信息与量子计算、信息论基础、NetLogo等，以及经授权从圣塔菲网站引入的系列课程，欢迎加入学习。")]),a("img",{staticClass:"u-img",attrs:{src:t._f("url")("vip/vip-detail-20251111-1.jpg"),alt:"全站课程"}})]),a("div",[a("div",{staticClass:"u-title"},[t._v("前沿主题读书会")]),a("div",[t._v("集智俱乐部读书会是面向广大科研工作者的系列论文研读活动，其目的是共同深入学习探讨某个科学议题，了解前沿进展，激发科研灵感，促进科研合作，降低科研门槛。")]),a("div",[t._v("读书会活动始于 2008 年，至今已经有 70 余个主题，内容涵盖复杂系统、人工智能、脑与意识、生命科学、因果科学、高阶网络等。凝聚了众多优秀科研工作者，促进了科研合作发表论文，孵化了许多科研产品。如：2013 年的“深度学习”读书会孕育了彩云天气 APP，2015 年的“集体注意力流”读书会产生了众包书籍《走近2050》，2020年的开始因果科学读书会孕育了大型因果科学社区等。")]),t._m(15),a("img",{staticClass:"u-img",attrs:{src:t._f("url")("vip/vip-detail-20251111-2.jpg"),alt:"前沿主题读书会"}})]),t._m(16),a("div",[a("div",{staticClass:"u-title"},[t._v("2025年集智vip大礼包")]),a("ul",[a("li",[a("div",{staticClass:"u-title-2"},[t._v("集智俱乐部新译作品《意识迷宫》")]),t._m(17),a("img",{staticClass:"u-img",staticStyle:{width:"80%"},attrs:{src:t._f("url")("vip/gift-2025-1.png"),alt:"意识迷宫"}})]),a("li",[a("div",{staticClass:"u-title-2"},[t._v("2025版复杂科学知识卡")]),a("div",[t._v("如果你想读懂《意识迷宫》，你得有一套复杂科学的百科全书，这副扑克牌就是微缩版的复杂科学知识卡！")]),a("img",{staticClass:"u-img",staticStyle:{width:"80%"},attrs:{src:t._f("url")("vip/gift-2025-2.png"),alt:"2025版复杂科学知识卡"}})]),a("li",[a("div",{staticClass:"u-title-2"},[t._v("2025年VIP专属定制胸针")]),a("div",[t._v("彰显你的VIP身份，佩戴此胸针来即将开业的集智谷咖啡厅可免费领取一杯咖啡，实现你的咖啡自由")]),a("img",{staticClass:"u-img",staticStyle:{width:"80%"},attrs:{src:t._f("url")("vip/gift-2025-3.jpg"),alt:"2025年VIP专属定制胸针"}})]),a("li",[a("div",{staticClass:"u-title-2"},[t._v("新款帆布包")]),a("div",[t._v("定制了大容量的帆布包，笔记本电脑、水杯统统能放进去。")]),a("img",{staticClass:"u-img",staticStyle:{width:"80%"},attrs:{src:t._f("url")("vip/gift-2025-4.png"),alt:"新款帆布包"}})])])]),t._m(18),t._m(19)],2)],2)},Ve=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"u-name",staticStyle:{"text-align":"center"}},[t._v("点击开通 "),a("b",[t._v("1")]),t._v(" 年VIP"),a("br"),t._v("加送 "),a("b",[t._v("1")]),t._v(" 个月")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"u-name",staticStyle:{"text-align":"center"}},[t._v("点击开通 "),a("b",[t._v("2")]),t._v(" 年VIP"),a("br"),t._v("加送 "),a("b",[t._v("2")]),t._v(" 个月")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"u-name"},[t._v("点击续费 "),a("b",[t._v("1")]),t._v(" 年VIP")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"u-name"},[t._v("点击续费 "),a("b",[t._v("2")]),t._v(" 年VIP")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"u-name"},[t._v("点击开通 "),a("b",[t._v("1")]),t._v(" 年VIP")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"u-name"},[t._v("点击开通 "),a("b",[t._v("2")]),t._v(" 年VIP")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"u-name"},[t._v("点击开通 "),a("b",[t._v("1")]),t._v(" 年VIP")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"u-price"},[t._v("￥"),a("span",{staticClass:"u-num"},[t._v("3299")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"u-name"},[t._v("点击开通 "),a("b",[t._v("2")]),t._v(" 年VIP")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"u-price"},[t._v("￥"),a("span",{staticClass:"u-num"},[t._v("5899")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._v("如果你还没有加入VIP微信群，请填写表单，添加负责人微信，我们会邀请你入群！表单链接："),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://campus.swarma.org/form/vip_after"}},[t._v("https://campus.swarma.org/form/vip_after")]),t._v("。")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"text-align":"right"}},[a("div",[t._v("2025年11月5日")]),a("div",[t._v("一直在生长的集智学园")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._v("如果你还没有加入VIP微信群，请填写表单，添加负责人微信，我们会邀请你入群！表单链接："),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://campus.swarma.org/form/vip_after"}},[t._v("https://campus.swarma.org/form/vip_after")]),t._v("。")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[t._v("1. 优惠方案")]),a("div",{staticStyle:{"padding-left":"24px"}},[a("div",[t._v("a. 老会员续费VIP可享受：八折优惠。")]),a("div",[a("b",[t._v("b. 学生专属VIP可享受：填表申请通过后，八折优惠。表单链接："),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://campus.swarma.org/form/activity/69"}},[t._v("https://campus.swarma.org/form/activity/69")])])]),a("div",[t._v("c. 首次开通VIP可享受：开通1年VIP加送1个月会员，开通2年VIP加送2个月会员。")])]),a("div",[t._v("2. 方案有效期：2025年11月5日-11月19日。")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"u-title-2"},[t._v("VIP权益包括：")]),a("ul",[a("li",[t._v("畅看集智学园全站课程视频")]),a("li",[t._v("免费加入所有集智斑图读书会")]),a("li",[t._v("优先参与集智线下闭门活动")]),a("li",[t._v("受邀参加集智俱乐部学术年会")]),a("li",[t._v("获赠集智周边大礼包")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._v("集智俱乐部从2020年开始举办线上读书会，目前已孵化出 AI+Science、因果涌现、人工智能、因果科学、意识科学、神经、认知、智能、生命复杂性、地球系统科学、网络科学、图神经网络、复杂经济学、计算社会科学、复杂系统管理、城市科学、科学学等主题读书会和社区，沉淀了大量前沿话题与讨论，扫码可见读书会列表："),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://pattern.swarma.org/"}},[t._v("https://pattern.swarma.org/")]),t._v("。")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"u-title"},[t._v("集智学术年会")]),a("div",[t._v("集智学术年会是集智俱乐部盛会，不定期举办，总结集智俱乐部发展，总结学科前沿进展，并为集智俱乐部的成员提供深度交流的平台，年会为邀请制。")]),a("div",{staticClass:"u-title-2"},[t._v("历年年会")]),a("ul",[a("li",[t._v("2015年第一次学术年会在南京大学新闻传播学院举办，主题为"),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/RKN3JZZT-KTMupzbrT0HQw"}},[t._v("注意力的科学；")])]),a("li",[t._v("2016年的学术圣诞晚会在帝都心脏三里屯的Surperfit举办，主题为"),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/JMaf3r70ej0E5-_5rQ-Dmg"}},[t._v("AI与创业；")])]),a("li",[t._v("2017年的学术圣诞晚会在768创意产业园区内的彩云科技举办，主题为"),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/QjRJ-Rf2qDwcdweKOXF5uw"}},[t._v("AI改变生活；")])]),a("li",[t._v("2018年的学术圣诞晚会在北京朝阳区乌托邦工厂举办，主题为"),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/aTd8fLStWOiDafBpv2ptdw"}},[t._v("奇点临近；")])]),a("li",[t._v("2019年的学术年会在北京海淀区的E_ZIKOO智慧谷举办，主题为"),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/m72gn9zelt83lP_cyGi5Wg"}},[t._v("量子跃迁；")])]),a("li",[t._v("2020年的学术年会线上进行，主题为"),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/HUCMRKDRDZ3CL0Vmml6niQ"}},[t._v("因果纠缠；")])]),a("li",[t._v("2023年的学术年会暨集智俱乐部20周年在北京中关村壹号举办，主题为"),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/TroZnUxXWGUy8r56AX1OuA"}}),t._v("涌现；")])]),a("iframe",{staticClass:"u-video",attrs:{src:"//player.bilibili.com/player.html?isOutside=true&aid=791352269&bvid=BV1HC4y1271v&cid=1344120760&p=1",scrolling:"no",border:"0",frameborder:"no",framespacing:"0",allowfullscreen:"true"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._v("杰出神经科学家、福布斯“30位30岁以下杰出青年科学家”之一、因果涌现理论的提出者，天才作家埃里克·赫尔 (Erik Hoel) 超现实烧脑奇作，中国最有影响力的复杂科学社区——集智俱乐部重磅翻译、推/荐。"),a("br"),t._v("大胆前卫的文学思想实验，雄心勃勃的科学烧脑狂欢，科学领域的新《达·芬奇密码》，你如何凭意识走出致命迷宫？500+顶级大脑争先解读的未来“启示录”。")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"u-title"},[t._v("关于我们")]),a("div",[a("div",{staticClass:"u-title-2"},[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://swarma.org"}},[t._v("集智俱乐部")])]),a("div",[t._v("集智俱乐部成立于 2003 年，是一个从事学术研究、享受科学乐趣的探索者的团体，也是国内最早的研究人工智能、复杂系统的科学社区。其运营主体是集智科学研究中心（民办非营利机构）。")]),a("div",[t._v("它倡导以平等开放的态度、科学实证的精神，进行跨学科的研究与交流，力图搭建一个中国的“没有围墙的研究所”。其孕育的创业团队集智学园致力于传播复杂性科学、人工智能等前沿知识和新兴技术，促进、推动复杂科学领域的知识探索与生态构建。")]),a("div",[t._v("愿景：营造跨学科探索小生境，催化复杂性科学新理论")])]),a("div",[a("div",{staticClass:"u-title-2"},[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://campus.swarma.org"}},[t._v("集智学园")])]),a("div",[t._v("集智学园（Swarma Campus）成立于2016年10月1日，是集智俱乐部孕育的创业团队。集智学园致力于传播复杂科学、人工智能等前沿知识和新兴技术，促进、推动复杂科学领域的知识探索与生态构建。合作伙伴包括腾讯、华为、北京师范大学、混沌学园等多家知名机构。2019年和2022年两次被评定为“国家高新技术企业”。")]),a("div",[t._v("口号：学复杂科学，到集智学园")]),a("div",[t._v("使命：梳理复杂知识体系，普及科学理论方法")])]),a("div",{staticStyle:{"margin-top":"16px"}},[t._v("集智发展故事：")]),a("div",[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/w6kPMohHKmV_I5JpJszYuQ"}},[t._v("1. 中国有“集智俱乐部”")])]),a("div",[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/bw5TUqUyxQHXl8MeM8RZYA"}},[t._v("2. 为什么他可以创办集智俱乐部？专访张江成长之路")])]),a("div",[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/NNxLkvPw0QsH4sqgxnFVig"}},[t._v("3. 记录集智2003-2015——一个民间科学探索群体的成长故事")])]),a("div",[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/Emz4Zga_aTkNW-kc7DGG7A"}},[t._v("4. 超越与重生-记录集智2015-2016（上）")])]),a("div",[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/2AHmGn-nDSWJubhFE2XdBg"}},[t._v("5. 超越与重生-记录集智2015-2016（下）")])]),a("div",[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/c3fw-vvxfoHSOSVsRlt7Mw"}},[t._v("6. 我在北京创业的那五年|记录集智的2017-2021")])]),a("div",[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/dYspfFVa0J4qFw4GHrH2_Q"}},[t._v("7. 我们的时代：摇滚、互联网与科学")])]),a("div",[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/03TeqCflOJroMAhWrrGjMg"}},[t._v("8. AI奇点临近，如何唤醒行星智能？")])]),a("div",[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/H_C2cedT1er3vTmT_gA65A"}},[t._v("9. 诺奖之后的复杂科学：18位学者勾勒未来20年复杂系统研究图景")])]),a("div",[a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://mp.weixin.qq.com/s/hS4EYxUjDBidMVViq0eeEA"}},[t._v("10. 涌现：21世纪科学的统一主题")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"u-title"},[t._v("常见问题：")]),a("ul",[a("li",[a("div",{staticClass:"u-title-2"},[t._v("怎么开发票？都有哪些类目可以选择？")]),a("div",[t._v("可以开具增值税普通发票或增值税专用专票。")]),a("div",[t._v("发票类目包括：技术服务费、技术咨询费、技术推广费、技术研究费、教育咨询费、会议服务费、现代服务·培训费。")]),a("div",[t._v("发票申请地址："),a("a",{attrs:{target:"_blank",rel:"noopener",href:"https://pattern.swarma.org/user/invoice"}},[t._v("https://pattern.swarma.org/user/invoice")])])])])])}],Be=(a("1276"),a("ac1e"),a("543e")),Ue=a("892d"),We=a.n(Ue),Fe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-pay"},[a("van-cell",{staticClass:"f-wechat",attrs:{size:"large",icon:"wechat",title:"微信支付",value:t.amount+" 元","is-link":""},on:{click:function(e){return t.pay("wechat_mobile")}}}),t.$_isWechat?t._e():a("van-cell",{staticClass:"f-alipay",attrs:{size:"large",icon:"alipay",title:"支付宝支付",value:t.amount+" 元","is-link":""},on:{click:function(e){return t.pay("alipay_mobile")}}}),a("van-dialog",{attrs:{width:"280px","confirm-button-text":"支付完成","confirm-button-color":"#ec8a21","show-cancel-button":""},on:{confirm:function(e){return t.$emit("paid")},cancel:t.cancel},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[a("van-loading",{attrs:{color:"#ec8a21",size:"24px"}},[t._v("请在新窗口中完成支付")])],1)],1)},Ge=[],He=(a("a9e3"),{name:"pay",props:{duration:{type:Number,required:!0},amount:{type:Number,required:!0}},components:(O={},Object(c["a"])(O,Le["a"].name,Le["a"]),Object(c["a"])(O,ze["a"].name,ze["a"]),Object(c["a"])(O,Be["a"].name,Be["a"]),O),data:function(){return{show:!1,timer:""}},beforeDestroy:function(){this.cancel()},methods:{pay:function(t){var e=this;this.$_isWechat&&"wechat_mobile"===t?this.payInWechat():ce.buyVip(this.duration,t).then((function(t){e.startCheckPayStatus(t.oid),e.$_isApple?window.location.assign(t.url):window.open(t.url)}))},payInWechat:function(){var t=this;ce.buyVip(this.duration,"wechat").then((function(e){window.wx.chooseWXPay(Object(i["a"])({},e,{timestamp:e.timeStamp,success:function(e){"chooseWXPay:ok"===e.errMsg?t.$emit("paid"):t.$Toast({message:e.errMsg,position:"bottom"})}}))}))},startCheckPayStatus:function(t){var e=this;this.show=!0,this.timer=setTimeout((function(){e.checkPayStatus(t)}),1e3)},checkPayStatus:function(t){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,ce.isPaid(t,e.axiosCancelToken);case 2:n=a.sent,n.status?e.$emit("paid"):e.timer=setTimeout((function(){e.checkPayStatus(t)}),1e3);case 4:case"end":return a.stop()}}),a)})))()},cancel:function(){this.show=!1,this.axiosCancel("请求已取消"),this.createAxiosCancelToken(),clearTimeout(this.timer),this.timer=""}}}),Ke=He,Je=(a("a18b"),a("9341"),Object(st["a"])(Ke,Fe,Ge,!1,null,"143c1deb",null)),Qe=Je.exports,Xe={name:"vip",components:(L={},Object(c["a"])(L,u["a"].name,u["a"]),Object(c["a"])(L,Be["a"].name,Be["a"]),Object(c["a"])(L,"NeedLogin",ge),Object(c["a"])(L,"BuyVip",Qe),L),data:function(){return{vipHead:We.a,showPay:!1,duration:1,amount:0,discount_20221111:{}}},watch:{isLogin:{handler:function(t){var e=this;ce.vip20221111().then((function(t){e.discount_20221111=t}))},immediate:!0}},computed:Object(i["a"])({},Object(p["d"])({isLogin:function(t){return t.isLogin},isVip:function(t){return t.user.is_vip},canRenew:function(){return!this.$store.state.user.vip_expire_time||(new Date(this.$store.state.user.vip_expire_time)-new Date)/864e5<=91},vipExpireDate:function(t){return t.user.vip_expire_time?t.user.vip_expire_time.split(" ")[0]:""}})),methods:{buyBip:function(t,e){this.duration=t,this.amount=e,this.showPay=!0},paid:function(){window.location.assign("https://campus.swarma.org/form/vip_after")}}},Ze=Xe,Ye=(a("d549"),Object(st["a"])(Ze,Re,Ve,!1,null,"063654dc",null)),ta=Ye.exports,ea=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-course-detail"},[t.course?[a("van-image",{staticStyle:{display:"block"},attrs:{width:"100vw",height:"auto",src:t._f("url")(t.course.image),fit:"contain"}}),a("div",{staticClass:"m-course-info"},[a("div",{staticClass:"u-title"},[a("van-button",{staticClass:"u-back",attrs:{icon:"arrow-left",square:""},on:{click:t.back}},[t._v(" 返回 ")]),t._v(" "+t._s(t.course.title)+" ")],1),a("div",{staticClass:"m-groups"},[a("div",{staticClass:"m-group-line"},[a("div",{staticClass:"u-group-item"},[t._v(" 难度："+t._s(t._f("difficulty")(t.course.difficulty))+" ")]),a("div",{staticClass:"u-group-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"clock-o"}}),t._v(" "+t._s(t._f("duration")(t.course.duration))+" ")],1)]),a("div",{staticClass:"m-group-line"},[a("div",{staticClass:"u-group-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"friends-o"}}),t._v(" "+t._s(t.course.study_count)+"人学习中 ")],1),t.course.created_at?a("div",{staticClass:"u-group-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"notes-o"}}),t._v(" "+t._s(t.course.created_at.slice(0,10))+" 上线 ")],1):t._e()])]),a("div",{staticClass:"m-groups f-line"},[t.course.is_access?a("div",{staticClass:"u-group-item u-price f-access"},[t._v("已购买")]):-1===t.course.status?a("div",[t._v("课程已下架")]):t.course.parent_courses&&t.course.parent_courses.length&&t.course.parent_courses.some((function(t){return t.is_live}))?t._e():a("div",{staticClass:"u-group-item u-price",on:{click:t.showNoticePriceOrigin}},[t._v(t._s(t._f("price")(t.course.price))),t.course.price&&t.course.price<t.course.price_origin?a("span",{staticClass:"u-price-origin u-group-item"},[a("del",[t._v(t._s(t._f("price")(t.course.price_origin)))]),a("van-icon",{staticStyle:{"margin-left":"4px"},attrs:{name:"question-o"}})],1):t._e()])]),t.course.study_time?a("div",{staticClass:"m-progress"},[a("van-progress",{staticClass:"u-progress",attrs:{percentage:t._f("progress")(t.course.study_time,t.course.duration),"stroke-width":"6"}}),a("div",{staticClass:"u-value"},[t._v("已学"+t._s(Math.round(t.course.study_time/60))+"分钟")])],1):t._e(),a("div",{staticClass:"m-btns"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"manager-o"}}),t._v(" 讲师： "),t._l(t.course.masters,(function(e,n){return a("van-button",{key:n,staticClass:"u-btn",attrs:{size:"small",to:{name:"search",query:{keyword:e.name}}}},[t._v(" "+t._s(e.name)+" ")])}))],2),a("div",{staticClass:"m-btns"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"label-o"}}),t._v(" 标签： "),t._l(t.course.tags,(function(e,n){return a("van-button",{key:n,staticClass:"u-btn",attrs:{size:"small",to:{name:"search",query:{keyword:e}}}},[t._v(" "+t._s(e)+" ")])}))],2),a("div",{staticClass:"u-introduction"},[t._v(t._s(t.course.introduction))])]),a("van-tabs",{attrs:{sticky:"",animated:""},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"详情"}},[t.course.parent_courses&&t.course.parent_courses.length?a("div",{staticClass:"m-parents"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"cluster-o"}}),t._v(" 隶属系列课 ")],1),t._l(t.course.parent_courses,(function(t,e){return a("Course",{key:e,attrs:{course:t}})}))],2):t._e(),t.course.masters&&t.course.masters.length?a("div",{staticClass:"m-teachers"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"manager-o"}}),t._v(" 讲师介绍 ")],1),t._l(t.course.masters,(function(e,n){return a("router-link",{directives:[{name:"show",rawName:"v-show",value:n<4||t.showAllTeacher,expression:"index < 4 || showAllTeacher"}],key:n,staticClass:"m-teacher",attrs:{to:{name:"search",query:{keyword:e.name}}}},[a("van-image",{staticClass:"u-image",attrs:{width:"20vw",height:"20vw",src:t._f("url")(e.image),fit:"contain",round:""}}),a("div",{staticClass:"m-info"},[a("div",{staticClass:"u-name"},[t._v(t._s(e.name))]),a("div",{staticClass:"u-introduction",domProps:{innerHTML:t._s(e.introduction)}})])],1)})),t.course.masters.length>4?[t.showAllTeacher?a("div",{staticClass:"u-show-all",on:{click:function(e){t.showAllTeacher=!1}}},[t._v("收起")]):a("div",{staticClass:"u-show-all",on:{click:function(e){t.showAllTeacher=!0}}},[t._v("查看全部教师")])]:t._e()],2):t._e(),a("div",{staticClass:"m-content",domProps:{innerHTML:t._s(t.course.document)}})]),t.course.child_courses&&t.course.child_courses.length?a("van-tab",{attrs:{title:"目录"}},[a("van-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[t._l(t.course.child_courses,(function(e,n){return[e.child_courses&&e.child_courses.length?a("van-collapse-item",{key:n,attrs:{name:n}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"u-child-title-1"},[t._v(t._s(e.title))]),a("div",{staticClass:"m-masters van-ellipsis"},[t._v("讲师："+t._s(e.masters.map((function(t){return t.name})).join("、")))]),a("div",{staticClass:"m-groups f-child f-line"},[a("div",{staticClass:"u-item"},[t._v(" 难度："+t._s(t._f("difficulty")(e.difficulty))+" ")]),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"friends-o"}}),t._v(" "+t._s(e.study_count)+"人学习中 ")],1),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"clock-o"}}),t._v(" "+t._s(t._f("duration")(e.duration))+" ")],1)]),a("div",{staticClass:"u-child-introduction"},[t._v(t._s(e.introduction))]),3!==e.type?a("router-link",{staticClass:"u-child-url",attrs:{to:{name:"courseDetail",params:{id:e.id}}},nativeOn:{click:function(t){t.stopPropagation()}}},[t._v("查看详情")]):t._e()],1),t._l(e.child_courses,(function(e,n){return a("van-cell",{key:n,attrs:{to:{name:"courseStudy",params:{id:t.course.id,course:t.course,playId:e.id}},"is-link":"",center:""}},[a("div",{staticClass:"u-child-title-2",attrs:{slot:"title"},slot:"title"},[a("van-icon",{staticStyle:{"margin-right":"4px"},attrs:{name:"video-o",size:"16"}}),t._v(" "+t._s(e.title)+" ")],1),a("div",{attrs:{slot:"label"},slot:"label"},[a("div",{staticClass:"m-masters van-ellipsis"},[t._v("讲师："+t._s(e.masters.map((function(t){return t.name})).join("、")))]),a("div",{staticClass:"m-groups f-child f-line"},[a("div",{staticClass:"u-item"},[t._v(" 难度："+t._s(t._f("difficulty")(e.difficulty))+" ")]),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"friends-o"}}),t._v(" "+t._s(e.study_count)+"人学习中 ")],1),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"clock-o"}}),t._v(" "+t._s(t._f("duration")(e.duration))+" ")],1)]),t._v(" "+t._s(e.introduction)+" ")])])}))],2):a("van-cell",{key:n,attrs:{to:{name:"courseStudy",params:{id:t.course.id,course:t.course,playId:e.id}},"is-link":"",center:""}},[a("div",{staticClass:"u-child-title-2",attrs:{slot:"title"},slot:"title"},[a("van-icon",{staticStyle:{"margin-right":"4px"},attrs:{name:"video-o",size:"16"}}),t._v(" "+t._s(e.title)+" ")],1),a("div",{attrs:{slot:"label"},slot:"label"},[a("div",{staticClass:"m-masters van-ellipsis"},[t._v("讲师："+t._s(e.masters.map((function(t){return t.name})).join("、")))]),a("div",{staticClass:"m-groups f-child"},[a("div",{staticClass:"u-item"},[t._v(" 难度："+t._s(t._f("difficulty")(e.difficulty))+" ")]),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"friends-o"}}),t._v(" "+t._s(e.study_count)+"人学习中 ")],1),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"clock-o"}}),t._v(" "+t._s(t._f("duration")(e.duration))+" ")],1)]),a("div",[t._v(t._s(e.introduction))]),3!==e.type?a("router-link",{staticClass:"u-child-url",attrs:{to:{name:"courseDetail",params:{id:e.id}}},nativeOn:{click:function(t){t.stopPropagation()}}},[t._v("查看详情")]):t._e()],1)])]}))],2)],1):t._e(),t.course.recommend_courses&&t.course.recommend_courses.length?a("van-tab",{attrs:{title:"推荐"}},t._l(t.course.recommend_courses,(function(t,e){return a("Course",{key:e,attrs:{course:t}})})),1):t._e(),t.course.learn_paths&&t.course.learn_paths.length||t.course.papers&&t.course.papers.length?a("van-tab",{attrs:{title:"资料"}},[t.course.learn_paths&&t.course.learn_paths.length?a("div",{staticClass:"m-learn-paths"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"chart-trending-o"}}),t._v(" 相关学习路径 ")],1),t._l(t.course.learn_paths,(function(e,n){return a("a",{key:n,staticClass:"m-learn-path",attrs:{href:t._f("learnPathUrl")(e.id),target:"_blank",rel:"noopener noreferrer"}},[a("div",{staticClass:"m-learn-path-head"},[a("div",{staticClass:"m-initiator"},[a("van-image",{staticClass:"u-avatar",attrs:{width:"20px",height:"20px",src:t._f("url")(e.user.avatar,!0),fit:"contain",round:""}}),a("div",{staticClass:"u-name"},[t._v(t._s(e.user.nick_name))])],1),a("div",{staticClass:"u-time"},[t._v(t._s(t.$_moment(e.created_at).fromNow()))])]),a("div",{staticClass:"u-title"},[t._v(t._s(e.title))]),a("div",{staticClass:"u-content"},[t._v(t._s(e.content))]),a("div",{staticClass:"m-learn-path-foot"},[a("div",{staticClass:"m-number"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"chat-o"}}),a("div",{staticClass:"u-number"},[t._v(t._s(e.comment_number))])],1),a("div",{staticClass:"m-number",class:{"z-active":e.is_like}},[a("van-icon",{staticClass:"u-icon",attrs:{name:"good-job-o"}}),a("div",{staticClass:"u-number"},[t._v(t._s(e.like_number))])],1)])])}))],2):t._e(),t.course.papers_interpretation&&t.course.papers_interpretation.length?a("div",{staticClass:"m-papers"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"description"}}),t._v(" 解读论文 ")],1),t._l(t.course.papers_interpretation,(function(e,n){return a("a",{key:n,staticClass:"m-paper",attrs:{href:t._f("paperUrl")(e.uuid),target:"_blank",rel:"noopener noreferrer"}},[a("span",{staticClass:"u-title"},[t._v(" "+t._s(e.title)+" ")]),e.submitTime?a("span",{staticClass:"u-submit-time"},[t._v(" ["+t._s(t.$_moment(e.submitTime).year())+"] ")]):t._e(),a("span",{staticClass:"u-authors"},[t._v(" "+t._s(e.authors.join(", "))+" ")])])}))],2):t._e(),t.course.papers&&t.course.papers.length?a("div",{staticClass:"m-papers"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"description"}}),t._v(" 相关论文 ")],1),t._l(t.course.papers,(function(e,n){return a("a",{key:n,staticClass:"m-paper",attrs:{href:t._f("paperUrl")(e.uuid),target:"_blank",rel:"noopener noreferrer"}},[a("span",{staticClass:"u-title"},[t._v(" "+t._s(e.title)+" ")]),e.submitTime?a("span",{staticClass:"u-submit-time"},[t._v(" ["+t._s(t.$_moment(e.submitTime).year())+"] ")]):t._e(),a("span",{staticClass:"u-authors"},[t._v(" "+t._s(e.authors.join(", "))+" ")])])}))],2):t._e()]):t._e()],1),a("div",{staticClass:"m-footer"},[t.isLogin?[a("van-button",{staticClass:"u-collect",class:{"z-active":t.course.is_collect},attrs:{icon:t.course.is_collect?"like":"like-o",loading:t.loadingCollect},on:{click:t.collect}},[t._v(" 收藏 ")]),t.course.reservation_status?[2===t.course.type?[t.course.is_reservation?t.course.is_reservation?a("van-button",{staticClass:"u-btn",staticStyle:{"line-height":"1.2",padding:"10px","margin-right":"10px"},attrs:{type:"info",round:"",disabled:""}},[t._v("已预约系列课程")]):t._e():a("van-button",{staticClass:"u-btn",attrs:{type:"info",round:""},on:{click:function(e){return t.reservation()}}},[t._v("直播预约")])]:[t.course.is_reservation||1!==t.course.reservation_status?t.course.is_reservation||2!==t.course.reservation_status?t.course.is_reservation&&2===t.course.reservation_status?a("van-button",{staticClass:"u-btn",staticStyle:{padding:"10px","margin-right":"10px"},attrs:{type:"info",round:"",disabled:""}},[t._v("回放上线通知")]):t.course.is_reservation?a("van-button",{staticClass:"u-btn",staticStyle:{padding:"10px","margin-right":"10px"},attrs:{type:"info",round:"",disabled:""}},[t._v("已预约")]):t._e():a("van-button",{staticClass:"u-btn",attrs:{type:"info",round:""},on:{click:function(e){return t.reservation()}}},[t._v("回放上线通知")]):a("van-button",{staticClass:"u-btn",attrs:{type:"info",round:""},on:{click:function(e){return t.reservation()}}},[t._v("直播预约")])]]:t._e(),t.course.is_access?[a("van-button",{staticClass:"u-btn",attrs:{type:"info",to:{name:"courseStudy",params:{id:t.course.id,course:t.course}},round:""}},[t._v(" "+t._s(t.course.study_time?"继续学习":"开始学习")+" ")])]:-1===t.course.status?a("div",{staticClass:"u-course-undercarriage"},[t._v("课程已下架")]):[2===t.course.type&&t.course.child_courses&&t.course.child_courses[0]&&0===t.course.child_courses[0].price?a("van-button",{staticClass:"u-btn",attrs:{color:"#ec8a21",to:{name:"courseStudy",params:{id:t.course.id,course:t.course,playId:t.course.child_courses[0]}},round:""}},[t._v(" 试看第一节 ")]):t._e(),t.course.parent_courses&&t.course.parent_courses.length&&t.course.parent_courses.some((function(t){return t.is_live}))?a("van-button",{staticClass:"u-btn",staticStyle:{"margin-left":"8px"},attrs:{color:"#ec8a21",round:""},on:{click:t.goParentCourse}},[t._v(" 前往组课购买 ")]):a("van-button",{staticClass:"u-btn",staticStyle:{"margin-left":"8px"},attrs:{color:"#ec8a21",round:""},on:{click:t.buy}},[t._v(" 立即购买 ")])]]:a("van-button",{staticClass:"u-btn",attrs:{type:"info",icon:"user-o",round:""},on:{click:function(e){return t.changeLoginDialog(!0)}}},[t._v(" 登录 ")])],2),a("GoHome"),t.course.is_access?t._e():a("van-popup",{attrs:{position:"bottom"},model:{value:t.showPay,callback:function(e){t.showPay=e},expression:"showPay"}},[a("Pay",{attrs:{amount:t.course.price,"course-id":t.course.id},on:{paid:t.paid}})],1),t.course.packages&&t.course.packages.length?a("van-popup",{attrs:{position:"bottom"},model:{value:t.showPackages,callback:function(e){t.showPackages=e},expression:"showPackages"}},[a("van-cell",{staticClass:"f-vip",attrs:{size:"large",icon:"diamond",title:"开通VIP畅看全站课程","is-link":"",to:{name:"vip",query:Object.assign({},t.$route.query)}}}),a("div",{staticClass:"u-packages-tip"},[t._v("“打包购买”会自动减除已支付金额")]),t._l(t.course.packages,(function(e,n){return a("van-cell",{key:n,staticClass:"f-package",attrs:{title:e.name,value:t._f("price")(e.price/100),size:"large","is-link":"",center:""},on:{click:function(a){return t.openPayPackage(e)}},scopedSlots:t._u([{key:"label",fn:function(){return[a("div",[t._l(e.courses,(function(e,n){return a("div",{key:n,staticClass:"u-package-course"},[t._v(t._s(n+1)+". "+t._s(e.title))])})),a("div",{staticClass:"u-package-desc"},[a("del",[t._v("原价："+t._s(e.origin_price))]),a("van-badge",{attrs:{content:"优惠"}})],1)],2)]},proxy:!0}],null,!0)})})),a("van-cell",{attrs:{title:"单独购买",value:t._f("price")(t.course.price),size:"large","is-link":""},on:{click:function(e){t.showPay=!0}}})],2):t._e(),a("van-popup",{attrs:{position:"bottom"},model:{value:t.showPayPackage,callback:function(e){t.showPayPackage=e},expression:"showPayPackage"}},[t.packagePay?a("PayPackage",{attrs:{p:t.packagePay},on:{paid:t.paid}}):t._e()],1)]:t._e()],2)},aa=[],na=(a("13d5"),a("45fc"),a("e17f"),a("2241")),sa=(a("18e9"),a("471a")),oa=(a("342a"),a("1437")),ra=(a("5d17"),a("f9bd")),ia=(a("1075"),a("f600")),ca=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-go-home",on:{click:t.goHome}},[a("van-icon",{attrs:{name:"wap-home"}})],1)},ua=[],la={name:"goHome",methods:{goHome:function(){this.$router.push({name:"home"})}}},da=la,ma=(a("3cbc"),Object(st["a"])(da,ca,ua,!1,null,"b2cf9bd4",null)),pa=ma.exports,ha=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-pay"},[a("van-cell",{staticClass:"f-vip",attrs:{size:"large",icon:"diamond",title:"开通VIP畅看全站课程","is-link":"",to:{name:"vip",query:Object.assign({},t.$route.query)}}}),100*t.amount<=t.userPoint?a("van-cell",{staticClass:"f-point",attrs:{size:"large",icon:"gold-coin",title:"积分支付",label:"余额："+t.userPoint,value:Math.ceil(100*t.amount)+" ∫",center:"","is-link":""},on:{click:t.payByPoint}}):a("van-cell",{staticClass:"f-point",attrs:{size:"large",icon:"gold-coin",title:"积分支付",label:"余额："+t.userPoint,value:"积分不足，点击充值",center:"","is-link":"",to:{name:"points"}}}),a("van-cell",{staticClass:"f-wechat",attrs:{size:"large",icon:"wechat",title:"微信支付",value:t.amount+" 元","is-link":""},on:{click:function(e){return t.pay("wechat_mobile")}}}),t.$_isWechat?t._e():a("van-cell",{staticClass:"f-alipay",attrs:{size:"large",icon:"alipay",title:"支付宝支付",value:t.amount+" 元","is-link":""},on:{click:function(e){return t.pay("alipay_mobile")}}}),a("van-dialog",{attrs:{width:"280px","confirm-button-text":"支付完成","confirm-button-color":"#ec8a21","show-cancel-button":""},on:{confirm:function(e){return t.$emit("paid")},cancel:t.cancel},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[a("van-loading",{attrs:{color:"#ec8a21",size:"24px"}},[t._v("请在新窗口中完成支付")])],1)],1)},va=[],ya=function(t){return U.get("/courses/".concat(t,"?substr_len=70")).then((function(t){return t.data}))},fa=function(t){return U.post("/users/collect/courses/".concat(t)).then((function(t){return t.data}))},_a=function(t){return U.delete("/users/collect/courses/".concat(t)).then((function(t){return t.data}))},Ca=function(t,e){return U.get("/courses/".concat(t,"/video?device_id=").concat(localStorage.getItem("deviceId"),"&session_id=").concat(sessionStorage.getItem("sessionId"))+(e?"&parent_course_id=".concat(e):"")).then((function(t){return t.data}))},ga=function(t){return U.get("/course/".concat(t,"/subtitle/vtt"),{responseType:"text"}).then((function(t){return t.data}))},ba=function(t,e){return U.post("/courses/".concat(t,"/order"),{type:e,origin:3,from:g.state.from||void 0}).then((function(t){return t.data}))},wa=function(t,e,a){return U.put("/courses/".concat(e,"/rate"),{rate:t,parent_course_id:a}).then((function(t){return t.data}))},ka=function(t,e,a){return U.put("/courses/".concat(e,"/study"),{time:t,parent_course_id:a}).then((function(t){return t.data}))},Na=function(t){return U.post("courses/".concat(t,"/reservation"))},xa={detail:ya,collect:fa,uncollect:_a,playInfo:Ca,getVtt:ga,buy:ba,rate:wa,study:ka,reservation:Na},ja={name:"pay",props:{amount:{type:Number},courseId:{type:Number,default:void 0}},components:(A={},Object(c["a"])(A,Le["a"].name,Le["a"]),Object(c["a"])(A,ze["a"].name,ze["a"]),Object(c["a"])(A,Be["a"].name,Be["a"]),A),data:function(){return{show:!1,timer:""}},computed:{userPoint:function(){return this.$store.state.user.point}},beforeDestroy:function(){this.cancel()},methods:{pay:function(t){var e=this;this.$_isWechat&&"wechat_mobile"===t?this.payInWechat():xa.buy(this.courseId,t).then((function(a){"point"===t?(e.$store.commit("changeUserPoint",a.user_point),e.$Toast({message:"支付成功",position:"bottom"}),e.$emit("paid")):(e.startCheckPayStatus(a.oid),e.$_isApple?window.location.assign(a.url):window.open(a.url))}))},payByPoint:function(){var t=this;this.$Dialog.confirm({message:"确认支付".concat(Math.ceil(100*this.amount)+" ∫")}).then((function(){t.pay("point")})).catch((function(){}))},payInWechat:function(){var t=this;xa.buy(this.courseId,"wechat").then((function(e){window.wx.chooseWXPay(Object(i["a"])({},e,{timestamp:e.timeStamp,success:function(e){"chooseWXPay:ok"===e.errMsg?t.$emit("paid"):t.$Toast({message:e.errMsg,position:"bottom"})}}))}))},startCheckPayStatus:function(t){var e=this;this.show=!0,this.timer=setTimeout((function(){e.checkPayStatus(t)}),1e3)},checkPayStatus:function(t){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,C.isPaid(t,e.axiosCancelToken);case 2:n=a.sent,n.status?e.$emit("paid"):e.timer=setTimeout((function(){e.checkPayStatus(t)}),1e3);case 4:case"end":return a.stop()}}),a)})))()},cancel:function(){this.show=!1,this.axiosCancel("请求已取消"),this.createAxiosCancelToken(),clearTimeout(this.timer),this.timer=""}}},Pa=ja,$a=(a("823c"),a("cc86"),Object(st["a"])(Pa,ha,va,!1,null,"e6e32456",null)),Ta=$a.exports,Sa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-pay"},[a("van-cell",{staticClass:"f-vip",attrs:{size:"large",icon:"diamond",title:"开通VIP畅看全站课程","is-link":"",to:{name:"vip",query:Object.assign({},t.$route.query)}}}),t.p.price<=t.userPoint?a("van-cell",{staticClass:"f-point",attrs:{size:"large",icon:"gold-coin",title:"积分支付",label:"余额："+t.userPoint,value:t.p.price+" ∫",center:"","is-link":""},on:{click:t.payByPoint}}):a("van-cell",{staticClass:"f-point",attrs:{size:"large",icon:"gold-coin",title:"积分支付",label:"余额："+t.userPoint,value:"积分不足，点击充值",center:"","is-link":"",to:{name:"points"}}}),a("van-cell",{staticClass:"f-wechat",attrs:{size:"large",icon:"wechat",title:"微信支付",value:(t.p.price/100).toFixed(2)+" 元","is-link":""},on:{click:function(e){return t.pay("wechat_mobile")}}}),t.$_isWechat?t._e():a("van-cell",{staticClass:"f-alipay",attrs:{size:"large",icon:"alipay",title:"支付宝支付",value:(t.p.price/100).toFixed(2)+" 元","is-link":""},on:{click:function(e){return t.pay("alipay_mobile")}}}),a("van-dialog",{attrs:{width:"280px","confirm-button-text":"支付完成","confirm-button-color":"#ec8a21","show-cancel-button":""},on:{confirm:function(e){return t.$emit("paid")},cancel:t.cancel},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[a("van-loading",{attrs:{color:"#ec8a21",size:"24px"}},[t._v("请在新窗口中完成支付")])],1)],1)},Ia=[],Oa={buy:function(t,e){return U.post("/packages/".concat(t,"/order"),{type:e,origin:3,from:g.state.from||void 0}).then((function(t){return t.data}))}},La={name:"PayPackage",props:{p:{required:!0}},components:(z={},Object(c["a"])(z,Le["a"].name,Le["a"]),Object(c["a"])(z,ze["a"].name,ze["a"]),Object(c["a"])(z,Be["a"].name,Be["a"]),z),data:function(){return{show:!1,timer:""}},computed:{userPoint:function(){return this.$store.state.user.point}},beforeDestroy:function(){this.cancel()},methods:{pay:function(t){var e=this;this.$_isWechat&&"wechat_mobile"===t?this.payInWechat():Oa.buy(this.p.id,t).then((function(a){"point"===t?(e.$store.commit("changeUserPoint",a.user_point),e.$Toast({message:"支付成功",position:"bottom"}),e.$emit("paid")):(e.startCheckPayStatus(a.oid),e.$_isApple?window.location.assign(a.url):window.open(a.url))}))},payByPoint:function(){var t=this;this.$Dialog.confirm({message:"确认支付".concat(this.p.price+" ∫")}).then((function(){t.pay("point")})).catch((function(){}))},payInWechat:function(){var t=this;Oa.buy(this.p.id,"wechat").then((function(e){window.wx.chooseWXPay(Object(i["a"])({},e,{timestamp:e.timeStamp,success:function(e){"chooseWXPay:ok"===e.errMsg?t.$emit("paid"):t.$Toast({message:e.errMsg,position:"bottom"})}}))}))},startCheckPayStatus:function(t){var e=this;this.show=!0,this.timer=setTimeout((function(){e.checkPayStatus(t)}),1e3)},checkPayStatus:function(t){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,C.isPaid(t,e.axiosCancelToken);case 2:n=a.sent,n.status?e.$emit("paid"):e.timer=setTimeout((function(){e.checkPayStatus(t)}),1e3);case 4:case"end":return a.stop()}}),a)})))()},cancel:function(){this.show=!1,this.axiosCancel("请求已取消"),this.createAxiosCancelToken(),clearTimeout(this.timer),this.timer=""}}},Aa=La,za=(a("9b6e"),a("fadf"),Object(st["a"])(Aa,Sa,Ia,!1,null,"3e27c76d",null)),Ea=za.exports,qa={name:"courseDetail",components:(E={},Object(c["a"])(E,ia["a"].name,ia["a"]),Object(c["a"])(E,At["a"].name,At["a"]),Object(c["a"])(E,zt["a"].name,zt["a"]),Object(c["a"])(E,ra["a"].name,ra["a"]),Object(c["a"])(E,oa["a"].name,oa["a"]),Object(c["a"])(E,ze["a"].name,ze["a"]),Object(c["a"])(E,u["a"].name,u["a"]),Object(c["a"])(E,sa["a"].name,sa["a"]),Object(c["a"])(E,"Course",Wt),Object(c["a"])(E,"GoHome",pa),Object(c["a"])(E,"Pay",Ta),Object(c["a"])(E,"PayPackage",Ea),E),filters:{learnPathUrl:function(t){return("campus.swarma.org"!==window.location.hostname?"https://test.pattern.swarma.org":"https://pattern.swarma.org")+"/path?id=".concat(t)},paperUrl:function(t){return("campus.swarma.org"!==window.location.hostname?"https://test.pattern.swarma.org":"https://pattern.swarma.org")+"/paper?id=".concat(t)}},data:function(){return{course:"",active:0,loadingCollect:!1,activeNames:[],showPay:!1,showAllTeacher:!1,showPackages:!1,packagePay:"",showPayPackage:!1}},computed:Object(i["a"])({},Object(p["d"])(["isLogin"]),{courseId:function(){return this.$route.params.id}}),watch:{courseId:function(){this.load()},isLogin:function(){this.load()}},mounted:function(){this.load()},methods:Object(i["a"])({back:function(){this.$router.back()},load:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$Toast.loading({message:"加载中...",forbidClick:!0,duration:0}),t.course="",t.active=0,t.activeNames=[],e.next=6,xa.detail(t.courseId);case 6:a=e.sent,t.$Toast.clear(!0),1===a.type&&a.study_group_issue_id?na["a"].alert({message:"集智读书会内容已迁移至“集智斑图”网站，即将跳转继续访问"}).then((function(){window.location.assign("//".concat(t.$_isTest?"test.":"","pattern.swarma.org/mobile/study_group_issue/").concat(a.study_group_issue_id))})):2===a.type&&a.study_group_id?na["a"].alert({message:"集智读书会内容已迁移至“集智斑图”网站，即将跳转继续访问"}).then((function(){window.location.assign("//".concat(t.$_isTest?"test.":"","pattern.swarma.org/mobile/study_group/").concat(a.study_group_id))})):3===a.type&&a.parent_courses&&a.parent_courses[0]?t.$router.replace({name:"courseDetail",params:{id:a.parent_courses[0].id}}):(a.packages&&a.packages.length&&a.packages.forEach((function(e){console.log(e),e.origin_price=t.$options.filters.price(e.courses.map((function(t){return t.price})).reduce((function(t,e){return t+e})))})),t.course=a,document.title=t.course.title,t.$_isWechat&&window.wx.ready((function(){t.$_updateWxShareData(t.course.title,t.course.introduction,t.$options.filters.url(t.course.image))})));case 9:case"end":return e.stop()}}),e)})))()},collect:function(){var t=this;this.loadingCollect=!0;var e=this.course.is_collect?xa.uncollect:xa.collect;e(this.course.id).then((function(){t.loadingCollect=!1,t.course.is_collect=!t.course.is_collect})).catch((function(){t.loadingCollect=!1}))},goParentCourse:function(){var t=this;this.course.parent_courses.some((function(e){if(e.is_live)return t.$router.push({name:"courseDetail",params:{id:e.id}}),!0}))},buy:function(){this.course.packages&&this.course.packages.length?this.showPackages=!0:this.showPay=!0},paid:function(){this.$router.push({name:"courseStudy",params:{id:this.course.id}})},showNoticePriceOrigin:function(){this.course.price&&this.course.price<this.course.price_origin&&na["a"].alert({message:"本课程原价".concat(this.course.price_origin,"元\n减去已购课程后还需付").concat(this.course.price,"元")})},openPayPackage:function(t){this.showPayPackage=!0,this.packagePay=t},reservation:function(){var t=this;this.isLogin?xa.reservation(this.course.id).then((function(e){e.error?na["a"].alert({message:e.message}):(t.course.is_reservation=!0,na["a"].alert({message:"预约成功"}))})):na["a"].alert({message:"请先登录>_< "})}},Object(p["c"])(["changeLoginDialog"]))},Da=qa,Ma=(a("1681"),a("0f92"),Object(st["a"])(Da,ea,aa,!1,null,"2a6cd1f0",null)),Ra=Ma.exports,Va=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-course-study"},[a("div",{ref:"player",staticClass:"m-player",style:t.overlayBackgroundStyle},[t.showLiveOverlay?a("div",{staticClass:"playback-overlay"},[a("div",{staticClass:"playback-overlay__panel playback-overlay__panel--message"},[a("div",{staticClass:"playback-overlay__lesson-title"},[t._v(" "+t._s(t.currentCourse?t.currentCourse.title:"")+" ")]),a("div",{staticClass:"playback-overlay__lesson-time"},[t._v(" "+t._s(t.liveSessionMessage)+" ")]),t.showParticipationApproachBlock?a("CourseParticipationApproach",{staticClass:"playback-overlay__participation",attrs:{approach:t.participationApproach}}):t._e()],1)]):t._e()]),t.needBuy?a("div",{staticClass:"u-need-buy"},[t._v("请购买课程")]):t._e(),t.loading?t._e():[a("div",{staticClass:"m-course-current"},[a("div",{staticClass:"u-title"},[a("van-button",{staticClass:"u-back",attrs:{icon:"arrow-left",square:""},on:{click:t.back}},[t._v(" 返回 ")]),t._v(" "+t._s(t.currentCourse.title)+" ")],1),a("div",{staticClass:"m-groups"},[a("div",{staticClass:"u-item"},[t._v(" 难度："+t._s(t._f("difficulty")(t.currentCourse.difficulty))+" ")]),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"friends-o"}}),t._v(" "+t._s(t.currentCourse.study_count)+"人学习中 ")],1),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"clock-o"}}),t._v(" "+t._s(t._f("duration")(t.currentCourse.duration))+" ")],1)]),a("div",{staticClass:"u-introduction"},[t._v(t._s(t.currentCourse.introduction))])]),a("van-tabs",{attrs:{sticky:"",animated:""},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[t.parentCourse.child_courses&&t.parentCourse.child_courses.length?a("van-tab",{attrs:{title:"目录"}},[a("van-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[t._l(t.parentCourse.child_courses,(function(e,n){return[e.child_courses&&e.child_courses.length?a("van-collapse-item",{key:"collapse-"+e.id,class:{"z-playing-collapse":t.playingCollapseIndex===n},attrs:{name:n}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"u-child-title-1"},[t._v(t._s(e.title))]),a("div",{staticClass:"m-groups"},[a("div",{staticClass:"u-item"},[t._v(" 难度："+t._s(t._f("difficulty")(e.difficulty))+" ")]),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"friends-o"}}),t._v(" "+t._s(e.study_count)+"人学习中 ")],1),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"clock-o"}}),t._v(" "+t._s(t._f("duration")(e.duration))+" ")],1)]),a("div",{staticClass:"u-child-introduction"},[t._v(t._s(e.introduction))]),3!==e.type?a("router-link",{staticClass:"u-child-url",attrs:{to:{name:"courseDetail",params:{id:e.id}}}},[t._v("查看详情")]):t._e()],1),t._l(e.child_courses,(function(e,n){return a("van-cell",{key:n,class:{"z-playing":t.currentCourse&&t.currentCourse.id===e.id},attrs:{"is-link":"",center:""},on:{click:function(a){return t.load(e.id)}}},[a("div",{staticClass:"u-child-title-2",attrs:{slot:"title"},slot:"title"},[a("van-icon",{staticStyle:{"margin-right":"4px"},attrs:{name:"video-o",size:"16"}}),t._v(" "+t._s(e.title)+" ")],1),a("div",{attrs:{slot:"label"},slot:"label"},[a("div",{staticClass:"m-groups"},[a("div",{staticClass:"u-item"},[t._v(" 难度："+t._s(t._f("difficulty")(e.difficulty))+" ")]),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"friends-o"}}),t._v(" "+t._s(e.study_count)+"人学习中 ")],1),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"clock-o"}}),t._v(" "+t._s(t._f("duration")(e.duration))+" ")],1)]),t._v(" "+t._s(e.introduction)+" ")])])}))],2):a("van-cell",{key:"cell-"+e.id,class:{"z-playing":t.currentCourse&&t.currentCourse.id===e.id},attrs:{"is-link":"",center:""},on:{click:function(a){return t.load(e.id)}}},[a("div",{staticClass:"u-child-title-2",attrs:{slot:"title"},slot:"title"},[a("van-icon",{staticStyle:{"margin-right":"4px"},attrs:{name:"video-o",size:"16"}}),t._v(" "+t._s(e.title)+" ")],1),a("div",{attrs:{slot:"label"},slot:"label"},[a("div",{staticClass:"m-groups"},[a("div",{staticClass:"u-item"},[t._v(" 难度："+t._s(t._f("difficulty")(e.difficulty))+" ")]),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"friends-o"}}),t._v(" "+t._s(e.study_count)+"人学习中 ")],1),a("div",{staticClass:"u-item"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"clock-o"}}),t._v(" "+t._s(t._f("duration")(e.duration))+" ")],1)]),t._v(" "+t._s(e.introduction)+" ")])])]}))],2)],1):t._e(),a("van-tab",{attrs:{title:"详情"}},[t.parentCourse?a("div",{staticClass:"m-parents"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"cluster-o"}}),t._v(" 隶属课程 ")],1),a("Course",{attrs:{course:t.parentCourse}})],1):t.currentCourse.parent_courses&&t.currentCourse.parent_courses.length?a("div",{staticClass:"m-parents"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"cluster-o"}}),t._v(" 隶属课程 ")],1),t._l(t.currentCourse.parent_courses,(function(t,e){return a("Course",{key:e,attrs:{course:t}})}))],2):t._e(),t.currentCourse.masters&&t.currentCourse.masters.length?a("div",{staticClass:"m-teachers"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"manager-o"}}),t._v(" 讲师介绍 ")],1),t._l(t.currentCourse.masters,(function(e,n){return a("router-link",{directives:[{name:"show",rawName:"v-show",value:n<4||t.showAllTeacher,expression:"index < 4 || showAllTeacher"}],key:n,staticClass:"m-teacher",attrs:{to:{name:"search",query:{keyword:e.name}}}},[a("van-image",{staticClass:"u-image",attrs:{width:"25vw",height:"25vw",src:t._f("url")(e.image),fit:"contain",round:""}}),a("div",{staticClass:"m-info"},[a("div",{staticClass:"u-name"},[t._v(t._s(e.name))]),a("div",{staticClass:"u-introduction",domProps:{innerHTML:t._s(e.introduction)}})])],1)})),t.currentCourse.masters.length>4?[t.showAllTeacher?a("div",{staticClass:"u-show-all",on:{click:function(e){t.showAllTeacher=!1}}},[t._v("收起")]):a("div",{staticClass:"u-show-all",on:{click:function(e){t.showAllTeacher=!0}}},[t._v("查看全部教师")])]:t._e()],2):t.parentCourse.masters&&t.parentCourse.masters.length?a("div",{staticClass:"m-teachers"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"manager-o"}}),t._v(" 讲师介绍 ")],1),t._l(t.parentCourse.masters,(function(e,n){return a("router-link",{directives:[{name:"show",rawName:"v-show",value:n<4||t.showAllTeacher,expression:"index < 4 || showAllTeacher"}],key:n,staticClass:"m-teacher",attrs:{to:{name:"search",query:{keyword:e.name}}}},[a("van-image",{staticClass:"u-image",attrs:{width:"25vw",height:"25vw",src:t._f("url")(e.image),fit:"contain",round:""}}),a("div",{staticClass:"m-info"},[a("div",{staticClass:"u-name"},[t._v(t._s(e.name))]),a("div",{staticClass:"u-introduction",domProps:{innerHTML:t._s(e.introduction)}})])],1)})),t.parentCourse.masters.length>4?[t.showAllTeacher?a("div",{staticClass:"u-show-all",on:{click:function(e){t.showAllTeacher=!1}}},[t._v("收起")]):a("div",{staticClass:"u-show-all",on:{click:function(e){t.showAllTeacher=!0}}},[t._v("查看全部教师")])]:t._e()],2):t._e(),a("div",{staticClass:"m-content",domProps:{innerHTML:t._s(t.playCourse.document)}})]),t.currentCourse.recommend_courses&&t.currentCourse.recommend_courses.length||t.parentCourse.recommend_courses&&t.parentCourse.recommend_courses.length?a("van-tab",{attrs:{title:"推荐"}},[t.currentCourse.recommend_courses&&t.currentCourse.recommend_courses.length?t._l(t.currentCourse.recommend_courses,(function(t,e){return a("Course",{key:e,attrs:{course:t}})})):t.parentCourse.recommend_courses&&t.parentCourse.recommend_courses.length?t._l(t.parentCourse.recommend_courses,(function(t,e){return a("Course",{key:e,attrs:{course:t}})})):t._e()],2):t._e(),t.currentCourse.learn_paths&&t.currentCourse.learn_paths.length||t.currentCourse.papers&&t.currentCourse.papers.length||t.parentCourse.learn_paths&&t.parentCourse.learn_paths.length||t.parentCourse.papers&&t.parentCourse.papers.length?a("van-tab",{attrs:{title:"资料"}},[t.currentCourse.learn_paths&&t.currentCourse.learn_paths.length?a("div",{staticClass:"m-learn-paths"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"chart-trending-o"}}),t._v(" 相关学习路径 ")],1),t._l(t.currentCourse.learn_paths,(function(e,n){return a("a",{key:n,staticClass:"m-learn-path",attrs:{href:t._f("learnPathUrl")(e.id),target:"_blank",rel:"noopener noreferrer"}},[a("div",{staticClass:"m-learn-path-head"},[a("div",{staticClass:"m-initiator"},[a("van-image",{staticClass:"u-avatar",attrs:{width:"20px",height:"20px",src:t._f("url")(e.user.avatar,!0),fit:"contain",round:""}}),a("div",{staticClass:"u-name"},[t._v(t._s(e.user.nick_name))])],1),a("div",{staticClass:"u-time"},[t._v(t._s(t.$_moment(e.created_at).fromNow()))])]),a("div",{staticClass:"u-title"},[t._v(t._s(e.title))]),a("div",{staticClass:"u-content"},[t._v(t._s(e.content))]),a("div",{staticClass:"m-learn-path-foot"},[a("div",{staticClass:"m-number"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"chat-o"}}),a("div",{staticClass:"u-number"},[t._v(t._s(e.comment_number))])],1),a("div",{staticClass:"m-number",class:{"z-active":e.is_like}},[a("van-icon",{staticClass:"u-icon",attrs:{name:"good-job-o"}}),a("div",{staticClass:"u-number"},[t._v(t._s(e.like_number))])],1)])])}))],2):t.parentCourse.learn_paths&&t.parentCourse.learn_paths.length?a("div",{staticClass:"m-learn-paths"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"chart-trending-o"}}),t._v(" 相关学习路径 ")],1),t._l(t.parentCourse.learn_paths,(function(e,n){return a("a",{key:n,staticClass:"m-learn-path",attrs:{href:t._f("learnPathUrl")(e.id),target:"_blank",rel:"noopener noreferrer"}},[a("div",{staticClass:"m-learn-path-head"},[a("div",{staticClass:"m-initiator"},[a("van-image",{staticClass:"u-avatar",attrs:{width:"20px",height:"20px",src:t._f("url")(e.user.avatar,!0),fit:"contain",round:""}}),a("div",{staticClass:"u-name"},[t._v(t._s(e.user.nick_name))])],1),a("div",{staticClass:"u-time"},[t._v(t._s(t.$_moment(e.created_at).fromNow()))])]),a("div",{staticClass:"u-title"},[t._v(t._s(e.title))]),a("div",{staticClass:"u-content"},[t._v(t._s(e.content))]),a("div",{staticClass:"m-learn-path-foot"},[a("div",{staticClass:"m-number"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"chat-o"}}),a("div",{staticClass:"u-number"},[t._v(t._s(e.comment_number))])],1),a("div",{staticClass:"m-number",class:{"z-active":e.is_like}},[a("van-icon",{staticClass:"u-icon",attrs:{name:"good-job-o"}}),a("div",{staticClass:"u-number"},[t._v(t._s(e.like_number))])],1)])])}))],2):t._e(),t.currentCourse.papers_interpretation&&t.currentCourse.papers_interpretation.length?a("div",{staticClass:"m-papers"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"description"}}),t._v(" 解读论文 ")],1),t._l(t.currentCourse.papers_interpretation,(function(e,n){return a("a",{key:n,staticClass:"m-paper",attrs:{href:t._f("paperUrl")(e.uuid),target:"_blank",rel:"noopener noreferrer"}},[a("span",{staticClass:"u-title"},[t._v(" "+t._s(e.title)+" ")]),e.submitTime?a("span",{staticClass:"u-submit-time"},[t._v(" ["+t._s(t.$_moment(e.submitTime).year())+"] ")]):t._e(),a("span",{staticClass:"u-authors"},[t._v(" "+t._s(e.authors.join(", "))+" ")])])}))],2):t._e(),t.parentCourse.papers_interpretation&&t.parentCourse.papers_interpretation.length?a("div",{staticClass:"m-papers"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"description"}}),t._v(" 解读论文 ")],1),t._l(t.parentCourse.papers_interpretation,(function(e,n){return a("a",{key:n,staticClass:"m-paper",attrs:{href:t._f("paperUrl")(e.uuid),target:"_blank",rel:"noopener noreferrer"}},[a("span",{staticClass:"u-title"},[t._v(" "+t._s(e.title)+" ")]),e.submitTime?a("span",{staticClass:"u-submit-time"},[t._v(" ["+t._s(t.$_moment(e.submitTime).year())+"] ")]):t._e(),a("span",{staticClass:"u-authors"},[t._v(" "+t._s(e.authors.join(", "))+" ")])])}))],2):t._e(),t.currentCourse.papers&&t.currentCourse.papers.length?a("div",{staticClass:"m-papers"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"description"}}),t._v(" 相关论文 ")],1),t._l(t.currentCourse.papers,(function(e,n){return a("a",{key:n,staticClass:"m-paper",attrs:{href:t._f("paperUrl")(e.uuid),target:"_blank",rel:"noopener noreferrer"}},[a("span",{staticClass:"u-title"},[t._v(" "+t._s(e.title)+" ")]),e.submitTime?a("span",{staticClass:"u-submit-time"},[t._v(" ["+t._s(t.$_moment(e.submitTime).year())+"] ")]):t._e(),a("span",{staticClass:"u-authors"},[t._v(" "+t._s(e.authors.join(", "))+" ")])])}))],2):t._e(),t.parentCourse.papers&&t.parentCourse.papers.length?a("div",{staticClass:"m-papers"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticClass:"u-icon",attrs:{name:"description"}}),t._v(" 相关论文 ")],1),t._l(t.parentCourse.papers,(function(e,n){return a("a",{key:n,staticClass:"m-paper",attrs:{href:t._f("paperUrl")(e.uuid),target:"_blank",rel:"noopener noreferrer"}},[a("span",{staticClass:"u-title"},[t._v(" "+t._s(e.title)+" ")]),e.submitTime?a("span",{staticClass:"u-submit-time"},[t._v(" ["+t._s(t.$_moment(e.submitTime).year())+"] ")]):t._e(),a("span",{staticClass:"u-authors"},[t._v(" "+t._s(e.authors.join(", "))+" ")])])}))],2):t._e()]):t._e()],1),a("div",{staticClass:"m-footer"},[a("van-button",{staticClass:"u-collect",class:{"z-active":(t.parentCourse?t.parentCourse:t.currentCourse).is_collect},attrs:{icon:(t.parentCourse?t.parentCourse:t.currentCourse).is_collect?"like":"like-o",loading:t.loadingCollect},on:{click:t.collect}},[t._v(" 收藏 ")]),(t.parentCourse?t.parentCourse:t.currentCourse).is_access?t._e():[-1!==(t.parentCourse?t.parentCourse:t.currentCourse).status?[t.parentCourse&&t.parentCourse.parent_courses&&t.parentCourse.parent_courses.length&&t.parentCourse.parent_courses.some((function(t){return t.is_live}))||t.currentCourse&&t.currentCourse.parent_courses&&t.currentCourse.parent_courses.length&&t.currentCourse.parent_courses.some((function(t){return t.is_live}))?a("van-button",{staticClass:"u-btn",staticStyle:{"margin-left":"8px"},attrs:{color:"#ec8a21",round:""},on:{click:t.goParentCourse}},[t._v(" 前往组课购买 ")]):a("van-button",{staticClass:"u-btn",staticStyle:{"margin-left":"8px"},attrs:{color:"#ec8a21",round:""},on:{click:t.buy}},[t._v(" 立即购买 ")])]:a("div",{staticClass:"u-course-undercarriage"},[t._v("课程已下架")])]],2),a("GoHome"),(t.parentCourse?t.parentCourse:t.currentCourse).is_access?t._e():a("van-popup",{attrs:{position:"bottom"},model:{value:t.showPay,callback:function(e){t.showPay=e},expression:"showPay"}},[a("Pay",{attrs:{amount:(t.parentCourse?t.parentCourse:t.currentCourse).price,"course-id":(t.parentCourse?t.parentCourse:t.currentCourse).id},on:{paid:t.paid}})],1)]],2)},Ba=[],Ua=(a("c740"),a("9129"),a("53ca")),Wa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a(t.wrapperTag,t._b({tag:"component",staticClass:"course-participation-approach",class:{"is-link":t.hasUrl}},"component",t.wrapperAttrs,!1),["none"===t.normalized.kind?[a("span",{staticClass:"approach-text"},[t._v("暂无直播参与信息")])]:"meeting"===t.normalized.kind?[a("div",{staticClass:"approach-label"},[t._v(t._s(t.normalized.label))]),t.normalized.meetingId?a("div",{staticClass:"approach-meeting-id",class:{"approach-link":t.hasUrl}},[t._v(" "+t._s(t.normalized.meetingId)+" ")]):a("div",{staticClass:"approach-placeholder"},[t._v("直播间信息待公布")]),t.normalized.password?a("div",{staticClass:"approach-password"},[t._v(" 会议密码 "+t._s(t.normalized.password)+" ")]):t._e()]:"link"===t.normalized.kind?[a("span",{staticClass:"approach-link"},[t._v(t._s(t.normalized.label))])]:"text"===t.normalized.kind?[a("span",{staticClass:"approach-text"},[t._v(t._s(t.normalized.text))])]:t._e()],2)},Fa=[],Ga=(a("a4d3"),a("e01a"),a("498a"),a("9911"),{name:"CourseParticipationApproach",props:{approach:{type:[Object,String],required:!0}},computed:{normalized:function(){var t=this.approach;if(!t)return{kind:"none"};if("string"===typeof t){var e=t.trim();return e?{kind:"text",text:e}:{kind:"none"}}var a=Number(void 0!==t.type?t.type:NaN),n=t.meeting_id||t.meetingId||t.content||"",s=t.url||t.link||"",o=t.password||t.passcode||"",r=t.content||t.description||t.label||"";switch(a){case 0:return{kind:"none"};case 1:case 6:return{kind:"meeting",label:1===a?"腾讯会议 ID（点击加入）":"Zoom 会议 ID（点击加入）",meetingId:n,url:s,password:o};case 2:case 3:return{kind:"link",label:2===a?"集智俱乐部 B 站直播间":"集智学园 B 站直播间",url:s||(2===a?"https://live.bilibili.com/8091531":"https://live.bilibili.com/6782735")};case 4:return{kind:"text",text:"请前往集智俱乐部视频号观看"};case 5:return{kind:"text",text:"请前往集智学园视频号观看"};default:return s?{kind:"link",label:r||"点击查看参与方式",url:s}:r?{kind:"text",text:r}:{kind:"none"}}},hasUrl:function(){return Boolean(this.normalized.url)},wrapperTag:function(){return this.hasUrl?"a":"div"},wrapperAttrs:function(){return this.hasUrl?{href:this.normalized.url,target:"_blank",rel:"noopener"}:{}}}}),Ha=Ga,Ka=(a("4616"),Object(st["a"])(Ha,Wa,Fa,!1,null,"b39a6116",null)),Ja=Ka.exports,Qa=(a("eccb"),a("f7a5")),Xa=a.n(Qa),Za=(a("b680"),a("c1df")),Ya=a.n(Za),tn=function(t){return t?Ya()(t).format("YYYY-MM-DD HH:mm:ss"):""},en=function(t,e){try{var a=new URL(t);return a.href}catch(s){var n="//qiniu.swarma.org/";return e&&(n="//qiniu.pattern.swarma.org/"),n+t}},an=function(t){var e=t%60,a=(t-e)/60;return(a?a+"小时":"")+e+"分钟"},nn=function(t){return t?"￥".concat(t.toFixed(2)):"免费"},sn=function(t){return t<2?"初级":t>4?"进阶":"中级"},on=function(t,e){var a=Math.ceil(100*t/60/e);return a>100?100:a},rn={name:"courseStudy",components:(q={},Object(c["a"])(q,At["a"].name,At["a"]),Object(c["a"])(q,zt["a"].name,zt["a"]),Object(c["a"])(q,ra["a"].name,ra["a"]),Object(c["a"])(q,oa["a"].name,oa["a"]),Object(c["a"])(q,ze["a"].name,ze["a"]),Object(c["a"])(q,u["a"].name,u["a"]),Object(c["a"])(q,"Course",Wt),Object(c["a"])(q,"GoHome",pa),Object(c["a"])(q,"Pay",Ta),Object(c["a"])(q,"CourseParticipationApproach",Ja),q),filters:{learnPathUrl:function(t){return("campus.swarma.org"!==window.location.hostname?"https://test.pattern.swarma.org":"https://pattern.swarma.org")+"/path?id=".concat(t)},paperUrl:function(t){return("campus.swarma.org"!==window.location.hostname?"https://test.pattern.swarma.org":"https://pattern.swarma.org")+"/paper?id=".concat(t)}},data:function(){return{loading:!0,parentCourse:"",currentCourse:"",currentIndex:"",playCourse:"",active:0,activeNames:[],loadingCollect:!1,showPay:!1,showAllTeacher:!1,updateTimer:"",actionTimer:"",needBuy:!1,participationApproach:"",showLiveOverlay:!1,sessionInfo:null,now:new Date,liveStatusTimer:null,currentVttBlobUrl:""}},computed:{playingCollapseIndex:function(){var t=this;if(!this.currentCourse||!this.parentCourse)return-1;for(var e=0;e<this.parentCourse.child_courses.length;e++){var a=this.parentCourse.child_courses[e];if(a.child_courses&&a.child_courses.length){var n=a.child_courses.some((function(e){return e.id===t.currentCourse.id}));if(n)return e}}return-1},overlayBackgroundStyle:function(){if(!this.showLiveOverlay)return{};var t=this.currentCourse&&this.currentCourse.image||this.parentCourse&&this.parentCourse.image;if(t){var e=this.$options.filters.url(t);return{display:"flex",alignItems:"center",justifyContent:"center",backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url(".concat(e,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}return{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#000"}},showParticipationApproachBlock:function(){return!!this.participationApproach&&(!this.sessionInfo||!this.sessionInfo.endAt||this.now<this.sessionInfo.endAt)},liveSessionMessage:function(){var t=this.now instanceof Date?this.now:new Date;if(this.sessionInfo){var e=this.sessionInfo,a=e.startAt,n=e.endAt,s=e.isCurrent,o=a?tn(a):"";if(s&&(!n||t<=n))return"正在直播中";if(a&&t<a)return o?"".concat(o," 开始直播"):"直播即将开始";if(a&&(!n||t<=n))return"正在直播中";if(n&&t>n)return"直播已结束  视频加紧制作中"}return this.participationApproach?"直播信息待公布":"暂无直播信息"}},watch:{$route:function(t){this.load(t.params.playId)}},mounted:function(){var t=this;this.$store.state.isLogin||this.$router.push({name:"courseDetail",params:{id:this.$route.params.id}}),this.load(this.$route.params.playId),this.actionTimer=setInterval((function(){t.uploadActions()}),3e4)},beforeDestroy:function(){clearInterval(this.updateTimer),this.player&&(this.updateStudyTime(),this.player.destroy(),delete this.player),this.revokeVttBlobUrl(),clearInterval(this.actionTimer),this.uploadActions(),this.updateTimer="",this.stopLiveStatusTimer()},methods:Object(i["a"])({back:function(){this.$router.back()},revokeVttBlobUrl:function(){this.currentVttBlobUrl&&(URL.revokeObjectURL(this.currentVttBlobUrl),this.currentVttBlobUrl="")},findIndex:function(t){var e=!1;if(!this.parentCourse.child_courses||!this.parentCourse.child_courses.length)throw this.$Toast.fail("未找到相匹配的子课"),new Error("未找到相匹配的子课");for(var a=0;a<this.parentCourse.child_courses.length;a++){var n=this.parentCourse.child_courses[a];if(n.child_courses&&n.child_courses.length){for(var s=0;s<n.child_courses.length;s++)if(n.child_courses[s].id===t)return this.currentIndex="".concat(a,"-").concat(s),void(this.currentCourse=n.child_courses[s]);0===a&&(e=!0)}if(n.id===t)return n.child_courses&&n.child_courses.length?(this.currentIndex="".concat(a,"-0"),void(this.currentCourse=n.child_courses[0])):(this.currentIndex="".concat(a),void(this.currentCourse=n))}e?(this.currentIndex="0-0",this.currentCourse=this.parentCourse.child_courses[0].child_courses[0]):(this.currentIndex="0",this.currentCourse=this.parentCourse.child_courses[0])},load:function(t,e){var a=this;return Object(n["a"])(regeneratorRuntime.mark((function n(){var s,o,r,c,u,l,d,m;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(s=sessionStorage.getItem("playbackSpeed")||1,a.participationApproach="",a.sessionInfo=null,a.showLiveOverlay=!1,a.stopLiveStatusTimer(),a.player&&(a.updateStudyTime(),clearInterval(a.updateTimer),a.updateTimer="",console.log("destroy"),a.player.destroy(),a.revokeVttBlobUrl(),a.loading=!0,a.currentCourse="",e||(a.currentIndex=""),a.playCourse=""),console.log("start loading"),a.$Toast.loading({message:"加载中...",forbidClick:!0,duration:0}),!a.$route.params.course||a.$route.params.course.id!==a.$route.params.id){n.next=12;break}o=a.$route.params.course,n.next=15;break;case 12:return n.next=14,xa.detail(a.$route.params.id);case 14:o=n.sent;case 15:return 1===o.type?o.study_group_issue_id&&na["a"].alert({message:"集智读书会内容已迁移至“集智斑图”网站，即将跳转继续访问"}).then((function(){window.location.assign("//".concat(a.$_isTest?"test.":"","pattern.swarma.org/mobile/study_group_issue/").concat(o.study_group_issue_id))})):2===o.type&&o.study_group_id&&na["a"].alert({message:"集智读书会内容已迁移至“集智斑图”网站，即将跳转继续访问"}).then((function(){window.location.assign("//".concat(a.$_isTest?"test.":"","pattern.swarma.org/mobile/study_group/").concat(o.study_group_id))})),t?t===o.id?a.currentCourse=o:(a.parentCourse=o,e?a.currentCourse=e:a.findIndex(t)):o.last_study?o.child_courses&&o.child_courses.length?(a.parentCourse=o,a.findIndex(o.last_study.course_id)):a.currentCourse=o:o.child_courses&&o.child_courses.length?(a.parentCourse=o,o.child_courses[0].child_courses&&o.child_courses[0].child_courses.length?(a.currentIndex="0-0",a.currentCourse=o.child_courses[0].child_courses[0]):(a.currentIndex="0",a.currentCourse=o.child_courses[0])):a.currentCourse=o,n.next=19,xa.playInfo(a.currentCourse.id,a.parentCourse?a.parentCourse.id:0);case 19:if(a.playCourse=n.sent,r=a.currentCourse&&a.currentCourse.series&&a.currentCourse.series.participation_approach||o.series&&o.series.participation_approach,a.participationApproach=r,a.updateNow(),a.sessionInfo=a.resolveSessionInfo(a.currentCourse),a.loading=!1,a.$Toast.clear(!0),console.log("stop loading"),document.title=o.title,-1!==a.playingCollapseIndex&&(a.activeNames=[a.playingCollapseIndex]),a.$_isWechat&&window.wx.ready((function(){a.$_updateWxShareData(o.title,o.introduction,a.$options.filters.url(o.image),"".concat(window.location.origin,"/mobile/course/").concat(o.id))})),a.playCourse.is_access){n.next=36;break}a.showLiveOverlay=!1,a.stopLiveStatusTimer(),a.showNeedBuy(),n.next=74;break;case 36:if(a.needBuy=!1,a.playCourse.address){n.next=44;break}if(a.showLiveOverlay=Boolean(a.sessionInfo||a.participationApproach),!a.showLiveOverlay){n.next=42;break}return a.sessionInfo?a.startLiveStatusTimer():a.stopLiveStatusTimer(),n.abrupt("return");case 42:return a.$Toast.fail("该课程没有可以播放的视频"),n.abrupt("return",!1);case 44:if(a.showLiveOverlay=!1,a.stopLiveStatusTimer(),c={fontSize:"16px",color:"#fff"},!a.playCourse.has_video){n.next=65;break}return n.prev=48,n.next=51,xa.getVtt(a.currentCourse.id);case 51:l=n.sent,d=new Blob([l],{type:"text/vtt"}),m=URL.createObjectURL(d),a.revokeVttBlobUrl(),a.currentVttBlobUrl=m,u=Object(i["a"])({url:m},c),n.next=63;break;case 59:n.prev=59,n.t0=n["catch"](48),console.error("Failed to load VTT subtitle:",n.t0),u=a.playCourse.subtitle_address?Object(i["a"])({url:a.$options.filters.url(a.playCourse.subtitle_address)},c):void 0;case 63:n.next=66;break;case 65:u=a.playCourse.subtitle_address?Object(i["a"])({url:a.$options.filters.url(a.playCourse.subtitle_address)},c):void 0;case 66:a.player=new Xa.a({container:a.$refs.player,theme:"#ec8a21",autoplay:!0,video:{url:a.$options.filters.url(a.playCourse.address,!1)},subtitle:u}),a.player.speed(s),a.playCourse.last_time&&a.player.on("loadedmetadata",(function(){a.player.video.duration-a.playCourse.last_time>5&&a.player.seek(a.playCourse.last_time)})),a.player.on("play",(function(){a.addAction("play"),a.updateStudyTime(),a.updateTimer=setInterval((function(){a.updateStudyTime()}),3e4)})),a.player.on("pause",(function(){a.addAction("pause"),a.updateStudyTime(),clearInterval(a.updateTimer),a.updateTimer=""})),a.player.on("ended",(function(){a.addAction("end"),a.updateStudyTime(),clearInterval(a.updateTimer),a.updateTimer="",a.parentCourse&&a.playNext()})),a.player.on("seeked",(function(){a.addAction("seek"),a.updateStudyTime()})),a.player.on("ratechange",(function(){a.player&&(sessionStorage.setItem("playbackSpeed",a.player.video.playbackRate),a.addAction("rate"))}));case 74:case"end":return n.stop()}}),n,null,[[48,59]])})))()},playNext:function(){var t;console.log(this.currentIndex);for(var e=this.currentCourse,a=this.parentCourse.child_courses,n=0;n<a.length;n++){var s=a[n];if(s.id===e.id){if(n<a.length-1){var o=a[n+1];o.child_courses&&o.child_courses.length>0?(t=o.child_courses[0],this.currentIndex="".concat(n+1,"-0")):(t=o,this.currentIndex="".concat(n+1))}break}if(s.child_courses&&s.child_courses.length)for(var r=0;r<s.child_courses.length;r++){var i=s.child_courses[r];if(i.id===e.id){r<s.child_courses.length-1?(t=s.child_courses[r+1],this.currentIndex="".concat(n,"-").concat(r+1)):n<a.length-1&&(a[n+1].child_courses&&a[n+1].child_courses.length>0?(t=a[n+1].child_courses[0],this.currentIndex="".concat(n+1,"-0")):(t=a[n+1],this.currentIndex="".concat(n+1)));break}}if(t)break}t&&(console.log("playNext: jump to",this.currentIndex,t.id),this.activeNames=[parseInt((this.currentIndex+"").split("-")[0])],this.load(t.id,t))},rate:function(t){var e=this;xa.rate(t,this.currentCourse.id,this.parentCourse?this.parentCourse.id:void 0).then((function(){e.$Toast({message:"评分成功",position:"bottom"})}))},collect:function(){var t=this;this.loadingCollect=!0;var e=this.parentCourse?this.parentCourse:this.currentCourse,a=e.is_collect?xa.uncollect:xa.collect;a(e.id).then((function(){t.loadingCollect=!1,e.is_collect=!e.is_collect})).catch((function(){t.loadingCollect=!1}))},buy:function(){this.showPay=!0},paid:function(){this.$route.params.course=void 0,this.load(this.$route.params.playId)},updateStudyTime:function(t){xa.study(t||Math.round(this.player.video.currentTime),this.currentCourse.id,this.parentCourse?this.parentCourse.id:void 0)},addAction:function(t){var e=localStorage.getItem("player_actions");if(e)try{e=JSON.parse(e)}catch(a){e=[]}else e=[];Array.isArray(e)||(e=[]),e.push({session_id:sessionStorage.getItem("sessionId"),device_id:localStorage.getItem("deviceId"),course_id:this.currentCourse.id,parent_course_id:this.parentCourse?this.parentCourse.id:void 0,action:t,play_time:this.player.video.currentTime,speed:this.player.video.playbackRate,create_time:Math.round(Date.now()/1e3)}),localStorage.setItem("player_actions",JSON.stringify(e))},parseDateTime:function(t,e){if(!t||!e)return null;var a=5===e.length?"".concat(e,":00"):e,n="".concat(t,"T").concat(a),s=new Date(n);if(!Number.isNaN(s.getTime()))return s;var o=new Date("".concat(t," ").concat(a));return Number.isNaN(o.getTime())?null:o},resolveSessionInfo:function(t){var e=t&&t.session;return this.buildSessionInfo(e)},buildSessionInfo:function(t){if(!t||"object"!==Object(Ua["a"])(t))return null;var e=t.start_date;if(!e)return null;var a=this.parseDateTime(e,t.start_time);if(!a)return null;var n=t.end_time?this.parseDateTime(e,t.end_time):null;return{startAt:a,endAt:n,isCurrent:Boolean(t.current),raw:t}},startLiveStatusTimer:function(){var t=this;this.updateNow(),this.liveStatusTimer||"undefined"===typeof window||(this.liveStatusTimer=window.setInterval((function(){t.updateNow()}),3e4))},stopLiveStatusTimer:function(){this.liveStatusTimer&&(clearInterval(this.liveStatusTimer),this.liveStatusTimer=null)},updateNow:function(){this.now=new Date},showNeedBuy:function(){this.$Toast({message:"请购买课程",position:"bottom"}),this.player&&(this.player.destroy(),delete this.player),this.needBuy=!0,this.showLiveOverlay=!1,this.stopLiveStatusTimer(),clearInterval(this.updateTimer),this.updateTimer="",-1!==(this.parentCourse?this.parentCourse:this.currentCourse).status&&(this.parentCourse&&this.parentCourse.parent_courses&&this.parentCourse.parent_courses.length&&this.parentCourse.parent_courses.some((function(t){return t.is_live}))||this.currentCourse&&this.currentCourse.parent_courses&&this.currentCourse.parent_courses.length&&this.currentCourse.parent_courses.some((function(t){return t.is_live})))&&this.goParentCourse()},goParentCourse:function(){var t=this;this.parentCourse&&this.parentCourse.parent_courses&&this.parentCourse.parent_courses.length&&this.parentCourse.parent_courses.some((function(t){return t.is_live}))?this.parentCourse.parent_courses.some((function(e){if(e.is_live)return t.$router.push({name:"courseDetail",params:{id:e.id}}),!0})):this.currentCourse&&this.currentCourse.parent_courses&&this.currentCourse.parent_courses.length&&this.currentCourse.parent_courses.some((function(t){return t.is_live}))&&this.currentCourse.parent_courses.some((function(e){if(e.is_live)return t.$router.push({name:"courseDetail",params:{id:e.id}}),!0}))}},Object(p["b"])(["uploadActions"]))},cn=rn,un=(a("1676"),a("3cc1"),Object(st["a"])(cn,Va,Ba,!1,null,"51218d00",null)),ln=un.exports,dn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-search"},[a("div",{staticClass:"m-header"},[a("van-button",{staticClass:"u-back",attrs:{icon:"arrow-left",square:""},on:{click:t.back}},[t._v(" 返回 ")]),a("van-search",{staticClass:"m-input",attrs:{placeholder:"请输入搜索关键词","show-action":"",clearable:""},on:{search:t.search},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[a("div",{attrs:{slot:"action"},on:{click:t.search},slot:"action"},[t._v("搜索")])])],1),t.isEmpty?a("div",{staticClass:"u-empty"},[t._v("搜索结果为空")]):a("van-list",{staticClass:"m-list",attrs:{"immediate-check":!1,finished:t.isFinish,error:t.isError},on:{load:t.load},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.courses,(function(t,e){return a("Course",{key:e,attrs:{course:t}})})),1)],1)},mn=[],pn=(a("841c"),{name:"search",components:(D={},Object(c["a"])(D,Dt["a"].name,Dt["a"]),Object(c["a"])(D,Lt["a"].name,Lt["a"]),Object(c["a"])(D,"Course",Wt),D),data:function(){return{keyword:"",isLoading:!1,isFinish:!1,isError:!1,isEmpty:!1,courses:[],page:1}},mounted:function(){this.keyword=new URLSearchParams(window.location.search).get("keyword"),this.load(!0)},methods:{back:function(){this.$router.back()},search:function(){this.keyword&&this.$route.query.keyword!==this.keyword&&this.$router.replace({name:"search",query:{keyword:this.keyword}}),this.load(!0)},load:function(t){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e.keyword){a.next=13;break}return e.isLoading=!0,e.axiosCancel("请求已取消"),e.createAxiosCancelToken(),t&&(e.courses=[],e.page=1,e.isFinish=!1,e.isEmpty=!1),a.next=7,Xt.search(e.keyword,e.page,e.axiosCancelToken);case 7:s=a.sent,(n=e.courses).push.apply(n,Object(Ot["a"])(s.data)),s.meta.last_page>e.page?e.page++:(0===s.meta.total&&(e.isEmpty=!0),e.isFinish=!0),e.isLoading=!1,a.next=14;break;case 13:e.$Toast({message:"搜索关键词不能为空",position:"bottom"});case 14:case"end":return a.stop()}}),a)})))()}}}),hn=pn,vn=(a("7c12"),Object(st["a"])(hn,dn,mn,!1,null,"5575a362",null)),yn=vn.exports,fn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-collects"},[a("div",{staticClass:"u-title"},[a("van-button",{staticClass:"u-back",attrs:{icon:"arrow-left",square:""},on:{click:t.back}},[t._v(" 返回 ")]),a("van-icon",{staticStyle:{"margin-right":"0.5em"},attrs:{size:"18",color:"#e4393c",name:"like"}}),t._v(" 我收藏的课程 ")],1),t.isLogin?[t.isEmpty?a("GoStudy",{attrs:{name:"收藏课程"}}):a("van-list",{staticClass:"m-list",attrs:{finished:t.isFinish,error:t.isError},on:{load:t.load},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.courses,(function(t,e){return a("Course",{key:e,attrs:{course:t}})})),1)]:a("NeedLogin")],2)},_n=[],Cn={name:"collects",components:(M={},Object(c["a"])(M,Lt["a"].name,Lt["a"]),Object(c["a"])(M,"NeedLogin",ge),Object(c["a"])(M,"GoStudy",je),Object(c["a"])(M,"Course",Wt),M),data:function(){return{isLoading:!1,isFinish:!1,isError:!1,isEmpty:!1,courses:[],page:1}},computed:{isLogin:function(){return this.$store.state.isLogin}},methods:{back:function(){this.$router.back()},load:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,ce.collects(t.page,t.axiosCancelToken);case 3:n=e.sent,(a=t.courses).push.apply(a,Object(Ot["a"])(n.data.map((function(t){return t.course})))),n.meta.last_page>t.page?t.page++:(0===n.meta.total&&(t.isEmpty=!0),t.isFinish=!0),t.isLoading=!1;case 7:case"end":return e.stop()}}),e)})))()}}},gn=Cn,bn=(a("0897"),Object(st["a"])(gn,fn,_n,!1,null,"4d05d85c",null)),wn=bn.exports,kn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-points"},[a("van-button",{staticClass:"u-back",attrs:{icon:"arrow-left",square:""},on:{click:t.back}},[t._v(" 返回 ")]),a("div",{staticClass:"m-header"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticStyle:{"margin-right":"6px"},attrs:{name:"points"}}),t._v(" 我的集智积分 ")],1),a("div",{staticClass:"u-point"},[t._v(t._s(t.point)+" ∫")]),a("van-button",{staticClass:"u-charge",attrs:{round:""},on:{click:t.charge}},[t._v("积分充值")]),a("van-button",{staticClass:"u-help",attrs:{icon:"question-o",url:"https://swarma.feishu.cn/docx/RCZkdNFy0o8fDux6tkUcLwYCn0d"}})],1),t.isLogin?[t.isEmpty?t._e():a("van-list",{staticClass:"m-list",attrs:{finished:t.isFinish,error:t.isError},on:{load:t.load},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[a("van-cell-group",{staticClass:"f-shadow"},t._l(t.records,(function(e,n){return a("van-cell",{key:n,attrs:{title:e.type,value:t._f("amount")(e.amount),"title-style":"flex: 2"}},[a("div",{staticClass:"m-detail",attrs:{slot:"label"},slot:"label"},[a("div",{staticClass:"u-belong"},[t._v(t._s(e.belong_name))]),a("div",{staticClass:"u-balance"},[t._v("余额："+t._s(e.balance)+" ∫")]),a("div",{staticClass:"u-time"},[t._v(t._s(e.created_at))])])])})),1)],1),a("van-popup",{attrs:{position:"bottom"},model:{value:t.showPay,callback:function(e){t.showPay=e},expression:"showPay"}},[a("ChargePoint",{on:{charged:t.charged}})],1)]:a("NeedLogin")],2)},Nn=[],xn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-charge-point"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticStyle:{"margin-right":"4px"},attrs:{name:"points",size:"20"}}),t._v(" 积分充值 ")],1),a("div",{staticClass:"m-choose-amount"},[a("div",{staticClass:"m-amount",on:{click:function(e){t.amount=1}}},[a("div",{staticClass:"u-point"},[t._v("101 ∫")]),a("div",{staticClass:"u-money"},[t._v("1元")])]),a("div",{staticClass:"m-amount",on:{click:function(e){t.amount=5}}},[a("div",{staticClass:"u-point"},[t._v("505 ∫")]),a("div",{staticClass:"u-money"},[t._v("5元")])]),a("div",{staticClass:"m-amount",on:{click:function(e){t.amount=10}}},[a("div",{staticClass:"u-point"},[t._v("1,010 ∫")]),a("div",{staticClass:"u-money"},[t._v("10元")])]),a("div",{staticClass:"m-amount",on:{click:function(e){t.amount=50}}},[a("div",{staticClass:"u-point"},[t._v("5,050 ∫")]),a("div",{staticClass:"u-money"},[t._v("50元")])]),a("div",{staticClass:"m-amount",on:{click:function(e){t.amount=100}}},[a("div",{staticClass:"u-point"},[t._v("10,100 ∫")]),a("div",{staticClass:"u-money"},[t._v("100元")])]),a("div",{staticClass:"m-amount",on:{click:function(e){t.amount=500}}},[a("div",{staticClass:"u-point"},[t._v("50,500 ∫")]),a("div",{staticClass:"u-money"},[t._v("500元")])])]),a("van-field",{staticClass:"f-point",attrs:{type:"digit",size:"large","left-icon":"gold-coin",label:"自定义金额（元）","input-align":"right",placeholder:"请输入充值金额"},model:{value:t.amount,callback:function(e){t.amount=e},expression:"amount"}}),a("van-cell",{staticClass:"f-point",attrs:{size:"large",icon:"points",title:"充值积分",value:101*t.amount+" ∫"},on:{click:function(e){return t.pay("wechat_mobile")}}}),a("van-cell",{staticClass:"f-wechat",attrs:{size:"large",icon:"wechat",title:"微信支付",value:""===t.amount?"":t.amount+" 元","is-link":""},on:{click:function(e){return t.pay("wechat_mobile")}}}),t.$_isWechat?t._e():a("van-cell",{staticClass:"f-alipay",attrs:{size:"large",icon:"alipay",title:"支付宝支付",value:""===t.amount?"":t.amount+" 元","is-link":""},on:{click:function(e){return t.pay("alipay_mobile")}}}),a("van-dialog",{attrs:{width:"280px","confirm-button-text":"支付完成","confirm-button-color":"#ec8a21","show-cancel-button":""},on:{confirm:function(e){return t.$emit("charged")},cancel:t.cancel},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[a("van-loading",{attrs:{color:"#ec8a21",size:"24px"}},[t._v("请在新窗口中完成支付")])],1)],1)},jn=[],Pn=(a("8ba4"),{name:"chargePoint",components:(R={},Object(c["a"])(R,m["a"].name,m["a"]),Object(c["a"])(R,ze["a"].name,ze["a"]),Object(c["a"])(R,Be["a"].name,Be["a"]),R),data:function(){return{amount:"",show:!1,timer:""}},computed:{userPoint:function(){return this.$store.state.user.point}},beforeDestroy:function(){this.cancel()},methods:{pay:function(t){var e=this;!isNaN(this.amount)&&Number.isInteger(parseFloat(this.amount))?this.amount<1?this.$Toast({message:"充值金额不能低于1元",position:"bottom"}):this.$_isWechat&&"wechat_mobile"===t?this.payInWechat():ce.chargePoint(100*this.amount,t).then((function(t){e.startCheckPayStatus(t.oid),e.$_isApple?window.location.assign(t.url):window.open(t.url)})):this.$Toast({message:"充值金额必须为整数",position:"bottom"})},payInWechat:function(){var t=this;ce.chargePoint(100*this.amount,"wechat").then((function(e){window.wx.chooseWXPay(Object(i["a"])({},e,{timestamp:e.timeStamp,success:function(e){"chooseWXPay:ok"===e.errMsg?t.$emit("charged"):t.$Toast({message:e.errMsg,position:"bottom"})}}))}))},startCheckPayStatus:function(t){var e=this;this.show=!0,this.timer=setTimeout((function(){e.checkPayStatus(t)}),1e3)},checkPayStatus:function(t){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,C.isPaid(t,e.axiosCancelToken);case 2:n=a.sent,n.status?e.$emit("charged"):e.timer=setTimeout((function(){e.checkPayStatus(t)}),1e3);case 4:case"end":return a.stop()}}),a)})))()},cancel:function(){this.show=!1,this.axiosCancel("请求已取消"),this.createAxiosCancelToken(),clearTimeout(this.timer),this.timer=""}}}),$n=Pn,Tn=(a("bac8"),a("8908"),Object(st["a"])($n,xn,jn,!1,null,"a4620174",null)),Sn=Tn.exports,In={name:"points",components:(V={},Object(c["a"])(V,Lt["a"].name,Lt["a"]),Object(c["a"])(V,ze["a"].name,ze["a"]),Object(c["a"])(V,Ae["a"].name,Ae["a"]),Object(c["a"])(V,u["a"].name,u["a"]),Object(c["a"])(V,"NeedLogin",ge),Object(c["a"])(V,"ChargePoint",Sn),V),filters:{amount:function(t){return(t>0?"+":"")+t}},data:function(){return{isLoading:!1,isFinish:!1,isError:!1,isEmpty:!1,records:[],page:1,showPay:!1}},computed:{isLogin:function(){return this.$store.state.isLogin},point:function(){return this.$store.state.user.point}},methods:{back:function(){this.$router.replace({name:"user"})},charge:function(){this.showPay=!0},load:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,ce.points(t.page,t.axiosCancelToken);case 3:n=e.sent,(a=t.records).push.apply(a,Object(Ot["a"])(n.data)),n.meta.last_page>t.page?t.page++:(0===n.meta.total&&(t.isEmpty=!0),t.isFinish=!0),t.isLoading=!1;case 7:case"end":return e.stop()}}),e)})))()},charged:function(){window.location.reload()}}},On=In,Ln=(a("5eff"),Object(st["a"])(On,kn,Nn,!1,null,"421a0180",null)),An=Ln.exports,zn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div")},En=[],qn={name:"oldCourseDetail",mounted:function(){var t=this;this.$route.query.id&&C.cidToCourseId(this.$route.query.id).then((function(e){e.course_id?t.$router.replace({name:"courseDetail",params:{id:e.course_id}}):t.$router.replace({name:"home"})})).catch((function(){t.$router.replace({name:"home"})}))}},Dn=qn,Mn=Object(st["a"])(Dn,zn,En,!1,null,null,null),Rn=Mn.exports,Vn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div")},Bn=[],Un={name:"oldCoursePlay",mounted:function(){var t=this;this.$route.query.id&&C.cidToCourseId(this.$route.query.id).then((function(e){e.course_id?t.$router.replace({name:"courseStudy",params:{id:e.course_id}}):t.$router.replace({name:"home"})})).catch((function(){t.$router.replace({name:"home"})}))}},Wn=Un,Fn=Object(st["a"])(Wn,Vn,Bn,!1,null,null,null),Gn=Fn.exports,Hn=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-bnu"},[a("div",{staticClass:"u-title"},[a("van-icon",{staticStyle:{"margin-right":"0.5em"},attrs:{size:"18","class-prefix":"swarma-icon",name:"college"}}),t._v(" 北京师范大学系统科学学院课程 ")],1),a("van-list",{staticClass:"m-list",attrs:{finished:t.isFinish,error:t.isError},on:{load:t.load},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.courses,(function(t,e){return a("Course",{key:e,attrs:{course:t}})})),1)],1)},Kn=[],Jn={components:(B={},Object(c["a"])(B,Lt["a"].name,Lt["a"]),Object(c["a"])(B,"Course",Wt),B),data:function(){return{isLoading:!1,isFinish:!1,isError:!1,courses:[],page:1}},mounted:function(){var t=this;document.title="北京师范大学系统科学学院课程",this.$_isWechat&&window.wx.ready((function(){t.$_updateWxShareData("北京师范大学系统科学学院课程")}))},methods:{load:function(t){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.isLoading=!0,e.axiosCancel("请求已取消"),e.createAxiosCancelToken(),t&&(e.courses=[],e.page=1,e.isFinish=!1),a.prev=4,a.next=7,Xt.bnuCourses(e.page,e.axiosCancelToken);case 7:s=a.sent,(n=e.courses).push.apply(n,Object(Ot["a"])(s.data)),s.meta.last_page>e.page?e.page++:e.isFinish=!0,a.next=15;break;case 12:a.prev=12,a.t0=a["catch"](4),e.isError=!0;case 15:return a.prev=15,e.isLoading=!1,a.finish(15);case 18:case"end":return a.stop()}}),a,null,[[4,12,15,18]])})))()}}},Qn=Jn,Xn=(a("4410"),Object(st["a"])(Qn,Hn,Kn,!1,null,"6f51fb24",null)),Zn=Xn.exports,Yn={mode:"history",base:"/mobile/",routes:[{path:"/weixin",name:"weixin",component:bt},{path:"/",component:Tt,children:[{name:"home",path:"",component:me},{name:"myCourses",path:"/my_courses",redirect:{name:"myStudy"}},{name:"myStudy",path:"/my_study",component:Se},{name:"user",path:"/user",component:Me},{name:"vip",path:"/vip",component:ta},{name:"bnu",path:"/bnu",component:Zn}]},{name:"courseDetail",path:"/course/:id",component:Ra},{name:"courseStudySection",path:"/course/:id/study/:lessonId?/section/:sectionId",component:ln},{name:"courseStudy",path:"/course/:id/study/:lessonId?",component:ln},{name:"search",path:"/search",component:yn},{name:"collects",path:"/user/collects",component:wn},{name:"points",path:"/user/points",component:An},{name:"oldCourseDetail",path:"/courseDetail",component:Rn},{name:"oldCoursePlay",path:"/play",component:Gn},{name:"chargePointActivity",path:"/charge_point_activity",redirect:{name:"points"}},{path:"*",redirect:{name:"home"}}]};s["a"].use(vt["a"]);var ts=new vt["a"](Yn);ts.beforeEach((function(t,e,a){var n=!1;!t.query.from&&g.state.from&&(t.query.from=g.state.from,n=!0),n?a(t):a()}));var es=ts,as=a("6821"),ns=a.n(as),ss=a("ba56"),os=a.n(ss),rs=(a("9a83"),a("f564")),is=(a("e7e5"),a("d399")),cs=(a("4056"),a("44bf")),us=(a("66b9"),a("b650"));s["a"].use(us["a"]),s["a"].use(cs["a"]),s["a"].use(Be["a"]),s["a"].use(tt["a"]),s["a"].use(na["a"]),is["a"].allowMultiple(),s["a"].prototype.$Toast=is["a"],s["a"].prototype.$Notify=rs["a"],s["a"].prototype.$Dialog=na["a"],Ya.a.locale("zh-cn"),s["a"].prototype.$_moment=Ya.a,s["a"].prototype.$_md5=ns.a,window.Hls=os.a;var ls={data:function(){return{axiosCancelToken:""}},mounted:function(){this.createAxiosCancelToken()},methods:{createAxiosCancelToken:function(){var t=this;this.axiosCancelToken=new w.a.CancelToken((function(e){t.axiosCancel=e}))}}},ds=ls;s["a"].filter("timeFormat",tn),s["a"].filter("url",en),s["a"].filter("duration",an),s["a"].filter("price",nn),s["a"].filter("difficulty",sn),s["a"].filter("progress",on),s["a"].mixin(ds),s["a"].prototype.$_updateWxShareData=function(t,e,a,n){var s={title:t||"集智学园",desc:e||"集智学园是一个人工智能知识社区，主要面向技术类高管、高级工程师、科研人员，提供人工智能、机器学习、大数据、复杂系统等领域的系列讲解及定制化咨询服务。集智学园成立于2016年10月1日，是集智俱乐部孕育的创业项目之一，由集智俱乐部创始人张江与核心志愿者张倩联合创办。",link:n||window.location.href,imgUrl:a?"https:"+a:"https://qiniu.swarma.org/logo.jpg"};window.wx.checkJsApi({jsApiList:["updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage","onMenuShareTimeline"],success:function(t){window.wx.updateAppMessageShareData(s),window.wx.updateTimelineShareData(s),window.wx.onMenuShareAppMessage(s),window.wx.onMenuShareTimeline(s)}})},Object(n["a"])(regeneratorRuntime.mark((function t(){var e,a,o,r,i,c,u,l,d,m,p,h,v,y;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a="campus.swarma.org"!==window.location.hostname,o=new URL(window.location.href).searchParams,r=o.get("from"),!(((null===(e=window.screen)||void 0===e?void 0:e.width)||window.innerWidth)>=768)){t.next=6;break}return-1!==window.location.pathname.indexOf("/course/")||-1!==window.location.pathname.indexOf("/charge_point_activity")||-1!==window.location.pathname.indexOf("/vip")||-1!==window.location.pathname.indexOf("/bnu")?window.location.assign(window.location.href.replace("/mobile","")):-1!==window.location.pathname.indexOf("/mobile/courseDetail")?window.location.assign(window.location.href.replace("/mobile/courseDetail","/play/coursedetail")):-1!==window.location.pathname.indexOf("/mobile/play")?window.location.assign(window.location.href.replace("/mobile/play","/play/play")):(i=new URL(a?"https://test.campus.swarma.org":"https://campus.swarma.org"),r&&i.searchParams.set("from",r),window.location.assign(i.href)),t.abrupt("return");case 6:if(c=-1!==navigator.userAgent.toLowerCase().indexOf("micromessenger"),u=a?"wxcbe63988cc6ee984":"wx992ad5b2dc7b92ef",l=localStorage.getItem("access_token"),d=localStorage.getItem("deviceId"),m=sessionStorage.getItem("sessionId"),d||(d="device_"+s["a"].prototype.$_md5((new Date).getTime().toString()+parseInt(100*Math.random()).toString()),localStorage.setItem("deviceId",d)),m||(m=s["a"].prototype.$_md5((new Date).getTime().toString()+parseInt(100*Math.random()).toString()),sessionStorage.setItem("sessionId",m)),p=function(t){var e=encodeURIComponent("".concat(window.location.origin,"/mobile/weixin")),a=encodeURIComponent(t||window.location.href);window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=".concat(u,"&redirect_uri=").concat(e,"&response_type=code&scope=snsapi_userinfo&state=").concat(a,"#wechat_redirect"))},r&&g.commit("initFrom",r),h="https://"+(a?"test.pattern.swarma.org":"pattern.swarma.org")+"/login_transfer.html",v=document.getElementById("login_transfer"),y=function(t){v.onload=function(){v.contentWindow.postMessage(JSON.stringify({access_token:t,deviceId:localStorage.getItem("deviceId"),sessionId:sessionStorage.getItem("sessionId")}),h)}},s["a"].prototype.$_loginTransfer=y,!l){t.next=31;break}return t.prev=20,s["a"].prototype.$Toast.loading({message:"登录中...",forbidClick:!0,duration:0}),t.next=24,Q.update();case 24:t.next=29;break;case 26:t.prev=26,t.t0=t["catch"](20),console.warn("未登录");case 29:s["a"].prototype.$Toast.clear(!0),l=localStorage.getItem("access_token");case 31:if(v.src=h,v.onload=function(){y(l)},l||-1!==location.pathname.indexOf("/weixin")||!c){t.next=36;break}return p(),t.abrupt("return");case 36:window.addEventListener("unload",Object(n["a"])(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!navigator.sendBeacon){t.next=9;break}e=a?"https://test.api.swarma.org/api":"https://api.swarma.org/api",n=new FormData,n.append("session_id",sessionStorage.getItem("sessionId")),n.append("device_id",localStorage.getItem("deviceId")),n.append("url",""),navigator.sendBeacon(e+"/track",n),t.next=11;break;case 9:return t.next=11,C.track("");case 11:case"end":return t.stop()}}),t)}))),!1),g.dispatch("uploadActions"),s["a"].prototype.$_isTest=a,s["a"].prototype.$_isWechat=c,s["a"].prototype.$_wechatLogin=p,s["a"].prototype.$_isApple=-1!==navigator.userAgent.toLowerCase().indexOf("mac os x"),s["a"].config.productionTip=!1,window.wx.error((function(t){console.error(t)})),new s["a"]({router:es,store:g,render:function(t){return t(ht)}}).$mount("#app");case 45:case"end":return t.stop()}}),t,null,[[20,26]])})))()},"5acc":function(t){t.exports=JSON.parse('[{"countryName":"Chinese Mainland","countryNameChinese":"中国大陆","countryCode":"86"},{"countryName":"Hong Kong","countryNameChinese":"中国香港","countryCode":"852"},{"countryName":"Macao","countryNameChinese":"中国澳门","countryCode":"853"},{"countryName":"Taiwan","countryNameChinese":"中国台湾","countryCode":"886"},{"countryName":"Afghanistan","countryNameChinese":"阿富汗","countryCode":"93"},{"countryName":"Albania","countryNameChinese":"阿尔巴尼亚","countryCode":"355"},{"countryName":"Algeria","countryNameChinese":"阿尔及利亚","countryCode":"213"},{"countryName":"American Samoa","countryNameChinese":"美属萨摩亚","countryCode":"1684"},{"countryName":"Andorra","countryNameChinese":"安道尔","countryCode":"376"},{"countryName":"Angola","countryNameChinese":"安哥拉","countryCode":"244"},{"countryName":"Anguilla","countryNameChinese":"安圭拉","countryCode":"1264"},{"countryName":"Antigua and Barbuda","countryNameChinese":"安提瓜和巴布达","countryCode":"1268"},{"countryName":"Argentina","countryNameChinese":"阿根廷","countryCode":"54"},{"countryName":"Armenia","countryNameChinese":"亚美尼亚","countryCode":"374"},{"countryName":"Aruba","countryNameChinese":"阿鲁巴","countryCode":"297"},{"countryName":"Australia","countryNameChinese":"澳大利亚","countryCode":"61"},{"countryName":"Austria","countryNameChinese":"奥地利","countryCode":"43"},{"countryName":"Azerbaijan","countryNameChinese":"阿塞拜疆","countryCode":"994"},{"countryName":"Bahamas","countryNameChinese":"巴哈马","countryCode":"1242"},{"countryName":"Bahrain","countryNameChinese":"巴林","countryCode":"973"},{"countryName":"Bangladesh","countryNameChinese":"孟加拉国","countryCode":"880"},{"countryName":"Barbados","countryNameChinese":"巴巴多斯","countryCode":"1246"},{"countryName":"Belarus","countryNameChinese":"白俄罗斯","countryCode":"375"},{"countryName":"Belgium","countryNameChinese":"比利时","countryCode":"32"},{"countryName":"Belize","countryNameChinese":"伯利兹","countryCode":"501"},{"countryName":"Benin","countryNameChinese":"贝宁","countryCode":"229"},{"countryName":"Bermuda","countryNameChinese":"百慕大群岛","countryCode":"1441"},{"countryName":"Bhutan","countryNameChinese":"不丹","countryCode":"975"},{"countryName":"Bolivia","countryNameChinese":"玻利维亚","countryCode":"591"},{"countryName":"Bosnia and Herzegovina","countryNameChinese":"波斯尼亚和黑塞哥维那","countryCode":"387"},{"countryName":"Botswana","countryNameChinese":"博茨瓦纳","countryCode":"267"},{"countryName":"Brazil","countryNameChinese":"巴西","countryCode":"55"},{"countryName":"Brunei","countryNameChinese":"文莱","countryCode":"673"},{"countryName":"Bulgaria","countryNameChinese":"保加利亚","countryCode":"359"},{"countryName":"Burkina Faso","countryNameChinese":"布基纳法索","countryCode":"226"},{"countryName":"Burundi","countryNameChinese":"布隆迪","countryCode":"257"},{"countryName":"Cambodia","countryNameChinese":"柬埔寨","countryCode":"855"},{"countryName":"Cameroon","countryNameChinese":"喀麦隆","countryCode":"237"},{"countryName":"Canada","countryNameChinese":"加拿大","countryCode":"1"},{"countryName":"Cape Verde","countryNameChinese":"佛得角","countryCode":"238"},{"countryName":"Cayman Islands","countryNameChinese":"开曼群岛","countryCode":"1345"},{"countryName":"Central African Republic","countryNameChinese":"中非共和国","countryCode":"236"},{"countryName":"Chad","countryNameChinese":"乍得","countryCode":"235"},{"countryName":"Chile","countryNameChinese":"智利","countryCode":"56"},{"countryName":"Colombia","countryNameChinese":"哥伦比亚","countryCode":"57"},{"countryName":"Comoros","countryNameChinese":"科摩罗","countryCode":"269"},{"countryName":"Cook Islands","countryNameChinese":"库克群岛","countryCode":"682"},{"countryName":"Costa Rica","countryNameChinese":"哥斯达黎加","countryCode":"506"},{"countryName":"Croatia","countryNameChinese":"克罗地亚","countryCode":"385"},{"countryName":"Curacao","countryNameChinese":"库拉索","countryCode":"599"},{"countryName":"Cyprus","countryNameChinese":"塞浦路斯","countryCode":"357"},{"countryName":"Czechia","countryNameChinese":"捷克","countryCode":"420"},{"countryName":"Democratic Republic of the Congo","countryNameChinese":"刚果民主共和国","countryCode":"243"},{"countryName":"Denmark","countryNameChinese":"丹麦","countryCode":"45"},{"countryName":"Djibouti","countryNameChinese":"吉布提","countryCode":"253"},{"countryName":"Dominica","countryNameChinese":"多米尼克","countryCode":"1767"},{"countryName":"Dominican Republic","countryNameChinese":"多米尼加共和国","countryCode":"1809"},{"countryName":"Dominican Republic","countryNameChinese":"多米尼加共和国","countryCode":"1829"},{"countryName":"Dominican Republic","countryNameChinese":"多米尼加共和国","countryCode":"1849"},{"countryName":"Ecuador","countryNameChinese":"厄瓜多尔","countryCode":"593"},{"countryName":"Egypt","countryNameChinese":"埃及","countryCode":"20"},{"countryName":"El Salvador","countryNameChinese":"萨尔瓦多","countryCode":"503"},{"countryName":"Equatorial Guinea","countryNameChinese":"赤道几内亚","countryCode":"240"},{"countryName":"Eritrea","countryNameChinese":"厄立特里亚","countryCode":"291"},{"countryName":"Estonia","countryNameChinese":"爱沙尼亚","countryCode":"372"},{"countryName":"Eswatini","countryNameChinese":"斯威士兰","countryCode":"268"},{"countryName":"Ethiopia","countryNameChinese":"埃塞俄比亚","countryCode":"251"},{"countryName":"Faroe Islands","countryNameChinese":"法罗群岛","countryCode":"298"},{"countryName":"Fiji","countryNameChinese":"斐济","countryCode":"679"},{"countryName":"Finland","countryNameChinese":"芬兰","countryCode":"358"},{"countryName":"France","countryNameChinese":"法国","countryCode":"33"},{"countryName":"French Guiana","countryNameChinese":"法属圭亚那","countryCode":"594"},{"countryName":"French Polynesia","countryNameChinese":"法属波利尼西亚","countryCode":"689"},{"countryName":"Gabon","countryNameChinese":"加蓬","countryCode":"241"},{"countryName":"Gambia","countryNameChinese":"冈比亚","countryCode":"220"},{"countryName":"Georgia","countryNameChinese":"格鲁吉亚","countryCode":"995"},{"countryName":"Germany","countryNameChinese":"德国","countryCode":"49"},{"countryName":"Ghana","countryNameChinese":"加纳","countryCode":"233"},{"countryName":"Gibraltar","countryNameChinese":"直布罗陀","countryCode":"350"},{"countryName":"Greece","countryNameChinese":"希腊","countryCode":"30"},{"countryName":"Greenland","countryNameChinese":"格陵兰岛","countryCode":"299"},{"countryName":"Grenada","countryNameChinese":"格林纳达","countryCode":"1473"},{"countryName":"Guadeloupe","countryNameChinese":"瓜德罗普岛","countryCode":"590"},{"countryName":"Guam","countryNameChinese":"关岛","countryCode":"1671"},{"countryName":"Guatemala","countryNameChinese":"危地马拉","countryCode":"502"},{"countryName":"Guinea","countryNameChinese":"几内亚","countryCode":"224"},{"countryName":"Guinea-Bissau","countryNameChinese":"几内亚比绍共和国","countryCode":"245"},{"countryName":"Guyana","countryNameChinese":"圭亚那","countryCode":"592"},{"countryName":"Haiti","countryNameChinese":"海地","countryCode":"509"},{"countryName":"Honduras","countryNameChinese":"洪都拉斯","countryCode":"504"},{"countryName":"Hungary","countryNameChinese":"匈牙利","countryCode":"36"},{"countryName":"Iceland","countryNameChinese":"冰岛","countryCode":"354"},{"countryName":"India","countryNameChinese":"印度","countryCode":"91"},{"countryName":"Indonesia","countryNameChinese":"印度尼西亚","countryCode":"62"},{"countryName":"Iraq","countryNameChinese":"伊拉克","countryCode":"964"},{"countryName":"Ireland","countryNameChinese":"爱尔兰","countryCode":"353"},{"countryName":"Israel","countryNameChinese":"以色列","countryCode":"972"},{"countryName":"Italy","countryNameChinese":"意大利","countryCode":"39"},{"countryName":"Ivory Coast","countryNameChinese":"象牙海岸","countryCode":"225"},{"countryName":"Jamaica","countryNameChinese":"牙买加","countryCode":"1876"},{"countryName":"Japan","countryNameChinese":"日本","countryCode":"81"},{"countryName":"Jordan","countryNameChinese":"约旦","countryCode":"962"},{"countryName":"Kazakhstan","countryNameChinese":"哈萨克斯坦","countryCode":"7"},{"countryName":"Kenya","countryNameChinese":"肯尼亚","countryCode":"254"},{"countryName":"Kiribati","countryNameChinese":"基里巴斯","countryCode":"686"},{"countryName":"Kuwait","countryNameChinese":"科威特","countryCode":"965"},{"countryName":"Kyrgyzstan","countryNameChinese":"吉尔吉斯斯坦","countryCode":"996"},{"countryName":"Laos","countryNameChinese":"老挝","countryCode":"856"},{"countryName":"Latvia","countryNameChinese":"拉脱维亚","countryCode":"371"},{"countryName":"Lebanon","countryNameChinese":"黎巴嫩","countryCode":"961"},{"countryName":"Lesotho","countryNameChinese":"莱索托","countryCode":"266"},{"countryName":"Liberia","countryNameChinese":"利比里亚","countryCode":"231"},{"countryName":"Libya","countryNameChinese":"利比亚","countryCode":"218"},{"countryName":"Liechtenstein","countryNameChinese":"列支敦士登","countryCode":"423"},{"countryName":"Lithuania","countryNameChinese":"立陶宛","countryCode":"370"},{"countryName":"Luxembourg","countryNameChinese":"卢森堡","countryCode":"352"},{"countryName":"North Macedonia","countryNameChinese":"北马其顿","countryCode":"389"},{"countryName":"Madagascar","countryNameChinese":"马达加斯加","countryCode":"261"},{"countryName":"Malawi","countryNameChinese":"马拉维","countryCode":"265"},{"countryName":"Malaysia","countryNameChinese":"马来西亚","countryCode":"60"},{"countryName":"Maldives","countryNameChinese":"马尔代夫","countryCode":"960"},{"countryName":"Mali","countryNameChinese":"马里","countryCode":"223"},{"countryName":"Malta","countryNameChinese":"马耳他","countryCode":"356"},{"countryName":"Martinique","countryNameChinese":"马提尼克","countryCode":"596"},{"countryName":"Mauritania","countryNameChinese":"毛里塔尼亚","countryCode":"222"},{"countryName":"Mauritius","countryNameChinese":"毛里求斯","countryCode":"230"},{"countryName":"Mayotte","countryNameChinese":"马约特","countryCode":"262"},{"countryName":"Mexico","countryNameChinese":"墨西哥","countryCode":"52"},{"countryName":"Moldova","countryNameChinese":"摩尔多瓦","countryCode":"373"},{"countryName":"Monaco","countryNameChinese":"摩纳哥","countryCode":"377"},{"countryName":"Mongolia","countryNameChinese":"蒙古","countryCode":"976"},{"countryName":"Montenegro","countryNameChinese":"黑山","countryCode":"382"},{"countryName":"Montserrat","countryNameChinese":"蒙特塞拉特岛","countryCode":"1664"},{"countryName":"Morocco","countryNameChinese":"摩洛哥","countryCode":"212"},{"countryName":"Mozambique","countryNameChinese":"莫桑比克","countryCode":"258"},{"countryName":"Myanmar","countryNameChinese":"缅甸","countryCode":"95"},{"countryName":"Namibia","countryNameChinese":"纳米比亚","countryCode":"264"},{"countryName":"Nepal","countryNameChinese":"尼泊尔","countryCode":"977"},{"countryName":"Netherlands","countryNameChinese":"荷兰","countryCode":"31"},{"countryName":"New Caledonia","countryNameChinese":"新喀里多尼亚","countryCode":"687"},{"countryName":"New Zealand","countryNameChinese":"新西兰","countryCode":"64"},{"countryName":"Nicaragua","countryNameChinese":"尼加拉瓜","countryCode":"505"},{"countryName":"Niger","countryNameChinese":"尼日尔","countryCode":"227"},{"countryName":"Nigeria","countryNameChinese":"尼日利亚","countryCode":"234"},{"countryName":"Norway","countryNameChinese":"挪威","countryCode":"47"},{"countryName":"Oman","countryNameChinese":"阿曼","countryCode":"968"},{"countryName":"Pakistan","countryNameChinese":"巴基斯坦","countryCode":"92"},{"countryName":"Palau","countryNameChinese":"帕劳","countryCode":"680"},{"countryName":"Palestine","countryNameChinese":"巴勒斯坦","countryCode":"970"},{"countryName":"Panama","countryNameChinese":"巴拿马","countryCode":"507"},{"countryName":"Papua New Guinea","countryNameChinese":"巴布亚新几内亚","countryCode":"675"},{"countryName":"Paraguay","countryNameChinese":"巴拉圭","countryCode":"595"},{"countryName":"Peru","countryNameChinese":"秘鲁","countryCode":"51"},{"countryName":"Philippines","countryNameChinese":"菲律宾","countryCode":"63"},{"countryName":"Poland","countryNameChinese":"波兰","countryCode":"48"},{"countryName":"Portugal","countryNameChinese":"葡萄牙","countryCode":"351"},{"countryName":"Puerto Rico","countryNameChinese":"波多黎各","countryCode":"1787"},{"countryName":"Qatar","countryNameChinese":"卡塔尔","countryCode":"974"},{"countryName":"Republic Of The Congo","countryNameChinese":"刚果共和国","countryCode":"242"},{"countryName":"Reunion Island","countryNameChinese":"留尼汪","countryCode":"262"},{"countryName":"Romania","countryNameChinese":"罗马尼亚","countryCode":"40"},{"countryName":"Russia","countryNameChinese":"俄罗斯","countryCode":"7"},{"countryName":"Rwanda","countryNameChinese":"卢旺达","countryCode":"250"},{"countryName":"Saint Kitts and Nevis","countryNameChinese":"圣基茨和尼维斯","countryCode":"1869"},{"countryName":"Saint Lucia","countryNameChinese":"圣露西亚","countryCode":"1758"},{"countryName":"Saint Pierre and Miquelon","countryNameChinese":"圣彼埃尔和密克隆岛","countryCode":"508"},{"countryName":"Saint Vincent and The Grenadines","countryNameChinese":"圣文森特和格林纳丁斯","countryCode":"1784"},{"countryName":"Samoa","countryNameChinese":"萨摩亚","countryCode":"685"},{"countryName":"San Marino","countryNameChinese":"圣马力诺","countryCode":"378"},{"countryName":"Sao Tome and Principe","countryNameChinese":"圣多美和普林西比","countryCode":"239"},{"countryName":"Saudi Arabia","countryNameChinese":"沙特阿拉伯","countryCode":"966"},{"countryName":"Senegal","countryNameChinese":"塞内加尔","countryCode":"221"},{"countryName":"Serbia","countryNameChinese":"塞尔维亚","countryCode":"381"},{"countryName":"Seychelles","countryNameChinese":"塞舌尔","countryCode":"248"},{"countryName":"Sierra Leone","countryNameChinese":"塞拉利昂","countryCode":"232"},{"countryName":"Singapore","countryNameChinese":"新加坡","countryCode":"65"},{"countryName":"Sint Maarten (Dutch Part)","countryNameChinese":"圣马丁岛（荷兰部分）","countryCode":"1721"},{"countryName":"Slovakia","countryNameChinese":"斯洛伐克","countryCode":"421"},{"countryName":"Slovenia","countryNameChinese":"斯洛文尼亚","countryCode":"386"},{"countryName":"Solomon Islands","countryNameChinese":"所罗门群岛","countryCode":"677"},{"countryName":"Somalia","countryNameChinese":"索马里","countryCode":"252"},{"countryName":"South Africa","countryNameChinese":"南非","countryCode":"27"},{"countryName":"South Korea","countryNameChinese":"韩国","countryCode":"82"},{"countryName":"Spain","countryNameChinese":"西班牙","countryCode":"34"},{"countryName":"Sri Lanka","countryNameChinese":"斯里兰卡","countryCode":"94"},{"countryName":"Suriname","countryNameChinese":"苏里南","countryCode":"597"},{"countryName":"Sweden","countryNameChinese":"瑞典","countryCode":"46"},{"countryName":"Switzerland","countryNameChinese":"瑞士","countryCode":"41"},{"countryName":"Tajikistan","countryNameChinese":"塔吉克斯坦","countryCode":"992"},{"countryName":"Tanzania","countryNameChinese":"坦桑尼亚","countryCode":"255"},{"countryName":"Thailand","countryNameChinese":"泰国","countryCode":"66"},{"countryName":"Timor-Leste","countryNameChinese":"东帝汶","countryCode":"670"},{"countryName":"Togo","countryNameChinese":"多哥","countryCode":"228"},{"countryName":"Tonga","countryNameChinese":"汤加","countryCode":"676"},{"countryName":"Trinidad and Tobago","countryNameChinese":"特立尼达和多巴哥","countryCode":"1868"},{"countryName":"Tunisia","countryNameChinese":"突尼斯","countryCode":"216"},{"countryName":"Turkey","countryNameChinese":"土耳其","countryCode":"90"},{"countryName":"Turkmenistan","countryNameChinese":"土库曼斯坦","countryCode":"993"},{"countryName":"Turks and Caicos Islands","countryNameChinese":"特克斯和凯科斯群岛","countryCode":"1649"},{"countryName":"Uganda","countryNameChinese":"乌干达","countryCode":"256"},{"countryName":"Ukraine","countryNameChinese":"乌克兰","countryCode":"380"},{"countryName":"United Arab Emirates","countryNameChinese":"阿拉伯联合酋长国","countryCode":"971"},{"countryName":"United Kingdom","countryNameChinese":"英国","countryCode":"44"},{"countryName":"United States","countryNameChinese":"美国","countryCode":"1"},{"countryName":"Uruguay","countryNameChinese":"乌拉圭","countryCode":"598"},{"countryName":"Uzbekistan","countryNameChinese":"乌兹别克斯坦","countryCode":"998"},{"countryName":"Vanuatu","countryNameChinese":"瓦努阿图","countryCode":"678"},{"countryName":"Venezuela","countryNameChinese":"委内瑞拉","countryCode":"58"},{"countryName":"Vietnam","countryNameChinese":"越南","countryCode":"84"},{"countryName":"Virgin Islands, British","countryNameChinese":"英属处女群岛","countryCode":"1284"},{"countryName":"Virgin Islands, US","countryNameChinese":"美属维尔京群岛","countryCode":"1340"},{"countryName":"Yemen","countryNameChinese":"也门","countryCode":"967"},{"countryName":"Zambia","countryNameChinese":"赞比亚","countryCode":"260"},{"countryName":"Zimbabwe","countryNameChinese":"津巴布韦","countryCode":"263"}]')},"5bdf":function(t,e,a){"use strict";var n=a("ba97"),s=a.n(n);s.a},"5eff":function(t,e,a){"use strict";var n=a("4f78"),s=a.n(n);s.a},6946:function(t,e,a){},"6a57":function(t,e,a){},"6c8e":function(t,e,a){},7753:function(t,e,a){},"7afa":function(t,e,a){},"7c12":function(t,e,a){"use strict";var n=a("c474"),s=a.n(n);s.a},"823c":function(t,e,a){"use strict";var n=a("e75d"),s=a.n(n);s.a},8908:function(t,e,a){"use strict";var n=a("255e"),s=a.n(n);s.a},"892d":function(t,e,a){t.exports=a.p+"static/img/vip-head.8b8d02f3.jpg"},"8ab2":function(t,e,a){},9341:function(t,e,a){"use strict";var n=a("c0d2"),s=a.n(n);s.a},"937b":function(t,e,a){},"95f7":function(t,e,a){},"9b6e":function(t,e,a){"use strict";var n=a("1996"),s=a.n(n);s.a},a01c:function(t,e,a){"use strict";var n=a("3fe7"),s=a.n(n);s.a},a18b:function(t,e,a){"use strict";var n=a("c1e6"),s=a.n(n);s.a},af05:function(t,e,a){},b0a0:function(t,e,a){"use strict";var n=a("452c"),s=a.n(n);s.a},ba97:function(t,e,a){},bac8:function(t,e,a){"use strict";var n=a("0747"),s=a.n(n);s.a},c0d2:function(t,e,a){},c1e6:function(t,e,a){},c474:function(t,e,a){},cc86:function(t,e,a){"use strict";var n=a("7afa"),s=a.n(n);s.a},d484:function(t,e,a){},d549:function(t,e,a){"use strict";var n=a("8ab2"),s=a.n(n);s.a},d9cc:function(t,e,a){"use strict";var n=a("3b0c"),s=a.n(n);s.a},dc8c:function(t,e,a){"use strict";var n=a("e05b"),s=a.n(n);s.a},e05b:function(t,e,a){},e21d:function(t,e,a){"use strict";var n=a("1885"),s=a.n(n);s.a},e288:function(t,e,a){"use strict";var n=a("7753"),s=a.n(n);s.a},e75d:function(t,e,a){},ee94:function(t,e,a){},fadf:function(t,e,a){"use strict";var n=a("0ac4"),s=a.n(n);s.a}});