(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0d74":function(t,e){t.exports="/static/icon_head.png"},"0de9":function(t,e,n){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"===typeof __channelId__&&__channelId__}function o(t,e){switch(i(e)){case"Function":return"function() { [native code] }";default:return e}}function a(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];console[t].apply(console,n)}function s(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var a=e.shift();if(r())return e.push(e.pop().replace("at ","uni-app:///")),console[a].apply(console,e);var s=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,o)+"---END:JSON---"}catch(r){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var n=i(t).toUpperCase();t="NUMBER"===n||"BOOLEAN"===n?"---BEGIN:"+n+"---"+t+"---END:"+n+"---":String(t)}return t})),c="";if(s.length>1){var u=s.pop();c=s.join("---COMMA---"),0===u.indexOf(" at ")?c+=u:c+="---COMMA---"+u}else c=s[0];console[a](c)}n.r(e),n.d(e,"log",(function(){return a})),n.d(e,"default",(function(){return s}))},"103e":function(t,e,n){"use strict";n.r(e);var i=n("78d9"),r=n("e124");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a,s=n("f0c5"),c=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"993a535e",null,!1,i["a"],a);e["default"]=c.exports},1754:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={RTC_APPID:"ee0ca1b2bf559ea6823698acb0600e62",RTM_APPID:"ee0ca1b2bf559ea6823698acb0600e62"},r=i;e.default=r},"1bc9":function(t,e,n){"use strict";n.r(e);var i=n("d5c6"),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},"20b5":function(t,e,n){"use strict";n.r(e);var i=n("a6e0"),r=n("95a1");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a,s=n("f0c5"),c=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);e["default"]=c.exports},"2f62":function(t,e,n){"use strict";n.r(e),function(t){
/*!
 * vuex v3.4.0
 * (c) 2020 Evan You
 * @license MIT
 */
function i(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:i});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,n.call(this,t)}}function i(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,"Store",(function(){return m})),n.d(e,"createNamespacedHelpers",(function(){return L})),n.d(e,"install",(function(){return R})),n.d(e,"mapActions",(function(){return A})),n.d(e,"mapGetters",(function(){return M})),n.d(e,"mapMutations",(function(){return T})),n.d(e,"mapState",(function(){return O}));var r="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){o.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){o.emit("vuex:action",t,e)}),{prepend:!0}))}function s(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function c(t){return null!==t&&"object"===typeof t}function u(t){return t&&"function"===typeof t.then}function l(t,e){return function(){return t(e)}}var d=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(t,e){this._children[t]=e},d.prototype.removeChild=function(t){delete this._children[t]},d.prototype.getChild=function(t){return this._children[t]},d.prototype.hasChild=function(t){return t in this._children},d.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},d.prototype.forEachChild=function(t){s(this._children,t)},d.prototype.forEachGetter=function(t){this._rawModule.getters&&s(this._rawModule.getters,t)},d.prototype.forEachAction=function(t){this._rawModule.actions&&s(this._rawModule.actions,t)},d.prototype.forEachMutation=function(t){this._rawModule.mutations&&s(this._rawModule.mutations,t)},Object.defineProperties(d.prototype,f);var p=function(t){this.register([],t,!1)};function h(t,e,n){if(e.update(n),n.modules)for(var i in n.modules){if(!e.getChild(i))return void 0;h(t.concat(i),e.getChild(i),n.modules[i])}}p.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},p.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},p.prototype.update=function(t){h([],this.root,t)},p.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var r=new d(e,n);if(0===t.length)this.root=r;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],r)}e.modules&&s(e.modules,(function(e,r){i.register(t.concat(r),e,n)}))},p.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)},p.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return e.hasChild(n)};var v;var m=function(t){var e=this;void 0===t&&(t={}),!v&&"undefined"!==typeof window&&window.Vue&&R(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var r=this,o=this,s=o.dispatch,c=o.commit;this.dispatch=function(t,e){return s.call(r,t,e)},this.commit=function(t,e,n){return c.call(r,t,e,n)},this.strict=i;var u=this._modules.root.state;b(this,u,[],this._modules.root),y(this,u),n.forEach((function(t){return t(e)}));var l=void 0!==t.devtools?t.devtools:v.config.devtools;l&&a(this)},g={state:{configurable:!0}};function _(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function w(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;b(t,n,[],t._modules.root,!0),y(t,n,e)}function y(t,e,n){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,o={};s(r,(function(e,n){o[n]=l(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,t._vm=new v({data:{$$state:e},computed:o}),v.config.silent=a,t.strict&&P(t),i&&(n&&t._withCommit((function(){i._data.$$state=null})),v.nextTick((function(){return i.$destroy()})))}function b(t,e,n,i,r){var o=!n.length,a=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=i),!o&&!r){var s=k(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){v.set(s,c,i.state)}))}var u=i.context=x(t,a,n);i.forEachMutation((function(e,n){var i=a+n;I(t,i,e,u)})),i.forEachAction((function(e,n){var i=e.root?n:a+n,r=e.handler||e;j(t,i,r,u)})),i.forEachGetter((function(e,n){var i=a+n;$(t,i,e,u)})),i.forEachChild((function(i,o){b(t,e,n.concat(o),i,r)}))}function x(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var o=S(n,i,r),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:i?t.commit:function(n,i,r){var o=S(n,i,r),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return C(t,e)}},state:{get:function(){return k(t.state,n)}}}),r}function C(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,i)===e){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function I(t,e,n,i){var r=t._mutations[e]||(t._mutations[e]=[]);r.push((function(e){n.call(t,i.state,e)}))}function j(t,e,n,i){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return u(r)||(r=Promise.resolve(r)),t._devtoolHook?r.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):r}))}function $(t,e,n,i){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)})}function P(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function k(t,e){return e.reduce((function(t,e){return t[e]}),t)}function S(t,e,n){return c(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function R(t){v&&t===v||(v=t,i(v))}g.state.get=function(){return this._vm._data.$$state},g.state.set=function(t){0},m.prototype.commit=function(t,e,n){var i=this,r=S(t,e,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,i.state)})))},m.prototype.dispatch=function(t,e){var n=this,i=S(t,e),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){0}var c=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(u){0}e(t)}))}))}},m.prototype.subscribe=function(t,e){return _(t,this._subscribers,e)},m.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return _(n,this._actionSubscribers,e)},m.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch((function(){return t(i.state,i.getters)}),e,n)},m.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},m.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),b(this,this.state,t,this._modules.get(t),n.preserveState),y(this,this.state)},m.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=k(e.state,t.slice(0,-1));v.delete(n,t[t.length-1])})),w(this)},m.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},m.prototype.hotUpdate=function(t){this._modules.update(t),w(this,!0)},m.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(m.prototype,g);var O=U((function(t,e){var n={};return E(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=D(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0})),n})),T=U((function(t,e){var n={};return E(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.commit;if(t){var o=D(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),M=U((function(t,e){var n={};return E(e).forEach((function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||D(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0})),n})),A=U((function(t,e){var n={};return E(e).forEach((function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var o=D(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}})),n})),L=function(t){return{mapState:O.bind(null,t),mapGetters:M.bind(null,t),mapMutations:T.bind(null,t),mapActions:A.bind(null,t)}};function E(t){return N(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function N(t){return Array.isArray(t)||c(t)}function U(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function D(t,e,n){var i=t._modulesNamespaceMap[n];return i}var V={Store:m,install:R,version:"3.4.0",mapState:O,mapMutations:T,mapGetters:M,mapActions:A,createNamespacedHelpers:L};e["default"]=V}.call(this,n("c8ba"))},"30c7":function(t,e){t.exports="/static/icon_hangup.png"},"323b":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("a34a")),r=o(n("82f4"));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(i,r)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function s(t){a(o,i,r,s,c,"next",t)}function c(t){a(o,i,r,s,c,"throw",t)}s(void 0)}))}}var c={components:{ValidCode:r.default},data:function(){return{peeerUid:"",channelId:"",windowWidth:200,windowHeight:200,callTypeList:["\u89c6\u9891\u547c\u53eb","\u8bed\u97f3\u547c\u53eb"],disabledCall:!0}},created:function(){this.$store.dispatch("upDataPopubId","poPup-p2p");var t=this;uni.getSystemInfo({success:function(e){t.windowWidth=e.windowWidth,t.windowHeight=e.windowHeight}})},methods:{callBack:function(){uni.redirectTo({url:"index"})},getCode:function(t){t===this.$store.state.uid?this.$Utils.hintInfo("\u547c\u53eb\u7528\u6237\u4e0d\u80fd\u4e0e\u81ea\u5df1 uid \u4e00\u81f4","error"):this.peeerUid=t},setPage:function(){uni.navigateTo({url:"set"})},startCallFn:function(){var e=this;return s(i.default.mark((function n(){var r,o;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.peeerUid){n.next=20;break}return uni.showLoading({title:"\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u7a0d\u540e"}),n.next=4,e.$RTM.queryPeersOnlineStatus([e.peeerUid]);case 4:return r=n.sent,n.next=7,uni.hideLoading();case 7:if(t("log","\u67e5\u770b\u547c\u53eb\u7528\u6237\u662f\u5426\u5b58\u5728",r," at pages/index/p2p.vue:87"),0!==r.code||2==r.peerOnlineStatus[0].state){n.next=16;break}return e.$RTM.subscribePeersOnlineStatus([e.peeerUid]),n.next=12,new Promise((function(t,n){uni.showActionSheet({itemList:e.callTypeList,success:function(e){t(e)}})}));case 12:o=n.sent,e.disabledCall&&(e.disabledCall=!1,e.callFn(o.tapIndex)),n.next=18;break;case 16:e.$Utils.hintInfo(0===r.code?"\u547c\u53eb\u7528\u6237\u4e0d\u5728\u7ebf":"queryPeersOnlineStatus \u65b9\u6cd5\u8c03\u7528\u5931\u8d25\uff1a"+r.code,"error"),e.disabledCall=!0;case 18:n.next=21;break;case 20:e.$Utils.hintInfo("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u7528\u6237\uff0c\u547c\u53eb\u5bf9\u8c61\u4e0d\u80fd\u4e3a\u81ea\u5df1","error");case 21:case"end":return n.stop()}}),n)})))()},callFn:function(e){var n=this;return s(i.default.mark((function r(){var o,a;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,n.$Utils.generateNumber(9);case 2:return n.channelId=i.sent,o={Mode:e,Conference:!1,ChanId:n.channelId+"",UserData:"",SipData:"",VidCodec:["H264"],AudCodec:["Opus"]},i.next=6,n.$RTM.sendLocalInvitation(n.peeerUid,o);case 6:a=i.sent,t("log","\u53d1\u8d77\u547c\u53eb",a," at pages/index/p2p.vue:130"),0!=a&&5!=a?(t("log",a," at pages/index/p2p.vue:132"),n.$Utils.hintInfo("\u8c03\u7528 sendLocalInvitation \u53d1\u9001\u547c\u53eb\u5931\u8d25"),n.disabledCall=!0):n.disabledCall=!1;case 9:case"end":return i.stop()}}),r)})))()}}};e.default=c}).call(this,n("0de9")["default"])},"345a":function(t,e){t.exports="/static/animation.png"},"34d3":function(t,e){t.exports="/static/icon_set.png"},4454:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a"));function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(i,r)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,c,"next",t)}function c(t){o(a,i,r,s,c,"throw",t)}s(void 0)}))}}var s={data:function(){return{resolution:"240 * 320",resolutionList:["240 * 320","480 * 640","720 * 1280"],frameRate:"15",frameRateList:["15","24","30"]}},methods:{switchFn:function(t){this.$store.dispatch("upDataetAudioAiNoise",t.target.value)},resolutionFn:function(){var t=this;return a(i.default.mark((function e(){var n,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e,n){uni.showActionSheet({itemList:t.resolutionList,success:function(t){e(t)}})}));case 2:n=e.sent,t.resolution=t.resolutionList[n.tapIndex],r=t.resolution.split("*"),t.$store.dispatch("upDataVideoConfig",{width:Number(r[0]),height:Number(r[1])});case 6:case"end":return e.stop()}}),e)})))()},frameRateFn:function(){var t=this;return a(i.default.mark((function e(){var n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e,n){uni.showActionSheet({itemList:t.frameRateList,success:function(t){e(t)}})}));case 2:n=e.sent,t.frameRate=t.frameRateList[n.tapIndex],t.$store.dispatch("upDataVideoConfig",{frameRate:Number(t.frameRate)});case 5:case"end":return e.stop()}}),e)})))()}}};e.default=s},"4e11":function(t,e,n){"use strict";var i=s(n("8bbf")),r=n("d8cf"),o=s(n("9787")),a=s(n("f678"));function s(t){return t&&t.__esModule?t:{default:t}}i.default.prototype.$Utils=r.Utils,i.default.prototype.$RTMUtils=r.RTMUtils,i.default.prototype.$RTM=o.default,i.default.prototype.$RTC=a.default,i.default.prototype.$RTCUtils=r.RTCUtils},"594e":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("a34a"));function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(i,r)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,c,"next",t)}function c(t){o(a,i,r,s,c,"throw",t)}s(void 0)}))}}var s={onLoad:function(t){if(t.info){this.$store.dispatch("upDataPopubId","poPup-rtm");var e=JSON.parse(t.info);this.mode=e.mode,this.type=e.type,this.uid=e.uid}var n=this;uni.getSystemInfo({success:function(t){n.windowWidth=t.windowWidth,n.windowHeight=t.windowHeight}})},data:function(){return{uid:"",mode:"",type:"",windowHeight:400,windowWidth:200,current:"rtm",network:!1}},created:function(){var t=this;uni.onNetworkStatusChange((function(e){if(e.isConnected||"rtm"!=t.current){if(t.network=!0){t.network=!1;var n=setInterval((function(){var e=t.$RTM.getLoginStatu();3==e.state&&2==e.reason&&(t.cancelFn(),clearInterval(n))}),500)}}else setTimeout((function(){t.network=!0}))}))},methods:{cancelFn:function(){var e=this;return a(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.$Utils.restoreAll(),"\u4e3b\u53eb"!==e.type){n.next=6;break}return n.next=4,e.$RTM.cancelLocalInvitation(e.uid);case 4:n.next=9;break;case 6:return t("log","\u88ab\u53eb\u6302\u65ad(\u62d2\u7edd\u5bf9\u65b9\u7684\u547c\u53eb\u9080\u8bf7)",e.uid," at pages/index/rtmPage.vue:104"),n.next=9,e.$RTM.refuseRemoteInvitation(e.uid);case 9:uni.$emit("sendMessageToPeer",{Cmd:"EndCall",peerid:e.uid});case 10:case"end":return n.stop()}}),n)})))()},acceptFn:function(){this.current="rtc",this.$RTM.acceptRemoteInvitation(this.uid,{Mode:"\u89c6\u9891"===this.mode?0:1,Conference:!1,UserData:"",SipData:""})},switchFn:function(){this.current="rtc",this.$RTM.acceptRemoteInvitation(this.uid,{Mode:1,Conference:!1,UserData:"",SipData:""})}}};e.default=s}).call(this,n("0de9")["default"])},"69c7":function(t,e,n){"undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/index/index",(function(){return Vue.extend(n("b962").default)})),__definePage("pages/index/p2p",(function(){return Vue.extend(n("20b5").default)})),__definePage("pages/index/rtmPage",(function(){return Vue.extend(n("b9df").default)})),__definePage("pages/index/set",(function(){return Vue.extend(n("103e").default)}))},"6a58":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","code-area"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","flex-box"),attrs:{_i:1}},[n("input",{staticClass:t._$s(2,"sc","hide-input"),attrs:{value:t._$s(2,"a-value",t.val),maxlength:t._$s(2,"a-maxlength",t.maxlength),_i:2},on:{input:t.getVal}}),n("view",{class:t._$s(3,"c",["item",{active:1==t.codeIndex}]),attrs:{_i:3}},[n("view",{staticClass:t._$s(4,"sc","line"),attrs:{_i:4}}),t._$s(5,"i",t.isPwd&&t.codeArr.length>=1)?[n("text",{staticClass:t._$s(6,"sc","dot"),attrs:{_i:6}})]:[t._v(t._$s(7,"t0-0",t._s(t.codeArr[0]?t.codeArr[0]:"")))]],2),n("view",{class:t._$s(8,"c",["item",{active:2==t.codeIndex}]),attrs:{_i:8}},[n("view",{staticClass:t._$s(9,"sc","line"),attrs:{_i:9}}),t._$s(10,"i",t.isPwd&&t.codeArr.length>=2)?[n("text",{staticClass:t._$s(11,"sc","dot"),attrs:{_i:11}})]:[t._v(t._$s(12,"t0-0",t._s(t.codeArr[1]?t.codeArr[1]:"")))]],2),n("view",{class:t._$s(13,"c",["item",{active:3==t.codeIndex}]),attrs:{_i:13}},[n("view",{staticClass:t._$s(14,"sc","line"),attrs:{_i:14}}),t._$s(15,"i",t.isPwd&&t.codeArr.length>=3)?[n("text",{staticClass:t._$s(16,"sc","dot"),attrs:{_i:16}})]:[t._v(t._$s(17,"t0-0",t._s(t.codeArr[2]?t.codeArr[2]:"")))]],2),n("view",{class:t._$s(18,"c",["item",{active:4==t.codeIndex}]),attrs:{_i:18}},[n("view",{staticClass:t._$s(19,"sc","line"),attrs:{_i:19}}),t._$s(20,"i",t.isPwd&&t.codeArr.length>=4)?[n("text",{staticClass:t._$s(21,"sc","dot"),attrs:{_i:21}})]:[t._v(t._$s(22,"t0-0",t._s(t.codeArr[3]?t.codeArr[3]:"")))]],2),t._$s(23,"i",6===t.maxlength)?[n("view",{class:t._$s(24,"c",["item",{active:5==t.codeIndex}]),attrs:{_i:24}},[n("view",{staticClass:t._$s(25,"sc","line"),attrs:{_i:25}}),t._$s(26,"i",t.isPwd&&t.codeArr.length>=5)?[n("text",{staticClass:t._$s(27,"sc","dot"),attrs:{_i:27}})]:[t._v(t._$s(28,"t0-0",t._s(t.codeArr[4]?t.codeArr[4]:"")))]],2),n("view",{class:t._$s(29,"c",["item",{active:6==t.codeIndex}]),attrs:{_i:29}},[n("view",{staticClass:t._$s(30,"sc","line"),attrs:{_i:30}}),t._$s(31,"i",t.isPwd&&t.codeArr.length>=6)?[n("text",{staticClass:t._$s(32,"sc","dot"),attrs:{_i:32}})]:[t._v(t._$s(33,"t0-0",t._s(t.codeArr[5]?t.codeArr[5]:"")))]],2)]:t._e()],2)])},o=[]},"78d9":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","conent"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","type"),attrs:{_i:1}},[i("text",{staticClass:t._$s(2,"sc","text"),attrs:{_i:2}}),i("view",{staticClass:t._$s(3,"sc","py-1 flex"),attrs:{_i:3},on:{click:t.resolutionFn}},[i("text",[t._v(t._$s(4,"t0-0",t._s(t.resolution)))]),i("image",{attrs:{src:t._$s(5,"a-src",n("a039")),_i:5}})])]),i("view",{staticClass:t._$s(6,"sc","type"),attrs:{_i:6}},[i("text",{staticClass:t._$s(7,"sc","text"),attrs:{_i:7}}),i("view",{staticClass:t._$s(8,"sc","flex py-1"),attrs:{_i:8},on:{click:t.frameRateFn}},[i("text",[t._v(t._$s(9,"t0-0",t._s(t.frameRate)))]),i("image",{attrs:{src:t._$s(10,"a-src",n("a039")),_i:10}})])]),i("view",{staticClass:t._$s(11,"sc","type flex"),attrs:{_i:11}},[i("text"),i("switch",{attrs:{_i:13},on:{change:t.switchFn}})])])},o=[]},"7e1e":function(t,e,n){"use strict";n.r(e);var i=n("e822"),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},"82f4":function(t,e,n){"use strict";n.r(e);var i=n("6a58"),r=n("1bc9");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a,s=n("f0c5"),c=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);e["default"]=c.exports},"876f":function(t,e,n){"use strict";n.r(e);var i=n("dc7c");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var o,a,s,c,u=n("f0c5"),l=Object(u["a"])(i["default"],o,a,!1,null,null,null,!1,s,c);e["default"]=l.exports},"8a45":function(t,e,n){"use strict";n("69c7");var i=a(n("8bbf")),r=a(n("876f")),o=a(n("f9bc"));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n("4e11"),i.default.prototype.$store=o.default,i.default.config.productionTip=!1,r.default.mpType="app";var l=new i.default(c(c({},r.default),{},{store:o.default}));l.$mount()},"8bbf":function(t,e){t.exports=Vue},"8c1a":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","conent content_bg"),style:t._$s(0,"s",{width:t.windowWidth+"px",height:t.windowHeight+"px"}),attrs:{_i:0}},[i("view",[i("image",{attrs:{src:t._$s(2,"a-src",n("0d74")),_i:2}})]),i("text",{staticClass:t._$s(3,"sc","m-2"),attrs:{_i:3}},[t._v(t._$s(3,"t0-0",t._s(t.uid)))]),i("view",[i("image",{attrs:{src:t._$s(5,"a-src",n("345a")),_i:5}}),i("text",{staticClass:t._$s(6,"sc","m-2"),attrs:{_i:6}},[t._v(t._$s(6,"t0-0",t._s("\u4e3b\u53eb"===t.type?t.mode+"\u547c\u53eb\u4e2d":"\u6536\u5230\u4e3b\u53eb\u53d1\u8d77\u7684"+t.mode)))])]),i("view",{staticClass:t._$s(7,"sc","options"),attrs:{_i:7}},[i("view",[t._$s(9,"i","\u88ab\u53eb"===t.type&&"\u89c6\u9891"===t.mode)?i("view",{staticClass:t._$s(9,"sc","icon"),attrs:{_i:9},on:{click:t.switchFn}},[i("image",{staticClass:t._$s(10,"sc","icon_img"),attrs:{src:t._$s(10,"a-src",n("d2fa")),_i:10}}),i("text",{staticClass:t._$s(11,"sc","icon_text"),attrs:{_i:11}})]):t._e()]),i("view",{staticClass:t._$s(12,"sc","type"),style:t._$s(12,"s",{justifyContent:"\u88ab\u53eb"===t.type?"space-between":"center"}),attrs:{_i:12}},[i("view",{staticClass:t._$s(13,"sc","icon"),attrs:{_i:13},on:{click:t.cancelFn}},[i("image",{staticClass:t._$s(14,"sc","icon_img"),attrs:{src:t._$s(14,"a-src",n("30c7")),_i:14}}),i("text",{staticClass:t._$s(15,"sc","icon_text"),attrs:{_i:15}})]),t._$s(16,"i","\u88ab\u53eb"===t.type)?i("view",{staticClass:t._$s(16,"sc","icon"),attrs:{_i:16},on:{click:t.acceptFn}},[i("image",{staticClass:t._$s(17,"sc","icon_img"),attrs:{src:t._$s(17,"a-src",n("f485")),_i:17}}),i("text",{staticClass:t._$s(18,"sc","icon_text"),attrs:{_i:18}})]):t._e()])])])},o=[]},9524:function(t,e){t.exports="/static/icon_logo.png"},"95a1":function(t,e,n){"use strict";n.r(e);var i=n("323b"),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},"96cf":function(t,e){!function(e){"use strict";var n,i=Object.prototype,r=i.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"===typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{l=e.regeneratorRuntime=u?t.exports:{},l.wrap=y;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",v={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,_=g&&g(g(T([])));_&&_!==i&&r.call(_,a)&&(m=_);var w=I.prototype=x.prototype=Object.create(m);C.prototype=w.constructor=I,I.constructor=C,I[c]=C.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===C||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,I):(t.__proto__=I,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(w),t},l.awrap=function(t){return{__await:t}},j($.prototype),$.prototype[s]=function(){return this},l.AsyncIterator=$,l.async=function(t,e,n,i){var r=new $(y(t,e,n,i));return l.isGeneratorFunction(e)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},j(w),w[c]="Generator",w[a]=function(){return this},w.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},l.values=T,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(R),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(i,r){return s.type="throw",s.arg=t,e.next=i,r&&(e.method="next",e.arg=n),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;R(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:T(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=n),v}}}function y(t,e,n,i){var r=e&&e.prototype instanceof x?e:x,o=Object.create(r.prototype),a=new O(i||[]);return o._invoke=P(t,n,a),o}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(i){return{type:"throw",arg:i}}}function x(){}function C(){}function I(){}function j(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function $(t){function e(n,i,o,a){var s=b(t[n],t,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return e("throw",t,o,a)}))}a(s.arg)}var n;function i(t,i){function r(){return new Promise((function(n,r){e(t,i,n,r)}))}return n=n?n.then(r,r):r()}this._invoke=i}function P(t,e,n){var i=d;return function(r,o){if(i===p)throw new Error("Generator is already running");if(i===h){if("throw"===r)throw o;return M()}n.method=r,n.arg=o;while(1){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var c=b(t,e,n);if("normal"===c.type){if(i=n.done?h:f,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=h,n.method="throw",n.arg=c.arg)}}}function k(t,e){var i=t.iterator[e.method];if(i===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=b(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,v;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){while(++i<t.length)if(r.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:M}}function M(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},9787:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("a34a")),r=a(n("1754")),o=n("d8cf");function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(i,r)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){s(o,i,r,a,c,"next",t)}function c(t){s(o,i,r,a,c,"throw",t)}a(void 0)}))}}var u=uni.requireNativePlugin("AR-RtmModule"),l={type:!1,logining:{state:0,reson:0}},d={init:function(){var e=c(i.default.mark((function e(){var n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=""+o.Utils.generateNumber(4),e.next=3,u.setCallBack((function(t){d.callBack(t)}));case 3:return e.next=5,u.createInstance({appId:r.default.RTM_APPID},(function(e){t("log",e," at until/rtm.js:32")}));case 5:return e.next=7,u.login({token:"",userId:n},(function(e){t("log","\u767b\u5f55 RTM \u7cfb\u7edf",e," at until/rtm.js:39"),o.RTMUtils.useLogin(e.code,n)}));case 7:return e.next=9,u.setCallEventListener();case 9:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}(),callBack:function(e){switch(t("log","\u56de\u8c03",e.rtmEvent," at until/rtm.js:47"),e.rtmEvent){case"onConnectionStateChanged":l.logining={state:e.state,reason:e.reason},o.RTMUtils.ConnectionStateChanged(e.state,e.reason);break;case"onPeerMessageReceived":o.RTMUtils.PeerMessageReceived(e.text,e.peerId);break;case"onPeersOnlineStatusChanged":uni.$emit("PeersOnlineStatusChanged",e);break;case"onLocalInvitationAccepted":o.RTMUtils.LocalInvitationAccepted(e);break;case"onLocalInvitationCanceled":o.RTMUtils.LocalInvitationCanceled(e);break;case"onLocalInvitationFailure":o.RTMUtils.LocalInvitationFailure(e);break;case"onLocalInvitationReceivedByPeer":o.RTMUtils.LocalInvitationReceivedByPeer(e);break;case"onLocalInvitationRefused":o.RTMUtils.LocalInvitationRefused(e);break;case"onRemoteInvitationAccepted":o.RTMUtils.RemoteInvitationAccepted(e);break;case"onRemoteInvitationCanceled":o.RTMUtils.RemoteInvitationCanceled(e);break;case"onRemoteInvitationFailure":o.RTMUtils.RemoteInvitationFailure(e);break;case"onRemoteInvitationReceived":o.RTMUtils.RemoteInvitationReceived(e,d.refuseRemoteInvitation);break;case"onRemoteInvitationRefused":o.RTMUtils.RemoteInvitationRefused(e);break;default:break}},leave:function(){var e=c(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,u.logout((function(e){t("log","\u767b\u51fa RTM logout \u65b9\u6cd5\u8c03\u7528",0===e.code?"\u6210\u529f":"\u5931\u8d25\uff1a"+e," at until/rtm.js:113")}));case 2:return e.next=4,u.release((function(e){t("log","\u91ca\u653e RTM\u5b9e\u4f8b release \u65b9\u6cd5\u8c03\u7528",0===e.code?"\u6210\u529f":"\u5931\u8d25\uff1a"+e," at until/rtm.js:117")}));case 4:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}(),getLoginStatu:function(){return l.logining},queryPeersOnlineStatus:function(){var t=c(i.default.mark((function t(e){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t,n){u.queryPeersOnlineStatus({peerIds:e},(function(e){t(e)}))}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}(),subscribePeersOnlineStatus:function(e){u.subscribePeersOnlineStatus({peerIds:e},(function(e){t("log","\u8ba2\u9605\u6307\u5b9a\u5355\u4e2a\u6216\u591a\u4e2a\u7528\u6237\u7684\u5728\u7ebf\u72b6\u6001",e," at until/rtm.js:140")}))},unsubscribePeersOnlineStatus:function(e){u.unsubscribePeersOnlineStatus({peerIds:e},(function(e){t("log","\u53d6\u6d88\u8ba2\u9605\u6307\u5b9a\u5355\u4e2a\u6216\u591a\u4e2a\u7528\u6237\u7684\u5728\u7ebf\u72b6\u6001",e," at until/rtm.js:149")}))},sendMessageToPeer:function(e,n){t("log","massge",n," at until/rtm.js:154"),u.sendMessageToPeer({peerId:e+"",text:JSON.stringify({Cmd:n}),enableHistoricalMessaging:!0,enableOfflineMessaging:!0},(function(e){t("log","\u5411\u6307\u5b9a\u7528\u6237\u53d1\u9001\u70b9\u5bf9\u70b9\u6d88\u606f sendMessageToPeer \u65b9\u6cd5\u8c03\u7528",0===e.code?"\u6210\u529f":"\u5931\u8d25\uff1a"+JSON.stringify(e)," at until/rtm.js:164")}))},sendLocalInvitation:function(){var e=c(i.default.mark((function e(n,r){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t("log","\u53d1\u9001\u547c\u53eb\u9080\u8bf7\u7ed9\u5bf9\u65b9\u7684\u6d88\u606f",JSON.stringify(r)," at until/rtm.js:170"),l.type=!0,e.next=4,new Promise((function(t,e){u.sendLocalInvitation({calleeId:n,content:JSON.stringify(r)},(function(e){t(e.code)}))}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));function n(t,n){return e.apply(this,arguments)}return n}(),acceptRemoteInvitation:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";l.type=!1,u.acceptRemoteInvitation({calleeId:t,response:e?JSON.stringify(e):""},(function(t){o.Utils.hintInfo(0===t.code?"":"\u8c03\u7528 acceptRemoteInvitation \u63a5\u53d7\u6765\u81ea\u5bf9\u65b9\u7684\u547c\u53eb\u9080\u8bf7\u5931\u8d25")})),d.subscribePeersOnlineStatus([t])},refuseRemoteInvitation:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";l.type=!1,u.refuseRemoteInvitation({calleeId:t,response:e?JSON.stringify(e):""},(function(t){o.Utils.hintInfo(0===t.code?"":"\u8c03\u7528 cancelLocalInvitation \u53d6\u6d88\u547c\u53eb\u5931\u8d25")}))},cancelLocalInvitation:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t("log","\u53d6\u6d88\u7ed9\u5bf9\u65b9\u7684\u547c\u53eb\u9080\u8bf7"," at until/rtm.js:209"),l.type=!1,u.cancelLocalInvitation({calleeId:e,content:n?JSON.stringify(n):""},(function(e){t("log","\u53d6\u6d88\u7ed9\u5bf9\u65b9\u7684\u547c\u53eb\u9080\u8bf7",e," at until/rtm.js:215"),o.Utils.hintInfo(0===e.code?"":"\u8c03\u7528 cancelLocalInvitation \u53d6\u6d88\u547c\u53eb\u5931\u8d25")})),d.unsubscribePeersOnlineStatus([e])}};uni.$on("sendMessageToPeer",(function(t){"EndCall"===t.Cmd?(d.sendMessageToPeer(t.peerid,t.Cmd),d.unsubscribePeersOnlineStatus([t.peerid])):"SwitchAudio"===t.Cmd?d.sendMessageToPeer(t.peerid,t.Cmd):"InitiativeCall"===t.Cmd&&(1==l.type?d.cancelLocalInvitation(t.peerid):d.refuseRemoteInvitation(t.peerid),d.unsubscribePeersOnlineStatus([t.peerid]))}));var f=d;e.default=f}).call(this,n("0de9")["default"])},a039:function(t,e){t.exports="/static/you.png"},a34a:function(t,e,n){t.exports=n("bbdd")},a6e0:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","content_bg"),style:t._$s(0,"s",{width:t.windowWidth+"px",height:t.windowHeight+"px"}),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","nav"),attrs:{_i:1}},[i("image",{attrs:{src:t._$s(2,"a-src",n("d2c7")),_i:2},on:{click:t.callBack}}),i("text",{staticClass:t._$s(3,"sc","text_color"),attrs:{_i:3}}),i("image",{attrs:{src:t._$s(4,"a-src",n("34d3")),_i:4},on:{click:t.setPage}})]),i("view",{staticClass:t._$s(5,"sc","content"),attrs:{_i:5}},[i("text",{staticClass:t._$s(6,"sc","m-2 text_color"),attrs:{_i:6}}),i("ValidCode",{staticClass:t._$s(7,"sc","m-2"),attrs:{maxlength:4,isPwd:!1,_i:7},on:{finish:t.getCode}})],1),i("view",[i("button",{attrs:{disabled:t._$s(9,"a-disabled",t.peeerUid.length<=3),_i:9},on:{click:t.startCallFn}}),i("text",{staticClass:t._$s(10,"sc","text_color"),attrs:{_i:10}},[t._v(t._$s(10,"t0-0",t._s(t.$store.state.uid?t.$store.state.uid:"\u672a\u767b\u5f55")))])])])},o=[]},b7b9:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","content_bg"),style:t._$s(0,"s",{width:t.windowWidth+"px",height:t.windowHeight+"px"}),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","content colum_flex"),attrs:{_i:1}},[i("view",{staticClass:t._$s(2,"sc","colum_flex"),attrs:{_i:2}},[i("image",{attrs:{src:t._$s(3,"a-src",n("9524")),_i:3}}),i("text")]),i("view",{staticClass:t._$s(5,"sc","colum_flex"),attrs:{_i:5}},[i("view",[i("view",{staticClass:t._$s(7,"sc","p-2 colum_flex"),attrs:{_i:7},on:{click:function(e){return t.goBack("p2p")}}},[i("image",{attrs:{src:t._$s(8,"a-src",n("c220")),_i:8}}),i("text")])]),i("text",[t._v(t._$s(10,"t0-0",t._s(t.$store.state.uid?t.$store.state.uid:"\u672a\u767b\u5f55")))])])])])},o=[]},b962:function(t,e,n){"use strict";n.r(e);var i=n("b7b9"),r=n("7e1e");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a,s=n("f0c5"),c=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"a779c33a",null,!1,i["a"],a);e["default"]=c.exports},b9df:function(t,e,n){"use strict";n.r(e);var i=n("8c1a"),r=n("f0ca");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a,s=n("f0c5"),c=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"fe370a1c",null,!1,i["a"],a);e["default"]=c.exports},ba94:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={warning:{8:"\u6307\u5b9a\u7684 View \u65e0\u6548\uff0c\u4f7f\u7528\u89c6\u9891\u529f\u80fd\u65f6\u9700\u8981\u6307\u5b9a view",16:"\u521d\u59cb\u5316\u89c6\u9891\u529f\u80fd\u5931\u8d25\u3002\u6709\u53ef\u80fd\u662f\u56e0\u89c6\u9891\u8d44\u6e90\u88ab\u5360\u7528\u5bfc\u81f4\u7684\u3002\u7528\u6237\u65e0\u6cd5\u770b\u5230\u89c6\u9891\u753b\u9762\uff0c\u4f46\u4e0d\u5f71\u54cd\u8bed\u97f3\u901a\u4fe1",20:"\u8bf7\u6c42\u5904\u4e8e\u5f85\u5b9a\u72b6\u6001\u3002\u4e00\u822c\u662f\u7531\u4e8e\u67d0\u4e2a\u6a21\u5757\u8fd8\u6ca1\u51c6\u5907\u597d\uff0c\u8bf7\u6c42\u88ab\u5ef6\u8fdf\u5904\u7406",103:"\u6ca1\u6709\u53ef\u7528\u7684\u9891\u9053\u8d44\u6e90\u3002\u53ef\u80fd\u662f\u56e0\u4e3a\u670d\u52a1\u7aef\u6ca1\u6cd5\u5206\u914d\u9891\u9053\u8d44\u6e90",104:"\u67e5\u627e\u9891\u9053\u8d85\u65f6\u3002\u5728\u52a0\u5165\u9891\u9053\u65f6 SDK \u5148\u8981\u67e5\u627e\u6307\u5b9a\u7684\u9891\u9053\uff0c\u51fa\u73b0\u8be5\u8b66\u544a\u4e00\u822c\u662f\u56e0\u4e3a\u7f51\u7edc\u592a\u5dee\uff0c\u8fde\u63a5\u4e0d\u5230\u670d\u52a1\u5668",106:"\u6253\u5f00\u9891\u9053\u8d85\u65f6\u3002\u67e5\u627e\u5230\u6307\u5b9a\u9891\u9053\u540e\uff0cSDK \u63a5\u7740\u6253\u5f00\u8be5\u9891\u9053\uff0c\u8d85\u65f6\u4e00\u822c\u662f\u56e0\u4e3a\u7f51\u7edc\u592a\u5dee\uff0c\u8fde\u63a5\u4e0d\u5230\u670d\u52a1\u5668",107:"\u6253\u5f00\u9891\u9053\u8bf7\u6c42\u88ab\u670d\u52a1\u5668\u62d2\u7edd\u3002\u670d\u52a1\u5668\u53ef\u80fd\u6ca1\u6709\u529e\u6cd5\u5904\u7406\u8be5\u8bf7\u6c42\u6216\u8be5\u8bf7\u6c42\u662f\u975e\u6cd5\u7684",121:"TICKET \u975e\u6cd5\uff0c\u6253\u5f00\u9891\u9053\u5931\u8d25",122:"\u5c1d\u8bd5\u6253\u5f00\u53e6\u4e00\u4e2a\u670d\u52a1\u5668",701:"\u6253\u5f00\u4f34\u594f\u51fa\u9519",1014:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u8fd0\u884c\u65f6\u64ad\u653e\u8bbe\u5907\u51fa\u73b0\u8b66\u544a",1016:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u8fd0\u884c\u65f6\u5f55\u97f3\u8bbe\u5907\u51fa\u73b0\u8b66\u544a",1019:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u6ca1\u6709\u91c7\u96c6\u5230\u6709\u6548\u7684\u58f0\u97f3\u6570\u636e",1025:"\u97f3\u9891\u64ad\u653e\u6216\u91c7\u96c6\u88ab\u7cfb\u7edf\u4e8b\u4ef6\uff08\u5982\u6765\u7535\uff09\u6253\u6270",1033:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u5f55\u5236\u8bbe\u5907\u88ab\u5360\u7528",1051:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u5f55\u97f3\u58f0\u97f3\u68c0\u67e5\u5230\u5578\u53eb"},errore:{0:"\u6ca1\u6709\u9519\u8bef",1:"\u4e00\u822c\u6027\u7684\u9519\u8bef\uff08\u6ca1\u6709\u660e\u786e\u5f52\u7c7b\u7684\u9519\u8bef\u539f\u56e0\uff09",2:"API \u8c03\u7528\u4e86\u65e0\u6548\u7684\u53c2\u6570\u3002\u4f8b\u5982\u6307\u5b9a\u7684\u9891\u9053\u540d\u542b\u6709\u975e\u6cd5\u5b57\u7b26",3:"SDK \u521d\u59cb\u5316\u5931\u8d25",4:"SDK \u5f53\u524d\u72b6\u6001\u4e0d\u652f\u6301\u6b64\u64cd\u4f5c",5:"\u8c03\u7528\u88ab\u62d2\u7edd",6:"\u4f20\u5165\u7684\u7f13\u51b2\u533a\u5927\u5c0f\u4e0d\u8db3\u4ee5\u5b58\u653e\u8fd4\u56de\u7684\u6570\u636e",7:"SDK \u5c1a\u672a\u521d\u59cb\u5316\uff0c\u5c31\u8c03\u7528\u5176 API\u3002\u8bf7\u786e\u8ba4\u5728\u8c03\u7528 API \u4e4b\u524d\u5df2\u521b\u5efa RtcEngine \u5bf9\u8c61\u5e76\u5b8c\u6210\u521d\u59cb\u5316",8:"\u6307\u5b9a\u7684 View \u65e0\u6548\uff0c\u4f7f\u7528\u89c6\u9891\u529f\u80fd\u65f6\u9700\u8981\u6307\u5b9a View",9:"\u6ca1\u6709\u64cd\u4f5c\u6743\u9650\u3002\u8bf7\u68c0\u67e5\u7528\u6237\u662f\u5426\u6388\u4e88 app \u97f3\u89c6\u9891\u8bbe\u5907\u4f7f\u7528\u6743\u9650",10:"API \u8c03\u7528\u8d85\u65f6\u3002\u6709\u4e9b API \u8c03\u7528\u9700\u8981 SDK \u8fd4\u56de\u7ed3\u679c\uff0c\u5982\u679c SDK \u5904\u7406\u65f6\u95f4\u8fc7\u957f\uff0c\u8d85\u8fc7 10 \u79d2\u6ca1\u6709\u8fd4\u56de\uff0c\u4f1a\u51fa\u73b0\u6b64\u9519\u8bef",11:"\u8bf7\u6c42\u88ab\u53d6\u6d88",12:"\u8c03\u7528\u9891\u7387\u592a\u9ad8",13:"SDK \u5185\u90e8\u7ed1\u5b9a\u5230\u7f51\u7edc Socket \u5931\u8d25",14:"\u7f51\u7edc\u4e0d\u53ef\u7528",15:"\u6ca1\u6709\u7f51\u7edc\u7f13\u51b2\u533a\u53ef\u7528",16:"\u521d\u59cb\u5316\u89c6\u9891\u529f\u80fd\u5931\u8d25\u3002\u6709\u53ef\u80fd\u662f\u56e0\u89c6\u9891\u8d44\u6e90\u88ab\u5360\u7528\u5bfc\u81f4\u7684\u3002\u7528\u6237\u65e0\u6cd5\u770b\u5230\u89c6\u9891\u753b\u9762\uff0c\u4f46\u4e0d\u5f71\u54cd\u8bed\u97f3\u901a\u4fe1",17:"\u52a0\u5165\u9891\u9053\u88ab\u62d2\u7edd",18:"\u79bb\u5f00\u9891\u9053\u5931\u8d25",19:"\u8d44\u6e90\u5df2\u88ab\u5360\u7528\uff0c\u4e0d\u80fd\u91cd\u590d\u4f7f\u7528",101:"\u4e0d\u662f\u6709\u6548\u7684 APP ID\u3002\u8bf7\u66f4\u6362\u6709\u6548\u7684 APP ID \u91cd\u65b0\u52a0\u5165\u9891\u9053",102:"\u4e0d\u662f\u6709\u6548\u7684\u9891\u9053\u540d\u3002\u8bf7\u66f4\u6362\u6709\u6548\u7684\u9891\u9053\u540d\u91cd\u65b0\u52a0\u5165\u9891\u9053",110:"\u5f00\u542f\u4e86 token \u6821\u9a8c\u4f46\u6ca1\u6709\u8f93\u5165 token",111:"\u7f51\u7edc\u8fde\u63a5\u4e2d\u65ad",112:"\u7f51\u7edc\u8fde\u63a5\u4e22\u5931",113:"\u5728\u8c03\u7528 sendStreamMessage \u65f6\uff0c\u7528\u6237\u4e0d\u5728\u9891\u9053\u5185",114:"\u5728\u8c03\u7528 sendStreamMessage \u65f6\uff0c\u53d1\u9001\u7684\u6570\u636e\u957f\u5ea6\u5927\u4e8e 1024 \u4e2a\u5b57\u8282",115:"\u5728\u8c03\u7528 sendStreamMessage \u65f6\uff0c\u53d1\u9001\u7684\u6570\u636e\u7801\u7387\u8d85\u8fc7\u9650\u5236\uff086KB/s\uff09",116:"\u5728\u8c03\u7528 createDataStream \u65f6\uff0c\u521b\u5efa\u7684\u6570\u636e\u901a\u9053\u8fc7\u591a\uff08\u8d85\u8fc7 5 \u4e2a\u901a\u9053\uff09",120:"\u89e3\u5bc6\u5931\u8d25\uff0c\u53ef\u80fd\u662f\u7528\u6237\u52a0\u5165\u9891\u9053\u7528\u4e86\u4e0d\u540c\u7684\u5bc6\u7801\u3002\u8bf7\u68c0\u67e5\u52a0\u5165\u9891\u9053\u65f6\u7684\u8bbe\u7f6e\uff0c\u6216\u5c1d\u8bd5\u91cd\u65b0\u52a0\u5165\u9891\u9053",123:"\u6b64\u7528\u6237\u88ab\u670d\u52a1\u5668\u7981\u6b62",125:"\u6c34\u5370\u6587\u4ef6\u8def\u5f84\u9519\u8bef",134:"\u65e0\u6548\u7684 User account",1001:"\u52a0\u8f7d\u5a92\u4f53\u5f15\u64ce\u5931\u8d25",1002:"\u542f\u52a8\u5a92\u4f53\u5f15\u64ce\u5f00\u59cb\u901a\u8bdd\u5931\u8d25\u3002\u8bf7\u5c1d\u8bd5\u91cd\u65b0\u8fdb\u5165\u9891\u9053",1004:"\u542f\u52a8\u89c6\u9891\u6e32\u67d3\u6a21\u5757\u5931\u8d25",1005:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u97f3\u9891\u8bbe\u5907\u51fa\u73b0\u9519\u8bef\uff08\u672a\u660e\u786e\u6307\u660e\u4e3a\u4f55\u79cd\u9519\u8bef\uff09\u3002\u8bf7\u68c0\u67e5\u97f3\u9891\u8bbe\u5907\u662f\u5426\u88ab\u5176\u4ed6\u5e94\u7528\u5360\u7528\uff0c\u6216\u8005\u5c1d\u8bd5\u91cd\u65b0\u8fdb\u5165\u9891\u9053",1006:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u4f7f\u7528 java \u8d44\u6e90\u51fa\u73b0\u9519\u8bef",1007:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u8bbe\u7f6e\u7684\u91c7\u6837\u9891\u7387\u51fa\u73b0\u9519\u8bef",1008:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u521d\u59cb\u5316\u64ad\u653e\u8bbe\u5907\u51fa\u73b0\u9519\u8bef\u3002\u8bf7\u68c0\u67e5\u64ad\u653e\u8bbe\u5907\u662f\u5426\u88ab\u5176\u4ed6\u5e94\u7528\u5360\u7528\uff0c\u6216\u8005\u5c1d\u8bd5\u91cd\u65b0\u8fdb\u5165\u9891\u9053",1009:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u542f\u52a8\u64ad\u653e\u8bbe\u5907\u51fa\u73b0\u9519\u8bef\u3002\u8bf7\u68c0\u67e5\u64ad\u653e\u8bbe\u5907\u662f\u5426\u6b63\u5e38\uff0c\u6216\u8005\u5c1d\u8bd5\u91cd\u65b0\u8fdb\u5165\u9891\u9053",1010:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u505c\u6b62\u64ad\u653e\u8bbe\u5907\u51fa\u73b0\u9519\u8bef",1011:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u521d\u59cb\u5316\u5f55\u97f3\u8bbe\u5907\u65f6\u51fa\u73b0\u9519\u8bef\u3002\u8bf7\u68c0\u67e5\u5f55\u97f3\u8bbe\u5907\u662f\u5426\u6b63\u5e38\uff0c\u6216\u8005\u5c1d\u8bd5\u91cd\u65b0\u8fdb\u5165\u9891\u9053",1012:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u542f\u52a8\u5f55\u97f3\u8bbe\u5907\u51fa\u73b0\u9519\u8bef\u3002\u8bf7\u68c0\u67e5\u5f55\u97f3\u8bbe\u5907\u662f\u5426\u6b63\u5e38\uff0c\u6216\u8005\u5c1d\u8bd5\u91cd\u65b0\u8fdb\u5165\u9891\u9053",1013:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u505c\u6b62\u5f55\u97f3\u8bbe\u5907\u51fa\u73b0\u9519\u8bef",1015:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u8fd0\u884c\u65f6\u64ad\u653e\u51fa\u73b0\u9519\u8bef\u3002\u8bf7\u68c0\u67e5\u5f55\u97f3\u8bbe\u5907\u662f\u5426\u6b63\u5e38\uff0c\u6216\u8005\u5c1d\u8bd5\u91cd\u65b0\u8fdb\u5165\u9891\u9053",1017:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u8fd0\u884c\u65f6\u5f55\u97f3\u9519\u8bef\u3002\u8bf7\u68c0\u67e5\u5f55\u97f3\u8bbe\u5907\u662f\u5426\u6b63\u5e38\uff0c\u6216\u8005\u5c1d\u8bd5\u91cd\u65b0\u8fdb\u5165\u9891\u9053",1018:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u5f55\u97f3\u5931\u8d25",1022:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u521d\u59cb\u5316 Loopback \u8bbe\u5907\u9519\u8bef",1023:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u542f\u52a8 Loopback \u8bbe\u5907\u9519\u8bef",1030:"\u97f3\u9891\u8def\u7531\uff1a\u8fde\u63a5\u84dd\u7259\u901a\u8bdd\u5931\u8d25\uff0c\u9ed8\u8ba4\u8def\u7531\u4f1a\u88ab\u542f\u7528",1359:"\u97f3\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u65e0\u5f55\u5236\u8bbe\u5907\u3002\u8bf7\u68c0\u67e5\u662f\u5426\u6709\u53ef\u7528\u7684\u5f55\u653e\u97f3\u8bbe\u5907\u6216\u8005\u5f55\u653e\u97f3\u8bbe\u5907\u662f\u5426\u5df2\u7ecf\u88ab\u5176\u4ed6\u5e94\u7528\u5360\u7528",1501:"\u89c6\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u6ca1\u6709\u6444\u50cf\u5934\u4f7f\u7528\u6743\u9650\u3002\u8bf7\u68c0\u67e5\u662f\u5426\u5df2\u7ecf\u6253\u5f00\u6444\u50cf\u5934\u6743\u9650",1600:"\u89c6\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u672a\u77e5\u9519\u8bef",1601:"\u89c6\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u89c6\u9891\u7f16\u7801\u5668\u521d\u59cb\u5316\u9519\u8bef\u3002\u8be5\u9519\u8bef\u4e3a\u4e25\u91cd\u9519\u8bef\uff0c\u8bf7\u5c1d\u8bd5\u91cd\u65b0\u52a0\u5165\u9891\u9053",1602:"\u89c6\u9891\u8bbe\u5907\u6a21\u5757\uff1a\u89c6\u9891\u7f16\u7801\u5668\u9519\u8bef\u3002\u8be5\u9519\u8bef\u4e3a\u4e25\u91cd\u9519\u8bef\uff0c\u8bf7\u5c1d\u8bd5\u91cd\u65b0\u52a0\u5165\u9891\u9053"},connectionState:{states:{1:"\u7f51\u7edc\u8fde\u63a5\u65ad\u5f00",2:"\u5efa\u7acb\u7f51\u7edc\u8fde\u63a5\u4e2d ",3:"\u7f51\u7edc\u5df2\u8fde\u63a5",4:"\u91cd\u65b0\u5efa\u7acb\u7f51\u7edc\u8fde\u63a5\u4e2d",5:"\u7f51\u7edc\u8fde\u63a5\u5931\u8d25"},reason:{0:"\u5efa\u7acb\u7f51\u7edc\u8fde\u63a5\u4e2d",1:"\u6210\u529f\u52a0\u5165\u9891\u9053",2:"\u7f51\u7edc\u8fde\u63a5\u4e2d\u65ad",3:"\u7f51\u7edc\u8fde\u63a5\u88ab\u670d\u52a1\u5668\u7981\u6b62",4:"\u52a0\u5165\u9891\u9053\u5931\u8d25",5:"\u79bb\u5f00\u9891\u9053",6:"\u4e0d\u662f\u6709\u6548\u7684 APP ID\u3002\u8bf7\u66f4\u6362\u6709\u6548\u7684 APP ID \u91cd\u65b0\u52a0\u5165\u9891\u9053",7:"\u4e0d\u662f\u6709\u6548\u7684\u9891\u9053\u540d\u3002\u8bf7\u66f4\u6362\u6709\u6548\u7684\u9891\u9053\u540d\u91cd\u65b0\u52a0\u5165\u9891\u9053",8:"\u751f\u6210\u7684 Token \u65e0\u6548\u3002\u4e00\u822c\u6709\u4ee5\u4e0b\u539f\u56e0\uff1a\u5728\u63a7\u5236\u53f0\u4e0a\u542f\u7528\u4e86 App Certificate\uff0c\u4f46\u52a0\u5165\u9891\u9053\u672a\u4f7f\u7528 Token\u3002\u5f53\u542f\u7528\u4e86 App Certificate\uff0c\u5fc5\u987b\u4f7f\u7528 Token\u5728\u8c03\u7528 joinChannel \u52a0\u5165\u9891\u9053\u65f6\u6307\u5b9a\u7684 uid \u4e0e\u751f\u6210 Token \u65f6\u4f20\u5165\u7684 uid \u4e0d\u4e00\u81f4",9:"\u5f53\u524d\u4f7f\u7528\u7684 Token \u8fc7\u671f\uff0c\u4e0d\u518d\u6709\u6548\uff0c\u9700\u8981\u91cd\u65b0\u5728\u4f60\u7684\u670d\u52a1\u7aef\u7533\u8bf7\u751f\u6210 Token",10:"\u6b64\u7528\u6237\u88ab\u670d\u52a1\u5668\u7981\u6b62",11:"\u7531\u4e8e\u8bbe\u7f6e\u4e86\u4ee3\u7406\u670d\u52a1\u5668\uff0cSDK \u5c1d\u8bd5\u91cd\u8fde",12:"\u66f4\u65b0 Token \u5f15\u8d77\u7f51\u7edc\u8fde\u63a5\u72b6\u6001\u6539\u53d8",13:"\u5ba2\u6237\u7aef IP \u5730\u5740\u53d8\u66f4\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u7f51\u7edc\u7c7b\u578b\uff0c\u6216\u7f51\u7edc\u8fd0\u8425\u5546\u7684 IP \u6216\u7aef\u53e3\u53d1\u751f\u6539\u53d8\u5f15\u8d77",14:"SDK \u548c\u670d\u52a1\u5668\u8fde\u63a5\u4fdd\u6d3b\u8d85\u65f6\uff0c\u8fdb\u5165\u81ea\u52a8\u91cd\u8fde\u72b6\u6001"}},remoteVideoState:{status:{0:"\u8fdc\u7aef\u89c6\u9891\u9ed8\u8ba4\u521d\u59cb\u72b6\u6001",1:"\u672c\u5730\u7528\u6237\u5df2\u63a5\u6536\u8fdc\u7aef\u89c6\u9891\u9996\u5305",2:"\u8fdc\u7aef\u89c6\u9891\u6d41\u6b63\u5728\u89e3\u7801\uff0c\u6b63\u5e38\u64ad\u653e",3:"\u8fdc\u7aef\u89c6\u9891\u6d41\u5361\u987f",4:"\u8fdc\u7aef\u89c6\u9891\u6d41\u64ad\u653e\u5931\u8d25"},reson:{0:"\u5185\u90e8\u539f\u56e0",1:"\u7f51\u7edc\u963b\u585e",2:"\u7f51\u7edc\u6062\u590d\u6b63\u5e38",3:"\u672c\u5730\u7528\u6237\u505c\u6b62\u63a5\u6536\u8fdc\u7aef\u89c6\u9891\u6d41\u6216\u672c\u5730\u7528\u6237\u7981\u7528\u89c6\u9891\u6a21\u5757",4:"\u672c\u5730\u7528\u6237\u6062\u590d\u63a5\u6536\u8fdc\u7aef\u89c6\u9891\u6d41\u6216\u672c\u5730\u7528\u6237\u542f\u52a8\u89c6\u9891\u6a21\u5757",5:"\u8fdc\u7aef\u7528\u6237\u505c\u6b62\u53d1\u9001\u89c6\u9891\u6d41\u6216\u8fdc\u7aef\u7528\u6237\u7981\u7528\u89c6\u9891\u6a21\u5757",6:"\u8fdc\u7aef\u7528\u6237\u6062\u590d\u53d1\u9001\u89c6\u9891\u6d41\u6216\u8fdc\u7aef\u7528\u6237\u542f\u7528\u89c6\u9891\u6a21\u5757",7:"\u8fdc\u7aef\u7528\u6237\u79bb\u5f00\u9891\u9053",8:"\u8fdc\u7aef\u89c6\u9891\u6d41\u5df2\u56de\u9000\u4e3a\u97f3\u9891\u6d41",9:"\u56de\u9000\u7684\u8fdc\u7aef\u97f3\u9891\u6d41\u6062\u590d\u4e3a\u89c6\u9891\u6d41"}}},r=i;e.default=r},bbdd:function(t,e,n){var i=function(){return this||"object"===typeof self&&self}()||Function("return this")(),r=i.regeneratorRuntime&&Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime")>=0,o=r&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,t.exports=n("96cf"),r)i.regeneratorRuntime=o;else try{delete i.regeneratorRuntime}catch(a){i.regeneratorRuntime=void 0}},c220:function(t,e){t.exports="/static/icon_single.png"},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},d2c7:function(t,e){t.exports="/static/icon_return_w.png"},d2fa:function(t,e){t.exports="/static/icon_switch_voice.png"},d5c6:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{maxlength:{type:Number,default:4},isPwd:{type:Boolean,default:!1}},data:function(){return{codeIndex:1,codeArr:[],val:""}},methods:{getVal:function(t){var e=t.detail.value;this.val=e;var n=e.split("");this.codeIndex=n.length+1,this.codeArr=n,this.codeIndex>Number(this.maxlength)&&this.$emit("finish",this.codeArr.join(""))},clear:function(){this.codeIndex=1,this.codeArr=[],this.val=""}}};e.default=i},d8cf:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.RTCUtils=e.RTMUtils=e.Utils=void 0;var i=s(n("a34a")),r=s(n("f9bc")),o=s(n("e883")),a=s(n("ba94"));function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(i,r)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){c(o,i,r,a,s,"next",t)}function s(t){c(o,i,r,a,s,"throw",t)}a(void 0)}))}}var l={isCalling:!1,conference:!1,popupTimer:null},d={equipment:function(){return u(i.default.mark((function t(){var e,n,r,o;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("ios"!=uni.getSystemInfoSync().platform){t.next=11;break}return t.next=3,d.requestAndroidPermission("camera","ios","\u76f8\u673a");case 3:return e=t.sent,t.next=6,d.requestAndroidPermission("record","ios","\u5f55\u97f3");case 6:return n=t.sent,t.next=9,d.hintInfo([e,n]);case 9:t.next=20;break;case 11:if("android"!==uni.getSystemInfoSync().platform){t.next=20;break}return t.next=14,d.requestAndroidPermission("android.permission.CAMERA","android","\u76f8\u673a");case 14:return r=t.sent,t.next=17,d.requestAndroidPermission("android.permission.RECORD_AUDIO","android","\u5f55\u97f3");case 17:return o=t.sent,t.next=20,d.hintInfo([r,o]);case 20:case"end":return t.stop()}}),t)})))()},requestAndroidPermission:function(t,e,n){return u(i.default.mark((function r(){var a,s;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=0,s="","ios"!=e){i.next=8;break}return i.next=5,o.default.judgeIosPermission(t);case 5:a=i.sent,i.next=11;break;case 8:return i.next=10,o.default.requestAndroidPermission(t);case 10:a=i.sent;case 11:return s=1==a?"\u5df2\u83b7\u5f97\u6388\u6743,\u53ef\u6b63\u5e38\u4f7f\u7528":0==a?"\u672a\u83b7\u5f97\u6388\u6743,\u65e0\u6cd5\u4f7f\u7528":"\u88ab\u6c38\u4e45\u62d2\u7edd\u6743\u9650,\u65e0\u6cd5\u4f7f\u7528",i.abrupt("return",n+s);case 14:case"end":return i.stop()}}),r)})))()},getEl:function(t){return"string"===typeof t||"number"===typeof t?t:WXEnvironment?t.ref:t instanceof HTMLElement?t:t.$el},generateNumber:function(t){var e=t||8,n=Math.ceil(Math.random()*Math.pow(10,e));return n<Math.pow(10,e-1)?d.generateNumber(e):n},hintInfo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,i=r.default.state.popubId||"poPup",o=uni.getSubNVueById(i);o&&(o.show("fade-in",300),uni.$emit("paltfrom-popup",{type:e,message:t}),l.popupTimer&&clearTimeout(l.popupTimer),l.popupTimer=setTimeout((function(){o.hide("fade-out",300),uni.$emit("paltfrom-popup",{type:"",message:""})}),n))},hintRTCInfo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,i=uni.getSubNVueById("poPup-rtm");i.show("fade-in",300),uni.$emit("paltfrom-popup",{type:e,message:t}),l.popupTimer&&clearTimeout(l.popupTimer),l.popupTimer=setTimeout((function(){i.hide("fade-out",300)}),n)},restoreAll:function(){uni.$emit("isCalling",!1)},callInvitationPage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"index",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=n?JSON.stringify(n):"";uni.redirectTo({url:e+(r?"?info="+r:""),success:function(e){t("log","\u6210\u529f",e," at until/until.js:117"),i&&setTimeout((function(){d.hintInfo(i.message,i.type)}),200)},fail:function(e){t("log","\u5931\u8d25",e," at until/until.js:126")}})},callVideoPage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=uni.getSubNVueById("CavasViewRTC");"rtc"===t?(uni.$emit("CavasViewRtc",e),n.show("fade-in",300)):(uni.$emit("CavasViewRtc",""),n.hide("fade-out",300))}};e.Utils=d;var f={useLogin:function(t,e){0==t?(r.default.dispatch("upDataUId",e),uni.showToast({title:"\u767b\u5f55\u6210\u529f",icon:"success",duration:2e3})):uni.showToast({title:"\u767b\u5f55\u5931\u8d25",icon:"none",duration:2e3})},ConnectionStateChanged:function(t,e){var n=["","\u521d\u59cb\u72b6\u6001\u3002SDK \u672a\u8fde\u63a5\u5230 RTM \u7cfb\u7edf","SDK \u6b63\u5728\u767b\u5f55 AR RTM \u7cfb\u7edf","SDK \u5df2\u767b\u5f55 RTM \u7cfb\u7edf","SDK \u4e0e RTM \u7cfb\u7edf\u8fde\u63a5\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\u51fa\u73b0\u4e2d\u65ad\uff0cSDK \u6b63\u5728\u5c1d\u8bd5\u81ea\u52a8\u91cd\u8fde RTM \u7cfb\u7edf","SDK \u505c\u6b62\u767b\u5f55 RTM \u7cfb\u7edf"],i=["","SDK \u6b63\u5728\u767b\u5f55 RTM \u7cfb\u7edf","SDK \u767b\u5f55 RTM \u7cfb\u7edf\u6210\u529f","SDK \u767b\u5f55 RTM \u7cfb\u7edf\u5931\u8d25","SDK \u65e0\u6cd5\u767b\u5f55 AR RTM \u7cfb\u7edf\u8d85\u8fc7 6 \u79d2\uff0c\u505c\u6b62\u767b\u5f55","SDK \u4e0e RTM \u7cfb\u7edf\u7684\u8fde\u63a5\u88ab\u4e2d\u65ad","\u7528\u6237\u5df2\u8c03\u7528 logout() \u65b9\u6cd5\u767b\u51fa RTM \u7cfb\u7edf","SDK \u88ab\u670d\u52a1\u5668\u7981\u6b62\u767b\u5f55 RTM \u7cfb\u7edf","\u53e6\u4e00\u4e2a\u7528\u6237\u6b63\u4ee5\u76f8\u540c\u7684\u7528\u6237 ID \u767b\u9646 RTM \u7cfb\u7edf"];d.hintInfo(["\u8fde\u63a5\u72b6\u6001\uff1a"+n[t],"\u6539\u53d8\u539f\u56e0\uff1a"+i[e]])},PeerMessageReceived:function(e,n){t("log","\u6536\u5230\u70b9\u5bf9\u70b9\u6d88\u606f\u56de\u8c03",e,n," at until/until.js:179");var i=JSON.parse(e);"SwitchAudio"==i.Cmd?(t("log","RTC \u89c6\u9891\u901a\u8bdd\u8f6c\u8bed\u97f3\u901a\u8bdd"," at until/until.js:183"),uni.$emit("rtc-SwitchAudio",{message:"SwitchAudio",peerId:n})):"EndCall"==i.Cmd&&uni.$emit("rtc-endcall",{message:"EndCall",peerId:n})},LocalInvitationAccepted:function(){var e=u(i.default.mark((function e(n){var r,o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t("log","\u8fd4\u56de\u7ed9\u4e3b\u53eb\uff1a\u88ab\u53eb\u5df2\u63a5\u53d7\u547c\u53eb\u9080\u8bf7",n," at until/until.js:199"),uni.$emit("isCalling",!0),r=n.response?JSON.parse(n.response):{},e.next=5,Object.assign({},JSON.parse(n.content),r);case 5:return o=e.sent,e.next=8,d.callVideoPage("rtc",{calleeId:n.calleeId,content:JSON.stringify(o)});case 8:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}(),LocalInvitationCanceled:function(){var e=u(i.default.mark((function e(n){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t("log","\u547c\u53eb\u9080\u8bf7\u5df2\u53d6\u6d88",n," at until/until.js:213"),e.next=3,d.restoreAll();case 3:return e.next=5,d.callInvitationPage("index","",{message:"\u547c\u53eb\u9080\u8bf7\u5df2\u53d6\u6d88(\u4e3b\u52a8\u6302\u65ad\u6216\u5bf9\u65b9\u5df2\u79bb\u7ebf)",type:"success"});case 5:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}(),LocalInvitationFailure:function(){var e=u(i.default.mark((function e(n){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t("log","\u547c\u53eb\u9080\u8bf7\u8fdb\u7a0b\u5931\u8d25",n," at until/until.js:224"),e.next=3,d.restoreAll();case 3:return e.next=5,d.callInvitationPage("index","",{message:"\u547c\u53eb\u9080\u8bf7\u8fdb\u7a0b\u5931\u8d25",type:"error"});case 5:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}(),LocalInvitationReceivedByPeer:function(e){if(2==e.state){t("log","\u88ab\u53eb\u5df2\u6536\u5230\u547c\u53eb\u9080\u8bf7",e," at until/until.js:236");var n=JSON.parse(e.content);d.callInvitationPage("rtmPage",{mode:0===n.Mode?"\u89c6\u9891":"\u8bed\u97f3",type:"\u4e3b\u53eb",uid:e.calleeId}),uni.$emit("isCalling",!0)}},LocalInvitationRefused:function(){var e=u(i.default.mark((function e(n){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t("log","\u88ab\u53eb\u5df2\u62d2\u7edd\u547c\u53eb\u9080\u8bf7",n," at until/until.js:250"),e.next=3,d.restoreAll();case 3:if(!n.response){e.next=14;break}if(r=JSON.parse(n.response),"calling"!=r.Reason&&"Calling"!=r.Cmd){e.next=10;break}return e.next=8,d.callInvitationPage("index","",{message:"\u88ab\u53eb\u6b63\u5728\u901a\u8bdd\u4e2d",type:"warn"});case 8:e.next=12;break;case 10:return e.next=12,d.callInvitationPage("index","",{message:"\u88ab\u53eb\u5df2\u62d2\u7edd\u547c\u53eb\u9080\u8bf7",type:"warn"});case 12:e.next=16;break;case 14:return e.next=16,d.callInvitationPage("index","",{message:"\u88ab\u53eb\u5df2\u62d2\u7edd\u547c\u53eb\u9080\u8bf7",type:"warn"});case 16:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}(),RemoteInvitationAccepted:function(e){t("log","\u8fd4\u56de\u7ed9\u88ab\u53eb\uff1a\u63a5\u53d7\u547c\u53eb\u9080\u8bf7\u6210\u529f",e," at until/until.js:279"),uni.$emit("isCalling",!0);var n=e.response?JSON.parse(e.response):{},i=Object.assign({},JSON.parse(e.content),n);d.callVideoPage("rtc",{calleeId:e.callerId,content:JSON.stringify(i)})},RemoteInvitationCanceled:function(){var e=u(i.default.mark((function e(n){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t("log","\u4e3b\u53eb\u5df2\u53d6\u6d88\u547c\u53eb\u9080\u8bf7",n," at until/until.js:293"),e.next=3,d.restoreAll();case 3:return e.next=5,d.callInvitationPage("index","",{message:"\u4e3b\u53eb\u5df2\u53d6\u6d88\u547c\u53eb\u9080\u8bf7",type:"warn"});case 5:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}(),RemoteInvitationFailure:function(){var t=u(i.default.mark((function t(e){return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(l.isCalling){t.next=5;break}return t.next=3,d.restoreAll();case 3:return t.next=5,d.callInvitationPage("index","",{message:"\u4e3b\u53eb\u7684\u547c\u53eb\u9080\u8bf7\u8fdb\u7a0b\u5931\u8d25",type:"error"});case 5:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}(),RemoteInvitationReceived:function(){var e=u(i.default.mark((function e(n,r){var o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t("log","\u6536\u5230\u4e00\u4e2a\u547c\u53eb\u9080\u8bf7",n," at until/until.js:316"),!l.isCalling){e.next=6;break}return e.next=4,r(n.callerId,{refuseId:n.callerId,Reason:"calling",Cmd:"Calling"});case 4:e.next=17;break;case 6:return e.next=8,JSON.parse(n.content);case 8:if(o=e.sent,l.conference=o.Conference,!o.Conference){e.next=14;break}setTimeout((function(){r(n.callerId,{refuseId:n.callerId})}),1500),e.next=17;break;case 14:return uni.$emit("isCalling",!0),e.next=17,d.callInvitationPage("rtmPage",{mode:0===o.Mode?"\u89c6\u9891":"\u8bed\u97f3",type:"\u88ab\u53eb",uid:n.callerId});case 17:case"end":return e.stop()}}),e)})));function n(t,n){return e.apply(this,arguments)}return n}(),RemoteInvitationRefused:function(){var e=u(i.default.mark((function e(n){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t("log","\u62d2\u7edd\u547c\u53eb\u9080\u8bf7\u6210\u529f",n,l.isCalling," at until/until.js:351"),l.isCalling){e.next=7;break}return t("log","\u62d2\u7edd\u547c\u53eb\u9080\u8bf7\u6210\u529f",n," at until/until.js:353"),e.next=5,d.restoreAll();case 5:return e.next=7,d.callInvitationPage("index","",{message:l.conference?"\u5f53\u524d\u4e0d\u652f\u6301\u591a\u4eba\u547c\u53eb\uff0c\u5df2\u62d2\u7edd":"\u62d2\u7edd\u547c\u53eb\u9080\u8bf7\u6210\u529f",type:"success"});case 7:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}()};e.RTMUtils=f;var p={Warning:function(t){d.hintRTCInfo(a.default.warning[Number(t)]||"\u672a\u77e5\u8b66\u544a","warn")},Error:function(t){d.hintRTCInfo(a.default.errore[Number(t)]||"\u672a\u77e5\u9519\u8bef","error")},ConnectionStateChanged:function(t){d.hintRTCInfo(["\u5f53\u524d\u7f51\u7edc\u8fde\u63a5\u72b6\u6001\uff1a"+(a.default.connectionState.states[t.state]||"\u672a\u77e5\u72b6\u6001"),"\u7edc\u8fde\u63a5\u72b6\u6001\u53d1\u751f\u6539\u53d8\u539f\u56e0\uff1a"+(a.default.connectionState.reason[t.reason]||"\u672a\u77e5\u539f\u56e0")])},RemoteVideoStateChanged:function(t){d.hintRTCInfo(["\u5f53\u524d\u72b6\u6001\uff1a"+(a.default.remoteVideoState.status[t.state]||"\u672a\u77e5\u72b6\u6001"),"\u539f\u56e0\uff1a"+(a.default.remoteVideoState.reson[t.reason]||"\u672a\u77e5\u539f\u56e0")])},destroyRtc:function(){d.restoreAll(),uni.redirectTo({url:"index?state=end",success:function(e){t("log","\u6210\u529f",e," at until/until.js:397")},fail:function(e){t("log","\u5931\u8d25",e," at until/until.js:400")}})}};e.RTCUtils=p,uni.$on("isCalling",(function(t){l.isCalling=t}))}).call(this,n("0de9")["default"])},dc7c:function(t,e,n){"use strict";n.r(e);var i=n("ee3d"),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},e124:function(t,e,n){"use strict";n.r(e);var i=n("4454"),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},e822:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLoad:function(t){var e=this;this.$store.dispatch("upDataPopubId","poPup"),"end"===t.state&&setTimeout((function(){e.$Utils.hintInfo("\u901a\u8bdd\u5df2\u7ed3\u675f","success")}),800)},data:function(){return{windowWidth:200,windowHeight:200}},created:function(){this.$store.dispatch("upDataPopubId","poPup");var t=this;uni.getSystemInfo({success:function(e){t.windowWidth=e.windowWidth,t.windowHeight=e.windowHeight}})},methods:{goBack:function(e){this.$store.state.uid?uni.navigateTo({url:e,animationType:"slide-in-bottom",animationDuration:300,success:function(e){t("log","\u6210\u529f",e," at pages/index/index.vue:70")},fail:function(e){t("log","\u5931\u8d25",e," at pages/index/index.vue:73")}}):uni.showToast({title:"\u672a\u767b\u5f55",icon:"none",duration:2e3})}}};e.default=n}).call(this,n("0de9")["default"])},e883:function(t,e,n){(function(e){var n;function i(){var t=!1,n=plus.ios.import("UIApplication"),i=n.sharedApplication(),r=0;if(i.currentUserNotificationSettings){var o=i.currentUserNotificationSettings();r=o.plusGetAttribute("types"),e("log","enabledTypes1:"+r," at js_sdk/wa-permission/permission.js:19"),0==r?e("log","\u63a8\u9001\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at js_sdk/wa-permission/permission.js:21"):(t=!0,e("log","\u5df2\u7ecf\u5f00\u542f\u63a8\u9001\u529f\u80fd!"," at js_sdk/wa-permission/permission.js:24")),plus.ios.deleteObject(o)}else r=i.enabledRemoteNotificationTypes(),0==r?e("log","\u63a8\u9001\u6743\u9650\u6ca1\u6709\u5f00\u542f!"," at js_sdk/wa-permission/permission.js:30"):(t=!0,e("log","\u5df2\u7ecf\u5f00\u542f\u63a8\u9001\u529f\u80fd!"," at js_sdk/wa-permission/permission.js:33")),e("log","enabledTypes2:"+r," at js_sdk/wa-permission/permission.js:35");return plus.ios.deleteObject(i),plus.ios.deleteObject(n),t}function r(){var t=!1,n=plus.ios.import("CLLocationManager"),i=n.authorizationStatus();return t=2!=i,e("log","\u5b9a\u4f4d\u6743\u9650\u5f00\u542f\uff1a"+t," at js_sdk/wa-permission/permission.js:48"),plus.ios.deleteObject(n),t}function o(){var t=!1,n=plus.ios.import("AVAudioSession"),i=n.sharedInstance(),r=i.recordPermission();return e("log","permissionStatus:"+r," at js_sdk/wa-permission/permission.js:70"),1684369017==r||1970168948==r?e("log","\u9ea6\u514b\u98ce\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at js_sdk/wa-permission/permission.js:72"):(t=!0,e("log","\u9ea6\u514b\u98ce\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at js_sdk/wa-permission/permission.js:75")),plus.ios.deleteObject(n),t}function a(){var t=!1,n=plus.ios.import("AVCaptureDevice"),i=n.authorizationStatusForMediaType("vide");return e("log","authStatus:"+i," at js_sdk/wa-permission/permission.js:86"),3==i?(t=!0,e("log","\u76f8\u673a\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at js_sdk/wa-permission/permission.js:89")):e("log","\u76f8\u673a\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at js_sdk/wa-permission/permission.js:91"),plus.ios.deleteObject(n),t}function s(){var t=!1,n=plus.ios.import("PHPhotoLibrary"),i=n.authorizationStatus();return e("log","authStatus:"+i," at js_sdk/wa-permission/permission.js:102"),3==i?(t=!0,e("log","\u76f8\u518c\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at js_sdk/wa-permission/permission.js:105")):e("log","\u76f8\u518c\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at js_sdk/wa-permission/permission.js:107"),plus.ios.deleteObject(n),t}function c(){var t=!1,n=plus.ios.import("CNContactStore"),i=n.authorizationStatusForEntityType(0);return 3==i?(t=!0,e("log","\u901a\u8baf\u5f55\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at js_sdk/wa-permission/permission.js:120")):e("log","\u901a\u8baf\u5f55\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at js_sdk/wa-permission/permission.js:122"),plus.ios.deleteObject(n),t}function u(){var t=!1,n=plus.ios.import("EKEventStore"),i=n.authorizationStatusForEntityType(0);return 3==i?(t=!0,e("log","\u65e5\u5386\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at js_sdk/wa-permission/permission.js:135")):e("log","\u65e5\u5386\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at js_sdk/wa-permission/permission.js:137"),plus.ios.deleteObject(n),t}function l(){var t=!1,n=plus.ios.import("EKEventStore"),i=n.authorizationStatusForEntityType(1);return 3==i?(t=!0,e("log","\u5907\u5fd8\u5f55\u6743\u9650\u5df2\u7ecf\u5f00\u542f"," at js_sdk/wa-permission/permission.js:150")):e("log","\u5907\u5fd8\u5f55\u6743\u9650\u6ca1\u6709\u5f00\u542f"," at js_sdk/wa-permission/permission.js:152"),plus.ios.deleteObject(n),t}function d(t){return new Promise((function(n,i){plus.android.requestPermissions([t],(function(t){for(var i=0,r=0;r<t.granted.length;r++){var o=t.granted[r];e("log","\u5df2\u83b7\u53d6\u7684\u6743\u9650\uff1a"+o," at js_sdk/wa-permission/permission.js:167"),i=1}for(r=0;r<t.deniedPresent.length;r++){var a=t.deniedPresent[r];e("log","\u62d2\u7edd\u672c\u6b21\u7533\u8bf7\u7684\u6743\u9650\uff1a"+a," at js_sdk/wa-permission/permission.js:172"),i=0}for(r=0;r<t.deniedAlways.length;r++){var s=t.deniedAlways[r];e("log","\u6c38\u4e45\u62d2\u7edd\u7533\u8bf7\u7684\u6743\u9650\uff1a"+s," at js_sdk/wa-permission/permission.js:177"),i=-1}n(i)}),(function(t){e("log","\u7533\u8bf7\u6743\u9650\u9519\u8bef\uff1a"+t.code+" = "+t.message," at js_sdk/wa-permission/permission.js:187"),n({code:t.code,message:t.message})}))}))}function f(t){return"location"==t?r():"camera"==t?a():"photoLibrary"==t?s():"record"==t?o():"push"==t?i():"contact"==t?c():"calendar"==t?u():"memo"==t&&l()}function p(){if(n){var t=plus.ios.import("UIApplication"),e=t.sharedApplication(),i=plus.ios.import("NSURL"),r=i.URLWithString("app-settings:");e.openURL(r),plus.ios.deleteObject(r),plus.ios.deleteObject(i),plus.ios.deleteObject(e)}else{var o=plus.android.importClass("android.content.Intent"),a=plus.android.importClass("android.provider.Settings"),s=plus.android.importClass("android.net.Uri"),c=plus.android.runtimeMainActivity(),u=new o;u.setAction(a.ACTION_APPLICATION_DETAILS_SETTINGS);var l=s.fromParts("package",c.getPackageName(),null);u.setData(l),c.startActivity(u)}}function h(){if(n){var t=!1,i=plus.ios.import("CLLocationManager");t=i.locationServicesEnabled();return e("log","\u7cfb\u7edf\u5b9a\u4f4d\u5f00\u542f:"+t," at js_sdk/wa-permission/permission.js:253"),plus.ios.deleteObject(i),t}var r=plus.android.importClass("android.content.Context"),o=plus.android.importClass("android.location.LocationManager"),a=plus.android.runtimeMainActivity(),s=a.getSystemService(r.LOCATION_SERVICE);t=s.isProviderEnabled(o.GPS_PROVIDER);return e("log","\u7cfb\u7edf\u5b9a\u4f4d\u5f00\u542f:"+t," at js_sdk/wa-permission/permission.js:262"),t}n="iOS"==plus.os.name,t.exports={judgeIosPermission:f,requestAndroidPermission:d,checkSystemEnableLocation:h,gotoAppPermissionSetting:p}}).call(this,n("0de9")["default"])},ee3d:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(){var e=this;plus.screen.lockOrientation("portrait-primary"),this.$Utils.equipment();var n=!0;uni.getNetworkType({success:function(t){"none"!==t.networkType?(e.$RTM.init(),n=!1):uni.showLoading({title:"\u8054\u7f51\u4e2d"})}}),uni.onNetworkStatusChange((function(t){t.isConnected?(uni.hideLoading(),n&&(e.$RTM.init(),n=!1)):uni.showLoading({title:"\u8054\u7f51\u4e2d",mask:!0})})),t("log","App Launch \u521d\u59cb\u5316\u5b8c\u6210\u65f6\u89e6\u53d1"," at App.vue:39")},onShow:function(){t("log","App Show"," at App.vue:42")},onHide:function(){t("log","App Hide"," at App.vue:45")}};e.default=n}).call(this,n("0de9")["default"])},f0c5:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s,c,u){var l,d="function"===typeof t?t.options:t;if(c){d.components||(d.components={});var f=Object.prototype.hasOwnProperty;for(var p in c)f.call(c,p)&&!f.call(d.components,p)&&(d.components[p]=c[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(d.mixins||(d.mixins=[])).push(u)),e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),o&&(d._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(d.functional){d._injectStyles=l;var h=d.render;d.render=function(t,e){return l.call(e),h(t,e)}}else{var v=d.beforeCreate;d.beforeCreate=v?[].concat(v,l):[l]}return{exports:t,options:d}}n.d(e,"a",(function(){return i}))},f0ca:function(t,e,n){"use strict";n.r(e);var i=n("594e"),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},f485:function(t,e){t.exports="/static/icon_accept.png"},f678:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("a34a")),r=a(n("1754")),o=n("d8cf");function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(i,r)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){s(o,i,r,a,c,"next",t)}function c(t){s(o,i,r,a,c,"throw",t)}a(void 0)}))}}var u=uni.requireNativePlugin("AR-RtcModule"),l={existTimer:null,destroyRtcTimer:null,channel:""},d={init:function(){var e=c(i.default.mark((function e(n){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,u.setCallBack((function(t){d.callBack(t)}));case 2:return e.next=4,u.create({appId:r.default.RTC_APPID},(function(e){t("log","\u521d\u59cb\u5316\u5b9e\u4f8b rtc",e," at until/rtc.js:27")}));case 4:if(e.t0=n,!e.t0){e.next=8;break}return e.next=8,u.setParameters({Cmd:"SetAudioAiNoise",Enable:1},(function(e){t("log","\u79c1\u4eba\u5b9a\u5236",e," at until/rtc.js:34")}));case 8:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}(),callBack:function(e){switch(e.engineEvent){case"onConnectionLost":t("log","onConnectionLost",e," at until/rtc.js:41");break;case"onConnectionStateChanged":t("log","\u7f51\u7edc\u8fde\u63a5\u72b6\u6001\u5df2\u6539\u53d8\u56de\u8c03",e," at until/rtc.js:45");break;case"onWarning":o.RTCUtils.Warning(e.warningCode);break;case"onError":o.RTCUtils.Error(e.errorCode);break;case"onJoinChannelSuccess":d.localVideo({channel:l.channelId+"",uid:l.uid+""});break;case"onUserJoined":o.Utils.hintRTCInfo("\u7528\u6237"+e.uid+"\u52a0\u5165\u9891\u9053","info");break;case"onUserOffline":t("log","\u8fdc\u7aef\u7528\u6237\u79bb\u5f00\u5f53\u524d\u9891\u9053\u56de\u8c03",e," at until/rtc.js:69"),d.destroyRtc();break;case"onConnectionStateChanged":o.RTCUtils.ConnectionStateChanged(e);break;case"onFirstRemoteVideoFrame":break;case"onFirstRemoteVideoDecoded":d.remotenableVideo({channel:l.channel,uid:e.uid});break;case"onRemoteVideoStateChanged":o.RTCUtils.RemoteVideoStateChanged(e);break}},joinChannel:function(){var e=c(i.default.mark((function e(n){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(l.channel=n.channelId,l.mode=n.mode,0!==l.mode){e.next=5;break}return e.next=5,d.enableVideo();case 5:return e.next=7,d.setEnableSpeakerphone(!0);case 7:return e.next=9,u.joinChannel({token:n.token,channelId:n.channelId+"",uid:n.uid},(function(e){t("log","RTC joinChannel \u65b9\u6cd5\u8c03\u7528",0===e.code?"\u6210\u529f":"\u5931\u8d25\uff1a"+e," at until/rtc.js:166")}));case 9:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}(),setEnableSpeakerphone:function(e){u.setEnableSpeakerphone({enabled:e},(function(e){t("log","\u5f00\u542f",0===e.code?"\u6210\u529f":"\u5931\u8d25\uff1a"+e," at until/rtc.js:175")}))},enableLocalAudio:function(e){u.enableLocalAudio({enabled:e},(function(e){t("log","\u5f00\u542f",0===e.code?"\u6210\u529f":"\u5931\u8d25\uff1a"+e," at until/rtc.js:184")}))},switchCamera:function(){u.switchCamera((function(e){t("log","RTC \u6444\u50cf\u5934\u524d\u540e switchCamera \u65b9\u6cd5\u8c03\u7528",0===e.code?"\u6210\u529f":"\u5931\u8d25\uff1a"+e," at until/rtc.js:190")}))},toSpeech:function(){u.disableVideo((function(e){t("log","RTC \u5173\u95ed\u89c6\u9891\u6a21\u5757 disableVideo \u65b9\u6cd5\u8c03\u7528",0===e.code?"\u6210\u529f":"\u5931\u8d25\uff1a"+e," at until/rtc.js:198")}))},enableVideo:function(){l.existTimer&&clearInterval(l.existTimer),l.existTimer=setInterval(c(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!l.VideoConfig){e.next=6;break}return clearInterval(l.existTimer),e.next=4,u.setVideoEncoderConfiguration(l.VideoConfig,(function(e){t("log","RTC \u8bbe\u7f6e\u89c6\u9891\u7f16\u7801\u5c5e\u6027 setVideoEncoderConfiguration \u65b9\u6cd5\u8c03\u7528",0===e.code?"\u6210\u529f":"\u5931\u8d25\uff1a"+e," at until/rtc.js:210")}));case 4:return e.next=6,u.enableVideo((function(e){t("log","RTC \u542f\u7528\u89c6\u9891 enableVideo \u65b9\u6cd5\u8c03\u7528",0===e.code?"\u6210\u529f":"\u5931\u8d25\uff1a"+e," at until/rtc.js:217")}));case 6:case"end":return e.stop()}}),e)}))),50)},localVideo:function(){var e=c(i.default.mark((function e(n){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l.location.setupLocalVideo({renderMode:1,channelId:n.channel,uid:n.uid,mirrorMode:0},(function(e){t("log","\u6e32\u67d3\u89c6\u9891",e," at until/rtc.js:233")}));case 2:return e.next=4,l.location.startPreview((function(e){t("log","\u672c\u5730\u9884\u89c8",e," at until/rtc.js:237")}));case 4:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}(),remotenableVideo:function(){var e=c(i.default.mark((function e(n){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l.remote.setupRemoteVideo({renderMode:1,channelId:n.channel,uid:n.uid,mirrorMode:0},(function(e){t("log","\u6e32\u67d3\u8fdc\u7aef\u89c6\u9891",e," at until/rtc.js:248")}));case 2:return e.next=4,l.remote.startPreview((function(e){t("log","\u8fdc\u7aef\u672c\u5730\u9884\u89c8",e," at until/rtc.js:252")}));case 4:case"end":return e.stop()}}),e)})));function n(t){return e.apply(this,arguments)}return n}(),leave:function(){u.leaveChannel((function(e){t("log","\u8c03\u7528\u79bb\u5f00\u9891\u9053 leaveChannel",e," at until/rtc.js:263")}))},destroyRtc:function(){u&&u.destroyRtc&&(u.destroyRtc((function(e){t("log","\u9500\u6bc1\u5b9e\u4f8b",e," at until/rtc.js:271"),0===e.code&&o.RTCUtils.destroyRtc()})),uni.$off("location-cavasview"),uni.$off("PeersOnlineStatusChanged"),uni.$off("rtc-endcall"))}};uni.$on("location-cavasview",(function(t){t&&(l=Object.assign(l,t))})),uni.$on("PeersOnlineStatusChanged",(function(t){if(t){var e=t.peersStatus[0];e&&2===e.state&&(o.Utils.hintRTCInfo("\u8fdc\u7aef\u7528\u6237\u79bb\u7ebf","error"),l.channel||l.uid?l.channel&&setTimeout((function(){uni.$emit("sendMessageToPeer",{peerid:e.peerId,Cmd:"EndCall"}),d.destroyRtc(e.peerId)}),1e3):(uni.$emit("sendMessageToPeer",{Cmd:"InitiativeCall",peerid:e.peerId}),uni.$emit("sendMessageToPeer",{peerid:e.peerId,Cmd:"EndCall"})))}})),uni.$on("rtc-endcall",(function(e){"EndCall"===e.message&&(t("log","\u76d1\u6d4b rtc \u6536\u5230\u7684\u6302\u65ad\u4fe1\u606f",e," at until/rtc.js:327"),o.Utils.restoreAll(),l.channel||l.uid?l.channel&&d.destroyRtc():uni.$emit("sendMessageToPeer",{Cmd:"InitiativeCall",peerid:e.peerId}))}));var f=d;e.default=f}).call(this,n("0de9")["default"])},f9bc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("8bbf")),r=o(n("2f62"));function o(t){return t&&t.__esModule?t:{default:t}}i.default.use(r.default);var a=new r.default.Store({state:{popubId:"",uid:"",VideoConfig:{width:240,height:320,bitrate:0,frameRate:15,orientationMode:0},etAudioAiNoise:!1},mutations:{upDataPopubId:function(t,e){t.popubId=e},upDataUId:function(t,e){t.uid=e},upDataVideoConfig:function(t,e){t.VideoConfig=Object.assign(t.VideoConfig,e)},upDataetAudioAiNoise:function(t,e){t.etAudioAiNoise=e}},actions:{upDataPopubId:function(t,e){var n=t.commit;n("upDataPopubId",e)},upDataUId:function(t,e){var n=t.commit;n("upDataUId",e)},upDataVideoConfig:function(t,e){var n=t.commit;n("upDataVideoConfig",e)},upDataetAudioAiNoise:function(t,e){var n=t.commit;n("upDataetAudioAiNoise",e)}}}),s=a;e.default=s}},[["8a45","app-config"]]]);