jiuyiUniapp/jiuyi2/unpackage/cache/wgt/__UNI__08B31BC/app-service.js

38 lines
2.1 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var __defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n);if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((n=>t.resolve(e()).then((()=>n))),(n=>t.resolve(e()).then((()=>{throw n}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";var t,n,a,o,i,s,r,c,l,u;function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}function m(e,t){for(var n=0;n<t.length;n++){const a=t[n];if("string"!=typeof a&&!Array.isArray(a))for(const t in a)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(a,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>a[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const p=d(e);function h(e){return weex.requireModule(e)}function g(e,t,...n){uni.__log__?uni.__log__(e,t,...n):console[e].apply(console,[...n,t])}function f(e,t){return"string"==typeof e?t:e}const v=t=>(n,a=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,n,a)},_=v("onShow"),y=v("onHide"),E=v("onLoad"),C=v("onReady"),k=v("onUnload"),I=v("onPageScroll"),S=v("onReachBottom"),T=v("onPullDownRefresh"),M="/static/openPage.png",N=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}],w=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};const D=w({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:N}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle(s.styleObj),class:e.normalizeClass(["uni-icons",["uniui-"+a.type,a.customPrefix,a.customPrefix?a.type:""]]),onClick:n[0]||(n[0]=(...e)=>s._onClick&&s._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-5610c8db"]]);function b(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}const L="function"==typeof Proxy;class P{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const i in e.settings){const t=e.settings[i];n[i]=t.defaultValue}const a=`__vue-devtools-plugin-settings__${e.id}`;let o={...n};try{const e=localStorage.getItem(a),t=JSON.parse(e);Object.assign(o,t)}catch(zo){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(a,JSON.stringify(e))}catch(zo){}o=e}},t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function A(e,t){const n=b(),a=b().__VUE_DEVTOOLS_GLOBAL_HOOK__,o=L&&e.enableEarlyProxy;if(!a||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&o){const i=o?new P(e,a):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}else a.emit("devtools-plugin:setup",e,t)}
/*!
* vuex v4.1.0
* (c) 2022 Evan You
* @license MIT
*/var R="store";function O(t){return void 0===t&&(t=null),e.inject(null!==t?t:R)}function V(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,a=(n=function(t){return t.original===e},t.filter(n)[0]);if(a)return a.copy;var o=Array.isArray(e)?[]:{};return t.push({original:e,copy:o}),Object.keys(e).forEach((function(n){o[n]=V(e[n],t)})),o}function B(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function x(e){return null!==e&&"object"==typeof e}function U(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function G(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Y(e,n,[],e._modules.root,!0),F(e,n,t)}function F(t,n,a){var o=t._state,i=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var s=t._wrappedGetters,r={},c={},l=e.effectScope(!0);l.run((function(){B(s,(function(n,a){r[a]=function(e,t){return function(){return e(t)}}(n,t),c[a]=e.computed((function(){return r[a]()})),Object.defineProperty(t.getters,a,{get:function(){return c[a].value},enumerable:!0})}))})),t._state=e.reactive({data:n}),t._scope=l,t.strict&&function(t){e.watch((function(){return t._state.data}),(function(){}),{deep:!0,flush:"sync"})}(t),o&&a&&t._withCommit((function(){o.data=null})),i&&i.stop()}function Y(e,t,n,a,o){var i=!n.length,s=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=a),!i&&!o){var r=Z(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){r[c]=a.state}))}var l=a.context=function(e,t,n){var a=""===t,o={dispatch:a?e.dispatch:function(n,a,o){var i=q(n,a,o),s=i.payload,r=i.options,c=i.type;return r&&r.root||(c=t+c),e.dispatch(c,s)},commit:a?e.commit:function(n,a,o){var i=q(n,a,o),s=i.payload,r=i.options,c=i.type;r&&r.root||(c=t+c),e.commit(c,s,r)}};return Object.defineProperties(o,{getters:{get:a?function(){return e.getters}:function(){return H(e,t)}},state:{get:function(){return Z(e.state,n)}}}),o}(e,s,n);a.forEachMutation((function(t,n){!function(e,t,n,a){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,a.state,t)}))}(e,s+n,t,l)})),a.forEachAction((function(t,n){var a=t.root?n:s+n,o=t.handler||t;!function(e,t,n,a){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o,i=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},t);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}(e,a,o,l)})),a.forEachGetter((function(t,n){!function(e,t,n,a){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return n(a.state,a.getters,e.state,e.getters)}}(e,s+n,t,l)})),a.forEachChild((function(a,i){Y(e,t,n.concat(i),a,o)}))}function H(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,a)===t){var i=o.slice(a);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Z(e,t){return t.reduce((function(e,t){return e[t]}),e)}function q(e,t,n){return x(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var j="vuex:mutations",J="vuex:actions",X="vuex",K=0;function z(e,t){A({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(n){n.addTimelineLayer({id:j,label:"Vuex Mutations",color:W}),n.addTimelineLayer({id:J,label:"Vuex Actions",color:W}),n.addInspector({id:X,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===X)if(n.filter){var a=[];te(a,t._modules.root,n.filter,""),n.rootNodes=a}else n.rootNodes=[ee(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===X){var a=n.nodeId;H(t,a),n.state=function(e,t,n){t="root"===n?t:t[n];var a=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(a.length){var i=function(e){var t={};return Object.keys(e).forEach((function(n){var a=n.split("/");if(a.length>1){var o=t,i=a.pop();a.forEach((function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value})),o[i]=ne((function(){return e[n]}))}else t[n]=ne((function(){return e[n]}))})),t}(t);o.getters=Object.keys(i).map((function(e){return{key:e.endsWith("/")?$(e):e,editable:!1,value:ne((function(){return i[e]}))}}))}return o}((o=t._modules,(s=(i=a).split("/").filter((function(e){return e}))).reduce((function(e,t,n){var a=e[t];if(!a)throw new Error('Missing module "'+t+'" for path "'+i+'".');return n===s.length-1?a:a._children}),"root"===i?o:o.root._children)),"root"===a?t.getters:t._makeLocalGettersCache,a)}var o,i,s})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===X){var a=n.nodeId,o=n.path;"root"!==a&&(o=a.split("/").filter(Boolean).concat(o)),t._withCommit((function(){n.set(t._state.data,o,n.state.value)}))}})),t.subscribe((function(e,t){var a={};e.payload&&(a.payload=e.payload),a.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(X),n.sendInspectorState(X),n.addTimelineEvent({layerId:j,event:{time:Date.now(),title:e.type,data:a}})})),t.subscribeAction({before:function(e,t){var a={};e.payload&&(a.payload=e.payload),e._id=K++,e._time=Date.now(),a.state=t,n.addTimelineEvent({layerId:J,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:a}})},after:function(e,t){var a={},o=Date.now()-e._time;a.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(a.payload=e.payload),a.state=t,n.addTimelineEvent({layerId:J,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:a}})}})}))}var W=8702998,Q={label:"namespaced",textColor:16777215,backgroundColor:6710886};function $(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function ee(e,t){return{id:t||"root",label:$(t),tags:e.namespaced?[Q]:[],children:Object.keys(e._children).map((function(n){return ee(e._children[n],t+n+"/")}))}}function te(e,t,n,a){a.includes(n)&&e.push({id:a||"root",label:a.endsWith("/")?a.slice(0,a.length-1):a||"Root",tags:t.namespaced?[Q]:[]}),Object.keys(t._children).forEach((function(o){te(e,t._children[o],n,a+o+"/")}))}function ne(e){try{return e()}catch(zo){return zo}}var ae=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},oe={namespaced:{configurable:!0}};oe.namespaced.get=function(){return!!this._rawModule.namespaced},ae.prototype.addChild=function(e,t){this._children[e]=t},ae.prototype.removeChild=function(e){delete this._children[e]},ae.prototype.getChild=function(e){return this._children[e]},ae.prototype.hasChild=function(e){return e in this._children},ae.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},ae.prototype.forEachChild=function(e){B(this._children,e)},ae.prototype.forEachGetter=function(e){this._rawModule.getters&&B(this._rawModule.getters,e)},ae.prototype.forEachAction=function(e){this._rawModule.actions&&B(this._rawModule.actions,e)},ae.prototype.forEachMutation=function(e){this._rawModule.mutations&&B(this._rawModule.mutations,e)},Object.defineProperties(ae.prototype,oe);var ie=function(e){this.register([],e,!1)};function se(e,t,n){if(t.update(n),n.modules)for(var a in n.modules){if(!t.getChild(a))return;se(e.concat(a),t.getChild(a),n.modules[a])}}function re(e){return new ce(e)}ie.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},ie.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},ie.prototype.update=function(e){se([],this.root,e)},ie.prototype.register=function(e,t,n){var a=this;void 0===n&&(n=!0);var o=new ae(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&B(t.modules,(function(t,o){a.register(e.concat(o),t,n)}))},ie.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],a=t.getChild(n);a&&a.runtime&&t.removeChild(n)},ie.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var ce=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var a=e.strict;void 0===a&&(a=!1);var o=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ie(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,s=this.dispatch,r=this.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return r.call(i,e,t,n)},this.strict=a;var c=this._modules.root.state;Y(this,c,[],this._modules.root),F(this,c),n.forEach((function(e){return e(t)}))},le={state:{configurable:!0}};ce.prototype.install=function(e,t){e.provide(t||R,this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&z(e,this)},le.state.get=function(){return this._state.data},le.state.set=function(e){},ce.prototype.commit=function(e,t,n){var a=this,o=q(e,t,n),i=o.type,s=o.payload,r={type:i,payload:s},c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(r,a.state)})))},ce.prototype.dispatch=function(e,t){var n=this,a=q(e,t),o=a.type,i=a.payload,s={type:o,payload:i},r=this._actions[o];if(r){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(zo){}var c=r.length>1?Promise.all(r.map((function(e){return e(i)}))):r[0](i);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(zo){}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(zo){}t(e)}))}))}},ce.prototype.subscribe=function(e,t){return U(e,this._subscribers,t)},ce.prototype.subscribeAction=function(e,t){return U("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},ce.prototype.watch=function(t,n,a){var o=this;return e.watch((function(){return t(o.state,o.getters)}),n,Object.assign({},a))},ce.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},ce.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),Y(this,this.state,e,this._modules.get(e),n.preserveState),F(this,this.state)},ce.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete Z(t.state,e.slice(0,-1))[e[e.length-1]]})),G(this)},ce.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},ce.prototype.hotUpdate=function(e){this._modules.update(e),G(this,!0)},ce.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ce.prototype,le);var ue=ge((function(e,t){var n={};return he(t).forEach((function(t){var a=t.key,o=t.val;n[a]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var a=fe(this.$store,"mapState",e);if(!a)return;t=a.context.state,n=a.context.getters}return"function"==typeof o?o.call(this,t,n):t[o]},n[a].vuex=!0})),n})),de=ge((function(e,t){var n={};return he(t).forEach((function(t){var a=t.key,o=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.commit;if(e){var i=fe(this.$store,"mapMutations",e);if(!i)return;a=i.context.commit}return"function"==typeof o?o.apply(this,[a].concat(t)):a.apply(this.$store,[o].concat(t))}})),n})),me=ge((function(e,t){var n={};return he(t).forEach((function(t){var a=t.key,o=t.val;o=e+o,n[a]=function(){if(!e||fe(this.$store,"mapGetters",e))return this.$store.getters[o]},n[a].vuex=!0})),n})),pe=ge((function(e,t){var n={};return he(t).forEach((function(t){var a=t.key,o=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.dispatch;if(e){var i=fe(this.$store,"mapActions",e);if(!i)return;a=i.context.dispatch}return"function"==typeof o?o.apply(this,[a].concat(t)):a.apply(this.$store,[o].concat(t))}})),n}));function he(e){return function(e){return Array.isArray(e)||x(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function ge(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function fe(e,t,n){return e._modulesNamespaceMap[n]}function ve(e,t,n){var a=n?e.groupCollapsed:e.group;try{a.call(e,t)}catch(zo){e.log(t)}}function _e(e){try{e.groupEnd()}catch(zo){e.log("—— log end ——")}}function ye(){var e=new Date;return" @ "+Ee(e.getHours(),2)+":"+Ee(e.getMinutes(),2)+":"+Ee(e.getSeconds(),2)+"."+Ee(e.getMilliseconds(),3)}function Ee(e,t){return n="0",a=t-e.toString().length,new Array(a+1).join(n)+e;var n,a}var Ce={version:"4.1.0",Store:ce,storeKey:R,createStore:re,useStore:O,mapState:ue,mapMutations:de,mapGetters:me,mapActions:pe,createNamespacedHelpers:function(e){return{mapState:ue.bind(null,e),mapGetters:me.bind(null,e),mapMutations:de.bind(null,e),mapActions:pe.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var a=e.transformer;void 0===a&&(a=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var i=e.actionFilter;void 0===i&&(i=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var r=e.logMutations;void 0===r&&(r=!0);var c=e.logActions;void 0===c&&(c=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var u=V(e.state);void 0!==l&&(r&&e.subscribe((function(e,i){var s=V(i);if(n(e,u,s)){var r=ye(),c=o(e),d="mutation "+e.type+r;ve(l,d,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",a(u)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",a(s)),_e(l)}u=s})),c&&e.subscribeAction((function(e,n){if(i(e,n)){var a=ye(),o=s(e),r="action "+e.type+a;ve(l,r,t),l.log("%c action","color: #03A9F4; font-weight: bold",o),_e(l)}})))}}};const ke=re({state:{userinfo:{},tabbarMode:"default",alarmTime:"",property:{}},mutations:{setState(e,t){const n=t.key,a=t.value;e[n]=a},setUserInfo(e,t){e.userinfo=t},setTabbarMode(e,t){e.tabbarMode=t}},getters:{getUserInfo:e=>e.userinfo,getTabbarMode:e=>e.tabbarMode},actions:{updateUserInfo({commit:e},t){e("setUserInfo",t)},changeTabbarMode({commit:e},t){e("setTabbarMode",t)}}}),Ie={applyVideo:e=>Me.request({url:"/homecommon/applyVideo",query:e.query,data:e.data,method:"POST",load:!0}),pushVideo:e=>Me.request({url:"/homecommon/pushVideo",query:e.query,method:"POST",load:!0}),getUserInfo:e=>Me.request({url:"/home/getUserInfo",query:e.query,method:"POST",load:!0}),myVideoList:e=>Me.request({url:"/home/myVideoList",query:e.query,method:"POST",load:!0}),getCollectList:e=>Me.request({url:"/collect/getCollectList",query:e.query,method:"POST"}),saveCollectList:e=>Me.request({url:"/collect/saveCollectList",query:e.query,method:"POST",load:!0}),updateCollectList:e=>Me.request({url:"/collect/updateCollectList",query:e.query,method:"POST",load:!0}),deleteCollect:e=>Me.request({url:"/collect/deleteCollect",query:e.query,load:!0,method:"POST"}),getCollectVideoList:e=>Me.request({url:"/collect/getCollectVideoList",query:e.query,load:!0,method:"POST"}),collectVideo:e=>Me.request({url:"/collect/collectVideo",query:e.query,method:"POST",load:!0}),cancelCollect:e=>Me.request({url:"/collect/cancelCollect",query:e.query,method:"POST",load:!0}),homeVideo:e=>Me.request({url:"/homecommon/homeVideo",query:e.query,method:"POST"}),businessHomeVideo:e=>Me.request({url:"/homecommon/businessHomeVideo",query:e.query,method:"POST"}),otherHomeVideo:e=>Me.request({url:"/homecommon/otherHomeVideo",query:e.query,method:"POST"}),followVideo:e=>Me.request({url:"/homecommon/followVideo",query:e.query,method:"POST"}),getLabel:e=>Me.request({url:"/video/tag/list",query:e.query,method:"GET",load:!0}),setLabel:e=>Me.request({url:"/video/tag/add",query:e.query,method:"POST",load:!0}),publishVideo:e=>Me.request({url:"/video/video/add",data:e.data,method:"POST"}),updateVideo:e=>Me.request({url:"/homecommon/updateVideo",data:e.data,method:"POST"}),commentList:e=>Me.request({url:"/home/commentList",query:e.query,method:"POST"}),levelCommentList:e=>Me.request({url:"/home/levelCommentList",query:e.query,method:"POST"}),thumbsUp:e=>Me.request({url:"/home/thumbsUp",query:e.query,method:"POST"}),comment:e=>Me.request({url:"/home/comment",query:e.query,method:"POST"}),videoLike:e=>Me.request({url:"/home/videoLike",query:e.query,method:"POST"}),browseLog:e=>Me.request({url:"/home/browseLog",query:e.query,method:"POST"}),hotVideos:e=>Me.request({url:"/home/hotVideos",method:"POST"}),videoSearchLog:e=>Me.request({url:"/home/videoSearchLog",method:"POST"}),videoSearch:e=>Me.request({url:"/home/videoSearch",query:e.query,method:"POST"}),agreeFriend:e=>Me.request({url:"/user/friend/agreeFriend",path:e.path,query:e.query,method:"POST"}),refuseFriend:e=>Me.request({url:"/user/friend/refuseFriend",path:e.path,query:e.query,method:"POST"}),getFriendList:e=>Me.request({url:"/user/friend/getFriendList",path:e.path,query:e.query,method:"GET"}),getFansList:e=>Me.request({url:"/user/attention/getFansList",path:e.path,query:e.query,method:"GET"}),getAttentionList:e=>Me.request({url:"/user/attention/getAttentionList",path:e.path,query:e.query,method:"GET"}),attention:e=>Me.request({url:"/user/attention",path:e.path,data:e.data,method:"POST"}),videoBlock:e=>Me.request({url:"/home/videoBlock",query:e.query,load:!0,method:"POST"}),reportVideo:e=>Me.request({url:"/report/reportVideo",data:e.data,method:"POST"}),myLikeVideoList:e=>Me.request({url:"/home/myLikeVideoList",query:e.query,method:"POST"}),getVideoById:e=>Me.request({url:"/homecommon/getVideoById",query:e.query,method:"POST"}),videoShare:e=>Me.request({url:"/home/videoShare",query:e.query,method:"POST"}),setAlarm:e=>Me.request({url:"/home/setAlarm",query:e.query,method:"POST"}),getAlarm:()=>Me.request({url:"/home/getAlarm",method:"POST"}),viewingTasks:()=>Me.request({url:"/home/viewingTasks",method:"POST"})},Se={scrollList:e=>Me.request({url:"/coreplay/app/scrollinfo/scroll-list",method:"GET",query:e.query,load:!0}),buyScrollList:e=>Me.request({url:"/coreplay/app/scrollinfo/boughtListByUser",method:"GET",load:!0}),scrollinfo:e=>Me.request({url:"/coreplay/app/scrollinfo",method:"GET",path:e.path,load:!0}),getDetailInfoByDate:e=>Me.request({url:"/coreplay/app/scrollinfo/getDetailInfoByDate",method:"GET",query:e.query}),getDetailInfoByScrollId:e=>Me.request({url:"/coreplay/app/scrollinfo/getDetailInfoByScrollId",method:"GET",path:e.path,query:e.query}),getDetailInfoByUserId:e=>Me.request({url:"/coreplay/app/scrollinfo/getDetailInfoByUserId",method:"GET",query:e.query}),viewingTasks:e=>Me.request({url:"/home/viewingTasks",method:"post",query:e.query}),buyScroll:e=>Me.request({url:"/coreplay/app/scrollinfo/buyScroll",method:"post",data:e.data}),myQrcode:e=>Me.request({url:"/user/team/getH5Link",method:"GET",query:e.query,responseType:"arraybuffer"}),nickname:e=>Me.request({url:"/home/nickname",method:"post",query:e.query})},Te={login:{userRegister:e=>Me.request({url:"/user/register",data:e.data,load:!0}),getCaptcha:e=>Me.request({url:"/user/sendVerifyCode",query:e.query,method:"GET"}),userLoginByPassword:e=>Me.request({url:"/user/login",data:e.data,load:!0}),resetPassword:e=>Me.request({url:"/user/login/resetPassword",data:e.data,path:e.path,method:"POST"}),getIMToken:e=>Me.request({url:"/user/chat/getUserSig",query:e.query,method:"GET"})},mine:{getUserinfo:e=>Me.request({url:"/user/getUserData",method:"GET"}),updateUserInfo:e=>Me.request({url:"/user/updateUserData",data:e.data,method:"PUT",load:1}),myComment:e=>Me.request({url:"/user/home/myComment",query:e.query,method:"POST"}),certification:e=>Me.request({url:"/user/info/certification",data:e.data,method:"POST",load:!0}),pay:e=>Me.request({url:"/home/pay",query:e.query,method:"POST"}),getBalanceLog:e=>Me.request({url:"/home/getBalanceLog",query:e.query,method:"POST"}),selectPurse:e=>Me.request({url:"/user/selectPurse",query:e.query,method:"GET"}),releasedList:e=>Me.request({url:"/user/released/list",query:e.query,method:"GET"})},video:Ie,news:{getUserSig:e=>Me.request({url:"/user/chat/getUserSig",method:"GET",query:e.query}),setNotes:e=>Me.request({url:"/user/friend/setNotes",method:"POST",query:e.query}),deleteFriend:e=>Me.request({url:"/user/friend/deleteFriend",method:"POST",path:e.path}),addFriend:e=>Me.request({url:"/user/friend/addFriend",method:"POST",path:e.path}),getFriendListPage:e=>Me.request({url:"/user/friend/getFriendListPage",path:e.path,query:e.query,method:"GET"}),searchFriendByName:e=>Me.request({url:"/user/friend/searchFriendByName",path:e.path,query:e.query,method:"GET"}),getImToken:e=>Me.request({url:"/im/token/getUserAppToken",method:"get",query:e}),sendRedBag:e=>Me.request({url:"/home/sendRedBag",method:"POST",data:e.data}),grabred:e=>Me.request({url:"/home/grabred",method:"POST",data:e.data}),getRedbag:e=>Me.request({url:"/home/getRedbag",method:"POST",query:e.data}),grabredLog:e=>Me.request({url:"/home/grabredLog",method:"POST",query:e})},team:{myTeam:(e={})=>Me.request({url:"/user/team/get",query:e,method:"GET"}),lowTeam:e=>Me.request({url:"/home/lowTeam",method:"post",query:e.query})},intergral:Se,shop:{getProduct:e=>Me.request({url:"/appProductionApi/getProductionList",method:"GET",data:e.data}),getCategory:e=>Me.request({url:"/appProductionApi/getProductCategory",method:"GET",query:e.query}),productDetail:e=>Me.request({url:"/appProductionApi/getProductionDetail",method:"GET",query:e.query})},uploadImg:"/homecommon/upload",uploadVideo:"/homecommon/uploadVideo",getArticle:e=>Me.request({url:"/home/getArticle",query:e.query,method:"POST"})},Me={config:{host:"http://localhost:5173",uploadFilePath:"/homecommon/file/preview?fileName=",uploadVideoPath:"/homecommon/file/play?fileName=",img_size:5,video_size:300,h5:"",TChat:{SDKAppID:"1600057470",secretKey:"7d016821bf27a846739e209534abe4c4bba131559b3318e19f8ccf9294e08b29",userSig:""}},reg:{tel:/^1[3-9]\d{9}$/,idCard:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/},alert(e){if(null!=e&&null!=e)return"string"==typeof e||"number"==typeof e?(uni.showToast({title:""+e,icon:"none",duration:3e3}),null):(e.title=e.title?e.title:"",e.content=e.content?e.content:"",e.confirmText=e.confirmText?e.confirmText:"确定",e.showCancel=!1!==e.showCancel,e.cancelText=e.cancelText?e.cancelText:"取消",new Promise(((t,n)=>{uni.showModal({title:e.title,content:e.content,confirmText:e.confirmText,showCancel:e.showCancel,cancelText:e.cancelText,success:n=>{e.success&&e.success(n),t(n)},fail:t=>{e.fail&&e.fail(t),n(t)},complete:e=>{}})})))},upload:e=>new Promise(((t,n)=>{let a=uni.getStorageSync("token")||"";e.url=e.url?e.url:"/file/upload",e.file=e.file?e.file:"",e.data=e.data?e.data:{},e.header={"Access-Control-Allow-Origin":"*",...e.header},a&&(e.header.Authorization=`Bearer ${a}`),uni.showLoading({title:"正在上传"}),uni.uploadFile({url:Me.config.host+e.url,filePath:e.file,header:e.header,formData:e.data,dataType:"json",name:"file",success:n=>{uni.hideLoading(),e.success&&e.success(JSON.parse(n.data)),t(JSON.parse(n.data))},fail:t=>{uni.hideLoading(),e.fail&&e.fail(t.data),n(t)}})})),request(e){let t=uni.getStorageSync("token")||"";return new Promise(((n,a)=>{let o=Me.config.host+(e.url?e.url:"/api/index/index");e.path&&e.path instanceof Array&&e.path.forEach((e=>{o+=`/${e}`})),e.query&&(o=Me.setUrl(o,e.query)),e.load&&uni.showLoading({title:"加载中",mask:!0}),e.header={"Content-Type":"application/json;charset=UTF-8","Access-Control-Allow-Headers":"Origin, X-Requested-With, Content-Type, Accept","Access-Control-Allow-Origin":"*",IS_APP_REQ:"APP_REQ",...e.header},t&&(e.header.Authorization=`Bearer ${t}`),uni.request({url:o,method:e.method?e.method:"POST",sslVerify:!1,data:e.data,header:e.header,dataType:"json",responseType:e.responseType||"text",success:t=>{e.load&&uni.hideLoading(),401==t.data.code&&Me.logout((()=>{Me.alert("请先登录"),a(t.data)})),e.success&&e.success(t.data),n(t.data)},fail:t=>{e.load&&uni.hideLoading(),e.fail&&e.fail(t),a(t)},complete(t){e.complete&&e.complete(t)}})}))},imgReplace:(e,t)=>(t||(e=e.replace(/<img src="/gi,'<img src="'+Me.config.host)),e.replace(/<p([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/gi,"<p").replace(/<p>/gi,'<p style="font-size: 15px; line-height: 25px;">').replace(/<img([\s\w"-=\/\.:;]+)((?:(height="[^"]+")))/gi,"<img$1").replace(/<img([\s\w"-=\/\.:;]+)((?:(width="[^"]+")))/gi,"<img$1").replace(/<img([\s\w"-=\/\.:;]+)((?:(style="[^"]+")))/gi,"<img$1").replace(/<img([\s\w"-=\/\.:;]+)((?:(alt="[^"]+")))/gi,"<img$1").replace(/<img([\s\w"-=\/\.:;]+)/gi,'<img style="width: 100%;" $1')),routeWithParams(e,t={},n="navigateTo"){const a=Me.setUrl("url",t);switch(n){case"navigateTo":uni.navigateTo({url:a});break;case"redirectTo":uni.redirectTo({url:a});break;case"reLaunch":uni.reLaunch({url:a});break;case"switchTab":uni.switchTab({url:a});break;default:throw new Error(`Unsupported method: ${n}`)}},set_param(e){let t="";e||(e=[]);for(let[n,a]of Object.entries(e))t+=`${n}=${a}&`;return t="&"==t.substring(t.length-1)?t.substring(0,t.length-1):t,t||t.substring(1)},setUrl:(e,t)=>e+=(e.indexOf("?")<0?"?":"&")+Me.set_param(t),query_to_param(e){let t={};return decodeURIComponent(e).split("&").forEach((e=>{let[n,a]=e.split("=");t[n]=a})),t},countDownd(e){if(!e)return;e=Number(e);let t=Me.timeFormin(parseInt(time/86400)),n=Me.timeFormin(parseInt(time%86400/3600)),a=Me.timeFormin(parseInt(time%86400%3600/60)),o=Me.timeFormin(parseInt(time%86400%3600%60)),i="";return t&&(i+=t+"天"),i+=n||0==n?n>9?n+":":"0"+n+":":"00:",i+=a||0==a?a>9?a+":":"0"+a+":":"00:",i+=o?o>9?o:"0"+o:"00",i},timeFormin:e=>e<0?0:e,toTwo(e){let t=String(Number(e));return t.length<2&&(t="0"+t),t},formatTime(e,t){const n=new Date;e&&"string"==typeof e||(e="yyyy-MM-dd HH:mm:ss"),t?String(t).length<=10&&(t*=1e3):t=n.valueOf();const a=new Date(t);let o=a.getFullYear(),i=a.getMonth()+1,s=a.getDate(),r=a.getDay(),c=a.getHours(),l=a.getMinutes(),u=a.getSeconds();(e=(e=(e=(e=(e=(e=e.replace("yyyy",o)).replace("MM",this.toTwo(i))).replace("M",i)).replace("dd",this.toTwo(s))).replace("d",s)).replace("w",["日","一","二","三","四","五","六"][r])).match("h")?(c=c>12?c-12:c,e=(e=e.replace("hh",this.toTwo(c))).replace("h",c)):e.match("H")&&(e=(e=e.replace("HH",this.toTwo(c))).replace("H",c));let d=c>12?"am":"pm";return e=(e=(e=(e=(e=e.replace("mm",this.toTwo(l))).replace("m",l)).replace("ss",this.toTwo(u))).replace("s",u)).replace("a",d)},strtotime(e,t){if(t&&e.indexOf(" ")>-1){let n=e.split(" "),a=n[0],o=n[1];t?String(t).length<=10&&(t*=1e3):t=i.valueOf();let i=new Date(t);switch(o){case"year":i.setYear(i.getFullYear()+parseInt(a));break;case"month":i.setMonth(i.getMonth()+parseInt(a));break;case"day":i.setDate(i.getDate()+parseInt(a));break;case"week":i.setDate(i.getDate()+7*parseInt(a));break;case"hour":i.setHours(i.getHours()+parseInt(a));break;case"minute":i.setMinutes(i.getMinutes()+parseInt(a))}return i.getTime()}return new Date(t).getTime()},upload_image(e){const t=e.count?e.count:8;if(e.type||(e.type=2),""!=e.value&&null==e.value&&null==e.value&&(e.value=1==e.type?"":[]),e.value.length>=t&&2==e.type)return void Me.alert("上传图片已达上限");uni.chooseImage({count:1==e.type?1:t-e.value.length,sourceType:e.sourceType||["album","camera"],success:t=>{t.tempFiles.forEach((n=>{let a=1048576*Me.config.img_size;n.size>a&&!e.unlimited?Me.alert(`大小超过${Me.config.img_size}m`):Me.upload({file:n.path,mode:"img",success(n){if(200===n.code){const t=n.data.url;return 2==e.type?e.value.push(t):1==e.type&&(e.value=t),void(e.success&&e.success({value:t}))}Me.alert(t.msg)}})}))},fail(e){e.errMsg}})},upload_video(e){!e.count||e.count,uni.chooseVideo({compressed:!1,success(t){Me.upload({file:t.tempFilePath,mode:"video",success(n){200!=n.code?Me.alert(n.msg):e.success&&e.success({value:n.data.url,width:t.width,height:t.height,size:t.size,duration:t.duration})}})},fail(e){e.errMsg}})},upload_files(e){const t=e.value,n=Me.config.file_suffix,a=e.count?e.count:1;t.length>=a?Me.alert("上传数量已达上限"):(g("log","at common/js/util.js:718","upload_files",e),"android"==uni.getSystemInfoSync().platform?(g("log","at common/js/util.js:770","chooseFile"),chooseFile((a=>{g("log","at common/js/util.js:772","rs",a),function(a){let o=a.split(".").pop().toLowerCase();n.find((e=>e.id==o))?Me.upload({file:a,success(n){200==n.code?(t.push(n.data),e.success&&e.success({...n.data,value:t})):Me.alert(n.msg)}}):Me.alert(`不能上传${o}格式文件`)}(a)}))):Me.alert("因权限问题暂不支持非android平台"))},upload_audio(e){const t=e.value,n=Me.config.audio_suffix,a=e.count?e.count:1;t.length>=a?Me.alert("上传数量已达上限"):"android"==uni.getSystemInfoSync().platform?chooseFile((a=>{g("log","at common/js/util.js:855","chooseFile",a),function(a){let o=a.split(".").pop().toLowerCase();n.find((e=>e.id==o))?Me.upload({file:a,success(n){200==n.code?(t.push(n.data),e.success&&e.success({...n.data,value:t})):Me.alert(n.msg)}}):Me.alert(`不能上传${o}格式文件`)}(a)})):Me.alert("因权限问题暂不支持非android平台")},video_coverImage:e=>`${e}?x-oss-process=video/snapshot,t_1,m_fast`,view_imgs(e,t){e&&0!=e.length?uni.previewImage({urls:e,current:t}):Me.alert("暂无")},view_file(e){let t=Me.get_file_suffix(e).id;if(!["doc","xls","ppt","pdf","docx","xlsx","pptx"].includes(t))return Me.alert("操作需要在web端"),void g("log","at common/js/util.js:902","Unsupported suffix",t);uni.downloadFile({url:e,success:e=>{uni.openDocument({filePath:e.tempFilePath,fail:e=>{g("log","at common/js/util.js:911","rs",e)}})}})},get_file_suffix(e,t){t||(t="file");const n=Me.config[{file:"file_suffix",audio:"audio_suffix"}[t]];let a="";return e&&(a=n.find((t=>t.id===e.split(".").pop().toLowerCase()))),a},get_audio_suffix(e){const t=Me.config.audio_suffix;let n="";return e&&(n=t.find((t=>t.id===e.split(".").pop().toLowerCase()))),n},payment(e){(e=e||{}).data=e.data?e.data:{},e.method="app",Me.payment_request(e)},payment_request(e){if(e.debug&&g("log","at common/js/util.js:992","params",e),!e.fn)throw"no function";function t(t){const n=e.cb;n&&uni.redirectTo({url:Me.setUrl("/index/pay_result",{orderNumber:n.orderNumbers||"",result:t,styles:n.styles||"",price:n.price||"",url:n.url||""})})}e.fn(e.data).then((n=>{if(e.debug&&g("log","at common/js/util.js:1021","request success result",n),200==n.code)switch(e.data.payType){case"1":switch(e.method){case"mp":n.data&&n.data.paySign?uni.requestPayment({provider:"wxpay",timeStamp:n.data.timeStamp,package:n.data.package,nonceStr:n.data.nonceStr,paySign:n.data.paySign,signType:n.data.signType,success(a){e.success&&e.success(n),t("success")},fail(n){e.fail&&e.fail(n),t("fail")},complete(t){e.debug&&g("log","at common/js/util.js:1047","requestPayment complete",t),e.complete&&e.complete(t)}}):e.fail&&e.fail("no data");break;case"app":uni.requestPayment({provider:"wxpay",orderInfo:n.data,success(a){e.success&&e.success(n),t("success")},fail(n){e.fail&&e.fail(n),t("fail")},complete(t){e.debug&&g("log","at common/js/util.js:1070","requestPayment complete",t),e.complete&&e.complete(t)}})}break;case"2":if("app"===e.method)uni.requestPayment({provider:"alipay",orderInfo:n.msg,success(a){e.success&&e.success(n),t("success")},fail(n){e.fail&&e.fail(n),t("fail")},complete(t){e.debug&&g("log","at common/js/util.js:1095","requestPayment complete",t),e.complete&&e.complete(t)}});break;case"4":e.success&&e.success(n),t("success")}else Me.alert(n.msg),e.fail&&e.fail(n)})).catch((e=>{g("log","at common/js/util.js:1115","request catch result",e)}))},weChatLogin(e){e=e||{};const t=uni.getStorageSync("parent_id"),n=uni.getStorageSync("admin_id");uni.getUserProfile({desc:"weixin",success:a=>{const o=a.userInfo;let i={nickName:o.nickName,avatarUrl:o.avatarUrl};uni.login({provider:"weixin",success:a=>{i.code=a.code,i.platform="wechatMini",t&&(i.parent_id=t),n&&(i.admin_id=n),"login:ok"==a.errMsg&&Me.request({url:"/api/user/third",data:i,load:1}).then((t=>{200==t.code&&e.success&&e.success(t)}))}})},fail(t){Me.alert("您拒绝了授权"),e.fail&&e.fail(t)},complete(){e.complete&&e.complete()}})},authorize(e){return new Promise(((t,n)=>{if(e||(e={}),!plus.runtime.isAgreePrivacy())return void t("未同意用户协议隐私政策");const a={location:{name:"定位服务",scope:"scope.userLocation",txt:"需要获取您的地理位置"},photosAlbum:{name:"相册",scope:"scope.writePhotosAlbum",txt:"需要访问您的相册"},camera:{name:"摄像头",scope:"scope.camera",txt:"需要访问您的摄像头"}};e.key&&(e={...e,...a[e.key]});let o="";o="appAuthorize",this.appAuthorize(e).then((n=>{e.success&&e.success(n),t(n)})).catch((t=>{e.fail&&e.fail(t),n(t)}))}))},appAuthorize(e){return new Promise(((t,n)=>{if(!1===uni.getSystemSetting().locationEnabled)return this.alert(e.txt),void n({msg:"未授权对应功能"});const a=uni.getAppAuthorizeSetting().locationAuthorized;if(g("log","at common/js/util.js:1277","locationAuthorized",a),"config error"!==a){if("denied"===a);else if("authorized"===a)return void t(e);if("android"!=uni.getSystemInfoSync().platform)return this.alert("请在设置里允许打开定位信息"),void t({msg:"用户未开启定位权限"});plus.android.requestPermissions(["android.permission.ACCESS_FINE_LOCATION"],(e=>{for(let t=0;t<e.granted.length;t++){g("log","at common/js/util.js:1309","已获取的权限:"+e.granted[t])}for(let t=0;t<e.deniedPresent.length;t++){g("log","at common/js/util.js:1316","拒绝本次申请的权限:"+e.deniedPresent[t])}for(let t=0;t<e.deniedAlways.length;t++){g("log","at common/js/util.js:1322","永久拒绝申请的权限:"+e.deniedAlways[t])}[-1].includes(null)&&uni.openAppAuthorizeSetting({success:e=>{n({msg:"引导用户打开设置页面",info:e})},fail:e=>{n({msg:"用户设置页面打开失败",info:e})}})}),(e=>{g("log","at common/js/util.js:1352","申请权限错误:"+e.code+" = "+e.message),t({code:e.code,message:e.message})}))}else n({msg:"开发者未勾选定位服务模块"})}))},weChatAuthorize:e=>new Promise(((t,n)=>{["scope.userInfo","scope.userLocation","scope.userLocationBackground","scope.address","scope.record","scope.writePhotosAlbum","scope.camera","scope.invoice","scope.invoiceTitle","scope.werun"].includes(e.scope)?uni.authorize({scope:e.scope,success:e=>{t(e)},fail:t=>{n(t),Me.alert({title:"系统提示",value:e.txt,success:e=>{e.confirm&&uni.openSetting()}})}}):t({msg:"不在限制范围内"})})),finalLogin(e,t){const n=e.data;uni.setStorageSync("token",n),uni.showLoading({mask:!0}),Me.getUserinfo((e=>{uni.$emit("login"),Me.loginTencent(e),setTimeout((()=>{uni.switchTab({url:"/pages/index/index"})}),500),t&&t()}))},loginAccountManagement(e){let t=uni.getStorageSync("userInfoList")||[];const n=t.findIndex((t=>t.userId===e.userId));-1!==n&&t.splice(n,1),t.push(e),uni.setStorageSync("userInfoList",t)},loginTencent(e){Te.login.getIMToken({}).then((t=>{const n={SDKAppID:Me.config.TChat.SDKAppID,userID:e.id+"",userSig:t.msg};uni.$TUICallKit.login(n,(e=>{0===e.code?g("log","at common/js/util.js:1475","[TUICallKit] login success."):g("error","at common/js/util.js:1477","[TUICallKit] login failed, failed message = ",e.msg,params)})),uni.$chat.login({userID:e.id+"",userSig:t.msg}).then((e=>{g("log","at common/js/util.js:1486","im login success",e)}))}))},getUserinfo:e=>new Promise((t=>{Te.mine.getUserinfo().then((n=>{if(200===n.code){const a=n.data;t(a),ke.commit("setState",{key:"userinfo",value:a}),uni.setStorageSync("userinfo",a),e&&e(a)}})).finally((()=>{uni.hideLoading()}))})),isLogin(e){let t=uni.$store.state.userinfo;return new Promise(((n,a)=>{t.id?(n(),e&&e()):a()}))},logout(e){ke.state.userinfo.userId&&(uni.$emit("logout"),uni.$chat.logout().then((e=>{g("log","at common/js/util.js:1561","tim logout rs")})).catch((e=>{g("log","at common/js/util.js:1563","tim logout error:",e)}))),ke.commit("setState",{key:"userinfo",value:{}}),uni.removeStorageSync("userinfo"),uni.removeStorageSync("token"),e&&e()},isAuth(e){Me.isLogin((()=>{const t=uni.$store.state.userinfo;g("log","at common/js/util.js:1585","userinfo.userIdCard",t.userIdCard),t.userIdCard?e.success&&e.success(t):(e.noLink||uni.navigateTo({url:"/pages/mine/realname"}),e.fail&&pararm.fail(t))}))},makePhone(e){e||Me.alert("暂无手机号"),uni.makePhoneCall({phoneNumber:e,fail(e){g("log","at common/js/util.js:1607","err",e)}})},format_url:(e,t)=>e?e.match(/^http/)?e:"https://9yvideo.oss-cn-beijing.aliyuncs.com/"+e:"",replace_url(e){if(!e||"string"!=typeof e)throw`${e} is not String`;return e.slice(e.indexOf("/images")+1)},formart_lnglat:e=>e?e=parseFloat(Number(e).toFixed(6)):e,checkLink(e,t="navigateTo"){const n=getCurrentPages(),a=e,o=n.findIndex((e=>e.route==a));o<0?uni[t]({url:`/${a}`}):uni.navigateBack({delta:n.length-o-1})},rp(e){var t=["零","一","二","三","四","五","六","七","八","九","十"],n="";e=""+e;for(var a=0;a<e.length;a++)n+=t[parseInt(e.charAt(a))];return 2==n.length&&(n.charAt(1)==t[0]?(n=n.charAt(0)+t[10])==t[1]+t[10]&&(n=t[10]):n.charAt(0)==t[1]?n=t[10]+n.charAt(1):n.charAt(0)==t[2]?n=t[2]+t[10]+n.charAt(1):n.charAt(0)==t[3]?n=t[3]+t[10]+n.charAt(1):n.charAt(0)==t[4]?n=t[4]+t[10]+n.charAt(1):n.charAt(0)==t[5]?n=t[5]+t[10]+n.charAt(1):n.charAt(0)==t[6]?n=t[6]+t[10]+n.charAt(1):n.charAt(0)==t[7]?n=t[7]+t[10]+n.charAt(1):n.charAt(0)==t[8]?n=t[8]+t[10]+n.charAt(1):n.charAt(0)==t[9]?n=t[9]+t[10]+n.charAt(1):n.charAt(0)==t[10]&&(n=t[10]+t[10]+n.charAt(1))),n},copyText(e){uni.setClipboardData({data:e,success:()=>{Me.alert({title:"文本已复制到剪贴板"})}})},showToastAndRedirect(e,t="none",n=()=>{}){uni.showToast({title:e,icon:t,duration:2e3,complete:()=>{n(),uni.hideLoading()}})},toChat(e){uni.navigateTo({url:Me.setUrl("/pages/news/chat/chat",{name:e.name,msgId:e.msgId,type:e.type})})},scan(){uni.scanCode({success:e=>{if(e&&e.result){let t=JSON.parse(e.result);"user"==t.key&&uni.navigateTo({url:Me.setUrl("/pages/news/applyFriend",{userId:t.userId,nickname:t.userNickname})})}},fail:e=>{Me.alert("二维码扫描失败")}})}},Ne=w({__name:"notice",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(t){const n=e.useModel(t,"value");function a(){n.value=!n.value}function o(e){uni.navigateTo({url:Me.setUrl("/pages/index/article",{id:e})})}return(t,i)=>{const s=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"notice tac c999 f20"},[e.createElementVNode("view",{class:"button",onClick:a},[n.value?(e.openBlock(),e.createBlock(s,{key:0,type:"checkbox-filled",size:"40rpx",color:"#000"})):(e.openBlock(),e.createBlock(s,{key:1,type:"circle",size:"40rpx",color:"#99"}))]),e.createElementVNode("text",null,"已阅读并同意"),e.createElementVNode("text",{class:"mlr10 c333",onClick:i[0]||(i[0]=e=>o(1))},"服务协议"),e.createElementVNode("text",null,"和"),e.createElementVNode("text",{class:"mlr10 c333",onClick:i[1]||(i[1]=e=>o(1))},"隐私政策")])}}},[["__scopeId","data-v-08033f5c"]]),we={__name:"open",setup(t){function n(){uni.navigateTo({url:"/pages/login/loginPhone"})}return e.ref(!1),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"page"},[e.createElementVNode("view",{class:"background pfull"},[e.createElementVNode("image",{src:M,mode:"aspectFill"})]),e.createElementVNode("view",{class:"cotainer pf l0 r0 b0 mb60"},[e.createElementVNode("view",{class:"main mlr20"},[e.createElementVNode("view",{class:"title cfff b"},[e.createElementVNode("view",null,"HELLO"),e.createElementVNode("view",{class:"mt10"},"欢迎来到九亿")]),e.createElementVNode("view",{class:"content mt40 bfff br30"},[e.createElementVNode("view",{class:"btn bar pro black",onClick:n},"手机号登录")])]),e.createElementVNode("view",{class:"fill"})])]))}},De="/static/logo.png",be=w({__name:"getCode",props:{event:{type:String,default:"register"},count:{type:Number,default:60},phone:{type:String,default:""}},setup(t){const n=t,a=e.ref(60),o=e.ref(null),i=e.ref(1);function s(){return n.phone?2==i.value?(Me.alert("请稍后获取验证码"),!1):(i.value=2,o.value=setInterval((()=>{a.value>0?a.value--:(i.value=3,a.value=n.count,clearInterval(o.value))}),1e3),void Te.login.getCaptcha({query:{phoneNumber:n.phone}}).then((e=>{g("log","at components/getCode/getCode.vue:96",e),200==e.code?Me.alert("验证码已发送"):(Me.alert(e.msg),i.value=3,clearInterval(o.value))}))):(Me.alert("手机号不正确"),!1)}return e.onMounted((()=>{a.value=n.count})),e.onBeforeUnmount((()=>{i.value=1,clearInterval(o.value)})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"getCode",onClick:s},[e.withDirectives(e.createElementVNode("text",null,"发送",512),[[e.vShow,1==i.value]]),e.withDirectives(e.createElementVNode("text",null,""+e.toDisplayString(a.value)+"s",513),[[e.vShow,2==i.value]]),e.withDirectives(e.createElementVNode("text",null,"重新发送",512),[[e.vShow,3==i.value]])]))}},[["__scopeId","data-v-4cf636e1"]]);var Le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ae(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})})),n}var Re={exports:{}},Oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,63,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];const Ve={getRandomValues(e){if(!(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8ClampedArray))throw new Error("Expected an integer array");if(e.byteLength>65536)throw new Error("Can only request a maximum of 65536 bytes");return function(e,t){for(var n,a=e.length,o="="===e[a-2]?2:"="===e[a-1]?1:0,i=0,s=a-o&4294967292,r=0;r<s;r+=4)n=Oe[e.charCodeAt(r)]<<18|Oe[e.charCodeAt(r+1)]<<12|Oe[e.charCodeAt(r+2)]<<6|Oe[e.charCodeAt(r+3)],t[i++]=n>>16&255,t[i++]=n>>8&255,t[i++]=255&n;1===o&&(n=Oe[e.charCodeAt(r)]<<10|Oe[e.charCodeAt(r+1)]<<4|Oe[e.charCodeAt(r+2)]>>2,t[i++]=n>>8&255,t[i++]=255&n),2===o&&(n=Oe[e.charCodeAt(r)]<<2|Oe[e.charCodeAt(r+1)]>>4,t[i++]=255&n)}(h("DCloud-Crypto").getRandomValues(e.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e}};var Be={exports:{}};const xe=Ae(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ue;function Ge(){return Ue||(Ue=1,Be.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&Ve&&(n=Ve),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==Le&&Le.crypto&&(n=Le.crypto),!n)try{n=xe}catch(g){}var a=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},s=i.lib={},r=s.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=s.WordArray=r.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,a=this.sigBytes,o=e.sigBytes;if(this.clamp(),a%4)for(var i=0;i<o;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[a+i>>>2]|=s<<24-(a+i)%4*8}else for(var r=0;r<o;r+=4)t[a+r>>>2]=n[r>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(a());return new c.init(t,e)}}),l=i.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;a.push((i>>>4).toString(16)),a.push((15&i).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a+=2)n[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new c.init(n,t/2)}},d=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new c.init(n,t)}},m=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(zo){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=m.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,a=this._data,o=a.words,i=a.sigBytes,s=this.blockSize,r=i/(4*s),l=(r=t?e.ceil(r):e.max((0|r)-this._minBufferSize,0))*s,u=e.min(4*l,i);if(l){for(var d=0;d<l;d+=s)this._doProcessBlock(o,d);n=o.splice(0,l),a.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=p.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=i.algo={};return i}(Math),e)),Be.exports;var e}var Fe,Ye={exports:{}};function He(){return Fe||(Fe=1,Ye.exports=(s=Ge(),n=(t=s).lib,a=n.Base,o=n.WordArray,(i=t.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=a.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],a=0;a<t;a++){var i=e[a];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=a.clone.call(this),t=e.words=this.words.slice(0),n=t.length,o=0;o<n;o++)t[o]=t[o].clone();return e}}),s)),Ye.exports;var e,t,n,a,o,i,s}var Ze,qe={exports:{}};function je(){return Ze||(Ze=1,qe.exports=(e=Ge(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,a=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,a=[],o=0;o<t;o++)a[o>>>2]|=e[o]<<24-o%4*8;n.call(this,a,t)}else n.apply(this,arguments)};a.prototype=t}}(),e.lib.WordArray)),qe.exports;var e}var Je,Xe={exports:{}};function Ke(){return Je||(Je=1,Xe.exports=(e=Ge(),function(){var t=e,n=t.lib.WordArray,a=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}a.Utf16=a.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var t=e.length,a=[],o=0;o<t;o++)a[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(a,2*t)}},a.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],i=0;i<n;i+=2){var s=o(t[i>>>2]>>>16-i%4*8&65535);a.push(String.fromCharCode(s))}return a.join("")},parse:function(e){for(var t=e.length,a=[],i=0;i<t;i++)a[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(a,2*t)}}}(),e.enc.Utf16)),Xe.exports;var e}var ze,We={exports:{}};function Qe(){return ze||(ze=1,We.exports=(e=Ge(),function(){var t=e,n=t.lib.WordArray;function a(e,t,a){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var r=a[e.charCodeAt(s-1)]<<s%4*2|a[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=r<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,a=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,r=0;r<4&&i+.75*r<n;r++)o.push(a.charAt(s>>>6*(3-r)&63));var c=a.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var r=e.indexOf(s);-1!==r&&(t=r)}return a(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)),We.exports;var e}var $e,et={exports:{}};function nt(){return $e||($e=1,et.exports=(e=Ge(),function(){var t=e,n=t.lib.WordArray;function a(e,t,a){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var r=a[e.charCodeAt(s-1)]<<s%4*2|a[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=r<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,a=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],s=0;s<a;s+=3)for(var r=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<a;c++)i.push(o.charAt(r>>>6*(3-c)&63));var l=o.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<o.length;s++)i[o.charCodeAt(s)]=s}var r=o.charAt(64);if(r){var c=e.indexOf(r);-1!==c&&(n=c)}return a(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url)),et.exports;var e}var at,ot={exports:{}};function it(){return at||(at=1,ot.exports=(e=Ge(),function(t){var n=e,a=n.lib,o=a.WordArray,i=a.Hasher,s=n.algo,r=[];!function(){for(var e=0;e<64;e++)r[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=s.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,o=e[a];e[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],g=e[t+4],f=e[t+5],v=e[t+6],_=e[t+7],y=e[t+8],E=e[t+9],C=e[t+10],k=e[t+11],I=e[t+12],S=e[t+13],T=e[t+14],M=e[t+15],N=i[0],w=i[1],D=i[2],b=i[3];N=l(N,w,D,b,s,7,r[0]),b=l(b,N,w,D,c,12,r[1]),D=l(D,b,N,w,p,17,r[2]),w=l(w,D,b,N,h,22,r[3]),N=l(N,w,D,b,g,7,r[4]),b=l(b,N,w,D,f,12,r[5]),D=l(D,b,N,w,v,17,r[6]),w=l(w,D,b,N,_,22,r[7]),N=l(N,w,D,b,y,7,r[8]),b=l(b,N,w,D,E,12,r[9]),D=l(D,b,N,w,C,17,r[10]),w=l(w,D,b,N,k,22,r[11]),N=l(N,w,D,b,I,7,r[12]),b=l(b,N,w,D,S,12,r[13]),D=l(D,b,N,w,T,17,r[14]),N=u(N,w=l(w,D,b,N,M,22,r[15]),D,b,c,5,r[16]),b=u(b,N,w,D,v,9,r[17]),D=u(D,b,N,w,k,14,r[18]),w=u(w,D,b,N,s,20,r[19]),N=u(N,w,D,b,f,5,r[20]),b=u(b,N,w,D,C,9,r[21]),D=u(D,b,N,w,M,14,r[22]),w=u(w,D,b,N,g,20,r[23]),N=u(N,w,D,b,E,5,r[24]),b=u(b,N,w,D,T,9,r[25]),D=u(D,b,N,w,h,14,r[26]),w=u(w,D,b,N,y,20,r[27]),N=u(N,w,D,b,S,5,r[28]),b=u(b,N,w,D,p,9,r[29]),D=u(D,b,N,w,_,14,r[30]),N=d(N,w=u(w,D,b,N,I,20,r[31]),D,b,f,4,r[32]),b=d(b,N,w,D,y,11,r[33]),D=d(D,b,N,w,k,16,r[34]),w=d(w,D,b,N,T,23,r[35]),N=d(N,w,D,b,c,4,r[36]),b=d(b,N,w,D,g,11,r[37]),D=d(D,b,N,w,_,16,r[38]),w=d(w,D,b,N,C,23,r[39]),N=d(N,w,D,b,S,4,r[40]),b=d(b,N,w,D,s,11,r[41]),D=d(D,b,N,w,h,16,r[42]),w=d(w,D,b,N,v,23,r[43]),N=d(N,w,D,b,E,4,r[44]),b=d(b,N,w,D,I,11,r[45]),D=d(D,b,N,w,M,16,r[46]),N=m(N,w=d(w,D,b,N,p,23,r[47]),D,b,s,6,r[48]),b=m(b,N,w,D,_,10,r[49]),D=m(D,b,N,w,T,15,r[50]),w=m(w,D,b,N,f,21,r[51]),N=m(N,w,D,b,I,6,r[52]),b=m(b,N,w,D,h,10,r[53]),D=m(D,b,N,w,C,15,r[54]),w=m(w,D,b,N,c,21,r[55]),N=m(N,w,D,b,y,6,r[56]),b=m(b,N,w,D,M,10,r[57]),D=m(D,b,N,w,v,15,r[58]),w=m(w,D,b,N,S,21,r[59]),N=m(N,w,D,b,g,6,r[60]),b=m(b,N,w,D,k,10,r[61]),D=m(D,b,N,w,p,15,r[62]),w=m(w,D,b,N,E,21,r[63]),i[0]=i[0]+N|0,i[1]=i[1]+w|0,i[2]=i[2]+D|0,i[3]=i[3]+b|0},_doFinalize:function(){var e=this._data,n=e.words,a=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(a/4294967296),s=a;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var r=this._hash,c=r.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return r},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,a,o,i,s){var r=e+(t&n|~t&a)+o+s;return(r<<i|r>>>32-i)+t}function u(e,t,n,a,o,i,s){var r=e+(t&a|n&~a)+o+s;return(r<<i|r>>>32-i)+t}function d(e,t,n,a,o,i,s){var r=e+(t^n^a)+o+s;return(r<<i|r>>>32-i)+t}function m(e,t,n,a,o,i,s){var r=e+(n^(t|~a))+o+s;return(r<<i|r>>>32-i)+t}n.MD5=i._createHelper(c),n.HmacMD5=i._createHmacHelper(c)}(Math),e.MD5)),ot.exports;var e}var st,rt={exports:{}};function ct(){return st||(st=1,rt.exports=(r=Ge(),t=(e=r).lib,n=t.WordArray,a=t.Hasher,o=e.algo,i=[],s=o.SHA1=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],o=n[1],s=n[2],r=n[3],c=n[4],l=0;l<80;l++){if(l<16)i[l]=0|e[t+l];else{var u=i[l-3]^i[l-8]^i[l-14]^i[l-16];i[l]=u<<1|u>>>31}var d=(a<<5|a>>>27)+c+i[l];d+=l<20?1518500249+(o&s|~o&r):l<40?1859775393+(o^s^r):l<60?(o&s|o&r|s&r)-1894007588:(o^s^r)-899497514,c=r,r=s,s=o<<30|o>>>2,o=a,a=d}n[0]=n[0]+a|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+r|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(a+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=a._createHelper(s),e.HmacSHA1=a._createHmacHelper(s),r.SHA1)),rt.exports;var e,t,n,a,o,i,s,r}var lt,ut={exports:{}};function dt(){return lt||(lt=1,ut.exports=(e=Ge(),function(t){var n=e,a=n.lib,o=a.WordArray,i=a.Hasher,s=n.algo,r=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),a=2;a<=n;a++)if(!(e%a))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var a=2,o=0;o<64;)e(a)&&(o<8&&(r[o]=n(t.pow(a,.5))),c[o]=n(t.pow(a,1/3)),o++),a++}();var l=[],u=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(r.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],o=n[1],i=n[2],s=n[3],r=n[4],u=n[5],d=n[6],m=n[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var h=l[p-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,f=l[p-2],v=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;l[p]=g+l[p-7]+v+l[p-16]}var _=a&o^a&i^o&i,y=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),E=m+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&u^~r&d)+c[p]+l[p];m=d,d=u,u=r,r=s+E|0,s=i,i=o,o=a,a=E+(y+_)|0}n[0]=n[0]+a|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+r|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+m|0},_doFinalize:function(){var e=this._data,n=e.words,a=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(a/4294967296),n[15+(o+64>>>9<<4)]=a,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(u),n.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256)),ut.exports;var e}var mt,pt={exports:{}};var ht,gt={exports:{}};function ft(){return ht||(ht=1,gt.exports=(e=Ge(),He(),function(){var t=e,n=t.lib.Hasher,a=t.x64,o=a.Word,i=a.WordArray,s=t.algo;function r(){return o.create.apply(o,arguments)}var c=[r(1116352408,3609767458),r(1899447441,602891725),r(3049323471,3964484399),r(3921009573,2173295548),r(961987163,4081628472),r(1508970993,3053834265),r(2453635748,2937671579),r(2870763221,3664609560),r(3624381080,2734883394),r(310598401,1164996542),r(607225278,1323610764),r(1426881987,3590304994),r(1925078388,4068182383),r(2162078206,991336113),r(2614888103,633803317),r(3248222580,3479774868),r(3835390401,2666613458),r(4022224774,944711139),r(264347078,2341262773),r(604807628,2007800933),r(770255983,1495990901),r(1249150122,1856431235),r(1555081692,3175218132),r(1996064986,2198950837),r(2554220882,3999719339),r(2821834349,766784016),r(2952996808,2566594879),r(3210313671,3203337956),r(3336571891,1034457026),r(3584528711,2466948901),r(113926993,3758326383),r(338241895,168717936),r(666307205,1188179964),r(773529912,1546045734),r(1294757372,1522805485),r(1396182291,2643833823),r(1695183700,2343527390),r(1986661051,1014477480),r(2177026350,1206759142),r(2456956037,344077627),r(2730485921,1290863460),r(2820302411,3158454273),r(3259730800,3505952657),r(3345764771,106217008),r(3516065817,3606008344),r(3600352804,1432725776),r(4094571909,1467031594),r(275423344,851169720),r(430227734,3100823752),r(506948616,1363258195),r(659060556,3750685593),r(883997877,3785050280),r(958139571,3318307427),r(1322822218,3812723403),r(1537002063,2003034995),r(1747873779,3602036899),r(1955562222,1575990012),r(2024104815,1125592928),r(2227730452,2716904306),r(2361852424,442776044),r(2428436474,593698344),r(2756734187,3733110249),r(3204031479,2999351573),r(3329325298,3815920427),r(3391569614,3928383900),r(3515267271,566280711),r(3940187606,3454069534),r(4118630271,4000239992),r(116418474,1914138554),r(174292421,2731055270),r(289380356,3203993006),r(460393269,320620315),r(685471733,587496836),r(852142971,1086792851),r(1017036298,365543100),r(1126000580,2618297676),r(1288033470,3409855158),r(1501505948,4234509866),r(1607167915,987167468),r(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=r()}();var u=s.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],o=n[1],i=n[2],s=n[3],r=n[4],u=n[5],d=n[6],m=n[7],p=a.high,h=a.low,g=o.high,f=o.low,v=i.high,_=i.low,y=s.high,E=s.low,C=r.high,k=r.low,I=u.high,S=u.low,T=d.high,M=d.low,N=m.high,w=m.low,D=p,b=h,L=g,P=f,A=v,R=_,O=y,V=E,B=C,x=k,U=I,G=S,F=T,Y=M,H=N,Z=w,q=0;q<80;q++){var j,J,X=l[q];if(q<16)J=X.high=0|e[t+2*q],j=X.low=0|e[t+2*q+1];else{var K=l[q-15],z=K.high,W=K.low,Q=(z>>>1|W<<31)^(z>>>8|W<<24)^z>>>7,$=(W>>>1|z<<31)^(W>>>8|z<<24)^(W>>>7|z<<25),ee=l[q-2],te=ee.high,ne=ee.low,ae=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=l[q-7],se=ie.high,re=ie.low,ce=l[q-16],le=ce.high,ue=ce.low;J=(J=(J=Q+se+((j=$+re)>>>0<$>>>0?1:0))+ae+((j+=oe)>>>0<oe>>>0?1:0))+le+((j+=ue)>>>0<ue>>>0?1:0),X.high=J,X.low=j}var de,me=B&U^~B&F,pe=x&G^~x&Y,he=D&L^D&A^L&A,ge=b&P^b&R^P&R,fe=(D>>>28|b<<4)^(D<<30|b>>>2)^(D<<25|b>>>7),ve=(b>>>28|D<<4)^(b<<30|D>>>2)^(b<<25|D>>>7),_e=(B>>>14|x<<18)^(B>>>18|x<<14)^(B<<23|x>>>9),ye=(x>>>14|B<<18)^(x>>>18|B<<14)^(x<<23|B>>>9),Ee=c[q],Ce=Ee.high,ke=Ee.low,Ie=H+_e+((de=Z+ye)>>>0<Z>>>0?1:0),Se=ve+ge;H=F,Z=Y,F=U,Y=G,U=B,G=x,B=O+(Ie=(Ie=(Ie=Ie+me+((de+=pe)>>>0<pe>>>0?1:0))+Ce+((de+=ke)>>>0<ke>>>0?1:0))+J+((de+=j)>>>0<j>>>0?1:0))+((x=V+de|0)>>>0<V>>>0?1:0)|0,O=A,V=R,A=L,R=P,L=D,P=b,D=Ie+(fe+he+(Se>>>0<ve>>>0?1:0))+((b=de+Se|0)>>>0<de>>>0?1:0)|0}h=a.low=h+b,a.high=p+D+(h>>>0<b>>>0?1:0),f=o.low=f+P,o.high=g+L+(f>>>0<P>>>0?1:0),_=i.low=_+R,i.high=v+A+(_>>>0<R>>>0?1:0),E=s.low=E+V,s.high=y+O+(E>>>0<V>>>0?1:0),k=r.low=k+x,r.high=C+B+(k>>>0<x>>>0?1:0),S=u.low=S+G,u.high=I+U+(S>>>0<G>>>0?1:0),M=d.low=M+Y,d.high=T+F+(M>>>0<Y>>>0?1:0),w=m.low=w+Z,m.high=N+H+(w>>>0<Z>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[30+(a+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(a+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512)),gt.exports;var e}var vt,_t={exports:{}};var yt,Et={exports:{}};function Ct(){return yt||(yt=1,Et.exports=(e=Ge(),He(),function(t){var n=e,a=n.lib,o=a.WordArray,i=a.Hasher,s=n.x64.Word,r=n.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var a=(2*e+3*t)%5;e=t%5,t=a}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var r=0,d=0,m=0;m<7;m++){if(1&o){var p=(1<<m)-1;p<32?d^=1<<p:r^=1<<p-32}128&o?o=o<<1^113:o<<=1}u[i]=s.create(r,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=s.create()}();var m=r.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,a=this.blockSize/2,o=0;o<a;o++){var i=e[t+2*o],s=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(w=n[o]).high^=s,w.low^=i}for(var r=0;r<24;r++){for(var m=0;m<5;m++){for(var p=0,h=0,g=0;g<5;g++)p^=(w=n[m+5*g]).high,h^=w.low;var f=d[m];f.high=p,f.low=h}for(m=0;m<5;m++){var v=d[(m+4)%5],_=d[(m+1)%5],y=_.high,E=_.low;for(p=v.high^(y<<1|E>>>31),h=v.low^(E<<1|y>>>31),g=0;g<5;g++)(w=n[m+5*g]).high^=p,w.low^=h}for(var C=1;C<25;C++){var k=(w=n[C]).high,I=w.low,S=c[C];S<32?(p=k<<S|I>>>32-S,h=I<<S|k>>>32-S):(p=I<<S-32|k>>>64-S,h=k<<S-32|I>>>64-S);var T=d[l[C]];T.high=p,T.low=h}var M=d[0],N=n[0];for(M.high=N.high,M.low=N.low,m=0;m<5;m++)for(g=0;g<5;g++){var w=n[C=m+5*g],D=d[C],b=d[(m+1)%5+5*g],L=d[(m+2)%5+5*g];w.high=D.high^~b.high&L.high,w.low=D.low^~b.low&L.low}w=n[0];var P=u[r];w.high^=P.high,w.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var a=8*e.sigBytes,i=32*this.blockSize;n[a>>>5]|=1<<24-a%32,n[(t.ceil((a+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,r=this.cfg.outputLength/8,c=r/8,l=[],u=0;u<c;u++){var d=s[u],m=d.high,p=d.low;m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),l.push(p),l.push(m)}return new o.init(l,r)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(m),n.HmacSHA3=i._createHmacHelper(m)}(Math),e.SHA3)),Et.exports;var e}var kt,It={exports:{}};var St,Tt={exports:{}};function Mt(){return St||(St=1,Tt.exports=(e=Ge(),n=(t=e).lib.Base,a=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),r=i.words,c=s.words,l=0;l<n;l++)r[l]^=1549556828,c[l]^=909522486;i.sigBytes=s.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))),Tt.exports;var e,t,n,a}var Nt,wt={exports:{}};var Dt,bt={exports:{}};function Lt(){return Dt||(Dt=1,bt.exports=(r=Ge(),ct(),Mt(),t=(e=r).lib,n=t.Base,a=t.WordArray,o=e.algo,i=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,i=o.hasher.create(),s=a.create(),r=s.words,c=o.keySize,l=o.iterations;r.length<c;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<l;u++)n=i.finalize(n),i.reset();s.concat(n)}return s.sigBytes=4*c,s}}),e.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)},r.EvpKDF)),bt.exports;var e,t,n,a,o,i,s,r}var Pt,At={exports:{}};function Rt(){return Pt||(Pt=1,At.exports=(e=Ge(),Lt(),void(e.lib.Cipher||function(t){var n=e,a=n.lib,o=a.Base,i=a.WordArray,s=a.BufferedBlockAlgorithm,r=n.enc;r.Utf8;var c=r.Base64,l=n.algo.EvpKDF,u=a.Cipher=s.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:v}return function(t){return{encrypt:function(n,a,o){return e(a).encrypt(t,n,a,o)},decrypt:function(n,a,o){return e(a).decrypt(t,n,a,o)}}}}()});a.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=n.mode={},m=a.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=m.extend();function n(e,n,a){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var s=0;s<a;s++)e[n+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,o=a.blockSize;n.call(this,e,t,o),a.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var a=this._cipher,o=a.blockSize,i=e.slice(t,t+o);a.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=i}}),e}(),h=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,a=n-e.sigBytes%n,o=a<<24|a<<16|a<<8|a,s=[],r=0;r<a;r+=4)s.push(o);var c=i.create(s,a);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};a.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:h}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,a=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=a.createEncryptor:(e=a.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(a,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var g=a.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),f=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),a=n.words;return 1398893684==a[0]&&1701076831==a[1]&&(t=i.create(a.slice(2,4)),a.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},v=a.SerializableCipher=o.extend({cfg:o.extend({format:f}),encrypt:function(e,t,n,a){a=this.cfg.extend(a);var o=e.createEncryptor(n,a),i=o.finalize(t),s=o.cfg;return g.create({ciphertext:i,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:a.format})},decrypt:function(e,t,n,a){return a=this.cfg.extend(a),t=this._parse(t,a.format),e.createDecryptor(n,a).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=(n.kdf={}).OpenSSL={execute:function(e,t,n,a,o){if(a||(a=i.random(8)),o)s=l.create({keySize:t+n,hasher:o}).compute(e,a);else var s=l.create({keySize:t+n}).compute(e,a);var r=i.create(s.words.slice(t),4*n);return s.sigBytes=4*t,g.create({key:s,iv:r,salt:a})}},y=a.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:_}),encrypt:function(e,t,n,a){var o=(a=this.cfg.extend(a)).kdf.execute(n,e.keySize,e.ivSize,a.salt,a.hasher);a.iv=o.iv;var i=v.encrypt.call(this,e,t,o.key,a);return i.mixIn(o),i},decrypt:function(e,t,n,a){a=this.cfg.extend(a),t=this._parse(t,a.format);var o=a.kdf.execute(n,e.keySize,e.ivSize,t.salt,a.hasher);return a.iv=o.iv,v.decrypt.call(this,e,t,o.key,a)}})}()))),At.exports;var e}var Ot,Vt={exports:{}};var Bt,xt={exports:{}};var Ut,Gt={exports:{}};function Ft(){return Ut||(Ut=1,Gt.exports=(e=Ge(),Rt(),
/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/
e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,a=255&e;255===t?(t=0,255===n?(n=0,255===a?a=0:++a):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=a}return e}function a(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0),a(s);var r=s.slice(0);n.encryptBlock(r,0);for(var c=0;c<o;c++)e[t+c]^=r[c]}});return t.Decryptor=o,t}(),e.mode.CTRGladman)),Gt.exports;var e}var Yt,Ht={exports:{}};var Zt,qt={exports:{}};var jt,Jt={exports:{}};var Xt,Kt={exports:{}};var zt,Wt={exports:{}};var Qt,$t={exports:{}};var en,tn={exports:{}};var nn,an={exports:{}};var on,sn={exports:{}};var rn,cn={exports:{}};function ln(){return rn||(rn=1,cn.exports=(e=Ge(),Qe(),it(),Lt(),Rt(),function(){var t=e,n=t.lib,a=n.WordArray,o=n.BlockCipher,i=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],r=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var a=s[n]-1;t[n]=e[a>>>5]>>>31-a%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var l=o[i]=[],u=c[i];for(n=0;n<24;n++)l[n/6|0]|=t[(r[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(r[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],m.call(this,4,252645135),m.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),m.call(this,1,1431655765);for(var a=0;a<16;a++){for(var o=n[a],i=this._lBlock,s=this._rBlock,r=0,c=0;c<8;c++)r|=l[c][((s^o[c])&u[c])>>>0];this._lBlock=s,this._rBlock=i^r}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,m.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function m(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=o._createHelper(d);var h=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(a.create(t)),this._des2=d.createEncryptor(a.create(n)),this._des3=d.createEncryptor(a.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(h)}(),e.TripleDES)),cn.exports;var e}var un,dn={exports:{}};var mn,pn={exports:{}};var hn,gn={exports:{}};var fn,vn,_n,yn,En,Cn,kn,In={exports:{}};function Sn(){return fn||(fn=1,In.exports=(e=Ge(),Qe(),it(),Lt(),Rt(),function(){var t=e,n=t.lib.BlockCipher,a=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var r={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,a=t>>16&255,o=t>>8&255,i=255&t,s=e.sbox[0][n]+e.sbox[1][a];return s^=e.sbox[2][o],s+=e.sbox[3][i],s}function l(e,t,n){let a,i=t,s=n;for(let r=0;r<o;++r)i^=e.pbox[r],s=c(e,i)^s,a=i,i=s,s=a;return a=i,i=s,s=a,s^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:s}}function u(e,t,n){let a,i=t,s=n;for(let r=o+1;r>1;--r)i^=e.pbox[r],s=c(e,i)^s,a=i,i=s,s=a;return a=i,i=s,s=a,s^=e.pbox[1],i^=e.pbox[0],{left:i,right:s}}function d(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=s[o][t]}let a=0;for(let s=0;s<o+2;s++)e.pbox[s]=i[s]^t[a],a++,a>=n&&(a=0);let r=0,c=0,u=0;for(let i=0;i<o+2;i+=2)u=l(e,r,c),r=u.left,c=u.right,e.pbox[i]=r,e.pbox[i+1]=c;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)u=l(e,r,c),r=u.left,c=u.right,e.sbox[o][t]=r,e.sbox[o][t+1]=c;return!0}var m=a.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(r,t,n)}},encryptBlock:function(e,t){var n=l(r,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(r,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(m)}(),e.Blowfish)),In.exports;var e}Re.exports=function(e){return e}(Ge(),He(),je(),Ke(),Qe(),nt(),it(),ct(),dt(),mt||(mt=1,pt.exports=(kn=Ge(),dt(),_n=(vn=kn).lib.WordArray,yn=vn.algo,En=yn.SHA256,Cn=yn.SHA224=En.extend({_doReset:function(){this._hash=new _n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=En._doFinalize.call(this);return e.sigBytes-=4,e}}),vn.SHA224=En._createHelper(Cn),vn.HmacSHA224=En._createHmacHelper(Cn),kn.SHA224)),ft(),function(){return vt||(vt=1,_t.exports=(r=Ge(),He(),ft(),t=(e=r).x64,n=t.Word,a=t.WordArray,o=e.algo,i=o.SHA512,s=o.SHA384=i.extend({_doReset:function(){this._hash=new a.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=i._createHelper(s),e.HmacSHA384=i._createHmacHelper(s),r.SHA384)),_t.exports;var e,t,n,a,o,i,s,r}(),Ct(),function(){return kt||(kt=1,It.exports=(e=Ge(),
/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function(){var t=e,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.algo,s=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),r=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=a.create([0,1518500249,1859775393,2400959708,2840853838]),d=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=i.RIPEMD160=o.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,o=e[a];e[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,m,y,E,C,k,I,S,T,M,N,w=this._hash.words,D=u.words,b=d.words,L=s.words,P=r.words,A=c.words,R=l.words;for(k=i=w[0],I=m=w[1],S=y=w[2],T=E=w[3],M=C=w[4],n=0;n<80;n+=1)N=i+e[t+L[n]]|0,N+=n<16?p(m,y,E)+D[0]:n<32?h(m,y,E)+D[1]:n<48?g(m,y,E)+D[2]:n<64?f(m,y,E)+D[3]:v(m,y,E)+D[4],N=(N=_(N|=0,A[n]))+C|0,i=C,C=E,E=_(y,10),y=m,m=N,N=k+e[t+P[n]]|0,N+=n<16?v(I,S,T)+b[0]:n<32?f(I,S,T)+b[1]:n<48?g(I,S,T)+b[2]:n<64?h(I,S,T)+b[3]:p(I,S,T)+b[4],N=(N=_(N|=0,R[n]))+M|0,k=M,M=T,T=_(S,10),S=I,I=N;N=w[1]+y+T|0,w[1]=w[2]+E+M|0,w[2]=w[3]+C+k|0,w[3]=w[4]+i+I|0,w[4]=w[0]+m+S|0,w[0]=N},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var r=i[s];i[s]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function f(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(m),t.HmacRIPEMD160=o._createHmacHelper(m)}(),e.RIPEMD160)),It.exports;var e}(),Mt(),function(){return Nt||(Nt=1,wt.exports=(c=Ge(),dt(),Mt(),t=(e=c).lib,n=t.Base,a=t.WordArray,o=e.algo,i=o.SHA256,s=o.HMAC,r=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=s.create(n.hasher,e),i=a.create(),r=a.create([1]),c=i.words,l=r.words,u=n.keySize,d=n.iterations;c.length<u;){var m=o.update(t).finalize(r);o.reset();for(var p=m.words,h=p.length,g=m,f=1;f<d;f++){g=o.finalize(g),o.reset();for(var v=g.words,_=0;_<h;_++)p[_]^=v[_]}i.concat(m),l[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,n){return r.create(n).compute(e,t)},c.PBKDF2)),wt.exports;var e,t,n,a,o,i,s,r,c}(),Lt(),Rt(),function(){return Ot||(Ot=1,Vt.exports=(e=Ge(),Rt(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,a){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,a.encryptBlock(o,0);for(var s=0;s<n;s++)e[t+s]^=o[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var a=this._cipher,o=a.blockSize;n.call(this,e,t,o,a),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var a=this._cipher,o=a.blockSize,i=e.slice(t,t+o);n.call(this,e,t,o,a),this._prevBlock=i}}),t}(),e.mode.CFB)),Vt.exports;var e}(),function(){return Bt||(Bt=1,xt.exports=(n=Ge(),Rt(),n.mode.CTR=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var s=i.slice(0);n.encryptBlock(s,0),i[a-1]=i[a-1]+1|0;for(var r=0;r<a;r++)e[t+r]^=s[r]}}),e.Decryptor=t,e),n.mode.CTR)),xt.exports;var e,t,n}(),Ft(),function(){return Yt||(Yt=1,Ht.exports=(n=Ge(),Rt(),n.mode.OFB=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var s=0;s<a;s++)e[t+s]^=i[s]}}),e.Decryptor=t,e),n.mode.OFB)),Ht.exports;var e,t,n}(),function(){return Zt||(Zt=1,qt.exports=(t=Ge(),Rt(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB)),qt.exports;var e,t}(),function(){return jt||(jt=1,Jt.exports=(e=Ge(),Rt(),e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=4*t,o=a-n%a,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923)),Jt.exports;var e}(),function(){return Xt||(Xt=1,Kt.exports=(e=Ge(),Rt(),e.pad.Iso10126={pad:function(t,n){var a=4*n,o=a-t.sigBytes%a;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126)),Kt.exports;var e}(),function(){return zt||(zt=1,Wt.exports=(e=Ge(),Rt(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971)),Wt.exports;var e}(),function(){return Qt||(Qt=1,$t.exports=(e=Ge(),Rt(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding)),$t.exports;var e}(),function(){return en||(en=1,tn.exports=(e=Ge(),Rt(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding)),tn.exports;var e}(),function(){return nn||(nn=1,an.exports=(a=Ge(),Rt(),t=(e=a).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var a=n.parse(e);return t.create({ciphertext:a})}},a.format.Hex)),an.exports;var e,t,n,a}(),function(){return on||(on=1,sn.exports=(e=Ge(),Qe(),it(),Lt(),Rt(),function(){var t=e,n=t.lib.BlockCipher,a=t.algo,o=[],i=[],s=[],r=[],c=[],l=[],u=[],d=[],m=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,a=0;for(t=0;t<256;t++){var h=a^a<<1^a<<2^a<<3^a<<4;h=h>>>8^255&h^99,o[n]=h,i[h]=n;var g=e[n],f=e[g],v=e[f],_=257*e[h]^16843008*h;s[n]=_<<24|_>>>8,r[n]=_<<16|_>>>16,c[n]=_<<8|_>>>24,l[n]=_,_=16843009*v^65537*f^257*g^16843008*n,u[h]=_<<24|_>>>8,d[h]=_<<16|_>>>16,m[h]=_<<8|_>>>24,p[h]=_,n?(n=g^e[e[e[v^g]]],a^=e[e[a]]):n=a=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],g=a.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,a=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],s=0;s<a;s++)s<n?i[s]=t[s]:(l=i[s-1],s%n?n>6&&s%n==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=h[s/n|0]<<24),i[s]=i[s-n]^l);for(var r=this._invKeySchedule=[],c=0;c<a;c++){if(s=a-c,c%4)var l=i[s];else l=i[s-4];r[c]=c<4||s<=4?l:u[o[l>>>24]]^d[o[l>>>16&255]]^m[o[l>>>8&255]]^p[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,r,c,l,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,m,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,a,o,i,s,r){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],m=e[t+3]^n[3],p=4,h=1;h<c;h++){var g=a[l>>>24]^o[u>>>16&255]^i[d>>>8&255]^s[255&m]^n[p++],f=a[u>>>24]^o[d>>>16&255]^i[m>>>8&255]^s[255&l]^n[p++],v=a[d>>>24]^o[m>>>16&255]^i[l>>>8&255]^s[255&u]^n[p++],_=a[m>>>24]^o[l>>>16&255]^i[u>>>8&255]^s[255&d]^n[p++];l=g,u=f,d=v,m=_}g=(r[l>>>24]<<24|r[u>>>16&255]<<16|r[d>>>8&255]<<8|r[255&m])^n[p++],f=(r[u>>>24]<<24|r[d>>>16&255]<<16|r[m>>>8&255]<<8|r[255&l])^n[p++],v=(r[d>>>24]<<24|r[m>>>16&255]<<16|r[l>>>8&255]<<8|r[255&u])^n[p++],_=(r[m>>>24]<<24|r[l>>>16&255]<<16|r[u>>>8&255]<<8|r[255&d])^n[p++],e[t]=g,e[t+1]=f,e[t+2]=v,e[t+3]=_},keySize:8});t.AES=n._createHelper(g)}(),e.AES)),sn.exports;var e}(),ln(),function(){return un||(un=1,dn.exports=(e=Ge(),Qe(),it(),Lt(),Rt(),function(){var t=e,n=t.lib.StreamCipher,a=t.algo,o=a.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,a=this._S=[],o=0;o<256;o++)a[o]=o;o=0;for(var i=0;o<256;o++){var s=o%n,r=t[s>>>2]>>>24-s%4*8&255;i=(i+a[o]+r)%256;var c=a[o];a[o]=a[i],a[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,a=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,a|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,a}t.RC4=n._createHelper(o);var s=a.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=n._createHelper(s)}(),e.RC4)),dn.exports;var e}(),function(){return mn||(mn=1,pn.exports=(e=Ge(),Qe(),it(),Lt(),Rt(),function(){var t=e,n=t.lib.StreamCipher,a=t.algo,o=[],i=[],s=[],r=a.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)o[n]^=a[n+4&7];if(t){var i=t.words,s=i[0],r=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),d=l>>>16|4294901760&u,m=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=m,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=m,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)o[a]=16711935&(o[a]<<8|o[a]>>>24)|4278255360&(o[a]<<24|o[a]>>>8),e[t+a]^=o[a]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var a=e[n]+t[n],o=65535&a,r=a>>>16,c=((o*o>>>17)+o*r>>>15)+r*r,l=((4294901760&a)*a|0)+((65535&a)*a|0);s[n]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=n._createHelper(r)}(),e.Rabbit)),pn.exports;var e}(),function(){return hn||(hn=1,gn.exports=(e=Ge(),Qe(),it(),Lt(),Rt(),function(){var t=e,n=t.lib.StreamCipher,a=t.algo,o=[],i=[],s=[],r=a.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)a[o]^=n[o+4&7];if(t){var i=t.words,s=i[0],r=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),d=l>>>16|4294901760&u,m=u<<16|65535&l;for(a[0]^=l,a[1]^=d,a[2]^=u,a[3]^=m,a[4]^=l,a[5]^=d,a[6]^=u,a[7]^=m,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)o[a]=16711935&(o[a]<<8|o[a]>>>24)|4278255360&(o[a]<<24|o[a]>>>8),e[t+a]^=o[a]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var a=e[n]+t[n],o=65535&a,r=a>>>16,c=((o*o>>>17)+o*r>>>15)+r*r,l=((4294901760&a)*a|0)+((65535&a)*a|0);s[n]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=n._createHelper(r)}(),e.RabbitLegacy)),gn.exports;var e}(),Sn());const Tn=Pe(Re.exports),Mn={__name:"loginPhone",setup(t){const n=e.ref(!1),a=e.reactive({userImei:"",phoneNumber:"",password:""}),o=e.ref(!1);function i(){const e={...a};if(e.phoneNumber)if(e.password)if(o.value){if(e.password=Tn.MD5(e.password).toString(),!e.userImei){const t=uni.getSystemInfoSync();e.userImei=t.deviceId}Te.login.userLoginByPassword({data:e}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):Me.finalLogin(e)}))}else Me.alert("请阅读并勾选服务协议》和《隐私政策》");else Me.alert("请输入密码");else Me.alert("请输入手机号")}return(t,s)=>{const r=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"logo mauto"},[e.createElementVNode("image",{class:"logo br10",src:De,mode:"aspectFit"})]),e.createElementVNode("view",{class:"form mt60 mlr60 mb30"},[e.createElementVNode("view",{class:"title mtb30"},"密码登录"),e.createElementVNode("view",{class:"inputBox mtb20 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>a.phoneNumber=e),placeholder:"请输入手机号"},null,512),[[e.vModelText,a.phoneNumber]])]),e.createElementVNode("view",{class:"inputBox rows mtb20 ptb10 plr30"},[n.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":s[1]||(s[1]=e=>a.password=e),placeholder:"请输入密码"},null,512)),[[e.vModelText,a.password]]):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,password:!0,"onUpdate:modelValue":s[2]||(s[2]=e=>a.password=e),placeholder:"请输入密码"},null,512)),[[e.vModelText,a.password]]),e.createVNode(r,{type:n.value?"eye":"eye-slash",color:"#999",size:"40rpx",onClick:s[3]||(s[3]=e=>n.value=!n.value)},null,8,["type"])]),e.createElementVNode("view",{class:"rows c333 f24"},[e.createElementVNode("navigator",{url:"/pages/login/register","open-type":"redirect"},"还没有账号,去注册"),e.createElementVNode("navigator",{url:"/pages/login/forget","open-type":"redirect"},"忘记密码")]),e.createElementVNode("view",{class:"btn lg bar black mtb60",onClick:i},"登录")])]),e.createElementVNode("view",{class:"footer"},[e.createVNode(e.unref(Ne),{class:"mb60",value:o.value,"onUpdate:value":s[4]||(s[4]=e=>o.value=e)},null,8,["value"])])])}}};const Nn=w({name:"UniGridItem",inject:["grid"],props:{index:{type:Number,default:0}},data:()=>({column:0,showBorder:!0,square:!0,highlight:!0,left:0,top:0,openNum:2,width:0,borderColor:"#e5e5e5"}),created(){this.column=this.grid.column,this.showBorder=this.grid.showBorder,this.square=this.grid.square,this.highlight=this.grid.highlight,this.top=0===this.hor?this.grid.hor:this.hor,this.left=0===this.ver?this.grid.ver:this.ver,this.borderColor=this.grid.borderColor,this.grid.children.push(this),this.width=this.grid.width},beforeDestroy(){this.grid.children.forEach(((e,t)=>{e===this&&this.grid.children.splice(t,1)}))},methods:{_onClick(){this.grid.change({detail:{index:this.index}})}}},[["render",function(t,n,a,o,i,s){return i.width?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle("width:"+i.width+";"+(i.square?"height:"+i.width:"")),class:"uni-grid-item"},[e.createElementVNode("view",{class:e.normalizeClass([{"uni-grid-item--border":i.showBorder,"uni-grid-item--border-top":i.showBorder&&a.index<i.column,"uni-highlight":i.highlight},"uni-grid-item__box"]),style:e.normalizeStyle({"border-right-color":i.borderColor,"border-bottom-color":i.borderColor,"border-top-color":i.borderColor}),onClick:n[0]||(n[0]=(...e)=>s._onClick&&s._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)],4)):e.createCommentVNode("",!0)}],["__scopeId","data-v-2511947d"]]),wn={name:"UniGrid",emits:["change"],props:{column:{type:Number,default:3},showBorder:{type:Boolean,default:!0},borderColor:{type:String,default:"#D2D2D2"},square:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0}},provide(){return{grid:this}},data:()=>({elId:`Uni_${Math.ceil(1e6*Math.random()).toString(36)}`,width:0}),created(){this.children=[]},mounted(){this.$nextTick((()=>{this.init()}))},methods:{init(){setTimeout((()=>{this._getSize((e=>{this.children.forEach(((t,n)=>{t.width=e}))}))}),50)},change(e){this.$emit("change",e)},_getSize(e){uni.createSelectorQuery().in(this).select(`#${this.elId}`).boundingClientRect().exec((t=>{this.width=parseInt((t[0].width-1)/this.column)+"px",e(this.width)}))}}};const Dn=w(wn,[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-grid-wrap"},[e.createElementVNode("view",{id:i.elId,ref:"uni-grid",class:e.normalizeClass(["uni-grid",{"uni-grid--border":a.showBorder}]),style:e.normalizeStyle({"border-left-color":a.borderColor})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],14,["id"])])}],["__scopeId","data-v-a6acbddc"]]);class bn{constructor(e,t){this.options=e,this.animation=uni.createAnimation({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let n=this.currentStepAnimates[this.next],a={};if(a=n||{styles:{},config:{}},Ln.includes(e)){a.styles.transform||(a.styles.transform="");let n="";"rotate"===e&&(n="deg"),a.styles.transform+=`${e}(${t+n}) `}else a.styles[e]=`${t}`;this.currentStepAnimates[this.next]=a}_animateRun(e={},t={}){let n=this.$.$refs.ani.ref;if(n)return new Promise(((a,o)=>{nvueAnimation.transition(n,{styles:e,...t},(e=>{a()}))}))}_nvueNextAnimate(e,t=0,n){let a=e[t];if(a){let{styles:o,config:i}=a;this._animateRun(o,i).then((()=>{t+=1,this._nvueNextAnimate(e,t,n)}))}else this.currentStepAnimates={},"function"==typeof n&&n(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const Ln=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function Pn(e,t){if(t)return clearTimeout(t.timer),new bn(e,t)}Ln.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{bn.prototype[e]=function(...t){return this.animation[e](...t),this}}));const An=w({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let n in e){t+=this.toLine(n)+":"+e[n]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=Pn(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,t={}){if(this.animation){for(let t in e)try{"object"==typeof e[t]?this.animation[t](...e[t]):this.animation[t](e[t])}catch(zo){g("error","at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148",`方法 ${t} 不存在`)}return this.animation.step(t),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=Pn(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},n=(e,n)=>{"fade"===n?t.opacity=this.animationType(e)[n]:t.transform+=this.animationType(e)[n]+" "};return"string"==typeof this.modeClass?n(e,this.modeClass):this.modeClass.forEach((t=>{n(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let n=null;"fade"===t?n=e?0:1:(n=e?"-100%":"0","zoom-in"===t&&(n=e?.8:1),"zoom-out"===t&&(n=e?1.2:1),"slide-right"===t&&(n=e?"100%":"0"),"slide-bottom"===t&&(n=e?"100%":"0")),this.animation[this.animationMode()[t]](n)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((n=>{t(e,n)})),this.animation},animationType:e=>({fade:e?0:1,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(t,n,a,o,i,s){return e.withDirectives((e.openBlock(),e.createElementBlock("view",{ref:"ani",animation:i.animationData,class:e.normalizeClass(a.customClass),style:e.normalizeStyle(s.transformStyles),onClick:n[0]||(n[0]=(...e)=>s.onClick&&s.onClick(...e))},[e.renderSlot(t.$slots,"default")],14,["animation"])),[[e.vShow,i.isShow]])}]]),Rn={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let e={backgroundColor:this.bg};return this.borderRadius,e=Object.assign(e,{borderRadius:this.borderRadius}),e},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:n,safeArea:a,screenHeight:o,safeAreaInsets:i}=uni.getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(n||0),a&&this.safeArea?this.safeAreaInsets=i.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(e=!0){},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if(this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):g("error","at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298","缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const On=w(Rn,[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-transition"),An);return i.showPopup?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-popup",[i.popupstyle,s.isDesktop?"fixforpc-z-index":""]])},[e.createElementVNode("view",{onTouchstart:n[1]||(n[1]=(...e)=>s.touchstart&&s.touchstart(...e))},[i.maskShow?(e.openBlock(),e.createBlock(r,{key:"1",name:"mask","mode-class":"fade",styles:i.maskClass,duration:i.duration,show:i.showTrans,onClick:s.onTap},null,8,["styles","duration","show","onClick"])):e.createCommentVNode("",!0),e.createVNode(r,{key:"2","mode-class":i.ani,name:"content",styles:i.transClass,duration:i.duration,show:i.showTrans,onClick:s.onTap},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup__wrapper",[i.popupstyle]]),style:e.normalizeStyle(s.getStyles),onClick:n[0]||(n[0]=(...e)=>s.clear&&s.clear(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)])),_:3},8,["mode-class","styles","duration","show","onClick"])],32)],2)):e.createCommentVNode("",!0)}],["__scopeId","data-v-ee521468"]]),Vn=w({__name:"footerMenu",props:{page:{type:String},subject:{type:String,default:"light"}},setup(t){const{proxy:n}=e.getCurrentInstance(),a=e.computed((()=>uni.$store.state.userinfo)),o=e.computed((()=>uni.$store.state.tabbarMode)),i=e.computed((()=>{let e=[{page:"index",type:"option",name:"视频",labelType:"default",pagePath:"pages/index/index"},{page:"shop",type:"option",name:"商城",labelType:"shop",pagePath:"pages/shop/shop"},{type:"middle",name:""},{page:"news",type:"option",name:"消息",pagePath:"pages/news/news"}];switch(o.value){case"default":e.push({page:"homepage",type:"option",name:"我的",labelType:"default",pagePath:"pages/mine/homepage"});break;case"shop":e.push({page:"mine",type:"option",name:"个人中心",labelType:"shop",pagePath:"pages/mine/mine"})}return e}));let s=e.ref(0);const r=e.computed((()=>{let e=[];return a.value.userId&&e.push({name:"发布视频",img:"/static/footerMenu1.png",url:"/pages/release/video"}),e}));function c(e){const t=e.detail.index,a=r.value[t];Me.isAuth({success:e=>{a.url?uni.navigateTo({url:a.url}):Me.alert("敬请期待")}}),n.$refs.alert.close()}return e.onMounted((()=>{uni.$on("changeMine",(e=>{uni.$store.commit("setState",{key:"tabbarMode",value:e})})),uni.hideTabBar(),uni.getSystemInfo().then((e=>{s.value=e.safeArea+"px"}))})),e.onUnmounted((()=>{uni.$off("changeMine")})),(a,l)=>{const u=f(e.resolveDynamicComponent("uni-grid-item"),Nn),d=f(e.resolveDynamicComponent("uni-grid"),Dn),m=f(e.resolveDynamicComponent("uni-icons"),D),p=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"ghost",style:e.normalizeStyle({paddingBottom:e.unref(s)})},null,4),e.createElementVNode("view",{class:e.normalizeClass(["menuBox",[t.subject,o.value]])},[e.createElementVNode("view",{class:"menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((a,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item",{active:a.page===t.page,special:"shop"===o.value&&1==i||"default"==o.value&&0===i}]),key:i,onClick:e=>function(e){"middle"==e.type?n.$refs.alert.open():e.page?uni.switchTab({url:`/${e.pagePath}`}):uni.navigateTo({url:`/${e.pagePath}`})}(a)},[e.createElementVNode("view",{class:"side left"},[e.createElementVNode("view",{class:"top"}),e.createElementVNode("view",{class:"bottom"})]),"option"==a.type?(e.openBlock(),e.createElementBlock("view",{key:0,class:"option"},[e.createElementVNode("text",{class:"text wsn"},e.toDisplayString(a.name),1)])):"middle"===a.type?(e.openBlock(),e.createElementBlock("view",{key:1,class:"middle"},["dark"==t.subject?(e.openBlock(),e.createElementBlock("image",{key:0,class:"img",src:"/static/footerMenuPlus.png",mode:"aspectFit"})):"light"==t.subject?(e.openBlock(),e.createElementBlock("image",{key:1,class:"img",src:"/static/footerMenuPlus1.png",mode:"aspectFit"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"side right"},[e.createElementVNode("view",{class:"top"}),e.createElementVNode("view",{class:"bottom"})])],10,["onClick"])))),128))]),e.createElementVNode("view",{class:"safeArea",style:e.normalizeStyle({height:e.unref(s)})},null,4)],2),e.createVNode(p,{ref:"alert",type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"alert mlr50 pt50 plr10 pb10"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll"},[e.createVNode(d,{column:4,highlight:!0,showBorder:!1,onChange:c},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,((t,n)=>(e.openBlock(),e.createBlock(u,{index:n,key:n},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"itemBox ptb30 df fdc jcc aic tac"},[e.createElementVNode("image",{class:"wh80",src:t.img,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"mt5"},[e.createElementVNode("text",{class:"text f28 c333"},e.toDisplayString(t.name),1)])])])),_:2},1032,["index"])))),128))])),_:1})]),e.createElementVNode("view",{class:"tac mt30"},[e.createVNode(m,{type:"bottom",size:"50rpx",color:"#999",onClick:l[0]||(l[0]=e=>a.$refs.alert.close())})])])])),_:1},512)],64)}}},[["__scopeId","data-v-31248a25"]]),Bn=w({__name:"productList",props:{choicenessTitle:{type:Boolean,default:!1}},setup(t,{expose:n}){const a=e.reactive({pageSize:10,pageNum:1,total:0,searchValue:"",merId:"",brandId:"",categoryCode:"",data:[]});function o(){Te.shop.getProduct({data:{pageSize:a.pageSize,pageNum:a.pageNum,searchValue:a.searchValue,merId:a.merId,brandId:a.brandId,categoryCode:a.categoryCode}}).then((e=>{if(200==e.code)return 1==a.pageNum&&(a.data.length=[]),a.data.push(...e.rows),void(a.total=e.total);Me.alert({content:e.msg,showCancel:!1})}))}return n({getList:o,listPrototype:a,refreshList:function(){g("log","at components/shop/productList/productList.vue:53","listPrototype",a),a.pageNum=1,a.total=0,o()}}),(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.choicenessTitle?(e.openBlock(),e.createElementBlock("view",{key:0,class:"handpicked df aic jcc mtb30 cFF9B27"},[e.createElementVNode("image",{class:"image",src:"/static/handpicked-L.png"}),e.createElementVNode("text",{class:"txt f30 mlr40",style:{}},"精选推荐"),e.createElementVNode("image",{class:"image",src:"/static/handpicked-R.png"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item oh bfff br20",key:n,onClick:e=>function(e){uni.navigateTo({url:Me.setUrl("/pages/shop/commodity/index",{productId:e.id})})}(t)},[e.createElementVNode("image",{class:"poster",src:t.flat_pattern,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"main plr20"},[e.createElementVNode("view",{class:"title mtb10 thd c333 f30"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"info mtb10 df aic"},[e.createElementVNode("view",{class:"price thd wsn cFF9B27"},[e.createElementVNode("text",{class:"txt f20"},"¥"),e.createElementVNode("text",{class:"txt f36"},e.toDisplayString(t.price),1)]),e.createElementVNode("view",{class:"sales fs0 thd wsn ml10 c999 f26"},"销量:"+e.toDisplayString(t.sales),1),e.createElementVNode("view",{class:"f1"})])])],8,["onClick"])))),128))])],64))}},[["__scopeId","data-v-96f4ed59"]]),xn=w({__name:"shop",setup(t){const{proxy:n}=e.getCurrentInstance(),a=e.reactive([{id:"",name:"推荐"}]),o=e.ref(0),i=e.ref("");function s(){n.$refs.product.listPrototype.searchValue=i.value,n.$refs.product.refreshList()}return E((()=>{Te.shop.getCategory({query:{categoryCode:"0"}}).then((e=>{if(200===e.code)return a.length=1,void a.push(...e.data);Me.alert({content:e.msg,showCancel:!1})}))})),C((()=>{n.$refs.product.getList()})),S((()=>{})),T((()=>{})),_((()=>{uni.$emit("changeMine","shop")})),(t,r)=>{const c=f(e.resolveDynamicComponent("uni-icons"),D),l=f(e.resolveDynamicComponent("footerMenu"),Vn);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"appbw"},[e.createElementVNode("swiper",{class:"banner oh mtb30 mlr30 br20",autoplay:"true"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("swiper-item",{key:n},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("image",{class:"poster",src:"https://img12.360buyimg.com/babel/jfs/t20271206/247554/11/28097/64155/675290e6F829316f2/0722626e5b28b005.jpg.avif",mode:"aspectFill"})])]))),64))]),e.createElementVNode("swiper",{class:"notice mtb30 mlr30 c333 f28 br20",vertical:"true"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,n)=>e.createElementVNode("swiper-item",{class:"item bsb rows plr20",key:n},[e.createElementVNode("image",{class:"wh30",src:"/static/notice.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"f1 mlr20"},"九亿商城上线啦~"),e.createVNode(c,{type:"right"})]))),64))]),e.createElementVNode("view",{class:"fn rows mtb30 mlr30"},[e.createVNode(c,{type:"scan",size:"48rpx",color:"#FF7F37"}),e.createElementVNode("view",{class:"searchBox rows f1 ml20 ptb10 plr20 bar"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[0]||(r[0]=e=>i.value=e),class:"f1",placeholder:"请输入关键字",onBlur:s},null,544),[[e.vModelText,i.value]]),e.createVNode(c,{type:"search",size:"30rpx",color:"#999"})])]),e.createElementVNode("view",{class:"cate"},[e.createElementVNode("scroll-view",{"scroll-x":"true",class:"scroll f30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,((t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item",{active:i===o.value}]),key:i,onClick:e=>function(e){o.value!==e&&(o.value=e,n.$refs.product.listPrototype.categoryCode=a[e].categoryCode,n.$refs.product.refreshList())}(i)},[e.createElementVNode("view",{class:"name ptb20 plr40"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"line"})],10,["onClick"])))),128))])]),e.createElementVNode("view",{class:"product oh ptb30 plr30"},[e.createVNode(e.unref(Bn),{ref:"product"},null,512)])]),e.createVNode(l,{ref:"footerMneuRef",page:"shop"},null,512)],64)}}},[["__scopeId","data-v-5bf89153"]]),Un=e=>{let t=uni.getSystemInfoSync().statusBarHeight;return t=t||0,e?t:`${t}px`},Gn=e=>{let t=uni.getSystemInfoSync().safeAreaInsets.bottom;return t=t||0,e?t:`${t}px`},Fn=e=>{let t=uni.getSystemInfoSync().screenHeight;return t=t||0,e?t:`${t}px`},Yn=w({__name:"index",props:{title:{type:String,default:""},isRight:{type:Boolean,default:!1},isSkip:{type:Boolean,default:!0},background:{type:String,default:"#F2F2F2"}},emits:["right","center","back"],setup(t,{expose:n,emit:a}){const o=t,i=e.ref(null),s=e.ref("0px"),r=()=>{e.nextTick().then((()=>{uni.createSelectorQuery().select("#hs").boundingClientRect((e=>{s.value=e.height+"px"})).exec()}))};n({updateAltitude:r}),e.onMounted((()=>{r()}));const c=e.ref({"padding-top":`${Un()}`,"padding-bottom":"2px"}),l=()=>{o.isSkip&&uni.navigateBack(),u("back")},u=a;return(n,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{ref_key:"hs",ref:i,class:e.normalizeClass(["dw","jb"==t.background&&"bg"]),style:e.normalizeStyle({...c.value}),id:"hs"},[e.createElementVNode("view",{class:"jy-header-box"},[e.createVNode(o,{class:"mlr20",onClick:l,type:"left",size:"22"}),e.createElementVNode("view",{class:"jy-header-center",onClick:a[0]||(a[0]=e=>u("center"))},[e.renderSlot(n.$slots,"center",{},(()=>[e.createElementVNode("text",{class:"jy-header-title"},e.toDisplayString(t.title),1)]),!0)]),e.createElementVNode("view",{class:"mlr20"},[t.isRight?e.renderSlot(n.$slots,"right",{key:0},(()=>[e.createVNode(o,{type:"more-filled",size:"30"})]),!0):e.createCommentVNode("",!0)])]),e.renderSlot(n.$slots,"bottom",{},void 0,!0)],6),e.createElementVNode("view",{class:"jy-header-box",style:e.normalizeStyle({...c.value,height:`${s.value}`})},null,4)],64)}}},[["__scopeId","data-v-9fda636e"]]);const Hn=w({name:"UniSection",emits:["click"],props:{type:{type:String,default:""},title:{type:String,required:!0,default:""},titleFontSize:{type:String,default:"14px"},titleColor:{type:String,default:"#333"},subTitle:{type:String,default:""},subTitleFontSize:{type:String,default:"12px"},subTitleColor:{type:String,default:"#999"},padding:{type:[Boolean,String],default:!1}},computed:{_padding(){return"string"==typeof this.padding?this.padding:this.padding?"10px":""}},watch:{title(e){uni.report&&""!==e&&uni.report("title",e)}},methods:{onClick(){this.$emit("click")}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-section"},[e.createElementVNode("view",{class:"uni-section-header",onClick:n[0]||(n[0]=(...e)=>s.onClick&&s.onClick(...e))},[a.type?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-section-header__decoration",a.type])},null,2)):e.renderSlot(t.$slots,"decoration",{key:1},void 0,!0),e.createElementVNode("view",{class:"uni-section-header__content"},[e.renderSlot(t.$slots,"content",{},(()=>[e.createElementVNode("text",{style:e.normalizeStyle({"font-size":a.titleFontSize,color:a.titleColor}),class:e.normalizeClass(["uni-section__content-title",{distraction:!a.subTitle}])},e.toDisplayString(a.title),7),a.subTitle?(e.openBlock(),e.createElementBlock("text",{key:0,style:e.normalizeStyle({"font-size":a.subTitleFontSize,color:a.subTitleColor}),class:"uni-section-header__content-sub"},e.toDisplayString(a.subTitle),5)):e.createCommentVNode("",!0)]),!0)]),e.createElementVNode("view",{class:"uni-section-header__slot-right"},[e.renderSlot(t.$slots,"right",{},void 0,!0)])]),e.createElementVNode("view",{class:"uni-section-content",style:e.normalizeStyle({padding:s._padding})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4)])}],["__scopeId","data-v-c170a3ad"]]),Zn=["{","}"];const qn=/^(?:\d)+/,jn=/^(?:\w)+/;const Jn="zh-Hans",Xn="zh-Hant",Kn="en",zn=Object.prototype.hasOwnProperty,Wn=(e,t)=>zn.call(e,t),Qn=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Zn){if(!t)return[e];let a=this._caches[e];return a||(a=function(e,[t,n]){const a=[];let o=0,i="";for(;o<e.length;){let s=e[o++];if(s===t){i&&a.push({type:"text",value:i}),i="";let t="";for(s=e[o++];void 0!==s&&s!==n;)t+=s,s=e[o++];const r=s===n,c=qn.test(t)?"list":r&&jn.test(t)?"named":"unknown";a.push({value:t,type:c})}else i+=s}return i&&a.push({type:"text",value:i}),a}(e,n),this._caches[e]=a),function(e,t){const n=[];let a=0;const o=Array.isArray(t)?"list":(i=t,null!==i&&"object"==typeof i?"named":"unknown");var i;if("unknown"===o)return n;for(;a<e.length;){const i=e[a];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===o&&n.push(t[i.value])}a++}return n}(a,t)}};function $n(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return Jn;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?Jn:e.indexOf("-hant")>-1?Xn:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?Xn:Jn);var n;let a=[Kn,"fr","es"];t&&Object.keys(t).length>0&&(a=Object.keys(t));const o=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,a);return o||void 0}class ea{constructor({locale:e,fallbackLocale:t,messages:n,watcher:a,formater:o}){this.locale=Kn,this.fallbackLocale=Kn,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=o||Qn,this.messages=n||{},this.setLocale(e||Kn),a&&this.watchLocale(a)}setLocale(e){const t=this.locale;this.locale=$n(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const a=this.messages[e];a?n?Object.assign(a,t):Object.keys(t).forEach((e=>{Wn(a,e)||(a[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let a=this.message;return"string"==typeof t?(t=$n(t,this.messages))&&(a=this.messages[t]):n=t,Wn(a,e)?this.formater.interpolate(a[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function ta(e,t={},n,a){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():Kn),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||Kn);const o=new ea({locale:e,fallbackLocale:n,messages:t,watcher:a});let i=(e,t)=>{if("function"!=typeof getApp)i=function(e,t){return o.t(e,t)};else{let e=!1;i=function(t,n){const a=getApp().$vm;return a&&(a.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(a,o))),o.t(t,n)}}return i(e,t)};return{i18n:o,f:(e,t,n)=>o.f(e,t,n),t:(e,t)=>i(e,t),add:(e,t,n=!0)=>o.add(e,t,n),watch:e=>o.watchLocale(e),getLocale:()=>o.getLocale(),setLocale:e=>o.setLocale(e)}}const na={en:{"uni-countdown.day":"day","uni-countdown.h":"h","uni-countdown.m":"m","uni-countdown.s":"s"},"zh-Hans":{"uni-countdown.day":"天","uni-countdown.h":"时","uni-countdown.m":"分","uni-countdown.s":"秒"},"zh-Hant":{"uni-countdown.day":"天","uni-countdown.h":"時","uni-countdown.m":"分","uni-countdown.s":"秒"}},{t:aa}=ta(na);const oa=w({name:"UniCountdown",emits:["timeup"],props:{showDay:{type:Boolean,default:!0},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showColon:{type:Boolean,default:!0},start:{type:Boolean,default:!0},backgroundColor:{type:String,default:""},color:{type:String,default:"#333"},fontSize:{type:Number,default:14},splitorColor:{type:String,default:"#333"},day:{type:Number,default:0},hour:{type:Number,default:0},minute:{type:Number,default:0},second:{type:Number,default:0},timestamp:{type:Number,default:0}},data:()=>({timer:null,syncFlag:!1,d:"00",h:"00",i:"00",s:"00",leftTime:0,seconds:0}),computed:{dayText:()=>aa("uni-countdown.day"),hourText:e=>aa("uni-countdown.h"),minuteText:e=>aa("uni-countdown.m"),secondText:e=>aa("uni-countdown.s"),timeStyle(){const{color:e,backgroundColor:t,fontSize:n}=this;return{color:e,backgroundColor:t,fontSize:`${n}px`,width:22*n/14+"px",lineHeight:20*n/14+"px",borderRadius:3*n/14+"px"}},splitorStyle(){const{splitorColor:e,fontSize:t,backgroundColor:n}=this;return{color:e,fontSize:12*t/14+"px",margin:n?4*t/14+"px":""}}},watch:{day(e){this.changeFlag()},hour(e){this.changeFlag()},minute(e){this.changeFlag()},second(e){this.changeFlag()},start:{immediate:!0,handler(e,t){if(e)this.startData();else{if(!t)return;clearInterval(this.timer)}}}},created:function(e){this.seconds=this.toSeconds(this.timestamp,this.day,this.hour,this.minute,this.second),this.countDown()},unmounted(){clearInterval(this.timer)},methods:{toSeconds:(e,t,n,a,o)=>e?e-parseInt((new Date).getTime()/1e3,10):60*t*60*24+60*n*60+60*a+o,timeUp(){clearInterval(this.timer),this.$emit("timeup")},countDown(){let e=this.seconds,[t,n,a,o]=[0,0,0,0];e>0?(t=Math.floor(e/86400),n=Math.floor(e/3600)-24*t,a=Math.floor(e/60)-24*t*60-60*n,o=Math.floor(e)-24*t*60*60-60*n*60-60*a):this.timeUp(),t<10&&(t="0"+t),n<10&&(n="0"+n),a<10&&(a="0"+a),o<10&&(o="0"+o),this.d=t,this.h=n,this.i=a,this.s=o},startData(){if(this.seconds=this.toSeconds(this.timestamp,this.day,this.hour,this.minute,this.second),this.seconds<=0)return this.seconds=this.toSeconds(0,0,0,0,0),void this.countDown();clearInterval(this.timer),this.countDown(),this.timer=setInterval((()=>{this.seconds--,this.seconds<0?this.timeUp():this.countDown()}),1e3)},update(){this.startData()},changeFlag(){this.syncFlag||(this.seconds=this.toSeconds(this.timestamp,this.day,this.hour,this.minute,this.second),this.startData(),this.syncFlag=!0)}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-countdown"},[a.showDay?(e.openBlock(),e.createElementBlock("text",{key:0,style:e.normalizeStyle([s.timeStyle]),class:"uni-countdown__number"},e.toDisplayString(i.d),5)):e.createCommentVNode("",!0),a.showDay?(e.openBlock(),e.createElementBlock("text",{key:1,style:e.normalizeStyle([s.splitorStyle]),class:"uni-countdown__splitor"},e.toDisplayString(s.dayText),5)):e.createCommentVNode("",!0),a.showHour?(e.openBlock(),e.createElementBlock("text",{key:2,style:e.normalizeStyle([s.timeStyle]),class:"uni-countdown__number"},e.toDisplayString(i.h),5)):e.createCommentVNode("",!0),a.showHour?(e.openBlock(),e.createElementBlock("text",{key:3,style:e.normalizeStyle([s.splitorStyle]),class:"uni-countdown__splitor"},e.toDisplayString(a.showColon?":":s.hourText),5)):e.createCommentVNode("",!0),a.showMinute?(e.openBlock(),e.createElementBlock("text",{key:4,style:e.normalizeStyle([s.timeStyle]),class:"uni-countdown__number"},e.toDisplayString(i.i),5)):e.createCommentVNode("",!0),a.showMinute?(e.openBlock(),e.createElementBlock("text",{key:5,style:e.normalizeStyle([s.splitorStyle]),class:"uni-countdown__splitor"},e.toDisplayString(a.showColon?":":s.minuteText),5)):e.createCommentVNode("",!0),e.createElementVNode("text",{style:e.normalizeStyle([s.timeStyle]),class:"uni-countdown__number"},e.toDisplayString(i.s),5),a.showColon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:6,style:e.normalizeStyle([s.splitorStyle]),class:"uni-countdown__splitor"},e.toDisplayString(s.secondText),5))])}],["__scopeId","data-v-eede7c1d"]]);const ia=w({name:"UniTag",emits:["click"],props:{type:{type:String,default:"default"},size:{type:String,default:"normal"},text:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},inverted:{type:[Boolean,String],default:!1},circle:{type:[Boolean,String],default:!1},mark:{type:[Boolean,String],default:!1},customStyle:{type:String,default:""}},computed:{classes(){const{type:e,disabled:t,inverted:n,circle:a,mark:o,size:i,isTrue:s}=this;return["uni-tag--"+e,"uni-tag--"+i,s(t)?"uni-tag--disabled":"",s(n)?"uni-tag--"+e+"--inverted":"",s(a)?"uni-tag--circle":"",s(o)?"uni-tag--mark":"",s(n)?"uni-tag--inverted uni-tag-text--"+e:"","small"===i?"uni-tag-text--small":""].join(" ")}},methods:{isTrue:e=>!0===e||"true"===e,onClick(){this.isTrue(this.disabled)||this.$emit("click")}}},[["render",function(t,n,a,o,i,s){return a.text?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(["uni-tag",s.classes]),style:e.normalizeStyle(a.customStyle),onClick:n[0]||(n[0]=(...e)=>s.onClick&&s.onClick(...e))},e.toDisplayString(a.text),7)):e.createCommentVNode("",!0)}],["__scopeId","data-v-c3d81dd8"]]),sa=w({__name:"index",props:{orderInfo:{type:Object,default:()=>({shop_logo:"",shop_name:"123",order_status_text:6})},showType:{type:Number,default:1},right:{type:Boolean,default:!0}},emits:["consult","click","buy"],setup(t,{emit:n}){const a=n;return(n,o)=>{const i=f(e.resolveDynamicComponent("uni-tag"),ia),s=f(e.resolveDynamicComponent("uni-section"),Hn);return e.openBlock(),e.createElementBlock("view",{class:"commodity-information",onClick:o[2]||(o[2]=e=>a("click",t.orderInfo))},[e.createVNode(s,null,e.createSlots({decoration:e.withCtx((()=>[e.createElementVNode("image",{class:"shop-image",src:t.orderInfo.productName,mode:"aspectFill"},null,8,["src"])])),content:e.withCtx((()=>[1==t.showType||4==t.showType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"commodity-name commodity-name-1"},[e.createElementVNode("text",{class:"commodity-name-title t2hd"},"耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉"),e.createElementVNode("text",{class:"commodity-name-ks thd"},"X602 款式"),4==t.showType?(e.openBlock(),e.createElementBlock("text",{key:0},"待发货")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),2==t.showType||3==t.showType?(e.openBlock(),e.createElementBlock("view",{key:1,class:"commodity-name commodity-name-2"},[e.createElementVNode("text",{class:"t2hd"},"耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉"),2==t.showType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"df aic"},[e.createElementVNode("view",{class:"df aic price mr10"},[e.createElementVNode("text",{class:"f20 jg"},"¥"),e.createElementVNode("text",{class:"f28"},e.toDisplayString(t.orderInfo.price),1)]),e.createElementVNode("view",{class:"df xl"},[e.createElementVNode("text",null,"销量"),e.createTextVNode(),e.createElementVNode("text",null,e.toDisplayString(t.orderInfo.sales),1),e.createTextVNode(),e.createElementVNode("text",null,"+")])])):e.createCommentVNode("",!0),3==t.showType?(e.openBlock(),e.createElementBlock("view",{key:1,class:"df aic"},[e.createElementVNode("view",{class:"df xl thd"},[e.createElementVNode("text",null,"店铺名称")])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),5==t.showType?(e.openBlock(),e.createElementBlock("view",{key:2,class:"df fdc jcsb hohp"},[e.createElementVNode("text",{class:"t2hd c333 f28 fw600"},"耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉耳钉"),e.createElementVNode("text",{class:"c333 f24"},"销量156151"),e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("text",{class:"f24 cFF9B27"},"价格¥123"),e.createElementVNode("text",{class:"f24 ml40 c999"},"库存x1")])])):e.createCommentVNode("",!0)])),_:2},[3!=t.showType&&t.right?{name:"right",fn:e.withCtx((()=>[1==t.showType||4==t.showType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"df fdc jcsb aife",style:{height:"100%","align-items":"flex-end"}},[e.createElementVNode("view",{class:"price-num"},[e.createElementVNode("view",{class:"df aic price"},[e.createElementVNode("text",{class:"f20 jg"},"¥"),e.createElementVNode("text",{class:"f28"},"999.00")]),e.createElementVNode("text",{class:"c999 f24"},"x1")]),4==t.showType?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:o[0]||(o[0]=e.withModifiers((e=>a("consult",t.orderInfo)),["stop"])),class:"go-buy"},[e.createVNode(i,{inverted:!0,text:"去咨询",type:"warning"})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),2==t.showType?(e.openBlock(),e.createElementBlock("view",{key:1,class:"go-buy",onClick:o[1]||(o[1]=e.withModifiers((e=>a("buy",t.orderInfo)),["stop"]))},[e.createVNode(i,{inverted:!0,text:"去购买",type:"warning"})])):e.createCommentVNode("",!0)])),key:"0"}:void 0]),1024)])}}},[["__scopeId","data-v-e643ad19"]]),ra=w({__name:"index",props:{item:{type:Object,default:()=>({})},imgStyle:{type:Object,default:()=>({})},showStatus:{type:Boolean,default:!1}},setup:t=>(n,a)=>{const o=f(e.resolveDynamicComponent("uni-section"),Hn);return e.openBlock(),e.createElementBlock("view",{class:"jy-shop-information"},[e.createVNode(o,{title:"店铺名称"},e.createSlots({decoration:e.withCtx((()=>[e.createElementVNode("image",{style:e.normalizeStyle(t.imgStyle),class:"head-portrait",src:"",mode:"aspectFill"},null,4)])),_:2},[t.showStatus?{name:"right",fn:e.withCtx((()=>[e.renderSlot(n.$slots,"shopRight",{},(()=>[e.createElementVNode("view",null," 123 ")]),!0)])),key:"0"}:void 0]),1024)])}},[["__scopeId","data-v-c8fe47f5"]]),ca=w({__name:"index",setup:t=>(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D),o=f(e.resolveDynamicComponent("uni-section"),Hn);return e.openBlock(),e.createElementBlock("view",{class:"jy-commodity-logistics-card"},[e.createVNode(o,{titleColor:"#3D3D3D",title:"商品物流状态商品物流状态商品物流状态...",onClick:n[0]||(n[0]=e=>t.goto("/pages/mine/balance-details/index"))},{decoration:e.withCtx((()=>[e.createElementVNode("image",{class:"shop-image",src:"",mode:"aspectFill"})])),right:e.withCtx((()=>[e.createVNode(a,{type:"right",color:"#D8D8D8"})])),_:1})])}},[["__scopeId","data-v-d3b927af"]]),la="/static/address.png",ua=w({__name:"index",props:{shopEdit:{type:Boolean,default:!0},address:{type:Object,default:()=>({})}},setup:t=>(n,a)=>(e.openBlock(),e.createElementBlock("view",{class:"address df aic jcc"},[e.createElementVNode("view",{class:"icon mr20"},[e.createElementVNode("image",{class:"wh45",src:la,mode:"aspectFill"})]),e.createElementVNode("view",{class:"info f1"},[e.createElementVNode("view",{class:"location f30"},[e.createElementVNode("text",{class:"c333"},"收货地址收货地址收货地址收货地址收货地址收货地址收货地址")]),e.createElementVNode("view",{class:"name"},[e.createElementVNode("text",{class:"c999 f26"},"张三 123456789")])]),t.shopEdit?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn ti warmHollow plr20 ml20",onClick:a[0]||(a[0]=t=>e.unref(Me).checkLink("/pages/mine/delivery-address/index"))},[e.createElementVNode("text",{class:"cFF9B27"},"选择地址")])):e.createCommentVNode("",!0)]))},[["__scopeId","data-v-9efec423"]]);function da(e){let t="";for(let n in e){t+=`${n}:${e[n]};`}return t}const ma=w({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},adjustPosition:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let n in e)e[n]&&(t+=`${n} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return da({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return da({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=null!==e?e:""},modelValue(e){this.val=null!==e?e:""},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=""},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("blur",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-easyinput",{"uni-easyinput-error":s.msg}]),style:e.normalizeStyle(s.boxStyle)},[e.createElementVNode("view",{class:e.normalizeClass(["uni-easyinput__content",s.inputContentClass]),style:e.normalizeStyle(s.inputContentStyle)},[a.prefixIcon?(e.openBlock(),e.createBlock(r,{key:0,class:"content-clear-icon",type:a.prefixIcon,color:"#c0c4cc",onClick:n[0]||(n[0]=e=>s.onClickIcon("prefix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"left",{},void 0,!0),"textarea"===a.type?(e.openBlock(),e.createElementBlock("textarea",{key:1,class:e.normalizeClass(["uni-easyinput__content-textarea",{"input-padding":a.inputBorder}]),name:a.name,value:i.val,placeholder:a.placeholder,placeholderStyle:a.placeholderStyle,disabled:a.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:s.inputMaxlength,focus:i.focused,autoHeight:a.autoHeight,"cursor-spacing":a.cursorSpacing,"adjust-position":a.adjustPosition,onInput:n[1]||(n[1]=(...e)=>s.onInput&&s.onInput(...e)),onBlur:n[2]||(n[2]=(...e)=>s._Blur&&s._Blur(...e)),onFocus:n[3]||(n[3]=(...e)=>s._Focus&&s._Focus(...e)),onConfirm:n[4]||(n[4]=(...e)=>s.onConfirm&&s.onConfirm(...e)),onKeyboardheightchange:n[5]||(n[5]=(...e)=>s.onkeyboardheightchange&&s.onkeyboardheightchange(...e))},null,42,["name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","adjust-position"])):(e.openBlock(),e.createElementBlock("input",{key:2,type:"password"===a.type?"text":a.type,class:"uni-easyinput__content-input",style:e.normalizeStyle(s.inputStyle),name:a.name,value:i.val,password:!i.showPassword&&"password"===a.type,placeholder:a.placeholder,placeholderStyle:a.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:a.disabled,maxlength:s.inputMaxlength,focus:i.focused,confirmType:a.confirmType,"cursor-spacing":a.cursorSpacing,"adjust-position":a.adjustPosition,onFocus:n[6]||(n[6]=(...e)=>s._Focus&&s._Focus(...e)),onBlur:n[7]||(n[7]=(...e)=>s._Blur&&s._Blur(...e)),onInput:n[8]||(n[8]=(...e)=>s.onInput&&s.onInput(...e)),onConfirm:n[9]||(n[9]=(...e)=>s.onConfirm&&s.onConfirm(...e)),onKeyboardheightchange:n[10]||(n[10]=(...e)=>s.onkeyboardheightchange&&s.onkeyboardheightchange(...e))},null,44,["type","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","adjust-position"])),"password"===a.type&&a.passwordIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[s.isVal?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===a.type}]),type:i.showPassword?"eye-slash-filled":"eye-filled",size:22,color:i.focusShow?a.primaryColor:"#c0c4cc",onClick:s.onEyes},null,8,["class","type","color","onClick"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),a.suffixIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[a.suffixIcon?(e.openBlock(),e.createBlock(r,{key:0,class:"content-clear-icon",type:a.suffixIcon,color:"#c0c4cc",onClick:n[11]||(n[11]=e=>s.onClickIcon("suffix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[a.clearable&&s.isVal&&!a.disabled&&"textarea"!==a.type?(e.openBlock(),e.createBlock(r,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===a.type}]),type:"clear",size:a.clearSize,color:s.msg?"#dd524d":i.focusShow?a.primaryColor:"#c0c4cc",onClick:s.onClear},null,8,["class","size","color","onClick"])):e.createCommentVNode("",!0)],64)),e.renderSlot(t.$slots,"right",{},void 0,!0)],6)],6)}],["__scopeId","data-v-b1026d0f"]]);const pa=w({name:"uniFormsItem",options:{virtualHost:!0},provide(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:()=>null},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:()=>({errMsg:"",userRules:null,localLabelAlign:"left",localLabelWidth:"70px",localLabelPos:"left",border:!1,isFirstBorder:!1}),computed:{msg(){return this.errorMessage||this.errMsg}},watch:{"form.formRules"(e){this.init()},"form.labelWidth"(e){this.localLabelWidth=this._labelWidthUnit(e)},"form.labelPosition"(e){this.localLabelPos=this._labelPosition()},"form.labelAlign"(e){}},created(){this.init(!0),this.name&&this.form&&this.$watch((()=>this.form._getDataValue(this.name,this.form.localData)),((e,t)=>{if(!this.form._isEqual(e,t)){const t=this.itemSetValue(e);this.onFieldChange(t,!1)}}),{immediate:!1})},unmounted(){this.__isUnmounted=!0,this.unInit()},methods:{setRules(e=null){this.userRules=e,this.init(!1)},setValue(){},async onFieldChange(e,t=!0){const{formData:n,localData:a,errShowType:o,validateCheck:i,validateTrigger:s,_isRequiredField:r,_realName:c}=this.form,l=c(this.name);e||(e=this.form.formData[l]);const u=this.itemRules.rules&&this.itemRules.rules.length;if(!this.validator||!u||0===u)return;const d=r(this.itemRules.rules||[]);let m=null;return"bind"===s||t?(m=await this.validator.validateUpdate({[l]:e},n),d||void 0!==e&&""!==e||(m=null),m&&m.errorMessage?("undertext"===o&&(this.errMsg=m?m.errorMessage:""),"toast"===o&&uni.showToast({title:m.errorMessage||"校验错误",icon:"none"}),"modal"===o&&uni.showModal({title:"提示",content:m.errorMessage||"校验错误"})):this.errMsg="",i(m||null)):this.errMsg="",m||null},init(e=!1){const{validator:t,formRules:n,childrens:a,formData:o,localData:i,_realName:s,labelWidth:r,_getDataValue:c,_setDataValue:l}=this.form||{};if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(r),this.localLabelPos=this._labelPosition(),this.form&&e&&a.push(this),!t||!n)return;this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border;const u=s(this.name),d=this.userRules||this.rules;"object"==typeof n&&d&&(n[u]={rules:d},t.updateSchema(n));const m=n[u]||{};this.itemRules=m,this.validator=t,this.itemSetValue(c(this.name,i))},unInit(){if(this.form){const{childrens:e,formData:t,_realName:n}=this.form;e.forEach(((e,a)=>{e===this&&(this.form.childrens.splice(a,1),delete t[n(e.name)])}))}},itemSetValue(e){const t=this.form._realName(this.name),n=this.itemRules.rules||[],a=this.form._getValue(t,e,n);return this.form._setDataValue(t,this.form.formData,a),a},clearValidate(){this.errMsg=""},_isRequired(){return this.required},_justifyContent(){if(this.form){const{labelAlign:e}=this.form;let t=this.labelAlign?this.labelAlign:e;if("left"===t)return"flex-start";if("center"===t)return"center";if("right"===t)return"flex-end"}return"flex-start"},_labelWidthUnit(e){return this.num2px(this.labelWidth?this.labelWidth:e||(this.label?70:"auto"))},_labelPosition(){return this.form&&this.form.labelPosition||"left"},isTrigger:(e,t,n)=>"submit"!==e&&e?"bind":void 0===e?"bind"!==t?t?"submit":""===n?"bind":"submit":"bind":"submit",num2px:e=>"number"==typeof e?`${e}px`:e}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-forms-item",["is-direction-"+i.localLabelPos,i.border?"uni-forms-item--border":"",i.border&&i.isFirstBorder?"is-first-border":""]])},[e.renderSlot(t.$slots,"label",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-forms-item__label",{"no-label":!a.label&&!a.required}]),style:e.normalizeStyle({width:i.localLabelWidth,justifyContent:i.localLabelAlign})},[a.required?(e.openBlock(),e.createElementBlock("text",{key:0,class:"is-required"},"*")):e.createCommentVNode("",!0),e.createElementVNode("text",null,e.toDisplayString(a.label),1)],6)]),!0),e.createElementVNode("view",{class:"uni-forms-item__content"},[e.renderSlot(t.$slots,"default",{},void 0,!0),e.createElementVNode("view",{class:e.normalizeClass(["uni-forms-item__error",{"msg--active":s.msg}])},[e.createElementVNode("text",null,e.toDisplayString(s.msg),1)],2)])],2)}],["__scopeId","data-v-7b97b15c"]]);var ha={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")};const ga={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function fa(e,t=""){["label"].forEach((t=>{void 0===e[t]&&(e[t]="")}));let n=t;for(let a in e){let t=new RegExp("{"+a+"}");n=n.replace(t,e[a])}return n}const va={integer:e=>va.number(e)&&parseInt(e,10)===e,string:e=>"string"==typeof e,number:e=>!isNaN(e)&&"number"==typeof e,boolean:function(e){return"boolean"==typeof e},float:function(e){return va.number(e)&&!va.integer(e)},array:e=>Array.isArray(e),object:e=>"object"==typeof e&&!va.array(e),date:e=>e instanceof Date,timestamp(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:e=>"string"==typeof e.url,email:e=>"string"==typeof e&&!!e.match(ha.email)&&e.length<255,url:e=>"string"==typeof e&&!!e.match(ha.url),pattern(e,t){try{return new RegExp(e).test(t)}catch(zo){return!1}},method:e=>"function"==typeof e,idcard:e=>"string"==typeof e&&!!e.match(ha.idcard),"url-https"(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":e=>e.startsWith("://"),"url-web":e=>!1};class _a{constructor(e){this._message=e}async validateRule(e,t,n,a,o){var i=null;let s=t.rules;if(s.findIndex((e=>e.required))<0){if(null==n)return i;if("string"==typeof n&&!n.length)return i}var r=this._message;if(void 0===s)return r.default;for(var c=0;c<s.length;c++){let l=s[c],u=this._getValidateType(l);if(Object.assign(l,{label:t.label||`["${e}"]`}),ya[u]&&null!=(i=ya[u](l,n,r)))break;if(l.validateExpr){let e=Date.now();if(!1===l.validateExpr(n,o,e)){i=this._getMessage(l,l.errorMessage||this._message.default);break}}if(l.validateFunction&&null!==(i=await this.validateFunction(l,n,a,o,u)))break}return null!==i&&(i=r.TAG+i),i}async validateFunction(e,t,n,a,o){let i=null;try{let s=null;const r=await e.validateFunction(e,t,a||n,(e=>{s=e}));(s||"string"==typeof r&&r||!1===r)&&(i=this._getMessage(e,s||r,o))}catch(zo){i=this._getMessage(e,zo.message,o)}return i}_getMessage(e,t,n){return fa(e,t||e.errorMessage||this._message[n]||t.default)}_getValidateType(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}const ya={required:(e,t,n)=>e.required&&function(e,t){return null==e||"string"==typeof e&&!e||!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length}(t,e.format||typeof t)?fa(e,e.errorMessage||n.required):null,range(e,t,n){const{range:a,errorMessage:o}=e;let i=new Array(a.length);for(let r=0;r<a.length;r++){const e=a[r];va.object(e)&&void 0!==e.value?i[r]=e.value:i[r]=e}let s=!1;return Array.isArray(t)?s=new Set(t.concat(i)).size===i.length:i.indexOf(t)>-1&&(s=!0),s?null:fa(e,o||n.enum)},rangeNumber(e,t,n){if(!va.number(t))return fa(e,e.errorMessage||n.pattern.mismatch);let{minimum:a,maximum:o,exclusiveMinimum:i,exclusiveMaximum:s}=e,r=i?t<=a:t<a,c=s?t>=o:t>o;return void 0!==a&&r?fa(e,e.errorMessage||n.number[i?"exclusiveMinimum":"minimum"]):void 0!==o&&c?fa(e,e.errorMessage||n.number[s?"exclusiveMaximum":"maximum"]):void 0!==a&&void 0!==o&&(r||c)?fa(e,e.errorMessage||n.number.range):null},rangeLength(e,t,n){if(!va.string(t)&&!va.array(t))return fa(e,e.errorMessage||n.pattern.mismatch);let a=e.minLength,o=e.maxLength,i=t.length;return void 0!==a&&i<a?fa(e,e.errorMessage||n.length.minLength):void 0!==o&&i>o?fa(e,e.errorMessage||n.length.maxLength):void 0!==a&&void 0!==o&&(i<a||i>o)?fa(e,e.errorMessage||n.length.range):null},pattern:(e,t,n)=>va.pattern(e.pattern,t)?null:fa(e,e.errorMessage||n.pattern.mismatch),format(e,t,n){var a=Object.keys(va),o=ga[e.format]?ga[e.format]:e.format||e.arrayType;return a.indexOf(o)>-1&&!va[o](t)?fa(e,e.errorMessage||n.typeError):null},arrayTypeFormat(e,t,n){if(!Array.isArray(t))return fa(e,e.errorMessage||n.typeError);for(let a=0;a<t.length;a++){const o=t[a];let i=this.format(e,o,n);if(null!==i)return i}return null}};class Ea extends _a{constructor(e,t){super(Ea.message),this._schema=e,this._options=t||null}updateSchema(e){this._schema=e}async validate(e,t){let n=this._checkFieldInSchema(e);return n||(n=await this.invokeValidate(e,!1,t)),n.length?n[0]:null}async validateAll(e,t){let n=this._checkFieldInSchema(e);return n||(n=await this.invokeValidate(e,!0,t)),n}async validateUpdate(e,t){let n=this._checkFieldInSchema(e);return n||(n=await this.invokeValidateUpdate(e,!1,t)),n.length?n[0]:null}async invokeValidate(e,t,n){let a=[],o=this._schema;for(let i in o){let s=o[i],r=await this.validateRule(i,s,e[i],e,n);if(null!=r&&(a.push({key:i,errorMessage:r}),!t))break}return a}async invokeValidateUpdate(e,t,n){let a=[];for(let o in e){let i=await this.validateRule(o,this._schema[o],e[o],e,n);if(null!=i&&(a.push({key:o,errorMessage:i}),!t))break}return a}_checkFieldInSchema(e){var t=Object.keys(e),n=Object.keys(this._schema);if(new Set(t.concat(n)).size===n.length)return"";var a=t.filter((e=>n.indexOf(e)<0));return[{key:"invalid",errorMessage:fa({field:JSON.stringify(a)},Ea.message.TAG+Ea.message.defaultInvalid)}]}}Ea.message=new function(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}};const Ca=(e,t,n)=>{const a=n.find((e=>{return e.format&&("int"===(t=e.format)||"double"===t||"number"===t||"timestamp"===t);var t})),o=n.find((e=>e.format&&"boolean"===e.format||"bool"===e.format));return a&&(t=t||0===t?wa(Number(t))?Number(t):t:null),o&&(t=!!Da(t)&&t),t},ka=(e,t)=>Na(t,e),Ia=(e,t={})=>{const n=Ma(e);if("object"==typeof n&&Array.isArray(n)&&n.length>1){return n.reduce(((e,t)=>e+`#${t}`),"_formdata_")}return n[0]||e},Sa=e=>{let t=e.replace("_formdata_#","");return t=t.split("#").map((e=>wa(e)?Number(e):e)),t},Ta=(e,t,n)=>("object"!=typeof e||Ma(t).reduce(((e,t,a,o)=>a===o.length-1?(e[t]=n,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(o[a+1])?[]:{}),e[t])),e),e);function Ma(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}const Na=(e,t,n="undefined")=>{let a=Ma(t).reduce(((e,t)=>(e||{})[t]),e);return a&&void 0===a?n:a},wa=e=>!isNaN(Number(e)),Da=e=>"boolean"==typeof e;const ba=w({name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:()=>null},modelValue:{type:Object,default:()=>null},model:{type:Object,default:()=>null},rules:{type:Object,default:()=>({})},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide(){return{uniForm:this}},data:()=>({formData:{},formRules:{}}),computed:{localData(){const e=this.model||this.modelValue||this.value;return e?(t=e,JSON.parse(JSON.stringify(t))):{};var t}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created(){getApp().$vm.$.appContext.config.globalProperties.binddata||(getApp().$vm.$.appContext.config.globalProperties.binddata=function(e,t,n){if(n)this.$refs[n].setValue(e,t);else{let n;for(let e in this.$refs){const t=this.$refs[e];if(t&&t.$options&&"uniForms"===t.$options.name){n=t;break}}if(!n)return g("error","at uni_modules/uni-forms/components/uni-forms/uni-forms.vue:182","当前 uni-froms 组件缺少 ref 属性");n.model&&(n.model[e]=t),n.modelValue&&(n.modelValue[e]=t),n.value&&(n.model[e]=t)}}),this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new Ea(e)},setValue(e,t){let n=this.childrens.find((t=>t.name===e));return n?(this.formData[e]=Ca(0,t,this.formRules[e]&&this.formRules[e].rules||[]),n.onFieldChange(this.formData[e])):null},validate(e,t){return this.checkAll(this.formData,e,t)},validateField(e=[],t){e=[].concat(e);let n={};return this.childrens.forEach((t=>{const a=Ia(t.name);-1!==e.indexOf(a)&&(n=Object.assign({},n,{[a]:this.formData[a]}))})),this.checkAll(n,[],t)},clearValidate(e=[]){e=[].concat(e),this.childrens.forEach((t=>{if(0===e.length)t.errMsg="";else{const n=Ia(t.name);-1!==e.indexOf(n)&&(t.errMsg="")}}))},submit(e,t,n){for(let a in this.dataValue){this.childrens.find((e=>e.name===a))&&void 0===this.formData[a]&&(this.formData[a]=this._getValue(a,this.dataValue[a]))}return n||g("warn","at uni_modules/uni-forms/components/uni-forms/uni-forms.vue:291","submit 方法即将废弃请使用validate方法代替"),this.checkAll(this.formData,e,t,"submit")},async checkAll(e,t,n,a){if(!this.validator)return;let o,i=[];for(let l in e){const e=this.childrens.find((e=>Ia(e.name)===l));e&&i.push(e)}n||"function"!=typeof t||(n=t),!n&&"function"!=typeof n&&Promise&&(o=new Promise(((e,t)=>{n=function(n,a){n?t(n):e(a)}})));let s=[],r=JSON.parse(JSON.stringify(e));for(let l in i){const e=i[l];let t=Ia(e.name);const n=await e.onFieldChange(r[t]);if(n&&(s.push(n),"toast"===this.errShowType||"modal"===this.errShowType))break}Array.isArray(s)&&0===s.length&&(s=null),Array.isArray(t)&&t.forEach((e=>{let t=Ia(e),n=ka(e,this.localData);void 0!==n&&(r[t]=n)})),"submit"===a?this.$emit("submit",{detail:{value:r,errors:s}}):this.$emit("validate",s);let c={};return c=((e={})=>{let t=JSON.parse(JSON.stringify(e)),n={};for(let a in t){let e=Sa(a);Ta(n,e,t[a])}return n})(r,this.name),n&&"function"==typeof n&&n(s,c),o&&n?o:null},validateCheck(e){this.$emit("validate",e)},_getValue:Ca,_isRequiredField:e=>{let t=!1;for(let n=0;n<e.length;n++){if(e[n].required){t=!0;break}}return t},_setDataValue:(e,t,n)=>(t[e]=n,n||""),_getDataValue:ka,_realName:Ia,_isRealName:e=>/^_formdata_#*/.test(e),_isEqual:(e,t)=>{if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;var n=toString.call(e);if(n!==toString.call(t))return!1;switch(n){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}if("[object Object]"==n){var a=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(a.length!=o.length)return!1;for(var i=0;i<a.length;i++){var s=a[i];if(e[s]!==t[s])return!1}return!0}return"[object Array]"==n?e.toString()==t.toString():void 0}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-forms"},[e.createElementVNode("form",null,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])}],["__scopeId","data-v-c19e76e1"]]),La=w({__name:"index",props:{title:{type:String,default:""},showSave:{type:Boolean,default:!1},saveTitle:{type:String,default:"保存"},type:{type:String,default:"content"}},emits:["savePost"],setup(t,{expose:n,emit:a}){const o=e.ref(null),i=a,s=()=>{o.value.close()};return n({close:s,open:()=>{o.value.open()}}),(n,a)=>{const r=f(e.resolveDynamicComponent("uni-icons"),D),c=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createBlock(c,{ref_key:"jyPopup",ref:o,type:t.type},{default:e.withCtx((()=>["center"==t.type?(e.openBlock(),e.createElementBlock("view",{key:0,class:"jy-popup-content f1 bfff pr"},[e.renderSlot(n.$slots,"title",{},(()=>[e.createElementVNode("view",{class:"title fw600"},[e.createElementVNode("text",null,e.toDisplayString(t.title),1)])]),!0),e.createVNode(r,{onClick:s,class:"close-btn c999",type:"closeempty",size:"20"}),e.createElementVNode("view",{class:"p25"},[e.renderSlot(n.$slots,"default",{},void 0,!0),t.showSave?(e.openBlock(),e.createElementBlock("button",{key:0,class:"save-btn",onClick:a[0]||(a[0]=(...e)=>n.savePost&&n.savePost(...e))},"保存")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),"bottom"==t.type?(e.openBlock(),e.createElementBlock("view",{key:1,class:"jy-popup-bottom f1 bfff pr",style:e.normalizeStyle({"padding-bottom":`${e.unref(Gn)(!0)+20}px`})},[e.renderSlot(n.$slots,"title",{},(()=>[e.createElementVNode("view",{class:"title fw600"},[e.createElementVNode("text",null,e.toDisplayString(t.title),1)])]),!0),e.createVNode(r,{onClick:s,class:"close c999",type:"closeempty",size:"20"}),e.createElementVNode("view",{style:e.normalizeStyle({height:.7*e.unref(Fn)(!0)+"px"})},[e.renderSlot(n.$slots,"default",{},void 0,!0)],4),t.showSave?(e.openBlock(),e.createElementBlock("button",{key:0,class:"save-btn",onClick:a[1]||(a[1]=e=>i("savePost"))},e.toDisplayString(t.saveTitle),1)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)])),_:3},8,["type"])}}},[["__scopeId","data-v-d884410d"]]),Pa=w({__name:"delivery",emits:["savePost"],setup(t,{expose:n,emit:a}){const o=e.ref(null),i=a,s=e.reactive({company:"",numbers:""}),r=async()=>{try{const e=await uni.scanCode();if(e&&e.result){const t=c(e.result);s.numbers=t}else uni.showToast({title:"扫码结果为空",icon:"none"})}catch(e){uni.showToast({title:"扫码失败",icon:"none"})}},c=e=>e.split("\n")[0],l=()=>{i("savePost")};return n({open:()=>{o.value.open()}}),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-easyinput"),ma),i=f(e.resolveDynamicComponent("uni-forms-item"),pa),c=f(e.resolveDynamicComponent("uni-forms"),ba);return e.openBlock(),e.createBlock(e.unref(La),{ref_key:"popup",ref:o,showSave:"",onClick:l,title:"填写快递单号"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"jy-delivery"},[e.createVNode(c,{modelValue:s},{default:e.withCtx((()=>[e.createVNode(i,{label:"快递公司",name:"company"},{default:e.withCtx((()=>[e.createVNode(a,{inputBorder:!1,type:"text",modelValue:s.company,"onUpdate:modelValue":n[0]||(n[0]=e=>s.company=e),placeholder:"输入快递公司"},null,8,["modelValue"])])),_:1}),e.createVNode(i,{label:"快递单号",name:"numbers"},{default:e.withCtx((()=>[e.createVNode(a,{inputBorder:!1,type:"text",suffixIcon:"scan",modelValue:s.numbers,"onUpdate:modelValue":n[1]||(n[1]=e=>s.numbers=e),placeholder:"输入快递单号",onSuffix:r},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue"])])])),_:1},512)}}},[["__scopeId","data-v-14a4eefd"]]),Aa={user_order:[{name:"取消订单",type:"black",value:"cancel_order",status:[2]},{name:"继续付款",type:"orange",value:"continue_paying",status:[2]},{name:"申请退款",type:"black",value:"refund",status:[3,4,5]},{name:"崔发货",type:"orange",status:[3]},{name:"查看物流",type:"black",status:[4]},{name:"确认收货",type:"orange",status:[4]},{name:"评价",type:"orange",status:[5]},{name:"删除记录",type:"black",status:[6]},{name:"售后详情",type:"black",status:[6]},{name:"钱款去向",type:"black",value:"money_whereabouts",status:[6]},{name:"平台介入",type:"orange",status:[6]}],business_order:[{name:"改价",type:"orange",value:"change_price",status:[2]},{name:"发货",type:"orange",value:"delivery",status:[3]},{name:"拒绝退款",type:"black",value:"refund_refund",status:[5]},{name:"同意退款",type:"black",value:"agree_refund",status:[5]},{name:"联系用户",type:"orange",value:"contact_users",status:[5]}],merchandise_control:[{name:"上架",type:"black",value:"grounding",status:[1]},{name:"下架",type:"black",value:"discontinue",status:[1]},{name:"编辑",type:"orange",value:"edit",status:[1]}]},Ra=w({__name:"index",props:{orderInfo:{type:Object,default:()=>({shop_logo:"",shop_name:"123",order_status_text:3})},type:{type:String,required:!0}},setup(t){const n=e.ref(null);e.ref(null);const a=()=>{g("log","at components/public/jy-order-card/index.vue:115","保存")},o=t;e.ref(Aa[o.type]);const i={merchandise_control:{},business_order:{delivery:()=>{n.value.open()}},user_order:{cancel_order:()=>{uni.showModal({title:"提示",content:"确定要取消订单吗?",success:function(e){e.confirm?g("log","at components/public/jy-order-card/index.vue:158","用户点击确定"):e.cancel&&g("log","at components/public/jy-order-card/index.vue:161","用户点击取消")}})},continue_paying:()=>{uni.showModal({title:"提示",content:"确定要继续支付吗?",success:function(e){e.confirm?g("log","at components/public/jy-order-card/index.vue:172","用户点击确定"):e.cancel&&g("log","at components/public/jy-order-card/index.vue:175","用户点击取消")}})},refund:()=>{uni.navigateTo({url:"/pages/shop/order/refund/index"})},money_whereabouts:()=>{uni.navigateTo({url:"/pages/shop/order/money_whereabouts/index"})}}};return(o,s)=>{const r=f(e.resolveDynamicComponent("uni-section"),Hn),c=f(e.resolveDynamicComponent("uni-countdown"),oa);return e.openBlock(),e.createElementBlock("view",{class:"jy-order-card"},["merchandise_control"==t.type?(e.openBlock(),e.createBlock(e.unref(sa),{key:0,class:"mb40",showType:5})):e.createCommentVNode("",!0),"user_order"==t.type?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(ra),{showStatus:!0}),e.createVNode(e.unref(sa),{showType:1}),e.createVNode(r,null,{right:e.withCtx((()=>[e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("text",{class:"c333 f28"},"应付:"),e.createElementVNode("text",{class:"price f20"},"¥"),e.createElementVNode("text",{class:"price f32"},"5.00")])])),_:1}),1==t.orderInfo.order_status_text?(e.openBlock(),e.createBlock(r,{key:0},{right:e.withCtx((()=>[e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("text",null," 支付剩余时间:"),e.createVNode(c,{"show-day":!1,showHour:!1,minute:12,second:12})])])),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),"business_order"==t.type?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(e.unref(ra),{showStatus:!0}),e.createVNode(e.unref(sa),{showType:1}),e.createVNode(r,null,{right:e.withCtx((()=>[e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("text",{class:"c333 f28"},"实收:"),e.createElementVNode("text",{class:"price f20"},"¥"),e.createElementVNode("text",{class:"price f32"},"5.00")])])),_:1}),4==t.orderInfo.order_status_text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(ua),{shopEdit:!1}),e.createVNode(e.unref(ca))],64)):e.createCommentVNode("",!0),5==t.orderInfo.order_status_text?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"df mb40"},[e.createElementVNode("view",{class:"c333 f28 fw600 wsn"},"收货地址:"),e.createElementVNode("view",{class:"df fdc"},[e.createElementVNode("view",{class:"c333 f28"},"收货地址收货地址收货地址收货地址收货地址收货地址收货地址"),e.createElementVNode("view",{class:"f24 c666"},"张三 123456789")])]),e.createElementVNode("view",{class:"df mb40"},[e.createElementVNode("view",{class:"c333 f28 fw600 wsn"},"收货地址:"),e.createElementVNode("view",{class:"c333 f28"}," 什么什么原因什么什么原因什么什么原因什么什么原因 ")])],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.unref(Aa).merchandise_control.length>0?(e.openBlock(),e.createElementBlock("view",{key:3,class:"btn-group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Aa)[t.type],((n,a)=>(e.openBlock(),e.createElementBlock("view",{class:"btn-for",key:a,onClick:e=>i[t.type][n.value](n)},[n.status.includes(t.orderInfo.order_status_text)?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["btn-item",[n.type,{"btn-item4":4==n.name.length,"btn-item3":3==n.name.length,"btn-item2":2==n.name.length}]])},[e.createElementVNode("text",null,e.toDisplayString(n.name),1)],2)):e.createCommentVNode("",!0)],8,["onClick"])))),128))])):e.createCommentVNode("",!0),e.createVNode(Pa,{ref_key:"deliveryRef",ref:n,onSavePost:a},null,512)])}}},[["__scopeId","data-v-54518360"]]),Oa={__name:"index",setup:t=>(S((()=>{})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-business-operator-order"},[e.createVNode(e.unref(Yn),{title:"商品管理",isRight:""},{right:e.withCtx((()=>[e.createElementVNode("view",{onClick:n[0]||(n[0]=(...e)=>t.right&&t.right(...e))},"添加")])),_:1}),e.createElementVNode("view",{class:"p16"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,((t,n)=>e.createVNode(e.unref(Ra),{type:"merchandise_control"}))),64))])])))};const Va=w({props:{list:{type:Array,default:()=>[]},current:{type:[Number,String],default:0},titalName:{type:String,default:"name"},barWidth:{type:[String,Number],default:16},barHeight:{type:[String,Number],default:2},barStyle:{type:Object,default:()=>({})},activeBarColor:{type:String,default:"#4990F9"},activeColor:{type:String,default:"#4990F9"},duration:{type:[String,Number],default:.5},height:{type:Number,default:34},fontSize:{type:String,default:"16px"},scroll:{type:Boolean,default:!0},marright:{type:String,default:"38px"},activeWeight:{type:String,default:"normal"},background:{type:String,default:""}},watch:{list(e,t){e.length!==t.length&&(this.currentIndex=0),this.$nextTick((()=>{this.init()}))},current:{immediate:!0,handler(e,t){this.$nextTick((()=>{this.currentIndex=e,this.scrollByIndex()}))}}},computed:{tabBarStyle:function(){let e={width:this.barWidth+"px",height:this.barHeight+"px",transform:`translateX(${this.scrollBarLeft}px)`,"transition-duration":`${this.barFirstTimeMove?0:this.duration}s`,"border-radius":this.barHeight/2+"px","background-color":this.activeBarColor};return Object.assign(e,this.barStyle),e},tabHeight(){return this.height+"px"}},data:()=>({scrollLeft:0,componentWidth:0,parentLeft:0,scrollBarLeft:0,tabItemRectInfo:[],currentIndex:0,barFirstTimeMove:!0}),mounted(){this.init()},methods:{init(){this.$nextTick((()=>{uni.createSelectorQuery().in(this).select("#tab").fields({size:!0,rect:!0},(e=>{this.parentLeft=e.left,this.componentWidth=e.width})).exec(),this.getTabItemRect()}))},getTabItemRect(){let e=uni.createSelectorQuery().in(this);for(let t=0;t<this.list.length;t++)e.select(`#tab-item-${t}`).fields({size:!0,rect:!0});e.exec((e=>{this.tabItemRectInfo=e,this.scrollByIndex()}))},scrollByIndex(){let e=this.tabItemRectInfo[this.currentIndex];if(!e)return;let t=e.width,n=e.left-this.parentLeft-(this.componentWidth-t)/2;this.scrollLeft=n<0?0:n;let a=e.left+e.width/2-this.parentLeft;this.scrollBarLeft=a-this.barWidth/2,1==this.barFirstTimeMove&&setTimeout((()=>{this.barFirstTimeMove=!1}),100)},clickTab(e,t){t!=this.currentIndex&&(this.currentIndex=t,this.$emit("tabItemClick",e,t),this.scrollByIndex())}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"tab",style:e.normalizeStyle({background:a.background})},[e.createElementVNode("scroll-view",{class:"scroll-view-content","scroll-x":"","scroll-with-animation":"","show-scrollbar":!1,"scroll-left":i.scrollLeft},[e.createElementVNode("view",{class:e.normalizeClass(["scroll-item-view",a.scroll?"":"flex-row-left"]),id:"tab"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["scroll-item",[n==a.list.length-1?"no-right":""]]),style:e.normalizeStyle({color:i.currentIndex==n?a.activeColor:"",height:s.tabHeight,"line-height":s.tabHeight,"font-size":a.fontSize,width:a.scroll?"":100/a.list.length+"%","margin-right":a.scroll?a.marright:"","font-weight":i.currentIndex==n?a.activeWeight:""}),id:"tab-item-"+n,key:n,onClick:e=>s.clickTab(t,n)},e.toDisplayString(t[a.titalName]),15,["id","onClick"])))),128)),e.createElementVNode("view",{class:"scroll-tab-bar",style:e.normalizeStyle([s.tabBarStyle])},null,4)],2)],8,["scroll-left"])],4)}],["__scopeId","data-v-e1a11b01"]]),Ba=w({__name:"index",setup(t){S((()=>{g("log","at pages/merchant/order/index.vue:26","===================================="),g("log","at pages/merchant/order/index.vue:27","加载到底了通知刷新"),g("log","at pages/merchant/order/index.vue:28","====================================")}));const n=(e,t)=>{},a=e.ref([{id:1,name:"全部"},{id:2,name:"待付款"},{id:3,name:"待发货"},{id:4,name:"待收货"},{id:6,name:"售后/退款"}]),o=e.ref(""),i=e.ref({currentTab:0});return E((e=>{i.value.currentTab=e.currentTab/1})),(t,s)=>{const r=f(e.resolveDynamicComponent("uni-easyinput"),ma);return e.openBlock(),e.createElementBlock("view",{class:"jy-business-operator-order"},[e.createVNode(e.unref(Yn),null,{center:e.withCtx((()=>[e.createVNode(r,{prefixIcon:"search",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=e=>o.value=e),placeholder:"搜索内容"},null,8,["modelValue"])])),_:1}),e.createVNode(e.unref(Va),{current:i.value.currentTab,list:a.value,onTabItemClick:n,marright:"25px",activeWeight:"600",activeColor:"#333333",activeBarColor:"initial"},null,8,["current","list"]),e.createElementVNode("view",{class:"p16"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,((t,n)=>e.createVNode(e.unref(Ra),{type:"business_order"}))),64))])])}}},[["__scopeId","data-v-923a8d32"]]),xa={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"视频",navigationStyle:"custom",navigationBarTextStyle:"white",disableScroll:!0}},{path:"pages/login/open",style:{navigationBarTitleText:"开屏页",navigationStyle:"custom",navigationBarTextStyle:"white"}},{path:"pages/login/loginPhone",style:{navigationBarTitleText:"手机号登录",navigationStyle:"custom","app-plus":{bounce:"none"}}},{path:"pages/shop/shop",style:{navigationBarTitleText:"商城",onReachBottomDistance:100,enablePullDownRefresh:!0,navigationBarBackgroundColor:"#fff"}},{path:"pages/merchant/business-operator/index",style:{navigationBarTitleText:"商家管理",onReachBottomDistance:100,navigationStyle:"custom"}},{path:"pages/merchant/order/index",style:{navigationBarTitleText:"商家订单",onReachBottomDistance:100,navigationStyle:"custom"}},{path:"pages/merchant/commodity-release/index",style:{navigationBarTitleText:"发布商品"}},{path:"pages/merchant/specifications/index",style:{navigationBarTitleText:"规格",navigationStyle:"custom"}},{path:"pages/shop/commodity/index",style:{navigationBarTitleText:"商品详情",navigationStyle:"custom",navigationBarTextStyle:"white"}},{path:"pages/shop/continue-pay/index",style:{navigationBarTitleText:"继续付款",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/store/index",style:{navigationBarTitleText:"店铺",navigationStyle:"custom",navigationBarTextStyle:"white"}},{path:"pages/shop/order/index",style:{navigationBarTitleText:"订单",navigationStyle:"custom",navigationBarBackgroundColor:"#fff",onReachBottomDistance:100}},{path:"pages/news/news",style:{navigationBarTitleText:"消息",navigationStyle:"custom","app-plus":{bounce:"none"}}},{path:"pages/news/group-chat-list/index",style:{navigationBarTitleText:"群聊列表"}},{path:"pages/news/group-chat/index",style:{navigationBarTitleText:"创建群聊",navigationBarBackgroundColor:"#fff"}},{path:"pages/news/chat/chat",style:{navigationBarTitleText:"问答页"}},{path:"pages/news/red-envelope/index",style:{navigationBarTitleText:"红包详情"}},{path:"pages/mine/mine",style:{navigationBarTitleText:"我的",navigationStyle:"custom"}},{path:"pages/mine/setting/setting",style:{navigationBarTitleText:"设置",navigationBarBackgroundColor:"#fff"}},{path:"pages/mine/userinfo",style:{navigationBarTitleText:"个人信息",navigationBarBackgroundColor:"#fff"}},{path:"pages/mine/switch-accounts/index",style:{navigationBarTitleText:"切换账号",navigationStyle:"custom"}},{path:"pages/mine/setting/usePay",style:{navigationBarTitleText:"先用后付",navigationBarBackgroundColor:"#fff"}},{path:"pages/mine/realname",style:{navigationBarTitleText:"实名认证",navigationBarBackgroundColor:"#fff"}},{path:"pages/mine/delivery-address/index",style:{navigationBarTitleText:"收货地址",navigationBarBackgroundColor:"#fff",onReachBottomDistance:100,enablePullDownRefresh:!0}},{path:"pages/mine/homepage",style:{navigationBarTitleText:"个人主页",navigationStyle:"custom",navigationBarTextStyle:"white"}},{path:"pages/release/video",style:{navigationBarTitleText:"发布视频",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/wallet/wallet",style:{navigationBarTitleText:"我的钱包",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/myTeam",style:{navigationBarTitleText:"我的团队"}},{path:"pages/index/search",style:{navigationBarTitleText:"搜索页",navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/index/videoHome",style:{navigationBarTitleText:"用户视频首页",navigationStyle:"custom"}},{path:"pages/index/report",style:{navigationBarTitleText:"举报",navigationBarBackgroundColor:"#fff"}},{path:"pages/mine/collectsVideo",style:{navigationBarTitleText:"收藏夹视频",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/promotion",style:{navigationBarTitleText:"选择推广视频",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/myQrCode",style:{navigationBarTitleText:"我的分享"}},{path:"pages/index/deal",style:{navigationBarTitleText:"我的交易",navigationStyle:"custom"}},{path:"pages/index/durian",style:{navigationBarTitleText:"榴莲首页"}},{path:"pages/index/durainActivation",style:{navigationBarTitleText:"已激活",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/trade",style:{navigationBarTitleText:"交易市场",navigationStyle:"custom",navigationBarBackgroundColor:"#fff",enablePullDownRefresh:!0}},{path:"pages/index/orchard",style:{navigationBarTitleText:"榴莲果园",navigationStyle:"custom"}},{path:"pages/index/durianLog",style:{navigationBarTitleText:"榴莲果明细",navigationBarBackgroundColor:"#fff",enablePullDownRefresh:!0}},{path:"pages/index/dataCenter/push",style:{navigationBarTitleText:"投流推广",navigationBarBackgroundColor:"#fff",navigationStyle:"custom"}},{path:"pages/index/dataCenter/pushVideoCollects",style:{navigationBarTitleText:"选择投流视频",navigationBarBackgroundColor:"#fff"}},{path:"pages/login/register",style:{navigationBarTitleText:"注册",navigationStyle:"custom"}},{path:"pages/login/forget",style:{navigationBarTitleText:"忘记密码",navigationStyle:"custom"}},{path:"pages/login/retrieve",style:{navigationBarTitleText:"找回账户",navigationStyle:"custom"}},{path:"pages/shop/settle",style:{navigationBarTitleText:"商家入驻",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/integral",style:{navigationBarTitleText:"积分",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/integralLog",style:{navigationBarTitleText:"积分变动明细",navigationBarBackgroundColor:"#fff",enablePullDownRefresh:!0}},{path:"pages/index/integralMall",style:{navigationBarTitleText:"卷轴商城",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/appeal",style:{navigationBarTitleText:"交易申诉"}},{path:"pages/index/beInvited",style:{navigationBarTitleText:"受邀成功",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/videoDetail",style:{navigationBarTitleText:"视频详情",navigationStyle:"custom"}},{path:"pages/news/newFriend",style:{navigationBarTitleText:"新朋友",navigationBarBackgroundColor:"#fff"}},{path:"pages/news/newAttention",style:{navigationBarTitleText:"新的关注",navigationBarBackgroundColor:"#fff"}},{path:"pages/news/newFans",style:{navigationBarTitleText:"新的粉丝",navigationBarBackgroundColor:"#fff"}},{path:"pages/news/message",style:{navigationBarTitleText:"消息",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/article",style:{navigationBarTitleText:""}},{path:"pages/index/wallet/topUp",style:{navigationBarTitleText:"余额充值",navigationBarBackgroundColor:"#fff"}},{path:"pages/news/addFriend",style:{navigationBarTitleText:"添加朋友",navigationBarBackgroundColor:"#fff"}},{path:"pages/news/redPacket",style:{navigationBarTitleText:"红包"}},{path:"pages/news/audio-video/audio",style:{navigationBarTitleText:"语音"}},{path:"pages/news/audio-video/video",style:{navigationBarTitleText:"视频"}},{path:"pages/index/integralDetail",style:{navigationBarTitleText:"卷轴详情",enablePullDownRefresh:!0}},{path:"pages/index/videoStatistics",style:{navigationBarTitleText:"视频统计"}},{path:"pages/mine/myComment",style:{navigationBarTitleText:"我的评论",navigationBarBackgroundColor:"#fff"}},{path:"pages/mine/secondpwd",style:{navigationBarTitleText:"设置二级密码"}},{path:"pages/index/wallet/bill",style:{navigationBarTitleText:"我的账单",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/wallet/billDetail",style:{navigationBarTitleText:"账单详情",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/dataCenter/dataCenter",style:{navigationBarTitleText:"数据中心",navigationBarBackgroundColor:"#fff",navigationStyle:"custom"}},{path:"pages/index/dataCenter/like",style:{navigationBarTitleText:"点赞统计",navigationBarBackgroundColor:"#fff",navigationStyle:"custom"}},{path:"pages/index/dataCenter/otherPush",style:{navigationBarTitleText:"他人推广",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/dataCenter/pushDetail",style:{navigationBarTitleText:"推流详情",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/dataCenter/pushHistory",style:{navigationBarTitleText:"历史推流",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/dataCenter/pushDetailUser",style:{navigationBarTitleText:"推流的用户",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/commodity/evaluate",style:{navigationBarTitleText:"商品评价",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/homepage",style:{navigationBarTitleText:"店铺主页",navigationStyle:"custom"}},{path:"pages/shop/order/detail",style:{navigationBarTitleText:"订单详情",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/order/refundStar",style:{navigationBarTitleText:"发起售后",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/order/logistics",style:{navigationBarTitleText:"物流状态",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/order/evaluate",style:{navigationBarTitleText:"评价",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/order/afterSales",style:{navigationBarTitleText:"售后详情",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/collect",style:{navigationBarTitleText:"商品收藏",navigationBarBackgroundColor:"#fff",navigationStyle:"custom"}},{path:"pages/shop/focusStore",style:{navigationBarTitleText:"关注店铺",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/history",style:{navigationBarTitleText:"历史浏览",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/coupon",style:{navigationBarTitleText:"优惠券",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/store/commodities",style:{navigationBarTitleText:"商品管理",navigationBarBackgroundColor:"#fff",navigationStyle:"custom"}},{path:"pages/release/commodity",style:{navigationBarTitleText:"发布商品",navigationBarBackgroundColor:"#fff"}},{path:"pages/mine/feedback",style:{navigationBarTitleText:"意见反馈"}},{path:"pages/mine/setting/safeCenter",style:{navigationBarTitleText:"安全中心"}},{path:"pages/mine/setting/bankCard",style:{navigationBarTitleText:"我的卡包"}},{path:"pages/mine/setting/bankCardAdd",style:{navigationBarTitleText:"添加银行卡",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/wallet/get",style:{navigationBarTitleText:"提现",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/wallet/merchantBill",style:{navigationBarTitleText:"商家账单",navigationBarBackgroundColor:"#fff"}},{path:"pages/mine/setting/teen",style:{navigationBarTitleText:"青少年模式"}},{path:"pages/mine/setting/binding",style:{navigationBarTitleText:"我的绑定",navigationBarBackgroundColor:"#fff"}},{path:"pages/mine/setting/feedback",style:{navigationBarTitleText:"意见反馈",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/search",style:{navigationBarTitleText:"搜索",navigationStyle:"custom"}},{path:"pages/index/hashOrder",style:{navigationBarTitleText:"哈希订单",navigationBarBackgroundColor:"#fff"}}],subPackages:[{root:"TUIKit",pages:[{path:"components/TUIConversation/index",style:{navigationBarTitleText:"消息"}},{path:"components/TUIChat/index",style:{navigationBarTitleText:"消息"}},{path:"components/TUIChat/video-play",style:{navigationBarTitleText:"消息"}},{path:"components/TUIChat/web-view",style:{navigationBarTitleText:"消息"}},{path:"components/TUIContact/index",style:{navigationBarTitleText:"消息"}},{path:"components/TUIGroup/index",style:{navigationBarTitleText:"消息"}},{path:"components/TUISearch/index",style:{navigationBarTitleText:"聊天记录"}}]}],tabBar:{list:[{text:"视频",pagePath:"pages/index/index"},{text:"商城",pagePath:"pages/shop/shop"},{text:"消息",pagePath:"pages/news/news"},{text:"个人中心",pagePath:"pages/mine/mine"},{text:"我的",pagePath:"pages/mine/homepage"}]},globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"九亿",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8","app-plus":{bounce:"none"}},condition:{current:0,list:[{name:"test",path:"pages/shop/shop"}]},uniIdRouter:{}};function Ua(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var Ga=Ua((function(e,t){var n;e.exports=(n=n||function(e){var t=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),n={},a=n.lib={},o=a.Base={extend:function(e){var n=t(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=a.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||r).stringify(this)},concat:function(e){var t=this.words,n=e.words,a=this.sigBytes,o=e.sigBytes;if(this.clamp(),a%4)for(var i=0;i<o;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[a+i>>>2]|=s<<24-(a+i)%4*8}else for(i=0;i<o;i+=4)t[a+i>>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,a=[],o=function(t){var n=987654321,a=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&a)<<16)+(t=18e3*(65535&t)+(t>>16)&a)&a;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},s=0;s<t;s+=4){var r=o(4294967296*(n||e.random()));n=987654071*r(),a.push(4294967296*r()|0)}return new i.init(a,t)}}),s=n.enc={},r=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;a.push((i>>>4).toString(16)),a.push((15&i).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a+=2)n[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new i.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new i.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,a=n.words,o=n.sigBytes,s=this.blockSize,r=o/(4*s),c=(r=t?e.ceil(r):e.max((0|r)-this._minBufferSize,0))*s,l=e.min(4*c,o);if(c){for(var u=0;u<c;u+=s)this._doProcessBlock(a,u);var d=a.splice(0,c);n.sigBytes-=l}return new i.init(d,l)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=u.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=n.algo={};return n}(Math),n)})),Fa=Ga,Ya=(Ua((function(e,t){var n;e.exports=(n=Fa,function(e){var t=n,a=t.lib,o=a.WordArray,i=a.Hasher,s=t.algo,r=[];!function(){for(var t=0;t<64;t++)r[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=s.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,o=e[a];e[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],g=e[t+4],f=e[t+5],v=e[t+6],_=e[t+7],y=e[t+8],E=e[t+9],C=e[t+10],k=e[t+11],I=e[t+12],S=e[t+13],T=e[t+14],M=e[t+15],N=i[0],w=i[1],D=i[2],b=i[3];N=l(N,w,D,b,s,7,r[0]),b=l(b,N,w,D,c,12,r[1]),D=l(D,b,N,w,p,17,r[2]),w=l(w,D,b,N,h,22,r[3]),N=l(N,w,D,b,g,7,r[4]),b=l(b,N,w,D,f,12,r[5]),D=l(D,b,N,w,v,17,r[6]),w=l(w,D,b,N,_,22,r[7]),N=l(N,w,D,b,y,7,r[8]),b=l(b,N,w,D,E,12,r[9]),D=l(D,b,N,w,C,17,r[10]),w=l(w,D,b,N,k,22,r[11]),N=l(N,w,D,b,I,7,r[12]),b=l(b,N,w,D,S,12,r[13]),D=l(D,b,N,w,T,17,r[14]),N=u(N,w=l(w,D,b,N,M,22,r[15]),D,b,c,5,r[16]),b=u(b,N,w,D,v,9,r[17]),D=u(D,b,N,w,k,14,r[18]),w=u(w,D,b,N,s,20,r[19]),N=u(N,w,D,b,f,5,r[20]),b=u(b,N,w,D,C,9,r[21]),D=u(D,b,N,w,M,14,r[22]),w=u(w,D,b,N,g,20,r[23]),N=u(N,w,D,b,E,5,r[24]),b=u(b,N,w,D,T,9,r[25]),D=u(D,b,N,w,h,14,r[26]),w=u(w,D,b,N,y,20,r[27]),N=u(N,w,D,b,S,5,r[28]),b=u(b,N,w,D,p,9,r[29]),D=u(D,b,N,w,_,14,r[30]),N=d(N,w=u(w,D,b,N,I,20,r[31]),D,b,f,4,r[32]),b=d(b,N,w,D,y,11,r[33]),D=d(D,b,N,w,k,16,r[34]),w=d(w,D,b,N,T,23,r[35]),N=d(N,w,D,b,c,4,r[36]),b=d(b,N,w,D,g,11,r[37]),D=d(D,b,N,w,_,16,r[38]),w=d(w,D,b,N,C,23,r[39]),N=d(N,w,D,b,S,4,r[40]),b=d(b,N,w,D,s,11,r[41]),D=d(D,b,N,w,h,16,r[42]),w=d(w,D,b,N,v,23,r[43]),N=d(N,w,D,b,E,4,r[44]),b=d(b,N,w,D,I,11,r[45]),D=d(D,b,N,w,M,16,r[46]),N=m(N,w=d(w,D,b,N,p,23,r[47]),D,b,s,6,r[48]),b=m(b,N,w,D,_,10,r[49]),D=m(D,b,N,w,T,15,r[50]),w=m(w,D,b,N,f,21,r[51]),N=m(N,w,D,b,I,6,r[52]),b=m(b,N,w,D,h,10,r[53]),D=m(D,b,N,w,C,15,r[54]),w=m(w,D,b,N,c,21,r[55]),N=m(N,w,D,b,y,6,r[56]),b=m(b,N,w,D,M,10,r[57]),D=m(D,b,N,w,v,15,r[58]),w=m(w,D,b,N,S,21,r[59]),N=m(N,w,D,b,g,6,r[60]),b=m(b,N,w,D,k,10,r[61]),D=m(D,b,N,w,p,15,r[62]),w=m(w,D,b,N,E,21,r[63]),i[0]=i[0]+N|0,i[1]=i[1]+w|0,i[2]=i[2]+D|0,i[3]=i[3]+b|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(a/4294967296),s=a;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var r=this._hash,c=r.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return r},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,a,o,i,s){var r=e+(t&n|~t&a)+o+s;return(r<<i|r>>>32-i)+t}function u(e,t,n,a,o,i,s){var r=e+(t&a|n&~a)+o+s;return(r<<i|r>>>32-i)+t}function d(e,t,n,a,o,i,s){var r=e+(t^n^a)+o+s;return(r<<i|r>>>32-i)+t}function m(e,t,n,a,o,i,s){var r=e+(n^(t|~a))+o+s;return(r<<i|r>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),n.MD5)})),Ua((function(e,t){var n,a,o;e.exports=(a=(n=Fa).lib.Base,o=n.enc.Utf8,void(n.algo.HMAC=a.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,a=4*n;t.sigBytes>a&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),r=i.words,c=s.words,l=0;l<n;l++)r[l]^=1549556828,c[l]^=909522486;i.sigBytes=s.sigBytes=a,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),Ua((function(e,t){e.exports=Fa.HmacMD5}))),Ha=Ua((function(e,t){e.exports=Fa.enc.Utf8})),Za=Ua((function(e,t){var n,a,o;e.exports=(o=(a=n=Fa).lib.WordArray,a.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,a=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,r=0;r<4&&i+.75*r<n;r++)o.push(a.charAt(s>>>6*(3-r)&63));var c=a.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var i=0;i<n.length;i++)a[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var r=e.indexOf(s);-1!==r&&(t=r)}return function(e,t,n){for(var a=[],i=0,s=0;s<t;s++)if(s%4){var r=n[e.charCodeAt(s-1)]<<s%4*2,c=n[e.charCodeAt(s)]>>>6-s%4*2;a[i>>>2]|=(r|c)<<24-i%4*8,i++}return o.create(a,i)}(e,t,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const qa="FUNCTION",ja="pending",Ja="rejected";function Xa(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ka(e){return"object"===Xa(e)}function za(e){return"function"==typeof e}function Wa(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const Qa="REJECTED",$a="NOT_PENDING";let eo=class{constructor({createPromise:e,retryRule:t=Qa}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Qa:return this.status===Ja;case $a:return this.status!==ja}}exec(){return this.needRetry?(this.status=ja,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=Ja,Promise.reject(e)))),this.promise):this.promise}};function to(e){return e&&"string"==typeof e?JSON.parse(e):e}const no=to([]),ao="app";to("");const oo=to("[]")||[];let io="";try{io="__UNI__08B31BC"}catch(zo){}let so,ro={};function co(e,t={}){var n,a;return n=ro,a=e,Object.prototype.hasOwnProperty.call(n,a)||(ro[e]=t),ro[e]}ro=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};const lo=["invoke","success","fail","complete"],uo=co("_globalUniCloudInterceptor");function mo(e,t){uo[e]||(uo[e]={}),Ka(t)&&Object.keys(t).forEach((n=>{lo.indexOf(n)>-1&&function(e,t,n){let a=uo[e][t];a||(a=uo[e][t]=[]),-1===a.indexOf(n)&&za(n)&&a.push(n)}(e,n,t[n])}))}function po(e,t){uo[e]||(uo[e]={}),Ka(t)?Object.keys(t).forEach((n=>{lo.indexOf(n)>-1&&function(e,t,n){const a=uo[e][t];if(!a)return;const o=a.indexOf(n);o>-1&&a.splice(o,1)}(e,n,t[n])})):delete uo[e]}function ho(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function go(e,t){return uo[e]&&uo[e][t]||[]}function fo(e){mo("callObject",e)}const vo=co("_globalUniCloudListener"),_o="response",yo="needLogin",Eo="refreshToken",Co="clientdb",ko="cloudfunction",Io="cloudobject";function So(e){return vo[e]||(vo[e]=[]),vo[e]}function To(e,t){const n=So(e);n.includes(t)||n.push(t)}function Mo(e,t){const n=So(e),a=n.indexOf(t);-1!==a&&n.splice(a,1)}function No(e,t){const n=So(e);for(let a=0;a<n.length;a++)(0,n[a])(t)}let wo,Do=!1;function bo(){return wo||(wo=new Promise((e=>{Do&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(Do=!0,e())}Do||setTimeout((()=>{t()}),30)}()})),wo)}function Lo(e){const t={};for(const n in e){const a=e[n];za(a)&&(t[n]=Wa(a))}return t}let Po=class extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}};var Ao={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync(),connectSocket:e=>uni.connectSocket(e)};function Ro(e){return e&&Ro(e.__v_raw)||e}function Oo(){return{token:Ao.getStorageSync("uni_id_token")||Ao.getStorageSync("uniIdToken"),tokenExpired:Ao.getStorageSync("uni_id_token_expired")}}function Vo({token:e,tokenExpired:t}={}){e&&Ao.setStorageSync("uni_id_token",e),t&&Ao.setStorageSync("uni_id_token_expired",t)}let Bo,xo;function Uo(){return Bo||(Bo=uni.getSystemInfoSync()),Bo}function Go(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:a}=uni.getLaunchOptionsSync();e=a,t=n}}catch(n){}return{channel:e,scene:t}}let Fo={};function Yo(){const e=uni.getLocale&&uni.getLocale()||"en";if(xo)return{...Fo,...xo,locale:e,LOCALE:e};const t=Uo(),{deviceId:n,osName:a,uniPlatform:o,appId:i}=t,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(const r in t)Object.hasOwnProperty.call(t,r)&&-1===s.indexOf(r)&&delete t[r];return xo={PLATFORM:o,OS:a,APPID:i,DEVICEID:n,...Go(),...t},{...Fo,...xo,locale:e,LOCALE:e}}var Ho=function(e,t){let n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),Ya(n,t).toString()},Zo=function(e,t){return new Promise(((n,a)=>{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const n=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",o=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return a(new Po({code:n,message:o,requestId:t}))}const o=e.data;if(o.error)return a(new Po({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))},qo=function(e){return Za.stringify(Ha.parse(e))},jo=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Ao,this._getAccessTokenPromiseHub=new eo({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Po({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:$a})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return Zo(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Ho(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),a={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,a["x-basement-token"]=this.accessToken),a["x-serverless-sign"]=Ho(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:a}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request({...this.setupRequest(t),timeout:e.timeout})}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:a,fileType:o,onUploadProgress:i}){return new Promise(((s,r)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:a,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?s(e):r(new Po({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Po({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:a=!1,onUploadProgress:o,config:i}){if("string"!==Xa(t))throw new Po({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Po({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Po({code:"INVALID_PARAM",message:"cloudPath不合法"});const s=i&&i.envType||this.config.envType;if(a&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new Po({code:"INVALID_PARAM",message:"使用cloudPath作为路径时cloudPath不可包含“\\”"});const r=(await this.getOSSUploadOptionsFromPath({env:s,filename:a?t.split("/").pop():t,fileId:a?t:void 0})).result,c="https://"+r.cdnDomain+"/"+r.ossPath,{securityToken:l,accessKeyId:u,signature:d,host:m,ossPath:p,id:h,policy:g,ossCallbackUrl:f}=r,v={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:d,host:m,id:h,key:p,policy:g,success_action_status:200};if(l&&(v["x-oss-security-token"]=l),f){const e=JSON.stringify({callbackUrl:f,callbackBody:JSON.stringify({fileId:h,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});v.callback=qo(e)}const _={url:"https://"+r.host,formData:v,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},_,{onUploadProgress:o})),f)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:h})).success)return{success:!0,filePath:e,fileID:c};throw new Po({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new Po({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Po({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},Jo={init(e){const t=new jo(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const Xo="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var Ko,zo;(zo=Ko||(Ko={})).local="local",zo.none="none",zo.session="session";var Wo=function(){},Qo=Ua((function(e,t){var n;e.exports=(n=Fa,function(e){var t=n,a=t.lib,o=a.WordArray,i=a.Hasher,s=t.algo,r=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),a=2;a<=n;a++)if(!(t%a))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var a=2,o=0;o<64;)t(a)&&(o<8&&(r[o]=n(e.pow(a,.5))),c[o]=n(e.pow(a,1/3)),o++),a++}();var l=[],u=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(r.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],o=n[1],i=n[2],s=n[3],r=n[4],u=n[5],d=n[6],m=n[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var h=l[p-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,f=l[p-2],v=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;l[p]=g+l[p-7]+v+l[p-16]}var _=a&o^a&i^o&i,y=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),E=m+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&u^~r&d)+c[p]+l[p];m=d,d=u,u=r,r=s+E|0,s=i,i=o,o=a,a=E+(y+_)|0}n[0]=n[0]+a|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+r|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+m|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(a/4294967296),n[15+(o+64>>>9<<4)]=a,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(u),t.HmacSHA256=i._createHmacHelper(u)}(Math),n.SHA256)})),$o=Qo,ei=Ua((function(e,t){e.exports=Fa.HmacSHA256}));const ti=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Po({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,a)=>e?n(e):t(a)}));return e.promise=t,e};function ni(e){return void 0===e}function ai(e){return"[object Null]"===Object.prototype.toString.call(e)}function oi(e=""){return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题.*)/,"$1")}var ii;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(ii||(ii={}));const si={adapter:null,runtime:void 0},ri=["anonymousUuidKey"];let ci=class extends Wo{constructor(){super(),si.adapter.root.tcbObject||(si.adapter.root.tcbObject={})}setItem(e,t){si.adapter.root.tcbObject[e]=t}getItem(e){return si.adapter.root.tcbObject[e]}removeItem(e){delete si.adapter.root.tcbObject[e]}clear(){delete si.adapter.root.tcbObject}};function li(e,t){switch(e){case"local":return t.localStorage||new ci;case"none":return new ci;default:return t.sessionStorage||new ci}}let ui=class{constructor(e){if(!this._storage){this._persistence=si.adapter.primaryStorage||e.persistence,this._storage=li(this._persistence,si.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,a=`refresh_token_${e.env}`,o=`anonymous_uuid_${e.env}`,i=`login_type_${e.env}`,s=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:a,anonymousUuidKey:o,loginTypeKey:i,userInfoKey:s}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=li(e,si.adapter);for(const a in this.keys){const e=this.keys[a];if(t&&ri.includes(a))continue;const o=this._storage.getItem(e);ni(o)||ai(o)||(n.setItem(e,o),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const a={version:n||"localCachev1",content:t},o=JSON.stringify(a);try{this._storage.setItem(e,o)}catch(i){throw i}}getStore(e,t){try{if(!this._storage)return}catch(a){return""}t=t||"localCachev1";const n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}};const di={},mi={};function pi(e){return di[e]}let hi=class{constructor(e,t){this.data=t||null,this.name=e}},gi=class extends hi{constructor(e,t){super("error",{error:e,data:t}),this.error=e}};const fi=new class{constructor(){this._listeners={}}on(e,t){return n=e,a=t,(o=this._listeners)[n]=o[n]||[],o[n].push(a),this;var n,a,o}off(e,t){return function(e,t,n){if(n&&n[e]){const a=n[e].indexOf(t);-1!==a&&n[e].splice(a,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof gi)return console.error(e.error),this;const n="string"==typeof e?new hi(e,t||{}):e,a=n.name;if(this._listens(a)){n.target=this;const e=this._listeners[a]?[...this._listeners[a]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function vi(e,t){fi.on(e,t)}function _i(e,t={}){fi.fire(e,t)}function yi(e,t){fi.off(e,t)}const Ei="loginStateChanged",Ci="loginStateExpire",ki="loginTypeChanged",Ii="anonymousConverted",Si="refreshAccessToken";var Ti;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Ti||(Ti={}));const Mi=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Ni={"X-SDK-Version":"1.3.5"};function wi(e,t,n){const a=e[t];e[t]=function(t){const o={},i={};n.forEach((n=>{const{data:a,headers:s}=n.call(e,t);Object.assign(o,a),Object.assign(i,s)}));const s=t.data;return s&&(()=>{var e;if(e=s,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...s,...o};else for(const t in o)s.append(t,o[t])})(),t.headers={...t.headers||{},...i},a.call(e,t)}}function Di(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Ni,"x-seqid":e}}}let bi=class{constructor(e={}){var t;this.config=e,this._reqClass=new si.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成已中断`,restrictedMethods:["post"]}),this._cache=pi(this.config.env),this._localCache=(t=this.config.env,mi[t]),wi(this._reqClass,"post",[Di]),wi(this._reqClass,"upload",[Di]),wi(this._reqClass,"download",[Di])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:a,anonymousUuidKey:o}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let i=this._cache.getStore(n);if(!i)throw new Po({message:"未登录CloudBase"});const s={refresh_token:i},r=await this.request("auth.fetchAccessTokenWithRefreshToken",s);if(r.data.code){const{code:e}=r.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(a)===Ti.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(o),t=this._cache.getStore(n),a=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(a.refresh_token),this._refreshAccessToken()}_i(Ci),this._cache.removeStore(n)}throw new Po({code:r.data.code,message:`刷新access token失败${r.data.code}`})}if(r.data.access_token)return _i(Si),this._cache.setStore(e,r.data.access_token),this._cache.setStore(t,r.data.access_token_expire+Date.now()),{accessToken:r.data.access_token,accessTokenExpire:r.data.access_token_expire};r.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,r.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new Po({message:"refresh token不存在登录状态异常"});let a=this._cache.getStore(e),o=this._cache.getStore(t),i=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(a,o))&&(i=!1),(!a||!o||o<Date.now())&&i?this.refreshAccessToken():{accessToken:a,accessTokenExpire:o}}async request(e,t,n){const a=`x-tcb-trace_${this.config.env}`;let o="application/x-www-form-urlencoded";const i={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};if(-1===Mi.indexOf(e)){const{refreshTokenKey:e}=this._cache.keys;this._cache.getStore(e)&&(i.access_token=(await this.getAccessToken()).accessToken)}let s;if("storage.uploadFile"===e){s=new FormData;for(let e in s)s.hasOwnProperty(e)&&void 0!==s[e]&&s.append(e,i[e]);o="multipart/form-data"}else{o="application/json",s={};for(let e in i)void 0!==i[e]&&(s[e]=i[e])}let r={headers:{"content-type":o}};n&&n.timeout&&(r.timeout=n.timeout),n&&n.onUploadProgress&&(r.onUploadProgress=n.onUploadProgress);const c=this._localCache.getStore(a);c&&(r.headers["X-TCB-Trace"]=c);const{parse:l,inQuery:u,search:d}=t;let m={env:this.config.env};l&&(m.parse=!0),u&&(m={...u,...m});let p=function(e,t,n={}){const a=/\?/.test(t);let o="";for(let i in n)""===o?!a&&(t+="?"):o+="&",o+=`${i}=${encodeURIComponent(n[i])}`;return/^http(s)?\:\/\//.test(t+=o)?t:`${e}${t}`}(Xo,"//tcb-api.tencentcloudapi.com/web",m);d&&(p+=d);const h=await this.post({url:p,data:s,...r}),g=h.header&&h.header["x-tcb-trace"];if(g&&this._localCache.setStore(a,g),200!==Number(h.status)&&200!==Number(h.statusCode)||!h.data)throw new Po({code:"NETWORK_ERROR",message:"network request error"});return h}async send(e,t={},n={}){const a=await this.request(e,t,{...n,onUploadProgress:t.onUploadProgress});if("ACCESS_TOKEN_EXPIRED"===a.data.code&&-1===Mi.indexOf(e)){await this.refreshAccessToken();const a=await this.request(e,t,{...n,onUploadProgress:t.onUploadProgress});if(a.data.code)throw new Po({code:a.data.code,message:oi(a.data.message)});return a.data}if(a.data.code)throw new Po({code:a.data.code,message:oi(a.data.message)});return a.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:a}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(a,e)}};const Li={};function Pi(e){return Li[e]}let Ai=class{constructor(e){this.config=e,this._cache=pi(e.env),this._request=Pi(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:a}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(a,e)}setAccessToken(e,t){const{accessTokenKey:n,accessTokenExpireKey:a}=this._cache.keys;this._cache.setStore(n,e),this._cache.setStore(a,t)}async refreshUserInfo(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}},Ri=class{constructor(e){if(!e)throw new Po({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=pi(this._envId),this._request=Pi(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new Po({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if("string"!=typeof e)throw new Po({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}async getLinkedUidList(){const{data:e}=await this._request.send("auth.getLinkedUidList",{});let t=!1;const{users:n}=e;return n.forEach((e=>{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:a,province:o,country:i,city:s}=e,{data:r}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:a,province:o,country:i,city:s});this.setLocalUserInfo(r)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}},Oi=class{constructor(e){if(!e)throw new Po({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=pi(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:a}=this._cache.keys,o=this._cache.getStore(t),i=this._cache.getStore(n),s=this._cache.getStore(a);this.credential={refreshToken:o,accessToken:i,accessTokenExpire:s},this.user=new Ri(e)}get isAnonymousAuth(){return this.loginType===Ti.ANONYMOUS}get isCustomAuth(){return this.loginType===Ti.CUSTOM}get isWeixinAuth(){return this.loginType===Ti.WECHAT||this.loginType===Ti.WECHAT_OPEN||this.loginType===Ti.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},Vi=class extends Ai{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,a=this._cache.getStore(t)||void 0,o=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:a});if(o.uuid&&o.refresh_token){this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),_i(Ei),_i(ki,{env:this.config.env,loginType:Ti.ANONYMOUS,persistence:"local"});const e=new Oi(this.config.env);return await e.user.refresh(),e}throw new Po({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,a=this._cache.getStore(t),o=this._cache.getStore(n),i=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:o,ticket:e});if(i.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(i.refresh_token),await this._request.refreshAccessToken(),_i(Ii,{env:this.config.env}),_i(ki,{loginType:Ti.CUSTOM,persistence:"local"}),{credential:{refreshToken:i.refresh_token}};throw new Po({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Ti.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}},Bi=class extends Ai{async signIn(e){if("string"!=typeof e)throw new Po({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),_i(Ei),_i(ki,{env:this.config.env,loginType:Ti.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Oi(this.config.env);throw new Po({message:"自定义登录失败"})}},xi=class extends Ai{async signIn(e,t){if("string"!=typeof e)throw new Po({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,a=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token:i,access_token_expire:s}=a;if(o)return this.setRefreshToken(o),i&&s?this.setAccessToken(i,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),_i(Ei),_i(ki,{env:this.config.env,loginType:Ti.EMAIL,persistence:this.config.persistence}),new Oi(this.config.env);throw a.code?new Po({code:a.code,message:`邮箱登录失败: ${a.message}`}):new Po({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}},Ui=class extends Ai{async signIn(e,t){if("string"!=typeof e)throw new Po({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,a=await this._request.send("auth.signIn",{loginType:Ti.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token_expire:i,access_token:s}=a;if(o)return this.setRefreshToken(o),s&&i?this.setAccessToken(s,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),_i(Ei),_i(ki,{env:this.config.env,loginType:Ti.USERNAME,persistence:this.config.persistence}),new Oi(this.config.env);throw a.code?new Po({code:a.code,message:`用户名密码登录失败: ${a.message}`}):new Po({message:"用户名密码登录失败"})}},Gi=class{constructor(e){this.config=e,this._cache=pi(e.env),this._request=Pi(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),vi(ki,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Vi(this.config)}customAuthProvider(){return new Bi(this.config)}emailAuthProvider(){return new xi(this.config)}usernameAuthProvider(){return new Ui(this.config)}async signInAnonymously(){return new Vi(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new xi(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new Ui(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Vi(this.config)),vi(Ii,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Ti.ANONYMOUS)throw new Po({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,a=this._cache.getStore(e);if(!a)return;const o=await this._request.send("auth.logout",{refresh_token:a});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),_i(Ei),_i(ki,{env:this.config.env,loginType:Ti.NULL,persistence:this.config.persistence}),o}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){vi(Ei,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){vi(Ci,e.bind(this))}onAccessTokenRefreshed(e){vi(Si,e.bind(this))}onAnonymousConverted(e){vi(Ii,e.bind(this))}onLoginTypeChanged(e){vi(ki,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new Oi(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new Po({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new Bi(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:a}=e.data;a===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}};const Fi=function(e,t){t=t||ti();const n=Pi(this.config.env),{cloudPath:a,filePath:o,onUploadProgress:i,fileType:s="image"}=e;return n.send("storage.getUploadMetadata",{path:a}).then((e=>{const{data:{url:r,authorization:c,token:l,fileId:u,cosFileId:d},requestId:m}=e,p={key:a,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:r,data:p,file:o,name:a,fileType:s,onUploadProgress:i}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:m}):t(new Po({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Yi=function(e,t){t=t||ti();const n=Pi(this.config.env),{cloudPath:a}=e;return n.send("storage.getUploadMetadata",{path:a}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},Hi=function({fileList:e},t){if(t=t||ti(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let a of e)if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return Pi(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},Zi=function({fileList:e},t){t=t||ti(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let o of e)"object"==typeof o?(o.hasOwnProperty("fileID")&&o.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:o.fileID,max_age:o.maxAge})):"string"==typeof o?n.push({fileid:o}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const a={file_list:n};return Pi(this.config.env).send("storage.batchGetDownloadUrl",a).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},qi=async function({fileID:e},t){const n=(await Zi.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const a=Pi(this.config.env);let o=n.download_url;if(o=encodeURI(o),!t)return a.download({url:o});t(await a.download({url:o}))},ji=function({name:e,data:t,query:n,parse:a,search:o,timeout:i},s){const r=s||ti();let c;try{c=t?JSON.stringify(t):""}catch(u){return Promise.reject(u)}if(!e)return Promise.reject(new Po({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:n,parse:a,search:o,function_name:e,request_data:c};return Pi(this.config.env).send("functions.invokeFunction",l,{timeout:i}).then((e=>{if(e.code)r(null,e);else{let n=e.data.response_data;if(a)r(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),r(null,{result:n,requestId:e.requestId})}catch(t){r(new Po({message:"response data must be json"}))}}return r.promise})).catch((e=>{r(e)})),r.promise},Ji={timeout:15e3,persistence:"session"},Xi={};var Ki=new class e{constructor(e){this.config=e||this.config,this.authObj=void 0}init(t){switch(si.adapter||(this.requestClient=new si.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:`请求在${(t.timeout||5e3)/1e3}s内未完成已中断`})),this.config={...Ji,...t},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||si.adapter.primaryStorage||Ji.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;di[t]=new ui(e),mi[t]=new ui({...e,persistence:"local"})}(this.config),n=this.config,Li[n.env]=new bi(n),this.authObj=new Gi(this.config),this.authObj}on(e,t){return vi.apply(this,[e,t])}off(e,t){return yi.apply(this,[e,t])}callFunction(e,t){return ji.apply(this,[e,t])}deleteFile(e,t){return Hi.apply(this,[e,t])}getTempFileURL(e,t){return Zi.apply(this,[e,t])}downloadFile(e,t){return qi.apply(this,[e,t])}uploadFile(e,t){return Fi.apply(this,[e,t])}getUploadMetadata(e,t){return Yi.apply(this,[e,t])}registerExtension(e){Xi[e.name]=e}async invokeExtension(e,t){const n=Xi[e];if(!n)throw new Po({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const a of t){const{isMatch:e,genAdapter:t,runtime:n}=a;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(si.adapter=t),n&&(si.runtime=n)}};function zi(e,t,n){void 0===n&&(n={});var a=/\?/.test(t),o="";for(var i in n)""===o?!a&&(t+="?"):o+="&",o+=i+"="+encodeURIComponent(n[i]);return/^http(s)?:\/\//.test(t+=o)?t:""+e+t}let Wi=class{post(e){const{url:t,data:n,headers:a,timeout:o}=e;return new Promise(((e,i)=>{Ao.request({url:zi("https:",t),data:n,method:"POST",header:a,timeout:o,success(t){e(t)},fail(e){i(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:a,file:o,data:i,headers:s,fileType:r}=e,c=Ao.uploadFile({url:zi("https:",a),name:"file",formData:Object.assign({},i),filePath:o,fileType:r,header:s,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(n.statusCode=parseInt(i.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}};const Qi={setItem(e,t){Ao.setStorageSync(e,t)},getItem:e=>Ao.getStorageSync(e),removeItem(e){Ao.removeStorageSync(e)},clear(){Ao.clearStorageSync()}};var $i={genAdapter:function(){return{root:{},reqClass:Wi,localStorage:Qi,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Ki.useAdapters($i);const es=Ki,ts=es.init;es.init=function(e){e.env=e.spaceId;const t=ts.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:a,complete:o}=Lo(e);if(!(t||a||o))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),o&&o(e)}),(e=>{a&&a(e),o&&o(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var ns=es;async function as(e,t){const n=`http://${e}:${t}/system/ping`;try{const e=await(a={url:n,timeout:500},new Promise(((e,t)=>{Ao.request({...a,success(t){e(t)},fail(e){t(e)}})})));return!(!e.data||0!==e.data.code)}catch(o){return!1}var a}const os={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"};var is=class{constructor(e){if(["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),!e.endpoint)throw new Error("集群空间未配置ApiEndpoint配置后需要重新关联服务空间后生效");this.config=Object.assign({},e),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=Ao}async request(e,t=!0){return e=this.setupRequest(e),Promise.resolve().then((()=>Zo(e,this.adapter.request)))}requestLocal(e){return new Promise(((t,n)=>{this.adapter.request(Object.assign(e,{complete(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){const t=e.data&&e.data.code||"SYS_ERR",a=e.data&&e.data.message||"request:fail";return n(new Po({code:t,message:a}))}t({success:!0,result:e.data})}}))}))}setupRequest(e){const t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=Ho(t,this.config.clientSecret);const a=Yo();n["x-client-info"]=encodeURIComponent(JSON.stringify(a));const{token:o}=Oo();return n["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}async setupLocalRequest(e){const t=Yo(),{token:n}=Oo(),a=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:t,token:n}),{address:o,servePort:i}=this.__dev__&&this.__dev__.debugInfo||{},{address:s}=await async function(e,t){let n;for(let a=0;a<e.length;a++){const o=e[a];if(await as(o,t)){n=o;break}}return{address:n,port:t}}(o,i);return{url:`http://${s}:${i}/${os[e.method]}`,method:"POST",data:a,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))}}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}getUploadFileOptions(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}reportUploadFile(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:a}){if(!t)throw new Po({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let o;return this.getUploadFileOptions({cloudPath:t}).then((t=>{const{url:i,formData:s,name:r}=t.result;return o=t.result.fileUrl,new Promise(((t,o)=>{const c=this.adapter.uploadFile({url:i,formData:s,name:r,filePath:e,fileType:n,success(e){e&&e.statusCode<400?t(e):o(new Po({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){o(new Po({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof a&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{a({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((()=>this.reportUploadFile({cloudPath:t}))).then((t=>new Promise(((n,a)=>{t.success?n({success:!0,filePath:e,fileID:o}):a(new Po({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(t).then((e=>{if(e.success)return e.result;throw new Po({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new Po({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(n).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Po({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},ss={init(e){const t=new is(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},rs=Ua((function(e,t){e.exports=Fa.enc.Hex}));function cs(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function ls(e="",t={}){const{data:n,functionName:a,method:o,headers:i,signHeaderKeys:s=[],config:r}=t,c=Date.now(),l=cs(),u=Object.assign({},i,{"x-from-app-id":r.spaceAppId,"x-from-env-id":r.spaceId,"x-to-env-id":r.spaceId,"x-from-instance-id":c,"x-from-function-name":a,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":l,"x-alipay-callid":l,"x-trace-id":l}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),[m="",p=""]=e.split("?")||[],h=function(e){const t=e.signedHeaders.join(";"),n=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),a=$o(e.body).toString(rs),o=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${n}\n${t}\n${a}\n`,i=$o(o).toString(rs),s=`HMAC-SHA256\n${e.timestamp}\n${i}\n`,r=ei(s,e.secretKey).toString(rs);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${r}`}({path:m,query:p,method:o,headers:u,timestamp:c,body:JSON.stringify(n),secretId:r.accessKey,secretKey:r.secretKey,signedHeaders:d.sort()});return{url:`${r.endpoint}${e}`,headers:Object.assign({},u,{Authorization:h})}}function us({url:e,data:t,method:n="POST",headers:a={},timeout:o}){return new Promise(((i,s)=>{Ao.request({url:e,method:n,data:"object"==typeof t?JSON.stringify(t):t,header:a,dataType:"json",timeout:o,complete:(e={})=>{const t=a["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:n,errMsg:a,trace_id:o}=e.data||{};return s(new Po({code:"SYS_ERR",message:n||a||"request:fail",requestId:o||t}))}i({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function ds(e,t){const{path:n,data:a,method:o="GET"}=e,{url:i,headers:s}=ls(n,{functionName:"",data:a,method:o,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return us({url:i,data:a,method:o,headers:s}).then((e=>{const t=e.data||{};if(!t.success)throw new Po({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new Po({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function ms(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new Po({code:"INVALID_PARAM",message:"fileID不合法"});const a=t.substring(0,n),o=t.substring(n+1);return a!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),o}function ps(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}let hs=class{constructor(e){this.config=e}signedURL(e,t={}){const n=`/ws/function/${e}`,a=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),o=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:cs(),timestamp:""+Date.now()}),i=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return o[e]?"".concat(e,"=").concat(o[e]):null})).filter(Boolean).join("&"),`host:${a}`].join("\n"),s=["HMAC-SHA256",$o(i).toString(rs)].join("\n"),r=ei(s,this.config.secretKey).toString(rs),c=Object.keys(o).map((e=>`${e}=${encodeURIComponent(o[e])}`)).join("&");return`${this.config.wsEndpoint}${n}?${c}&signature=${r}`}};var gs=class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:e.wsEndpoint||`wss://${e.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new hs(this.config)}callFunction(e){return function(e,t){const{name:n,data:a,async:o=!1,timeout:i}=e,s="POST",r={"x-to-function-name":n};o&&(r["x-function-invoke-type"]="async");const{url:c,headers:l}=ls("/functions/invokeFunction",{functionName:n,data:a,method:s,headers:r,signHeaderKeys:["x-to-function-name"],config:t});return us({url:c,data:a,method:s,headers:l,timeout:i}).then((e=>{let t=0;if(o){const n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new Po({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((e=>{throw new Po({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:a,onUploadProgress:o}){return new Promise(((i,s)=>{const r=Ao.uploadFile({url:e,filePath:t,fileType:n,formData:a,name:"file",success(e){e&&e.statusCode<400?i(e):s(new Po({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){s(new Po({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&r&&"function"==typeof r.onProgressUpdate&&r.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:a}){if("string"!==Xa(t))throw new Po({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Po({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Po({code:"INVALID_PARAM",message:"cloudPath不合法"});const o=await ds({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:i,upload_url:s,form_data:r}=o,c=r&&r.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:s,filePath:e,fileType:n,formData:c,onUploadProgress:a}).then((()=>({fileID:i})))}async getTempFileURL({fileList:e}){return new Promise(((t,n)=>{(!e||e.length<0)&&t({code:"INVALID_PARAM",message:"fileList不能为空数组"}),e.length>50&&t({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});const a=[];for(const i of e){let e;"string"!==Xa(i)&&t({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{e=ms.call(this,i)}catch(o){console.warn(o.errCode,o.errMsg),e=i}a.push({file_id:e,expire:600})}ds({path:"/?download_url",data:{file_list:a},method:"POST"},this.config).then((e=>{const{file_list:n=[]}=e;t({fileList:n.map((e=>({fileID:ps.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>n(e)))}))}async connectWebSocket(e){const{name:t,query:n}=e;return Ao.connectSocket({url:this._websocket.signedURL(t,n),complete:()=>{}})}},fs={init:e=>{e.provider="alipay";const t=new gs(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function vs({data:e}){let t;t=Yo();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=Oo();e&&(n.uniIdToken=e)}return n}const _s=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var ys=/[\\^$.*+?()[\]{}|]/g,Es=RegExp(ys.source);function Cs(e,t,n){return e.replace(new RegExp((a=t)&&Es.test(a)?a.replace(ys,"\\$&"):a,"g"),n);var a}const ks=2e4,Is={code:20101,message:"Invalid client"};function Ss(e){const{errSubject:t,subject:n,errCode:a,errMsg:o,code:i,message:s,cause:r}=e||{};return new Po({subject:t||n||"uni-secure-network",code:a||i||ks,message:o||s,cause:r})}let Ts;function Ms({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function Ns({name:e,data:t={}}={}){return"DCloud-clientDB"===e&&"encryption"===t.redirectTo&&"getAppClientKey"===t.action}function ws({functionName:e,result:t,logPvd:n}){}function Ds(e){const t=e.callFunction,n=function(n){const a=n.name;n.data=vs.call(e,{data:n.data});const o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],i=Ms(n),s=Ns(n),r=i||s;return t.call(this,n).then((e=>(e.errCode=0,!r&&ws.call(this,{functionName:a,result:e,logPvd:o}),Promise.resolve(e))),(e=>(!r&&ws.call(this,{functionName:a,result:e,logPvd:o}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let a=0;a<n.length;a++){const{rule:o,content:i,mode:s}=n[a],r=e.match(o);if(!r)continue;let c=i;for(let e=1;e<r.length;e++)c=Cs(c,`{$${e}}`,r[e]);for(const e in t)c=Cs(c,`{${e}}`,t[e]);return"replace"===s?c:e+c}return e}({message:`[${n.name}]: ${e.message}`,formatter:_s,extraInfo:{functionName:a}})),Promise.reject(e))))};e.callFunction=function(t){const{provider:a,spaceId:o}=e.config,i=t.name;let s,r;return t.data=t.data||{},s=n,s=s.bind(e),r=Ns(t)?n.call(e,t):Ms(t)?new Ts({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):function({provider:e,spaceId:t,functionName:n}={}){const{appId:a,uniPlatform:o,osName:i}=Uo();let s=o;"app"===o&&(s=i);const r=function({provider:e,spaceId:t}={}){const n=no;if(!n)return{};e=function(e){return"tencent"===e?"tcb":e}(e);const a=n.find((n=>n.provider===e&&n.spaceId===t));return a&&a.config}({provider:e,spaceId:t});if(!r||!r.accessControl||!r.accessControl.enable)return!1;const c=r.accessControl.function||{},l=Object.keys(c);if(0===l.length)return!0;const u=function(e,t){let n,a,o;for(let i=0;i<e.length;i++){const s=e[i];s!==t?"*"!==s?s.split(",").map((e=>e.trim())).indexOf(t)>-1&&(a=s):o=s:n=s}return n||a||o}(l,n);if(!u)return!1;if((c[u]||[]).find(((e={})=>e.appId===a&&(e.platform||"").toLowerCase()===s.toLowerCase())))return!0;throw console.error(`此应用[appId: ${a}, platform: ${s}]不在云端配置的允许访问的应用列表内参考https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Ss(Is)}({provider:a,spaceId:o,functionName:i})?new Ts({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):s(t),Object.defineProperty(r,"result",{get:()=>(console.warn("当前返回结果为Promise类型不可直接访问其result属性详情请参考https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),r.then((e=>("undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e)))}}Ts=class{constructor(){throw Ss({message:`Platform ${ao} is not enabled, please check whether secure network module is enabled in your manifest.json`})}};const bs=Symbol("CLIENT_DB_INTERNAL");function Ls(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=bs,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,a){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,a)}})}function Ps(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const a=e[t].indexOf(n);-1!==a&&e[t].splice(a,1)}}}const As=["db.Geo","db.command","command.aggregate"];function Rs(e,t){return As.indexOf(`${e}.${t}`)>-1}function Os(e){switch(Xa(e=Ro(e))){case"array":return e.map((e=>Os(e)));case"object":return e._internalType===bs||Object.keys(e).forEach((t=>{e[t]=Os(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Vs(e){return e&&e.content&&e.content.$method}class Bs{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:Os(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Vs(e),n=Vs(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Vs(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Vs(e),n=Vs(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return xs({$method:e,$param:Os(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),a=this.getCommand();return a.$db.push({$method:e,$param:Os(t)}),this._database._callCloudFunction({action:n,command:a})}}function xs(e,t,n){return Ls(new Bs(e,t,n),{get(e,t){let a="db";return e&&e.content&&(a=e.content.$method),Rs(a,t)?xs({$method:t},e,n):function(){return xs({$method:t,$param:Os(Array.from(arguments))},e,n)}}})}function Us({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function Gs(e,t={}){return Ls(new e(t),{get:(e,t)=>Rs("db",t)?xs({$method:t},null,e):function(){return xs({$method:t,$param:Os(Array.from(arguments))},null,e)}})}class Fs extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=co("_globalUniCloudDatabaseCallback")),t||(this.auth=Ps(this._authCallBacks)),this._isJQL=t,Object.assign(this,Ps(this._dbCallBacks)),this.env=Ls({},{get:(e,t)=>({$env:t})}),this.Geo=Ls({},{get:(e,t)=>Us({path:["Geo"],method:t})}),this.serverDate=Us({path:[],method:"serverDate"}),this.RegExp=Us({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:a}){function o(e,t){if(n&&a)for(let n=0;n<a.length;n++){const o=a[n];o.udb&&"function"==typeof o.udb.setResult&&(t?o.udb.setResult(t):o.udb.setResult(e.result.dataList[n]))}}const i=this,s=this._isJQL?"databaseForJQL":"database";function r(e){return i._callback("error",[e]),ho(go(s,"fail"),e).then((()=>ho(go(s,"complete"),e))).then((()=>(o(null,e),No(_o,{type:Co,content:e}),Promise.reject(e))))}const c=ho(go(s,"invoke")),l=this._uniClient;return c.then((()=>l.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:a,tokenExpired:c,systemInfo:l=[]}=e.result;if(l)for(let o=0;o<l.length;o++){const{level:e,message:t,detail:n}=l[o];let a="[System Info]"+t;n&&(a=`${a}\n详细信息${n}`),(console["warn"===e?"error":e]||console.log)(a)}if(t)return r(new Po({code:t,message:n,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,a&&c&&(Vo({token:a,tokenExpired:c}),this._callbackAuth("refreshToken",[{token:a,tokenExpired:c}]),this._callback("refreshToken",[{token:a,tokenExpired:c}]),No(Eo,{token:a,tokenExpired:c}));const u=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用请使用errCode替代"},{prop:"message",tips:"message不再推荐使用请使用errMsg替代"}];for(let o=0;o<u.length;o++){const{prop:t,tips:n}=u[o];if(t in e.result){const a=e.result[t];Object.defineProperty(e.result,t,{get:()=>(console.warn(n),a)})}}return d=e,ho(go(s,"success"),d).then((()=>ho(go(s,"complete"),d))).then((()=>{o(d,null);const e=i._parseResult(d);return No(_o,{type:Co,content:e}),Promise.resolve(e)}));var d}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化请在web控制台保存一次schema以开启clientDB"),r(new Po({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const Ys="token无效跳转登录页面",Hs="token过期跳转登录页面",Zs={TOKEN_INVALID_TOKEN_EXPIRED:Hs,TOKEN_INVALID_INVALID_CLIENTID:Ys,TOKEN_INVALID:Ys,TOKEN_INVALID_WRONG_TOKEN:Ys,TOKEN_INVALID_ANONYMOUS_USER:Ys},qs={"uni-id-token-expired":Hs,"uni-id-check-token-failed":Ys,"uni-id-token-not-exist":Ys,"uni-id-check-device-feature-failed":Ys};function js(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function Js(e=[],t=""){const n=[],a=[];return e.forEach((e=>{!0===e.needLogin?n.push(js(t,e.path)):!1===e.needLogin&&a.push(js(t,e.path))})),{needLoginPage:n,notNeedLoginPage:a}}function Xs(e){return e.split("?")[0].replace(/^\//,"")}function Ks(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=getCurrentPages();return e[e.length-1]}())}function zs(){return Xs(Ks())}function Ws(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,a=Xs(e);return n.some((e=>e.pagePath===a))}const Qs=!!xa.uniIdRouter,{loginPage:$s,routerNeedLogin:er,resToLogin:tr,needLoginPage:nr,notNeedLoginPage:ar,loginPageInTabBar:or}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:a={}}=xa){const{loginPage:o,needLogin:i=[],resToLogin:s=!0}=n,{needLoginPage:r,notNeedLoginPage:c}=Js(e),{needLoginPage:l,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:a,pages:o=[]}=e,{needLoginPage:i,notNeedLoginPage:s}=Js(o,a);t.push(...i),n.push(...s)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:o,routerNeedLogin:i,resToLogin:s,needLoginPage:[...r,...l],notNeedLoginPage:[...c,...u],loginPageInTabBar:Ws(o,a)}}();if(nr.indexOf($s)>-1)throw new Error(`Login page [${$s}] should not be "needLogin", please check your pages.json`);function ir(e){const t=zs();if("/"===e.charAt(0))return e;const[n,a]=e.split("?"),o=n.replace(/^\//,"").split("/"),i=t.split("/");i.pop();for(let s=0;s<o.length;s++){const e=o[s];".."===e?i.pop():"."!==e&&i.push(e)}return""===i[0]&&i.shift(),"/"+i.join("/")+(a?"?"+a:"")}function sr({redirect:e}){const t=Xs(e),n=Xs($s);return zs()!==n&&t!==n}function rr({api:e,redirect:t}={}){if(!t||!sr({redirect:t}))return;const n=(o=t,"/"!==(a=$s).charAt(0)&&(a="/"+a),o?a.indexOf("?")>-1?a+`&uniIdRedirectUrl=${encodeURIComponent(o)}`:a+`?uniIdRedirectUrl=${encodeURIComponent(o)}`:a);var a,o;or?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const i={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((()=>{i[e]({url:n})}),0)}function cr({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=Oo();let n;if(e){if(t<Date.now()){const e="uni-id-token-expired";n={errCode:e,errMsg:qs[e]}}}else{const e="uni-id-check-token-failed";n={errCode:e,errMsg:qs[e]}}return n}();if(function(e){const t=Xs(ir(e));return!(ar.indexOf(t)>-1)&&(nr.indexOf(t)>-1||er.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,So(yo).length>0)return setTimeout((()=>{No(yo,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function lr(){!function(){const e=Ks(),{abortLoginPageJump:t,autoToLoginPage:n}=cr({url:e});t||n&&rr({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const n=e[t];uni.addInterceptor(n,{invoke(e){const{abortLoginPageJump:t,autoToLoginPage:a}=cr({url:e.url});return t?e:a?(rr({api:n,redirect:ir(e.url)}),!1):e}})}}function ur(){this.onResponse((e=>{const{type:t,content:n}=e;let a=!1;switch(t){case"cloudobject":a=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in qs}(n);break;case"clientdb":a=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Zs}(n)}a&&function(e={}){const t=So(yo);bo().then((()=>{const n=Ks();if(n&&sr({redirect:n}))return t.length>0?No(yo,Object.assign({uniIdRedirectUrl:n},e)):void($s&&rr({api:"navigateTo",redirect:n}))}))}(n)}))}function dr(e){var t;(t=e).onResponse=function(e){To(_o,e)},t.offResponse=function(e){Mo(_o,e)},function(e){e.onNeedLogin=function(e){To(yo,e)},e.offNeedLogin=function(e){Mo(yo,e)},Qs&&(co("_globalUniCloudStatus").needLoginInit||(co("_globalUniCloudStatus").needLoginInit=!0,bo().then((()=>{lr.call(e)})),tr&&ur.call(e)))}(e),function(e){e.onRefreshToken=function(e){To(Eo,e)},e.offRefreshToken=function(e){Mo(Eo,e)}}(e)}let mr;const pr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",hr=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function gr(){const e=Oo().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((a=t[1],decodeURIComponent(mr(a).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}var a;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}mr="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!hr.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,a,o="",i=0;i<e.length;)t=pr.indexOf(e.charAt(i++))<<18|pr.indexOf(e.charAt(i++))<<12|(n=pr.indexOf(e.charAt(i++)))<<6|(a=pr.indexOf(e.charAt(i++))),o+=64===n?String.fromCharCode(t>>16&255):64===a?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var fr=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ua((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",a="chooseAndUploadFile:fail";function o(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function i(e,t,{onChooseFile:a,onUploadProgress:o}){return t.then((e=>{if(a){const t=a(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,a=5,o){(t=Object.assign({},t)).errMsg=n;const i=t.tempFiles,s=i.length;let r=0;return new Promise((n=>{for(;r<a;)c();function c(){const a=r++;if(a>=s)return void(!i.find((e=>!e.url&&!e.errMsg))&&n(t));const l=i[a];e.uploadFile({provider:l.provider,filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,cloudPathAsRealPath:l.cloudPathAsRealPath,onUploadProgress(e){e.index=a,e.tempFile=l,e.tempFilePath=l.path,o&&o(e)}}).then((e=>{l.url=e.fileID,a<s&&c()})).catch((e=>{l.errMsg=e.errMsg||e.message,a<s&&c()}))}}))}(e,t,5,o)))}t.initChooseAndUploadFile=function(e){return function(t={type:"all"}){return"image"===t.type?i(e,function(e){const{count:t,sizeType:n,sourceType:i=["album","camera"],extension:s}=e;return new Promise(((e,r)=>{uni.chooseImage({count:t,sizeType:n,sourceType:i,extension:s,success(t){e(o(t,"image"))},fail(e){r({errMsg:e.errMsg.replace("chooseImage:fail",a)})}})}))}(t),t):"video"===t.type?i(e,function(e){const{camera:t,compressed:n,maxDuration:i,sourceType:s=["album","camera"],extension:r}=e;return new Promise(((e,c)=>{uni.chooseVideo({camera:t,compressed:n,maxDuration:i,sourceType:s,extension:r,success(t){const{tempFilePath:n,duration:a,size:i,height:s,width:r}=t;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:r,height:s,duration:a,fileType:"video",cloudPath:""}]},"video"))},fail(e){c({errMsg:e.errMsg.replace("chooseVideo:fail",a)})}})}))}(t),t):i(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,i)=>{let s=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(s=wx.chooseMessageFile),"function"!=typeof s)return i({errMsg:a+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:t,extension:n,success(t){e(o(t))},fail(e){i({errMsg:e.errMsg.replace("chooseFile:fail",a)})}})}))}(t),t)}}})));function vr(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let n=!1;const a=[];for(let o=2;o<e.length;o++)e[o]!==t[o]&&(a.push(e[o]),n=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(n,a)}))},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:n}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((n=>{this.mixinDatacomLoading=!1;const{data:a,count:o}=n.result;this.getcount&&(this.mixinDatacomPage.count=o),this.mixinDatacomHasMore=a.length<this.pageSize;const i=e?a.length?a[0]:void 0:a;this.mixinDatacomResData=i,t&&t(i)})).catch((e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,n&&n(e)})))},mixinDatacomGet(t={}){let n;t=t||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const a=t.action||this.action;a&&(n=n.action(a));const o=t.collection||this.collection;n=Array.isArray(o)?n.collection(...o):n.collection(o);const i=t.where||this.where;i&&Object.keys(i).length&&(n=n.where(i));const s=t.field||this.field;s&&(n=n.field(s));const r=t.foreignKey||this.foreignKey;r&&(n=n.foreignKey(r));const c=t.groupby||this.groupby;c&&(n=n.groupBy(c));const l=t.groupField||this.groupField;l&&(n=n.groupField(l)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const u=t.orderby||this.orderby;u&&(n=n.orderBy(u));const d=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,m=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,h=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,f={getCount:p},v={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return h&&(f.getTree=v),g&&(f.getTreePath=v),n=n.skip(m*(d-1)).limit(m).get(f),n}}}}function _r(e){return co("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function yr({openid:e,callLoginByWeixin:t=!1}={}){throw _r(this),new Error(`[SecureNetwork] API \`initSecureNetworkByWeixin\` is not supported on platform \`${ao}\``)}async function Er(e){const t=_r(this);return t.initPromise||(t.initPromise=yr.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function Cr(e){Fo=e}function kr(e){const t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(n){return new Promise(((a,o)=>{t[e]({...n,success(e){a(e)},fail(e){o(e)}})}))}}class Ir extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const a=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(a,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let a=0;a<n.length;a++)n[a](...t)}}{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([kr("getSystemInfo")(),kr("getPushClientId")()]).then((([{appId:e}={},{cid:t}={}]=[])=>{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:a,message:o}=t;this._payloadQueue.push({action:n,messageId:a,message:o}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:a}=e;"end"===t?this._end({messageId:n,message:a}):"message"===t&&this._appendMessage({messageId:n,message:a})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){uni.onPushMessage(this._uniPushMessageCallback)}_destroy(){uni.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const Sr={tcb:ns,tencent:ns,aliyun:Jo,private:ss,dcloud:ss,alipay:fs};let Tr=new class{init(e){let t={};const n=Sr[e.provider];if(!n)throw new Error("未提供正确的provider参数");var a;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new eo({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}(t),Ds(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(a=t).database=function(e){if(e&&Object.keys(e).length>0)return a.init(e).database();if(this._database)return this._database;const t=Gs(Fs,{uniClient:a});return this._database=t,t},a.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return a.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=Gs(Fs,{uniClient:a,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=gr,e.chooseAndUploadFile=fr.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return vr(e)}}),e.SSEChannel=Ir,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return Er.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.setCustomClientInfo=Cr,e.importObject=function(t){return function(n,a={}){a=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},a);const{customUI:o,loadingOptions:i,errorOptions:s,parseSystemError:r}=a,c=!o;return new Proxy({},{get(o,l){switch(l){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...a){const o=n?n({params:a}):{};let i,s;try{return await ho(go(t,"invoke"),{...o}),i=await e(...a),await ho(go(t,"success"),{...o,result:i}),i}catch(r){throw s=r,await ho(go(t,"fail"),{...o,error:s}),s}finally{await ho(go(t,"complete"),s?{...o,error:s}:{...o,result:i})}}}({fn:async function o(...u){let d;c&&uni.showLoading({title:i.title,mask:i.mask});const m={name:n,type:"OBJECT",data:{method:l,params:u}};"object"==typeof a.secretMethods&&function(e,t){const n=t.data.method,a=e.secretMethods||{},o=a[n]||a["*"];o&&(t.secretType=o)}(a,m);let p=!1;try{d=await t.callFunction(m)}catch(e){p=!0,d={result:new Po(e)}}const{errSubject:h,errCode:g,errMsg:f,newToken:v}=d.result||{};if(c&&uni.hideLoading(),v&&v.token&&v.tokenExpired&&(Vo(v),No(Eo,{...v})),g){let e=f;if(p&&r&&(e=(await r({objectName:n,methodName:l,params:u,errSubject:h,errCode:g,errMsg:f})).errMsg||f),c)if("toast"===s.type)uni.showToast({title:e,icon:"none"});else{if("modal"!==s.type)throw new Error(`Invalid errorOptions.type: ${s.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:a,confirmText:o}={}){return new Promise(((i,s)=>{uni.showModal({title:e,content:t,showCancel:n,cancelText:a,confirmText:o,success(e){i(e)},fail(){i({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});if(s.retry&&t)return o(...u)}}const t=new Po({subject:h,code:g,message:f,requestId:d.requestId});throw t.detail=d.result,No(_o,{type:Io,content:t}),t}return No(_o,{type:Io,content:d.result}),d.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:l,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){let a=!1;if("callFunction"===t){const e=n&&n.type||qa;a=e!==qa}const o="callFunction"===t&&!a,i=this._initPromiseHub.exec();n=n||{};const{success:s,fail:r,complete:c}=Lo(n),l=i.then((()=>a?Promise.resolve():ho(go(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>a?Promise.resolve(e):ho(go(t,"success"),e).then((()=>ho(go(t,"complete"),e))).then((()=>(o&&No(_o,{type:ko,content:e}),Promise.resolve(e))))),(e=>a?Promise.reject(e):ho(go(t,"fail"),e).then((()=>ho(go(t,"complete"),e))).then((()=>(No(_o,{type:ko,content:e}),Promise.reject(e))))));if(!(s||r||c))return l;l.then((e=>{s&&s(e),c&&c(e),o&&No(_o,{type:ko,content:e})}),(e=>{r&&r(e),c&&c(e),o&&No(_o,{type:ko,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=oo;let t={};if(e&&1===e.length)t=e[0],Tr=Tr.init(t),Tr._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间请在uniCloud目录右键关联服务空间",t.forEach((e=>{Tr[e]=function(){return console.error(n),Promise.reject(new Po({code:"SYS_ERR",message:n}))}}))}Object.assign(Tr,{get mixinDatacom(){return vr(Tr)}}),dr(Tr),Tr.addInterceptor=mo,Tr.removeInterceptor=po,Tr.interceptObject=fo,uni.__uniCloud=Tr;{const e=so||(so=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),so);e.uniCloud=Tr,e.UniCloudError=Po}})();var Mr=Tr;const Nr="chooseAndUploadFile:fail";function wr(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function Dr(e,t=5,n){const a=(e=JSON.parse(JSON.stringify(e))).length;let o=0,i=this;return new Promise((s=>{for(;o<t;)r();function r(){let t=o++;if(t>=a)return void(!e.find((e=>!e.url&&!e.errMsg))&&s(e));const c=e[t],l=i.files.findIndex((e=>e.uuid===c.uuid));c.url="",delete c.errMsg,Mr.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:e=>{e.index=l,n&&n(e)}}).then((e=>{c.url=e.fileID,c.index=l,t<a&&r()})).catch((e=>{c.errMsg=e.errMsg||e.message,c.index=l,t<a&&r()}))}}))}function br(e,{onChooseFile:t,onUploadProgress:n}){return e.then((e=>{if(t){const n=t(e);if(void 0!==n)return Promise.resolve(n).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function Lr(e={type:"all"}){return"image"===e.type?br(function(e){const{count:t,sizeType:n=["original","compressed"],sourceType:a,extension:o}=e;return new Promise(((e,i)=>{uni.chooseImage({count:t,sizeType:n,sourceType:a,extension:o,success(t){e(wr(t,"image"))},fail(e){i({errMsg:e.errMsg.replace("chooseImage:fail",Nr)})}})}))}(e),e):"video"===e.type?br(function(e){const{count:t,camera:n,compressed:a,maxDuration:o,sourceType:i,extension:s}=e;return new Promise(((e,t)=>{uni.chooseVideo({camera:n,compressed:a,maxDuration:o,sourceType:i,extension:s,success(t){const{tempFilePath:n,duration:a,size:o,height:i,width:s}=t;e(wr({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:o,type:t.tempFile&&t.tempFile.type||"",width:s,height:i,duration:a,fileType:"video",cloudPath:""}]},"video"))},fail(e){t({errMsg:e.errMsg.replace("chooseVideo:fail",Nr)})}})}))}(e),e):br(function(e){const{count:t,extension:n}=e;return new Promise(((e,a)=>{let o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return a({errMsg:Nr+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success(t){e(wr(t))},fail(e){a({errMsg:e.errMsg.replace("chooseFile:fail",Nr)})}})}))}(e),e)}const Pr=e=>{const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}},Ar=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},Rr=async(e,t="image")=>{const n=Pr(e.name).ext.toLowerCase();let a={name:e.name,uuid:e.uuid,extname:n||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(o=e.path,new Promise(((e,t)=>{uni.getImageInfo({src:o,success(t){e(t)},fail(e){t(e)}})})));delete a.video,a.image.width=t.width,a.image.height=t.height,a.image.location=t.path}else delete a.image;var o;return a};const Or=w({name:"uniFilePicker",components:{uploadImage:w({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let n={};"auto"===t?"auto"!==e?(n.height=this.value2px(e),n["padding-top"]=0):n.height=0:(n.height=this.value2px(t),n["padding-top"]=0),n.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let a="";for(let o in n)a+=`${o}:${n[o]};`;return a},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let n=e&&e.width||1;n=this.value2px(n);let a=e&&e.radius||3;a=this.value2px(a),t={"border-width":n,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":a}}let n="";for(let a in t)n+=`${a}:${t[a]};`;return n}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let n=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{n.push(e.url)})),uni.previewImage({urls:n,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.filesList,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"file-picker__box",key:n,style:e.normalizeStyle(s.boxStyle)},[e.createElementVNode("view",{class:"file-picker__box-content",style:e.normalizeStyle(s.borderStyle)},[e.createElementVNode("image",{class:"file-image",src:t.url,mode:"aspectFill",onClick:e.withModifiers((e=>s.prviewImage(t,n)),["stop"])},null,8,["src","onClick"]),a.delIcon&&!a.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box",onClick:e.withModifiers((e=>s.delFile(n)),["stop"])},[e.createElementVNode("view",{class:"icon-del"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),t.errMsg?(e.openBlock(),e.createElementBlock("view",{key:2,class:"file-picker__mask",onClick:e.withModifiers((e=>s.uploadFiles(t,n)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],4)],4)))),128)),a.filesList.length<a.limit&&!a.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"file-picker__box",style:e.normalizeStyle(s.boxStyle)},[e.createElementVNode("view",{class:"file-picker__box-content is-add",style:e.normalizeStyle(s.borderStyle),onClick:n[0]||(n[0]=(...e)=>s.choose&&s.choose(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})]),!0)],4)],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-86b162f5"]]),uploadFile:w({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,n={};if(t){let t=e&&e.width||1;t=this.value2px(t);let a=e&&e.radius||5;a=this.value2px(a),n={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":a}}else n.border="none";let a="";for(let o in n)a+=`${o}:${n[o]};`;return a},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let n=t&&t.width||1,a=t&&t.style||0;"number"==typeof n?n+="px":n=n.indexOf("px")?n:n+"px",e["border-width"]=n,"number"==typeof a?a+="px":a=a.indexOf("px")?a:a+"px",e["border-top-style"]=a}let n="";for(let a in e)n+=`${a}:${e[a]};`;return n}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__files"},[a.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"files-button",onClick:n[0]||(n[0]=(...e)=>s.choose&&s.choose(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)])),s.list.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-file-picker__lists is-text-box",style:e.normalizeStyle(s.borderStyle)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-file-picker__lists-box",{"files-border":0!==n&&s.styles.dividline}]),key:n,style:e.normalizeStyle(0!==n&&s.styles.dividline&&s.borderLineStyle)},[e.createElementVNode("view",{class:"uni-file-picker__item"},[e.createElementVNode("view",{class:"files__name"},e.toDisplayString(t.name),1),a.delIcon&&!a.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box icon-files",onClick:e=>s.delFile(n)},[e.createElementVNode("view",{class:"icon-del icon-files"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0)]),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:0,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),"error"===t.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__mask",onClick:e.withModifiers((e=>s.uploadFiles(t,n)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],6)))),128))],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-e61666c7"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},value:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""}},data:()=>({files:[],localValue:[]}),watch:{value:{handler(e,t){this.setValue(e,t)},immediate:!0},modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){Mr.config&&Mr.config.provider||(this.noSpace=!0,Mr.chooseAndUploadFile=Lr),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,n)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const n=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await n(e):e={};else{e||(e=[]);for(let t=0;t<e.length;t++){let a=e[t];await n(a)}}this.localValue=e,this.form&&this.formItem&&!this.is_reset&&(this.is_reset=!1,this.formItem.setValue(this.localValue));let a=Object.keys(e).length>0?e:[];this.files=[].concat(a)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?uni.showToast({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=Ar(this.fileExtname);Mr.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{g("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:364","选择失败",e)}))},async chooseFileCallback(e){const t=Ar(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:n,files:a}=((e,t)=>{let n=[],a=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const o=Pr(e.name).ext.toLowerCase();-1!==t.indexOf(o)&&(a.push(e),n.push(e.path))})),a.length!==e.tempFiles.length&&uni.showToast({title:`当前选择了${e.tempFiles.length}个文件 ${e.tempFiles.length-a.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:n,files:a}):{filePaths:n,files:a}})(e,t);t&&t.length>0||(n=e.tempFilePaths,a=e.tempFiles);let o=[];for(let i=0;i<a.length&&!(this.limitLength-this.files.length<=0);i++){a[i].uuid=Date.now();let e=await Rr(a[i],this.fileMediatype);e.progress=0,e.status="ready",this.files.push(e),o.push({...e,file:a[i]})}this.$emit("select",{tempFiles:o,tempFilePaths:n}),e.tempFiles=a,this.autoUpload&&!this.noSpace||(e.tempFiles=[]),e.tempFiles.forEach(((e,t)=>{this.provider&&(e.provider=this.provider);const n=e.name.split("."),a=n.pop(),o=n.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");e.cloudPath=o+"_"+Date.now()+"_"+t+"."+a}))},uploadFiles(e){return e=[].concat(e),Dr.call(this,e,5,(e=>{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{g("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:437",e)}))},async setSuccessAndError(e,t){let n=[],a=[],o=[],i=[];for(let s=0;s<e.length;s++){const t=e[s],r=t.uuid?this.files.findIndex((e=>e.uuid===t.uuid)):t.index;if(-1===r||!this.files)break;if("request:fail"===t.errMsg)this.files[r].url=t.path,this.files[r].status="error",this.files[r].errMsg=t.errMsg,a.push(this.files[r]),i.push(this.files[r].url);else{this.files[r].errMsg="",this.files[r].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[r].url=await this.getTempFileURL(t.url):this.files[r].url=t.url,this.files[r].status="success",this.files[r].progress+=1,n.push(this.files[r]),o.push(this.files[r].fileID)}}n.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(n),tempFilePaths:o})),a.length>0&&this.$emit("fail",{tempFiles:this.backObject(a),tempFilePaths:i})},setProgress(e,t,n){this.files.length;const a=Math.round(100*e.loaded/e.total);let o=t;n||(o=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==o&&this.files[o]&&(this.files[o].progress=a-1,this.$emit("progress",{index:o,progress:parseInt(a),tempFile:this.files[o]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await Mr.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}},[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("upload-image"),c=e.resolveComponent("upload-file");return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker"},[a.title?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-file-picker__header"},[e.createElementVNode("text",{class:"file-title"},e.toDisplayString(a.title),1),e.createElementVNode("text",{class:"file-count"},e.toDisplayString(s.filesList.length)+"/"+e.toDisplayString(s.limitLength),1)])):e.createCommentVNode("",!0),"image"===a.fileMediatype&&"grid"===s.showType?(e.openBlock(),e.createBlock(r,{key:1,readonly:a.readonly,"image-styles":a.imageStyles,"files-list":s.filesList,limit:s.limitLength,disablePreview:a.disablePreview,delIcon:a.delIcon,onUploadFiles:s.uploadFiles,onChoose:s.choose,onDelFile:s.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"is-add"},[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})])]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0),"image"!==a.fileMediatype||"grid"!==s.showType?(e.openBlock(),e.createBlock(c,{key:2,readonly:a.readonly,"list-styles":a.listStyles,"files-list":s.filesList,showType:s.showType,delIcon:a.delIcon,onUploadFiles:s.uploadFiles,onChoose:s.choose,onDelFile:s.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("button",{type:"primary",size:"mini"},"选择文件")]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-086f9922"]]),Vr="/static/shop-upload-image.png",Br="/static/commodity-release-video.png",xr=w({__name:"index",emits:["click"],setup(t,{emit:n}){const a=n;return(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{style:e.normalizeStyle({bottom:e.unref(Gn)()}),class:"jy-bottom-btn"},[e.createElementVNode("button",{class:"bottom-btn",onClick:n[0]||(n[0]=e=>a("click"))},[e.renderSlot(t.$slots,"default",{},void 0,!0)])],4),e.createElementVNode("view",{class:"jy-bottom-btn-ghost"})],64))}},[["__scopeId","data-v-f45f8c4a"]]),Ur={listeners:{},on(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},emit(e,...t){const n=this.listeners[e];n&&n.forEach((e=>e(...t)))},off(e,t){const n=this.listeners[e];n&&(this.listeners[e]=n.filter((e=>e!==t)))}},Gr=w({__name:"index",setup(t){const{checkLink:n}=e.inject("util");e.onMounted((()=>{Ur.on("business-operator",a)})),e.onUnmounted((()=>{Ur.off("business-operator")}));const a=e=>{g("log","at pages/merchant/commodity-release/index.vue:90","===================================="),g("log","at pages/merchant/commodity-release/index.vue:91",e),g("log","at pages/merchant/commodity-release/index.vue:92","====================================")},o=e.ref(null),i=e.reactive({name:""}),s=e.reactive({name:""}),r=()=>{uni.showToast({title:"发布成功",icon:"none"})},c=()=>{n("pages/merchant/specifications/index")};return(t,n)=>{const a=f(e.resolveDynamicComponent("uni-file-picker"),Or),l=f(e.resolveDynamicComponent("uni-forms-item"),pa),u=f(e.resolveDynamicComponent("uni-easyinput"),ma),d=f(e.resolveDynamicComponent("uni-icons"),D),m=f(e.resolveDynamicComponent("uni-forms"),ba);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"jy-commodity_release"},[e.createVNode(m,{modelValue:i},{default:e.withCtx((()=>[e.createVNode(l,{class:"vertical-label margins",label:"商品图片",name:"name"},{default:e.withCtx((()=>[e.createVNode(a,{imageStyles:{width:"150rpx",height:"150rpx"},limit:"9"},{default:e.withCtx((()=>[e.createElementVNode("view",null,[e.createElementVNode("image",{class:"wh120",src:Vr})])])),_:1})])),_:1}),e.createVNode(l,{class:"vertical-label margins",labelPosition:"top",label:"商品标题",name:"name"},{default:e.withCtx((()=>[e.createVNode(u,{type:"textarea",autoHeight:"",inputBorder:!1,maxlength:"30",placeholder:"最多输入60字符30个汉字"})])),_:1}),e.createElementVNode("view",{class:"margins mb20"},[e.createVNode(l,{label:"类目",name:"name"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"df jcsb aic hohp",onClick:n[0]||(n[0]=e=>o.value.open())},[e.createElementVNode("text",{class:"click_select"},"点击选择"),e.createVNode(d,{color:"#d8d8d8",type:"arrowright",size:"18"})]),e.createVNode(e.unref(La),{ref_key:"category",ref:o,title:"请选择申请原因",showSave:!1},{default:e.withCtx((()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,(n=>e.createElementVNode("view",{class:"reason-list",onClick:e=>t.selectReason(n)},[e.createElementVNode("text",{class:"label"},e.toDisplayString(n),1)],8,["onClick"]))),64))])),_:1},512)])),_:1}),e.createVNode(l,{label:"规格",name:"name"},{default:e.withCtx((()=>[e.createElementVNode("text",{class:"click_select hohp df aic",onClick:c},"添加规格")])),_:1}),e.createVNode(l,{label:"价格",name:"name"},{default:e.withCtx((()=>[e.createVNode(u,{class:"hohp df aic",type:"number",inputBorder:!1,placeholder:"¥0.00"})])),_:1}),e.createVNode(l,{label:"库存",name:"name"},{default:e.withCtx((()=>[e.createVNode(u,{class:"hohp df aic",type:"number",inputBorder:!1,placeholder:"输入库存"})])),_:1})]),e.createVNode(l,{class:"margins",label:"发货",name:"name"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"df jcsb aic hohp"},[e.createElementVNode("text",{class:"click_select"},"点击选择"),e.createVNode(d,{color:"#d8d8d8",type:"arrowright",size:"18"})]),e.createVNode(e.unref(La),{ref_key:"category",ref:o,title:"发货",showSave:!1},{default:e.withCtx((()=>[e.createVNode(m,{modelValue:s},{default:e.withCtx((()=>[e.createVNode(l,{label:"发货时间",name:"name"},{default:e.withCtx((()=>[e.createVNode(u,{class:"hohp df aic",type:"text",inputBorder:!1,placeholder:"输入时间"})])),_:1}),e.createVNode(l,{label:"运费",name:"name"},{default:e.withCtx((()=>[e.createVNode(u,{class:"hohp df aic",type:"text",inputBorder:!1,placeholder:"输入运费"})])),_:1}),e.createVNode(l,{label:"所在地",name:"name"},{default:e.withCtx((()=>[e.createVNode(u,{class:"hohp df aic",type:"text",inputBorder:!1,placeholder:"输入省,市,区"})])),_:1})])),_:1},8,["modelValue"])])),_:1},512)])),_:1}),e.createVNode(l,{class:"margins",name:"name"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"df jcsb aic hohp"},[e.createElementVNode("view",{class:"df aic hohp"},[e.createElementVNode("image",{class:"wh50 mr40",src:Br,mode:"aspectFit"}),e.createElementVNode("text",null,"添加链接到视频")]),e.createVNode(d,{color:"#d8d8d8",type:"arrowright",size:"18"})])])),_:1})])),_:1},8,["modelValue"])]),e.createVNode(e.unref(xr),{onClick:r},{default:e.withCtx((()=>[e.createTextVNode("立即发布")])),_:1})],64)}}},[["__scopeId","data-v-fe1fb338"]]),Fr=w({__name:"index",props:{item:{type:Object,default:()=>({})}},setup(t){const n=e.ref({});return(t,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),D),i=f(e.resolveDynamicComponent("uni-file-picker"),Or),s=f(e.resolveDynamicComponent("uni-forms-item"),pa),r=f(e.resolveDynamicComponent("uni-easyinput"),ma),c=f(e.resolveDynamicComponent("uni-forms"),ba);return e.openBlock(),e.createElementBlock("view",{class:"jy-specifications-card bfff p25 br25"},[e.createVNode(c,{modelValue:n.value},{default:e.withCtx((()=>[e.createVNode(s,{label:"商品图片",name:"name"},{default:e.withCtx((()=>[e.createVNode(i,{imageStyles:{width:"150rpx",height:"150rpx"},limit:"9"},{default:e.withCtx((()=>[e.createVNode(o,{type:"camera",color:"#B2B2B2",size:"60"})])),_:1})])),_:1}),e.createVNode(s,{label:"规格",name:"name"},{default:e.withCtx((()=>[e.createVNode(r,{class:"hohp df aic",type:"text",inputBorder:!1,placeholder:"输入规格"})])),_:1}),e.createElementVNode("view",{class:"df"},[e.createVNode(s,{label:"价格",name:"name"},{default:e.withCtx((()=>[e.createVNode(r,{class:"hohp df aic",type:"number",inputBorder:!1,placeholder:"¥0.00"})])),_:1}),e.createVNode(s,{label:"库存",name:"name"},{default:e.withCtx((()=>[e.createVNode(r,{class:"hohp df aic",type:"number",inputBorder:!1,placeholder:"输入库存"})])),_:1})])])),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-7c6c09be"]]),Yr={__name:"index",setup(t){const n=e.ref([{}]),a=()=>{Ur.emit("business-operator",n.value),uni.navigateBack()},o=()=>{n.value.push({})};return(t,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"jy-specifications p25"},[e.createVNode(e.unref(Yn),{title:"商品管理",onBack:a},{right:e.withCtx((()=>[e.createElementVNode("text",{onClick:o},"添加")])),_:1}),n.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,n)=>(e.openBlock(),e.createBlock(e.unref(Fr),{class:"mt20",key:n,item:t},null,8,["item"])))),128))])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(xr),{onClick:t.postApi},{default:e.withCtx((()=>[e.createTextVNode("确定")])),_:1},8,["onClick"])],64))}},Hr={name:"UniRate",props:{isFill:{type:[Boolean,String],default:!0},color:{type:String,default:"#ececec"},activeColor:{type:String,default:"#ffca3e"},disabledColor:{type:String,default:"#c0c0c0"},size:{type:[Number,String],default:24},value:{type:[Number,String],default:0},modelValue:{type:[Number,String],default:0},max:{type:[Number,String],default:5},margin:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},readonly:{type:[Boolean,String],default:!1},allowHalf:{type:[Boolean,String],default:!1},touchable:{type:[Boolean,String],default:!0}},data:()=>({valueSync:"",userMouseFristMove:!0,userRated:!1,userLastRate:1}),watch:{value(e){this.valueSync=Number(e)},modelValue(e){this.valueSync=Number(e)}},computed:{stars(){const e=this.valueSync?this.valueSync:0,t=[],n=Math.floor(e),a=Math.ceil(e);for(let o=0;o<this.max;o++)n>o?t.push({activeWitch:"100%"}):a-1===o?t.push({activeWitch:100*(e-n)+"%"}):t.push({activeWitch:"0"});return t},marginNumber(){return Number(this.margin)}},created(){this.valueSync=Number(this.value||this.modelValue),this._rateBoxLeft=0,this._oldValue=null},mounted(){setTimeout((()=>{this._getSize()}),100)},methods:{touchstart(e){if(this.readonly||this.disabled)return;const{clientX:t,screenX:n}=e.changedTouches[0];this._getRateCount(t||n)},touchmove(e){if(this.readonly||this.disabled||!this.touchable)return;const{clientX:t,screenX:n}=e.changedTouches[0];this._getRateCount(t||n)},mousedown(e){},mousemove(e){},mouseleave(e){},_getRateCount(e){this._getSize();const t=Number(this.size);if(isNaN(t))return new Error("size 属性只能设置为数字");const n=e-this._rateBoxLeft;let a=parseInt(n/(t+this.marginNumber));a=a<0?0:a,a=a>this.max?this.max:a;const o=parseInt(n-(t+this.marginNumber)*a);let i=0;(this._oldValue!==a||this.PC)&&(this._oldValue=a,i=this.allowHalf?o>t/2?a+1:a+.5:a+1,i=Math.max(.5,Math.min(i,this.max)),this.valueSync=i,this._onChange())},_onChange(){this.$emit("input",this.valueSync),this.$emit("update:modelValue",this.valueSync),this.$emit("change",{value:this.valueSync})},_getSize(){uni.createSelectorQuery().in(this).select(".uni-rate").boundingClientRect().exec((e=>{e&&(this._rateBoxLeft=e[0].left)}))}}};const Zr=w(Hr,[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{ref:"uni-rate",class:"uni-rate"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.stars,((t,o)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-rate__icon",{"uni-cursor-not-allowed":a.disabled}]),style:e.normalizeStyle({"margin-right":s.marginNumber+"px"}),key:o,onTouchstart:n[0]||(n[0]=e.withModifiers(((...e)=>s.touchstart&&s.touchstart(...e)),["stop"])),onTouchmove:n[1]||(n[1]=e.withModifiers(((...e)=>s.touchmove&&s.touchmove(...e)),["stop"])),onMousedown:n[2]||(n[2]=e.withModifiers(((...e)=>s.mousedown&&s.mousedown(...e)),["stop"])),onMousemove:n[3]||(n[3]=e.withModifiers(((...e)=>s.mousemove&&s.mousemove(...e)),["stop"])),onMouseleave:n[4]||(n[4]=(...e)=>s.mouseleave&&s.mouseleave(...e))},[e.createVNode(r,{color:a.color,size:a.size,type:a.isFill?"star-filled":"star"},null,8,["color","size","type"]),e.createElementVNode("view",{style:e.normalizeStyle({width:t.activeWitch}),class:"uni-rate__icon-on"},[e.createVNode(r,{color:a.disabled?a.disabledColor:a.activeColor,size:a.size,type:"star-filled"},null,8,["color","size"])],4)],38)))),128))],512)])}],["__scopeId","data-v-77c606f8"]]),qr=w({__name:"statusBar",setup(t){const n=e.ref(0);return E((()=>{uni.getSystemInfo().then((e=>{n.value=e.statusBarHeight+"px"}))})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{style:e.normalizeStyle({height:n.value})},null,4))}},[["__scopeId","data-v-73a07a85"]]),jr=w({__name:"index",props:{detail:{type:Object,default:{}}},setup(t,{expose:n}){const a=e.ref(!1),o=e.ref(null),i=e.ref([]),s={more:[{icon:"/static/news.png",title:"信息"},{icon:"/static/home.png",title:"回到首页"},{icon:"/static/individual.png",title:"个人中心"},{icon:"/static/order.png",title:"我的订单"}],share:[{icon:"/static/linkage.png",title:"复制链接"},{icon:"/static/download.png",title:"保存图片"}]};function r(e){i.value=s[e],o.value.open()}return n({headerActive:a}),(n,s)=>{const c=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:e.normalizeClass(["apex pf t0 l0 r0",{active:a.value}])},[e.createVNode(e.unref(qr)),e.createElementVNode("view",{class:"head rows plr30"},[e.createElementVNode("view",{class:"side"},[e.createElementVNode("image",{onClick:s[0]||(s[0]=e=>{return t="/pages/shop/shop",getCurrentPages().length>1?uni.navigateBack({delta:1}):uni.reLaunch({url:t});var t}),class:"back wh55",src:"/static/back.png"})]),e.createElementVNode("view",{class:"main f1 tac"},[e.createElementVNode("text",null,"销量: "+e.toDisplayString(t.detail.sales),1)]),e.createElementVNode("view",{class:"side df fdr jcr"},[e.createElementVNode("image",{onClick:s[1]||(s[1]=e=>r("share")),class:"share wh55",src:"/static/share1.png"}),e.createElementVNode("image",{onClick:s[2]||(s[2]=e=>r("more")),class:"more wh55 ml20",src:"/static/more.png"})])])],2),e.createVNode(c,{ref_key:"share_more",ref:o,type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"menuAlt popBot"},[e.createElementVNode("view",{class:"main df ptb40"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item ver",key:a,onClick:e=>n.handle_share(t)},[e.createElementVNode("image",{class:"wh100",src:t.icon},null,8,["src"]),e.createElementVNode("view",{class:"title mt10"},[e.createElementVNode("text",{class:"txt c666 f8"},e.toDisplayString(t.title),1)])],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"btn lg bar mlr30 mtb30 bfff",onClick:s[3]||(s[3]=e=>o.value.close())},[e.createElementVNode("text",{class:"c333"},"取消")])])])),_:1},512)],64)}}},[["__scopeId","data-v-6dd6f7e0"]]);const Jr=w({name:"UniNumberBox",emits:["change","input","update:modelValue","blur","focus"],props:{value:{type:[Number,String],default:1},modelValue:{type:[Number,String],default:1},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},background:{type:String,default:"#f5f5f5"},color:{type:String,default:"#333"},disabled:{type:Boolean,default:!1},width:{type:Number,default:40}},data:()=>({inputValue:0}),watch:{value(e){this.inputValue=+e},modelValue(e){this.inputValue=+e}},computed:{widthWithPx(){return this.width+"px"}},created(){1===this.value&&(this.inputValue=+this.modelValue),1===this.modelValue&&(this.inputValue=+this.value)},methods:{_calcValue(e){if(this.disabled)return;const t=this._getDecimalScale();let n=this.inputValue*t,a=this.step*t;if("minus"===e){if(n-=a,n<this.min*t)return;n>this.max*t&&(n=this.max*t)}if("plus"===e){if(n+=a,n>this.max*t)return;n<this.min*t&&(n=this.min*t)}this.inputValue=(n/t).toFixed(String(t).length-1),this.$emit("input",+this.inputValue),this.$emit("update:modelValue",+this.inputValue),this.$emit("change",+this.inputValue)},_getDecimalScale(){let e=1;return~~this.step!==this.step&&(e=Math.pow(10,String(this.step).split(".")[1].length)),e},_onBlur(e){this.$emit("blur",e);let t=e.detail.value;if(isNaN(t))return void(this.inputValue=this.value);t=+t,t>this.max?t=this.max:t<this.min&&(t=this.min);const n=this._getDecimalScale();this.inputValue=t.toFixed(String(n).length-1),this.$emit("input",+this.inputValue),this.$emit("update:modelValue",+this.inputValue),this.$emit("change",+this.inputValue)},_onFocus(e){this.$emit("focus",e)}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-numbox"},[e.createElementVNode("view",{onClick:n[0]||(n[0]=e=>s._calcValue("minus")),class:"uni-numbox__minus uni-numbox-btns",style:e.normalizeStyle({background:a.background})},[e.createElementVNode("text",{class:e.normalizeClass(["uni-numbox--text",{"uni-numbox--disabled":i.inputValue<=a.min||a.disabled}]),style:e.normalizeStyle({color:a.color})},"-",6)],4),e.withDirectives(e.createElementVNode("input",{disabled:a.disabled,onFocus:n[1]||(n[1]=(...e)=>s._onFocus&&s._onFocus(...e)),onBlur:n[2]||(n[2]=(...e)=>s._onBlur&&s._onBlur(...e)),class:"uni-numbox__value",type:a.step<1?"digit":"number","onUpdate:modelValue":n[3]||(n[3]=e=>i.inputValue=e),style:e.normalizeStyle({background:a.background,color:a.color,width:s.widthWithPx})},null,44,["disabled","type"]),[[e.vModelDynamic,i.inputValue]]),e.createElementVNode("view",{onClick:n[4]||(n[4]=e=>s._calcValue("plus")),class:"uni-numbox__plus uni-numbox-btns",style:e.normalizeStyle({background:a.background})},[e.createElementVNode("text",{class:e.normalizeClass(["uni-numbox--text",{"uni-numbox--disabled":i.inputValue>=a.max||a.disabled}]),style:e.normalizeStyle({color:a.color})},"+",6)],4)])}],["__scopeId","data-v-8e354f23"]]),Xr=w({__name:"index",props:{detail:{type:Object,default:()=>({})}},setup(t){e.getCurrentInstance(),O().state;const n=e.reactive([{name:"款型",option:[{name:"普通款"},{name:"升级款"}]},{name:"卡通形象",option:[{name:"熊"},{name:"狗"},{name:"猫"},{name:"河豚"}]}]),a=e.reactive([]);return(t,o)=>{const i=f(e.resolveDynamicComponent("uni-icons"),D),s=f(e.resolveDynamicComponent("uni-number-box"),Jr),r=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"fill",style:{height:"180rpx"}}),e.createElementVNode("view",{class:"footer footerMneu rows plr20 shadow bfff"},[e.createElementVNode("view",{class:"menu df fdr aic"},[e.createElementVNode("view",{class:"option ver mlr10"},[e.createElementVNode("image",{class:"wh30",src:"/static/store.png",mode:"widthFix"}),e.createElementVNode("view",{class:"f24 c999 mt10"},"店铺")]),e.createElementVNode("view",{class:"option ver mlr10"},[e.createElementVNode("view",{class:"wh30 fmid"},[(e.openBlock(),e.createBlock(i,{key:1,type:"star",size:"45rpx",color:"#666"}))]),e.createElementVNode("view",{class:"f24 c999 mt10"},"收藏")]),e.createElementVNode("view",{class:"option ver mlr10"},[e.createElementVNode("image",{class:"wh30",src:"/static/customer-service.png",mode:"widthFix"}),e.createElementVNode("view",{class:"f24 c999 mt10"},"客服")])]),e.createElementVNode("view",{class:"btn lg primary f1 ml30",onClick:o[0]||(o[0]=e=>t.$refs.popup.open())},[e.createElementVNode("text",null,"立即购买")])]),e.createVNode(r,{type:"bottom",ref:"popup"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"buy popBot plr20 bfff"},[e.createElementVNode("view",{class:"address mtb40"},[e.createVNode(e.unref(ua))]),e.createElementVNode("view",{class:"jy-card-commodity-content df mtb40"},[e.createElementVNode("image",{class:"wh200 br10",src:"https://img30.360buyimg.com/popWareDetail/jfs/t1/124291/22/31317/138753/6449f30dF90683c84/4fee5d1a337f7b90.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"info f1 df fdc jcsb ml30"},[e.createElementVNode("view",{class:"content-info-price"},[e.createElementVNode("text",{class:"cFF9B27 f28"},"应付"),e.createElementVNode("text",{class:"cFF9B27 f24"},"¥"),e.createElementVNode("text",{class:"cFF9B27 f50"},"89")]),e.createElementVNode("view",{class:"content-info-num"},[e.createElementVNode("text",{class:"f26 c333"},"已选 规格一 / 规格二")]),e.createElementVNode("view",{class:"w200"},[e.createVNode(s,{value:1,step:1})])])]),e.createElementVNode("view",{class:"spec"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item mtb20"},[e.createElementVNode("view",{class:"title f32"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"selection df"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.option,((t,o)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["option mtb20 mr20",{active:a[n]===o}]),key:o,onClick:e=>function(e,t){a.splice(e,1,t)}(n,o)},[e.createElementVNode("text",{class:"txt"},e.toDisplayString(t.name),1)],10,["onClick"])))),128))])])))),256))]),e.createElementVNode("view",{class:"btn lg primary mtb30",onClick:o[1]||(o[1]=e=>{return t="/pages/shop/continue-pay/index",void uni.navigateTo({url:t});var t})},[e.createElementVNode("text",{class:"cfff"},"立即下单 ¥89")])])])),_:1},512)],64)}}},[["__scopeId","data-v-08dab8ca"]]),Kr=w({__name:"index",setup(t){const{proxy:n}=e.getCurrentInstance(),a=e.reactive({}),o=e.ref("");O().state;const i=e.ref(0),s=e.computed((()=>{let e=[];return a.sliderImage&&(e=a.sliderImage.split(",")),e}));return E((e=>{e.productId&&(o.value=e.productId),Te.shop.productDetail({query:{productionId:o.value}}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):Object.assign(a,{},e.data)}))})),C((()=>{})),I((e=>{e.scrollTop>44?n.$refs.apexRef.headerActive=!0:n.$refs.apexRef.headerActive=!1})),(t,n)=>{const o=f(e.resolveDynamicComponent("uni-icons"),D),r=f(e.resolveDynamicComponent("uni-rate"),Zr);return e.openBlock(),e.createElementBlock("view",{class:"app pr"},[e.createVNode(e.unref(jr),{ref:"apexRef",detail:a},null,8,["detail"]),a.sliderImage?(e.openBlock(),e.createElementBlock("view",{key:0,class:"banner pr"},[e.createElementVNode("swiper",{class:"swiper",current:i.value,onChange:n[0]||(n[0]=e=>i.value=e.detail.current)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,n)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:n},[e.createElementVNode("image",{class:"poster",src:t,mode:" aspectFill"},null,8,["src"])])))),128))],40,["current"]),e.createElementVNode("view",{class:"text pa ptb5 plr20 cfff f24 bar"},e.toDisplayString(i.value+1)+" / "+e.toDisplayString(s.value.length),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"detail bfff ptb25 plr20"},[e.createElementVNode("view",{class:"line rows"},[e.createElementVNode("view",{class:"price"},[e.createElementVNode("text",{class:"txt"},"¥"),e.createElementVNode("text",{class:"txt f56"},e.toDisplayString(a.price),1)]),e.createElementVNode("view",{class:"sold"},[e.createElementVNode("text",{class:"c999 f26"},"已售 "+e.toDisplayString(a.sales),1)])]),e.createElementVNode("view",{class:"coupon df fdr fww f26 mtb20 cFF9B27"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"限时直降0.5元")]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"平台立减1元")]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"关注店铺1元优惠券")])]),e.createElementVNode("view",{class:"name mtb20 f34 c333 t2hd"},e.toDisplayString(a.name),1),e.createElementVNode("view",{class:"history mtb20 rows"},[e.createElementVNode("view",{class:"c666 f28"},"商品修改历史"),e.createVNode(o,{type:"right"})]),e.createElementVNode("view",{class:"gift df fdr fww c999 f24 mtb20"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"全场包邮")]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"48h内发货")]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"假一赔十")]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"7天无理由退货")]),e.createElementVNode("view",{class:"item"},[e.createElementVNode("text",null,"支持先用后付")])])]),e.createElementVNode("view",{class:"recently mtb20"},[e.createElementVNode("swiper",{class:"swiper",autoplay:!0,vertical:"true"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,n)=>e.createElementVNode("swiper-item",{key:n},[e.createElementVNode("view",{class:"list plr10 bfff"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,n)=>e.createElementVNode("view",{class:"item bsb rows plr10",key:n},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{class:"avatar wh70 cir",src:"https://img30.360buyimg.com/popWareDetail/jfs/t1/124291/22/31317/138753/6449f30dF90683c84/4fee5d1a337f7b90.jpg.avif",mode:"aspectFill"})]),e.createElementVNode("view",{class:"name f1 mlr10 f28"},"用户xxx"),e.createElementVNode("view",{class:"info mlr10 f26 tar"},[e.createElementVNode("view",{class:"fn"},"刚刚下单"),e.createElementVNode("view",{class:"time c999"},"2014.12.08 18:00")]),e.createElementVNode("view",{class:"btn sm warm plr15"},"立即购买")]))),64))])]))),64))])]),e.createElementVNode("view",{class:"evaluate mtb20 plr25 bfff"},[e.createElementVNode("view",{class:"header rows ptb25",onClick:n[1]||(n[1]=t=>{return n=e.unref(Me).setUrl("/pages/shop/commodity/evaluate",{id:1}),void uni.navigateTo({url:n});var n})},[e.createElementVNode("text",{class:"modelTitle"},"商品评价(3)"),e.createVNode(o,{type:"right"})]),e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,n)=>e.createElementVNode("view",{class:"item ptb20",key:n},[e.createElementVNode("view",{class:"userinfo df c666 f28"},[e.createElementVNode("image",{class:"avatar wh45 cir",src:"https://img30.360buyimg.com/popWareDetail/jfs/t1/124291/22/31317/138753/6449f30dF90683c84/4fee5d1a337f7b90.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"name thd f32 f1 ml20"},"用户xxx")]),e.createElementVNode("view",{class:"content t2hd mt10 c333 f28"},"这个商品不错")]))),64))])]),e.createElementVNode("view",{class:"store df aic jcsb mtb20 ptb20 plr25 bfff"},[e.createElementVNode("view",{class:"header rows"},[e.createElementVNode("image",{class:"wh140 br20",src:"https://img30.360buyimg.com/popWareDetail/jfs/t1/124291/22/31317/138753/6449f30dF90683c84/4fee5d1a337f7b90.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"info f1 mlr20"},[e.createElementVNode("view",{class:"name thd"},[e.createElementVNode("text",{class:"f34 c333"},"家纺专营店")]),e.createElementVNode("view",{class:"line df dfr aic mt10"},[e.createElementVNode("view",{class:"item f24 c666 df aic"},[e.createVNode(r,{class:"mr10",value:4.5,size:12,activeColor:"#FF9B27",readonly:""}),e.createElementVNode("text",null,"4.5")]),e.createElementVNode("view",{class:"item follow c666 f24"},[e.createElementVNode("text",null,"123关注")])])])]),e.createElementVNode("view",{onClick:n[2]||(n[2]=(...e)=>t.followButton&&t.followButton(...e)),class:"btn sm warm plr30"},[(e.openBlock(),e.createBlock(o,{key:0,class:"mr10",color:"#fff",type:"plusempty",size:"13"})),e.createElementVNode("text",{class:"cfff"},"关注")])]),e.createElementVNode("view",{class:"p25 mtb240 bfff"},[e.createElementVNode("view",{class:"title"},[e.createElementVNode("text",{class:"modelTitle"},"宝贝详情")]),e.createElementVNode("view",{class:"content mt30"},[e.createElementVNode("rich-text",{nodes:"<p><img src='https://img30.360buyimg.com/popWareDetail/jfs/t1/124291/22/31317/138753/6449f30dF90683c84/4fee5d1a337f7b90.jpg.avif' width='100%' /></p>"})])]),e.createElementVNode("view",{class:"recommend mlr20"},[e.createVNode(e.unref(Bn),{choicenessTitle:!0})]),e.createVNode(e.unref(Xr))])}}},[["__scopeId","data-v-023539f8"]]),zr="/static/qq.png",Wr=w({__name:"index",setup(t){const n=e.ref("1"),a=[{name:"微信支付",value:"1",icon:"/static/shop-weixin-pay.png"},{name:"支付宝支付",value:"2",icon:"/static/shop-alipay-payment.png"},{name:"余额支付",value:"3",icon:"/static/shop-apply-pay.png"}];function o(e){}return(t,i)=>{const s=f(e.resolveDynamicComponent("uni-icons"),D),r=f(e.resolveDynamicComponent("uni-easyinput"),ma),c=f(e.resolveDynamicComponent("uni-countdown"),oa);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"bfff p25"},[e.createVNode(e.unref(ua))]),e.createElementVNode("view",{class:"detail oh mtb20 plr30 bfff"},[e.createElementVNode("view",{class:"store mtb20 plr10 df aic"},[e.createElementVNode("image",{class:"avaar wh60 cir",src:zr,mode:"aspectFill"}),e.createElementVNode("view",{class:"name ml10 c333 f28"},"店铺名称")]),e.createElementVNode("view",{class:"goods mtb20 plr10 df"},[e.createElementVNode("image",{class:"wh180 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"f1 mlr10"},[e.createElementVNode("view",{class:"name f30"},"靠枕 纯棉靠枕 车载居家 纯棉100% 卡通靠枕 人体工学"),e.createElementVNode("view",{class:"spec mt10 c999 f26"},"升级款 小熊")]),e.createElementVNode("view",{class:"tar"},[e.createElementVNode("view",{class:"price"},[e.createElementVNode("text",{class:"f20"},"¥"),e.createElementVNode("text",{class:"f30"},"5.48")]),e.createElementVNode("view",{class:"c999 f28"},"x1")])]),e.createElementVNode("view",{class:"line df jcr aic ptb20 plr10"},[e.createElementVNode("text",{class:"c333 f28"},"积分抵扣:"),e.createElementVNode("text",{class:"price f20 cFF9B27"},"-¥"),e.createElementVNode("text",{class:"price f32 cFF9B27"},"5.00")]),e.createElementVNode("view",{class:"line df jcr aic ptb20 plr10"},[e.createElementVNode("text",{class:"c333 f28"},"应付:"),e.createElementVNode("text",{class:"price f20 cFF9B27"},"¥"),e.createElementVNode("text",{class:"price f32 cFF9B27"},"5.00")])]),e.createElementVNode("radio-group",{class:"payType mtb20 plr20 bfff",onChange:o},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,((t,a)=>e.createElementVNode("label",{class:"item rows ptb20 plr10",key:t.value},[e.createElementVNode("image",{src:t.icon,class:"wh60",mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"f1 mlr20 c333 f28"},e.toDisplayString(t.name),1),e.createElementVNode("radio",{class:"radio",color:"#4cd964",value:t.value,checked:t.value===n.value},null,8,["value","checked"])]))),64)),e.createElementVNode("label",{class:"item rows ptb20 plr10"},[e.createElementVNode("image",{src:"/static/shop-bank-payment.png",class:"wh60",mode:"aspectFit"}),e.createElementVNode("view",{class:"f1 mlr20 c333 f28"},"添加银行卡"),e.createVNode(s,{type:"right"})])],32),e.createElementVNode("view",{class:"remark mtb20 ptb20 plr20 bfff"},[e.createElementVNode("view",{class:"title f30"},"订单备注"),e.createElementVNode("view",{class:"txtarea mt10"},[e.createVNode(r,{inputBorder:!1,type:"textarea",placeholder:"选填"})])]),e.createElementVNode("view",{class:"fill",style:{height:"210rpx"}}),e.createElementVNode("view",{class:"footer df jcr plr20 bfff"},[e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("text",{class:"c333 f28"},"应付:"),e.createElementVNode("text",{class:"price f20 cFF9B27"},"¥"),e.createElementVNode("text",{class:"price f36 cFF9B27"},"5.48")]),e.createElementVNode("view",{class:"btn ti primary ml20 plr60"},[e.createElementVNode("text",{class:"cfff f24"},"继续付款"),e.createElementVNode("view",{class:"df cfff aic f20"},[e.createElementVNode("text",{class:""},"剩余:"),e.createVNode(c,{splitorColor:"#fff",color:"#fff","show-day":!1,hour:12,minute:12,second:12})])])])])}}},[["__scopeId","data-v-2c224d08"]]),Qr=(e,t,n,a,o)=>{switch(e){case"weixin":uni.share({provider:"weixin",scene:"WXSceneSession",shareData:shareData,success:function(e){Me.showToastAndRedirect("分享成功","success")},fail:function(e){Me.showToastAndRedirect("分享失败","error")}});break;case"qq":((e,t,n)=>{uni.share({provider:"qq",scene:"QZoneScene",title:e,imageUrl:t,filePath:n,success:function(e){Me.showToastAndRedirect("分享成功","success")},fail:function(e){Me.showToastAndRedirect("分享失败","error")}})})(t,n,o)}},$r=w({__name:"index",setup(t){const n=e.ref(null),a=e.ref([]),{checkLink:o,copyText:i}=e.inject("util"),s={more:[{name:"news",icon:"/static/news.png",title:"信息"},{name:"home",icon:"/static/home.png",title:"回到首页"},{name:"individual",icon:"/static/individual.png",title:"个人中心"},{name:"order",icon:"/static/order.png",title:"我的订单"}],share:[{name:"linkage",icon:"/static/linkage.png",title:"复制链接"},{name:"download",icon:"/static/download.png",title:"保存图片"},{name:"wx",icon:"/static/wx.png",title:"微信"},{name:"qq",icon:zr,title:"QQ"}],news(){o("pages/news/question-answer/index")},home(){o("pages/index/index")},individual(){o("pages/mine/mine")},order(){o("pages/shop/order/index")},linkage(){i(location.href)},download(){g("log","at pages/shop/store/components/jy-store-head/index.vue:112","===================================="),g("log","at pages/shop/store/components/jy-store-head/index.vue:113","download"),g("log","at pages/shop/store/components/jy-store-head/index.vue:114","====================================")},wx(){g("log","at pages/shop/store/components/jy-store-head/index.vue:117","===================================="),g("log","at pages/shop/store/components/jy-store-head/index.vue:118","wx"),g("log","at pages/shop/store/components/jy-store-head/index.vue:119","===================================="),Qr("weixin","这是一个测试标题","https://example.com/image.jpg",0,"")},qq(){g("log","at pages/shop/store/components/jy-store-head/index.vue:124","===================================="),g("log","at pages/shop/store/components/jy-store-head/index.vue:125","qq"),g("log","at pages/shop/store/components/jy-store-head/index.vue:126","===================================="),Qr("qq","这是一个测试标题","https://example.com/image.jpg",0,"")}},r=e=>{a.value=s[e],n.value.open()};return(t,o)=>{const i=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(Yn),{isRight:""},{right:e.withCtx((()=>[e.createElementVNode("view",{class:"df img-group"},[e.createElementVNode("image",{onClick:o[0]||(o[0]=e.withModifiers((e=>r("more")),["stop"])),class:"more",src:e.unref("/static/search.png")},null,8,["src"]),e.createElementVNode("image",{onClick:o[1]||(o[1]=e.withModifiers((e=>r("share")),["stop"])),class:"share",src:e.unref("/static/share2.png")},null,8,["src"])])])),_:1}),e.createVNode(i,{ref_key:"share_more",ref:n,type:"bottom",borderRadius:"20px 20px 0 0"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup-content"},[e.createElementVNode("view",{class:"df fjc item"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"df fdc aic",onClick:e.withModifiers((e=>(e=>{g("log","at pages/shop/store/components/jy-store-head/index.vue:132","===================================="),g("log","at pages/shop/store/components/jy-store-head/index.vue:133",e),g("log","at pages/shop/store/components/jy-store-head/index.vue:134","===================================="),s[e.name]()})(t)),["stop"]),key:n},[e.createElementVNode("image",{src:t.icon},null,8,["src"]),e.createElementVNode("text",{class:"title"},e.toDisplayString(t.title),1)],8,["onClick"])))),128))]),e.createElementVNode("p",{class:"cancel",onClick:o[2]||(o[2]=e=>n.value.close()),style:e.normalizeStyle({bottom:e.unref(Gn)()})},"取消",4)])])),_:1},512)],64)}}},[["__scopeId","data-v-6288feb6"]]),ec=w({__name:"index",setup(t){const n=e.ref({});return e.ref([{label:"默认",value:1,isUpDown:!1,slot:null},{label:"销量",value:2,isUpDown:!1,slot:null},{label:"新品",value:3,isUpDown:!1,slot:null},{label:"价格",value:4,isUpDown:!0,slot:null}]),(t,a)=>{const o=f(e.resolveDynamicComponent("uni-rate"),Zr),i=f(e.resolveDynamicComponent("uni-icons"),D),s=e.resolveComponent("JyContent");return e.openBlock(),e.createElementBlock("view",{class:"jy-store-detail"},[e.createVNode(e.unref($r)),e.createElementVNode("view",{class:"jy-shop-card df aic jcsb p25 mt40 bfff"},[e.createElementVNode("view",{class:"jy-shop-card-header"},[e.createElementVNode("image",{class:"jy-shop-card-header-img",src:"",mode:"aspectFill"}),e.createElementVNode("view",{class:"jy-shop-card-header-info"},[e.createElementVNode("view",{class:"jy-shop-card-header-info-name"},[e.createElementVNode("text",null,"店铺名称")]),e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("view",{class:"f24 c666 df aic"},[e.createVNode(o,{class:"mr10",value:4.5,size:12,activeColor:"#FF9B27",disabled:"",showScore:!0}),e.createElementVNode("text",null,"4.5")]),e.createElementVNode("view",{class:"jy-shop-card-header-info-line"}),e.createElementVNode("view",{class:"c666 f24"},[e.createElementVNode("text",null,"123关注")])])])]),"store"==t.cardMod?(e.openBlock(),e.createElementBlock("view",{key:0,class:"jy-shop-card-header-follow-g"},[e.createElementVNode("view",{class:"btn",onClick:a[0]||(a[0]=(...e)=>t.followButton&&t.followButton(...e))},[e.createVNode(i,{class:"mr10",color:"#FF9B27",type:"plusempty",size:"13"}),e.createElementVNode("text",null,"关注")]),e.createElementVNode("view",{class:"btn df aic"},[e.createElementVNode("image",{class:"kefu",src:t.customerService},null,8,["src"]),e.createElementVNode("text",null,"客服")])])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"bfff content"},[e.createVNode(s,{conditions:n.value},null,8,["conditions"])])])}}},[["__scopeId","data-v-52ebe023"]]),tc=w({__name:"apex",props:{title:{type:String},bgColor:{type:String,default:"#fff"},color:{type:String,default:"#333"},mode:{type:String,default:"rows"}},setup(t){function n(){getCurrentPages().length>1?uni.navigateBack():uni.switchTab({url:"/pages/index/index"})}return(a,o)=>{const i=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"apex pf t0 l0 r0",style:e.normalizeStyle({background:t.bgColor})},[e.createVNode(qr),"rows"==t.mode?(e.openBlock(),e.createElementBlock("view",{key:0,class:"head rows plr10"},[e.createElementVNode("view",{class:"left col w180"},[e.renderSlot(a.$slots,"left",{},(()=>[e.createVNode(i,{type:"left",color:t.color,size:"48rpx",onClick:n},null,8,["color"])]),!0)]),e.createElementVNode("view",{class:"tac"},[e.renderSlot(a.$slots,"content",{},(()=>[e.createElementVNode("text",{class:"f32",style:e.normalizeStyle({color:t.color})},e.toDisplayString(t.title),5)]),!0)]),e.createElementVNode("view",{class:"right col df jcr w180"},[e.renderSlot(a.$slots,"right",{},void 0,!0)])])):"flex"==t.mode?(e.openBlock(),e.createElementBlock("view",{key:1,class:"head rows plr10"},[e.createElementVNode("view",{class:"left col mr10"},[e.renderSlot(a.$slots,"left",{},(()=>[e.createVNode(i,{type:"left",color:t.color,size:"48rpx",onClick:n},null,8,["color"])]),!0)]),e.renderSlot(a.$slots,"content",{},void 0,!0)])):e.createCommentVNode("",!0)],4),e.createElementVNode("view",{class:"ghost"},[e.createVNode(qr),e.createElementVNode("view",{class:"head"})])],64)}}},[["__scopeId","data-v-d068e706"]]),nc=w({__name:"item",props:{item:{type:Object,default:{}},mode:{type:String,default:"mine"}},emits:["item"],setup(t,{emit:n}){const a=t,o=n;function i(){o("item",a.item)}return(n,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item oh plr30 bfff br20",onClick:i},[e.createElementVNode("view",{class:"header line rows ptb20 f28"},["mine"==t.mode?(e.openBlock(),e.createElementBlock("view",{key:0,class:"store df aic thd f1"},[e.createElementVNode("image",{class:"wh50 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"name ml10 c333"},"家纺专营店")])):"shop"==t.mode?(e.openBlock(),e.createElementBlock("view",{key:1,class:"store df aic thd f1"},[e.createElementVNode("image",{class:"wh50 cir",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"name ml10 c333"},"用户小A")])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"c666 f28"},e.toDisplayString(t.item.status_text),1)]),e.createElementVNode("view",{class:"product line df ptb20"},[e.createElementVNode("view",{class:"poster wh160"},[e.createElementVNode("image",{class:"wh160 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"})]),e.createElementVNode("view",{class:"info mlr20 f1"},[e.createElementVNode("view",{class:"name c333 f28"},"靠枕 纯棉靠枕 车载居家 纯棉100% 卡通靠枕 人体工学"),e.createElementVNode("view",{class:"spec mt10 c999 f26"},"款式:普通款 小熊")]),e.createElementVNode("view",{class:"tar"},[e.createElementVNode("view",{class:"price c666"},[e.createElementVNode("text",{class:"f20"},"¥"),e.createElementVNode("text",{class:"f26"},"89")]),e.createElementVNode("view",{class:"number f24 c999"},"x 1")])]),e.createElementVNode("view",{class:"total line ptb20 tar f34"},[e.createElementVNode("view",{class:""},["mine"==t.mode?(e.openBlock(),e.createElementBlock("text",{key:0},"应付:")):"shop"==t.mode?(e.openBlock(),e.createElementBlock("text",{key:1},"实收:")):e.createCommentVNode("",!0),e.createElementVNode("text",{class:"cFF9B27 f20"},"¥"),e.createElementVNode("text",{class:"cFF9B27"},"89")])]),e.renderSlot(n.$slots,"menu",{item:t.item},void 0,!0)]))}},[["__scopeId","data-v-06ade1fb"]]),ac=w({__name:"index",setup(t){const n=e.reactive([{id:"",name:"全部"},{id:2,name:"待付款"},{id:3,name:"待发货"},{id:4,name:"待收货"},{id:5,name:"待评价"},{id:6,name:"售后/退款"}]),a=e.reactive({data:[{status:1,status_text:"待付款"},{status:2,status_text:"待发货"},{status:3,status_text:"待收货"},{status:4,status_text:"已完成"},{status:5,status_text:"已取消"},{status:6,status_text:"售后中"}]}),o=e.reactive({currentTab:0,search:""}),i=e.ref("#ffffff00");function s(e){uni.navigateTo({url:Me.setUrl("/pages/shop/order/detail")})}return E((e=>{})),I((e=>{i.value=e.scrollTop>44?"#fff":"#ffffff00"})),(t,r)=>{const c=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(tc,{bgColor:i.value,mode:"flex"},{content:e.withCtx((()=>[e.createElementVNode("view",{class:"search rows f1 mr30 plr20 bf8f8f8 br10"},[e.createVNode(c,{type:"search",color:"#999"}),e.createElementVNode("input",{class:"input ml20",type:"text",placeholder:"搜索内容"})])])),_:1},8,["bgColor"]),e.createElementVNode("view",{class:"app"},[e.createElementVNode("view",{class:"shopHeaderBg bgColor"}),e.createElementVNode("view",{class:"f1 pr"},[e.createVNode(e.unref(Va),{current:o.currentTab,list:n,onTabItemClick:t.itemClick,marright:"25px",activeWeight:"600",activeColor:"#333333",activeBarColor:"initial"},null,8,["current","list","onTabItemClick"])]),e.createElementVNode("view",{class:"product mlr20 pr"},[e.createElementVNode("view",{class:"order"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,class:"mtb30"},[e.createVNode(nc,{item:t,mode:"mine",onItem:s},{menu:e.withCtx((t=>[[1,2,3,4,6].includes(t.item.status)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"menu ptb20 df jcr"},[1==t.item.status?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"取消订单"),e.createElementVNode("view",{class:"btn bar warmHollow plr30"},"继续付款")],64)):e.createCommentVNode("",!0),2==t.item.status?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"申请退款"),e.createElementVNode("view",{class:"btn bar warmHollow plr30"},"催发货")],64)):e.createCommentVNode("",!0),3==t.item.status?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"申请退款"),e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"查看物流"),e.createElementVNode("view",{class:"btn bar warmHollow plr30"},"确认收货")],64)):e.createCommentVNode("",!0),4==t.item.status?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"申请退款"),e.createElementVNode("view",{class:"btn bar warmHollow plr30"},"评价")],64)):e.createCommentVNode("",!0),6==t.item.status?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"取消售后"),e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"钱款去向"),e.createElementVNode("view",{class:"btn bar warmHollow plr30"},"平台介入")],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])),_:2},1032,["item"])])))),128))])])])],64)}}},[["__scopeId","data-v-06503faf"]]),oc=w({__name:"noLogin",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"nologin pr fmid fdc"},[e.createElementVNode("view",{class:"title f40 b"},"登录即可体验完整功能"),e.createElementVNode("navigator",{url:"/pages/login/loginPhone",class:"button btn pro bar black mt60"},"手机号登录")]))},[["__scopeId","data-v-99a2748e"]]);let ic={};ic={data:()=>({is_show:"none"}),watch:{show(e){this.is_show=this.show}},created(){this.swipeaction=this.getSwipeAction(),this.swipeaction&&Array.isArray(this.swipeaction.children)&&this.swipeaction.children.push(this)},mounted(){this.is_show=this.show},methods:{closeSwipe(e){this.autoClose&&this.swipeaction&&this.swipeaction.closeOther(this)},change(e){this.$emit("change",e.open),this.is_show!==e.open&&(this.is_show=e.open)},appTouchStart(e){const{clientX:t}=e.changedTouches[0];this.clientX=t,this.timestamp=(new Date).getTime()},appTouchEnd(e,t,n,a){const{clientX:o}=e.changedTouches[0];let i=Math.abs(this.clientX-o),s=(new Date).getTime()-this.timestamp;i<40&&s<300&&this.$emit("click",{content:n,index:t,position:a})},onClickForPC(e,t,n){}}};const sc=e=>{(e.$wxs||(e.$wxs=[])).push("wxsswipe"),(e.$wxsModules||(e.$wxsModules={})).wxsswipe="afd46426"},rc=e=>{(e.$renderjs||(e.$renderjs=[])).push("renderswipe"),(e.$renderjsModules||(e.$renderjsModules={})).renderswipe="5a1e922e"},cc={mixins:[ic,{},{}],emits:["click","change"],props:{show:{type:String,default:"none"},disabled:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},threshold:{type:Number,default:20},leftOptions:{type:Array,default:()=>[]},rightOptions:{type:Array,default:()=>[]}},unmounted(){this.__isUnmounted=!0,this.uninstall()},methods:{uninstall(){this.swipeaction&&this.swipeaction.children.forEach(((e,t)=>{e===this&&this.swipeaction.children.splice(t,1)}))},getSwipeAction(e="uniSwipeAction"){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};sc(cc),rc(cc);const lc=w(cc,[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-swipe"},[e.createElementVNode("view",{class:"uni-swipe_box","change:prop":t.wxsswipe.showWatch,prop:e.wp(t.is_show),"data-threshold":a.threshold,"data-disabled":a.disabled,onTouchstart:n[2]||(n[2]=(...e)=>t.wxsswipe.touchstart&&t.wxsswipe.touchstart(...e)),onTouchmove:n[3]||(n[3]=(...e)=>t.wxsswipe.touchmove&&t.wxsswipe.touchmove(...e)),onTouchend:n[4]||(n[4]=(...e)=>t.wxsswipe.touchend&&t.wxsswipe.touchend(...e))},[e.createElementVNode("view",{class:"uni-swipe_button-group button-group--left"},[e.renderSlot(t.$slots,"left",{},(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.leftOptions,((a,o)=>(e.openBlock(),e.createElementBlock("view",{key:o,style:e.normalizeStyle({backgroundColor:a.style&&a.style.backgroundColor?a.style.backgroundColor:"#C7C6CD"}),class:"uni-swipe_button button-hock",onTouchstart:n[0]||(n[0]=e.withModifiers(((...e)=>t.appTouchStart&&t.appTouchStart(...e)),["stop"])),onTouchend:e.withModifiers((e=>t.appTouchEnd(e,o,a,"left")),["stop"]),onClick:e.withModifiers((e=>t.onClickForPC(o,a,"left")),["stop"])},[e.createElementVNode("text",{class:"uni-swipe_button-text",style:e.normalizeStyle({color:a.style&&a.style.color?a.style.color:"#FFFFFF",fontSize:a.style&&a.style.fontSize?a.style.fontSize:"16px"})},e.toDisplayString(a.text),5)],44,["onTouchend","onClick"])))),128))]),!0)]),e.createElementVNode("view",{class:"uni-swipe_text--center"},[e.renderSlot(t.$slots,"default",{},void 0,!0)]),e.createElementVNode("view",{class:"uni-swipe_button-group button-group--right"},[e.renderSlot(t.$slots,"right",{},(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.rightOptions,((a,o)=>(e.openBlock(),e.createElementBlock("view",{key:o,style:e.normalizeStyle({backgroundColor:a.style&&a.style.backgroundColor?a.style.backgroundColor:"#C7C6CD"}),class:"uni-swipe_button button-hock",onTouchstart:n[1]||(n[1]=e.withModifiers(((...e)=>t.appTouchStart&&t.appTouchStart(...e)),["stop"])),onTouchend:e.withModifiers((e=>t.appTouchEnd(e,o,a,"right")),["stop"]),onClick:e.withModifiers((e=>t.onClickForPC(o,a,"right")),["stop"])},[e.createElementVNode("text",{class:"uni-swipe_button-text",style:e.normalizeStyle({color:a.style&&a.style.color?a.style.color:"#FFFFFF",fontSize:a.style&&a.style.fontSize?a.style.fontSize:"16px"})},e.toDisplayString(a.text),5)],44,["onTouchend","onClick"])))),128))]),!0)])],40,["change:prop","prop","data-threshold","data-disabled"])])}],["__scopeId","data-v-29c4877d"]]);const uc=w({name:"uniSwipeAction",data:()=>({}),created(){this.children=[]},methods:{resize(){},closeAll(){this.children.forEach((e=>{e.is_show="none"}))},closeOther(e){this.openItem&&this.openItem!==e&&(this.openItem.is_show="none"),this.openItem=e}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",null,[e.renderSlot(t.$slots,"default")])}]]);var dc={exports:{}};!function(e){e.exports=function(){function e(e,t){var n,a=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)),a}function t(t){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach((function(e){s(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function d(e,t,n){return(d=u()?Reflect.construct.bind():function(e,t,n){var a=[null];return a.push.apply(a,t),t=new(Function.bind.apply(e,a)),n&&l(t,n.prototype),t}).apply(null,arguments)}function m(e){var t="function"==typeof Map?new Map:void 0;return function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)}(e)}function p(e,t){if(null==e)return{};var n,a=function(e,t){if(null==e)return{};for(var n,a={},o=Object.keys(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){var t=u();return function(){var n,a=c(e);if(n=t?(n=c(this).constructor,Reflect.construct(a,arguments,n)):a.apply(this,arguments),a=this,n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return h(a)}}function v(e,t){return y(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,o,i=[],s=!0,r=!1;try{for(n=n.call(e);!(s=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);s=!0);}catch(c){r=!0,o=c}finally{try{s||null==n.return||n.return()}finally{if(r)throw o}}return i}}(e,t)||C(e,t)||I()}function _(e){return function(e){if(Array.isArray(e))return k(e)}(e)||E(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){if(Array.isArray(e))return e}function E(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e,t){var n;if(e)return"string"==typeof e?k(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function I(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(e,t){var n,a,o,i,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return o=!(a=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return a=e.done,e},e:function(e){o=!0,n=e},f:function(){try{a||null==s.return||s.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(s=C(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var T={SDK_READY:"sdkStateReady",SDK_NOT_READY:"sdkStateNotReady",SDK_DESTROY:"sdkDestroy",MESSAGE_RECEIVED:"onMessageReceived",ROOM_CUSTOM_DATA_RECEIVED:"onRoomCustomDataReceived",MESSAGE_MODIFIED:"onMessageModified",MESSAGE_REVOKED:"onMessageRevoked",MESSAGE_READ_BY_PEER:"onMessageReadByPeer",MESSAGE_READ_RECEIPT_RECEIVED:"onMessageReadReceiptReceived",MESSAGE_EXTENSIONS_UPDATED:"onMessageExtensionsUpdated",MESSAGE_EXTENSIONS_DELETED:"onMessageExtensionsDeleted",MESSAGE_REACTIONS_UPDATED:"onMessageReactionsUpdated",CONVERSATION_LIST_UPDATED:"onConversationListUpdated",TOTAL_UNREAD_MESSAGE_COUNT_UPDATED:"onTotalUnreadMessageCountUpdated",CONVERSATION_GROUP_LIST_UPDATED:"onConversationGroupListUpdated",CONVERSATION_IN_GROUP_UPDATED:"onConversationInGroupUpdated",GROUP_LIST_UPDATED:"onGroupListUpdated",GROUP_ATTRIBUTES_UPDATED:"groupAttributesUpdated",GROUP_COUNTER_UPDATED:"onGroupCounterUpdated",TOPIC_CREATED:"onTopicCreated",TOPIC_DELETED:"onTopicDeleted",TOPIC_UPDATED:"onTopicUpdated",PROFILE_UPDATED:"onProfileUpdated",USER_STATUS_UPDATED:"onUserStatusUpdated",BLACKLIST_UPDATED:"blacklistUpdated",FRIEND_LIST_UPDATED:"onFriendListUpdated",FRIEND_GROUP_LIST_UPDATED:"onFriendGroupListUpdated",FRIEND_APPLICATION_LIST_UPDATED:"onFriendApplicationListUpdated",MY_FOLLOWERS_LIST_UPDATED:"onMyFollowersListUpdated",MY_FOLLOWING_LIST_UPDATED:"onMyFollowingListUpdated",MUTUAL_FOLLOWERS_LIST_UPDATED:"onMutualFollowersListUpdated",KICKED_OUT:"kickedOut",ERROR:"error",NET_STATE_CHANGE:"netStateChange",ALL_RECEIVE_MESSAGE_OPT_UPDATED:"onAllReceiveMessageOptUpdated"},M={MSG_TEXT:"TIMTextElem",MSG_IMAGE:"TIMImageElem",MSG_SOUND:"TIMSoundElem",MSG_AUDIO:"TIMSoundElem",MSG_FILE:"TIMFileElem",MSG_FACE:"TIMFaceElem",MSG_VIDEO:"TIMVideoFileElem",MSG_GEO:"TIMLocationElem",MSG_LOCATION:"TIMLocationElem",MSG_GRP_TIP:"TIMGroupTipElem",MSG_GRP_SYS_NOTICE:"TIMGroupSystemNoticeElem",MSG_CUSTOM:"TIMCustomElem",MSG_MERGER:"TIMRelayElem",MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",CONV_C2C:"C2C",CONV_GROUP:"GROUP",CONV_TOPIC:"TOPIC",CONV_SYSTEM:"@TIM#SYSTEM",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,CONV_MARK_TYPE_STAR:1,CONV_MARK_TYPE_UNREAD:2,CONV_MARK_TYPE_FOLD:4,CONV_MARK_TYPE_HIDE:8,GRP_PRIVATE:"Private",GRP_WORK:"Private",GRP_PUBLIC:"Public",GRP_CHATROOM:"ChatRoom",GRP_MEETING:"ChatRoom",GRP_AVCHATROOM:"AVChatRoom",GRP_COMMUNITY:"Community",GRP_ROOM:"Room",GRP_LIVE:"Live",GRP_MBR_ROLE_OWNER:"Owner",GRP_MBR_ROLE_ADMIN:"Admin",GRP_MBR_ROLE_MEMBER:"Member",GRP_MBR_ROLE_CUSTOM:"Custom",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,GRP_TIP_BAN_AVCHATROOM_MEMBER:10,GRP_TIP_UNBAN_AVCHATROOM_MEMBER:11,MSG_REMIND_ACPT_AND_NOTE:"AcceptAndNotify",MSG_REMIND_ACPT_NOT_NOTE:"AcceptNotNotify",MSG_REMIND_DISCARD:"Discard",RECEIVE_WITH_OFFLINE_PUSH_EXCEPT_AT:"AcceptNotNotifyExceptAt",NOT_RECEIVE_OFFLINE_PUSH_EXCEPT_AT:"AcceptNotNotifyExceptAt",NOT_RECEIVE_MSG_EXCEPT_AT:"NotReceiveMsgExceptAt",GENDER_UNKNOWN:"Gender_Type_Unknown",GENDER_FEMALE:"Gender_Type_Female",GENDER_MALE:"Gender_Type_Male",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",KICKED_OUT_REST_API:"REST_API_Kick",ALLOW_TYPE_ALLOW_ANY:"AllowType_Type_AllowAny",ALLOW_TYPE_NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_TYPE_DENY_ANY:"AllowType_Type_DenyAny",FORBID_TYPE_NONE:"AdminForbid_Type_None",FORBID_TYPE_SEND_OUT:"AdminForbid_Type_SendOut",JOIN_OPTIONS_FREE_ACCESS:"FreeAccess",JOIN_OPTIONS_NEED_PERMISSION:"NeedPermission",JOIN_OPTIONS_DISABLE_APPLY:"DisableApply",JOIN_STATUS_SUCCESS:"JoinedSuccess",JOIN_STATUS_ALREADY_IN_GROUP:"AlreadyInGroup",JOIN_STATUS_WAIT_APPROVAL:"WaitAdminApproval",INVITE_OPTIONS_DISABLE_INVITE:"DisableInvite",INVITE_OPTIONS_NEED_PERMISSION:"NeedPermission",INVITE_OPTIONS_FREE_ACCESS:"FreeAccess",GRP_PROFILE_OWNER_ID:"ownerID",GRP_PROFILE_CREATE_TIME:"createTime",GRP_PROFILE_LAST_INFO_TIME:"lastInfoTime",GRP_PROFILE_MEMBER_NUM:"memberNum",GRP_PROFILE_MAX_MEMBER_NUM:"maxMemberNum",GRP_PROFILE_JOIN_OPTION:"joinOption",GRP_PROFILE_INVITE_OPTION:"inviteOption",GRP_PROFILE_INTRODUCTION:"introduction",GRP_PROFILE_NOTIFICATION:"notification",GRP_PROFILE_MUTE_ALL_MBRS:"muteAllMembers",SNS_ADD_TYPE_SINGLE:"Add_Type_Single",SNS_ADD_TYPE_BOTH:"Add_Type_Both",SNS_DELETE_TYPE_SINGLE:"Delete_Type_Single",SNS_DELETE_TYPE_BOTH:"Delete_Type_Both",SNS_APPLICATION_TYPE_BOTH:"Pendency_Type_Both",SNS_APPLICATION_SENT_TO_ME:"Pendency_Type_ComeIn",SNS_APPLICATION_SENT_BY_ME:"Pendency_Type_SendOut",SNS_APPLICATION_AGREE:"Response_Action_Agree",SNS_APPLICATION_AGREE_AND_ADD:"Response_Action_AgreeAndAdd",SNS_CHECK_TYPE_BOTH:"CheckResult_Type_Both",SNS_CHECK_TYPE_SINGLE:"CheckResult_Type_Single",SNS_TYPE_NO_RELATION:"CheckResult_Type_NoRelation",SNS_TYPE_A_WITH_B:"CheckResult_Type_AWithB",SNS_TYPE_B_WITH_A:"CheckResult_Type_BWithA",SNS_TYPE_BOTH_WAY:"CheckResult_Type_BothWay",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",MSG_AT_ALL:"__kImSDK_MesssageAtALL__",READ_ALL_C2C_MSG:"readAllC2CMessage",READ_ALL_GROUP_MSG:"readAllGroupMessage",READ_ALL_MSG:"readAllMessage",USER_STATUS_UNKNOWN:0,USER_STATUS_ONLINE:1,USER_STATUS_OFFLINE:2,USER_STATUS_UNLOGINED:3,IOS_OFFLINE_PUSH_NO_SOUND:"push.no_sound",IOS_OFFLINE_PUSH_DEFAULT_SOUND:"default"},N={NEW_INVITATION_RECEIVED:"newInvitationReceived",INVITEE_ACCEPTED:"ts_invitee_accepted",INVITEE_REJECTED:"ts_invitee_rejected",INVITATION_CANCELLED:"ts_invitation_cancelled",INVITATION_TIMEOUT:"ts_invitation_timeout",INVITATION_MODIFIED:"ts_invitation_modified",ACTION_TYPE_UNKNOWN:0,ACTION_TYPE_INVITE:1,ACTION_TYPE_CANCEL_INVITE:2,ACTION_TYPE_ACCEPT_INVITE:3,ACTION_TYPE_REJECT_INVITE:4,ACTION_TYPE_INVITE_TIMEOUT:5},w=(i(F,[{key:"use",value:function(e){if("function"!=typeof e)throw"middleware must be a function";return this.cache.push(e),this}},{key:"next",value:function(e){if(this.middlewares&&0<this.middlewares.length)return this.middlewares.shift().call(this,this.options,this.next.bind(this))}},{key:"run",value:function(e){return this.middlewares=this.cache.map((function(e){return e})),this.options=e,this.next()}}]),F),D=(i(G,[{key:"equal",value:function(e){return null!==e&&this.low===e.low&&this.high===e.high}},{key:"toString",value:function(){var e=Number(this.high).toString(16),t=Number(this.low).toString(16);if(t.length<8)for(var n=8-t.length;n;)t="0"+t,n--;return e+t}}]),G),b={TEST:{CHINA:{DEFAULT:"wss://wss-dev.tim.qq.com"},OVERSEA:{DEFAULT:"wss://wss-dev.tim.qq.com"},SINGAPORE:{DEFAULT:"wss://wsssgp-dev.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr-dev.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger-dev.im.qcloud.com"},IND:{DEFAULT:"wss://wssind-dev.im.qcloud.com"},JPN:{DEFAULT:"wss://wssjpn-dev.im.qcloud.com"},USA:{DEFAULT:"wss://wssusa-dev.im.qcloud.com"},INDONESIA:{DEFAULT:"wss://wssidn-dev.im.qcloud.com"}},PRODUCTION:{CHINA:{DEFAULT0:"wss://*w4c.my-imcloud.com",DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.tim.qq.com",STAT:"https://events.im.qcloud.com",ANYCAST:"wss://162.14.13.203"},OVERSEA:{DEFAULT0:"wss://*w4c.my-imcloud.com",DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.my-imcloud.com",STAT:"https://api.my-imcloud.com"},SINGAPORE:{DEFAULT0:"wss://*w4s.my-imcloud.com",DEFAULT:"wss://wsssgp.im.qcloud.com",BACKUP:"wss://wsssgp.my-imcloud.com",STAT:"https://apisgp.my-imcloud.com",ANYCAST:"wss://162.14.19.159"},KOREA:{DEFAULT0:"wss://*w4k.my-imcloud.com",DEFAULT:"wss://wsskr.im.qcloud.com",BACKUP:"wss://wsskr.my-imcloud.com",STAT:"https://apikr.my-imcloud.com",ANYCAST:"wss://162.14.13.104"},GERMANY:{DEFAULT0:"wss://*w4g.my-imcloud.com",DEFAULT:"wss://wssger.im.qcloud.com",BACKUP:"wss://wssger.my-imcloud.com",STAT:"https://apiger.my-imcloud.com",ANYCAST:"wss://162.14.3.17"},IND:{DEFAULT0:"wss://*w4i.my-imcloud.com",DEFAULT:"wss://wssind.my-imcloud.com",BACKUP:"wss://wssind.im.qcloud.com",STAT:"https://apiind.my-imcloud.com",ANYCAST:"wss://162.14.18.188"},JPN:{DEFAULT0:"wss://*w4j.my-imcloud.com",DEFAULT:"wss://wssjpn.im.qcloud.com",BACKUP:"wss://wssjpn.my-imcloud.com",STAT:"https://apijpn.my-imcloud.com"},USA:{DEFAULT0:"wss://*w4u.my-imcloud.com",DEFAULT:"wss://wssusa.im.qcloud.com",BACKUP:"wss://wssusa.my-imcloud.com",STAT:"https://apiusa.my-imcloud.com",ANYCAST:"wss://162.14.10.42"},INDONESIA:{DEFAULT0:"wss://*w4y.my-imcloud.com",DEFAULT:"wss://wssidn.im.qcloud.com",BACKUP:"wss://wssidn.my-imcloud.com",STAT:"https://apiidn.my-imcloud.com",ANYCAST:"wss://43.129.34.169"}}},L={ANDROID:2,IOS:3,MAC:4,WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,IPAD:13,UNI_NATIVE_APP:15,DONUT_NATIVE_APP:19,NS_NATIVE_APP:20,RN_NATIVE_APP:21},P="1.7.3",A=537048168,R="CHINA",O={HOST:{CURRENT:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://events.im.qcloud.com"},setCurrent:function(){this.CURRENT=b.PRODUCTION[0<arguments.length&&void 0!==arguments[0]?arguments[0]:R]}},NAME:{OPEN_IM:"openim",OPEN_IM_MSG_EXT:"openim_msg_ext_http_svc",GRP:"group_open_http_svc",GRP_AV:"group_open_avchatroom_http_svc",GRP_COMMUNITY:"million_group_open_http_svc",GRP_ATTR:"group_open_attr_http_svc",FD:"sns",PROFILE:"profile",RECENT_CONTACT:"recentcontact",PIC:"openpic",BIG_GRP_NO_AUTH:"group_open_http_noauth_svc",BIG_GRP_POLLING:"group_open_long_polling_http_svc",BIG_GRP_POLLING_NO_AUTH:"group_open_long_polling_http_noauth_svc",IM_OPEN_STAT:"imopenstat",WEB_IM:"webim",IM_COS_SIGN:"im_cos_sign_svr",CUSTOM_UPLOAD:"im_cos_msg",HEARTBEAT:"heartbeat",IM_OPEN_PUSH:"im_open_push",IM_OPEN_STATUS:"im_open_status",IM_LONG_MSG:"im_long_msg",IM_CONFIG_MANAGER:"im_sdk_config_mgr",STAT_SERVICE:"StatSvc",OVERLOAD_PUSH:"OverLoadPush",IM_MSG_AUDIT_MGR:"im_msg_audit_mgr",TUIROOM_SVR:"tui_room_svr",IM_OPEN_TRANSLATE:"im_open_translate",IM_OPEN_SPEECH:"im_open_speech",MSG_SEARCH:"message_search",FOLLOW:"follow",OFFLINE_PUSH_REPORT:"offline_push_report",IM_MSG_LOGIC:"im_msg_db_logic"}},V={SEARCH_GRP_SNS:new D(0,Math.pow(2,1)).toString(),AV_HISTORY_MSG:new D(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new D(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new D(0,Math.pow(2,4)).toString(),AV_MBR_LIST:new D(0,Math.pow(2,6)).toString(),USER_STATUS:new D(0,Math.pow(2,7)).toString(),CONV_MARK:new D(0,Math.pow(2,9)).toString(),CONV_GROUP:new D(0,Math.pow(2,10)).toString(),AV_BAN_MBR:new D(0,Math.pow(2,11)).toString(),MSG_EXT:new D(0,Math.pow(2,13)).toString(),GRP_COUNTER:new D(0,Math.pow(2,15)).toString(),PLUGIN_TRANSLATE:new D(Math.pow(2,6)).toString(),PLUGIN_VOICE_TO_TEXT:new D(Math.pow(2,7)).toString(),PLUGIN_CS:new D(Math.pow(2,8)).toString(),PLUGIN_PUSH:new D(Math.pow(2,9)).toString(),PLUGIN_BOT:new D(Math.pow(2,10)).toString(),MSG_REACTION:new D(Math.pow(2,16)).toString(),FOLLOW:new D(Math.pow(2,20)).toString()},B="group_profile",x=["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember","InviteJoinOption"],U=["Role","JoinTime","MsgSeq","MsgFlag"];function G(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;a(this,G),this.high=e,this.low=t}function F(){a(this,F),this.cache=[],this.options=null}O.HOST.setCurrent(R);for(var Y,H="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),Z=H&&"function"==typeof wx.createGamePortal,q="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),j="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),J="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),X="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),K="undefined"!=typeof jd&&"function"==typeof jd.getSystemInfoSync,z="undefined"!=typeof uni&&"undefined"==typeof window&&!0,W=H&&"object"===n(wx.miniapp),Q="undefined"!=typeof uni,$=H||q||j||J||X||z||K,ee="undefined"==typeof window&&!$&&void 0!==Le&&void 0!==Le.NativeScriptGlobals,te=void 0!==Le&&(void 0!==Le.nativeModuleProxy||void 0!==Le.ReactNative),ne="undefined"!=typeof uni?!$:"undefined"!=typeof window&&!$&&!te,ae=q?qq:j?tt:J?swan:X?my:H?wx:z?uni:K?jd:{},oe=ne&&window&&window.navigator&&window.navigator.userAgent||"",ie=(K="WEB",/(micromessenger|webbrowser)/i.test(oe)?K="WEB":q?K="QQ_MP":j?K="TT_MP":J?K="BAIDU_MP":X?K="ALI_MP":H?K=W?"DONUT_NATIVE_APP":"WX_MP":z?K="UNI_NATIVE_APP":ee?K="NS_NATIVE_APP":te&&(K="RN_NATIVE_APP"),L[K]),se=(W=/iPad/i.test(oe),ee=/iPhone/i.test(oe)&&!W,K=/iPod/i.test(oe),ee||W||K),re=(ee=oe.match(/OS (\d+)_/i))&&ee[1]?ee[1]:null,ce=/Android/i.test(oe),le=(W=oe.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i))?(K=W[1]&&parseFloat(W[1]),ee=W[2]&&parseFloat(W[2]),K&&ee?parseFloat(W[1]+"."+W[2]):K||null):null,ue=(W=!(ee=/Edge/i.test(oe))&&/Chrome/i.test(oe),/MSIE/.test(oe)||-1<oe.indexOf("Trident")&&-1<oe.indexOf("rv:11.0")),de=K=!(K=(K=/MSIE\s(\d+)\.\d/.exec(oe))&&parseFloat(K[1]))&&/Trident\/7.0/i.test(oe)&&/rv:11.0/.test(oe)?11:K,me=(K=/Safari/i.test(oe)&&!W&&!ce&&!ee,/Windows/i.test(oe)),pe=/MAC OS X/i.test(oe),he=ne&&"undefined"!=typeof Worker&&!ue,ge=ce||se,fe=ne&&void 0!==window.tencent_cloud_im_csig_flutter_for_web_25F_cy,ve="undefined"!=typeof window&&void 0!==window.navigator&&(W=window.navigator.standalone,!(!se||W||K)),_e="undefined"!=typeof console?console:void 0!==Le&&Le.console?Le.console:"undefined"!=typeof window&&window.console?window.console:{},ye=function(){},Ee=["assert","clear","count","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],Ce=Ee.length;Ce--;)Y=Ee[Ce],console[Y]||(_e[Y]=ye);function ke(){var e=new Date;return e.setTime(Ne()),e}function Ie(){Me=0}function Se(){return Math.floor(Ne()/1e3)}var Te=_e,Me=0,Ne=function(){return(new Date).getTime()+Me},we=0;function De(){return Yt()?"%c Chat %c":"Chat"}function be(){var e=ke();return e.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){var t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(e.getMilliseconds())}var Pe={arguments2String:function(e){var t="";if(1===e.length)t=e[0];else for(var n=0,a=e.length;n<a;n++){if(mt(e[n]))try{t+=pt(e[n])?JSON.stringify(e[n],["message","code"]):JSON.stringify(e[n])}catch(o){t+=o?o.message:"";break}else t+=e[n];t+=" "}return t},_exec:function(e,t){Yt()?Te[e](De(),"background:#0abf5b; padding:1px; border-radius:3px; color: #fff","background:transparent",be(),t):Te[e]("".concat(De()," ").concat(be()," ").concat(t))},d:function(){var e;we<=-1&&(e=this.arguments2String(arguments),this._exec("debug",e))},l:function(){var e;we<=0&&(e=this.arguments2String(arguments),this._exec("log",e))},log:function(){var e;we<=0&&(e=this.arguments2String(arguments),this._exec("log",e))},i:function(){var e;we<=1&&(e=this.arguments2String(arguments),this._exec("info",e))},w:function(){var e;we<=2&&(e=this.arguments2String(arguments),this._exec("warn",e))},e:function(){var e;we<=3&&(e=this.arguments2String(arguments),this._exec("error",e))},setLevel:function(e){e<4&&this._exec("log","set level from "+we+" to "+e),we=e},getLevel:function(){return we}},Ae={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},Re={NICK:"".concat(ee="Tag_Profile_IM_","Nick"),GENDER:"".concat(ee,"Gender"),BIRTHDAY:"".concat(ee,"BirthDay"),LOCATION:"".concat(ee,"Location"),SELFSIGNATURE:"".concat(ee,"SelfSignature"),ALLOWTYPE:"".concat(ee,"AllowType"),LANGUAGE:"".concat(ee,"Language"),AVATAR:"".concat(ee,"Image"),MESSAGESETTINGS:"".concat(ee,"MsgSettings"),ADMINFORBIDTYPE:"".concat(ee,"AdminForbidType"),LEVEL:"".concat(ee,"Level"),ROLE:"".concat(ee,"Role")},Oe={GROUP:"".concat("Tag_SNS_IM_","Group"),REMARK:"".concat("Tag_SNS_IM_","Remark"),ADDSOURCE:"".concat("Tag_SNS_IM_","AddSource"),ADDWORDING:"".concat("Tag_SNS_IM_","Wording"),ADDTIME:"".concat("Tag_SNS_IM_","AddTime")},Ve={UNKNOWN:"".concat(W="Gender_Type_","Unknown"),FEMALE:"".concat(W,"Female"),MALE:"".concat(W,"Male")},Be={NONE:"".concat("AdminForbid_Type_","None"),SEND_OUT:"".concat("AdminForbid_Type_","SendOut")},xe={NEED_CONFIRM:"".concat("AllowType_Type_","NeedConfirm"),ALLOW_ANY:"".concat("AllowType_Type_","AllowAny"),DENY_ANY:"".concat("AllowType_Type_","DenyAny")},Ue="JoinedSuccess",Ge="WaitAdminApproval",Fe="@TOPIC#_",Ye=Object.prototype.hasOwnProperty;function He(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(Ke(e)){for(var t in e)if(Ye.call(e,t))return!1;return!0}return!!(Ze(e)||qe(e)||je(e))&&0===e.size}function Ze(e){return"map"===ht(e)}function qe(e){return"set"===ht(e)}function je(e){return"file"===ht(e)}function Je(e){return null!==e&&("number"==typeof e&&!isNaN(+e)||"object"===n(e)&&e.constructor===Number)}function Xe(e){return null!==e&&"object"===n(e)}function Ke(e){if("object"===n(e)&&null!==e){if(null===(e=Object.getPrototypeOf(e)))return 1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return e===t}}function ze(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===ht(e)}function We(e){return"function"==typeof e}function Qe(e){return"filelist"===ht(e)}function $e(e){return"string"==typeof e&&(e=e[0],!/[^a-zA-Z0-9]/.test(e))}function et(e,t,n,a){if(!mt(e)||!mt(t))return 0;for(var o,i=0,s=Object.keys(t),r=0,c=s.length;r<c;r++)if(o=s[r],!(dt(t[o])||n&&n.includes(o)))if(mt(e[o])&&mt(t[o]))i+=et(e[o],t[o],n,a);else{if(a&&a.includes(t[o]))continue;e[o]!==t[o]&&(e[o]=t[o],i+=1)}return i}function nt(e,t){var n,a=new Map,o=S(e.entries());try{for(o.s();!(n=o.n()).done;){var i=v(n.value,2),s=i[0],r=i[1];r&&a.set(s,t?JSON.stringify(r):JSON.parse(JSON.stringify(r)))}}catch(c){o.e(c)}finally{o.f()}return a}function at(e){if(0===e.length)return 0;for(var t=0,n=0,a="undefined"!=typeof document&&void 0!==document.characterSet?document.characterSet:"UTF-8";void 0!==e[t];)n+=e[t++].charCodeAt[t]<=255?1:!1===a?3:2;return n}function ot(e){return e=e||99999999,Math.round(Math.random()*e)}function it(){for(var e="",t=32;0<t;--t)e+=gt[Math.floor(Math.random()*ft)];return e}function st(e,t){for(var n in e)if(e[n]===t)return 1}function rt(e){return-1===e.indexOf("http://")||-1===e.indexOf("https://")?"https://"+e:e.replace(/https|http/,"https")}function ct(e){if(0===Object.getOwnPropertyNames(e).length)return Object.create(null);var t,a,o=Array.isArray(e)?[]:Object.create(null);for(a in e)null!==e[a]?void 0!==e[a]?(t=n(e[a]),0<=["string","number","function","boolean"].indexOf(t)?o[a]=e[a]:o[a]=ct(e[a])):o[a]=void 0:o[a]=null;return o}var lt=["url"],ut=function(e){return"string"==typeof e},dt=function(e){return void 0===e},mt=function(e){return ze(e)||Xe(e)},pt=function(e){return e instanceof Error},ht=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()},gt=(Date.now||(Date.now=function(){return(new Date).getTime()}),"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"),ft=gt.length,vt={};function _t(e,t){var n;return!(!ze(e)||!ze(t))&&(n=!1,t.forEach((function(t){var a=t.key,o=(t=t.value,e.find((function(e){return e.key===a})));o?o.value!==t&&(o.value=t,n=!0):(e.push({key:a,value:t}),n=!0)})),n)}function yt(e){return He(e)?[]:e.filter((function(e){return!0===e.isModified}))}function Et(e){return He(e)?[]:e.filter((function(e){return!1===e.isModified}))}function Ct(e){return e===M.GRP_AVCHATROOM}function kt(e){var t=e.type;return e=e.groupID,t===M.GRP_COMMUNITY||"".concat(e).startsWith("@TGS#_")&&!"".concat(e).includes(Fe)}function It(e){return"".concat(e).startsWith("@TGS#_")&&"".concat(e).includes(Fe)}function St(e){return ut(e)&&e.slice(0,3)===M.CONV_C2C}function Tt(e){return ut(e)&&e.slice(0,5)===M.CONV_GROUP}function Mt(e){return ut(e)&&e===M.CONV_SYSTEM}function Nt(e,t){var n={};return Object.keys(e).forEach((function(a){n[a]=t(e[a],a)})),n}function wt(e){return te?Promise.resolve({width:0,height:0}):$?new Promise((function(t,n){ae.getImageInfo({src:e,success:function(e){t({width:e.width,height:e.height})},fail:function(){t({width:0,height:0})}})})):ue&&9===de?Promise.resolve({width:0,height:0}):new Promise((function(t,n){var a=new Image;a.onload=function(){t({width:this.width,height:this.height}),a=null},a.onerror=function(){t({width:0,height:0}),a=null},a.src=e}))}function Dt(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return"".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e())}function bt(){var e=ce?"android":se?"ios":me?"windows":pe?"mac":"unknown";if($)try{var t=ae.getSystemInfoSync().platform;void 0!==t&&(e=t)}catch(n){}return e}function Lt(e,t){e=e.split("."),t=t.split(".");for(var n=Math.max(e.length,t.length);e.length<n;)e.push("0");for(;t.length<n;)t.push("0");for(var a=0;a<n;a++){var o=parseInt(e[a]),i=parseInt(t[a]);if(i<o)return 1;if(o<i)return-1}return 0}function Pt(e){var t=void 0===(t=e.originUrl)?void 0:t,n=e.originWidth,a=e.originHeight,o=(e=void 0===(e=e.min)?198:e,{url:void 0,width:0,height:0});return((n=parseInt(n))<=(a=parseInt(a))?n:a)<=e?(o.url=t,o.width=n,o.height=a):(a<=n?(o.width=Math.ceil(n*e/a),o.height=e):(o.width=e,o.height=Math.ceil(a*e/n)),a=t&&-1<t.indexOf("?")?"".concat(t,"&"):"".concat(t,"?"),o.url="".concat(a,198===e?"imageView2/3/w/198/h/198":"imageView2/3/w/720/h/720")),dt(t)?p(o,lt):o}function At(e){var t=e[2];e[2]=e[1],e[1]=t;for(var n=0;n<e.length;n++)e[n].setType(n)}function Rt(e){return(e=e.servcmd).slice(e.indexOf(".")+1)}function Ot(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)}function Vt(e,t){return e.includes(t)}function Bt(e,t){return e.includes(t)}function xt(e){return e.split(Fe)[0]}var Ut=function(e,t,n){if(dt(t))return"";switch(e){case M.MSG_TEXT:return t.text;case M.MSG_IMAGE:return n?"[Image]":"[图片]";case M.MSG_LOCATION:return n?"[Location]":"[位置]";case M.MSG_AUDIO:return n?"[Voice]":"[语音]";case M.MSG_VIDEO:return n?"[Video]":"[视频]";case M.MSG_FILE:return n?"[File]":"[文件]";case M.MSG_CUSTOM:return n?"[Custom Messages]":"[自定义消息]";case M.MSG_GRP_TIP:return n?"[Group Notification]":"[群提示消息]";case M.MSG_GRP_SYS_NOTICE:return n?"[Group System Message]":"[群系统通知]";case M.MSG_FACE:return n?"[Animated Sticker]":"[动画表情]";case M.MSG_MERGER:return n?"[Chat Record]":"[聊天记录]";default:return""}};function Gt(e){return e===M.MSG_TEXT||e===M.MSG_CUSTOM||e===M.MSG_LOCATION||e===M.MSG_FACE}function Ft(e){var t=[];if(ut(e)){var n=e.length;if(0!==n)for(var a=n-1;0<=a;a--)"1"===e[a]&&t.push(Math.pow(2,n-a-1))}return t}function Yt(){return!ue&&!$}function Ht(e){return"the length of userIDList cannot exceed ".concat(e)}function Zt(e){var t;if(ze(e)&&0!==e.length)return t=0,e.forEach((function(e){t+=e})),t.toFixed(0)}function qt(e){var t;if(ze(e)&&0!==e.length)return t=0,e.forEach((function(e){t+=e})),(t/e.length).toFixed(0)}function jt(e,t,n){t=!(1<arguments.length&&void 0!==t)||t,n=!(2<arguments.length&&void 0!==n)||n;var a=Date.now();return t?n?"".concat(a-e," ms"):"".concat(Math.round((a-e)/1e3)," s"):n?a-e:Math.round((a-e)/1e3)}function Jt(e){return!!(e&&1<e)}function Xt(e,t,n,a){var o,i,s;return void 0===t||(o=!0,t.required&&He(e)&&(Pe.e("[".concat(n,'] Missing required params: "').concat(a,'".')),o=!1),He(e)||(i=ht(e))===(s=t.type.toLowerCase())||"asyncfunction"===i&&"function"===s||(Pe.e("[".concat(n,'] Invalid params: type check failed for "').concat(a,'". Expected ').concat(t.type,".")),o=!1),t.validator&&!t.validator(e,n,a)&&(Pe.e("[".concat(n,'] Invalid params: custom validator check failed for "').concat(a,'".')),o=!1),o)}function Kt(e){return!(!e||!(St(e)||Tt(e)||Mt(e))&&((e=Pn("InvalidConversationID",e))&&Pe.w(e),1))}function zt(e){""!==e.desc&&""!==Pn("API_REFER")&&Pe.w("[".concat(e.api,"] | ").concat(e.paramName," | ").concat(e.desc,", ").concat(Pn("API_REFER")).concat(e.api))}function Wt(){return Pn("StringRequiredLog")}function Qt(e){return Pn("NonEmptyStringRequiredLog",e)}function $t(){return Pn("NumberRequiredLog")}function en(){return Pn("UndefinedNotAllowedLog")}function tn(){return Pn("FileRequiredLog")}function nn(){return Pn("FunctionRequiredLog")}function an(){return Pn("ArrayRequiredLog")}function on(){return Pn("NonEmptyArrayLog")}function sn(){return Pn("CallbackMissingLog")}function rn(){return Pn("PositiveIntegerRequiredLog")}function cn(e,t){return Pn("StringNotLongerThanLog",e,t)}function ln(e,t){return Pn("NumberGreaterOrEqualLog",e,t)}function un(e){return Pn("KeyValueStringRequiredLog",e)}function dn(){return Pn("PlainObjectRequiredLog")}function mn(){return Pn("NonEmptyContentRequiredLog")}function pn(){return Pn("FileNotSelectedLog")}function hn(){return Pn("MessageInstanceRequiredLog")}function gn(){return Pn("NonAnonymousFunctionLog")}function fn(){return Pn("MessageExtensionNotAvailableLog")}function vn(){return Pn("MessageReactionRequiredLog")}function _n(e,t){return Pn("MaximumArrayLengthLog",e,t)}function yn(e){return{code:0,data:e||{}}}function En(e){return Promise.resolve(yn(e))}function Cn(e){var t,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return e instanceof On?(n&&null!==Bn&&Bn.emit(T.ERROR,e),Promise.reject(e)):e instanceof Error?(t=new On({code:Vn.UNCAUGHT_ERROR}),n&&null!==Bn&&Bn.emit(T.ERROR,t),Promise.reject(t)):dt(e)||dt(e.code)?Promise.reject(new On({code:Vn.UNCAUGHT_ERROR})):(t=new On(e),n&&null!==Bn&&Bn.emit(T.ERROR,t),Promise.reject(t))}var kn,In="unSend",Sn="success",Tn="fail",Mn="notStart",Nn="pending",wn="resolved",Dn="rejected",bn={type:"Boolean",required:!0},Ln={type:"number",required:!0},Pn=null,An={hookGetAPITips:function(e){Pn=e},login:{userID:K={type:"String",required:!0},userSig:K},addToBlacklist:{userIDList:ee={type:"Array",required:!0}},removeFromBlacklist:{userIDList:ee},on:[{name:"eventName",type:"String",validator:function(e,t,n){return"string"==typeof e&&0!==e.length||(zt({api:t,paramName:n,desc:Qt(n)}),!1)}},{name:"handler",type:"Function",validator:function(e,t,n){return"function"!=typeof e?(zt({api:t,paramName:n,desc:nn()}),!1):(""===e.name&&zt({api:t,paramName:n,desc:gn()}),!0)}}],once:[{name:"eventName",type:"String",validator:function(e,t,n){return"string"==typeof e&&0!==e.length||(zt({api:t,paramName:n,desc:Qt(n)}),!1)}},{name:"handler",type:"Function",validator:function(e,t,n){return"function"!=typeof e?(zt({api:t,paramName:n,desc:nn()}),!1):(""===e.name&&zt({api:t,paramName:n,desc:gn()}),!0)}}],off:[{name:"eventName",type:"String",validator:function(e,t,n){return"string"==typeof e&&0!==e.length||(zt({api:t,paramName:n,desc:Qt(n)}),!1)}},{name:"handler",type:"Function",validator:function(e,t,n){return"function"!=typeof e?(zt({api:t,paramName:n,desc:nn()}),!1):(""===e.name&&zt({api:t,paramName:n,desc:gn()}),!0)}}],sendMessage:[t({name:"message"},W={type:"Object",required:!0})],setMessageExtensions:[t(t({name:"message"},W),{},{validator:function(e,t,n){return e.status===Sn&&!0===e.isSupportExtension||(zt({api:t,paramName:n,desc:fn()}),!1)}}),t({name:"extensions"},ee)],getMessageExtensions:[t(t({name:"message"},W),{},{validator:function(e,t,n){return e.status===Sn&&!0===e.isSupportExtension||(zt({api:t,paramName:n,desc:fn()}),!1)}})],deleteMessageExtensions:[t(t({name:"message"},W),{},{validator:function(e,t,n){return e.status===Sn&&!0===e.isSupportExtension||(zt({api:t,paramName:n,desc:fn()}),!1)}})],addMessageReaction:[t(t({name:"message"},W),{},{validator:function(e,t,n){return e.status===Sn||(zt({api:t,paramName:n,desc:vn()}),!1)}}),t({name:"reactionID"},K)],removeMessageReaction:[t(t({name:"message"},W),{},{validator:function(e,t,n){return e.status===Sn||(zt({api:t,paramName:n,desc:vn()}),!1)}}),t({name:"reactionID"},K)],getMessageReactions:{messageList:t({},ee)},getAllUserListOfMessageReaction:{message:t(t({},W),{},{validator:function(e,t,n){return e.status===Sn||(zt({api:t,paramName:n,desc:vn()}),!1)}}),reactionID:t({},K),nextSeq:{type:"Number"},count:{type:"Number"}},getMessageList:{conversationID:t(t({},K),{},{validator:Kt}),nextReqMessageID:{type:"String"},count:{type:"Number",validator:function(e,t,n){return!(!dt(e)&&!/^[1-9][0-9]*$/.test(e)&&(zt({api:t,paramName:n,desc:rn()}),1))}}},getMessageListHopping:{conversationID:t(t({},K),{},{validator:Kt}),sequence:{type:"Number"},time:{type:"Number"},direction:{type:"Number",validator:function(e,t,n){return!(!dt(e)&&0!==e&&1!==e&&(zt({api:t,paramName:n,desc:Pn("0Or1RequiredLog")}),1))}},count:{type:"Number",validator:function(e,t,n){return!(!dt(e)&&!/^[1-9][0-9]*$/.test(e)&&(zt({api:t,paramName:n,desc:rn}),1))}}},setMessageRead:{conversationID:t(t({},K),{},{validator:Kt})},setAllMessageRead:{scope:{type:"String",required:!1,validator:function(e,t,n){return!e||-1!==[M.READ_ALL_C2C_MSG,M.READ_ALL_GROUP_MSG,M.READ_ALL_MSG].indexOf(e)||(zt({api:t,paramName:n,desc:Pn("ValidScopeRequired")}),!1)}}},getConversationProfile:[t(t({name:"conversationID"},K),{},{validator:Kt})],clearHistoryMessage:[t(t({name:"conversationID"},K),{},{validator:Kt})],pinConversation:{conversationID:t(t({},K),{},{validator:Kt}),isPinned:t({},bn)},setConversationDraft:{conversationID:t(t({},K),{},{validator:Kt}),draftText:{type:"String",validator:function(e,t,n){return!!ut(e)||(zt({api:t,paramName:n,desc:Wt()}),!1)}}},setConversationCustomData:{conversationIDList:t({},ee),customData:{type:"String",validator:function(e,t,n){return ut(e)?!(256<e.length&&(zt({api:t,paramName:n,desc:cn(n,256)}),1)):(zt({api:t,paramName:n,desc:Wt()}),!1)}}},markConversation:{conversationIDList:t({},ee),markType:{type:"number",validator:function(e,t,n){return Je(e)?e<=0?(zt({api:t,paramName:n,desc:Pn("NumberGreaterThanLog",n,0)}),!1):!(e>=Math.pow(2,64)&&(zt({api:t,paramName:n,desc:Pn("NumberLessThanLog",n,"Math.pow(2,64)")}),1)):(zt({api:t,paramName:n,desc:$t()}),!1)}},enableMark:t({},bn)},createConversationGroup:{conversationIDList:t({},ee),groupName:t(t({},K),{},{validator:function(e,t,n){return!(!e||32<e.length&&(zt({api:t,paramName:n,desc:cn(n,32)}),1))}})},deleteConversationGroup:[t({name:"groupName"},K)],renameConversationGroup:{oldName:t({},K),newName:t(t({},K),{},{validator:function(e,t,n){return!(!e||32<e.length&&(zt({api:t,paramName:n,desc:cn(n,32)}),1))}})},addConversationsToGroup:{conversationIDList:t({},ee),groupName:t({},K)},deleteConversationsFromGroup:{conversationIDList:t({},ee),groupName:t({},K)},getGroupList:{groupProfileFilter:{type:"Array"}},getGroupProfile:{groupID:K,groupCustomFieldFilter:{type:"Array"},memberCustomFieldFilter:{type:"Array"}},getGroupProfileAdvance:{groupIDList:ee},createGroup:{name:K},joinGroup:{groupID:K,type:{type:"String"},applyMessage:{type:"String"}},quitGroup:[t({name:"groupID"},K)],handleApplication:{message:W,handleAction:K,handleMessage:{type:"String"}},changeGroupOwner:{groupID:K,newOwnerID:K},updateGroupProfile:{groupID:K,muteAllMembers:{type:"Boolean"}},dismissGroup:[t({name:"groupID"},K)],searchGroupByID:[t({name:"groupID"},K)],getGroupOnlineMemberCount:[t({name:"groupID"},K)],initGroupAttributes:{groupID:K,groupAttributes:t(t({},W),{},{validator:function(e,t,n){var a=!0;return Object.keys(e).forEach((function(o){if(!ut(e[o]))return zt({api:t,paramName:n,desc:un("value")}),a=!1})),a}})},setGroupAttributes:{groupID:K,groupAttributes:t(t({},W),{},{validator:function(e,t,n){var a=!0;return Object.keys(e).forEach((function(o){if(!ut(e[o]))return zt({api:t,paramName:n,desc:un("value")}),a=!1})),a}})},deleteGroupAttributes:{groupID:K,keyList:{type:"Array",validator:function(e,t,n){var a;return dt(e)||!ze(e)?(zt({api:t,paramName:n,desc:an()}),!1):!!He(e)||(a=!0,e.forEach((function(e){if(!ut(e))return zt({api:t,paramName:n,desc:Pn("StringArrayRequiredLog")}),a=!1})),a)}}},getGroupAttributes:{groupID:K,keyList:{type:"Array",validator:function(e,t,n){var a;return dt(e)||!ze(e)?(zt({api:t,paramName:n,desc:an()}),!1):!!He(e)||(a=!0,e.forEach((function(e){if(!ut(e))return zt({api:t,paramName:n,desc:un("key")}),a=!1})),a)}}},setGroupCounters:{groupID:K,counters:W},increaseGroupCounter:{groupID:K,key:K,value:Ln},decreaseGroupCounter:{groupID:K,key:K,value:Ln},getGroupCounters:{groupID:K},getGroupMemberList:{groupID:K,count:{type:"Number"}},getGroupMemberProfile:{groupID:K,userIDList:ee,memberCustomFieldFilter:{type:"Array"}},addGroupMember:{groupID:K,userIDList:ee},setGroupMemberRole:{groupID:K,userID:K,role:K},setGroupMemberMuteTime:{groupID:K,userID:K,muteTime:{type:"Number",validator:function(e){return 0<=e}}},setGroupMemberNameCard:{groupID:K,userID:{type:"String"},nameCard:{type:"String",validator:function(e,t,n){return ut(e)?(e.length,!0):(zt({api:t,paramName:n,desc:Wt()}),!1)}}},setGroupMemberCustomField:{groupID:K,userID:{type:"String"},memberCustomField:ee},deleteGroupMember:{groupID:K},markGroupMemberList:{groupID:K,markType:{type:"number",validator:function(e,t,n){return Je(e)?!(e<1e3&&(zt({api:t,paramName:n,desc:ln(n,1e3)}),1)):(zt({api:t,paramName:n,desc:$t()}),!1)}},userIDList:t({},ee),enableMark:t({},bn)},createTextMessage:{to:K,conversationType:K,payload:t(t({},W),{},{validator:function(e,t,n){return Ke(e)?ut(e.text)?0!==e.text.length||(zt({api:t,paramName:"payload.text",desc:mn()}),!1):(zt({api:t,paramName:"payload.text",desc:Wt()}),!1):(zt({api:t,paramName:n,desc:dn()}),!1)}})},createTextAtMessage:{to:K,conversationType:K,payload:t(t({},W),{},{validator:function(e,t,n){return Ke(e)?ut(e.text)?0===e.text.length?(zt({api:t,paramName:"payload.text",desc:mn()}),!1):!(e.atUserList&&!ze(e.atUserList)&&(zt({api:t,paramName:"payload.atUserList",desc:an()}),1)):(zt({api:t,paramName:"payload.text",desc:Wt()}),!1):(zt({api:t,paramName:n,desc:dn()}),!1)}})},createCustomMessage:{to:K,conversationType:K,payload:t(t({},W),{},{validator:function(e,t,n){return Ke(e)?e.data&&!ut(e.data)?(zt({api:t,paramName:"payload.data",desc:Wt()}),!1):e.description&&!ut(e.description)?(zt({api:t,paramName:"payload.description",desc:Wt()}),!1):!(e.extension&&!ut(e.extension)&&(zt({api:t,paramName:"payload.extension",desc:Wt()}),1)):(zt({api:t,paramName:"payload",desc:dn()}),!1)}})},createImageMessage:{to:K,conversationType:K,payload:t(t({},W),{},{validator:function(e,t,n){if(!Ke(e))return zt({api:t,paramName:n,desc:dn()}),!1;if(dt(e.file))return zt({api:t,paramName:"payload.file",desc:en()}),!1;if(ne){if(!(e.file instanceof HTMLInputElement||je(e.file)))return Ke(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(zt({api:t,paramName:"payload.file",desc:pn()}),!1):(zt({api:t,paramName:"payload.file",desc:tn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return zt({api:t,paramName:"payload.file",desc:pn()}),!1}return!0},onProgress:{type:"Function",required:!1,validator:function(e,t,n){return dt(e)&&zt({api:t,paramName:n,desc:sn()}),!0}}})},createAudioMessage:{to:K,conversationType:K,payload:t(t({},W),{},{validator:function(e,t,n){return!!Ke(e)||(zt({api:t,paramName:n,desc:dn()}),!1)}}),onProgress:{type:"Function",required:!1,validator:function(e,t,n){return dt(e)&&zt({api:t,paramName:n,desc:sn()}),!0}}},createVideoMessage:{to:K,conversationType:K,payload:t(t({},W),{},{validator:function(e,t,n){if(!Ke(e))return zt({api:t,paramName:n,desc:dn()}),!1;if(dt(e.file))return zt({api:t,paramName:"payload.file",desc:en()}),!1;if(ne){if(!(e.file instanceof HTMLInputElement||je(e.file)))return Ke(e.file)&&"undefined"!=typeof uni?!!je(e.file.tempFile)||(zt({api:t,paramName:"payload.file",desc:pn()}),!1):(zt({api:t,paramName:"payload.file",desc:tn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return zt({api:t,paramName:"payload.file",desc:pn()}),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e,t,n){return dt(e)&&zt({api:t,paramName:n,desc:sn()}),!0}}},createFaceMessage:{to:K,conversationType:K,payload:t(t({},W),{},{validator:function(e,t,n){return Ke(e)?Je(e.index)?!!ut(e.data)||(zt({api:t,paramName:"payload.data",desc:Wt()}),!1):(zt({api:t,paramName:"payload.index",desc:$t()}),!1):(zt({api:t,paramName:n,desc:dn()}),!1)}})},createFileMessage:{to:K,conversationType:K,payload:t(t({},W),{},{validator:function(e,t,n){if(!Ke(e))return zt({api:t,paramName:n,desc:dn()}),!1;if(dt(e.file))return zt({api:t,paramName:"payload.file",desc:en()}),!1;if(ne){if(!(e.file instanceof HTMLInputElement||je(e.file)))return Ke(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(zt({api:t,paramName:"payload.file",desc:pn()}),!1):(zt({api:t,paramName:"payload.file",desc:tn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return zt({api:t,paramName:"payload.file",desc:pn()}),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e,t,n){return dt(e)&&zt({api:t,paramName:n,desc:sn()}),!0}}},createLocationMessage:{to:K,conversationType:K,payload:t(t({},W),{},{validator:function(e,t,n){return Ke(e)?ut(e.description)?Je(e.longitude)?!!Je(e.latitude)||(zt({api:t,paramName:"payload.latitude",desc:$t()}),!1):(zt({api:t,paramName:"payload.longitude",desc:$t()}),!1):(zt({api:t,paramName:"payload.description",desc:Wt()}),!1):(zt({api:t,paramName:n,desc:dn()}),!1)}})},createMergerMessage:{to:K,conversationType:K,payload:t(t({},W),{},{validator:function(e,t,n){var a;return He(e.messageList)?(zt({api:t,paramName:"payload.messageList",desc:on()}),!1):He(e.compatibleText)?(zt({api:t,paramName:"payload.compatibleText",desc:Qt("compatibleText")}),!1):(a=!1,e.messageList.forEach((function(e){e.status===Tn&&(a=!0)})),!a||(zt({api:t,paramName:"payload.messageList",desc:Pn("MergeFailedMessageLog")}),!1))}})},revokeMessage:[t(t({name:"message"},W),{},{validator:function(e,t,n){return He(e)?(zt({api:t,paramName:n,desc:hn()}),!1):e.conversationType===M.CONV_SYSTEM?(zt({api:t,paramName:n,desc:Pn("MessageCanBeRevokedDesc")}),!1):!0!==e.isRevoked||(zt({api:t,paramName:n,desc:Pn("MessageRevokedLog")}),!1)}})],deleteMessage:[t(t({name:"messageList"},ee),{},{validator:function(e,t,n){return!He(e)||(zt({api:t,paramName:n,desc:on()}),!1)}})],translateText:{sourceTextList:ee,sourceLanguage:K,targetLanguage:K},convertVoiceToText:{message:t(t({},W),{},{validator:function(e,t,n){return He(e)?(zt({api:t,paramName:n,desc:hn()}),!1):e.type===M.MSG_AUDIO&&e.status===Sn||(zt({api:t,paramName:n,desc:Pn("AudioMessageRequiredLog")}),!1)}})},modifyMessage:[t(t({name:"message"},W),{},{validator:function(e,t,n){return He(e)?(zt({api:t,paramName:n,desc:hn()}),!1):e.conversationType===M.CONV_SYSTEM?(zt({api:t,paramName:n,desc:Pn("MessageCanBeModifiedLog")}),!1):!0!==e._onlineOnlyFlag||(zt({api:t,paramName:n,desc:Pn("OnlineMessageNotSupportLog")}),!1)}})],searchCloudMessages:{keywordList:{type:"Array",required:!1,validator:function(e,t,n){return!(e&&(ze(e)?0===e.length?(zt({api:t,paramName:n,desc:on()}),1):5<e.length&&(zt({api:t,paramName:n,desc:_n(n,5)}),1):(zt({api:t,paramName:n,desc:an()}),1)))}},keywordListMatchType:{type:"String",required:!1,validator:function(e,t,n){return!e||"or"===e||"and"===e||zt({api:t,paramName:n,desc:"".concat(e," is invalid match type")})}},senderUserIDList:{type:"Array",required:!1,validator:function(e,t,n){return!(e&&(ze(e)?(0===e.length&&zt({api:t,paramName:n,desc:on()}),5<e.length&&(zt({api:t,paramName:n,desc:_n(n,5)}),1)):(zt({api:t,paramName:n,desc:an()}),1)))}},messageTypeList:{type:"Array",required:!1,validator:function(e,t,n){if(!e)return!0;if(!ze(e))return zt({api:t,paramName:n,desc:an()}),!1;0===e.length&&zt({api:t,paramName:n,desc:on()});var a=[M.MSG_TEXT,M.MSG_IMAGE,M.MSG_AUDIO,M.MSG_FILE,M.MSG_VIDEO,M.MSG_LOCATION,M.MSG_CUSTOM,M.MSG_MERGER];return!(0<e.filter((function(e){return-1===a.indexOf(e)})).length&&(zt({api:t,paramName:n,desc:Pn("ContainsUnsupportedMessageTypeLog",n)}),1))}},conversationID:{type:"String",required:!1,validator:function(e){return!e||Kt(e)}},timePosition:{type:"number",required:!1,validator:function(e,t,n){return!(e&&e<0&&(zt({api:t,paramName:n,desc:ln(n,0)}),1))}},timePeriod:{type:"number",required:!1,validator:function(e,t,n){return!(e&&e<0&&(zt({api:t,paramName:n,desc:ln(n,0)}),1))}},cursor:{type:"String",required:!1}},getUserProfile:{userIDList:{type:"Array",validator:function(e,t,n){return ze(e)?(0===e.length&&zt({api:t,paramName:n,desc:on()}),!0):(zt({api:t,paramName:n,desc:an()}),!1)}}},updateMyProfile:{profileCustomField:{type:"Array",validator:function(e,t,n){return!!dt(e)||!!ze(e)||(zt({api:t,paramName:n,desc:an()}),!1)}}},setSelfStatus:{customStatus:{type:"String",validator:function(e,t,n){return!!ut(e)||(zt({api:t,paramName:n,desc:Wt()}),!1)}}},getUserStatus:{userIDList:{type:"Array",validator:function(e,t,n){return ze(e)?0!==e.length||(zt({api:t,paramName:n,desc:on()}),!1):(zt({api:t,paramName:n,desc:an()}),!1)}}},subscribeUserStatus:{userIDList:{type:"Array",validator:function(e,t,n){return ze(e)?0!==e.length||(zt({api:t,paramName:n,desc:on()}),!1):(zt({api:t,paramName:n,desc:an()}),!1)}}},unsubscribeUserStatus:{userIDList:{type:"Array",validator:function(e,t,n){return!e||!!ze(e)||(zt({api:t,paramName:n,desc:an()}),!1)}}},addFriend:{to:K,source:{type:"String",required:!0,validator:function(e,t,n){return!(!e||(e.startsWith("AddSource_Type_")?8<e.replace("AddSource_Type_","").length&&(zt({api:t,paramName:n,desc:cn("keyword",8)}),1):(zt({api:t,paramName:n,desc:Pn("SourcePrefixLog")}),1)))}},remark:{type:"String",required:!1,validator:function(e,t,n){return!(ut(e)&&96<e.length&&(zt({api:t,paramName:n,desc:cn(n,96)}),1))}}},deleteFriend:{userIDList:ee},checkFriend:{userIDList:ee},getFriendProfile:{userIDList:ee},updateFriend:{userID:K,remark:{type:"String",required:!1,validator:function(e,t,n){return!(ut(e)&&96<e.length&&(zt({api:t,paramName:n,desc:cn(n,96)}),1))}},friendCustomField:{type:"Array",required:!1,validator:function(e,t,n){var a;return!e||(ze(e)?(a=!0,e.forEach((function(e){return ut(e.key)&&-1!==e.key.indexOf("Tag_SNS_Custom")?ut(e.value)?8<e.key.replace("Tag_SNS_Custom_","").length?(zt({api:t,paramName:n,desc:cn("keyword",8)}),a=!1):void 0:(zt({api:t,paramName:n,desc:un("value")}),a=!1):(zt({api:t,paramName:n,desc:Pn("FriendCustomFieldPrefixLog")}),a=!1)})),a):(zt({api:t,paramName:n,desc:an()}),!1))}}},acceptFriendApplication:{userID:K},refuseFriendApplication:{userID:K},deleteFriendApplication:{userID:K},createFriendGroup:{name:K},deleteFriendGroup:{name:K},addToFriendGroup:{name:K,userIDList:ee},removeFromFriendGroup:{name:K,userIDList:ee},renameFriendGroup:{oldName:K,newName:K},sendMessageReadReceipt:[{name:"messageList",type:"Array",validator:function(e,t,n){return ze(e)?0!==e.length||(zt({api:t,paramName:n,desc:on()}),!1):(zt({api:t,paramName:n,desc:an()}),!1)}}],getMessageReadReceiptList:[{name:"messageList",type:"Array",validator:function(e,t,n){return ze(e)?0!==e.length||(zt({api:t,paramName:n,desc:on()}),!1):(zt({api:t,paramName:n,desc:an()}),!1)}}],createTopicInCommunity:{groupID:K,topicName:K},deleteTopicFromCommunity:{groupID:K,topicIDList:{type:"Array",validator:function(e,t,n){return!e||!!ze(e)||(zt({api:t,paramName:n,desc:an()}),!1)}}},updateTopicProfile:{groupID:K,topicID:K},getTopicList:{groupID:K,topicIDList:{type:"Array",validator:function(e,t,n){return!e||!!ze(e)||(zt({api:t,paramName:n,desc:an()}),!1)}}},followUser:[t({name:"userIDList"},ee)],unfollowUser:[t({name:"userIDList"},ee)],getMyFollowingList:[t(t({name:"startIndex"},K),{},{required:!1})],getMyFollowersList:[t(t({name:"startIndex"},K),{},{required:!1})],getMutualFollowersList:[t(t({name:"startIndex"},K),{},{required:!1})],getUserFollowInfo:[t(t({name:"userIDList"},ee),{},{required:!1})],checkFollowType:[t({name:"userIDList"},ee)],addSignalingListener:[{name:"eventName",type:"String",validator:function(e,t,n){return"string"==typeof e&&0!==e.length||(zt({api:t,paramName:n,desc:Qt(n)}),!1)}},{name:"handler",type:"Function",validator:function(e,t,n){return"function"!=typeof e?(zt({api:t,paramName:n,desc:nn()}),!1):(""===e.name&&zt({api:t,paramName:n,desc:gn()}),!0)}}],removeSignalingListener:[{name:"eventName",type:"String",validator:function(e,t,n){return"string"==typeof e&&0!==e.length||(zt({api:t,paramName:n,desc:Qt(n)}),!1)}},{name:"handler",type:"Function",validator:function(e,t,n){return"function"!=typeof e?(zt({api:t,paramName:n,desc:nn()}),!1):(""===e.name&&zt({api:t,paramName:n,desc:gn()}),!0)}}],invite:{userID:K},inviteSync:[t(t({},W),{},{validator:function(e,t,n){return Ke(e)?!!ut(e.userID)||(zt({api:t,paramName:"options.userID",desc:Wt()}),!1):(zt({api:t,paramName:"options",desc:dn()}),!1)}}),{name:"successCb",type:"Function",required:!1,validator:function(e,t,n){return dt(e)&&zt({api:t,paramName:n,desc:nn()}),!0}},{name:"errorCb",type:"Function",required:!1,validator:function(e,t,n){return dt(e)&&zt({api:t,paramName:n,desc:nn()}),!0}}],inviteInGroup:{groupID:K,inviteeList:ee},inviteInGroupSync:[t(t({},W),{},{validator:function(e,t,n){return Ke(e)?ut(e.groupID)?!!ze(e.inviteeList)||(zt({api:t,paramName:"options.inviteeList",desc:an()}),!1):(zt({api:t,paramName:"options.groupID",desc:Wt()}),!1):(zt({api:t,paramName:"options",desc:dn()}),!1)}}),{name:"successCb",type:"Function",required:!1,validator:function(e,t,n){return dt(e)&&zt({api:t,paramName:n,desc:nn()}),!0}},{name:"errorCb",type:"Function",required:!1,validator:function(e,t,n){return dt(e)&&zt({api:t,paramName:n,desc:nn()}),!0}}],accept:{inviteID:K},reject:{inviteID:K},getSignalingInfo:[t(t({name:"message"},W),{},{validator:function(e,t,n){return!He(e)||(zt({api:t,paramName:n,desc:hn()}),!1)}})],modifyInvitation:{inviteID:K,data:K}},Rn={login:1,logout:1,getLoginUser:1,getServerTime:1,on:1,once:1,off:1,setLogLevel:1,registerPlugin:1,destroy:1,isReady:1,createTextMessage:1,createTextAtMessage:1,createImageMessage:1,createAudioMessage:1,createVideoMessage:1,createCustomMessage:1,createFaceMessage:1,createFileMessage:1,createLocationMessage:1,createMergerMessage:1,downloadMergerMessage:1,createForwardMessage:1,sendMessage:1,resendMessage:1,revokeMessage:1,deleteMessage:1,translateText:1,convertVoiceToText:1,modifyMessage:1,searchCloudMessages:1,sendMessageReadReceipt:1,getGroupMessageReadMemberList:1,getMessageReadReceiptList:1,setMessageExtensions:1,getMessageExtensions:1,deleteMessageExtensions:1,addMessageReaction:1,removeMessageReaction:1,getMessageReactions:1,getAllUserListOfMessageReaction:1,getMessageList:1,findMessage:1,getMessageListHopping:1,setMessageRead:1,setAllMessageRead:1,getConversationList:1,getConversationProfile:1,deleteConversation:1,setConversationDraft:1,pinConversation:1,getTotalUnreadMessageCount:1,setConversationCustomData:1,markConversation:1,createConversationGroup:1,getConversationGroupList:1,deleteConversationGroup:1,renameConversationGroup:1,addConversationsToGroup:1,deleteConversationsFromGroup:1,clearHistoryMessage:1,setMessageRemindType:1,setAllReceiveMessageOpt:1,getAllReceiveMessageOpt:1,getGroupList:1,getGroupProfile:1,createGroup:1,joinGroup:1,updateGroupProfile:1,quitGroup:1,dismissGroup:1,changeGroupOwner:1,searchGroupByID:1,getGroupApplicationList:1,handleGroupApplication:1,initGroupAttributes:1,setGroupAttributes:1,deleteGroupAttributes:1,getGroupAttributes:1,setGroupCounters:1,increaseGroupCounter:1,decreaseGroupCounter:1,getGroupCounters:1,getJoinedCommunityList:1,createTopicInCommunity:1,deleteTopicFromCommunity:1,updateTopicProfile:1,getTopicList:1,getGroupMemberProfile:1,getGroupMemberList:1,addGroupMember:1,deleteGroupMember:1,setGroupMemberNameCard:1,setGroupMemberMuteTime:1,setGroupMemberRole:1,setGroupMemberCustomField:1,getGroupOnlineMemberCount:1,markGroupMemberList:1,getMyProfile:1,getUserProfile:1,updateMyProfile:1,setSelfStatus:1,getUserStatus:1,subscribeUserStatus:1,unsubscribeUserStatus:1,getBlacklist:1,addToBlacklist:1,removeFromBlacklist:1,getFriendList:1,addFriend:1,deleteFriend:1,checkFriend:1,updateFriend:1,getFriendProfile:1,getFriendApplicationList:1,refuseFriendApplication:1,deleteFriendApplication:1,acceptFriendApplication:1,setFriendApplicationRead:1,getFriendGroupList:1,createFriendGroup:1,renameFriendGroup:1,deleteFriendGroup:1,addToFriendGroup:1,removeFromFriendGroup:1,followUser:1,unfollowUser:1,getMyFollowingList:1,getMyFollowersList:1,getMutualFollowersList:1,getUserFollowInfo:1,checkFollowType:1,callExperimentalAPI:1,addSignalingListener:1,removeSignalingListener:1,invite:1,inviteSync:1,inviteInGroup:1,inviteInGroupSync:1,cancel:1,accept:1,reject:1,getSignalingInfo:1,modifyInvitation:1},On=(r(oa,m(Error)),kn=f(oa),i(oa)),Vn={NO_SDKAPPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USERSIG:2003,NO_TINYID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,REPEAT_LOGIN:2025,COS_UNDETECTED:2040,COS_GET_SIG_FAIL:2041,MSG_SEND_FAIL:2100,MSG_SEND_FAIL_NOT_IN_AV:2101,MSG_INSTANCE_REQUIRED:2105,MSG_INVALID_CONV_TYPE:2106,MSG_F_IS_EMPTY:2108,MSG_ONPROGRESS_ERR:2109,MSG_REVOKE_FAIL:2110,MSG_DELETE_FAIL:2111,MSG_UNREAD_ALL_FAIL:2112,READ_RECEIPT_MSG_LIST_EMPTY:2114,MSG_SEND_GRP_WITH_TOPIC_FAIL:2115,CANNOT_DELETE_GRP_SYSTEM_NOTICE:2116,TRANSLATE_TEXT_FAIL:2117,VOICE_TO_TEXT_FAIL:2118,UNSUPPORTED_VOICE_FORMAT:2119,MSG_I_SELECT_F_FIRST:2251,MSG_I_TYPES_LIMIT:2252,MSG_I_SIZE_LIMIT:2253,MSG_A_UPLOAD_FAIL:2300,MSG_A_SIZE_LIMIT:2301,MSG_V_UPLOAD_FAIL:2350,MSG_V_SIZE_LIMIT:2351,MSG_V_TYPES_LIMIT:2352,MSG_F_UPLOAD_FAIL:2400,MSG_F_SELECT_F_FIRST:2401,MSG_F_SIZE_LIMIT:2402,MSG_F_URL_IS_EMPTY:2403,MSG_MERGER_TYPE_INVALID:2450,MSG_MERGER_KEY_INVALID:2451,MSG_MERGER_DOWNLOAD_FAIL:2452,MSG_FORWARD_TYPE_INVALID:2453,MSG_FORWARD_INVALID_ELEMENTS:2454,MSG_MODIFY_CONFLICT:2480,MSG_MODIFY_DISABLED_IN_AV:2481,CONV_NOT_FOUND:2500,USER_OR_GRP_NOT_FOUND:2501,CONV_UN_RECORDED_TYPE:2502,INVALID_CONV_ID:2503,ILLEGAL_GRP_TYPE:2600,ILLEGAL_GRP_ID:2602,CANNOT_FIND_GRP:2603,CANNOT_CHANGE_OWNER_IN_AV:2620,CANNOT_CHANGE_OWNER_TO_SELF:2621,MEMBER_NOT_IN_GRP:2623,JOIN_GRP_FAIL:2660,CANNOT_ADD_MEMBER_IN_AV:2661,CANNOT_JOIN_NON_AV_WITHOUT_LOGIN:2662,NOT_OWNER:2681,INVALID_MEMBER_ROLE:2683,CANNOT_SET_SELF_MEMBER_ROLE:2684,CANNOT_MUTE_SELF:2685,BAN_DURATION_INVALID:2686,OPERATION_NOT_SUPPORTED_IN_AV:2687,NOT_MY_FRIEND:2700,ALREADY_MY_FRIEND:2701,FRIEND_GRP_EXISTED:2710,FRIEND_GRP_NOT_EXIST:2711,FRIEND_APPLICATION_NOT_EXIST:2716,UPDATE_PROFILE_INVALID_PARAM:2721,UPDATE_PROFILE_NO_KEY:2722,CANNOT_ADD_SELF_TO_BLACKLIST:2742,NETWORK_ERROR:2800,NETWORK_TIMEOUT:2801,NO_NETWORK:2805,UNCAUGHT_ERROR:2903,INVALID_OPERATION:2905,INVALID_TRTC_CMD:2995,OVER_FREQUENCY_LIMIT:2996,NO_PROTOCOL:2997,NO_MODULE:2998,SDK_IS_NOT_READY:2999,LOGGING_IN:3e3,LOGIN_FAILED:3001,KICKED_OUT_MULT_DEVICE:3002,KICKED_OUT_MULT_ACCOUNT:3003,KICKED_OUT_USERSIG_EXPIRED:3004,LOGGED_OUT:3005,KICKED_OUT_REST_API:3006,ILLEGAL_TOPIC_ID:3021,NO_USE:3122,PROFANITY_FOUND:3123,OPTIONS_IS_EMPTY:3153,MSG_A2KEY_EXPIRED:20002,ACCOUNT_A2KEY_EXPIRED:70001,HELLO_ANSWER_KICKED_OUT:1002,OPEN_SERVICE_OVERLOAD_ERROR:60022,SIGNALING_INVALID_INVITE_ID:8010,SIGNALING_NO_PERMISSION:8011,SIGNALING_ALREADY_EXISTS:8012,INVALID_CANCEL_MESSAGE:8020,MSG_SEARCH_CURSOR_INVALID:27002,MSG_SEARCH_CURSOR_EXPIRED:27003},Bn=null,xn=(i(aa,[{key:"isLoggedIn",value:function(){return this._m.get(12).isLoggedIn()}},{key:"isOversea",value:function(){return this._m.get(12).isOversea()}},{key:"isPrivateNetWork",value:function(){var e=this._m.get(12);return e.isPrivateNetWork()&&!e.getFileDownloadProxy()}},{key:"getFileDownloadProxy",value:function(){return this._m.get(12).getFileDownloadProxy()}},{key:"getDowloadFileAuthKey",value:function(){return this._m.get(12).getDowloadFileAuthKey()}},{key:"getMyUserID",value:function(){return this._m.get(12).getUserID()}},{key:"getMyTinyID",value:function(){return this._m.get(12).getTinyID()}},{key:"getSDKAppID",value:function(){return this._m.get(12).getSDKAppID()}},{key:"isIntl",value:function(){return this._m.get(12).isIntl()}},{key:"isUsingChatCore",value:function(){return this._m.get(12).isUsingChatCore()}},{key:"isDevMode",value:function(){return this._m.get(12).isDevMode()}},{key:"get",value:function(e){return this._m.get(e)}},{key:"getPlatform",value:function(){return ie}},{key:"getCloudConfig",value:function(e){return this._m.get(23).getCloudConfig(e)}},{key:"emitOEvt",value:function(e,t){this._m.getOEmitInst().emit(e,t)}},{key:"emitIEvt",value:function(e,t){this._m.getIEmitInst().emit(e,t)}},{key:"getIEmitInst",value:function(){return this._m.getIEmitInst()}},{key:"req",value:function(e){return this._m.get(20).req(e)}},{key:"canIUse",value:function(e){return this._m.get(27).canIUse(e)}},{key:"getErrMsg",value:function(e,t,n){return this._m.getErrMsg(e,t,n)}},{key:"warn",value:function(e,t,n){(e=this.getErrMsg(e,t,n))&&Pe.w(e)}},{key:"noUse",value:function(e){var t=Vn.NO_USE;return Cn({code:t,message:this.getErrMsg(t,e)})}}]),Ln=aa,{LOGIN:"wslogin",LOGOUT:"wslogout",HELLO:"wshello",KICK_OTHER:"KickOther",SYNC_UNREAD_MSG:"getmsg",SEND_C2C_MSG:"sendmsg",SEND_GRP_MSG:"send_group_msg",GET_USER_PROFILE:"portrait_get_all",UPDATE_MY_PROFILE:"portrait_set",GET_BL:"black_list_get",ADD_TO_BL:"black_list_add",RM_FROM_BL:"black_list_delete",GET_FD_LIST:"friend_get",GET_FD_PROFILE:"friend_get_specified",CHECK_FD:"friend_check",DEL_FD:"friend_delete",ADD_FD:"friend_add",UPDATE_FD:"friend_update",RESPOND_FD_APPLICATION:"friend_response",GET_FD_APPLICATION_LIST:"pendency_get",DEL_FD_APPLICATION:"pendency_delete",REFUSE_FD_APPLICATION:"pendency_refuse",REPORT_FD_APPLICATION:"pendency_report",GET_FD_GRP_LIST:"group_get",CREATE_FD_GRP:"group_add",DEL_FD_GRP:"group_delete",UPDATE_FD_GRP:"group_update",REVOKE_C2C_MSG:"msgwithdraw",SET_C2C_MSG_READ:"msgreaded",SET_C2C_PEER_MUTE_NOTIFICATIONS:"set_c2c_peer_mute_notifications",GET_C2C_PEER_MUTE_NOTIFICATIONS:"get_c2c_peer_mute_notifications",GET_C2C_ROAMING_MSG:"getroammsg",GET_C2C_PEER_READ_TIME:"get_peer_read_time",DEL_C2C_MSG:"delete_c2c_msg_ramble",MODIFY_C2C_MSG:"modify_c2c_msg",MODIFY_C2C_MSG_EXT:"set_key_values",GET_C2C_MSG_EXT:"get_key_values",ADD_C2C_MSG_REACTION:"reaction_add",RM_C2C_MSG_REACTION:"reaction_del",GET_C2C_MSG_REACTIONS:"reaction_multi_stat",GET_C2C_MSG_REACTION_USER_LIST:"reaction_iterate",PAGING_GET_CONV_LIST:"page_get",DEL_CONV:"batch_delete",CLEAR_HISTORY_MSG:"clear_msg",PIN_CONV:"top",DEL_GROUP_AT_TIPS:"deletemsg",SET_CONV_CUSTOM_DATA:"set_conv_custom_data",MARK_CONV:"mark_contact",CREATE_CONV_GRP:"create_contact_group",DEL_CONV_GRP:"del_contact_group",RENAME_CONV_GRP:"update_contact_group",ADD_CONV_TO_GRP:"add_conv_to_group",DEL_CONV_FROM_GRP:"del_conv_from_group",GET_CONV_GRP_LIST:"get_contact_group",SEARCH_CONV_GRP_MARK:"search_contact_group",GET_GRP_LIST:"get_joined_group_list",GET_GRP_PROFILE:"get_group_self_member_info",CREATE_GRP:"create_group",DISMISS_GRP:"destroy_group",UPDATE_GRP_PROFILE:"modify_group_base_info",APPLY_JOIN_GRP:"apply_join_group",APPLY_JOIN_GRP_NOAUTH:"apply_join_group_noauth",QUIT_GRP:"quit_group",SEARCH_GRP:"get_group_public_info",CHANGE_GRP_OWNER:"change_group_owner",HANDLE_GRP_APPLICATION:"handle_apply_join_group",HANDLE_INVITE_JOIN_GRP:"handle_invite_join_permission_group",HANDLE_GRP_INVITATION:"handle_invite_join_group",REVOKE_GRP_MSG:"group_msg_recall",SET_GRP_MSG_READ:"msg_read_report",SET_ALL_MSG_READ:"read_all_unread_msg",GET_GRP_ROAMING_MSG:"group_msg_get",GET_READ_RECEIPT:"get_group_msg_receipt",SEND_READ_RECEIPT:"group_msg_receipt",SEND_C2C_READ_RECEIPT:"c2c_msg_read_receipt",GET_READ_RECEIPT_DETAIL:"get_group_msg_receipt_detail",GET_GRP_PENDENCY:"get_pendency",DEL_GRP_SYSTEM_NOTICE:"deletemsg",AV_POLLING:"get_msg",AV_NOAUTH_POLLING:"get_msg_noauth",GET_ONLINE_MBR_NUM:"get_online_member_num",DEL_GRP_MSG:"delete_group_ramble_msg_by_seq",MODIFY_GRP_MSG:"modify_group_msg",SET_GRP_ATTR:"set_group_attr",MODIFY_GRP_ATTR:"modify_group_attr",DEL_GRP_ATTR:"delete_group_attr",CLEAR_GRP_ATTR:"clear_group_attr",GET_GRP_ATTR:"get_group_attr",MODIFY_GRP_MSG_EXT:"group_set_key_values",GET_GRP_MSG_EXT:"group_get_key_values",GET_GRP_NOTIFY:"batch_get_group_notify",UPDATE_GRP_COUNTER:"update_group_counter",GET_GRP_COUNTER:"get_group_counter",ADD_GRP_MSG_REACTION:"group_reaction_add",RM_GRP_MSG_REACTION:"group_reaction_del",GET_GRP_MSG_REACTIONS:"group_reaction_multi_stat",GET_GRP_MSG_REACTION_USER_LIST:"group_reaction_iterate",GET_GRP_MBR_LIST:"get_group_member_info",GET_AV_MBR_LIST:"get_members",GET_GRP_MBR_PROFILE:"get_specified_group_member_info",ADD_GRP_MBR:"add_group_member",DEL_GRP_MBR:"delete_group_member",BAN_AV_MBR:"ban_group_member",MODIFY_GRP_MBR_INFO:"modify_group_member_info",MARK_AV_MBR_INFO:"modify_user_info",COS_SIGN:"cos",COS_PRE_SIG:"pre_sig",SIMPLE_COS_PRE_SIG:"simple_sig",GET_IMAGE_INFO:"get_imageinfo",GET_IP:"get_final_ip",VIDEO_COVER:"video_cover",SSO_STAT:"tim_web_report_v2",PING:"alive",MSG_PUSH:"msg_push",MSG_CLOUD_SEARCH:"query",MULTI_MSG_PUSH:"multi_msg_push_ws",MSG_PUSH_ACK:"ws_msg_push_ack",STATUS_FORCE_OFFLINE:"stat_forceoffline",UPLOAD_MERGER_MSG:"save_relay_json_msg",DOWNLOAD_MERGER_MSG:"get_relay_json_msg",FETCH_CLOUD_CTRL_CONFIG:"fetch_config",PUSHED_CLOUD_CTRL_CONFIG:"push_configv2",FETCH_COMMERCIAL_CONFIG:"fetch_imsdk_purchase_bitsv2",PUSHED_COMMERCIAL_CONFIG:"push_imsdk_purchase_bitsv2",OVERLOAD_NOTIFY:"notify2",CREATE_TOPIC:"create_topic",DEL_TOPIC:"destroy_topic",UPDATE_TOPIC_PROFILE:"modify_topic",GET_TOPIC_LIST:"get_topic",SET_SELF_STATUS:"ws_set_custom_status",GET_USER_STATUS:"ws_get_user_status",SUB_USER_STATUS:"ws_status_subscribe",UNSUB_USER_STATUS:"ws_status_unsubscribe",STAT_BACKGROUND:"ws_stat_background",STAT_FOREGROUND:"ws_stat_foreground",SET_TOKEN:"ws_stat_settoken",PUSH_REPORT:"uniapp_sdk_report",GET_PROFANITY_LIST:"get_local_words",TRANSLATE_TEXT:"ws_batch_trans_text",VOICE_TO_TEXT:"ws_sentence_recognition",FOLLOW:"follow_add",UNFOLLOW:"follow_delete",GET_FOLLOW:"follow_get",GET_FOLLOW_INFO:"follow_get_info",CHECK_FOLLOW_TYPE:"follow_check",SET_ALL_RECEIVE_MSG_OPT:"ws_set_do_not_disturb",GET_ALL_RECEIVE_MSG_OPT:"ws_get_do_not_disturb"}),Un="networkRTT",Gn="messageE2EDelay",Fn="sendMessageC2C",Yn="sendMessageGroup",Hn="sendMessageGroupAV",Zn="sendMessageRichMedia",qn="cosUpload",jn="messageReceivedGroup",Jn="messageReceivedGroupAVPush",Xn="messageReceivedGroupAVPull",Kn=(s(bn={},Un,2),s(bn,Gn,3),s(bn,Fn,4),s(bn,Yn,5),s(bn,Hn,6),s(bn,Zn,7),s(bn,jn,8),s(bn,Jn,9),s(bn,Xn,10),s(bn,qn,11),bn),zn={info:4,warning:5,error:6},Wn={wifi:1,"2g":2,"3g":3,"4g":4,"5g":5,unknown:6,none:7,online:8},Qn={login:4,plugin_search:16,plugin_translate:16,plugin_voice_to_text:16,plugin_cs:16,plugin_push:16,plugin_bot:16,plugin_emoji_reaction:16},$n=(i(na,[{key:"updateTimeStamp",value:function(){this.timestamp=Ne()}},{key:"start",value:function(e){return this._startts=e,this}},{key:"end",value:function(){var e,t=this,n=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this._sentFlag||(this._netMonitorModule&&(e=this._netMonitorModule.getNetworkType(),this.setNetworkType(e)),e=Ne(),0===this.costTime&&(this.costTime=e-this._startts),this.setMoreMessage("startts:".concat(this._startts," endts:").concat(e)),n?(this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)):setTimeout((function(){t._sentFlag=!0,t._eventStatModule&&t._eventStatModule.pushIn(t)}),0))}},{key:"setError",value:function(e){var t;return e instanceof Error?this._sentFlag||(t=!0,(t=this._netMonitorModule?this._netMonitorModule.isOnline():t)?(e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message)):this.setCode(Vn.NO_NETWORK),this.setLevel("error")):Pe.w("".concat(this._n,".setError value not instanceof Error, please check!")),this}},{key:"setCode",value:function(e){return dt(e)||this._sentFlag||("ECONNABORTED"===e&&(this.code=103),Je(e)?this.code=e:Pe.w("".concat(this._n,".setCode value not a number, please check!"),e,n(e))),this}},{key:"setMessage",value:function(e){return dt(e)||this._sentFlag||(Je(e)&&(this.message=e.toString()),ut(e)&&(this.message=e)),this}},{key:"setCostTime",value:function(e){return this.costTime=e,this}},{key:"setLevel",value:function(e){return dt(e)||this._sentFlag||(this.level=zn[e]),this}},{key:"setMoreMessage",value:function(e){return He(this.moreMessage)?this.moreMessage="".concat(e):this.moreMessage+=" ".concat(e),this}},{key:"setNetworkType",value:function(e){return dt(e)?Pe.w("".concat(this._n,".setNetworkType value is undefined, please check!")):(e=Wn[e.toLowerCase()],dt(e)||(this.networkType=e)),this}},{key:"getStartTs",value:function(){return this._startts}},{key:"setUIPlatform",value:function(e){return this.uiPlatform=e,this}},{key:"setExtension",value:function(e){return this.extension=e,this}},{key:"setEventType",value:function(e){return this.eventType=e,this}}],[{key:"bindEventStatModule",value:function(e){na.prototype._eventStatModule=e}},{key:"bindNetMonitorModule",value:function(e){na.prototype._netMonitorModule=e}}]),na),ea=(i(ta,[{key:"setText",value:function(e){this.content.text=e}},{key:"sendable",value:function(){return 0!==this.content.text.length}}]),ta);function ta(e){a(this,ta),this.type=M.MSG_TEXT,this.content={text:e.text||""}}function na(e){a(this,na),this._n="SSOLogData",this.eventType=Qn[e]||0,this.timestamp=0,this.networkType=8,this.code=0,this.message="",this.moreMessage="",this.extension=e,this.costTime=0,this.duplicate=!1,this.level=4,this.uiPlatform=void 0,this._sentFlag=!1,this._startts=Ne()}function aa(e){a(this,aa),this._m=e,this._n=""}function oa(e){a(this,oa),t=kn.call(this);var t,n=e.code,o=e.message;return e=e.data,t.code=n,o?t.message=o:t._getErrMsg&&(t.message=t._getErrMsg(t.code)),t.data=e||{},t}function ia(e,t,n,a){var o;if(a=3<arguments.length&&void 0!==a?a:[],e)return o=e,t&&(e.startsWith("http://")?o=e.replace(/^http:\/\/[^/]+/,t):e.startsWith("https://")&&(o=e.replace(/^https:\/\/[^/]+/,t))),n&&-1===o.indexOf("authKey=")&&ca(o,a)?(-1<o.indexOf("?")?"".concat(o,"&authKey="):"".concat(o,"?authKey=")).concat(n):o}function sa(e,t,n){return n=2<arguments.length&&void 0!==n?n:[],e===M.MSG_VIDEO?ca((t[0].content||t[0].payload).snapshotUrl,n)&&(t[0].content?(t[0].content.snapshotUrl=ra(t[0].content.snapshotUrl),t[0].content.thumbUrl=ra(t[0].content.thumbUrl)):(t[0].payload.snapshotUrl=ra(t[0].payload.snapshotUrl),t[0].payload.thumbUrl=ra(t[0].payload.thumbUrl))):e===M.MSG_FILE?ca((t[0].content||t[0].payload).fileUrl,n)&&(t[0].content?t[0].content.fileUrl=ra(t[0].content.fileUrl):t[0].payload.fileUrl=ra(t[0].payload.fileUrl)):e===M.MSG_MERGER&&(e=(n=t[0].content||t[0].payload).downloadKey,n=void 0===(n=n.messageList)?[]:n,He(void 0===e?"":e))&&n.forEach((function(e){sa(e.messageBody[0].type,e.messageBody)})),t}function ra(e){if(!e)return e;if(-1===e.indexOf("authKey="))return e;for(var t=(e=e.split("?"))[1].split("&"),n=0,a=0;a<t.length;a++)if(-1<t[a].indexOf("authKey=")){n=a;break}return t.splice(n,1),0<t.length?"".concat(e[0],"?").concat(t.join("&")):e[0]}function ca(e,t){var n=!1;if(e){var a=(e=e.match(/:\/\/([0-9]?\.)?(.[^/:]+)/))&&e[2]||"";if(a.includes("rich-dev"))return 1;for(var o=0;o<t.length;o++)if(a.endsWith(t[o])){n=!0;break}}return n}i(Oa,[{key:"_initImageInfoModel",value:function(){var e=this;this._ImageInfoModel=function(t){this.instanceID=ot(9999999),this.sizeType=t.type||0,this.type=0,this.size=t.size||0,this.width=t.width||0,this.height=t.height||0,this.imageUrl=t.imageUrl||t.url||"",this.url=ia(t.url||e._imageMemoryURL,e._fileDownloadProxy,e._authKey,e._fileDNList)},this._ImageInfoModel.prototype={setSizeType:function(e){this.sizeType=e},setType:function(e){this.type=e},setImageUrl:function(e){e&&(this.imageUrl=e)},getImageUrl:function(){return this.imageUrl}}}},{key:"initImageInfoArray",value:function(e){for(var t,n=0,a=null;n<=2;)t=dt(e)||dt(e[n])?{type:0,size:0,width:0,height:0,url:""}:e[n],(a=new this._ImageInfoModel(t)).setSizeType(n+1),a.setType(n),this.addImageInfo(a),n++;this.updateAccessSideImageInfoArray()}},{key:"updateImageInfoArray",value:function(e){for(var t,n=this.content.imageInfoArray.length,a=0;a<n;a++)t=this.content.imageInfoArray[a],e[a].size&&(t.size=e[a].size),e[a].url&&t.setImageUrl(e[a].url),e[a].width&&(t.width=e[a].width),e[a].height&&(t.height=e[a].height)}},{key:"_autoFixUrl",value:function(){for(var e=this.content.imageInfoArray.length,t="",n="",a=["http","https"],o=null,i=0;i<e;i++)this.content.imageInfoArray[i].url&&""!==(o=this.content.imageInfoArray[i]).imageUrl&&(n=o.imageUrl.slice(0,o.imageUrl.indexOf("://")+1),t=o.imageUrl.slice(o.imageUrl.indexOf("://")+1),a.indexOf(n)<0&&(n="https:"),this.content.imageInfoArray[i].setImageUrl([n,t].join("")))}},{key:"updatePercent",value:function(e){this._percent=e,1<this._percent&&(this._percent=1)}},{key:"updateImageFormat",value:function(e){this.content.imageFormat=Ae[e.toUpperCase()]||Ae.UNKNOWN}},{key:"createImageDataASURLInWeb",value:function(e){void 0!==e&&0<e.files.length&&(this._imageMemoryURL=window.URL.createObjectURL(e.files[0]))}},{key:"createImageDataASURL",value:function(e){e&&e.url&&(this._imageMemoryURL=e.url)}},{key:"replaceImageInfo",value:function(e,t){this.content.imageInfoArray[t]instanceof this._ImageInfoModel||(this.content.imageInfoArray[t]=e)}},{key:"addImageInfo",value:function(e){3<=this.content.imageInfoArray.length||this.content.imageInfoArray.push(e)}},{key:"updateAccessSideImageInfoArray",value:function(){var e=this.content.imageInfoArray,t=void 0===(t=(n=e[0]).width)?0:t,n=void 0===(n=n.height)?0:n;0!==t&&0!==n&&(At(e),Object.assign(e[2],Pt({originWidth:t,originHeight:n,min:720})))}},{key:"sendable",value:function(){return 0!==this.content.imageInfoArray.length&&""!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size}}]);var la=Oa,ua=(i(Ra,[{key:"sendable",value:function(){return null!==this.content}}]),Ra),da=(i(Aa,[{key:"updatePercent",value:function(e){this._percent=e,1<this._percent&&(this._percent=1)}},{key:"updateAudioUrl",value:function(e){this.content.remoteAudioUrl=e}},{key:"sendable",value:function(){return""!==this.content.remoteAudioUrl}}]),Aa),ma={from:!0,groupID:!0,groupName:!0,to:!0},pa=(i(Pa,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"remarkInfo":case"memberExtraInfo":case"onlineMemberInfo":break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;case"operatorInfo":t.content.operatorInfo={},t._initOperatorInfo(e[n]);break;case"memberInfoList":case"msgMemberInfo":t._updateMemberList(e[n]);break;case"memberNum":t.content[n]=e[n],t.content.memberCount=e[n];break;case"newGroupProfile":t.content.newGroupProfile={},t._initNewGroupProfile(e[n]);break;default:t.content[n]=e[n]}})),this.content.userIDList||(this.content.userIDList=[this.content.operatorID])}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var a=t[n];ma[a]&&(this.content.groupProfile[a]=e[a])}}},{key:"_initOperatorInfo",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var a=t[n];this.content.operatorInfo[a]=e[a]}}},{key:"_updateMemberList",value:function(e){He(this.content.memberList)?this.content.memberList=e:this.content.memberList.forEach((function(t){e.forEach((function(e){t.userID===e.userID&&Object.assign(t,e)}))}))}},{key:"_initNewGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var a=t[n];this.content.newGroupProfile[a]="muteAllMembers"!==a?e[a]:1===e[a]}}}]),Pa),ha={from:!0,groupID:!0,groupName:!0,to:!0,groupType:!0},ga=(i(La,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"memberInfoList":break;case"remarkInfo":t.content.handleMessage=e[n];break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;default:t.content[n]=e[n]}}))}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var a=t[n];ha[a]&&("groupName"===a?this.content.groupProfile.name=e[a]:this.content.groupProfile[a]=e[a])}}}]),La),fa=(i(ba,[{key:"_getFileInfo",value:function(e){var t,n;return dt(e.fileName)||dt(e.fileSize)?(t=e.file.files[0],z&&(t.path&&-1!==t.path.indexOf(".")&&(n=t.path.slice(t.path.lastIndexOf(".")+1).toLowerCase(),t.type=n,t.name||(t.name="".concat(ot(999999),".").concat(n))),t.name||(t.type="",t.name=t.path.slice(t.path.lastIndexOf("/")+1).toLowerCase()),t.suffix&&(t.type=t.suffix),t.url||(t.url=t.path)),{size:t.size,name:t.name}):{size:e.fileSize,name:e.fileName}}},{key:"updatePercent",value:function(e){this._percent=e,1<this._percent&&(this._percent=1)}},{key:"updateFileUrl",value:function(e){this.content.fileUrl=e}},{key:"sendable",value:function(){return""!==this.content.fileUrl&&""!==this.content.fileName&&0!==this.content.fileSize}}]),ba),va=(i(Da,[{key:"setData",value:function(e){return this.content.data=e,this}},{key:"setDescription",value:function(e){return this.content.description=e,this}},{key:"setExtension",value:function(e){return this.content.extension=e,this}},{key:"sendable",value:function(){return 0!==this.content.data.length||0!==this.content.description.length||0!==this.content.extension.length}}]),Da),_a=(i(wa,[{key:"updatePercent",value:function(e){this._percent=e,1<this._percent&&(this._percent=1)}},{key:"updateVideoUrl",value:function(e){e&&(this.content.remoteVideoUrl=e)}},{key:"updateSnapshotInfo",value:function(e){var t=e.snapshotUrl,n=e.snapshotWidth;e=e.snapshotHeight,He(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),He(n)||(this.content.thumbWidth=this.content.snapshotWidth=Number(n)),He(e)||(this.content.thumbHeight=this.content.snapshotHeight=Number(e))}},{key:"sendable",value:function(){return""!==this.content.remoteVideoUrl}}]),wa),ya=(i(Na,[{key:"sendable",value:function(){return!0}}]),Na),Ea=(i(Ma,[{key:"_patchRichMediaPayload",value:function(e,t){e===M.MSG_IMAGE?t.imageInfoArray.forEach((function(e){!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1))})):e===M.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===M.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===M.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}},{key:"_updateRichMediaDownloadUrl",value:function(e,t,n,a,o){(n||a)&&(e===M.MSG_IMAGE?t.imageInfoArray.forEach((function(e){e.url=ia(e.url,n,a,o)})):e===M.MSG_VIDEO?(t.videoUrl=ia(t.videoUrl,n,a,o),t.snapshotUrl=ia(t.thumbUrl,n,a,o),t.snapshotHeight=t.thumbHeight,t.snapshotWidth=t.thumbWidth):e===M.MSG_AUDIO?t.url=ia(t.url,n,a,o):e===M.MSG_FILE&&(t.fileUrl=ia(t.fileUrl,n,a,o)))}}]),Ma),Ca=(i(Ta,[{key:"sendable",value:function(){return!He(this.content.messageList)||!He(this.content.downloadKey)}}]),Ta),ka={1:M.MSG_PRIORITY_HIGH,2:M.MSG_PRIORITY_NORMAL,3:M.MSG_PRIORITY_LOW,4:M.MSG_PRIORITY_LOWEST},Ia=(i(Sa,[{key:"elements",get:function(){return this._elements}},{key:"getElements",value:function(){return this._elements}},{key:"extractGroupInfo",value:function(e){null!==e&&(ut(e.nick)&&(this.nick=e.nick),ut(e.avatar)&&(this.avatar=e.avatar),Ke(e=e.messageFromAccountExtraInformation))&&ut(e.nameCard)&&(this.nameCard=e.nameCard)}},{key:"handleGroupAtInfo",value:function(e){var t=this;e.payload&&e.payload.atUserList&&e.payload.atUserList.forEach((function(e){e!==M.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(M.MSG_AT_ALL))})),ze(e.groupAtInfo)&&e.groupAtInfo.forEach((function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(M.MSG_AT_ALL)}))}},{key:"getGroupAtInfoList",value:function(){return this._groupAtInfoList}},{key:"_initProxy",value:function(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type)}},{key:"reInitialize",value:function(e){e&&(this.status=this.from?Sn:In,!this.from)&&(this.from=e),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID()}},{key:"isSendable",value:function(){return 0!==this._elements.length&&(!0===this._relayFlag||"function"==typeof this._elements[0].sendable&&this._elements[0].sendable())}},{key:"_initTo",value:function(e){this.conversationType===M.CONV_GROUP&&(this.to=e.groupID)}},{key:"_initSequence",value:function(e){var t,n,a;0===this.clientSequence&&e&&(this.clientSequence=!!e&&(void 0===vt[e]&&(t="3".concat((a=new Date).getHours()).slice(-2),n="0".concat(a.getMinutes()).slice(-2),a="0".concat(a.getSeconds()).slice(-2),vt[e]=parseInt([t,n,a,"0001"].join("")),a=n=t=null,Pe.l("autoIncrementIndex start index:".concat(vt[e]))),vt[e]++)),0===this.sequence&&this.conversationType===M.CONV_C2C&&(this.sequence=this.clientSequence)}},{key:"generateMessageID",value:function(){this.from===M.CONV_SYSTEM&&(this.senderTinyID="144115198244471703"),this.ID="".concat(this.senderTinyID,"-").concat(this.clientTime,"-").concat(this.random)}},{key:"_initFlow",value:function(e){""!==e&&(e===this.from?(this.flow="out",this.isRead=!0):this.flow="in")}},{key:"_concatConversationID",value:function(e){var t=this.to,n=this.conversationType;n!==M.CONV_SYSTEM?(e=n===M.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID=e?"".concat(n).concat(e):null):this.conversationID=M.CONV_SYSTEM}},{key:"isElement",value:function(e){return e instanceof ea||e instanceof la||e instanceof ua||e instanceof da||e instanceof fa||e instanceof _a||e instanceof pa||e instanceof ga||e instanceof va||e instanceof ya||e instanceof Ca}},{key:"setElement",value:function(e,t,n,a){var o=this;if(this.isElement(e))this._elements=[e];else{var i=function(e){if(e.type&&e.content)switch(e.type){case M.MSG_TEXT:o.setTextElement(e.content);break;case M.MSG_IMAGE:o.setImageElement(e.content,t,n,a);break;case M.MSG_AUDIO:o.setAudioElement(e.content,t,n,a);break;case M.MSG_FILE:o.setFileElement(e.content,t,n,a);break;case M.MSG_VIDEO:o.setVideoElement(e.content,t,n,a);break;case M.MSG_CUSTOM:o.setCustomElement(e.content);break;case M.MSG_LOCATION:o.setLocationElement(e.content);break;case M.MSG_GRP_TIP:o.setGroupTipElement(e.content);break;case M.MSG_GRP_SYS_NOTICE:o.setGroupSystemNoticeElement(e.content);break;case M.MSG_FACE:o.setFaceElement(e.content);break;case M.MSG_MERGER:o.setMergerElement(e.content,t,n,a)}};if(ze(e))for(var s=0;s<e.length;s++)i(e[s]);else i(e)}this._initProxy()}},{key:"clearElement",value:function(){this._elements.length=0}},{key:"setTextElement",value:function(e){e="string"==typeof e?e:e.text,e=new ea({text:e}),this._elements.push(e)}},{key:"setImageElement",value:function(e,t,n,a){e=new la(e,t,n,a),this._elements.push(e)}},{key:"setAudioElement",value:function(e,t,n,a){e=new da(e,t,n,a),this._elements.push(e)}},{key:"setFileElement",value:function(e,t,n,a){e=new fa(e,t,n,a),this._elements.push(e)}},{key:"setVideoElement",value:function(e,t,n,a){e=new _a(e,t,n,a),this._elements.push(e)}},{key:"setLocationElement",value:function(e){e=new ya(e),this._elements.push(e)}},{key:"setCustomElement",value:function(e){e=new va(e),this._elements.push(e)}},{key:"setGroupTipElement",value:function(e){var t,n={},a=e.operationType;He(e.memberInfoList)?e.operatorInfo&&(n=e.operatorInfo):a!==M.GRP_TIP_MBR_JOIN&&a!==M.GRP_TIP_MBR_KICKED_OUT&&a!==M.GRP_TIP_MBR_SET_ADMIN&&a!==M.GRP_TIP_MBR_CANCELED_ADMIN||(n=e.memberInfoList[0]),He(e.memberExtraInfo)||(t=e.memberExtraInfo.reason,e.msgMemberInfo.forEach((function(e){e.reason=t}))),a=n.nick,n=n.avatar,ut(a)&&(this.nick=a),ut(n)&&(this.avatar=n),a=new pa(e),this._elements.push(a)}},{key:"setGroupSystemNoticeElement",value:function(e){e=new ga(e),this._elements.push(e)}},{key:"setFaceElement",value:function(e){e=new ua(e),this._elements.push(e)}},{key:"setMergerElement",value:function(e,t,n,a){e=new Ca(e,t,n,a),this._elements.push(e)}},{key:"setIsRead",value:function(e){this.isRead=e}},{key:"setRelayFlag",value:function(e){this._relayFlag=e}},{key:"_computePriority",value:function(e){if(!dt(e)){if(ut(e)&&-1!==Object.values(ka).indexOf(e))return e;if(Je(e)&&(e=""+e,-1!==Object.keys(ka).indexOf(e)))return ka[e]}return M.MSG_PRIORITY_NORMAL}},{key:"setNickAndAvatar",value:function(e){var t=e.nick;e=e.avatar,ut(t)&&(this.nick=t),ut(e)&&(this.avatar=e)}},{key:"setNameCard",value:function(e){ut(e)&&(this.nameCard=e)}},{key:"initC2CReadReceiptInfo",value:function(e){var t=e.readReceiptSentByPeer;e=void 0===(e=e.timestamp)?0:e,this.conversationType===M.CONV_C2C&&!0===this.needReadReceipt&&(this.readReceiptInfo.isPeerRead=1===(void 0===t?void 0:t),this.readReceiptInfo.timestamp=e)}}]),Sa);function Sa(e){a(this,Sa),this.ID="",this.conversationID=e.conversationID||null,this.conversationType=e.conversationType||M.CONV_C2C,this.conversationSubType=e.conversationSubType,this.time=e.time||Math.ceil(Date.now()/1e3),this.sequence=e.sequence||0,this.clientSequence=e.clientSequence||e.sequence||0,this.random=e.random||0===e.random?e.random:ot(),this.priority=this._computePriority(e.priority),this.nick=e.nick||"",this.avatar=e.avatar||"",this.isPeerRead=!1,this.nameCard="",this.hasRiskContent=Jt(e.checkResult),this._elements=[],this.isPlaceMessage=e.isPlaceMessage||0,this.isRevoked=2===e.isPlaceMessage||8===e.msgFlagBits,this.from=e.from||null,this.to=e.to||null,this.flow="",this.isSystemMessage=e.isSystemMessage||!1,this.protocol=e.protocol||"JSON",this.isResend=!1,this.isRead=!1,this.status=e.status||Sn,this._onlineOnlyFlag=!1,this._groupAtInfoList=[],this._relayFlag=!1,this.atUserList=[],this.cloudCustomData=e.cloudCustomData||"",this.isDeleted=!1,this.isModified=!!e.messageVersion,this._isExcludedFromUnreadCount=!(!e.messageControlInfo||1!==e.messageControlInfo.excludedFromUnreadCount),this._isExcludedFromLastMessage=!(!e.messageControlInfo||1!==e.messageControlInfo.excludedFromLastMessage),this.clientTime=e.clientTime||Se()||0,this.senderTinyID=e.senderTinyID||e.tinyID||"",this.readReceiptInfo=e.readReceiptInfo||{readCount:void 0,unreadCount:void 0,isPeerRead:void 0,timestamp:0},this.needReadReceipt=!0===e.needReadReceipt||1===e.needReadReceipt,this.version=e.messageVersion||0,this.isBroadcastMessage=e.isBroadcastMessage||!1,this._receiverList=e.receiverList||void 0,this.isSupportExtension=!0===e.isSupportExtension||1===e.isSupportExtension,this._cmConfigID=e.customModerationConfigurationID,this.revoker=e.revokerInfo&&e.revokerInfo.revoker||"",this.revokerInfo=e.revokerInfo||{userID:"",nick:"",avatar:""},this.revokeReason=e.revokeReason||"",this.reInitialize(e.currentUser),this.extractGroupInfo(e.groupProfile||null),this.handleGroupAtInfo(e),this.initC2CReadReceiptInfo(e)}function Ta(e,t,n,o){var i,s,r,c,l,u,d;a(this,Ta),this.type=M.MSG_MERGER,this.content={downloadKey:"",pbDownloadKey:"",messageList:[],title:"",abstractList:[],compatibleText:"",version:0,layersOverLimit:!1},e.downloadKey?(s=e.downloadKey,r=e.pbDownloadKey,c=e.title,l=e.abstractList,u=e.compatibleText,i=e.version,this.content.downloadKey=s,this.content.pbDownloadKey=r,this.content.title=c,this.content.abstractList=l,this.content.compatibleText=u,this.content.version=i||0):He(e.messageList)?1===e.layersOverLimit&&(this.content.layersOverLimit=!0):(s=e.messageList,r=e.title,c=e.abstractList,l=e.compatibleText,u=e.version,d=[],s.forEach((function(e){He(e)||(e=new Ea(e,t,n,o),d.push(e))})),this.content.messageList=d,this.content.title=r,this.content.abstractList=c,this.content.compatibleText=l,this.content.version=u||0)}function Ma(e,t,n,o){var i,s;a(this,Ma),this.from=e.from,this.messageSender=e.from,this.time=e.time,this.messageSequence=e.sequence,this.clientSequence=e.clientSequence||e.sequence,this.messageRandom=e.random,this.cloudCustomData=e.cloudCustomData||"",this.clientTime=e.clientTime||void 0,e.ID?(this.ID=e.ID||"",this.nick=e.nick||"",this.avatar=e.avatar||"",e.messageBody?this.messageBody=JSON.parse(JSON.stringify(e.messageBody)):this.messageBody=[{type:e.type,payload:e.payload}],e.conversationType?e.conversationType.startsWith(M.CONV_C2C)?this.receiverUserID=e.to:e.conversationType.startsWith(M.CONV_GROUP)&&(this.receiverGroupID=e.to):e.receiverGroupID?this.receiverGroupID=e.receiverGroupID:e.receiverUserID&&(this.receiverUserID=e.receiverUserID),this.messageReceiver=e.to||e.messageReceiver):(this.nick=e.nick||"",this.avatar=e.avatar||"",this.messageBody=[],i=e.elements[0].type,s=e.elements[0].content,this._patchRichMediaPayload(i,s),this._updateRichMediaDownloadUrl(i,s,t,n,o),i===M.MSG_MERGER?this.messageBody.push({type:i,payload:new Ca(s,t,n,o).content}):this.messageBody.push({type:i,payload:s}),e.groupID&&(this.receiverGroupID=e.groupID,this.messageReceiver=e.groupID),e.to&&(this.receiverUserID=e.to,this.messageReceiver=e.to),this.ID="".concat(e.tinyID,"-").concat(e.clientTime,"-").concat(e.random))}function Na(e){a(this,Na),this.type=M.MSG_LOCATION;var t=e.description,n=e.longitude;e=e.latitude,this.content={description:t,longitude:n,latitude:e}}function wa(e,t,n,o){a(this,wa),this.type=M.MSG_VIDEO,this._percent=0,this.content={remoteVideoUrl:e.remoteVideoUrl||e.videoUrl||"",videoFormat:e.videoFormat,videoSecond:parseInt(e.videoSecond,10),videoSize:e.videoSize,videoUrl:ia(e.videoUrl,t,n,o),videoDownloadFlag:2,videoUUID:e.videoUUID,thumbUUID:e.thumbUUID,thumbFormat:e.thumbFormat,thumbWidth:e.thumbWidth,snapshotWidth:e.thumbWidth,thumbHeight:e.thumbHeight,snapshotHeight:e.thumbHeight,thumbSize:e.thumbSize,snapshotSize:e.thumbSize,thumbDownloadFlag:2,thumbUrl:ia(e.thumbUrl,t,n,o),snapshotUrl:ia(e.thumbUrl,t,n,o)}}function Da(e){a(this,Da),this.type=M.MSG_CUSTOM,this.content={data:e.data||"",description:e.description||"",extension:e.extension||""}}function ba(e,t,n,o){a(this,ba),this.type=M.MSG_FILE,this._percent=0;var i=this._getFileInfo(e);this.content={downloadFlag:2,fileUrl:ia(e.url||e.fileUrl,t,n,o)||"",uuid:e.uuid,fileName:i.name||"",fileSize:i.size||0}}function La(e){a(this,La),this.type=M.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(e)}function Pa(e){a(this,Pa),this.type=M.MSG_GRP_TIP,this.content={},this._initContent(e)}function Aa(e,t,n,o){a(this,Aa),this.type=M.MSG_AUDIO,this._percent=0,this.content={downloadFlag:2,second:e.second,size:e.size,url:ia(e.url,t,n,o),remoteAudioUrl:e.url||"",uuid:e.uuid}}function Ra(e){a(this,Ra),this.type=M.MSG_FACE,this.content=e||null}function Oa(e,t,n,o){a(this,Oa),this._imageMemoryURL="",this._fileDownloadProxy=t,this._authKey=n,this._fileDNList=o,$||te?this.createImageDataASURL(e.file):this.createImageDataASURLInWeb(e.file),this._initImageInfoModel(),this.type=M.MSG_IMAGE,this._percent=0,this.content={imageFormat:e.imageFormat||Ae.UNKNOWN,uuid:e.uuid,imageInfoArray:[]},this.initImageInfoArray(e.imageInfoArray),this._autoFixUrl()}function Va(e){if(Ke(e))return{pushFlag:!0===e.disablePush?1:0,title:e.title||"",desc:e.description||"",ext:e.extension||"",apnsInfo:(a=void 0===(a=(n=e).apnsInfo)?{}:a,o=n.ignoreIOSBadge,n=n.disableVoipPush,o=!0===a.ignoreIOSBadge||!0===(void 0!==o&&o)?1:0,i=void 0,dt(n)||(i=!1===n?1:0),dt(a.disableVoipPush)||(i=!1===a.disableVoipPush?1:0),t(t({},a),{},{badgeMode:o,isVoipPush:i})),androidInfo:(a=void 0===(a=(n=e).androidInfo)?{}:a,n=n.androidOPPOChannelID,n=a.OPPOChannelID||(void 0===n?"":n),t(t({},a),{},{Sound:-1===(i=(o=a.sound||"").lastIndexOf("."))?o:o.slice(0,i),OPPOChannelID:n,GoogleChannelID:a.FCMChannelID||""}))};var n,a,o,i}r(Ya,Ln),Ba=f(Ya),i(Ya,[{key:"onNewMessage",value:function(e){var t=e.dataList,n=e.isInstantMessage,a=e.C2CRemainingUnreadList,o=e.C2CPairUnreadList,i=(e=e.isSyncingEnded,a=(n||Pe.l("".concat(this._n,".onNewMessage C2CPairUnreadList:"),o,"C2CRemainingUnreadList:",a),t=this._assembly({dataList:t,C2CRemainingUnreadList:a,C2CPairUnreadList:o,isInstantMessage:n})).conversationOptionsList,o=t.messageList,t=t.isUnreadC2CMessage,0<(i=yt(o)).length&&this.emitOEvt(T.MESSAGE_MODIFIED,i),this.get(11).onNewMessage({conversationOptionsList:a,isInstantMessage:n,isUnreadC2CMessage:t,isSyncingEnded:e}),Et(o));n&&0<i.length&&this.emitOEvt(T.MESSAGE_RECEIVED,i),o.length=0}},{key:"_assembly",value:function(e){for(var t=e.dataList,n=e.C2CRemainingUnreadList,a=e.C2CPairUnreadList,o=e.isInstantMessage,i=null,s=[],r=[],c={},l=this.get(26),u=!1,d=this.get(11),m=this.get(4),p=(e=this.get(17),this.getFileDownloadProxy()),h=this.getDowloadFileAuthKey(),g=e.getFileDNList(),f=0,v=t.length;f<v;f++)if(this._isC2CNotice(t[f]))this._noticeFromUnreadDBList.push(t[f].eventArray[0].c2CNotifyMsgArray[0]);else{var _=t[f],y=(_.currentUser=this.getMyUserID(),_.conversationType=M.CONV_C2C,_.isSystemMessage=!!_.isSystemMessage,(dt(_.nick)||dt(_.avatar))&&(u=!0),(i=new Ia(_)).setElement(_.elements,p,h,g),i.setNickAndAvatar({nick:_.nick,avatar:_.avatar}),i.conversationID);if(o){if(this._msgFromUnreadDBMap.get(i.ID))continue;var E,C,k=!1,I=(i.from!==this.getMyUserID()?(C=d.getLatestMessageSentByPeer(y))&&(E=C.nick,C=C.avatar,u?i.setNickAndAvatar({nick:E,avatar:C}):E===i.nick&&C===i.avatar||(k=!0)):(E=d.getLatestMessageSentByMe(y))&&(C=E.nick,I=E.avatar,C===i.nick&&I===i.avatar||(d.modifyMessageSentByMe({conversationID:y,latestNick:i.nick,latestAvatar:i.avatar}),m.mockOnNickAvatarModified(i.nick,i.avatar))),1===t[f].isModified);if(d.isMessageSentByCurrentInstance(i)?i.isModified=I:I=!1,0===_.msgLifeTime)i._onlineOnlyFlag=!0,d.isMessageSentByCurrentInstance(i)||r.push(i);else{if(!d.pushIntoMessageList(r,i,I))continue;k&&(d.modifyMessageSentByPeer({conversationID:y,latestNick:i.nick,latestAvatar:i.avatar}),d.updateUserProfileSpecifiedKey({conversationID:y,nick:i.nick,avatar:i.avatar}))}o&&0<i.clientTime&&l.addMessageDelay(i.clientTime)}else this._msgFromUnreadDBMap.set(i.ID,i);if(0!==_.msgLifeTime){if(!1===i._onlineOnlyFlag){if(Je(k=d.getLastMessageTime(y))&&i.time<k)continue;o&&(dt(c[y])?(_=0,"in"!==i.flow||i._isExcludedFromUnreadCount||(_=1),c[y]=s.push({conversationID:y,unreadCount:_,type:i.conversationType,subType:i.conversationSubType,lastMessage:i._isExcludedFromLastMessage?"":i})-1):(_=c[y],s[_].type=i.conversationType,s[_].subType=i.conversationSubType,s[_].lastMessage=i._isExcludedFromLastMessage?"":i,"in"!==i.flow||i._isExcludedFromUnreadCount||s[_].unreadCount++))}}else i._onlineOnlyFlag=!0}this._handleNoticeFromUnreadDB();var S=!1;if(ze(a)&&0<a.length)for(var T=0,N=a.length;T<N;T++)!function(e){if(a[e].from!==M.CONV_SYSTEM){S=!0;var t=s.find((function(t){return t.conversationID==="".concat(M.CONV_C2C).concat(a[e].from)}));t?t.unreadCount=a[e].unreadCount:s.push({conversationID:"".concat(M.CONV_C2C).concat(a[e].from),unreadCount:a[e].unreadCount,type:M.CONV_C2C})}}(T);if(ze(n))for(var w=0,D=n.length;w<D;w++)!function(e){s.find((function(t){return t.conversationID==="".concat(M.CONV_C2C).concat(n[e].from)}))||s.push({conversationID:"".concat(M.CONV_C2C).concat(n[e].from),type:M.CONV_C2C,lastMsgTime:n[e].lastMsgTime})}(w);return{conversationOptionsList:s,messageList:r,isUnreadC2CMessage:S}}},{key:"getMessageListFromUnreadDB",value:function(){return _(this._msgFromUnreadDBMap.values())}},{key:"_isC2CNotice",value:function(e){return!(!ze(e=e.eventArray)||10!==e[0].event)}},{key:"_handleNoticeFromUnreadDB",value:function(){var e,t=this._noticeFromUnreadDBList.length;0!==t&&(Pe.l("".concat(this._n,"._handleNoticeFromUnreadDB count:").concat(t)),e=[],this._noticeFromUnreadDBList.forEach((function(t){t.hasOwnProperty("c2cMessageRevokedNotify")&&e.push(t)})),this.onMsgRevoked({dataList:e}),this._noticeFromUnreadDBList.length=0,e.length=0)}},{key:"onMsgRevoked",value:function(e){var t,n=this,a=this.get(11),o=[];e.dataList.forEach((function(e){e.c2cMessageRevokedNotify&&(e=e.c2cMessageRevokedNotify.revokedInfos,dt(e)||e.forEach((function(e){var i=n.getMyUserID()===e.from?"".concat(M.CONV_C2C).concat(e.to):"".concat(M.CONV_C2C).concat(e.from);t=a.revoke(i,e.sequence,e.random);var s,r=e.revokerInfo&&e.revokerInfo.revoker,c=e.revokerInfo&&e.revokerInfo.reason||"";t?s=t:(s={conversationID:i,sequence:e.sequence},e.tinyID&&e.clientTime&&e.random&&(s.ID="".concat(e.tinyID,"-").concat(e.clientTime,"-").concat(e.random)),e.time&&(s.time=e.time)),s&&(s.revoker=r,s.revokeReason=c,s.revokerInfo={userID:r,nick:"",avatar:""},o.push(s))})))})),0!==o.length&&(a.onMessageRevoked(o),Pe.l("".concat(this._n,".onMsgRevoked count:").concat(o.length)),a.updateRevokerInfo(o).then((function(e){n.emitOEvt(T.MESSAGE_REVOKED,e)})))}},{key:"onMsgReadReceipt",value:function(e){var t=this;e.dataList.forEach((function(e){var n;He(e.c2cMessageReadReceipt)||(n=e.c2cMessageReadReceipt.to,e.c2cMessageReadReceipt.uinPairReadArray.forEach((function(e){e=e.peerReadTime;var a=(Pe.l("".concat(t._n,".onMsgReadReceipt to:").concat(n," peerReadTime:").concat(e)),"".concat(M.CONV_C2C).concat(n)),o=t.get(11);o.recordPeerReadTime(a,e),o.updateMsgIsPeerReadProp(a,e)})))}))}},{key:"onMsgReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){var n;He(e.c2cMessageReadNotice)||(n=t.get(11),e.c2cMessageReadNotice.uinPairReadArray.forEach((function(e){var a=e.from;e=e.peerReadTime,Pe.l("".concat(t._n,".onMsgReadNotice from:").concat(a," lastReadTime:").concat(e)),a="".concat(M.CONV_C2C).concat(a),n.updateIsReadAfterReadReport({conversationID:a,lastMessageTime:e}),n.updateUnreadCount(a)})))}))}},{key:"onMsgModified",value:function(e){Pe.l("".concat(this._n,".onMsgModified options:"),e);var n=this.get(11);e.dataList.forEach((function(e){n.onMessageModified(t(t({},e),{},{conversationType:M.CONV_C2C}))}))}},{key:"onReadReceiptList",value:function(e){Pe.l("".concat(this._n,".onReadReceiptList options:"),e),this.get(11).updateReadReceiptInfo(e.dataList)}},{key:"sendMessage",value:function(e,t){return e=this._createC2CMessagePack(e,t),this.req(e)}},{key:"_createC2CMessagePack",value:function(e,t){var n=null,a=(t&&(t.offlinePushInfo&&(n=t.offlinePushInfo),!0===t.onlineUserOnly)&&(n?n.disablePush=!0:n={disablePush:!0}),""),o=(ut(e.cloudCustomData)&&0<e.cloudCustomData.length&&(a=e.cloudCustomData),[]),i=(Ke(t)&&Ke(t.messageControlInfo)&&(i=(r=t.messageControlInfo).excludedFromUnreadCount,s=r.excludedFromLastMessage,r=r.excludedFromContentModeration,!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===r)&&o.push("NoMsgCheck"),this.isOnlineMessage(e,t)?0:void 0),s=JSON.parse(JSON.stringify(e.getElements())),r=this.get(17).getFileDNList();return{P:xn.SEND_C2C_MSG,data:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:sa(e.type,s,r),cloudCustomData:a,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:i,nick:e.nick,avatar:e.avatar,offlinePushInfo:Va(n),messageControlInfo:0!==i?o:void 0,clientTime:e.clientTime,needReadReceipt:!0===e.needReadReceipt?1:0,isSupportExtension:!0===e.isSupportExtension?1:0,isRelayMessage:!0===e._relayFlag?1:0,cmConfigID:e._cmConfigID}}}},{key:"isOnlineMessage",value:function(e,t){return!(!t||!0!==t.onlineUserOnly)}},{key:"revokeMessage",value:function(e){return this.req({P:xn.REVOKE_C2C_MSG,data:{msgInfo:{fromAccount:e.from,toAccount:e.to,msgSeq:e.sequence,msgRandom:e.random,msgTimeStamp:e.time}}})}},{key:"deleteMessage",value:function(e){var t=e.to;return e=e.keyList,Pe.l("".concat(this._n,".deleteMessage toAccount:").concat(t," count:").concat(e.length)),this.req({P:xn.DEL_C2C_MSG,data:{fromAccount:this.getMyUserID(),to:t,keyList:e}})}},{key:"modifyRemoteMessage",value:function(e){var t=e.from,n=e.to,a=void 0===(a=e.version)?0:a,o=e.sequence,i=e.random,s=e.time,r=e.payload,c=e.type,l=e.cloudCustomData,u=void(e=e._elements);return Gt(c)&&(1<e.length&&e.splice(0,1,{type:c,content:r}),u=e),this.req({P:xn.MODIFY_C2C_MSG,data:{from:t,to:n,version:a,sequence:o,random:i,time:s,elements:u,cloudCustomData:l}})}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,a=e.lastMessageTime,o="".concat(this._n,".").concat("setMessageRead"),i=(e="convID:".concat(n," lastMessageTime:").concat(a),Pe.l("".concat(o," ").concat(e)),Je(a)||this.warn("DoNotModifyLastTime"),new $n("setMessageRead"));return i.setMessage(e),this.req({P:xn.SET_C2C_MSG_READ,data:{C2CMsgReaded:{cookie:"",C2CMsgReadedItem:[{toAccount:n.replace("C2C",""),lastMessageTime:a,receipt:1}]}}}).then((function(){i.end(),Pe.l("".concat(o," ok"));var e=t.get(11);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageTime:a}),e.updateUnreadCount(n),yn()})).catch((function(e){return i.setError(e).end(),Pe.l("".concat(o," failed. error:"),e),Cn(e)}))}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._n,".").concat("getRoamingMessage"),a=e.peerAccount,o=e.conversationID,i=e.count,s=e.lastMessageTime,r=(e=e.messageKey,"peerAccount:".concat(a," count:").concat(i||15," lastMessageTime:").concat(s||0," messageKey:").concat(e)),c=(Pe.l("".concat(n," ").concat(r)),new $n("getRoamingMessage"));return this.req({P:xn.GET_C2C_ROAMING_MSG,data:{peerAccount:a,count:i||15,lastMessageTime:s||0,messageKey:e}}).then((function(e){var a=(e=e.data).complete,i=e.messageList,s=e.messageKey,l=(e=e.lastMessageTime,dt(i)?Pe.l("".concat(n," ok. complete:").concat(a," but messageList is undefined!")):Pe.l("".concat(n," ok. complete:").concat(a," count:").concat(i.length)),c.setMessage("".concat(r," complete:").concat(a," length:").concat(i.length)).end(),t.get(11)),u=((a=1===a)&&l.setCompleted(o),[]);return i=l.onRoamingMessage(i,o,!0,u),l.modifyMessageList(o),l.updateIsRead(o),l.updateRoamingMsgKeyAndTime(o,s,e),s=l.getPeerReadTime(o),Pe.l("".concat(n," update isPeerRead property. convID:").concat(o," peerReadTime:").concat(s)),s?l.updateMsgIsPeerReadProp(o,s):(e=o.replace(M.CONV_C2C,""),t.getRemotePeerReadTime([e]).then((function(){l.updateMsgIsPeerReadProp(o,l.getPeerReadTime(o))}))),s="",0<i.length?s=i[0].ID:(e=l.getLocalOldestMessage(o))&&(s=e.ID),Pe.l("".concat(n," nextReqID:").concat(s," storedMsgCount:").concat(i.length)),{nextReqID:s,storedMessageList:i,assembledMessageList:u,isPullingCompleted:a}})).catch((function(e){return c.setMessage(r).setError(e).end(),Pe.w("".concat(n," failed. error:"),e),Cn(e)}))}},{key:"getRoamingMessagesHopping",value:function(e){var t=this,n="".concat(this._n,".").concat("getRoamingMessagesHopping"),a=e.peerAccount,o=void 0===(o=e.time)?0:o,i=e.count,s=e.direction,r="".concat(M.CONV_C2C).concat(a),c="peerAccount:".concat(a," count:").concat(i," time:").concat(o," direction:").concat(s),l=(Pe.l("".concat(n," ").concat(c)),new $n("getRoamingMessagesHopping"));return this.req({P:xn.GET_C2C_ROAMING_MSG,data:{peerAccount:a,count:i+1,lastMessageTime:o,direction:s}}).then((function(e){var a=(e=e.data).complete,o=void 0===(o=e.messageList)?[]:o,i=(e=e.lastMessageTime,"complete:".concat(a," count:").concat(o.length)),u=(Pe.l("".concat(n," ok. ").concat(i)),l.setMessage("".concat(c," ").concat(i)).end(),1!==a&&(1===s?o.pop():o.shift()),t.get(11));return i=u.onRoamingMessage(o,r,!1),t._modifyMessageList(r,i),o=t._computeResult({complete:a,lastMessageTime:e,resultList:i}),u.storeHoppingMessageList(o.messageList),a=u.getPeerReadTime(r),Pe.l("".concat(n," update isPeerRead property. convID:").concat(r," peerReadTime:").concat(a)),a?u.updateMsgIsPeerReadProp(r,a):(e=r.replace(M.CONV_C2C,""),t.getRemotePeerReadTime([e]).then((function(){u.updateMsgIsPeerReadProp(r,u.getPeerReadTime(r))}))),yn(o)})).catch((function(e){return l.setMessage(c).setError(e).end(),Pe.w("".concat(n," failed. error:"),e),Cn(e)}))}},{key:"_computeResult",value:function(e){var t=void 0===(t=e.complete)?0:t,n=e.lastMessageTime;return e={messageList:_(void 0===(e=e.resultList)?[]:e),isCompleted:!1,nextMessageTime:""},1===t?e.isCompleted=!0:e.nextMessageTime=n,e}},{key:"_modifyMessageList",value:function(e,t){if(e=this.get(11).getLocalConversation(e))for(var n=e.userProfile.nick,a=e.userProfile.avatar,o=(e=this.get(4).getNickAndAvatarByUserID(this.getMyUserID())).nick,i=e.avatar,s=t.length-1;0<=s;s--){var r=t[s];"in"===r.flow&&(r.nick!==n&&r.setNickAndAvatar({nick:n}),r.avatar!==a)&&r.setNickAndAvatar({avatar:a}),"out"===r.flow&&(r.nick!==o&&r.setNickAndAvatar({nick:o}),r.avatar!==i)&&r.setNickAndAvatar({avatar:i})}}},{key:"getRemotePeerReadTime",value:function(e){var t,n=this,a="".concat(this._n,".").concat("getRemotePeerReadTime");return He(e)?Promise.resolve():(t=new $n("getRemotePeerReadTime"),Pe.l("".concat(a," userIDList:").concat(e)),this.req({P:xn.GET_C2C_PEER_READ_TIME,data:{userIDList:e}}).then((function(o){var i=o.data.peerReadTimeList;Pe.l("".concat(a," ok. peerReadTimeList:").concat(i));for(var s="",r=n.get(11),c=0;c<e.length;c++)s+="".concat(e[c],"-").concat(i[c]," "),0<i[c]&&r.recordPeerReadTime("".concat(M.CONV_C2C).concat(e[c]),i[c]);t.setMessage(s).end()})).catch((function(e){t.setError(e).end(),Pe.w("".concat(a," failed. error:"),e)})))}},{key:"sendReadReceipt",value:function(e){var t,n=e[0].conversationID.replace(M.CONV_C2C,""),a=new $n("sendReadReceipt"),o=(a.setMessage("peerAccount:".concat(n)),this.getMyUserID());return 0===(e=e.filter((function(e){return e.from!==o&&!0===e.needReadReceipt})).map((function(e){return{fromAccount:e.from,toAccount:e.to,sequence:e.sequence,random:e.random,time:e.time,clientTime:e.clientTime}}))).length?Cn({code:Vn.READ_RECEIPT_MSG_LIST_EMPTY}):(t="".concat(this._n,".").concat("sendReadReceipt"),Pe.l("".concat(t,". peerAccount:").concat(n," length:").concat(e.length)),this.req({P:xn.SEND_C2C_READ_RECEIPT,data:{peerAccount:n,messageInfoList:e}}).then((function(e){return a.end(),Pe.l("".concat(t," ok")),yn()})).catch((function(e){return a.setError(e).end(),Pe.w("".concat(t," failed. error:"),e),Cn(e)})))}},{key:"getReadReceiptList",value:function(e){var t=e[0].conversationID.replace(M.CONV_C2C,"");return Pe.l("".concat(this._n,".getReadReceiptList peerAccount:").concat(t," msgCount:").concat(e.length)),En({messageList:e})}},{key:"getMessageExtensions",value:function(e,t){return Pe.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t)),this.req({P:xn.GET_C2C_MSG_EXT,data:{from:e.from,to:e.to,messageKey:this.getMessageKey(e),startSequence:t}})}},{key:"modifyMsgExts",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;return Pe.l("".concat(this._n,".modifyMsgExts operateType:").concat(n)),this.req({P:xn.MODIFY_C2C_MSG_EXT,data:{from:e.from,to:e.to,messageKey:this.getMessageKey(e),extensionList:t,operateType:n}})}},{key:"getMessageKey",value:function(e){var t=e.clientSequence,n=e.random;return e=e.time,"".concat(t,"_").concat(n,"_").concat(e)}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._msgFromUnreadDBMap.clear(),this._noticeFromUnreadDBList.length=0}}]);var Ba,xa=Ya,Ua={A2KEY_AND_TINYID_UPDATED:"_inner".concat(1),CLOUD_CONFIG:"_inner".concat(2),PROFILE_UPDATED:"_inner".concat(3),CONV_SYNC_COMPLETED:"_inner".concat(4),C2C_UNREAD_HANDLE_COMPLETED:"_inner".concat(5)},Ga=(i(Fa,[{key:"_onCloudConfig",value:function(){var e=this._convM.getCloudConfig("topic_msg_limit");dt(e)||(this.TOPIC_MSG_LIMIT=Number(e)),Pe.l("".concat(this._n,"._onCloudConfig topicMsgLimit:").concat(this.TOPIC_MSG_LIMIT))}},{key:"onCheckTimer",value:function(e){if(e%20==0&&0<this._map.size){var t,n=S(this._map);try{for(n.s();!(t=n.n()).done;){var a=v(t.value,2),o=a[0],i=a[1];o.includes(Fe)&&i.size>=this.TOPIC_MSG_LIMIT&&this._convM.clearMemMsg(o,!0)}}catch(s){n.e(s)}finally{n.f()}}}},{key:"pushIn",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=e.conversationID,a=!0,o=(this._map.has(n)||this._map.set(n,new Map),this._getUniqueIDOfMsg(e));if(this._map.get(n).has(o)){var i=this._map.get(n).get(o);if(!t||!0===i.isModified)return!1}return this._map.get(n).set(o,e),this._setLatestMsgSentByPeer(n,e),this._setLatestMsgSentByMe(n,e),a}},{key:"unshift",value:function(e,t){var n;if(ze(e)?0<e.length&&(n=e[0].conversationID,this._unshiftMultipleMsgs(e,t)):(n=e.conversationID,this._unshiftSingleMsg(e,t)),n){var a=Array.from(this._map.get(n).values());if(0!==(e=a.length)){for(var o=e-1;0<=o;o--)if("out"===a[o].flow){this._setLatestMsgSentByMe(n,a[o]);break}if(n.startsWith(M.CONV_C2C))for(var i=e-1;0<=i;i--)if("in"===a[i].flow){this._setLatestMsgSentByPeer(n,a[i]);break}}}}},{key:"_unshiftSingleMsg",value:function(e,t){var n,a,o=e.conversationID,i=this._getUniqueIDOfMsg(e);this._map.has(o)?(n=this._map.get(o),a=Array.from(n),n.has(i)||(a.unshift([i,e]),this._map.set(o,new Map(a)),t.push(e))):(this._map.set(o,new Map),this._map.get(o).set(i,e),t.push(e))}},{key:"_unshiftMultipleMsgs",value:function(e,t){for(var n=e.length,a=[],o=e[0].conversationID,i=this._map.get(o),s=this._map.has(o)?Array.from(i):[],r=0;r<n;r++){var c=this._getUniqueIDOfMsg(e[r]);i&&i.has(c)||(a.push([c,e[r]]),t.push(e[r]))}this._map.set(o,new Map(a.concat(s)))}},{key:"remove",value:function(e){var t=e.conversationID;e=this._getUniqueIDOfMsg(e),this._map.has(t)&&this._map.get(t).delete(e)}},{key:"revoke",value:function(e,t,n){var a;return this._map.has(e)?(a=this._map.get(e),this._updateMsgIsRevoked(a,t,n)):this._hoppingMsgMap.has(e)?(a=this._hoppingMsgMap.get(e),this._updateMsgIsRevoked(a,t,n)):null}},{key:"_updateMsgIsRevoked",value:function(e,t,n){var a,o=S(e);try{for(o.s();!(a=o.n()).done;){var i=v(a.value,2)[1];if(i.sequence===t&&(dt(n)||i.random===n))return i.isRevoked||(i.isRevoked=!0),i}}catch(s){o.e(s)}finally{o.f()}}},{key:"removeByConvID",value:function(e){var t=this._map.has(e);Pe.l("".concat(this._n,".removeByConvID convID:").concat(e," has:").concat(t)),t&&(this._map.delete(e),this._latestMsgSentByPeerMap.delete(e),this._latestMsgSentByMeMap.delete(e))}},{key:"findMessage",value:function(e){return this._findMsg(e,this._map)||this._findMsg(e,this._hoppingMsgMap)}},{key:"_findMsg",value:function(e,t){var n,a=null,o=S(t);try{for(o.s();!(n=o.n()).done;)for(var i=_(v(n.value,2)[1].values()),s=i.length,r=0;r<s;r++)if(i[r].ID===e){a=i[r];break}}catch(c){o.e(c)}finally{o.f()}return a}},{key:"updateMsgIsPeerReadProp",value:function(e,t){var n,a=[];return this._map.has(e)?(n=this._map.get(e),a=this._updateMsgIsPeerReadProp(n,t)):this._hoppingMsgMap.has(e)&&(n=this._hoppingMsgMap.get(e),a=this._updateMsgIsPeerReadProp(n,t)),Pe.l("".concat(this._n,".updateMsgIsPeerReadProp convID:").concat(e," peerReadTime:").concat(t," count:").concat(a.length)),a}},{key:"_updateMsgIsPeerReadProp",value:function(e,t){var n,a=[],o=S(e);try{for(o.s();!(n=o.n()).done;){var i=v(n.value,2)[1];i.time<=t&&!i.isPeerRead&&"out"===i.flow&&(i.isPeerRead=!0,a.push(i))}}catch(s){o.e(s)}finally{o.f()}return a}},{key:"updateMsgIsModifiedProp",value:function(e){var t=e.conversationID;this._map.has(t)&&(e=this._getUniqueIDOfMsg(e),t=this._map.get(t).get(e))&&(t.isModified=!0)}},{key:"hasLocalMsgList",value:function(e){return this._map.has(e)}},{key:"getLocalMsgList",value:function(e){return this.hasLocalMsgList(e)?_(this._map.get(e).values()):[]}},{key:"getLocalMaxSeq",value:function(e){return this.hasLocalMsgList(e)?(e=_(this._map.get(e).values()).map((function(e){return e.sequence})),Math.max.apply(Math,_(e))):0}},{key:"getLocalMaxTime",value:function(e){return this.hasLocalMsgList(e)?(e=_(this._map.get(e).values()).map((function(e){return e.time})),Math.max.apply(Math,_(e))):0}},{key:"hasLocalMsg",value:function(e,t){for(var n=!1,a=this.getLocalMsgList(e),o=a.length,i=0;i<o;i++)a[i].ID===t&&(n=!0);return n}},{key:"getLocalMsg",value:function(e,t){for(var n=null,a=this.getLocalMsgList(e),o=a.length,i=0;i<o;i++)if(a[i].ID===t){n=a[i];break}return n}},{key:"getLocalLastMsg",value:function(e){return(e=this.getLocalMsgList(e))[e.length-1]}},{key:"getLocalSecondLastMsg",value:function(e){return(e=this.getLocalMsgList(e))[e.length-2]}},{key:"getLocalOldestMsg",value:function(e){return this.getLocalMsgList(e)[0]}},{key:"_setLatestMsgSentByPeer",value:function(e,t){e.startsWith(M.CONV_C2C)&&"in"===t.flow&&this._latestMsgSentByPeerMap.set(e,t)}},{key:"_setLatestMsgSentByMe",value:function(e,t){"out"===t.flow&&this._latestMsgSentByMeMap.set(e,t)}},{key:"getLatestMsgSentByPeer",value:function(e){return this._latestMsgSentByPeerMap.get(e)}},{key:"getLatestMsgSentByMe",value:function(e){return this._latestMsgSentByMeMap.get(e)}},{key:"modifyMsgSentByPeer",value:function(e){var t=e.conversationID,n=e.latestNick,a=e.latestAvatar;if(!He(e=this._map.get(t))){var o=Array.from(e.values());if(0!==(e=o.length)){for(var i=null,s=0,r=!1,c=e-1;0<=c;c--)"in"===o[c].flow&&((i=o[c]).nick!==n&&(i.setNickAndAvatar({nick:n}),r=!0),i.avatar!==a&&(i.setNickAndAvatar({avatar:a}),r=!0),r)&&(s+=1);Pe.l("".concat(this._n,".modifyMsgSentByPeer convID:").concat(t," count:").concat(s))}}}},{key:"modifyMsgSentByMe",value:function(e){var t=e.conversationID,n=e.latestNick,a=e.latestAvatar;if(!He(e=this._map.get(t))){var o=Array.from(e.values());if(0!==(e=o.length)){for(var i=null,s=0,r=!1,c=e-1;0<=c;c--)"out"===o[c].flow&&((i=o[c]).nick!==n&&(i.setNickAndAvatar({nick:n}),r=!0),i.avatar!==a&&(i.setNickAndAvatar({avatar:a}),r=!0),r)&&(s+=1);Pe.l("".concat(this._n,".modifyMsgSentByMe convID:").concat(t," count:").concat(s))}}}},{key:"getTopicConvIDList",value:function(e){return _(this._map.keys()).filter((function(t){return t.startsWith("".concat(M.CONV_GROUP).concat(e))}))}},{key:"onMsgModified",value:function(e,t){var n,a,o,i;return(this._map.has(e)||this._hoppingMsgMap.has(e))&&(n="".concat(this._n,".onMsgModified"),o=this._getUniqueIDOfMsg(t),i=!!(a=this._getTargetMsg(e,o)),Pe.l("".concat(n," convID:").concat(e," uniqueID:").concat(o," has:").concat(i)),i)?(e=t.messageVersion,o=t.elements,i=t.cloudCustomData,t=t.checkResult,Pe.l("".concat(n," localVersion:").concat(a.version," remoteVersion:").concat(e)),a.version<e?(a.version=e,a._elements=JSON.parse(JSON.stringify(o)),a.payload=JSON.parse(JSON.stringify(o[0].content)),a.type=o[0].type,a.cloudCustomData=i,a.isModified=!0,a.hasRiskContent=Jt(t),{isUpdated:!0,message:a}):{isUpdated:!1,message:a}):{isUpdated:!1,message:null}}},{key:"_getUniqueIDOfMsg",value:function(e){var t=e.from,n=e.to,a=e.random,o=e.sequence;return e=e.time,"".concat(t,"-").concat(n,"-").concat(a,"-").concat(o,"-").concat(e)}},{key:"_getTargetMsg",value:function(e,t){if(this._map.has(e))return this._map.get(e).get(t);var n=void 0;if(this._hoppingMsgMap.has(e))for(var a=_(this._hoppingMsgMap.get(e).values()),o=0;o<a.length;o++)if(this._getUniqueIDOfMsg(a[o])===t){n=a[o];break}return n}},{key:"storeHoppingMsgList",value:function(e){if(0!==e.length){var t=e[0].conversationID,n=e.length;this._hoppingMsgMap.has(t)||this._hoppingMsgMap.set(t,new Map);for(var a=this._hoppingMsgMap.get(t),o=0;o<n;o++){var i=e[o];a.has(i.ID)||a.set(i.ID,i)}}}},{key:"getHoppingMsg",value:function(e,t){if(this._hoppingMsgMap.has(e))return this._hoppingMsgMap.get(e).get(t)}},{key:"reset",value:function(){this._map.clear(),this._latestMsgSentByPeerMap.clear(),this._latestMsgSentByMeMap.clear(),this._hoppingMsgMap.clear()}}]),Fa);function Fa(e){a(this,Fa),this._convM=e,this._map=new Map,this._n="MsgListHandler",this._latestMsgSentByPeerMap=new Map,this._latestMsgSentByMeMap=new Map,this._hoppingMsgMap=new Map,this.TOPIC_MSG_LIMIT=1e3,this._convM.getIEmitInst().on(Ua.CLOUD_CONFIG,this._onCloudConfig,this)}function Ya(e){return a(this,Ya),(e=Ba.call(this,e))._n="C2CModule",e._msgFromUnreadDBMap=new Map,e._noticeFromUnreadDBList=[],e}function Ha(e){this.mixin(e)}function Za(e,n,a){return dt(e)?{lastTime:0,lastSequence:0,fromAccount:"",messageForShow:"",payload:null,type:"",isRevoked:!1,cloudCustomData:"",onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:!1,revoker:null}:a&&e.ID||e instanceof Ia?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",messageForShow:Ut(e.type,e.payload,n),payload:e.payload||null,type:e.type||null,isRevoked:e.isRevoked||!1,cloudCustomData:e.cloudCustomData||"",onlineOnlyFlag:e._onlineOnlyFlag||!1,nick:e.nick||"",nameCard:e.nameCard||"",version:e.version||0,isPeerRead:e.isPeerRead||!1,revoker:e.revoker||null}:t(t({},e),{},{messageForShow:Ut(e.type,e.payload,n)})}function qa(e,t){return He(e)?{lastTime:0,lastSequence:0,fromAccount:"",payload:null,type:"",messageForShow:"",nick:"",avatar:"",version:0,cloudCustomData:"",isRevoked:!1,revoker:null}:{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",payload:e.payload||null,type:e.type||"",messageForShow:Ut(e.type,e.payload,t),nick:e.nick||"",avatar:e.avatar||"",version:e.version||0,cloudCustomData:e.cloudCustomData||"",isRevoked:e.isRevoked||!1,revoker:e.revoker||null}}function ja(e){var t=String(e).replace(/[=]+$/,""),n="";if(t.length%4==1)return"";for(var a,o,i=0,s=0;o=t.charAt(s++);~o&&(a=i%4?64*a+o:o,i++%4)&&(n+=String.fromCharCode(255&a>>(-2*i&6))))o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);try{return decodeURIComponent(escape(n))}catch(r){return""}}Ha.mixin=function(e){(e=e.prototype||e)._isReady=!1,e.ready=function(e){if(e)return this._isReady?void(1<arguments.length&&void 0!==arguments[1]&&arguments[1]?e.call(this):setTimeout(e,1)):(this._readyQueue=this._readyQueue||[],void this._readyQueue.push(e))},e.triggerReady=function(){var e=this;this._isReady=!0,setTimeout((function(){var t=e._readyQueue;e._readyQueue=[],t&&0<t.length&&t.forEach((function(e){e.call(this)}),e)}),1)},e.resetReady=function(){this._isReady=!1,this._readyQueue=[]},e.isReady=function(){return this._isReady}};var Ja,Xa,Ka,za,Wa,Qa=["jpg","jpeg","gif","png","bmp","image","webp"],$a=["mp4","quicktime","mov"],eo=(i(oi,[{key:"validate",value:function(e){var t,n=!0,a="";if(He(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var o=e.profileCustomField.length,i=null,s=0;s<o;s++){if(i=e.profileCustomField[s],!ut(i.key)||-1===i.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"The prefix of keys of the custom profile key-value pairs (which is profileCustomField) must be Tag_Profile_Custom"};if(!ut(i.value))return{valid:!1,tips:"The type of values of the custom profile key-value pairs (which is profileCustomField) must be String"}}for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)){if("profileCustomField"===t)continue;if(He(e[t])&&!ut(e[t])&&!Je(e[t])){a="key:"+t+", invalid value:"+e[t],n=!1;continue}switch(t){case"nick":ut(e[t])||(n=!(a="nick must be a string")),500<at(e[t])&&(a="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(at(e[t])," bytes"),n=!1);break;case"gender":st(Ve,e.gender)||(a="key:gender, invalid value:"+e.gender,n=!1);break;case"birthday":Je(e.birthday)||(n=!(a="birthday must be a number"));break;case"location":ut(e.location)||(n=!(a="location must be a string"));break;case"selfSignature":ut(e.selfSignature)||(n=!(a="selfSignature must be a string"));break;case"allowType":st(xe,e.allowType)||(a="key:allowType, invalid value:"+e.allowType,n=!1);break;case"language":Je(e.language)||(n=!(a="language must be a number"));break;case"avatar":ut(e.avatar)||(n=!(a="avatar must be a string"));break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(n=!(a="messageSettings must be 0 or 1"));break;case"adminForbidType":st(Be,e.adminForbidType)||(a="key:adminForbidType, invalid value:"+e.adminForbidType,n=!1);break;case"level":Je(e.level)||(n=!(a="level must be a number"));break;case"role":Je(e.role)||(n=!(a="role must be a number"));break;default:a="unknown key:"+t+" "+e[t],n=!1}}return{valid:n,tips:a}}}]),oi),to=(i(ai,[{key:"set",value:function(e){var t;this.map.size>=this.MAX_LENGTH&&(t=this.map.entries().next().value[0],this.map.delete(t)),this.map.set(e,1)}},{key:"has",value:function(e){return this.map.has(e)}},{key:"delete",value:function(e){this.has(e)&&this.map.delete(e)}},{key:"reset",value:function(){this.map.clear()}}]),ai),no=["groupID","name","avatar","type","introduction","notification","ownerID","selfInfo","createTime","infoSequence","lastInfoTime","lastMessage","nextMessageSeq","memberNum","maxMemberNum","memberList","joinOption","groupCustomField","muteAllMembers","isSupportTopic","inviteOption","_lastRevokedTime"],ao=(i(ni,[{key:"memberNum",get:function(){return this.memberCount},set:function(e){}},{key:"maxMemberNum",get:function(){return this.maxMemberCount},set:function(e){}},{key:"_initGroup",value:function(e){for(var t in e)no.indexOf(t)<0||("selfInfo"!==t?("memberNum"===t&&(this.memberCount=e[t]),"maxMemberNum"===t&&(this.maxMemberCount=e[t]),"isSupportTopic"!==t?this[t]=e[t]:this.isSupportTopic=1===e[t]):this.updateSelfInfo(e[t]))}},{key:"updateGroup",value:function(e){var t=this;(e.appid=void 0,e.grossTopicNextMsgSeq=void 0,e.selfInfo&&(e.selfInfo.grossTopicReadSeq=void 0),e=JSON.parse(JSON.stringify(e))).lastMsgTime&&(this.lastMessage.lastTime=e.lastMsgTime),dt(e.muteAllMembers)||("On"===e.muteAllMembers?e.muteAllMembers=!0:e.muteAllMembers=!1),e.groupCustomField&&_t(this.groupCustomField,e.groupCustomField),dt(e.memberNum)||(this.memberCount=e.memberNum),dt(e.maxMemberNum)||(this.maxMemberCount=e.maxMemberNum),dt(e.isSupportTopic)||(this.isSupportTopic=Je(e.isSupportTopic)?1===e.isSupportTopic:e.isSupportTopic),et(this,e,["members","errorCode","lastMsgTime","groupCustomField","memberNum","maxMemberNum","isSupportTopic"]),ze(e.members)&&0<e.members.length&&e.members.forEach((function(e){e.userID===t.selfInfo.userID&&et(t.selfInfo,e,["sequence"])}))}},{key:"updateSelfInfo",value:function(e){e={nameCard:e.nameCard,joinTime:e.joinTime,role:e.role,messageRemindType:e.messageRemindType,readedSequence:e.readedSequence,excludedUnreadSequenceList:e.excludedUnreadSequenceList},et(this.selfInfo,t({},e),[],["",null,void 0,0,NaN])}},{key:"setSelfNameCard",value:function(e){this.selfInfo.nameCard=e}}]),ni),oo=(i(ti,[{key:"toAccount",get:function(){return this.conversationID.startsWith(M.CONV_C2C)?this.conversationID.replace(M.CONV_C2C,""):this.conversationID.startsWith(M.CONV_GROUP)?this.conversationID.replace(M.CONV_GROUP,""):""}},{key:"_initProfile",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"userProfile":t.userProfile=e.userProfile;break;case"groupProfile":t.groupProfile=e.groupProfile}})),dt(this.userProfile)&&this.type===M.CONV_C2C?this.userProfile=new eo({userID:e.conversationID.replace("C2C","")}):dt(this.groupProfile)&&this.type===M.CONV_GROUP&&(this.groupProfile=new ao({groupID:e.conversationID.replace("GROUP","")}))}},{key:"updateUnreadCount",value:function(e){var t=e.nextUnreadCount,n=e.isFromGetConversations;e=e.isUnreadC2CMessage,dt(t)||(Ct(this.subType)?this.unreadCount=0:n&&this.type===M.CONV_GROUP||n&&this.type===M.CONV_TOPIC||e&&this.type===M.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t)}},{key:"updateLastMessage",value:function(e){this.lastMessage=Za(e)}},{key:"updateGroupAtInfoList",value:function(e){var t;this._isNeedMergeGroupAtInfo(e)||(-1!==(t=(y(t=e.groupAtType)||E(t)||C(t)||I()).slice(0)).indexOf(M.CONV_AT_ME)&&-1!==t.indexOf(M.CONV_AT_ALL)&&(t=[M.CONV_AT_ALL_AT_ME]),t={from:e.from,groupID:e.groupID,topicID:e.topicID,messageSequence:e.sequence,atTypeArray:t,__random:e.__random,__sequence:e.__sequence},this.groupAtInfoList.push(t))}},{key:"_isNeedMergeGroupAtInfo",value:function(e){var t,n=e.groupID,a=e.sequence;return!!kt({groupID:n})&&(t=!1,this.groupAtInfoList.forEach((function(n){n.messageSequence===a&&(-1<n.atTypeArray.indexOf(M.CONV_AT_ME)&&-1<e.groupAtType.indexOf(M.CONV_AT_ALL)&&(n.atTypeArray=[M.CONV_AT_ALL_AT_ME]),-1<n.atTypeArray.indexOf(M.CONV_AT_ALL)&&-1<e.groupAtType.indexOf(M.CONV_AT_ME)&&(n.atTypeArray=[M.CONV_AT_ALL_AT_ME],n.__random=e.__random,n.__sequence=e.__sequence),t=!0)})),t)}},{key:"clearGroupAtInfoList",value:function(){this.groupAtInfoList.length=0}},{key:"reduceUnreadCount",value:function(){return 1<=this.unreadCount&&(--this.unreadCount,!0)}},{key:"isLastMessageRevoked",value:function(e){var t=e.sequence;return e=e.time,this.type===M.CONV_C2C&&t===this.lastMessage.lastSequence&&e===this.lastMessage.lastTime||this.type===M.CONV_GROUP&&t===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"setLastMessageRevoker",value:function(e){this.lastMessage.revoker=e}},{key:"setDraftText",value:function(e){this.draftText=e}}]),ti),io=(s(ee={},M.MSG_REMIND_ACPT_AND_NOTE,0),s(ee,M.MSG_REMIND_DISCARD,1),s(ee,M.MSG_REMIND_ACPT_NOT_NOTE,2),ee),so=(i(ei,[{key:"onAllRcvMsgOptNotify",value:function(e){e=this._handleResult(e),this._convM.emitOEvt(T.ALL_RECEIVE_MESSAGE_OPT_UPDATED,e)}},{key:"getC2CMsgRemindType",value:function(e){var t=this,n="".concat(this._n,".getC2CMsgRemindType");return this._convM.req({P:xn.GET_C2C_PEER_MUTE_NOTIFICATIONS,data:{toAccount:this._convM.getMyUserID(),userIDList:e}}).then((function(a){Pe.l("".concat(n," ok. userIDList:").concat(e)),a=a.data.muteFlagList,t._convM.onC2CMsgRemindTypeFetched(a)})).catch((function(e){Pe.e("".concat(n," failed. error:"),e)}))}},{key:"set",value:function(e){return e.groupID?this._setGroupMsgRemindType(e):ze(e.userIDList)?this._setC2CMsgRemindType(e):void 0}},{key:"_setGroupMsgRemindType",value:function(e){var t=this,n="".concat(this._n,".").concat("_setGroupMsgRemindType"),a=e.groupID,o=e.messageRemindType,i="groupID:".concat(a," messageRemindType:").concat(o),s=new $n("_setGroupMsgRemindType"),r=(s.setMessage(i),this._get(7));return r?r.modifyGroupMemberInfo({groupID:a,messageRemindType:o,userID:this._convM.getMyUserID()}).then((function(){s.end(),Pe.l("".concat(n," ok. ").concat(i));var a=t.onGroupMsgRemindTypeUpdated(e);return t._convM.onTotalUnreadCountUpdate(),yn(a)})).catch((function(e){return s.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)})):Cn({code:Vn.NO_MODULE})}},{key:"onGroupMsgRemindTypeUpdated",value:function(e){var t,n,a=e.groupID,o=(e=e.messageRemindType,Pe.l("".concat(this._n,".onGroupMsgRemindTypeUpdated groupID:").concat(a," messageRemindType:").concat(e)),this._get(7).getLocalGroupProfile(a));return o&&(o.selfInfo.messageRemindType=e),It(a)?(t=xt(n=a),(n=this._get(10).getLocalTopic(t,n))&&n.updateSelfInfo({messageRemindType:e})&&this._convM.emitOEvt(T.TOPIC_UPDATED,{groupID:t,topic:n}),{topic:n}):(this._convM.patchMsgRemindType({ID:a,isC2CConversation:!1,messageRemindType:e})&&this._emitConvUpdate(),{group:o})}},{key:"_setC2CMsgRemindType",value:function(e){var t=this,n="".concat(this._n,".").concat("_setC2CMsgRemindType"),a=e.userIDList,o=e.messageRemindType,i=a.slice(0,30),s=(e=io[o]||0,"userIDList:".concat(i," messageRemindType:").concat(o)),r=new $n("_setC2CMsgRemindType");return r.setMessage(s),this._convM.req({P:xn.SET_C2C_PEER_MUTE_NOTIFICATIONS,data:{userIDList:i,muteFlag:e}}).then((function(e){r.end(),e=e.data.errorList;var a=[],c=[],l=(ze(e)&&e.forEach((function(e){a.push(e.userID),c.push({userID:e.userID,code:e.errorCode})})),e=i.filter((function(e){return-1===a.indexOf(e)})),Pe.l("".concat(n," ok. ").concat(s," successUserIDList:").concat(e," failureUserIDList:").concat(JSON.stringify(c))),0);return e.forEach((function(e){t._convM.patchMsgRemindType({ID:e,isC2CConversation:!0,messageRemindType:o})&&(l+=1)})),1<=l&&t._emitConvUpdate(),i.length=a.length=0,t._convM.onTotalUnreadCountUpdate(),En({successUserIDList:e.map((function(e){return{userID:e}})),failureUserIDList:c})})).catch((function(e){return r.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))}},{key:"_get",value:function(e){return this._convM.get(e)}},{key:"_emitConvUpdate",value:function(){this._convM.emitConvUpdate(!0,!1)}},{key:"setAllRcvMsgOpt",value:function(e){var t="".concat(this._n,".").concat("setAllRcvMsgOpt"),n=void 0===(n=e.messageRemindType)?M.MSG_REMIND_ACPT_NOT_NOTE:n,a=void 0===(a=e.isRepeated)||a,o=void 0===(o=(i=this._calcStartAndEndTime(e)).startTime)?0:o,i=void 0===(i=i.endTime)?0:i,s=(e=JSON.stringify(e),new $n("setAllRcvMsgOpt"));return s.setMessage(e),Pe.l("".concat(t," options:").concat(e)),this._convM.req({P:xn.SET_ALL_RECEIVE_MSG_OPT,data:{messageRemindType:io[n],startTime:o,endTime:i,isRepeated:a?1:0}}).then((function(e){return s.end(),Pe.l("".concat(t," ok.")),yn(e)})).catch((function(e){return s.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"_calcStartAndEndTime",value:function(e){var t=void 0===(t=e.startHour)?0:t,n=void 0===(n=e.startMinute)?0:n,a=void 0===(a=e.startSecond)?0:a,o=void 0===(o=e.duration)?0:o,i=(e=void 0===(e=e.isRepeated)||e,(r=new Date).getFullYear()),s=r.getMonth(),r=r.getDate();return{startTime:i=Math.round(new Date(i,s,r,t,n,a).getTime()/1e3),endTime:e&&86400<=o?i+86400:i+o}}},{key:"getAllRcvMsgOpt",value:function(){var e=this,t="".concat(this._n,".").concat("getAllRcvMsgOpt"),n=new $n("getAllRcvMsgOpt");return this._convM.req({P:xn.GET_ALL_RECEIVE_MSG_OPT,data:{toAccount:this._convM.getMyUserID()}}).then((function(a){return a=a.data,n.setMessage(JSON.stringify(a)).end(),Pe.l("".concat(t," ok. data:").concat(JSON.stringify(a))),yn(a=e._handleResult(a))})).catch((function(e){return n.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"_handleResult",value:function(e){var t=e.messageRemindType,n=e.startTime,a=e.endTime,o=(e=e.isRepeated,M.MSG_REMIND_ACPT_AND_NOTE);return 1===t&&(o=M.MSG_REMIND_DISCARD),{messageRemindType:o=2===t?M.MSG_REMIND_ACPT_NOT_NOTE:o,startTime:n,endTime:a,isRepeated:1===e}}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset"))}}]),ei),ro=(i($o,[{key:"setConvCustomData",value:function(e){var t=this,n="".concat(this._n,".").concat("setConvCustomData"),a=e.conversationIDList,o=e.customData,i=(Pe.l("".concat(n," options:"),e),new $n("setConvCustomData")),s=(i.setMessage(JSON.stringify(e)),{fromAccount:this._getMyUserID(),itemList:[]}),r=[],c=[];return a.forEach((function(e){var n;return t._hasLocalConv(e)?St(e)||Tt(e)?(n={operationType:2,contactItem:void 0,customMark:o},St(e)?n.contactItem={type:1,toAccount:e.replace(M.CONV_C2C,"")}:Tt(e)&&(n.contactItem={type:2,groupID:e.replace(M.CONV_GROUP,"")}),void s.itemList.push(n)):(t._onConvIDInvalid(c,e),!0):(t._onConvNotFound(c,e),!0)})),c.length===a.length?En({successConversationIDList:r,failureConversationIDList:c}):this._convM.req({P:xn.SET_CONV_CUSTOM_DATA,data:s}).then((function(e){var a,s,l;return i.end(),Pe.l("".concat(n," ok")),ze(e=e.data.resultItem)&&(l=!1,e.forEach((function(e){a=t._concatConvID(e.contactItem),0===e.resultCode?(r.push(a),(s=t._getLocalConv(a))&&s.customData!==o&&(s.customData=o,l=!0)):c.push({conversationID:a,code:e.resultCode,message:e.resultInfo})})),!0===l)&&t._emitConvUpdate(),yn({successConversationIDList:r,failureConversationIDList:c})})).catch((function(e){return i.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))}},{key:"markConv",value:function(e){var t,n,a,o,i,s,r,c,l,u,d=this;return this._convM.canIUse(V.CONV_MARK)?(t="".concat(this._n,".").concat("markConv"),n=e.conversationIDList,a=e.markType,o=e.enableMark,Pe.l("".concat(t," options:"),e),i=new $n("markConv"),s=void i.setMessage(JSON.stringify(e)),r=void 0,e=this._getFlagBit(a),!0===o?r=[e]:s=[e],c={fromAccount:this._getMyUserID(),itemList:[]},l=[],u=[],n.forEach((function(e){var t;return d._hasLocalConv(e)?St(e)||Tt(e)?(t={operationType:1,contactItem:void 0,clearMark:s,setMark:r},St(e)?t.contactItem={type:1,toAccount:e.replace(M.CONV_C2C,"")}:Tt(e)&&(t.contactItem={type:2,groupID:e.replace(M.CONV_GROUP,"")}),void c.itemList.push(t)):(d._onConvIDInvalid(u,e),!0):(d._onConvNotFound(u,e),!0)})),u.length===n.length?En({successConversationIDList:l,failureConversationIDList:u}):this._convM.req({P:xn.MARK_CONV,data:c}).then((function(e){var n,s,r;return i.end(),Pe.l("".concat(t," ok")),ze(e=e.data.resultItem)&&(r=!1,e.forEach((function(e){var t;n=d._concatConvID(e.contactItem),0===e.resultCode?(l.push(n),(s=d._getLocalConv(n))&&(t=s.markList.indexOf(a),!0===o?-1===t&&(s.markList.push(a),r=!0):-1!==t&&(s.markList.splice(t,1),r=!0))):u.push({conversationID:n,code:e.resultCode,message:e.resultInfo})})),!0===r)&&d._emitConvUpdate(),yn({successConversationIDList:l,failureConversationIDList:u})})).catch((function(e){return i.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this._convM.noUse("markConv")}},{key:"getLocalConvGroupList",value:function(){var e=this;return Pe.l("".concat(this._n,".getLocalConvGroupList pagingStatus:").concat(this._pagingStatus)),this._pagingStatus===Dn?this.getRemoteConvGroupList().then((function(){return yn(_(e._convGroupMap.values()))})):En(_(this._convGroupMap.values()))}},{key:"searchConvGroupAndMark",value:function(e,t){var n=this,a="".concat(this._n,".searchConvGroupAndMark"),o=[];return e.forEach((function(e){1===t?o.push({type:1,toAccount:e}):2===t&&o.push({type:2,groupID:e})})),Pe.l("".concat(a," type:").concat(t," list:"),e),this._convM.req({P:xn.SEARCH_CONV_GRP_MARK,data:{fromAccount:this._getMyUserID(),contactItem:o}}).then((function(e){var t=(e=e.data).contactItem;e=e.groupItem,Pe.l("".concat(a," ok. contactItem:"),t,"groupItem:",e),n._fillConvGroupMap(e),n._handleContactItem(t),n._emitConvUpdate()})).catch((function(e){Pe.w("".concat(a," failed. error:"),e)}))}},{key:"_fillConvGroupMap",value:function(e){var t=this;ze(e)&&e.forEach((function(e){var n=e.convGroupID;e=e.groupName,t._convGroupMap.set(n,e)}))}},{key:"_handleContactItem",value:function(e){var t,n=this;ze(e)&&e.forEach((function(e){var a=[],o=e.standardMark,i=e.customData,s=e.convGroupIDList;ze(s)&&s.forEach((function(e){n._convGroupMap.has(e)&&a.push(n._convGroupMap.get(e))})),t=n._concatConvID(e),(t=n._getLocalConv(t))&&(t.markList=Ft(o),t.customData=i||"",t.conversationGroupList=[].concat(a))}))}},{key:"getRemoteConvGroupList",value:function(){var e=this,t="".concat(this._n,".getRemoteConvGroupList");return this._pagingStatus=Nn,this._convM.req({P:xn.GET_CONV_GRP_LIST,data:{fromAccount:this._getMyUserID(),startIndex:this._startIndex}}).then((function(n){var a=(n=n.data).completeFlag,o=n.contactItem,i=void 0===(i=n.nextStartIndex)?0:i;if(n=n.groupItem,e._startIndex=i,Pe.l("".concat(t," completeFlag:").concat(a," nextStartIndex:").concat(i,", groupItem:"),n,"contactItem:",o),e._fillConvGroupMap(n),e._handleContactItem(o),0===a)return e.getRemoteConvGroupList();1===a&&(e._pagingStatus=wn,e._emitConvUpdate(),e._emitConvGroupListUpdate())})).catch((function(n){e._pagingStatus=Dn,Pe.w("".concat(t," failed. error:"),n)}))}},{key:"createConvGroup",value:function(e){var t,n,a,o,i,s,r=this;return this._convM.canIUse(V.CONV_GROUP)?(t="".concat(this._n,".").concat("createConvGroup"),Pe.l("".concat(t," options:"),e),(n=new $n("createConvGroup")).setMessage(JSON.stringify(e)),a=e.groupName,e=e.conversationIDList,o={fromAccount:this._getMyUserID(),itemList:[{groupName:a,contactItem:[]}]},i=[],s=[],e.forEach((function(e){return r._hasLocalConv(e)?St(e)||Tt(e)?void(St(e)?o.itemList[0].contactItem.push({type:1,toAccount:e.replace(M.CONV_C2C,"")}):Tt(e)&&o.itemList[0].contactItem.push({type:2,groupID:e.replace(M.CONV_GROUP,"")})):(r._onConvIDInvalid(s,e),!0):(r._onConvNotFound(s,e),!0)})),s.length===e.length?En({successConversationIDList:i,failureConversationIDList:s}):this._convM.req({P:xn.CREATE_CONV_GRP,data:o}).then((function(e){n.end(),Pe.l("".concat(t," ok"));var o,c,l,u=(e=e.data.groupResultItem[0]).groupItem;return e=e.resultItem,Ke(u)&&(r._convGroupMap.set(u.convGroupID,u.groupName),r._emitConvGroupListUpdate()),ze(e)&&(l=!1,e.forEach((function(e){o=r._concatConvID(e.contactItem),0===e.resultCode?(i.push(o),(c=r._getLocalConv(o))&&-1===c.conversationGroupList.indexOf(a)&&(c.conversationGroupList.push(a),l=!0)):s.push({conversationID:o,code:e.resultCode,message:e.resultInfo})})),!0===l)&&(r._emitConvUpdate(),r._emitConvGroupListUpdate()),yn({successConversationIDList:i,failureConversationIDList:s})})).catch((function(e){return n.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this._convM.noUse("createConvGroup")}},{key:"deleteConvGroup",value:function(e){var t,n,a=this;return this._convM.canIUse(V.CONV_GROUP)?(t="".concat(this._n,".").concat("deleteConvGroup"),Pe.l("".concat(t," groupName:").concat(e)),(n=new $n("deleteConvGroup")).setMessage(e),this._convM.req({P:xn.DEL_CONV_GRP,data:{fromAccount:this._getMyUserID(),groupName:[e]}}).then((function(o){var i;n.end(),Pe.l("".concat(t," ok")),ze(o=o.data.groupItem)&&(i=!1,o.forEach((function(e){a._convGroupMap.has(e.convGroupID)&&(a._convGroupMap.delete(e.convGroupID),i=!0)})),!0===i)&&a._emitConvGroupListUpdate(),a._eraseFromConversationGroupList([e])})).catch((function(e){return n.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this._convM.noUse("deleteConvGroup")}},{key:"renameConvGroup",value:function(e){var t,n,a,o,i=this;return this._convM.canIUse(V.CONV_GROUP)?(t="".concat(this._n,".").concat("renameConvGroup"),Pe.l("".concat(t," options:"),e),(n=new $n("renameConvGroup")).setMessage(JSON.stringify(e)),a=e.oldName,o=e.newName,this._convM.req({P:xn.RENAME_CONV_GRP,data:{fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:1,oldName:a,newName:o}}}).then((function(e){n.end(),Pe.l("".concat(t," ok")),e=e.data.updateGroupResult.convGroupID,i._convGroupMap.set(e,o),i._emitConvGroupListUpdate(),e=i._convM.getLocalConvList();var s,r,c=!1;e.forEach((function(e){s=e.conversationGroupList,-1!==(r=s.indexOf(a))&&(s.splice(r,1,o),c=!0)})),!0===c&&i._emitConvUpdate()})).catch((function(e){return n.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this._convM.noUse("renameConvGroup")}},{key:"addConvsToGroup",value:function(e){var t,n,a,o,i,s,r,c=this;return this._convM.canIUse(V.CONV_GROUP)?(t="".concat(this._n,".").concat("addConvsToGroup"),Pe.l("".concat(t," options:"),e),(n=new $n("addConvsToGroup")).setMessage(JSON.stringify(e)),a=e.conversationIDList,o=e.groupName,i={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:o,updateItem:[]}},s=[],r=[],a.forEach((function(e){return c._hasLocalConv(e)?St(e)||Tt(e)?void(St(e)?i.updateGroup.updateItem.push({operationType:1,contactItem:{type:1,toAccount:e.replace(M.CONV_C2C,"")}}):Tt(e)&&i.updateGroup.updateItem.push({operationType:1,contactItem:{type:2,groupID:e.replace(M.CONV_GROUP,"")}})):(c._onConvIDInvalid(r,e),!0):(c._onConvNotFound(r,e),!0)})),r.length===a.length?En({successConversationIDList:s,failureConversationIDList:r}):this._convM.req({P:xn.ADD_CONV_TO_GRP,data:i}).then((function(e){var a,i,l;return n.end(),Pe.l("".concat(t," ok")),ze(e=e.data.updateGroupResult.contactResultItem)&&(l=!1,e.forEach((function(e){a=c._concatConvID(e.contactItem),0===e.resultCode?(i=c._getLocalConv(a))&&-1===i.conversationGroupList.indexOf(o)&&(i.conversationGroupList.push(o),s.push(a),l=!0):r.push({conversationID:a,code:e.resultCode,message:e.resultInfo})})),!0===l)&&(c._emitConvUpdate(),c._emitConvInGroupUpdate(o)),yn({successConversationIDList:s,failureConversationIDList:r})})).catch((function(e){return n.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this._convM.noUse("addConvsToGroup")}},{key:"deleteConvsFromGroup",value:function(e){var t,n,a,o,i,s,r,c=this,l="deleteConvsFromGroup";return this._convM.canIUse(V.CONV_GROUP)?(t="".concat(this._n,".").concat(l),Pe.l("".concat(t," options:"),e),(n=new $n(l)).setMessage(JSON.stringify(e)),a=e.conversationIDList,o=e.groupName,i={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:o,updateItem:[]}},s=[],r=[],a.forEach((function(e){return c._hasLocalConv(e)?St(e)||Tt(e)?void(St(e)?i.updateGroup.updateItem.push({operationType:2,contactItem:{type:1,toAccount:e.replace(M.CONV_C2C,"")}}):Tt(e)&&i.updateGroup.updateItem.push({operationType:2,contactItem:{type:2,groupID:e.replace(M.CONV_GROUP,"")}})):(c._onConvIDInvalid(r,e),!0):(c._onConvNotFound(r,e),!0)})),r.length===a.length?En({successConversationIDList:s,failureConversationIDList:r}):this._convM.req({P:xn.DEL_CONV_FROM_GRP,data:i}).then((function(e){var a,i,l;return n.end(),Pe.l("".concat(t," ok")),ze(e=e.data.updateGroupResult.contactResultItem)&&(l=!1,e.forEach((function(e){var t;a=c._concatConvID(e.contactItem),0===e.resultCode?(i=c._getLocalConv(a))&&-1!==(t=i.conversationGroupList.indexOf(o))&&(i.conversationGroupList.splice(t,1),s.push(a),l=!0):r.push({conversationID:a,code:e.resultCode,message:e.resultInfo})})),!0===l)&&(c._emitConvUpdate(),c._emitConvInGroupUpdate(o)),yn({successConversationIDList:s,failureConversationIDList:r})})).catch((function(e){return n.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this._convM.noUse(l)}},{key:"onConvMarkUpdated",value:function(e){var t,n,a=this;He(e)||(Pe.l("".concat(this._n,".onConvMarkUpdated markItemList:"),e),n=!1,e.forEach((function(e){var o=e.recentContactItem,i=e.optType,s=e.standardMark;e=e.customMark,t=a._concatConvID(o),(t=a._getLocalConv(t))&&(1===i?n=a._diffStandardMark(t,s):2===i?n=a._diffCustomMark(t,e):3===i&&(o=a._diffStandardMark(t,s),i=a._diffCustomMark(t,e),n=o||i))})),!0===n&&this._emitConvUpdate())}},{key:"_diffStandardMark",value:function(e,t){t=Ft(t);var n=!1;return!0!==function(e,t){if(e!==t){if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0,a=e.length;n<a;n++)if(e[n]!==t[n])return!1}return!0}(e.markList,t)&&(e.markList=t,n=!0),n}},{key:"_diffCustomMark",value:function(e,t){var n=!1;return e.customData!==t&&void 0!==t&&(e.customData=t,n=!0),n}},{key:"onConvGroupCreated",value:function(e){var t=this,n=(Pe.l("".concat(this._n,".onConvGroupCreated resultList:"),e),!1),a=!1;ze(e)&&(e.forEach((function(e){var o,i,s=(i=e.msgGroupItem).groupID,r=i.groupName;t._convGroupMap.get(s)!==r&&(t._convGroupMap.set(s,r),a=!0),ze(i=e.msgRecentContactItem)&&i.forEach((function(e){o=t._concatConvID(e),(o=t._getLocalConv(o))&&-1===o.conversationGroupList.indexOf(r)&&(o.conversationGroupList.push(r),n=!0)}))})),!0===n&&this._emitConvUpdate(),!0===a)&&this._emitConvGroupListUpdate()}},{key:"onConvGroupDeleted",value:function(e){var t,n=this,a=(Pe.l("".concat(this._n,".onConvGroupDeleted groupItemList:"),e),[]);ze(e)&&(t=!1,e.forEach((function(e){var o=e.groupID;e=e.groupName,n._convGroupMap.has(o)&&(n._convGroupMap.delete(o),t=!0,a.push(e))})),!0===t)&&this._emitConvGroupListUpdate(),this._eraseFromConversationGroupList(a)}},{key:"_eraseFromConversationGroupList",value:function(e){He(e)||(this._convM.getLocalConvList().forEach((function(t){t.conversationGroupList=t.conversationGroupList.filter((function(t){return!e.includes(t)}))})),this._emitConvUpdate())}},{key:"onConvGroupNameUpdated",value:function(e){Pe.l("".concat(this._n,".onConvGroupNameUpdated options:"),e);var t,n,a,o=e.groupID,i=e.groupName,s=e.oldGroupName;this._convGroupMap.get(o)!==i&&(this._convGroupMap.set(o,i),this._emitConvGroupListUpdate(),e=this._convM.getLocalConvList(),a=!1,e.forEach((function(e){t=e.conversationGroupList,-1!==(n=t.indexOf(s))&&(t.splice(n,1,i),a=!0)})),!0===a)&&this._emitConvUpdate()}},{key:"onConvInGroupUpdated",value:function(e){var t,n,a,o=this,i=(Pe.l("".concat(this._n,".onConvInGroupUpdated options:"),e),e.oldGroupName);ze(e=e.recentContactUpdateGroupItem)&&(a=!1,e.forEach((function(e){var s=e.contactOptType;e=e.recentContactItem,t=o._concatConvID(e),(t=o._getLocalConv(t))&&(n=t.conversationGroupList.indexOf(i),1===s?-1===n&&(t.conversationGroupList.push(i),a=!0):2===s&&-1!==n&&(t.conversationGroupList.splice(n,1),a=!0))})),!0===a)&&(this._emitConvUpdate(),this._emitConvInGroupUpdate(i))}},{key:"onConvAddedToOrDeletedFromGroup",value:function(e){var t,n,a=this,o=(Pe.l("".concat(this._n,".onConvAddedToOrDeletedFromGroup options:"),e),e.msgRecentContactItem),i=(e=e.msgRecentContactUpdateContactItem,o=this._concatConvID(o),this._getLocalConv(o));i&&ze(e)&&(n=!1,e.forEach((function(e){var o=e.groupOptType;e=e.recentContactGroupItem.groupName,t=i.conversationGroupList.indexOf(e),1===o?-1===t&&(i.conversationGroupList.push(e),n=!0):2===o&&-1!==t&&(i.conversationGroupList.splice(t,1),n=!0),!0===n&&a._emitConvInGroupUpdate(e)})),!0===n)&&this._emitConvUpdate()}},{key:"onConvGroupListSynced",value:function(e){ze(e)&&0!==e.length&&(Pe.l("".concat(this._n,".onConvGroupListSynced groupItem:"),e),this._fillConvGroupMap(e))}},{key:"getConvGroupListByID",value:function(e){var t,n=this;if(!He(e))return t=[],e.forEach((function(e){n._convGroupMap.has(e)&&t.push(n._convGroupMap.get(e))})),t}},{key:"_onConvNotFound",value:function(e,t){e.push({conversationID:t,code:Vn.CONV_NOT_FOUND,message:this._convM.getErrMsg(Vn.CONV_NOT_FOUND)})}},{key:"_onConvIDInvalid",value:function(e,t){e.push({conversationID:t,code:Vn.INVALID_CONV_ID,message:this._convM.getErrMsg(Vn.INVALID_CONV_ID)})}},{key:"_getFlagBit",value:function(e){for(var t=e.toString(2),n=t.length,a=n-1;0<=a;a--)if("1"===t[a])return n-a-1}},{key:"_concatConvID",value:function(e){var t,n=e.type,a=e.to,o=e.groupID;return e=e.userID,1===n?dt(e)?dt(a)||(t="".concat(M.CONV_C2C).concat(a)):t="".concat(M.CONV_C2C).concat(e):2===n&&(t="".concat(M.CONV_GROUP).concat(o)),t}},{key:"_getMyUserID",value:function(){return this._convM.getMyUserID()}},{key:"_getLocalConv",value:function(e){return this._convM.getLocalConversation(e)}},{key:"_hasLocalConv",value:function(e){return this._convM.hasLocalConversation(e)}},{key:"_emitConvUpdate",value:function(){this._convM.emitConvUpdate(!0,!1)}},{key:"_emitConvGroupListUpdate",value:function(){this._convM.emitOEvt(T.CONVERSATION_GROUP_LIST_UPDATED,_(this._convGroupMap.values()))}},{key:"_emitConvInGroupUpdate",value:function(e){var t={groupName:e,conversationList:[]},n=this._convM.getLocalConvList();t.conversationList=n.filter((function(t){return t.conversationGroupList.includes(e)})),this._convM.emitOEvt(T.CONVERSATION_IN_GROUP_UPDATED,t)}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._convGroupMap.clear(),this._startIndex=0,this._pagingStatus=Mn}}]),$o),co=(r(Qo,Ln),Wa=f(Qo),i(Qo,[{key:"_initListeners",value:function(){var e=this.getIEmitInst();e.on(Ua.A2KEY_AND_TINYID_UPDATED,this._init,this),e.on(Ua.PROFILE_UPDATED,this._onProfileUpdated,this),e.on(Ua.CLOUD_CONFIG,this._onCloudConfig,this)}},{key:"_init",value:function(){var e=this,t=(Pe.l("".concat(this._n,"._init")),this.get(13).getItem("conversationMap")),n=this.isIntl(),a=this.isUsingChatCore();if(t){for(var o=t.length,i=0;i<o;i++){var s=t[i];if(s){if(this._isNonExistentAccount(s.conversationID))continue;if(s.groupProfile&&Ct(s.groupProfile.type))continue}this._convMap.set(s.conversationID,new oo(t[i],n,a))}this.emitConvUpdate(!0,!1)}this.ready((function(){0<e._tmpGroupList.length&&(e.updateConvGroupProfile(e._tmpGroupList),e._tmpGroupList.length=0)})),this.syncConvList()}},{key:"_isNonExistentAccount",value:function(e){var t;return"@TLS#ERROR"===(t=e.startsWith(M.CONV_C2C)?e.replace(M.CONV_C2C,""):t)||"@TLS#NOT_FOUND"===t}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&this._msgListHandler.onCheckTimer(e)}},{key:"onMessageSent",value:function(e){this._onSendOrRcvMsg({conversationOptionsList:e.conversationOptionsList,isInstantMessage:!0})}},{key:"onNewMessage",value:function(e){this._onSendOrRcvMsg(e)}},{key:"_onSendOrRcvMsg",value:function(e){var t=this,n=e.conversationOptionsList,a=void 0===(a=e.isInstantMessage)||a,o=void 0!==(o=e.isUnreadC2CMessage)&&o,i=void 0===(i=e.updateUnreadCount)||i,s=void 0!==(s=e.isSyncingEnded)&&s;this._isReady?0!==n.length?(!0===a&&this._checkNewConv(n),this._updateLocalConvList({conversationOptionsList:n,isInstantMessage:a,isUnreadC2CMessage:o,isFromGetConversations:!1,updateUnreadCount:i}),a||(this._convIDFromUnreadDBMap=new Map([].concat(_(this._convIDFromUnreadDBMap),_(n.map((function(e){return[e.conversationID,1]}))))),this._diffAndDeleteConv(),s&&this.emitIEvt(Ua.C2C_UNREAD_HANDLE_COMPLETED)),0<n.filter((function(e){return!t._isConvNeedShow(e.conversationID)})).length||this.emitConvUpdate()):s&&this.emitIEvt(Ua.C2C_UNREAD_HANDLE_COMPLETED):this.ready((function(){t._onSendOrRcvMsg(e)}))}},{key:"updateConvGroupProfile",value:function(e){var t,n=this;ze(e)&&0===e.length||(0!==this._convMap.size?(t=!1,e.forEach((function(e){var a="".concat(M.CONV_GROUP).concat(e.groupID);n._convMap.has(a)&&(t=!0,(a=n._convMap.get(a)).groupProfile=JSON.parse(JSON.stringify(e)),a.lastMessage.lastSequence<e.nextMessageSeq&&(a.lastMessage.lastSequence=e.nextMessageSeq-1),a.subType||(a.subType=e.type))})),t&&this.emitConvUpdate(!0,!1)):this._tmpGroupList=e)}},{key:"onMessageRevoked",value:function(e,t){var n,a,o,i=this;0!==e.length&&(n=null,a=!1,o=[],e.forEach((function(e){(n=i._convMap.get(e.conversationID))&&(t&&n.reduceUnreadCount()&&(a=n.type!==M.CONV_TOPIC),n.type===M.CONV_TOPIC?o.push(e):n.isLastMessageRevoked({sequence:e.sequence,time:e.time})&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),a=!0))})),this.get(10).onMessageRevoked(o),a)&&this.emitConvUpdate(!0,!1)}},{key:"updateRevokerInfo",value:function(e){for(var t=new Set,n=0;n<e.length;n++){var a=e[n].revoker;t.add(a)}var o=_(t),i=this.get(4);return new Promise((function(t){i.getUserProfile({userIDList:o}).then((function(n){if(!ze(n=n.data)||0===n.length)return t(e);var a,o={},i=S(n);try{for(i.s();!(a=i.n()).done;){var s=a.value,r=s.userID,c=s.nick,l=s.avatar;o[r]={nick:c,avatar:l}}}catch(u){i.e(u)}finally{i.f()}e.forEach((function(e){var t=e.revoker;o[t]&&(e.revokerInfo.nick=o[t].nick||"",e.revokerInfo.avatar=o[t].avatar||"")})),t(e)})).catch((function(){t(e)}))}))}},{key:"isLastMessageRevoked",value:function(e){var t=!1,n=e.conversationID,a=e.sequence,o=e.time,i=this._convMap.get(n);return i&&(t=i.type===M.CONV_TOPIC?this.get(10).isLastMessageRevoked({topicID:n.replace(M.CONV_GROUP,""),sequence:a}):i.isLastMessageRevoked({sequence:a,time:o})),Pe.l("".concat(this._n,".isLastMessageRevoked options:"),e,"ret:".concat(t)),t}},{key:"onMessageDeleted",value:function(e){var t=this;if(0!==e.length){var n=null;e.forEach((function(e){(n=t._msgListHandler.getLocalMsg(e.conversationID,e.ID))&&(n.isDeleted=!0),e!==n&&(e.isDeleted=!0)})),e=e[0].conversationID;for(var a=this._msgListHandler.getLocalMsgList(e),o={},i=a.length-1;0<=i;i--)if(!a[i].isDeleted){o=a[i];break}var s,r=this._convMap.get(e);r&&(s=!1,r.lastMessage.lastSequence===o.sequence&&r.lastMessage.lastTime===o.time||(He(o)&&(o=void 0),r.updateLastMessage(o),r.type!==M.CONV_TOPIC&&(s=!0),Pe.l("".concat(this._n,".onMessageDeleted. update convID:").concat(e," with lastMessage:"),r.lastMessage)),e.startsWith(M.CONV_C2C)&&this.updateUnreadCount(e),s)&&this.emitConvUpdate(!0,!1)}}},{key:"onMessageModified",value:function(e){var t="".concat(this._n,".onMessageModified"),n=e.conversationType,a=e.from,o=e.to,i=e.time,s=e.sequence,r=e.elements,c=e.cloudCustomData,l=e.messageVersion,u=this.getMyUserID(),d="".concat(n).concat(o),m=(n=(o===u&&n===M.CONV_C2C&&(d="".concat(n).concat(a)),u=this._msgListHandler.onMsgModified(d,e)).isUpdated,u=u.message,!0===n&&this.emitOEvt(T.MESSAGE_MODIFIED,[u]),this._isTopicConv(d));return null===u?Pe.l("".concat(t," message is null! options:"),e):Pe.l("".concat(t," isUpdated:").concat(n," isTopicMessage:").concat(m," from:").concat(a," to:").concat(o," sequence:").concat(u.sequence," time:").concat(u.time)),m?this.get(10).onMessageModified(e):(n=this._convMap.get(d))&&(a=n.lastMessage)&&a.lastTime===i&&a.lastSequence===s&&a.version!==l&&(Pe.l("".concat(t," convID:").concat(d," lastMessage updated")),a.type=r[0].type,a.payload=r[0].content,a.messageForShow=Ut(a.type,a.payload,this.isIntl()),a.cloudCustomData=c,a.version=l,this.emitConvUpdate(!0,!1)),u}},{key:"onNewGroupAtTips",value:function(e){var n=this,a=(e=e.dataList,null);e.forEach((function(e){e.groupAtTips?a=e.groupAtTips:e.elements?a=t(t({},e.elements),{},{sync:!0}):e.groupAtType&&(a=t(t({},e),{},{sync:!0})),a.__random=e.random,a.__sequence=e.clientSequence,n._tmpGroupAtTipsList.push(a)})),Pe.l("".concat(this._n,".onNewGroupAtTips isReady:").concat(this._isReady),this._tmpGroupAtTipsList),this._isReady&&this._handleGroupAtTipsList()}},{key:"_handleGroupAtTipsList",value:function(){var e,t=this;0!==this._tmpGroupAtTipsList.length&&(e=!1,this._tmpGroupAtTipsList.forEach((function(n){var a,o=n.groupID,i=n.from,s=void 0===(s=n.topicID)?void 0:s,r=void 0!==(r=n.sync)&&r;i!==t.getMyUserID()&&(dt(s)?(i=t._convMap.get("".concat(M.CONV_GROUP).concat(o)))&&(i.updateGroupAtInfoList(n),e=!0):((o=t._convMap.get("".concat(M.CONV_GROUP).concat(s)))&&(o.updateGroupAtInfoList(n),i=t.get(10),a=o.groupAtInfoList,i.onAtInfoUpdated({topicID:s,groupAtInfoList:a})),He(o)&&r&&(t.updateTopicConversation([{conversationID:"".concat(M.CONV_GROUP).concat(s),type:M.CONV_TOPIC}]),t._convMap.get("".concat(M.CONV_GROUP).concat(s)).updateGroupAtInfoList(n))))})),e&&this.emitConvUpdate(!0,!1),this._tmpGroupAtTipsList.length=0)}},{key:"_checkNewConv",value:function(e){var t=this,n=[],a=[];e.forEach((function(e){t._convMap.has(e.conversationID)||(e.type===M.CONV_C2C?n.push(e.conversationID.replace(M.CONV_C2C,"")):e.type===M.CONV_GROUP&&a.push(e.conversationID.replace(M.CONV_GROUP,"")))})),0<n.length&&(this._onNewC2CConv(n),n=null),0<a.length&&(this._onNewGroupConv(a),a=null)}},{key:"_onNewC2CConv",value:function(e){var t=this.get(6);return Promise.all([t.getRemotePeerReadTime(e),this._msgRemindHandler.getC2CMsgRemindType(e),this._convGroupHandler.searchConvGroupAndMark(e,1)])}},{key:"_onNewGroupConv",value:function(e){var t=this.get(7);return t?Promise.all([t.getMsgRemindType(e),this._convGroupHandler.searchConvGroupAndMark(e,2)]):Promise.resolve()}},{key:"_setStorageConvList",value:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=this.getLocalConvList().filter((function(e){return e.type===M.CONV_C2C||e.type===M.CONV_GROUP&&e.lastMessage.type!==M.MSG_GRP_TIP})).slice(0,20).map((function(e){return{conversationID:e.conversationID,type:e.type,subType:e.subType,lastMessage:e.lastMessage,groupProfile:e.groupProfile,userProfile:e.userProfile}}));this.get(13).setItem("conversationMap",t,e)}},{key:"emitConvUpdate",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=this.getLocalConvList();t&&(t=this.get(7))&&t.updateGroupLastMessage(n),e&&(this.get(12).isPartialUpdatedConvs()?(this._diffConvMap(this._convMapForDiff,this._convMap),0<this._partialUpdatedConvMap.size&&(this.emitOEvt(T.CONVERSATION_LIST_UPDATED),this.onTotalUnreadCountUpdate(),this._convMapForDiff.clear(),this._convMapForDiff=nt(this._convMap,!0)),0===this._convMapForDiff.size&&(this._convMapForDiff=nt(this._convMap,!0))):(this.emitOEvt(T.CONVERSATION_LIST_UPDATED),this.onTotalUnreadCountUpdate()))}},{key:"_diffConvMap",value:function(e,t){var n,a=S(t);try{for(a.s();!(n=a.n()).done;){var o=v(n.value,2),i=o[0],s=o[1];e.has(i)&&JSON.stringify(s)===e.get(i)||this._partialUpdatedConvMap.set(i,s)}}catch(r){a.e(r)}finally{a.f()}}},{key:"getPartialUpdatedConvs",value:function(){var e=_(nt(this._partialUpdatedConvMap,!1).values());return this._partialUpdatedConvMap.clear(),e}},{key:"getLocalConvList",value:function(){var e=this;return _(this._convMap.values()).filter((function(t){return e._isConvNeedShow(t.conversationID)}))}},{key:"getLocalConversation",value:function(e){return this._convMap.get(e)}},{key:"hasLocalConversation",value:function(e){return this._convMap.has(e)}},{key:"getLocalOldestMessage",value:function(e){return this._msgListHandler.getLocalOldestMsg(e)}},{key:"syncConvList",value:function(){var e=this,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],n="syncConvList",a=new $n(n);return this._pagingStatus===Mn&&this._convMap.clear(),this._pagingGetConvList(t).then((function(t){var o=qt(e._pagingGetCostList),i=Zt(e._pagingGetCostList);return e._pagingGetCostList.length=0,e._pagingStatus=wn,e._diffAndDeleteConv(),e.emitConvUpdate(!0,!1),e._setStorageConvList(),e._handleC2CPeerReadTime(),e.emitIEvt(Ua.CONV_SYNC_COMPLETED),i="count:".concat(e._convMap.size," sum:").concat(i," avg:").concat(o),Pe.l("".concat(e._n,".").concat(n,". ").concat(i)),a.setMessage(i).end(),t})).catch((function(t){return e._pagingStatus=Dn,a.setMessage(e._pagingTs).setError(t).end(),Cn(t)}))}},{key:"_diffAndDeleteConv",value:function(){var e,t=this;this._isSyncCompleted()&&(e=[],this._convMap.forEach((function(n,a){!t._pagingConvIDMap.has(a)&&t._convIDFromUnreadDBMap.has(a)&&(t._convMap.delete(a),e.push(a))})),Pe.l("".concat(this._n,"._diffAndDeleteConv list:").concat(e)),e=null)}},{key:"_pagingGetConvList",value:function(){var e=this,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],n="".concat(this._n,"._pagingGetConvList"),a=(Pe.l("".concat(n," incrementalPullFlag:").concat(t," ts:").concat(this._pagingTs," startIdx:").concat(this._pagingStartIdx)+" pinnedTs:".concat(this._pagingPinnedTs," pinnedStartIdx:").concat(this._pagingPinnedStartIdx)),Date.now());return this._pagingStatus=Nn,this.req({P:xn.PAGING_GET_CONV_LIST,data:{fromAccount:this.getMyUserID(),timeStamp:t?this._pagingTs:0,startIndex:t?this._pagingStartIdx:0,pinnedTimeStamp:t?this._pagingPinnedTs:0,pinnedStartIndex:t?this._pagingPinnedStartIdx:0,orderType:1}}).then((function(t){var o=(t=t.data).completeFlag,i=void 0===(i=t.conversations)?[]:i,s=t.timeStamp,r=t.startIndex,c=t.pinnedTimeStamp,l=t.pinnedStartIndex;if(t=t.groupItem,e._pagingGetCostList.push(jt(a,!1)),Pe.l("".concat(n," ok. completeFlag:").concat(o," count:").concat(i.length," cost:").concat(jt(a))),e._convGroupHandler.onConvGroupListSynced(t),0<i.length&&(t=e._getConvOptions(i),e._pagingConvIDMap=new Map([].concat(_(e._pagingConvIDMap),_(t.map((function(e){return[e.conversationID,1]}))))),e._updateLocalConvList({conversationOptionsList:t,isFromGetConversations:!0,updateUnreadCount:!0}),e.isLoggedIn())&&e.emitConvUpdate(),!e._isReady){if(!e.isLoggedIn())return En();e.triggerReady()}return e._pagingTs=s,e._pagingStartIdx=r,e._pagingPinnedTs=c,e._pagingPinnedStartIdx=l,1!==o?e._pagingGetConvList():(e._handleGroupAtTipsList(),e._convGroupHandler.getRemoteConvGroupList(),En())})).catch((function(t){throw!e.isLoggedIn()||e._isReady||(Pe.w("".concat(n," failed. error:"),t),e.triggerReady()),t}))}},{key:"_updateLocalConvList",value:function(e){var t=e.isFromGetConversations,n=Date.now();e=this._getTmpConvListMapping(e).newConvList,this._convMap=new Map(this._sortConvList(_(this._convMap))),t||this._updateUserOrGroupProfile(e),Pe.l("".concat(this._n,"._updateLocalConvList cost:").concat(jt(n)))}},{key:"_getTmpConvListMapping",value:function(e){for(var t=e.conversationOptionsList,n=e.isFromGetConversations,a=e.isInstantMessage,o=e.isUnreadC2CMessage,i=void 0!==o&&o,s=e.updateUnreadCount,r=[],c=[],l=this.get(7),u=this.get(8),d=this.isIntl(),m=this.isUsingChatCore(),p=0,h=t.length;p<h;p++){var g=new oo(t[p],d,m),f=g.conversationID,v=g.type;if(!this._isNonExistentAccount(f)){if(this._convMap.has(f)){var _=this._convMap.get(f);if(n){this._convMap.set(f,g),v===M.CONV_C2C?g.unreadCount=_.unreadCount:v===M.CONV_GROUP&&(g.groupProfile=JSON.parse(JSON.stringify(_.groupProfile)));continue}var y=["unreadCount","allowType","adminForbidType","payload"],E=(!1===a&&y.push("lastMessage"),"boolean"==typeof a&&y.push("isPinned"),t[p].lastMessage),C=!dt(E);C||t[p].type===M.CONV_TOPIC||this._onLastMsgNotExist(t[p]),dt(a)&&C&&null===_.lastMessage.payload&&(_.lastMessage.payload=E.payload),He(_.lastMessage.revoker)||(_.lastMessage.revoker=null),et(_,g,y,[null,void 0,"",0,NaN]),!0===s&&_.updateUnreadCount({nextUnreadCount:g.unreadCount,isFromGetConversations:n,isUnreadC2CMessage:i}),a&&C&&(E.payload&&(_.lastMessage.payload=E.payload),_.type===M.CONV_GROUP)&&(_.lastMessage.nameCard=E.nameCard,_.lastMessage.nick=E.nick),C&&_.lastMessage.cloudCustomData!==E.cloudCustomData&&(_.lastMessage.cloudCustomData=E.cloudCustomData||"")}else v===M.CONV_GROUP&&l?(y=g.groupProfile.groupID,(C=l.getLocalGroupProfile(y))&&(g.groupProfile=C,!0===s)&&g.updateUnreadCount({nextUnreadCount:0})):v===M.CONV_C2C&&(_=f.replace(M.CONV_C2C,""),u)&&u.isMyFriend(_)&&(g.remark=u.getFriendRemark(_)),r.push(g),this._convMap.set(f,g);this._convMap.get(f).type===M.CONV_TOPIC&&c.push(this._convMap.get(f))}}for(var k=this.get(10),I=0,S=c.length;I<S;I++){var T,N=(T=c[I]).conversationID;He(T=T.groupAtInfoList)||k.onAtInfoUpdated({topicID:N.replace(M.CONV_GROUP,""),groupAtInfoList:T})}return{newConvList:r}}},{key:"_onLastMsgNotExist",value:function(e){new $n("lastMsgNotExist").setMessage(JSON.stringify(e)).end()}},{key:"_sortConvList",value:function(e){var t=[],n=[],a=[],o=[];return e.forEach((function(e){(!0===e[1].isPinned?He(e[1].lastMessage.lastTime)?n:t:He(e[1].lastMessage.lastTime)?o:a).push(e)})),t.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})).concat(n).concat(a.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime}))).concat(o)}},{key:"_sortConvListAndEmitEvent",value:function(){this._convMap=new Map(this._sortConvList(_(this._convMap))),this.emitConvUpdate(!0,!1)}},{key:"_updateUserOrGroupProfile",value:function(e){var t,n,a,o,i=this;0!==e.length&&(t=[],n=[],a=this.get(4),o=this.get(7),e.forEach((function(e){var a;e.type===M.CONV_C2C?t.push(e.toAccount):e.type===M.CONV_GROUP&&(a=e.toAccount,o.hasLocalGroup(a)?e.groupProfile=o.getLocalGroupProfile(a):n.push(a))})),Pe.l("".concat(this._n,"._updateUserOrGroupProfile userIDList:").concat(t," groupIDList:").concat(n)),0<t.length&&a.getUserProfile({userIDList:t}).then((function(e){ze(e=e.data)?e.forEach((function(e){i._doUpdateUserProfile("".concat(M.CONV_C2C).concat(e.userID),e)})):i._doUpdateUserProfile("".concat(M.CONV_C2C).concat(e.userID),e)})),0<n.length)&&o.getGroupProfileAdvance({groupIDList:n,responseFilter:{groupBaseInfoFilter:["Type","Name","FaceUrl"]}}).then((function(e){e=e.data.successGroupList;var t=!1;e.forEach((function(e){var n="".concat(M.CONV_GROUP).concat(e.groupID);i._convMap.has(n)&&(et((n=i._convMap.get(n)).groupProfile,e,[],[null,void 0,"",0,NaN]),!n.subType&&e.type&&(n.subType=e.type),t=!0)})),t&&i.emitConvUpdate()}))}},{key:"_doUpdateUserProfile",value:function(e,t){this.hasLocalConversation(e)&&(this.getLocalConversation(e).userProfile=t,this.emitConvUpdate())}},{key:"_getConvOptions",value:function(e){var n=this,a=[],o=(e=e.filter((function(e){var t=e.type;return e=e.userID,1===t&&!n._isNonExistentAccount(e)||2===t})),this.getMyUserID());return e=e.map((function(e){var i;return dt(e.lastMsg)&&(e.lastMsg={elements:[]}),1===e.type?(i={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar},a.push(i),{conversationID:"".concat(M.CONV_C2C).concat(e.userID),type:M.CONV_C2C,lastMessage:{lastTime:e.time,lastSequence:e.sequence,fromAccount:e.lastC2CMsgFromAccount,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:null,payload:e.lastMsg.elements[0]?n._amendLayersOverLimitProp(e.lastMsg.elements[0].content):null,cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:8===e.lastMessageFlag,onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:e.lastC2CMsgFromAccount===o&&e.time<=e.c2cPeerReadTime,revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null},unreadCount:0,userProfile:new eo(i),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,customData:e.customMark||"",markList:Ft(e.standardMark),conversationGroupList:n._convGroupHandler.getConvGroupListByID(e.contactGroupId),remark:e.friendRemark||"",messageRemindType:n._transMsgRemindType(e.messageRemindType)}):{conversationID:"".concat(M.CONV_GROUP).concat(e.groupID),type:M.CONV_GROUP,lastMessage:t(t({lastTime:e.time,lastSequence:e.sequence,fromAccount:e.msgGroupFromAccount},n._patchTypeAndPayload(e)),{},{cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:2===e.lastMessageFlag,onlineOnlyFlag:!1,nick:e.senderNick||"",nameCard:e.senderNameCard||"",revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null}),groupProfile:new ao({groupID:e.groupID,name:e.groupNick,avatar:e.groupImage,type:e.groupType,nextMessageSeq:e.nextMessageSeq}),unreadCount:n._computeGroupUnreadCount(e),peerReadTime:0,isPinned:1===e.isPinned,version:0,customData:e.customMark||"",markList:Ft(e.standardMark),conversationGroupList:n._convGroupHandler.getConvGroupListByID(e.contactGroupId),messageRemindType:n._transMsgRemindType(e.messageRemindType)}})),0<a.length&&this.get(4).onConvProfileUpdated(a),e}},{key:"_transMsgRemindType",value:function(e){var t="";return 0===e?t=M.MSG_REMIND_ACPT_AND_NOTE:1===e?t=M.MSG_REMIND_DISCARD:2===e?t=M.MSG_REMIND_ACPT_NOT_NOTE:3===e&&(t=M.NOT_RECEIVE_OFFLINE_PUSH_EXCEPT_AT),t}},{key:"_computeGroupUnreadCount",value:function(e){var t;return 0<(t=(void 0===(t=e.unreadCount)?0:t)-(void 0===(e=e.noUnreadCount)?0:e))?t:0}},{key:"_patchTypeAndPayload",value:function(e){var n=(e=e.lastMsg).event,a=void 0===(a=e.elements)?[]:a;return e=void 0===(e=e.groupTips)?{}:e,dt(void 0===n?void 0:n)||He(e)?{type:a[0]?a[0].type:null,payload:a[0]?this._amendLayersOverLimitProp(a[0].content):null}:((n=new Ia(e)).setElement({type:M.MSG_GRP_TIP,content:t(t({},e.elements),{},{groupProfile:e.groupProfile})}),a=JSON.parse(JSON.stringify(n.payload)),n=null,{type:M.MSG_GRP_TIP,payload:a})}},{key:"_amendLayersOverLimitProp",value:function(e){var t=e.layersOverLimit;return 0===t?e.layersOverLimit=!1:1===t&&(e.layersOverLimit=!0),e}},{key:"getLocalMessageList",value:function(e){return this._msgListHandler.getLocalMsgList(e)}},{key:"deleteLocalMessage",value:function(e){e instanceof Ia&&this._msgListHandler.remove(e)}},{key:"onConvDeleted",value:function(e){ze(e)&&(e=e.map((function(e){var t=e.type,n=e.userID;return e=e.groupID,1===t?"".concat(M.CONV_C2C).concat(n):2===t?"".concat(M.CONV_GROUP).concat(e):void 0})),Pe.l("".concat(this._n,".onConvDeleted convIDList:").concat(e)),this.deleteLocalConvList(e))}},{key:"onConvPinnedStatus",value:function(e,t){var n,a=this;ze(e)&&(n=!1,e.forEach((function(e){var o,i=e.type,s=e.userID;e=e.groupID,1===i?o=a.getLocalConversation("".concat(M.CONV_C2C).concat(s)):2===i&&(o=a.getLocalConversation("".concat(M.CONV_GROUP).concat(e))),o&&(Pe.l("".concat(a._n,".onConvPinnedStatus convID:").concat(o.conversationID," localPinned:").concat(o.isPinned," remotePinned:").concat(t)),t?o.isPinned||(o.isPinned=!0,n=!0):o.isPinned&&(o.isPinned=!1,n=!0))})),n)&&this._sortConvListAndEmitEvent()}},{key:"getMessageList",value:function(e){var t=this,n=e.conversationID,a=e.nextReqMessageID,o=(e=e.count,"".concat(this._n,".getMessageList")),i="";if((r=this.getLocalConversation(n))&&r.groupProfile&&(i=r.groupProfile.type),Ct(i))return Pe.l("".concat(o," not available in ").concat(i,". convID:").concat(n)),En({messageList:[],nextReqMessageID:"",isCompleted:!0});(dt(e)||15<e)&&(e=15),a||this._isMeInCommunity(n)||this.clearMemMsg(n);var s=this._computeRemainingCount({conversationID:n,nextReqMessageID:a}),r=this._completedMap.has(n);return Pe.l("".concat(o," convID:").concat(n," isEverCleared:").concat(this._isEverCleared(n)," nextReqMessageID:").concat(a)+" remainingCount:".concat(s," count:").concat(e," isCompleted:").concat(r)),this._needGetHistory({conversationID:n,remainingCount:s,count:e})?this.getHistoryMessages({conversationID:n,nextReqMessageID:a,count:20}).then((function(e){var a=e.nextReqID,i=e.storedMessageList,r=e.assembledMessageList,c=(e=e.isPullingCompleted,t._completedMap.has(n)),l=i,u=(0<s&&(l=t._msgListHandler.getLocalMsgList(n).slice(0,i.length+s)),{nextReqMessageID:void 0,messageList:void 0,isCompleted:void 0});return t._isEverCleared(n)?(u.nextReqMessageID=a,u.messageList=r,u.isCompleted=e):(u.nextReqMessageID=c?"":a,u.messageList=l,u.isCompleted=c),i=u.messageList.filter((function(e){return e.isRevoked}))||[],r=u.messageList.map((function(e){return e.sequence})),Pe.l("".concat(o," ret.nextReqMessageID:").concat(u.nextReqMessageID," ret.isCompleted:").concat(u.isCompleted," sequenceList:"),r),ze(i)&&0!==i.length?t.updateRevokerInfo(i).then((function(e){return e.forEach((function(e){var t=e.revokerInfo;u.messageList=u.messageList.map((function(n){return n.ID===e.ID&&t&&(n.revokeReason=t.reason||"",n.revokerInfo={userID:t.revoker||n.revoker,nick:t.nick,avatar:t.avatar}),n}))})),yn(u)})):yn(u)})):(this.modifyMessageList(n),En(i=this._getMsgListFromMem({conversationID:n,nextReqMessageID:a,count:e})))}},{key:"_isEverCleared",value:function(e){return this._everClearedMap.has(e)}},{key:"_getMsgListFromMem",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,a=(e=e.count,"".concat(this._n,"._getMsgListFromMem")),o=this._msgListHandler.getLocalMsgList(t),i=o.length,s=St(t),r=0,c={isCompleted:!1,nextReqMessageID:"",messageList:[]};return n?(r=s?o.findIndex((function(e){return e.ID===n})):o.findIndex((function(e){return e.sequence+""===n})))>e?(c.messageList=o.slice(r-e,r),c.nextReqMessageID=s?o[r-e].ID:o[r-e].sequence+""):(c.messageList=o.slice(0,r),c.isCompleted=!0):e<i?(c.messageList=o.slice(r=i-e,i),c.nextReqMessageID=s?o[r].ID:o[r].sequence+""):(c.messageList=o.slice(0,i),c.isCompleted=!0),e=c.messageList.map((function(e){return e.sequence})),Pe.l("".concat(a," convID:").concat(t)+" ret.nextReqMessageID:".concat(c.nextReqMessageID," ret.isCompleted:").concat(c.isCompleted," sequenceList:").concat(e)),c}},{key:"getMessageListHopping",value:function(e){var t,n,a=e.conversationID,o=e.sequence,i=e.time,s=e.count;return e=void 0===(e=e.direction)?0:e,(dt(s)||15<s)&&(s=15),a.startsWith(M.CONV_C2C)?(t=this.get(6),n=a.replace(M.CONV_C2C,""),t.getRoamingMessagesHopping({peerAccount:n,time:i,count:s,direction:e})):a.startsWith(M.CONV_GROUP)?(t=this.get(7),n=a.replace(M.CONV_GROUP,""),t.getRoamingMessagesHopping({groupID:n,sequence:o,count:s,direction:e})):void 0}},{key:"_computeRemainingCount",value:function(e){var t,n=e.conversationID,a=e.nextReqMessageID,o=(e=this._msgListHandler.getLocalMsgList(n)).length;return Pe.l("".concat(this._n,"._computeRemainingCount convID:").concat(n," nextReqMessageID:").concat(a," length:").concat(o)),a?(t=0,St(n)?t=e.findIndex((function(e){return e.ID===a})):Tt(n)&&(t=-1!==a.indexOf("-")?e.findIndex((function(e){return e.ID===a})):e.findIndex((function(e){return e.sequence+""===a}))),-1===t?0:t):o}},{key:"_needGetHistory",value:function(e){var t=e.conversationID,n=e.remainingCount,a=(e=e.count,this.getLocalConversation(t)),o="";return a&&a.groupProfile&&(o=a.groupProfile.type),!(Mt(t)||Ct(o)||!this._isEverCleared(t)&&(a=n<=e&&!this._completedMap.has(t),Pe.l("".concat(this._n,"._needGetHistory convID:").concat(t," ret:").concat(a)),!a))}},{key:"_isTopicConv",value:function(e){return It(e=e.replace(M.CONV_GROUP,""))}},{key:"getHistoryMessages",value:function(e){var t,n,a,o,i,s,r=e.conversationID,c=e.count;return e=e.nextReqMessageID,r===M.CONV_SYSTEM?En():(c=20<c?20:15,t=null,St(r)?(s=0,n="",a=!1,i=this._roamingMsgKeyAndTimeMap.has(r),e&&(a=!0,i?(s=this._roamingMsgKeyAndTimeMap.get(r).lastMessageTime,n=this._roamingMsgKeyAndTimeMap.get(r).messageKey):(o=this._msgListHandler.findMessage(e))&&(s=o.time,Pe.l("".concat(this._n,".getHistoryMessages convID:").concat(r," isRelayInfoExisted:").concat(i," lastMessageTime:").concat(s)))),(t=this.get(6)).getRoamingMessage({conversationID:r,peerAccount:r.replace(M.CONV_C2C,""),count:c,lastMessageTime:a?s:0,messageKey:a?n:""})):Tt(r)?(t=this.get(7))?(o=r.replace(M.CONV_GROUP,""),i=null,this._convMap.has(r)&&!It(o)&&(i=this._convMap.get(r).lastMessage),s=0,e?s=Number(e):i&&(s=i.lastSequence),t.getRoamingMessage({conversationID:r,groupID:o,count:c,sequence:s})):Cn({code:Vn.NO_MODULE}):En())}},{key:"patchConvLastMessage",value:function(e){var t,n,a=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=this.getLocalConversation(e);o&&(t=(n=o.lastMessage).messageForShow,n=n.payload,He(t)||He(n)||a)&&0!==(t=this._msgListHandler.getLocalMsgList(e)).length&&(n=t[t.length-1],Pe.l("".concat(this._n,".patchConvLastMessage bForceUpdate:").concat(a," convID:").concat(e," payload:"),n.payload),o.updateLastMessage(n))}},{key:"onRoamingMessage",value:function(){var e,n,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],o=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],i=3<arguments.length?arguments[3]:void 0,s=(l=1<arguments.length?arguments[1]:void 0).startsWith(M.CONV_C2C)?M.CONV_C2C:M.CONV_GROUP,r=null,c=[],l=[],u=0,d=a.length,m=s===M.CONV_GROUP,p=this.getFileDownloadProxy(),h=this.getDowloadFileAuthKey(),g=ze(i),f=this.get(17).getFileDNList(),v=function(){m?--u:++u},_=function(){return m?d<=u:u<d};for(u=m?a.length-1:0,d=m?0:a.length;_();v())1!==a[u].isPlaceMessage&&((r=new Ia(a[u])).to=a[u].to,s!==M.CONV_GROUP||dt(a[u].topicID)||(r.to=a[u].topicID),r.isSystemMessage=!!a[u].isSystemMessage,r.conversationType=s,e=4===a[u].event?{type:M.MSG_GRP_TIP,content:t(t({},a[u].elements),{},{groupProfile:a[u].groupProfile})}:a[u].elements,m||r.setNickAndAvatar({nick:a[u].nick,avatar:a[u].avatar}),He(e)?((n=new $n("emptyMessageBody")).setMessage("from:".concat(r.from," to:").concat(r.to," sequence:").concat(r.sequence," event:").concat(a[u].event)),n.setLevel("warning").end()):(r.setElement(e,p,h,f),r.reInitialize(this.getMyUserID()),c.push(r),g&&i.push(r)));return v=_=null,o?(this._msgListHandler.unshift(c,l),c=null,l):c}},{key:"findMessage",value:function(e){return this._msgListHandler.findMessage(e)}},{key:"_isMeInCommunity",value:function(e){var t=!0;return this._isTopicConv(e)&&(e=xt(e.replace(M.CONV_GROUP,"")),this.get(7).hasLocalGroup(e)||(t=!1,Pe.l("".concat(this._n,"._isMeInCommunity groupID:").concat(e," ret:").concat(t)))),t}},{key:"deleteTopicRoamingInfo",value:function(e){var t=this;kt({groupID:e})&&this._msgListHandler.getTopicConvIDList(e).forEach((function(e){t.clearMemMsg(e)}))}},{key:"deleteGroupRoamingInfo",value:function(e){e="".concat(M.CONV_GROUP).concat(e),0<this._msgListHandler.getLocalMsgList(e).length&&this.clearMemMsg(e)}},{key:"setMessageRead",value:function(e){var t=e.conversationID,n=this.getLocalConversation(t);if(e="".concat(this._n,".setMessageRead"),Pe.l("".concat(e," convID:").concat(t," unreadCount:").concat(n?n.unreadCount:0)),!n)return En();if(n.type!==M.CONV_GROUP&&n.type!==M.CONV_TOPIC||He(n.groupAtInfoList)||this.deleteGroupAtTips(t),0===n.unreadCount)return En();var a=this._msgListHandler.getLocalLastMsg(t),o=n.lastMessage.lastTime,i=(o<(i=this._msgListHandler.getLocalMaxTime(t))&&(Pe.l("".concat(e," update lastMessageTime from ").concat(o," to ").concat(i)),o=i),this._msgListHandler.getLocalMaxSeq(t)),s=n.lastMessage.lastSequence,r=(s<i&&(Pe.l("".concat(e," update lastMessageSeq from ").concat(s," to ").concat(i)),s=i),n.type===M.CONV_TOPIC&&dt(a)&&(e=this.get(10),a=xt(i=t.replace(M.CONV_GROUP,"")),e=e.getLocalTopic(a,i))&&(s=e.nextMessageSeq-1),null);switch(n.type){case M.CONV_C2C:return(r=this.get(6))?r.setMessageRead({conversationID:t,lastMessageTime:o}):Cn({code:Vn.NO_MODULE});case M.CONV_GROUP:case M.CONV_TOPIC:return(r=this.get(7))?r.setMessageRead({conversationID:t,lastMessageSeq:s}):Cn({code:Vn.NO_MODULE});case M.CONV_SYSTEM:return n.unreadCount=0,this.emitConvUpdate(!0,!1),En();default:return En()}}},{key:"setAllMessageRead",value:function(){var e,t=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},a="setAllMessageRead",o="".concat(this._n,".").concat(a),i=(n.scope||(n.scope=M.READ_ALL_MSG),Pe.l("".concat(o," options:"),n),this._createSetAllMessageReadPack(n));return 0===i.readAllC2CMessage&&0===i.groupMessageReadInfoList.length?En():(e=new $n(a),this.req({P:xn.SET_ALL_MSG_READ,data:i}).then((function(a){return a=a.data,a=t._handleAllMsgRead(a),e.setMessage("scope:".concat(n.scope," failureGroups:").concat(JSON.stringify(a))).end(),En()})).catch((function(t){return e.setError(t).end(),Pe.w("".concat(o," failed. error:"),t),Cn({code:t&&t.code?t.code:Vn.MSG_UNREAD_ALL_FAIL,message:t&&t.message?t.message:void 0})})))}},{key:"setConvCustomData",value:function(e){return this._convGroupHandler.setConvCustomData(e)}},{key:"markConv",value:function(e){return this._convGroupHandler.markConv(e)}},{key:"getConvGroupList",value:function(){return this._convGroupHandler.getLocalConvGroupList()}},{key:"createConvGroup",value:function(e){return this._convGroupHandler.createConvGroup(e)}},{key:"deleteConvGroup",value:function(e){return this._convGroupHandler.deleteConvGroup(e)}},{key:"renameConvGroup",value:function(e){return this._convGroupHandler.renameConvGroup(e)}},{key:"addConvsToGroup",value:function(e){return this._convGroupHandler.addConvsToGroup(e)}},{key:"deleteConvsFromGroup",value:function(e){return this._convGroupHandler.deleteConvsFromGroup(e)}},{key:"onConvMarkUpdated",value:function(e){this._convGroupHandler.onConvMarkUpdated(e)}},{key:"onConvGroupCreated",value:function(e){this._convGroupHandler.onConvGroupCreated(e)}},{key:"onConvGroupDeleted",value:function(e){this._convGroupHandler.onConvGroupDeleted(e)}},{key:"onConvGroupNameUpdated",value:function(e){this._convGroupHandler.onConvGroupNameUpdated(e)}},{key:"onConvInGroupUpdated",value:function(e){this._convGroupHandler.onConvInGroupUpdated(e)}},{key:"onConvAddedToOrDeletedFromGroup",value:function(e){this._convGroupHandler.onConvAddedToOrDeletedFromGroup(e)}},{key:"_getConvLastMessageSeq",value:function(e){var t=this._msgListHandler.getLocalLastMsg(e.conversationID);return e=e.lastMessage.lastSequence,t&&e<t.sequence?t.sequence:e}},{key:"_getConvLastMessageTime",value:function(e){var t=this._msgListHandler.getLocalLastMsg(e.conversationID);return e=e.lastMessage.lastTime,t&&e<t.time?t.time:e}},{key:"_createSetAllMessageReadPack",value:function(e){var t,n={readAllC2CMessage:0,groupMessageReadInfoList:[]},a=e.scope,o=S(this._convMap);try{for(o.s();!(t=o.n()).done;){var i,s=v(t.value,2)[1];if(0<s.unreadCount)if(s.type===M.CONV_C2C&&0===n.readAllC2CMessage){if(a===M.READ_ALL_MSG)n.readAllC2CMessage=1;else if(a===M.READ_ALL_C2C_MSG){n.readAllC2CMessage=1;break}}else s.type!==M.CONV_GROUP||a!==M.READ_ALL_GROUP_MSG&&a!==M.READ_ALL_MSG||(i=this._getConvLastMessageSeq(s),n.groupMessageReadInfoList.push({groupID:s.groupProfile.groupID,messageSequence:i}))}}catch(r){o.e(r)}finally{o.f()}return n}},{key:"onPushedAllMessageRead",value:function(e){this._handleAllMsgRead(e)}},{key:"_handleAllMsgRead",value:function(e){var t=e.groupMessageReadInfoList;return e=e.readAllC2CMessage,t=this._parseGroupReadInfo(t),1<=this._updateAllConvUnreadCount({readAllC2CMessage:e})&&this.emitConvUpdate(!0,!1),t}},{key:"_parseGroupReadInfo",value:function(e){var t=[];if(e&&e.length)for(var n=0,a=e.length;n<a;n++){var o=(r=e[n]).groupID,i=r.sequence,s=r.retCode,r=r.lastMessageSeq;dt(s)?this._remoteGroupReadSeqMap.set(o,r):(this._remoteGroupReadSeqMap.set(o,i),0!==s&&t.push("".concat(o,"-").concat(i,"-").concat(s)))}return t}},{key:"_updateAllConvUnreadCount",value:function(e){var t,n=e.readAllC2CMessage,a=0,o=S(this._convMap);try{for(o.s();!(t=o.n()).done;){var i,s,r,c,l=v(t.value,2),u=l[0],d=l[1];1<=d.unreadCount&&(1===n&&d.type===M.CONV_C2C?(i=this._getConvLastMessageTime(d),this.updateIsReadAfterReadReport({conversationID:u,lastMessageTime:i})):d.type===M.CONV_GROUP&&(s=u.replace(M.CONV_GROUP,""),this._remoteGroupReadSeqMap.has(s))&&(r=this._remoteGroupReadSeqMap.get(s),c=this._getConvLastMessageSeq(d),this.updateIsReadAfterReadReport({conversationID:u,remoteReadSequence:r}),r<=c)&&this._remoteGroupReadSeqMap.delete(s),this.updateUnreadCount(u,!1))&&(a+=1)}}catch(m){o.e(m)}finally{o.f()}return a}},{key:"isRemoteRead",value:function(e){var t,n=e.conversationID,a=(e=e.sequence,n.replace(M.CONV_GROUP,"")),o=!1;return this._remoteGroupReadSeqMap.has(a)&&(e<=(t=this._remoteGroupReadSeqMap.get(a))&&(o=!0,Pe.l("".concat(this._n,".isRemoteRead convID:").concat(n," msgSeq:").concat(e," remoteReadSeq:").concat(t))),t+10<=e)&&this._remoteGroupReadSeqMap.delete(a),o}},{key:"updateIsReadAfterReadReport",value:function(e){var t=e.conversationID,n=e.lastMessageSeq,a=e.lastMessageTime,o=this._msgListHandler.getLocalMsgList(t);if(0!==o.length)for(var i,s=o.length-1;0<=s;s--)if(i=o[s],!(a&&i.time>a||n&&i.sequence>n)){if("in"===i.flow&&i.isRead)break;i.setIsRead(!0)}}},{key:"updateUnreadCount",value:function(e){var t,n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],a=!1,o=this.getLocalConversation(e),i=this._msgListHandler.getLocalMsgList(e);if(o)return(t=o.unreadCount)!==(i=i.filter((function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted})).length)&&(o.unreadCount=i,a=!0,Pe.l("".concat(this._n,".updateUnreadCount from ").concat(t," to ").concat(i,", convID:").concat(e)),!0===n)&&this.emitConvUpdate(!0,!1),a&&o.type===M.CONV_TOPIC&&(t=o.unreadCount,i=this.get(10),n=e.replace(M.CONV_GROUP,""),i.onUnreadCountUpdatedFromConv(n,t)),a}},{key:"clearGroupAtInfoList",value:function(e){var t,n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],a=this.getLocalConversation(e);a&&0<a.groupAtInfoList.length&&(a.clearGroupAtInfoList(),Pe.l("".concat(this._n,".clearGroupAtInfoList convID:").concat(e)),a.type===M.CONV_TOPIC&&(a=a.groupAtInfoList,t=this.get(10),e=e.replace(M.CONV_GROUP,""),t.onAtInfoUpdated({topicID:e,groupAtInfoList:a})),!0===n)&&this.emitConvUpdate(!0,!1)}},{key:"updateReadReceiptInfo",value:function(e){var t,n,a,o=this,i=void 0===(r=e.userID)?void 0:r,s=void 0===(r=e.groupID)?void 0:r,r=e.readReceiptList,c=void 0===(e=e.timestamp)?0:e;He(r)||(t=[],dt(i)?dt(s)||(n="".concat(M.CONV_GROUP).concat(s),r.forEach((function(e){var a=e.tinyID,i=e.clientTime,r=e.random,c=e.readCount;e=e.unreadCount,a="".concat(a,"-").concat(i,"-").concat(r),i=o._msgListHandler.getLocalMsg(n,a)||o._msgListHandler.getHoppingMsg(n,a),r={groupID:s,messageID:a,readCount:0,unreadCount:0},i&&(Je(c)&&(i.readReceiptInfo.readCount=c,r.readCount=c),Je(e)&&(i.readReceiptInfo.unreadCount=e,r.unreadCount=e),t.push(r))}))):(a="".concat(M.CONV_C2C).concat(i),r.forEach((function(e){var n=e.tinyID,s=e.clientTime;e=e.random,n="".concat(n,"-").concat(s,"-").concat(e),(s=o._msgListHandler.getLocalMsg(a,n)||o._msgListHandler.getHoppingMsg(a,n))&&!s.readReceiptInfo.isPeerRead&&(s.readReceiptInfo.isPeerRead=!0,s.readReceiptInfo.timestamp=c,t.push({userID:i,messageID:n,isPeerRead:!0,timestamp:c}))}))),0<t.length&&this.emitOEvt(T.MESSAGE_READ_RECEIPT_RECEIVED,t))}},{key:"updateIsRead",value:function(e){var t=this.getLocalConversation(e),n=this.getLocalMessageList(e);if(t&&0!==n.length&&!Mt(t.type)){for(var a=[],o=0,i=n.length;o<i;o++)"in"!==n[o].flow?"out"!==n[o].flow||n[o].isRead||n[o].setIsRead(!0):a.push(n[o]);var s=0;s=t.type===M.CONV_C2C?(e=a.slice(-t.unreadCount).filter((function(e){return e.isRevoked})).length,a.length-t.unreadCount-e):a.length-t.unreadCount;for(var r=0;r<s&&!a[r].isRead;r++)a[r].setIsRead(!0)}}},{key:"deleteGroupAtTips",value:function(e){var t,n,a,o=this,i="".concat(this._n,".deleteGroupAtTips"),s=(Pe.l("".concat(i)),this._convMap.get(e));return s&&0!==(t=s.groupAtInfoList).length?(s=void 0,e.startsWith(M.CONV_GROUP)&&(s=e.replace(M.CONV_GROUP,"")),n=_(t),(kt({groupID:s})||It(s))&&0===(n=t.filter((function(e){return!e.atTypeArray.includes(M.CONV_AT_ALL)}))).length?(this.clearGroupAtInfoList(e,!1),Promise.resolve()):(a=this.getMyUserID(),this.req({P:xn.DEL_GROUP_AT_TIPS,data:{messageListToDelete:n.map((function(e){return{from:e.from,to:a,messageSeq:e.__sequence,messageRandom:e.__random,groupID:dt(e.topicID)?e.groupID:e.topicID}}))}}).then((function(){return Pe.l("".concat(i," ok. count:").concat(t.length)),o.clearGroupAtInfoList(e,!1),Promise.resolve()})).catch((function(e){return Pe.e("".concat(i," failed. error:"),e),Cn(e)})))):Promise.resolve()}},{key:"appendToMessageList",value:function(e){return this._msgListHandler.pushIn(e)}},{key:"setMessageRandom",value:function(e){this._sll.set(e.random)}},{key:"deleteMessageRandom",value:function(e){this._sll.delete(e.random)}},{key:"pushIntoMessageList",value:function(e,t,n){return!(!this._msgListHandler.pushIn(t,n)||this._sll.has(t.random)&&!n||(e.push(t),0))}},{key:"revoke",value:function(e,t,n){return this._msgListHandler.revoke(e,t,n)}},{key:"getPeerReadTime",value:function(e){return this._peerReadTimeMap.get(e)}},{key:"recordPeerReadTime",value:function(e,t){(!this._peerReadTimeMap.has(e)||this._peerReadTimeMap.get(e)<t)&&this._peerReadTimeMap.set(e,t)}},{key:"updateMsgIsPeerReadProp",value:function(e,t){var n;e.startsWith(M.CONV_C2C)&&0<t&&(0<(n=this._msgListHandler.updateMsgIsPeerReadProp(e,t)).length&&this.emitOEvt(T.MESSAGE_READ_BY_PEER,n),this._convMap.has(e))&&!He(n=this._convMap.get(e).lastMessage)&&n.fromAccount===this.getMyUserID()&&n.lastTime<=t&&!n.isPeerRead&&(n.isPeerRead=!0,this.emitConvUpdate(!0,!1))}},{key:"updateMsgIsModifiedProp",value:function(e){this._msgListHandler.updateMsgIsModifiedProp(e)}},{key:"setCompleted",value:function(e){Pe.l("".concat(this._n,".setCompleted convID:").concat(e)),this._completedMap.set(e,!0)}},{key:"updateRoamingMsgKeyAndTime",value:function(e,t,n){this._roamingMsgKeyAndTimeMap.set(e,{messageKey:t,lastMessageTime:n})}},{key:"getConvList",value:function(e){var t,n=this,a="".concat(this._n,".").concat("getConvList"),o="pagingStatus:".concat(this._pagingStatus,", local conversation count:").concat(this._convMap.size,", options:").concat(JSON.stringify(e));return Pe.l("".concat(a,". ").concat(o)),this._pagingStatus===Dn?((t=new $n("getConvList")).setMessage(o),this.syncConvList().then((function(){return t.end(),yn({conversationList:n._getConvList(e),isSyncCompleted:n._isSyncCompleted()})})).catch((function(e){return t.setError(e).end(),Pe.e("".concat(a," failed. error:"),e),Cn(e)}))):(o=this._getConvList(e),Pe.l("".concat(a,". returned conversation count:").concat(o.length)),En({conversationList:o,isSyncCompleted:this._isSyncCompleted()}))}},{key:"_getConvList",value:function(e){var t,n,a,o,i,s=this;return dt(e)?this.getLocalConvList():ze(e)?0===e.length?[]:this.getLocalConvList().filter((function(t){return e.includes(t.conversationID)})):Ke(e)?(t=e.type,n=e.markType,a=e.groupName,o=e.hasUnreadCount,i=e.hasGroupAtInfo,this.getLocalConvList().filter((function(e){return s._filterType(e,t)&&s._filterMarkType(e,n)&&s._filterGroupName(e,a)&&s._filterUnreadCount(e,o)&&s._filterGroupAtInfo(e,i)}))):[]}},{key:"_filterType",value:function(e,t){return t!==M.CONV_C2C&&t!==M.CONV_GROUP||e.type===t}},{key:"_filterGroupName",value:function(e,t){return!ut(t)||(""===t?0===e.conversationGroupList.length:e.conversationGroupList.includes(t))}},{key:"_filterMarkType",value:function(e,t){return!Je(t)||(0===t?0===e.markList.length:e.markList.includes(t))}},{key:"_filterUnreadCount",value:function(e,t){var n=!0;return!0===t?n=1<=e.unreadCount:!1===t&&(n=0===e.unreadCount),n}},{key:"_filterGroupAtInfo",value:function(e,t){var n=!0;return!0===t?n=1<=e.groupAtInfoList.length:!1===t&&(n=0===e.groupAtInfoList.length),n}},{key:"_handleC2CPeerReadTime",value:function(){var e,t=S(this._convMap);try{for(t.s();!(e=t.n()).done;){var n=v(e.value,2),a=n[0],o=n[1];o.type===M.CONV_C2C&&this.recordPeerReadTime(a,o.peerReadTime)}}catch(i){t.e(i)}finally{t.f()}}},{key:"_isPagingGetGroupListCompleted",value:function(){var e=this.get(7);return!e||e.isPagingGetCompleted()}},{key:"_getLocalGroupCount",value:function(){var e=this.get(7);return e?e.getLocalGroupList().length:0}},{key:"_hasLocalGroup",value:function(e){var t=this.get(7);return!!t&&t.hasLocalGroup(e.replace(M.CONV_GROUP,""))}},{key:"getConversationProfile",value:function(e){var t,n=this,a=!1;if(this._convMap.has(e)?t=this._convMap.get(e):(t=new oo({conversationID:e,type:St(e)?M.CONV_C2C:M.CONV_GROUP},this.isIntl(),this.isUsingChatCore()),a=!0),t._isInfoCompleted||t.type===M.CONV_SYSTEM)return En({conversation:t});if(Tt(e)){if(!this.get(7))return Cn({code:Vn.NO_MODULE});if(!this._hasLocalGroup(e))return En({conversation:t})}var o="".concat(this._n,".").concat("getConversationProfile"),i=new $n("getConversationProfile");return Pe.l("".concat(o,". convID:").concat(e," remark:").concat(t.remark," lastMessage:"),t.lastMessage),this._getUserOrGroupProfile(t).then((function(s){i.setMessage("convID:".concat(e," unreadCount:").concat(s.data.conversation.unreadCount)).end();var r,c=n.get(8);if(c&&t.type===M.CONV_C2C&&(r=e.replace(M.CONV_C2C,""),c.isMyFriend(r))&&(c=c.getFriendRemark(r),t.remark!==c)&&(t.remark=c,Pe.l("".concat(o,". convID:").concat(e," patch remark:").concat(t.remark))),Pe.l("".concat(o," ok. isNewConv:").concat(a," convID:").concat(e)),a){if(t.type===M.CONV_C2C)return n._onNewC2CConv([e.replace(M.CONV_C2C,"")]).then((function(){return En({conversation:t})}));if(t.type===M.CONV_GROUP)return n._onNewGroupConv([e.replace(M.CONV_GROUP,"")]).then((function(){return En({conversation:t})}))}return s})).catch((function(t){return i.setError(t).setMessage("convID:".concat(e)).end(),Pe.e("".concat(o," failed. error:"),t),Cn(t)}))}},{key:"_getUserOrGroupProfile",value:function(e){var t=this;return e.type===M.CONV_C2C?this.get(4).getUserProfile({userIDList:[e.toAccount]}).then((function(n){return 0===(n=n.data).length?Cn({code:Vn.USER_OR_GRP_NOT_FOUND}):(e.userProfile=n[0],e._isInfoCompleted=!0,t._insertConvAfterTopmost(e),En({conversation:e}))})):this.get(7).getGroupProfile({groupID:e.toAccount}).then((function(n){return e.groupProfile=n.data.group,e._isInfoCompleted=!0,t._insertConvAfterTopmost(e),En({conversation:e})}))}},{key:"_insertConvAfterTopmost",value:function(e){var t,n;e instanceof oo&&!this._convMap.has(e.conversationID)&&(n=(t=_(this._convMap)).findIndex((function(e){return!1===e[1].isPinned})),t.splice(n,0,[e.conversationID,e]),this._convMap=new Map(t),this._setStorageConvList(),this.emitConvUpdate(!0,!1))}},{key:"_onProfileUpdated",value:function(e){var t=this;e.data.forEach((function(e){var n=e.userID;n===t.getMyUserID()?t._onMyProfileModified({latestNick:e.nick,latestAvatar:e.avatar}):(n=t._convMap.get("".concat(M.CONV_C2C).concat(n)))&&(n.userProfile=e)}))}},{key:"_onCloudConfig",value:function(e){"0"===this.getCloudConfig("pull_on_invite")&&(this._bPullOnInvite=!1),Pe.l("".concat(this._n,"._onCloudConfig bPullOnInvite:").concat(this._bPullOnInvite))}},{key:"disableMsgPullOnInvite",value:function(){this._bPullOnInvite=!1}},{key:"_isSyncCompleted",value:function(){return this._pagingStatus===wn}},{key:"_errorLog",value:function(e,t,n,a){var o=new Error("Params validate failed."),i="".concat(this.getErrMsg("API_REFER")).concat(e);throw Pe.w("[".concat(e,"] | ").concat(t," | ").concat(this.getErrMsg(n,a),", ").concat(i)),Pe.e("[".concat(e,"] Invalid ").concat(t,": type check failed for ").concat(t,".")),o}},{key:"_isValidConvID",value:function(e){return St(e)||Tt(e)||Mt(e)}},{key:"deleteConversation",value:function(e){var t=this,n="deleteConversation";return ut(e)||Xe(e)||this._errorLog(n,"options","StringOrObjectRequiredLog"),ut(e)?(this._isValidConvID(e)||this._errorLog(n,"options","InvalidConversationID",e),Pe.l("".concat(this._n,".").concat(n," convID:").concat(e)),this.deleteConvList({conversationIDList:[e],flag:1})):(ze(e.conversationIDList)||this._errorLog(n,"conversationIDList","ArrayRequiredLog"),0===e.conversationIDList.length&&this._errorLog(n,"conversationIDList","NonEmptyArrayLog"),e.conversationIDList.forEach((function(e){t._isValidConvID(e)||t._errorLog(n,"conversationIDList","InvalidConversationID",e)})),"clearHistoryMessage"in e&&"boolean"!=typeof e.clearHistoryMessage&&this._errorLog(n,"clearHistoryMessage","BooleanRequiredLog"),100<e.conversationIDList.length&&(e.conversationIDList=e.conversationIDList.slice(0,100)),this.deleteConvList(e))}},{key:"deleteConvList",value:function(e){var t=void 0===(t=e.conversationIDList)?[]:t,n=void 0===(n=e.clearHistoryMessage)||n,a=void 0===(e=e.flag)?0:e,o="".concat(this._n,".").concat("deleteConvList"),i=(e="convIDList:".concat(t," clearHistoryMessage:").concat(n),Pe.l("".concat(o," ").concat(e)),new $n("deleteConvList"));return i.setMessage(e),Promise.all([this.rmLocalOnlyConvList(t),this.rmLocalAndRemoteConvList(t,n)]).then((function(e){return i.end(),0===(e=[].concat(_(e[0]),_(e[1]))).length?Cn(new On({code:Vn.CONV_NOT_FOUND})):(Pe.l("".concat(o," ok")),En(1===a?{conversationID:e[0]}:{conversationIDList:e}))})).catch((function(e){return i.setError(e).end(),Pe.e("".concat(o," failed. error:"),e),Cn(e)}))}},{key:"rmLocalOnlyConvList",value:function(e){var t=this;return e.filter((function(e){var n;return!!t._convMap.has(e)&&((n=t.getLocalConversation(e).type)!==M.CONV_GROUP||t._hasLocalGroup(e)?n===M.CONV_SYSTEM&&(t.get(7).deleteGroupSystemNotice({messageList:t._msgListHandler.getLocalMsgList(e)}),t.deleteLocalConv(e),!0):(t.deleteLocalConv(e),!0))}))}},{key:"rmLocalAndRemoteConvList",value:function(e,t){var n=this,a={fromAccount:this.getMyUserID(),conversationList:[],clearHistoryMessage:t?1:0};return e.forEach((function(e){var t;n._convMap.has(e)&&((t=n.getLocalConversation(e).type)===M.CONV_C2C?a.conversationList.push({toAccount:e.replace(t,""),type:1}):t===M.CONV_GROUP&&n._hasLocalGroup(e)&&a.conversationList.push({toGroupID:e.replace(t,""),type:2}))})),0===a.conversationList.length?[]:this.req({P:xn.DEL_CONV,data:a}).then((function(e){var t=[];return 0<e.data.resultList.length&&e.data.resultList.map((function(e){0===e.code&&(e=1===e.type?"".concat(M.CONV_C2C).concat(e.to):"".concat(M.CONV_GROUP).concat(e.groupID),t.push(e))})),n.deleteLocalConvList(t),t}))}},{key:"setConvDraft",value:function(e){var t=e.conversationID,n=(e=e.draftText,"".concat(this._n,".").concat("setConvDraft"));return Pe.l("".concat(n," convID:").concat(t," draftText:").concat(e)),this._convMap.has(t)?((n=this._convMap.get(t)).setDraftText(e),this.emitConvUpdate(),En({code:0,conversation:n})):Cn({code:Vn.CONV_NOT_FOUND})}},{key:"clearHistoryMessage",value:function(e){var t=this,n={fromAccount:this.getMyUserID(),toAccount:void 0,type:void 0,toGroupID:void 0};if(!this._convMap.has(e))return Cn({code:Vn.CONV_NOT_FOUND});var a=this._convMap.get(e).type;if(a===M.CONV_C2C)n.type=1,n.toAccount=e.replace(M.CONV_C2C,"");else{if(a!==M.CONV_GROUP)return a===M.CONV_SYSTEM?(this.get(7).deleteGroupSystemNotice({messageList:this._msgListHandler.getLocalMsgList(e)}),En({conversationID:e})):Cn({code:Vn.CONV_UN_RECORDED_TYPE});n.type=2,n.toGroupID=e.replace(M.CONV_GROUP,"")}var o="".concat(this._n,".").concat("clearHistoryMessage"),i=new $n("clearHistoryMessage");return i.setMessage("convID:".concat(e)),Pe.l("".concat(o,". convID:").concat(e)),this.setMessageRead({conversationID:e}).then((function(){return t.req({P:xn.CLEAR_HISTORY_MSG,data:n})})).then((function(){i.end(),Pe.l("".concat(o," ok")),t.clearMemMsg(e);var n=t.getLocalConversation(e);return n&&(n.updateLastMessage(),t._sortConvListAndEmitEvent()),En({conversationID:e})})).catch((function(e){return i.setError(e).end(),Pe.e("".concat(o," failed. error:"),e),Cn(e)}))}},{key:"pinConversation",value:function(e){var t,n,a,o=this,i=e.conversationID,s=e.isPinned,r=this.getLocalConversation(i);return r&&r.isPinned===s?En({conversationID:i}):Mt(i)?(r&&(r.isPinned=s),this._sortConvListAndEmitEvent(),En({conversationID:i})):(e=null,St(i)?e={type:1,toAccount:i.replace(M.CONV_C2C,"")}:Tt(i)&&(e={type:2,groupID:i.replace(M.CONV_GROUP,"")}),null===e?Cn({code:Vn.INVALID_CONV_ID}):(t="".concat(this._n,".").concat("pinConversation"),n="convID:".concat(i," isPinned:").concat(s),(a=new $n("pinConversation")).setMessage(n),Pe.l("".concat(t,". ").concat(n)),this.req({P:xn.PIN_CONV,data:{fromAccount:this.getMyUserID(),operationType:!0===s?1:2,itemList:[e]}}).then((function(){return a.end(),Pe.l("".concat(t," ok")),r?r.isPinned!==s&&(r.isPinned=s):o._convMap.set(i,new oo({conversationID:i,type:St(i)?M.CONV_C2C:M.CONV_GROUP,isPinned:s},o.isIntl(),o.isUsingChatCore())),o._sortConvListAndEmitEvent(),yn({conversationID:i})})).catch((function(e){return a.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))))}},{key:"setMessageRemindType",value:function(e){return this._msgRemindHandler.set(e)}},{key:"patchMsgRemindType",value:function(e){var t=e.ID,n=e.isC2CConversation,a=e.messageRemindType,o=!1;return(n=this.getLocalConversation("".concat(n?M.CONV_C2C:M.CONV_GROUP).concat(t)))&&n.messageRemindType!==a&&(n.messageRemindType=a,o=!0),Pe.l("".concat(this._n,".patchMsgRemindType options:"),e,"ret:".concat(o)),o}},{key:"onC2CMsgRemindTypeFetched",value:function(e){var t,n=this;ze(e)&&0<e.length&&(t=0,e.forEach((function(e){var a=e.userID;e=e.muteFlag,e=n._transMsgRemindType(e),!0===n.patchMsgRemindType({ID:a,isC2CConversation:!0,messageRemindType:e})&&(t+=1)})),Pe.l("".concat(this._n,".onC2CMsgRemindTypeFetched updateCount:").concat(t)),1<=t)&&this.emitConvUpdate(!0,!1)}},{key:"onC2CMsgRemindTypeSynced",value:function(e){var t=this,n="".concat(this._n,".onC2CMsgRemindTypeSynced");e.dataList.forEach((function(e){var a;He(e.muteNotificationsSync)||(a=(e=e.muteNotificationsSync).to,e=e.muteFlag,e=t._transMsgRemindType(e),t.patchMsgRemindType({ID:a,isC2CConversation:!(a=0),messageRemindType:e})&&(a+=1),Pe.l("".concat(n," updateCount:").concat(a)),1<=a&&t.emitConvUpdate(!0,!1))}))}},{key:"onGroupMsgRemindTypeUpdated",value:function(e){this._msgRemindHandler.onGroupMsgRemindTypeUpdated(e)}},{key:"deleteLocalConv",value:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=this._convMap.has(e);Pe.l("".concat(this._n,".deleteLocalConv convID:").concat(e," has:").concat(n)),n&&(this._convMap.delete(e),this._convMapForDiff.delete(e),this.clearMemMsg(e),this._setStorageConvList(!0),t)&&(n=!this._isTopicConv(e),this.emitConvUpdate(n,!1))}},{key:"pullMsgOnInvite",value:function(e){var t,n,a,o,i,s=this.get(7);s&&(t="".concat(this._n,".pullMsgOnInvite"),Pe.l("".concat(t," flag:").concat(this._bPullOnInvite)),this._bPullOnInvite)&&(i=this.getLocalLastMessage(e),n=this.getLocalSecondLastMessage(e),o=a=1,i&&(a=i.sequence),n&&(o=n.sequence),i=s.getGroupRemoteLastSeq(e.replace(M.CONV_GROUP,"")),Pe.l("".concat(t," convID:").concat(e," localLastSeq:").concat(a," localSecondLastSeq:").concat(o," remoteLastSeq:").concat(i)),this.clearMemMsg(e),1<a-o?this._recursiveGetMsgList([],e,!1,a,o):1<i-a&&this._recursiveGetMsgList([],e,!0,i,a))}},{key:"_recursiveGetMsgList",value:function(e,t,n,a,o,i){var s=this;this.getMessageList({conversationID:t,nextReqMessageID:i}).then((function(i){var r=(i=i.data).messageList,c=i.isCompleted,l=(i=i.nextReqMessageID,r.filter((function(e){return n?e.sequence>o&&e.sequence<=a:e.sequence>o&&e.sequence<a})));e.unshift.apply(e,_(l)),!c&&0<r.length&&r[0].sequence>o&&e.length<60?s._recursiveGetMsgList(e,t,n,a,o,i):s._emitMsgReceived(t,e)}))}},{key:"_emitMsgReceived",value:function(e,t){var n,a,o=this;0<t.length&&(t=t.filter((function(e,t,n){return t===n.findIndex((function(t){return t.sequence===e.sequence}))})),n=this.hasLocalConversation(e),a=t.map((function(e){return e.sequence})),Pe.l("".concat(this._n,"._emitMsgReceived convID:").concat(e," has:").concat(n," count:").concat(a.length," sequenceList:"),a),this.emitOEvt(T.MESSAGE_RECEIVED,t),n?this.patchConvLastMessage(e,!0):this.getConversationProfile(e).then((function(){o.patchConvLastMessage(e,!0)})))}},{key:"deleteLocalConvList",value:function(e){var t=this,n=!1;e.forEach((function(e){t._convMap.has(e)&&(t.deleteLocalConv(e,!1),n=!0)})),Pe.l("".concat(this._n,".deleteLocalConvList convID:").concat(e," isConvIDExisted:").concat(n)),n&&this.emitConvUpdate(!0,!1)}},{key:"isMessageSentByCurrentInstance",value:function(e){return!(!this._msgListHandler.hasLocalMsg(e.conversationID,e.ID)&&!this._sll.has(e.random))}},{key:"modifyMessageList",value:function(e){var t,n;e.startsWith(M.CONV_C2C)&&this._convMap.has(e)&&(n=this._convMap.get(e),t=Date.now(),this._msgListHandler.modifyMsgSentByPeer({conversationID:e,latestNick:n.userProfile.nick,latestAvatar:n.userProfile.avatar}),n=this.get(4).getNickAndAvatarByUserID(this.getMyUserID()),this._msgListHandler.modifyMsgSentByMe({conversationID:e,latestNick:n.nick,latestAvatar:n.avatar}),Pe.l("".concat(this._n,".modifyMessageList convID:").concat(e," cost:").concat(jt(t))))}},{key:"updateUserProfileSpecifiedKey",value:function(e){Pe.l("".concat(this._n,".updateUserProfileSpecifiedKey options:"),e);var t=e.conversationID,n=e.nick;e=e.avatar,this._convMap.has(t)&&(t=this._convMap.get(t).userProfile,ut(n)&&t.nick!==n&&(t.nick=n),ut(e)&&t.avatar!==e&&(t.avatar=e),this.emitConvUpdate(!0,!1))}},{key:"_onMyProfileModified",value:function(e){var n=this,a=this.getLocalConvList(),o=Date.now();a.forEach((function(a){n.modifyMessageSentByMe(t({conversationID:a.conversationID},e))})),Pe.l("".concat(this._n,"._onMyProfileModified. modify all messages sent by me, cost:").concat(jt(o)))}},{key:"modifyMessageSentByMe",value:function(e){this._msgListHandler.modifyMsgSentByMe(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._msgListHandler.getLatestMsgSentByMe(e)}},{key:"modifyMessageSentByPeer",value:function(e){this._msgListHandler.modifyMsgSentByPeer(e)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._msgListHandler.getLatestMsgSentByPeer(e)}},{key:"pushIntoNoticeResult",value:function(e,t){return!(!this._msgListHandler.pushIn(t)||this._sll.has(t.random)||(e.push(t),0))}},{key:"getLocalLastMessage",value:function(e){return this._msgListHandler.getLocalLastMsg(e)}},{key:"getLocalSecondLastMessage",value:function(e){return this._msgListHandler.getLocalSecondLastMsg(e)}},{key:"checkAndPatchRemark",value:function(){var e,t,n=this.get(8);0!==this._convMap.size&&n&&0!==(e=_(this._convMap.values()).filter((function(e){return e.type===M.CONV_C2C}))).length&&(t=0,e.forEach((function(e){var a=e.conversationID.replace(M.CONV_C2C,"");n.isMyFriend(a)&&(a=n.getFriendRemark(a),e.remark!==a)&&(e.remark=a,t+=1)})),Pe.l("".concat(this._n,".checkAndPatchRemark. c2cConvCount:").concat(e.length," patchedCount:").concat(t)),0<t)&&this.emitConvUpdate(!0,!1)}},{key:"updateTopicConversation",value:function(e){this._updateLocalConvList({conversationOptionsList:e,isFromGetConversations:!0,updateUnreadCount:!0})}},{key:"sendReadReceipt",value:function(e){var t=e[0],n=null;return t.conversationType===M.CONV_C2C?n=this._m.get(6):t.conversationType===M.CONV_GROUP&&(n=this._m.get(7)),n?n.sendReadReceipt(e):Cn({code:Vn.NO_MODULE})}},{key:"getReadReceiptList",value:function(e){var t=e[0],n=null;return t.conversationType===M.CONV_C2C?n=this._m.get(6):t.conversationType===M.CONV_GROUP&&(n=this._m.get(7)),n?n.getReadReceiptList(e):Cn({code:Vn.NO_MODULE})}},{key:"getLastMessageTime",value:function(e){return(e=this.getLocalConversation(e))?e.lastMessage.lastTime:0}},{key:"getTotalUnreadCount",value:function(){var e=this.getLocalConvList(),t=0;return e.forEach((function(e){e.type===M.CONV_SYSTEM||""!==e.messageRemindType&&e.messageRemindType!==M.MSG_REMIND_ACPT_AND_NOTE||(t+=e.unreadCount)})),t}},{key:"onTotalUnreadCountUpdate",value:function(){var e=this.getTotalUnreadCount();this._convTotalUnreadCount!==e&&(Pe.l("".concat(this._n,".onTotalUnreadCountUpdate from ").concat(this._convTotalUnreadCount," to ").concat(e)),this._convTotalUnreadCount=e,this.emitOEvt(T.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED))}},{key:"_isConvNeedShow",value:function(e){var t,n;return e=this.getLocalConversation(e),!(!dt(e)&&(t=e.type===M.CONV_TOPIC,n=e.type===M.CONV_GROUP&&e.groupProfile.type===M.GRP_ROOM,e=e.type===M.CONV_GROUP&&e.groupProfile.type===M.GRP_LIVE,t||n||e))}},{key:"setAllRcvMsgOpt",value:function(e){return this._msgRemindHandler.setAllRcvMsgOpt(e)}},{key:"getAllRcvMsgOpt",value:function(){return this._msgRemindHandler.getAllRcvMsgOpt()}},{key:"onAllRcvMsgOptNotify",value:function(e){this._msgRemindHandler.onAllRcvMsgOptNotify(e)}},{key:"clearUnreadCount",value:function(e){(e=this.getLocalConversation(e))&&0<e.unreadCount&&(e.unreadCount=0,this.emitConvUpdate(!0,!1))}},{key:"storeHoppingMessageList",value:function(e){this._msgListHandler.storeHoppingMsgList(e)}},{key:"clearMemMsg",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];Pe.l("".concat(this._n,".clearMemMsg convID:").concat(e," isOverLimit:").concat(t)),this._msgListHandler.removeByConvID(e),this._completedMap.delete(e),this._roamingMsgKeyAndTimeMap.delete(e),this._everClearedMap.set(e,1)}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._setStorageConvList(!0),this._pagingStatus=Mn,this._msgListHandler.reset(),this._msgRemindHandler.reset(),this._roamingMsgKeyAndTimeMap.clear(),this._sll.reset(),this._peerReadTimeMap.clear(),this._completedMap.clear(),this._convMap.clear(),this._pagingTs=0,this._pagingStartIdx=0,this._pagingPinnedTs=0,this._pagingPinnedStartIdx=0,this._remoteGroupReadSeqMap.clear(),this._convTotalUnreadCount=0,this._pagingGetCostList.length=0,this._pagingConvIDMap.clear(),this._convIDFromUnreadDBMap.clear(),this._pagingGetCostList.length=0,this._convMapForDiff.clear(),this._partialUpdatedConvMap.clear(),this._everClearedMap.clear(),this._bPullOnInvite=!0,this._convGroupHandler.reset(),this.resetReady()}}]),Qo),lo=(i(Wo,[{key:"onCheckTimer",value:function(e){e%1==0&&0<this._cachedGroupTipsMap.size&&this._check()}},{key:"_check",value:function(){var e=this;this._cachedGroupTipsMap.forEach((function(t,n){var a=e._checkCountMap.get(n),o=e._grpM.hasLocalGroup(n);Pe.l("".concat(e._n,"._check groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(a)),o?(e._notifyCachedGroupTips(n),e._checkCountMap.delete(n),e._grpM.deleteUnjoinedAVChatRoom(n)):a>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):e._checkCountMap.set(n,++a)}))}},{key:"onNewGroupTips",value:function(e){Pe.l("".concat(this._n,".onNewGroupTips options:").concat(JSON.stringify(e.dataList)));var t=(e=this._assembly(e)).eventDataList,n=e.result;0<(e=e.AVChatRoomMessageList).length&&this._grpM.onAVChatRoomMessage(e),0<n.length&&(this._grpM.emitOEvt(T.MESSAGE_RECEIVED,n),this._handleTips(n)),0<t.length&&(this._grpM.updateNextMessageSeq(t),this._grpM.get(11).onNewMessage({conversationOptionsList:t,isInstantMessage:!0}))}},{key:"_assembly",value:function(e){for(var n=e.event,a=e.dataList,o=null,i=[],s=[],r={},c=[],l=0,u=a.length;l<u;l++){var d=ct(a[l]);if(6===n){if(this._grpM.isGroupAttributesUpdatedNotice(d))continue;if(this._grpM.isGroupCountersNotice(d))continue}var m=(f=d.groupProfile).groupID,p=void 0===(p=f.communityType)?0:p,h=void 0===(h=f.topicID)?void 0:h,g=f.invisible,f=void 0===(f=f.groupType)?void 0:f,v=void 0;if((y=this._grpM.isMessageFromTopic(p,h))&&(v=M.CONV_TOPIC,d.to=h),(_=this._grpM.hasLocalGroup(m))||!this._grpM.isUnjoinedAVChatRoom(m))if(_||y)if(this._grpM.isMessageFromOrToAVChatroom(m))d.event=n,c.push(d);else if(d.currentUser=this._grpM.getMyUserID(),d.conversationType=M.CONV_GROUP,(o=new Ia(d)).setElement({type:M.MSG_GRP_TIP,content:t(t({},d.elements),{},{groupProfile:d.groupProfile})}),o.isSystemMessage=!1,1!==g){var _=this._grpM.get(11),y=(g=(y=o).conversationID,y.sequence);if(6===n)o._onlineOnlyFlag=!0,s.push(o);else if(!_.pushIntoNoticeResult(s,o))continue;this._grpM.isMessageFromCommunityOfTopic(p,h)||6===n&&_.getLocalConversation(g)||(6!==n&&this._qualityStat(o),p=_.isRemoteRead({conversationID:g,sequence:y}),dt(r[g])?(h=0,"in"!==o.flow||o._isExcludedFromUnreadCount||o._onlineOnlyFlag||p||(h=1),r[g]=i.push({conversationID:g,unreadCount:h,type:dt(v)?o.conversationType:v,subType:o.conversationSubType,lastMessage:o._isExcludedFromLastMessage?"":o})-1):(i[_=r[g]].type=o.conversationType,i[_].subType=o.conversationSubType,i[_].lastMessage=o._isExcludedFromLastMessage?"":o,"in"!==o.flow||o._isExcludedFromUnreadCount||o._onlineOnlyFlag||p||i[_].unreadCount++))}else this._qualityStat(o);else this._cacheAndCompare({groupID:m,event:n,item:d,groupType:f})}return{eventDataList:i,result:s,AVChatRoomMessageList:c}}},{key:"_qualityStat",value:function(e){this._grpM.get(26).addMessageSequence({key:jn,message:e})}},{key:"_handleTips",value:function(e){var t=this;e.forEach((function(e){switch(e.payload.operationType){case 1:t._onNewMemberComeIn(e);break;case 2:t._onMemberQuit(e);break;case 3:t._onMemberKickedOut(e);break;case 4:t._onMemberSetAdmin(e);break;case 5:t._onMemberCancelledAdmin(e);break;case 6:t._onGroupProfileModified(e);break;case 7:t._onMemberInfoModified(e);break;case 8:t._onTopicProfileUpdated(e);break;default:Pe.w("".concat(t._n,"._handleTips unknown operationType:").concat(e.payload.operationType))}}))}},{key:"_onNewMemberComeIn",value:function(e){var t=(e=e.payload).memberNum;e=e.groupProfile.groupID,(e=this._grpM.getLocalGroupProfile(e))&&Je(t)&&e.memberCount!==t&&(e.memberCount=t,this._updateConvGroupProfile(e))}},{key:"_onMemberQuit",value:function(e){var t=(n=e.payload).memberNum,n=n.groupProfile.groupID,a=this._grpM.getLocalGroupProfile(n);a&&Je(t)&&a.memberCount!==t&&(a.memberCount=t,this._updateConvGroupProfile(a)),this._grpM.getGroupMemberHandler().deleteLocalGroupMembers(n,e.payload.userIDList)}},{key:"_onMemberKickedOut",value:function(e){var t=(n=e.payload).memberNum,n=n.groupProfile.groupID,a=this._grpM.getLocalGroupProfile(n);a&&Je(t)&&a.memberCount!==t&&(a.memberCount=t,this._updateConvGroupProfile(a)),this._grpM.getGroupMemberHandler().deleteLocalGroupMembers(n,e.payload.userIDList)}},{key:"_updateConvGroupProfile",value:function(e){this._grpM.get(11).updateConvGroupProfile([e])}},{key:"_onMemberSetAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=(e=e.payload.userIDList,this._grpM.getGroupMemberHandler());e.forEach((function(e){(e=n.getLocalGroupMemberInfo(t,e))&&e.updateRole(M.GRP_MBR_ROLE_ADMIN)}))}},{key:"_onMemberCancelledAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=(e=e.payload.userIDList,this._grpM.getGroupMemberHandler());e.forEach((function(e){(e=n.getLocalGroupMemberInfo(t,e))&&e.updateRole(M.GRP_MBR_ROLE_MEMBER)}))}},{key:"_onGroupProfileModified",value:function(e){var t=this,n=(e=e.payload).newGroupProfile,a=e.groupProfile,o=e.operatorInfo,i=(e=a.groupID,this._grpM.getLocalGroupProfile(e));Object.keys(n).forEach((function(e){switch(e){case"ownerID":t._ownerChanged(i,n);break;case"groupName":i.name=n[e];break;default:i[e]=n[e]}})),dt(o)||Object.keys(o).forEach((function(e){"nameCard"===e?i.updateSelfInfo({nameCard:o[e]}):"role"===e&&i.updateSelfInfo({role:o[e]})})),a=!i.isSupportTopic,this._grpM.emitGroupListUpdate(!0,a)}},{key:"_ownerChanged",value:function(e,t){e=e.groupID;var n=this._grpM.getLocalGroupProfile(e),a=this._grpM.getMyUserID();a===t.ownerID&&(n.updateGroup({selfInfo:{role:M.GRP_MBR_ROLE_OWNER}}),n=(t=this._grpM.getGroupMemberHandler()).getLocalGroupMemberInfo(e,a),a=this._grpM.getLocalGroupProfile(e).ownerID,t=t.getLocalGroupMemberInfo(e,a),n&&n.updateRole(M.GRP_MBR_ROLE_OWNER),t)&&t.updateRole(M.GRP_MBR_ROLE_MEMBER)}},{key:"_onMemberInfoModified",value:function(e){var t=e.to,n=(a=e.payload).groupProfile,a=a.memberList,o=n.groupID,i=(It(t)&&this._updateTopicMuteTime(e),this._grpM.getGroupMemberHandler());a.forEach((function(e){var t=i.getLocalGroupMemberInfo(o,e.userID);t&&Je(e.muteTime)&&t.updateMuteUntil(e.muteTime)}))}},{key:"_updateTopicMuteTime",value:function(e){var t=e.to,n=(e=e.payload).groupProfile,a=void 0===(e=e.memberList)?[]:e,o=(e=this._grpM.get(10),n=n.groupID,e.getLocalTopic(n,t));if(o){for(var i=!1,s=0;s<a.length;s++){var r=a[s];if(r.userID===this._grpM.getMyUserID()&&0<=r.muteTime){o.updateSelfInfo({muteTime:r.muteTime}),i=!0;break}}i&&this._grpM.emitOEvt(T.TOPIC_UPDATED,{groupID:n,topic:o})}}},{key:"_onTopicProfileUpdated",value:function(e){var n=(a=e.payload).groupProfile.groupID,a=a.newTopicInfo;this._grpM.get(10).onTopicProfileUpdated(t({groupID:n,topicID:e.to},a))}},{key:"_cacheGroupTips",value:function(e,t){this._cachedGroupTipsMap.has(e)||this._cachedGroupTipsMap.set(e,[]),this._cachedGroupTipsMap.get(e).push(t)}},{key:"_deleteCachedGroupTips",value:function(e){this._cachedGroupTipsMap.has(e)&&this._cachedGroupTipsMap.delete(e)}},{key:"_notifyCachedGroupTips",value:function(e,t){var n=this,a=this._cachedGroupTipsMap.get(e)||[];Pe.l("".concat(this._n,"._notifyCachedGroupTips groupID:").concat(e," groupType:").concat(t," count:").concat(a.length)),a.forEach((function(e){n.onNewGroupTips(e)})),this._deleteCachedGroupTips(e)}},{key:"_cacheAndCompare",value:function(e){var t=e.groupID,n=e.event,a=e.item;e=e.groupType,Pe.l("".concat(this._n,"._cacheAndCompare groupID:").concat(t," groupType:").concat(e)),this._cacheGroupTips(t,{event:n,dataList:[a]}),n={groupID:t,type:e},e===M.GRP_AVCHATROOM?this._grpM.hasLocalGroup(t)?this._notifyCachedGroupTips(t,e):this._grpM.setUnjoinedAVChatRoom(t):(this._grpM.updateGroupMap([n]),this._notifyCachedGroupTips(t,e)),this._checkCountMap.has(t)||this._checkCountMap.set(t,0)}},{key:"reset",value:function(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear()}}]),Wo),uo=(i(zo,[{key:"onCheckTimer",value:function(e){e%1==0&&0<this._cachedGroupMessageMap.size&&this._check()}},{key:"_check",value:function(){var e=this;this._cachedGroupMessageMap.forEach((function(t,n){var a=e._checkCountMap.get(n),o=e._grpM.hasLocalGroup(n);Pe.l("".concat(e._n,"._check groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(a)),o?(e._notifyCachedGroupMessage(n),e._checkCountMap.delete(n),e._grpM.deleteUnjoinedAVChatRoom(n)):a>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):e._checkCountMap.set(n,++a)}))}},{key:"updateLastMsg",value:function(e){var n="".concat(this._n,".updateLastMsg");if(0!==this._grpM.getGroupMap().size){for(var a,o,i,s,r=!1,c=e.length,l=0;l<c;l++)(a=e[l]).type===M.CONV_GROUP&&0!==a.lastMessage.lastSequence&&null!==a.lastMessage.payload&&(o=a.conversationID.split(/^GROUP/)[1],o=this._grpM.getLocalGroupProfile(o))&&(i=o.lastMessage,s=a.lastMessage,JSON.stringify(i)!==JSON.stringify(s))&&(o.lastMessage=t({},a.lastMessage),r=!0);Pe.l("".concat(n," convCount:").concat(c," groupCount:").concat(this._grpM.getLocalGroupList().length," isUpdated:").concat(r)),r&&(this._grpM.sortLocalGroupList(),this._grpM.emitGroupListUpdate(!0,!1))}else this.tempConversationList=e}},{key:"onNewMessage",value:function(e){var t,n=(t=this._assembly(e)).conversationOptionsList,a=t.messageList;0<(0<(0<(t=t.AVChatRoomMessageList).length&&this._grpM.onAVChatRoomMessage(t),t=yt(a)).length&&this._grpM.emitOEvt(T.MESSAGE_MODIFIED,t),0<n.length&&(this._grpM.get(11).onNewMessage({conversationOptionsList:n,isInstantMessage:!1!==e.isInstantMessage,updateUnreadCount:!1!==e.updateUnreadCount}),this._grpM.updateNextMessageSeq(n)),t=Et(a)).length&&this._grpM.emitOEvt(T.MESSAGE_RECEIVED,t),a.length=0}},{key:"_assembly",value:function(e){var t=e.dataList,n=e.event,a=e.isInstantMessage,o=null,i=[],s=[],r=[],c={},l=this._grpM.getFileDownloadProxy(),u=this._grpM.getDowloadFileAuthKey(),d=this._grpM.get(17).getFileDNList(),m=t.length;1<m&&t.sort((function(e,t){return e.sequence-t.sequence}));for(var p=this._grpM.get(11),h=this._grpM.get(4),g=0;g<m;g++){var f,v=ct(t[g]),_=(k=v.groupProfile).groupID,y=void 0===(y=k.communityType)?0:y,E=void 0===(E=k.topicID)?void 0:E,C=k.invisible,k=void 0===(k=k.groupType)?void 0:k,I=void 0,S=this._grpM.isMessageFromTopic(y,E),T=(S&&(I=M.CONV_TOPIC,v.to=E),this._grpM.hasLocalGroup(_));!T&&this._grpM.isUnjoinedAVChatRoom(_)||(T||S?this._grpM.isMessageFromOrToAVChatroom(_)?(v.event=n,r.push(v)):(v.currentUser=this._grpM.getMyUserID(),v.conversationType=M.CONV_GROUP,v.isSystemMessage=!!v.isSystemMessage,(o=new Ia(v)).setElement(v.elements,l,u,d),1!==C?(T=1===t[g].isModified,p.isMessageSentByCurrentInstance(o)?o.isModified=T:T=!1,1===v.onlineOnlyFlag?(o._onlineOnlyFlag=!0,p.isMessageSentByCurrentInstance(o)||s.push(o)):this._grpM.isMessageFromCommunityOfTopic(y,E)?s.push(o):(o.from===this._grpM.getMyUserID()&&(S=p.getLatestMessageSentByMe(o.conversationID))&&(C=S.nick,y=S.avatar,C===o.nick&&y===o.avatar||(p.modifyMessageSentByMe({conversationID:f,latestNick:o.nick,latestAvatar:o.avatar}),h.mockOnNickAvatarModified(o.nick,o.avatar))),p.pushIntoMessageList(s,o,T)&&(this._qualityStat(a,o),f=(E=o).conversationID,S=E.sequence,C=p.isRemoteRead({conversationID:f,sequence:S}),dt(c[f])?(y=0,"in"!==o.flow||o._isExcludedFromUnreadCount||C||(y=1),c[f]=i.push({conversationID:f,unreadCount:y,type:dt(I)?o.conversationType:I,subType:o.conversationSubType,lastMessage:o._isExcludedFromLastMessage?"":o})-1):(i[T=c[f]].type=dt(I)?o.conversationType:I,i[T].subType=o.conversationSubType,i[T].lastMessage=o._isExcludedFromLastMessage?"":o,"in"!==o.flow||o._isExcludedFromUnreadCount||C||i[T].unreadCount++)))):this._qualityStat(a,o)):this._cacheAndCompare({groupID:_,event:n,item:v,groupType:k}))}return{conversationOptionsList:i,messageList:s,AVChatRoomMessageList:r}}},{key:"_qualityStat",value:function(e,t){var n=this._grpM.get(26);n.addMessageSequence({key:jn,message:t}),e&&0<t.clientTime&&n.addMessageDelay(t.clientTime)}},{key:"onMsgRevoked",value:function(e,t){var n=this,a=this._grpM.get(11),o=[],i=[];e.dataList.forEach((function(e){var t=e.elements.revokedInfos,n=e.revokerInfo,s=e.groupProfile,r=!1;s&&(r=kt({groupID:s.groupID})||!He(s.topicID)),dt(t)||t.forEach((function(e){var t,c=He(e.topicID)?"GROUP".concat(e.groupID):"GROUP".concat(e.topicID),l=a.getLocalConversation(c),u=e.revokerInfo&&e.revokerInfo.revoker||n&&n.revoker,d=n&&n.reason||"";l&&Ct(l.type)?t={conversationID:c,sequence:e.sequence,ID:"".concat(e.tinyID,"-").concat(e.clientTime,"-").concat(e.random)}:(l=a.revoke(c,e.sequence,e.random))?t=l:(t={conversationID:c,sequence:e.sequence},e.tinyID&&e.clientTime&&e.random&&(t.ID="".concat(e.tinyID,"-").concat(e.clientTime,"-").concat(e.random)),e.time&&(t.time=e.time)),t&&(t.revoker=u,t.revokeReason=d,t.revokerInfo={userID:u,nick:"",avatar:""},(r?(t.revokerInfo.nick=s.nick,t.revokerInfo.avatar=s.avatar,o):i).push(t))}))})),0===i.length&&0===o.length||(a.onMessageRevoked([].concat(o,i),t),0<o.length&&this._grpM.emitOEvt(T.MESSAGE_REVOKED,o),0<i.length&&a.updateRevokerInfo(i).then((function(e){n._grpM.emitOEvt(T.MESSAGE_REVOKED,e)})))}},{key:"_groupListTreeShaking",value:function(e){for(var t=new Map(_(this._grpM.getGroupMap())),n=0,a=e.length;n<a;n++)t.delete(e[n].groupID);this._grpM.hasJoinedAVChatRoom()&&this._grpM.getJoinedAVChatRoom().forEach((function(e){t.delete(e)})),this._grpM.getGroupMap().forEach((function(e,n){e.isSupportTopic&&t.delete(n)}));for(var o=_(t.keys()),i=0,s=o.length;i<s;i++)this._grpM.deleteGroup(o[i])}},{key:"syncGroupList",value:function(){var e,t,n=this,a=0<arguments.length&&void 0!==arguments[0]&&arguments[0],o=(this._pagingStatus===Mn&&this._grpM.clearGroupMap(),_(x)),i=this.PAGING_GRP_COUNT_LIMIT,s=[];return!0===a?this._pagingGetGroupListWithTopic({limit:i,offset:0,groupBaseInfoFilter:o,groupList:s}):(a="syncGroupList",e="".concat(this._n,".").concat(a),t=new $n(a),this._pagingGetGroupList({limit:i,offset:0,groupBaseInfoFilter:o,groupList:s}).then((function(){var a=qt(n._pagingGetCostList),o=Zt(n._pagingGetCostList),i=(n._pagingGetCostList.length=0,n._pagingStatus=wn,n._groupListTreeShaking(s),n._grpM.updateGroupMap(s),n._grpM.getLocalGroupList().length);return i="count:".concat(i," sum:").concat(o," avg:").concat(a),Pe.l("".concat(e," ok. ").concat(i)),t.setMessage(i).end(),n.tempConversationList&&(n.updateLastMsg(n.tempConversationList),n.tempConversationList=null),n._grpM.emitGroupListUpdate(!0,!0),yn({groupList:n._grpM.getLocalGroupList()})})).catch((function(a){return n._pagingStatus=Dn,t.setError(a).end(),Pe.e("".concat(e," failed. error:"),a),Cn(a)})))}},{key:"getGroupList",value:function(){var e,t=this,n="".concat(this._n,".").concat("getGroupList");return Pe.l("".concat(n," pagingStatus:").concat(this._pagingStatus)),this._pagingStatus===Dn||this._pagingStatus===Mn?this.syncGroupList().then((function(){return yn({groupList:t._grpM.getLocalGroupList(),isSyncCompleted:t.isPagingGetCompleted()})})).catch((function(e){return Pe.e("".concat(n," failed. error:"),e),Cn(e)})):(e=this._grpM.getLocalGroupList(),Pe.l("".concat(n,". returned group count:").concat(e.length)),En({groupList:e,isSyncCompleted:this.isPagingGetCompleted()}))}},{key:"isPagingGetCompleted",value:function(){return this._pagingStatus===wn}},{key:"_pagingGetGroupList",value:function(e){var t=this,n="".concat(this._n,".").concat("_pagingGetGroupList"),a=e.isCommunityRelay,o=void 0!==a&&a,i=e.limit,s=e.offset,r=e.groupBaseInfoFilter,c=e.groupList,l=Date.now();return this._grpM.req({P:xn.GET_GRP_LIST,data:{type:o?M.GRP_COMMUNITY:void 0,memberAccount:this._grpM.getMyUserID(),limit:i,offset:s,responseFilter:{groupBaseInfoFilter:r,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]}}}).then((function(e){var a=void 0===(a=(e=e.data).groups)?[]:a,u=(e=e.totalCount,c.push.apply(c,_(a)),t._handleGroupAtInfoWithoutTopic(o,a),!((a=s+i)<e));return e="offset:".concat(s," limit:").concat(i," total:").concat(e," isCompleted:").concat(u," ")+"current:".concat(c.length," isCommunityRelay:").concat(o),t._pagingGetCostList.push(jt(l,!1)),Pe.l("".concat(n," ok. ").concat(e," cost:").concat(jt(l))),o||u?!o&&u?(Pe.l("".concat(n," start to get community list")),s=0,t._pagingGetGroupList({limit:i,offset:s,groupBaseInfoFilter:r,groupList:c,isCommunityRelay:!0})):o&&!u?(s=a,t._pagingGetGroupList({limit:i,offset:s,groupBaseInfoFilter:r,groupList:c,isCommunityRelay:!0})):yn({groupList:c}):(s=a,t._pagingGetGroupList({limit:i,offset:s,groupBaseInfoFilter:r,groupList:c}))})).catch((function(e){return 10018===e.code?(Pe.w("".concat(t.logPrefix," response size exceeds the limit, request count:").concat(i)),i=50,t._pagingGetGroupList({limit:i,offset:s,groupBaseInfoFilter:r,groupList:c,isCommunityRelay:o})):o?(11e3===e.code&&Pe.l("".concat(n," ok. community unavailable")),En({groupList:c})):Cn(e)}))}},{key:"_pagingGetGroupListWithTopic",value:function(e){var t=this,n="".concat(this._n,"._pagingGetGroupListWithTopic"),a=e.limit,o=e.offset,i=e.groupBaseInfoFilter,s=e.groupList,r=Date.now();return this._grpM.req({P:xn.GET_GRP_LIST,data:{type:M.GRP_COMMUNITY,memberAccount:this._grpM.getMyUserID(),limit:a,offset:o,responseFilter:{groupBaseInfoFilter:i,selfInfoFilter:_(U)},isSupportTopic:1,needAppDefineData:1}}).then((function(e){var c=(e=e.data).groups,l=(e=e.totalCount,s.push.apply(s,_(void 0===c?[]:c)),!((c=o+a)<e));return Pe.l("".concat(n," ok. offset:").concat(o," limit:").concat(a," totalCount:").concat(e," isCompleted:").concat(l," currentCount:").concat(s.length," cost:").concat(jt(r))),l?(t._grpM.updateGroupMap(s),t._grpM.emitGroupListUpdate(!0,!1),yn({groupList:e=t._grpM.getLocalGroupList().filter((function(e){return!0===e.isSupportTopic}))})):(o=c,t._pagingGetGroupListWithTopic({limit:a,offset:o,groupBaseInfoFilter:i,groupList:s}))})).catch((function(e){return 10018===e.code?(Pe.w("".concat(t.logPrefix," response size exceeds the limit, request count:").concat(a)),a=50,t._pagingGetGroupListWithTopic({limit:a,offset:o,groupBaseInfoFilter:i,groupList:s})):Cn(e)}))}},{key:"_cacheGroupMessage",value:function(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t)}},{key:"_deleteCachedGroupMessage",value:function(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e)}},{key:"_notifyCachedGroupMessage",value:function(e,t){var n=this,a=this._cachedGroupMessageMap.get(e)||[];Pe.l("".concat(this._n,"._notifyCachedGroupMessage groupID:").concat(e," groupType:").concat(t," count:").concat(a.length)),a.forEach((function(e){n.onNewMessage(e)})),this._deleteCachedGroupMessage(e)}},{key:"_cacheAndCompare",value:function(e){var t=e.groupID,n=e.event,a=e.item;e=e.groupType,Pe.l("".concat(this._n,"._cacheAndCompare groupID:").concat(t," groupType:").concat(e)),this._cacheGroupMessage(t,{event:n,dataList:[a]}),n={groupID:t,type:e},e===M.GRP_AVCHATROOM?this._grpM.hasLocalGroup(t)?this._notifyCachedGroupMessage(t,e):this._grpM.setUnjoinedAVChatRoom(t):(this._grpM.updateGroupMap([n]),this._notifyCachedGroupMessage(t,e)),this._checkCountMap.has(t)||this._checkCountMap.set(t,0)}},{key:"_handleGroupAtInfoWithoutTopic",value:function(e,n){var a=this;e&&0!==n.length&&n.forEach((function(e){var n=e.groupID,o=(e=e.groupAtInfoList,[]);dt(e)||(e.forEach((function(e){o.push(t(t({},e),{},{groupID:n}))})),a._grpM.get(11).onNewGroupAtTips({dataList:o}))}))}},{key:"setPagingGroupCount",value:function(e){dt(e)||(this.PAGING_GRP_COUNT_LIMIT=parseInt(e,10))}},{key:"reset",value:function(){this.PAGING_GRP_COUNT_LIMIT=200,this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._pagingStatus=Mn,this._pagingGetCostList=[]}}]),zo),mo=(i(Ko,[{key:"_onCloudConfig",value:function(){var e=this._grpM.getCloudConfig("grp_attr_cache_time");dt(e)||(this.CACHE_EXPIRE_TIME=Number(e))}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesMap.forEach((function(e){e.localMainSequence=0}))}},{key:"isGroupAttributesUpdatedNotice",value:function(e){var t=e.to,n=(e=e.elements.newGroupProfile,!dt(e)&&!He(e.groupAttributeOption));return n&&this._onGroupAttributesUpdated({groupID:t,groupAttributeOption:e.groupAttributeOption}),n}},{key:"_onGroupAttributesUpdated",value:function(e){var t,n=this,a=e.groupID,o=(e=e.groupAttributeOption).mainSequence,i=e.isWithChangedAttributeInfo,s=void 0===(s=e.groupAttributeList)?[]:s;e=e.operationType,Pe.l("".concat(this._n,".onGroupAttributesUpdated. ")+"groupID:".concat(a," isWithChangedAttributeInfo:").concat(i," operationType:").concat(e)),dt(e)||(this._groupAttributesCopy=this._getCachedAttributes({groupID:a}),0!=(t=o-this._getLocalGroupAttributes(a).localMainSequence)&&(1===i&&1==t?(this._refreshCachedGroupAttributes({groupID:a,remoteMainSequence:o,groupAttributeList:s,operationType:e}),this._emitGroupAttributesUpdated(a)):this._hasLocalGroupAttributes(a)&&(i=this._getLocalGroupAttributes(a).avChatRoomKey,this._getGroupAttributes({groupID:a,avChatRoomKey:i}).then((function(){n._emitGroupAttributesUpdated(a)})))))}},{key:"initGroupAttributesCache",value:function(e){var t=e.groupID;e=void 0===(e=e.avChatRoomKey)?void 0:e,this._groupAttributesMap.set(t,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map,avChatRoomKey:e}),Pe.l("".concat(this._n,".initGroupAttributesCache groupID:").concat(t," avChatRoomKey:").concat(e))}},{key:"initGroupAttributes",value:function(e){var t=this,n=e.groupID,a=e.groupAttributes,o=(e=this._getLocalGroupAttributes(n)).remoteMainSequence,i=(e=e.avChatRoomKey,new $n("initGroupAttributes"));return i.setMessage("groupID:".concat(n," avChatRoomKey:").concat(e," mainSequence:").concat(o)),this._grpM.req({P:xn.SET_GRP_ATTR,data:{groupID:n,avChatRoomKey:e,mainSequence:o,groupAttributeList:this._transformGroupAttributes(a)}}).then((function(e){Pe.l("".concat(t._n,".").concat("initGroupAttributes"," ok. groupID:").concat(n));var o=(e=e.data).mainSequence;return(e=_(e.groupAttributeList)).forEach((function(e){e.value=a[e.key]})),t._groupAttributesCopy=t._getCachedAttributes({groupID:n}),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:o,groupAttributeList:e,operationType:1}),t._emitGroupAttributesUpdated(n),i.end(),yn({groupAttributes:a})})).catch((function(e){return i.setError(e).end(),Cn(e)}))}},{key:"setGroupAttributes",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupAttributes"),a=e.groupID,o=e.groupAttributes,i=(e=this._getLocalGroupAttributes(a)).remoteMainSequence,s=e.avChatRoomKey,r=e.attributes,c=((e=this._transformGroupAttributes(o)).forEach((function(e){var t=e.key;e.sequence=0,r.has(t)&&(e.sequence=r.get(t).sequence)})),new $n("setGroupAttributes"));return c.setMessage("groupID:".concat(a," groupAttributes:").concat(JSON.stringify(o))),Pe.l("".concat(n,". groupID:").concat(a," mainSequence:").concat(i)),this._grpM.req({P:xn.MODIFY_GRP_ATTR,data:{groupID:a,avChatRoomKey:s,mainSequence:i,groupAttributeList:e}}).then((function(e){Pe.l("".concat(n," ok."));var i=(e=e.data).mainSequence;return(e=_(e.groupAttributeList)).forEach((function(e){e.value=o[e.key]})),t._groupAttributesCopy=t._getCachedAttributes({groupID:a}),t._refreshCachedGroupAttributes({groupID:a,remoteMainSequence:i,groupAttributeList:e,operationType:2}),t._emitGroupAttributesUpdated(a),c.end(),yn({groupAttributes:o})})).catch((function(e){return c.setError(e).end(),Cn(e)}))}},{key:"deleteGroupAttributes",value:function(e){var t=this,n=e.groupID,a=(e=void 0===(e=e.keyList)?[]:e,(r=this._getLocalGroupAttributes(n)).remoteMainSequence),o=r.avChatRoomKey,i=r.attributes,s=_(i.keys()),r=xn.CLEAR_GRP_ATTR,c=3,l=(o={groupID:n,avChatRoomKey:o,mainSequence:a},[]),u=(0<e.length&&(s=[],r=xn.DEL_GRP_ATTR,c=4,e.forEach((function(e){var t=0;i.has(e)&&(t=i.get(e).sequence,s.push(e)),l.push({key:e,sequence:t})})),o.groupAttributeList=l),new $n("deleteGroupAttributes"));return u.setMessage("groupID:".concat(n," mainSequence:").concat(a," keyList:").concat(e," proto:").concat(r)),this._grpM.req({P:r,data:o}).then((function(e){return Pe.l("".concat(t._n,".").concat("deleteGroupAttributes"," ok. groupID:").concat(n)),e=e.data.mainSequence,t._groupAttributesCopy=t._getCachedAttributes({groupID:n}),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:e,groupAttributeList:l,operationType:c}),t._emitGroupAttributesUpdated(n),u.end(),yn({keyList:s})})).catch((function(e){return u.setError(e).end(),Cn(e)}))}},{key:"getGroupAttributes",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupAttributes"),a=e.groupID,o=(r=this._getLocalGroupAttributes(a)).avChatRoomKey,i=r.lastUpdateTime,s=r.localMainSequence,r=r.remoteMainSequence,c=new $n("getGroupAttributes");return c.setMessage("groupID:".concat(a," localMainSequence:").concat(s," remoteMainSequence:").concat(r," keyList:").concat(e.keyList)),Date.now()-i>=this.CACHE_EXPIRE_TIME||s<r?this._getGroupAttributes({groupID:a,avChatRoomKey:o}).then((function(o){return c.setMoreMessage("get attributes from remote. count:".concat(o.length)).end(),Pe.l("".concat(n," from remote. groupID:").concat(a)),yn({groupAttributes:o=t._getCachedAttributes(e)})})).catch((function(e){return c.setError(e).end(),Cn(e)})):(c.setMoreMessage("get attributes from cache").end(),Pe.l("".concat(n," from cache. groupID:").concat(a)),En({groupAttributes:i=this._getCachedAttributes(e)}))}},{key:"_getGroupAttributes",value:function(e){var n=this,a=0;return dt(e.avChatRoomKey)||(a=1),this._grpM.req({P:xn.GET_GRP_ATTR,data:t(t({},e),{},{groupType:a})}).then((function(t){Pe.l("".concat(n._n,"._getGroupAttributes ok. groupID:").concat(e.groupID));var a=(t=t.data).mainSequence,o=_(t=t.groupAttributeList);return dt(a)||n._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:a,groupAttributeList:o,operationType:5}),t})).catch((function(e){return Cn(e)}))}},{key:"_refreshCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.remoteMainSequence,a=e.groupAttributeList;if(e=e.operationType,this._hasLocalGroupAttributes(t)){var o=this._getLocalGroupAttributes(t),i=o.localMainSequence;if(5===e||n-i==1)o.remoteMainSequence=n,o.localMainSequence=n,o.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:o,groupAttributeList:a,operationType:e});else{if(i===n)return;o.remoteMainSequence=n}this._groupAttributesMap.set(t,o),a="operationType:".concat(e," localMainSequence:").concat(i," remoteMainSequence:").concat(n),Pe.l("".concat(this._n,"._refreshCachedGroupAttributes. ").concat(a))}}},{key:"_getCachedAttributes",value:function(e){var t=e.groupID,n=(e=void 0===(e=e.keyList)?[]:e,{});if(this._hasLocalGroupAttributes(t)){var a=this._getLocalGroupAttributes(t).attributes;if(0<e.length)e.forEach((function(e){a.has(e)&&(n[e]=a.get(e).value)}));else{var o,i=S(a.keys());try{for(i.s();!(o=i.n()).done;){var s=o.value;n[s]=a.get(s).value}}catch(r){i.e(r)}finally{i.f()}}}return n}},{key:"_updateCachedAttributes",value:function(e){var t=e.groupAttributes,n=e.groupAttributeList;3!==(e=e.operationType)?4!==e?(1===e&&t.attributes.clear(),n.forEach((function(e){var n=e.key,a=e.value;e=e.sequence,t.attributes.set(n,{value:a,sequence:e})}))):n.forEach((function(e){t.attributes.delete(e.key)})):t.attributes.clear()}},{key:"_hasLocalGroupAttributes",value:function(e){return this._groupAttributesMap.has(e)}},{key:"_getLocalGroupAttributes",value:function(e){return this._hasLocalGroupAttributes(e)||this.initGroupAttributesCache({groupID:e}),this._groupAttributesMap.get(e)}},{key:"_transformGroupAttributes",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_emitGroupAttributesUpdated",value:function(e){var t=this._getCachedAttributes({groupID:e}),n=(a=this._computeAttrChangedInfo(t)).updatedKeyList,a=a.deletedKeyList;Pe.l("".concat(this._n,"._emitGroupAttributesUpdated update:").concat(n.length,", delete:").concat(a.length)),0===n.length&&0===a.length||this._grpM.emitOEvt(T.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t,updatedKeyList:n,deletedKeyList:a})}},{key:"_computeAttrChangedInfo",value:function(e){var t=this,n=[],a=[];return Object.keys(e).forEach((function(a){e[a]!==t._groupAttributesCopy[a]&&n.push(a)})),Object.keys(this._groupAttributesCopy).forEach((function(t){dt(e[t])&&a.push(t)})),this._groupAttributesCopy={},{updatedKeyList:n,deletedKeyList:a}}},{key:"deleteLocalGroupAttributes",value:function(e){this._hasLocalGroupAttributes(e)&&this._groupAttributesMap.delete(e)}},{key:"reset",value:function(){this._groupAttributesMap.clear(),this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4}}]),Ko),po=(i(Xo,[{key:"_onCloudConfig",value:function(){var e=this._grpM.getCloudConfig("grp_counter_expire_time");dt(e)||(this.EXPIRE_TIME=Number(e))}},{key:"isGroupCountersNotice",value:function(e){var t=e.to,n=!1;return He(e=e.elements.groupCounterInfo)||(this._onGroupCountersUpdated({groupID:t,groupCounterInfo:e}),n=!0),n}},{key:"_onGroupCountersUpdated",value:function(e){var t=this,n=e.groupID;e.groupCounterInfo.forEach((function(e){var a=e.type,o=e.groupCounterSeq;e=void 0===(e=e.counterList)?[]:e,0!==a&&2!==a||(t._updateLocalGroupCounters({groupID:n,groupCounterSeq:o,counterList:e}),e.forEach((function(e){t._grpM.emitOEvt(T.GROUP_COUNTER_UPDATED,{groupID:n,key:e.key,value:e.value})}))),1===a&&t._deleteLocalGroupCounters({groupID:n,groupCounterSeq:o,counterList:e})})),Pe.l("".concat(this._n,"._onGroupCountersUpdated groupID:").concat(n))}},{key:"initGroupCountersCache",value:function(e){var t=e.groupID;e=e.avChatRoomKey,this._groupCountersMap.set(t,{lastUpdateTime:0,groupCounterSeq:0,counters:new Map,avChatRoomKey:e}),Pe.l("".concat(this._n,".initGroupCountersCache groupID:").concat(t," avChatRoomKey:").concat(e))}},{key:"setGroupCounters",value:function(e){var t,n,a,o,i;return this._grpM.canIUse(V.GRP_COUNTER)?(t="".concat(this._n,".").concat("setGroupCounters"),n=e.groupID,e=e.counters,e=this._convertObjectToList(e),a=this._getLocalGroupCounters(n).avChatRoomKey,o="groupID:".concat(n," count:").concat(e.length),(i=new $n("setGroupCounters")).setMessage("".concat(o)),Pe.l("".concat(t,". ").concat(o)),this._updateGroupCounters({groupID:n,counterList:e,avChatRoomKey:a,mode:"Set"}).then((function(e){return i.end(),Pe.l("".concat(t," ok.")),yn({counters:e})})).catch((function(e){return i.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this._grpM.noUse("setGroupCounters")}},{key:"increaseGroupCounter",value:function(e){var t,n,a,o,i,s,r="increaseGroupCounter";return this._grpM.canIUse(V.GRP_COUNTER)?(t="".concat(this._n,".").concat(r),n=e.groupID,a=e.key,e=e.value,o=this._getLocalGroupCounters(n).avChatRoomKey,i="groupID:".concat(n," key:").concat(a," value:").concat(e),(s=new $n(r)).setMessage("".concat(i)),Pe.l("".concat(t,". ").concat(i)),this._updateGroupCounters({groupID:n,counterList:[{key:a,value:e}],avChatRoomKey:o,mode:"Increase"}).then((function(e){return s.end(),Pe.l("".concat(t," ok.")),yn({counters:e})})).catch((function(e){return s.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this._grpM.noUse(r)}},{key:"decreaseGroupCounter",value:function(e){var t,n,a,o,i,s,r="decreaseGroupCounter";return this._grpM.canIUse(V.GRP_COUNTER)?(t="".concat(this._n,".").concat(r),n=e.groupID,a=e.key,e=e.value,o=this._getLocalGroupCounters(n).avChatRoomKey,i="groupID:".concat(n," key:").concat(a," value:").concat(e),(s=new $n(r)).setMessage("".concat(i)),Pe.l("".concat(t,". ").concat(i)),this._updateGroupCounters({groupID:n,counterList:[{key:a,value:e}],avChatRoomKey:o,mode:"Decrease"}).then((function(e){return s.end(),Pe.l("".concat(t," ok.")),yn({counters:e})})).catch((function(e){return s.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this._grpM.noUse(r)}},{key:"getGroupCounters",value:function(e){var t=this;if(!this._grpM.canIUse(V.GRP_COUNTER))return this._grpM.noUse("getGroupCounters");var n="".concat(this._n,".").concat("getGroupCounters"),a=e.groupID,o=void 0===(e=e.keyList)?[]:e,i=(e=this._getLocalGroupCounters(a)).avChatRoomKey,s=(e=e.lastUpdateTime,new $n("getGroupCounters"));return s.setMessage("groupID:".concat(a)),Date.now()-e>=this.EXPIRE_TIME?this._getRemoteGroupCounters({groupID:a,avChatRoomKey:i}).then((function(e){return s.setMoreMessage("from remote. count:".concat(e.length)).end(),Pe.l("".concat(n," from remote. groupID:").concat(a)),yn({counters:e=t._getLocalCounters(a,o)})})).catch((function(e){return s.setError(e).end(),Cn(e)})):(s.setMoreMessage("from cache").end(),Pe.l("".concat(n," from cache. groupID:").concat(a)),En({counters:e=this._getLocalCounters(a,o)}))}},{key:"_getRemoteGroupCounters",value:function(e){var n=this;return this._grpM.req({P:xn.GET_GRP_COUNTER,data:t({},e)}).then((function(t){var a=void 0===(a=(t=t.data).counterList)?[]:a;return t=t.groupCounterSeq,n._updateLocalGroupCounters({groupID:e.groupID,counterList:a,groupCounterSeq:t}),Pe.l("".concat(n._n,"._getRemoteGroupCounters ok. groupID:").concat(e.groupID)),a})).catch((function(e){return Cn(e)}))}},{key:"_convertObjectToList",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_updateGroupCounters",value:function(e){var n="".concat(this._n,"._updateGroupCounters"),a=e.groupID,o=e.avChatRoomKey,i=e.mode;return Pe.l("".concat(n,". groupID:").concat(a," avChatRoomKey:").concat(o," mode:").concat(i)),this._grpM.req({P:xn.UPDATE_GRP_COUNTER,data:t({},e)}).then((function(e){Pe.l("".concat(n," ok.")),e=e.data.counterList;var t={};return(void 0===e?[]:e).forEach((function(e){var n=e.key;e=e.value,t[n]=e})),t})).catch((function(e){return Cn(e)}))}},{key:"_hasLocalGroupCounters",value:function(e){return this._groupCountersMap.has(e)}},{key:"_getLocalGroupCounters",value:function(e){return this._hasLocalGroupCounters(e)||this.initGroupCountersCache({groupID:e}),this._groupCountersMap.get(e)}},{key:"_updateLocalGroupCounters",value:function(e){var t,n,a,o=e.groupID,i=void 0===(i=e.counterList)?[]:i;e=e.groupCounterSeq,this._hasLocalGroupCounters(o)&&(a=this._getLocalGroupCounters(o),t=a.counters,n=a.avChatRoomKey,a=a.groupCounterSeq,0<e&&e<a||(i.forEach((function(e){var n=e.key;e=e.value,t.set(n,e)})),this._groupCountersMap.set(o,{lastUpdateTime:Date.now(),groupCounterSeq:e,counters:t,avChatRoomKey:n})))}},{key:"_deleteLocalGroupCounters",value:function(e){var t,n,a=e.groupID,o=void 0===(o=e.counterList)?[]:o;e=e.groupCounterSeq,this._hasLocalGroupCounters(a)&&(n=this._getLocalGroupCounters(a),t=n.counters,n=n.avChatRoomKey,o.forEach((function(e){t.delete(e.key)})),this._groupCountersMap.set(a,{lastUpdateTime:Date.now(),groupCounterSeq:e,counters:t,avChatRoomKey:n}))}},{key:"_getLocalCounters",value:function(e,t){var n={};if(this._hasLocalGroupCounters(e)){var a=this._getLocalGroupCounters(e).counters;if(0<t.length)t.forEach((function(e){a.has(e)&&(n[e]=a.get(e))}));else{var o,i=S(a.keys());try{for(i.s();!(o=i.n()).done;){var s=o.value;n[s]=a.get(s)}}catch(r){i.e(r)}finally{i.f()}}}return n}},{key:"reset",value:function(){this._groupCountersMap.clear(),this.EXPIRE_TIME=3e4}}]),Xo),ho=(i(Jo,[{key:"start",value:function(){var e=this._grpM.isLoggedIn();e||(this._proto=xn.AV_NOAUTH_POLLING),Pe.l("".concat(this._n,".start pollingInterval:").concat(this._manager.getPollingInterval()," isLoggedIn:").concat(e)),this._isRunning=!0,this._request()}},{key:"isRunning",value:function(){return this._isRunning}},{key:"_request",value:function(){var e=this,t=this._onInit(this._groupID);this._grpM.req({P:this._proto,data:t}).then((function(t){e._onSuccess(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.getPollingInterval()))})).catch((function(t){e._onFail(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.MAX_POLLING_INTERVAL))}))}},{key:"stop",value:function(){Pe.l("".concat(this._n,".stop")),0<this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1}},{key:"getPollingTimerID",value:function(){return this._timeoutID}}]),Jo),go={3:!0,4:!0,5:!0,6:!0,17:!0,20:!0,21:!0,100:!0},fo=(i(jo,[{key:"hasJoinedAVChatRoom",value:function(){var e=[];return 0<(e=0<this._joinedGroupMap.size?_(this._joinedGroupMap.values()).filter((function(e){return e.type===M.GRP_AVCHATROOM})):e).length}},{key:"getJoinedLiveList",value:function(){var e=[];return 0<this._joinedGroupMap.size?_(this._joinedGroupMap.values()).filter((function(e){return e.type===M.GRP_LIVE})):e}},{key:"checkJoinedAVChatRoomByID",value:function(e){return this._joinedGroupMap.has(e)}},{key:"getJoinedAVChatRoom",value:function(){return 0<this._joinedGroupMap.size?_(this._joinedGroupMap.keys()):[]}},{key:"_updatedata",value:function(e){var n=this._pollingRequestInfoMap.get(e);return e===_(this._pollingInstanceMap.keys())[0]?t(t({},n),{},{startBroadcastSeq:this._startBroadcastSeq,simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG}):t(t({},n),{},{simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG})}},{key:"_handleSuccess",value:function(e,t){var n,a=(c=t.data).key,o=c.nextSeq,i=c.rspMsgList,s=c.errorCode,r=c.nextBroadcastSeq,c=c.broadcastMessageList;0!==s?(s=this._pollingRequestInfoMap.get(e),n=new $n("longPollingAVError"),s=s?"".concat(s.key,"-").concat(s.startSeq):"requestInfo is undefined",n.setMessage("".concat(e,"-").concat(s,"-").concat(t.errorInfo)).setCode(t.errorCode).end(!0)):this.checkJoinedAVChatRoomByID(e)&&(ut(a)&&Je(o)&&this._pollingRequestInfoMap.set(e,{key:a,startSeq:o}),Je(r)&&r>this._startBroadcastSeq&&(this._startBroadcastSeq=r),ze(i)&&0<i.length?(i.forEach((function(e){e.to=e.groupID})),this.onMessage(i,e)):(this._pollingNoMessageCount+=1,this._pollingNoMessageCount===this.DEFAULT_POLLING_NO_MESSAGE_COUNT&&(this._pollingInterval=this.DEFAULT_POLLING_INTERVAL+this.DEFAULT_POLLING_INTERVAL_PLUS)),this._onBroadcastMessage(c))}},{key:"_handleFailure",value:function(e,t){}},{key:"onMessage",value:function(e,t){if(ze(e)&&0!==e.length){var n="".concat(this._n,".onMessage"),a=(t&&(n+=" groupID:".concat(t)),0!==this._pollingNoMessageCount&&(this._pollingNoMessageCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL),null),o=[],i=this._get(11),s=this._get(26),r=e.length,c=(1<r&&e.sort((function(e,t){return e.sequence-t.sequence})),this._get(12).isUnlimitedAVChatRoom()),l=!1;Pe.getLevel()<=0&&(t=e.map((function(e){return e.sequence})),Pe.l("".concat(n," count:").concat(t.length," sequenceList:").concat(t)),t.length=0);for(var u=0;u<r;u++){var d=this.restoreMessageFromSimplified(e[u]);if(go[d.event]){if(6===d.event){if(this._grpM.isGroupAttributesUpdatedNotice(d))continue;if(this._grpM.isGroupCountersNotice(d))continue}if(20!==d.event)if(21!==d.event)if(100!==d.event){a=this.packMessage(d,d.event);var m=1===d.isModified;if(l=1===d.isHistoryMessage,!c){if(this._seqSll.has(a.sequence))continue;this._seqSll.set(a.sequence)}var p=this._IDSll.has(a.ID);p?Pe.w("".concat(n," ID:").concat(a.ID," has:").concat(p)):(this._IDSll.set(a.ID),p=!1,!l&&this._isMessageSentByCurrentInstance(a)?m&&(p=!0,a.isModified=m,i.updateMsgIsModifiedProp(a)):p=!0,p&&(a.conversationType===M.CONV_SYSTEM&&5===a.payload.operationType&&this._onGroupDismissed(a.payload.groupProfile.groupID),l||a.conversationType===M.CONV_SYSTEM||(m=a.conversationID.replace(M.CONV_GROUP,""),this._pollingInstanceMap.has(m)?this._grpM.isLoggedIn()&&s.addMessageSequence({key:Xn,message:a}):(a.type!==M.MSG_GRP_TIP&&0<a.clientTime&&s.addMessageDelay(a.clientTime),s.addMessageSequence({key:Jn,message:a}))),o.push(a)))}else this.onRoomCustomData(d);else this._get(34).onMessageReactionNotify({event:21,dataList:d.elements.messageReactionNotifyList});else this.handleMessageRevokedNotice(d)}else Pe.w("".concat(n,". unknown event:").concat(d.event))}0!==o.length&&(0<(t=yt(o)).length&&this._grpM.emitOEvt(T.MESSAGE_MODIFIED,t),l||0<(t=this.packConversationOption(o)).length&&i.onNewMessage({conversationOptionsList:t,isInstantMessage:!0}),this._checkMessageStacked(o),0<(t=Et(o)).length&&this._grpM.emitOEvt(T.MESSAGE_RECEIVED,t),o.length=0)}}},{key:"handleMessageRevokedNotice",value:function(e){var t=this,n=e.groupID,a=e.elements.revokeMsgList,o=e.revokerInfo,i=[];a.forEach((function(e){var t=e.tinyID,a=e.clientTime,s=e.random;e=e.sequence,t={conversationID:"".concat(M.CONV_GROUP).concat(n),ID:"".concat(t,"-").concat(a,"-").concat(s),revoker:o.revoker,revokeReason:o.reason||"",revokerInfo:{userID:o.revoker,nick:"",avatar:""},sequence:e},i.push(t)})),0!==i.length&&this._get(11).updateRevokerInfo(i).then((function(e){t._grpM.emitOEvt(T.MESSAGE_REVOKED,e)}))}},{key:"isBroadcastOrNormal",value:function(e){return 3===e||17===e}},{key:"isGroupTip",value:function(e){return 4===e||6===e}},{key:"isGroupSystemNotice",value:function(e){return 5===e}},{key:"restoreGroupTipElements",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=void 0===(t=e.operatorInfo)?{}:t,n=e.operatorID,a=void 0===(a=e.userIDList)?[]:a,o=e.operationType,i=(Je(e.groupJoinType)||1!==o&&2!==o||(e.groupJoinType=2===o?0:1),o=t.userID,t.avatar);return t=t.nick,e.operatorInfo={userID:void 0===o?n:o,avatar:void 0===i?"":i,nick:void 0===t?"":t},n=a.map((function(e){return{userID:e}})),e.memberInfoList=e.memberInfoList||n,e}},{key:"restoreMessageFromSimplified",value:function(e){var n,a,o,i=e.event;return this.isBroadcastOrNormal(i)&&(e.cloudCustomData=e.cloudCustomData||"",e.elements=e.elements.map((function(e){var n;return e.type===M.MSG_CUSTOM&&(n=e.content,e.content=t({data:"",description:"",extension:""},void 0===n?{}:n)),e}))),(this.isGroupTip(i)||this.isGroupSystemNotice(i))&&(e.from=e.from||"@TIM#SYSTEM"),this.isGroupTip(i)&&(e.elements=this.restoreGroupTipElements(e.elements),a=(o=void 0===(o=e.elements)?{}:o).operationType,n=o.operatorInfo,1===a)&&(a=[{userID:(void 0===n?{}:n).userID}],o.memberInfoList=o.memberInfoList||a),this.isGroupSystemNotice(i)&&(o=(n=e.elements).memberInfoList,a=n.operatorInfo,e.elements.memberInfoList=t({userID:e.elements.operatorID,avatar:"",nick:""},o=o||(void 0===a?{}:a)),e.elements=t({authentication:"",remarkInfo:"",messageKey:1e3*e.time},e.elements),i=Object.keys(e.elements).filter((function(e){return"operatorInfo"!==e})).reduce((function(n,a){return t(t({},n),{},s({},a,e.elements[a]))}),{}),e.elements=i),e}},{key:"_onGroupDismissed",value:function(e){Pe.l("".concat(this._n,"._onGroupDismissed groupID:").concat(e)),this._grpM.deleteLocalGroupAndConversation(e),this.reset(e)}},{key:"_checkMessageStacked",value:function(e){var t="MessageStacked";100<=(e=e.length)&&(this._grpM.warn(t,e),this._reportMessageStackedCount<5)&&(new $n(t).setMessage("count:".concat(e," groupID:").concat(_(this._joinedGroupMap.keys()))).setLevel("warning").end(),this._reportMessageStackedCount+=1)}},{key:"_isMessageSentByCurrentInstance",value:function(e){return!!this._get(11).isMessageSentByCurrentInstance(e)}},{key:"packMessage",value:function(e,t){e.currentUser=this._grpM.getMyUserID(),e.conversationType=5===t?M.CONV_SYSTEM:M.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var n=new Ia(e),a=(e=this.packElements(e,t),t=this._grpM.getFileDownloadProxy(),this._grpM.getDowloadFileAuthKey()),o=this._get(17).getFileDNList();return n.setElement(e,t,a,o),n}},{key:"packElements",value:function(e,n){return 4===n||6===n?(this._updateMemberCountByGroupTips(e),{type:M.MSG_GRP_TIP,content:t(t({},e.elements),{},{groupProfile:e.groupProfile})}):5===n?{type:M.MSG_GRP_SYS_NOTICE,content:t(t({},e.elements),{},{groupProfile:t(t({},e.groupProfile),{},{groupID:e.groupID})})}:e.elements}},{key:"packConversationOption",value:function(e){for(var t=new Map,n=0;n<e.length;n++){var a,o=e[n],i=o.conversationID;t.has(i)?"in"===((a=t.get(i)).lastMessage=o).flow&&a.unreadCount++:t.set(i,{conversationID:o.conversationID,unreadCount:"out"===o.flow?0:1,type:o.conversationType,subType:o.conversationSubType,lastMessage:o})}return _(t.values())}},{key:"_updateMemberCountByGroupTips",value:function(e){var t,n,a,o=e.groupProfile.groupID;He(e=void 0===(e=e.elements.onlineMemberInfo)?void 0:e)||(t=void 0===(t=e.onlineMemberNum)?0:t,e=void 0===(e=e.expireTime)?this.DEFAULT_EXPIRE_TIME:e,n=this._onlineMemberCountMap.get(o)||{},a=Date.now(),He(n)?Object.assign(n,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:a,memberCount:t,expireTime:e}):(n.latestUpdateTime=a,n.memberCount=t),this._onlineMemberCountMap.set(o,n))}},{key:"_onBroadcastMessage",value:function(e){if(!He(e)){for(var t=[],n=e.length,a=null,o=0;o<n;o++){var i=this.restoreMessageFromSimplified(e[o]);go[i.event]?((a=this.packMessage(i,i.event)).isBroadcastMessage=!0,this._broadcastMessageIDMap.has(a.ID)||(t.push(a),this._broadcastMessageIDMap.set(a.ID,1))):Pe.w("".concat(this._n,"._onBroadcastMessage unknown event:").concat(i.event))}0<t.length&&this._grpM.emitOEvt(T.MESSAGE_RECEIVED,t)}}},{key:"start",value:function(e){var t;this._pollingInstanceMap.has(e)?(t=this._pollingInstanceMap.get(e)).isRunning()||t.start():((t=new ho({manager:this,groupID:e,onInit:this._updatedata.bind(this),onSuccess:this._handleSuccess.bind(this),onFail:this._handleFailure.bind(this)})).start(),this._pollingInstanceMap.set(e,t),Pe.l("".concat(this._n,".start groupID:").concat(e)))}},{key:"handleJoinResult",value:function(e){var t=this;return this._preCheck(e.group).then((function(){var n=e.longPollingKey,a=e.group,o=a.groupID;return t._joinedGroupMap.set(o,a),t._grpM.updateGroupMap([a]),t._grpM.deleteUnjoinedAVChatRoom(o),t._grpM.emitGroupListUpdate(!0,!1),dt(n)?En({status:Ue,group:a}):Promise.resolve()}))}},{key:"startRunLoop",value:function(e){var t=this;return this.handleJoinResult(e).then((function(){var n=e.longPollingKey,a=e.group,o=e.startSeq,i=a.groupID;return t._pollingRequestInfoMap.set(i,{key:n,startSeq:void 0===o?0:o}),t.start(i),t._grpM.isLoggedIn()?En({status:Ue,group:a}):En({status:Ue})}))}},{key:"_preCheck",value:function(e){if(!this._get(12).isUnlimitedAVChatRoom()&&this.hasJoinedAVChatRoom()&&e.type!==M.GRP_LIVE){var t=(e=v(this._joinedGroupMap.entries().next().value,2))[0];if(e=e[1],this._grpM.isLoggedIn()&&e.selfInfo.role!==M.GRP_MBR_ROLE_OWNER&&e.ownerID!==this._grpM.getMyUserID())return this._grpM.quitGroup(t);this._grpM.deleteLocalGroupAndConversation(t),this.reset(t)}return Promise.resolve()}},{key:"joinWithoutAuth",value:function(e){var t=this,n=e.groupID,a="".concat(this._n,".").concat("joinWithoutAuth"),o=new $n("joinWithoutAuth");return this._grpM.req({P:xn.APPLY_JOIN_GRP_NOAUTH,data:e}).then((function(e){if(e=e.data.longPollingKey,o.setMessage("groupID:".concat(n," longPollingKey:").concat(e)).end(!0),dt(e))return Cn({code:Vn.CANNOT_JOIN_NON_AV_WITHOUT_LOGIN});Pe.l("".concat(a," ok. groupID:").concat(n)),t._get(11).setCompleted("".concat(M.CONV_GROUP).concat(n));var i=new ao({groupID:n});return t.startRunLoop({group:i,longPollingKey:e}),yn({status:Ue})})).catch((function(e){return Pe.e("".concat(a," failed. groupID:").concat(n," error:"),e),o.setError(e).setMessage("groupID:".concat(n)).end(!0),Cn(e)})).finally((function(){t._grpM.get(14).reportAtOnce()}))}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._onlineMemberCountMap.get(e)||{},n=Date.now();return He(t)||n-t.lastSyncTime>1e3*t.expireTime&&1e4<n-t.latestUpdateTime&&3e3<n-t.lastReqTime?(t.lastReqTime=n,this._onlineMemberCountMap.set(e,t),this._getGroupOnlineMemberCount(e).then((function(e){return yn({memberCount:e.memberCount})})).catch((function(e){return Cn(e)}))):En({memberCount:t.memberCount})}},{key:"_getGroupOnlineMemberCount",value:function(e){var t=this,n="".concat(this._n,".").concat("_getGroupOnlineMemberCount"),a=new $n("_getGroupOnlineMemberCount");return this._grpM.requestOnlineCount(e).then((function(a){var o=t._onlineMemberCountMap.get(e)||{},i=void 0===(i=(a=a.data).memberCount)?0:i,s=(a=void 0===(a=a.expireTime)?t.DEFAULT_EXPIRE_TIME:a,Pe.l("".concat(n," ok. groupID:").concat(e," memberCount:").concat(i," expireTime:").concat(a)),Date.now());return He(o)&&(o.lastReqTime=s),t._onlineMemberCountMap.set(e,Object.assign(o,{lastSyncTime:s,latestUpdateTime:s,memberCount:i,expireTime:a})),{memberCount:i}})).catch((function(t){return Pe.w("".concat(n," failed. error:"),t),a.setCode(t.code).setMessage("groupID:".concat(e," error:").concat(JSON.stringify(t))).end(),Promise.reject(t)}))}},{key:"_get",value:function(e){return this._grpM.get(e)}},{key:"setPollingInterval",value:function(e){dt(e)||(Je(e)?this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=e:this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=parseInt(e,10))}},{key:"setPollingIntervalPlus",value:function(e){dt(e)||(Je(e)?this.DEFAULT_POLLING_INTERVAL_PLUS=e:this.DEFAULT_POLLING_INTERVAL_PLUS=parseInt(e,10))}},{key:"setPollingNoMessageCount",value:function(e){dt(e)||(Je(e)?this.DEFAULT_POLLING_NO_MESSAGE_COUNT=e:this.DEFAULT_POLLING_NO_MESSAGE_COUNT=parseInt(e,10))}},{key:"setPollingSimplifiedMessage",value:function(e){dt(e)||"0"!==e&&"1"!==e||(this.DEFAULT_POLLING_SIMPLIFIED_MSG=parseInt(e,10))}},{key:"getPollingInterval",value:function(){return this._pollingInterval}},{key:"onAVChatRoomMemberBanned",value:function(e){e=e.payload.groupProfile.groupID,Pe.l("".concat(this._n,".onAVChatRoomMemberBanned groupID:").concat(e)),this._grpM.deleteLocalGroupAndConversation(e),this.reset(e)}},{key:"restartPolling",value:function(){Pe.l("".concat(this._n,".restartPolling count:").concat(this._pollingInstanceMap.size));var e,t=S(this._pollingInstanceMap.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.stop(),n.start()}}catch(a){t.e(a)}finally{t.f()}}},{key:"getPollingTimerID",value:function(e){var t;return this._pollingInstanceMap.has(e)?(t=this._pollingInstanceMap.get(e).getPollingTimerID(),Pe.l("".concat(this._n,".getPollingTimerID groupID:").concat(e," timerID:").concat(t)),t):-1}},{key:"hasPollingInstance",value:function(e){return this._pollingInstanceMap.has(e)}},{key:"onRoomCustomData",value:function(e){var t=e.groupID,n=e.sequence,a=e.time;e=(e=e.elements)&&e.content,this._get(30).onRoomCustomDataReceived(e),Pe.l("".concat(this._n,".onRoomCustomData groupID:").concat(t," sequence:").concat(n," time:").concat(a," data:").concat(e))}},{key:"reset",value:function(e){if(e){Pe.l("".concat(this._n,".reset groupID:").concat(e));var t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e)}else{Pe.l("".concat(this._n,".reset all"));var n,a=S(this._pollingInstanceMap.values());try{for(a.s();!(n=a.n()).done;)n.value.stop()}catch(o){a.e(o)}finally{a.f()}this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear(),this._broadcastMessageIDMap.clear()}this._seqSll.reset(),this._IDSll.reset(),this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=300,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0}}]),jo),vo=(i(qo,[{key:"updateMember",value:function(e){dt(e.onlineStatus)||(this.isOnline="Online"===e.onlineStatus);var t=[null,void 0,"",0,NaN];e.memberCustomField&&_t(this.memberCustomField,e.memberCustomField),et(this,e,["memberCustomField","marks","onlineStatus"],t)}},{key:"updateRole",value:function(e){["Owner","Admin","Member"].indexOf(e)<0||(this.role=e)}},{key:"updateMuteUntil",value:function(e){dt(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}},{key:"updateNameCard",value:function(e){dt(e)||(this.nameCard=e)}},{key:"updateMemberCustomField",value:function(e){e&&_t(this.memberCustomField,e)}}]),qo),_o=(i(Zo,[{key:"_onProfileUpdated",value:function(e){for(var t=this,n=e.data,a=0;a<n.length;a++)!function(e){var a=n[e];t.groupMemberListMap.forEach((function(e){e.has(a.userID)&&e.get(a.userID).updateMember({nick:a.nick,avatar:a.avatar})}))}(a)}},{key:"deleteGroupMemberList",value:function(e){this.groupMemberListMap.delete(e)}},{key:"getGroupMemberList",value:function(e){var t,n=this,a=e.groupID,o=void 0===(o=e.role)?void 0:o,i=void 0===(c=e.offset)?0:c,s=void 0===(c=e.count)?15:c,r=(e=void 0===(c=e.filter)?void 0:c,"".concat(this._n,".").concat("getGroupMemberList")),c=this._grpM.hasLocalGroup(a);if(Pe.l("".concat(r," groupID:").concat(a," role:").concat(o," offset:").concat(i," count:").concat(s," hasLocalGroup:").concat(c)),!c)return En({memberList:[],offset:0});if(this._grpM.getLocalGroupProfile(a).type===M.GRP_AVCHATROOM){if(this._grpM.canIUse(V.AV_MBR_LIST))return this._getAVChatRoomMemberList({groupID:a,offset:i,filter:e});this._grpM.warn("LiveOnlineMember")}o!==M.GRP_MBR_ROLE_ADMIN&&o!==M.GRP_MBR_ROLE_OWNER&&o!==M.GRP_MBR_ROLE_MEMBER||(t=o);var l=new $n("getGroupMemberList"),u=0,d=(c={groupID:a,limit:100<s?100:s,memberRoleFilter:t?[t]:void 0,memberInfoFilter:this.DEFAULT_MEMBER_INFO_FILTER},kt({groupID:a})?c.next="".concat(i):u=(c.offset=i)+s,[]);return this._grpM.req({P:xn.GET_GRP_MBR_LIST,data:c}).then((function(e){var t=(e=e.data).members,o=e.memberNum;return e=e.next,dt(e=void 0===e?void 0:e)||(u=He(e)?0:e),ze(t)&&0!==t.length?(n._grpM.hasLocalGroup(a)&&(n._grpM.getLocalGroupProfile(a).memberNum=o),d=n._updateLocalGroupMemberMap(a,t),n._grpM.get(4).getUserProfile({userIDList:t.map((function(e){return e.userID})),tagList:[Re.NICK,Re.AVATAR]})):(u=0,Promise.resolve([]))})).then((function(e){return ze(e=e.data)&&0!==e.length?(e=e.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}})),n._updateLocalGroupMemberMap(a,e),d.length<s&&(u=0),l.setMessage("groupID:".concat(a," offset:").concat(i," count:").concat(s)).end(),Pe.l("".concat(r," ok.")),yn({memberList:d,offset:u})):En({memberList:[],offset:u})})).catch((function(e){return l.setError(e).end(),Pe.e("".concat(r," failed. error:"),e),Cn(e)}))}},{key:"_getAVChatRoomMemberList",value:function(e){var n=this,a=e.groupID,o=e.offset,i=(e=e.filter,"".concat(this._n,".").concat("_getAVChatRoomMemberList")),s=new $n("_getAVChatRoomMemberList");return s.setMessage("groupID:".concat(a," offset:").concat(o," filter:").concat(e)),this._grpM.req({P:xn.GET_AV_MBR_LIST,data:{groupID:a,offset:o,filter:e}}).then((function(e){var o=void 0===(o=(e=e.data).memberList)?[]:o;return e=void 0===(e=e.offset)?0:e,s.end(),Pe.l("".concat(i," ok. member count:").concat(o.length,", next request timestamp:").concat(e)),o=o.map((function(e){return t(t({},e),{},{onlineStatus:"Online"})})),yn({memberList:o=n._updateLocalGroupMemberMap(a,o),offset:e})})).catch((function(e){return s.setError(e).end(),Pe.e("".concat(i," failed. error:"),e),Cn(e)}))}},{key:"getGroupMemberProfile",value:function(e){var n,a=this,o="getGroupMemberProfile",i="".concat(this._n,".").concat(o),s="groupID:".concat(e.groupID),r=(5<e.userIDList.length?s+=" userIDList.length:".concat(e.userIDList.length):s+=" userIDList:".concat(e.userIDList),Pe.l("".concat(i," ").concat(s)),50<e.userIDList.length&&(e.userIDList=e.userIDList.slice(0,50)),e.groupID),c=e.userIDList;return(i=this._grpM.getLocalGroupProfile(r))&&Ct(i.type)?Cn({code:i=Vn.OPERATION_NOT_SUPPORTED_IN_AV,message:this._grpM.getErrMsg(i,o)}):((n=new $n(o)).setMessage(s),this._getGroupMemberProfileAdvance(t(t({},e),{},{userIDList:c})).then((function(e){return ze(e=e.data.members)&&0!==e.length?(a._updateLocalGroupMemberMap(r,e),a._grpM.get(4).getUserProfile({userIDList:e.map((function(e){return e.userID})),tagList:[Re.NICK,Re.AVATAR]})):En([])})).then((function(e){return e=e.data.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}})),a._updateLocalGroupMemberMap(r,e),e=c.filter((function(e){return a.hasLocalGroupMember(r,e)})).map((function(e){return a.getLocalGroupMemberInfo(r,e)})),n.end(),yn({memberList:e})})))}},{key:"addGroupMember",value:function(e){var t=this,n="".concat(this._n,".").concat("addGroupMember"),a=e.groupID,o=this._grpM.getLocalGroupProfile(a),i=o.type,s=new $n("addGroupMember");return s.setMessage("groupID:".concat(a," groupType:").concat(i)),Ct(i)?(i=new On({code:Vn.CANNOT_ADD_MEMBER_IN_AV}),s.setError(i).end(),Cn(i)):(e.userIDList=e.userIDList.map((function(e){return{userID:e}})),Pe.l("".concat(n," groupID:").concat(a)),this._grpM.req({P:xn.ADD_GRP_MBR,data:e}).then((function(a){a=a.data.members;var i=(Pe.l("".concat(n," ok")),a.filter((function(e){return 1===e.result})).map((function(e){return e.userID}))),r=a.filter((function(e){return 0===e.result})).map((function(e){return e.userID})),c=a.filter((function(e){return 2===e.result})).map((function(e){return e.userID})),l=(a=a.filter((function(e){return 4===e.result})).map((function(e){return e.userID})),"groupID:".concat(e.groupID,", ")+"successUserIDList:".concat(i,", ")+"failureUserIDList:".concat(r,", ")+"existedUserIDList:".concat(c,", ")+"overLimitUserIDList:".concat(a));return s.setMoreMessage(l).end(),0===i.length?yn({successUserIDList:i,failureUserIDList:r,existedUserIDList:c,overLimitUserIDList:a}):(t._updateConvGroupProfile(o),yn({successUserIDList:i,failureUserIDList:r,existedUserIDList:c,overLimitUserIDList:a,group:o}))})).catch((function(e){return s.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)})))}},{key:"deleteGroupMember",value:function(e){var t,n,a=this,o="".concat(this._n,".").concat("deleteGroupMember"),i=e.groupID,s=e.userIDList,r=this._grpM.getLocalGroupProfile(i);return dt(r)?Cn({code:Vn.CANNOT_FIND_GRP}):Ct(r.type)?this._grpM.canIUse(V.AV_BAN_MBR)?this._banAVChatRoomMember(e):this._grpM.noUse("deleteGroupMember"):(t="groupID:".concat(i," ").concat(5<s.length?"userIDList.length:".concat(s.length):"userIDList:".concat(s)),Pe.l("".concat(o," groupID:").concat(i," userIDList:"),s),(n=new $n("deleteGroupMember")).setMessage(t),this._grpM.req({P:xn.DEL_GRP_MBR,data:e}).then((function(){return n.end(),Pe.l("".concat(o," ok")),a._updateConvGroupProfile(r),a.deleteLocalGroupMembers(i,s),yn({group:r,userIDList:s})})).catch((function(e){return n.setError(e).end(),Pe.e("".concat(o," failed. error:"),e),Cn(e)})))}},{key:"_updateConvGroupProfile",value:function(e){this._grpM.get(11).updateConvGroupProfile([e])}},{key:"_banAVChatRoomMember",value:function(e){var t=this,n="".concat(this._n,".").concat("_banAVChatRoomMember"),a=e.groupID,o=e.userIDList,i="groupID:".concat(a," ").concat(5<o.length?"userIDList.length:".concat(o.length):"userIDList:".concat(o)),s=new $n("_banAVChatRoomMember"),r=(s.setMessage(i),Pe.l("".concat(n," groupID:").concat(a," userIDList:"),o),this._grpM.getLocalGroupProfile(a));return dt(e.duration)||0===e.duration?Cn({code:Vn.BAN_DURATION_INVALID}):this._grpM.req({P:xn.BAN_AV_MBR,data:e}).then((function(){return s.end(),Pe.l("".concat(n," ok")),t.deleteLocalGroupMembers(a,o),yn({group:r,userIDList:o})})).catch((function(e){return s.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))}},{key:"setGroupMemberMuteTime",value:function(e){var t,n,a=this,o=e.groupID,i=e.userID,s=(e=e.muteTime,"".concat(this._n,".").concat("setGroupMemberMuteTime"));return i===this._grpM.getMyUserID()?Cn({code:Vn.CANNOT_MUTE_SELF}):(t="groupID:".concat(o," userID:").concat(i," muteTime:").concat(e),Pe.l("".concat(s," ").concat(t)),(n=new $n("setGroupMemberMuteTime")).setMessage(t),this.modifyGroupMemberInfo({groupID:o,userID:i,muteTime:e}).then((function(e){return n.end(),Pe.l("".concat(s," ok")),yn({group:a._grpM.getLocalGroupProfile(o),member:e})})).catch((function(e){return n.setError(e).end(),Pe.e("".concat(s," failed. error:"),e),Cn(e)})))}},{key:"setGroupMemberRole",value:function(e){var t,n,a="".concat(this._n,".").concat("setGroupMemberRole"),o=e.groupID,i=e.userID,s=(e=e.role,"groupID:".concat(o," userID:").concat(i," role:").concat(e)),r=this._grpM.getLocalGroupProfile(o);return r&&r.selfInfo.role!==M.GRP_MBR_ROLE_OWNER?Cn({code:Vn.NOT_OWNER}):(t=[M.GRP_MBR_ROLE_ADMIN,M.GRP_MBR_ROLE_MEMBER],kt({groupID:o})&&t.push(M.GRP_MBR_ROLE_CUSTOM),t.indexOf(e)<0?Cn({code:Vn.INVALID_MEMBER_ROLE}):i===this._grpM.getMyUserID()?Cn({code:Vn.CANNOT_SET_SELF_MEMBER_ROLE}):((n=new $n("setGroupMemberRole")).setMessage(s),Pe.l("".concat(a," ").concat(s)),this.modifyGroupMemberInfo({groupID:o,userID:i,role:e}).then((function(e){return n.end(),Pe.l("".concat(a," ok")),yn({group:r,member:e})})).catch((function(e){return n.setError(e).end(),Pe.e("".concat(a," failed. error:"),e),Cn(e)}))))}},{key:"_filterProfanity",value:function(e,t){var n,a=this._grpM.get(29);return!a||(n=(a=a.filterText(t[e],"group_member_profile")).isAllowedToSend,a=a.modifiedText,!0===n&&(t[e]=a,!0))}},{key:"setGroupMemberNameCard",value:function(e){var t,n,a,o,i,s=this,r="setGroupMemberNameCard",c="".concat(this._n,".").concat(r);return e.nameCard&&!1===this._filterProfanity("nameCard",e)?Cn({code:Vn.PROFANITY_FOUND}):(t=e.groupID,o=e.userID,n=void 0===o?this._grpM.getMyUserID():o,a=e.nameCard,o="groupID:".concat(t," userID:").concat(n," nameCard:").concat(a),Pe.l("".concat(c," ").concat(o)),(e=this._grpM.getLocalGroupProfile(t))&&Ct(e.type)?Cn({code:e=Vn.OPERATION_NOT_SUPPORTED_IN_AV,message:this._grpM.getErrMsg(e,r)}):((i=new $n(r)).setMessage(o),this.modifyGroupMemberInfo({groupID:t,userID:n,nameCard:a}).then((function(e){Pe.l("".concat(c," ok")),i.end();var o=s._grpM.getLocalGroupProfile(t);return n===s._grpM.getMyUserID()&&o&&o.setSelfNameCard(a),yn({group:o,member:e})})).catch((function(e){return i.setError(e).end(),Pe.e("".concat(c," failed. error:"),e),Cn(e)}))))}},{key:"setGroupMemberCustomField",value:function(e){var t,n=this,a="setGroupMemberCustomField",o="".concat(this._n,".").concat(a),i=e.groupID,s=void 0===(s=e.userID)?this._grpM.getMyUserID():s,r=(e=e.memberCustomField,"groupID:".concat(i," userID:").concat(s," memberCustomField:").concat(JSON.stringify(e))),c=(Pe.l("".concat(o," ").concat(r)),this._grpM.getLocalGroupProfile(i));return c&&Ct(c.type)?Cn({code:c=Vn.OPERATION_NOT_SUPPORTED_IN_AV,message:this._grpM.getErrMsg(c,a)}):((t=new $n(a)).setMessage(r),this.modifyGroupMemberInfo({groupID:i,userID:s,memberCustomField:e}).then((function(e){return t.end(),Pe.l("".concat(o," ok")),yn({group:n._grpM.getLocalGroupProfile(i),member:e})})).catch((function(e){return t.setError(e).end(),Pe.e("".concat(o," failed. error:"),e),Cn(e)})))}},{key:"modifyGroupMemberInfo",value:function(e){var n=this,a=e.groupID,o=e.userID,i=void 0;return It(a)&&(a=xt(i=a)),this._grpM.req({P:xn.MODIFY_GRP_MBR_INFO,data:t(t({},e),{},{groupID:a,topicID:i})}).then((function(){var t;return n.hasLocalGroupMember(a,o)?(t=n.getLocalGroupMemberInfo(a,o),dt(e.muteTime)||t.updateMuteUntil(e.muteTime),dt(e.role)||t.updateRole(e.role),dt(e.nameCard)||t.updateNameCard(e.nameCard),dt(e.memberCustomField)||t.updateMemberCustomField(e.memberCustomField),t):(t=n._grpM.getLocalGroupProfile(a))&&!Ct(t.type)?n.getGroupMemberProfile({groupID:a,userIDList:[o]}).then((function(e){return v(e.data.memberList,1)[0]})):void 0}))}},{key:"markGroupMemberList",value:function(e){var t="".concat(this._n,".").concat("markGroupMemberList"),n=e.groupID,a=e.markType,o=e.enableMark,i=void 0===(e=e.userIDList)?[]:e,s=(e="groupID:".concat(n," markType:").concat(a," enableMark:").concat(o," userIDList count:").concat(i.length),Pe.l("".concat(t," ").concat(e)),2),r=[],c=(!0===o&&(s=1),o=_(i),500<i.length&&(o=i.slice(0,500),Pe.w("".concat(t," ").concat(Ht(500)))),o.forEach((function(e){r.push({userID:e,markType:[a]})})),o=null,new $n("markGroupMemberList"));return c.setMessage(e),this._grpM.req({P:xn.MARK_AV_MBR_INFO,data:{groupID:n,operationType:s,memberList:r}}).then((function(e){e=e.data.memberList;var n=[],a=[];return(e=void 0===e?[]:e).length===i.length?n.push.apply(n,_(i)):(e.forEach((function(e){n.push(e.userID)})),i.forEach((function(e){n.includes(e)||a.push(e)}))),e="success count:".concat(n.length," fail count:").concat(a.length),c.setMessage(e).end(),Pe.l("".concat(t," ok. ").concat(e)),yn({successUserIDList:n,failureUserIDList:a})})).catch((function(e){return c.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"_getGroupMemberProfileAdvance",value:function(e){return this._grpM.req({P:xn.GET_GRP_MBR_PROFILE,data:t(t({},e),{},{memberInfoFilter:e.memberInfoFilter||this.DEFAULT_MEMBER_INFO_FILTER})})}},{key:"_updateLocalGroupMemberMap",value:function(e,t){var n=this;return ze(t)&&0!==t.length?t.map((function(t){return n.hasLocalGroupMember(e,t.userID)?n.getLocalGroupMemberInfo(e,t.userID).updateMember(t):n.setLocalGroupMember(e,new vo(t)),n.getLocalGroupMemberInfo(e,t.userID)})):[]}},{key:"deleteLocalGroupMembers",value:function(e,t){var n=this.groupMemberListMap.get(e);n&&t.forEach((function(e){n.delete(e)}))}},{key:"getLocalGroupMemberInfo",value:function(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null}},{key:"setLocalGroupMember",value:function(e,t){this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).set(t.userID,t):(t=(new Map).set(t.userID,t),this.groupMemberListMap.set(e,t))}},{key:"getLocalGroupMemberList",value:function(e){return this.groupMemberListMap.get(e)}},{key:"hasLocalGroupMember",value:function(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t)}},{key:"hasLocalGroupMemberMap",value:function(e){return this.groupMemberListMap.has(e)}},{key:"reset",value:function(){this.groupMemberListMap.clear()}}]),Zo),yo=[17,18,20],Eo=(i(Ho,[{key:"onNewGroupSystemNotice",value:function(e){var t=e.dataList,n=e.isSyncingEnded,a=(e=e.isInstantMessage,(Pe.d("".concat(this._n,".onReceiveSystemNotice count:").concat(t.length)),t=this._assembly({notifiesList:t,isInstantMessage:e})).eventDataList);t=t.result,0<a.length&&(this._grpM.get(11).onNewMessage({conversationOptionsList:a,isInstantMessage:e}),this._onReceivedGroupSystemNotice({result:t,isInstantMessage:e})),e?0<t.length&&this._grpM.emitOEvt(T.MESSAGE_RECEIVED,t):!0===n&&this._clearGroupSystemNotice()}},{key:"_assembly",value:function(e){var n=e.notifiesList,a=e.isInstantMessage,o=null,i=n.length,s=0,r=[],c={conversationID:M.CONV_SYSTEM,unreadCount:0,type:M.CONV_SYSTEM,subType:null,lastMessage:null};for(s=0;s<i;s++){var l=n[s],u=(d=l.groupProfile).communityType,d=void 0===(d=d.topicID)?void 0:d,m=void 0===(m=(p=l.elements).topicIDList)?void 0:m,p=p.operationType;if(!(2!==(void 0===u?0:u)||He(d)&&He(m))){if(yo.includes(p)){this._handleTopicSystemNotice(l);continue}He(d)||(l.to=d)}15!==l.elements.operationType&&(l.currentUser=this._grpM.getMyUserID(),l.conversationType=M.CONV_SYSTEM,l.conversationID=M.CONV_SYSTEM,(o=new Ia(l)).setElement({type:M.MSG_GRP_SYS_NOTICE,content:t(t({},l.elements),{},{groupProfile:t({},l.groupProfile)})}),o.isSystemMessage=!0,(1===o.sequence&&1===o.random||2===o.sequence&&2===o.random)&&(o.sequence=ot(),o.random=ot(),o.generateMessageID(),Pe.l("".concat(this._n,"._assembly regenerate ID:").concat(o.ID))),this._grpM.get(11).pushIntoNoticeResult(r,o))&&(a?c.unreadCount++:o.setIsRead(!0),c.subType=o.conversationSubType)}return c.lastMessage=r[r.length-1],{eventDataList:0<r.length?[c]:[],result:r}}},{key:"_clearGroupSystemNotice",value:function(){var e=this;this._getPendencyList().then((function(t){t.forEach((function(t){e.pendencyMap.set("".concat(t.from,"_").concat(t.groupID,"_").concat(t.to),t)})),t=e._grpM.get(11).getLocalMessageList(M.CONV_SYSTEM);var n=[];t.forEach((function(t){var a=(i=t.payload).operatorID,o=i.operationType,i=i.groupProfile;1===o&&(o="".concat(a,"_").concat(i.groupID,"_").concat(i.to),a=e.pendencyMap.get(o))&&Je(a.handled)&&0!==a.handled&&n.push(t)})),e.deleteGroupSystemNotice({messageList:n})}))}},{key:"deleteGroupSystemNotice",value:function(e){var t=this,n="".concat(this._n,".deleteGroupSystemNotice");return ze(e.messageList)&&0!==e.messageList.length?(Pe.l("".concat(n," ")+e.messageList.map((function(e){return e.ID}))),this._grpM.req({P:xn.DEL_GRP_SYSTEM_NOTICE,data:{messageListToDelete:e.messageList.map((function(e){return{from:M.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random}}))}}).then((function(){Pe.l("".concat(n," ok"));var a=t._grpM.get(11);return e.messageList.forEach((function(e){a.deleteLocalMessage(e)})),yn()})).catch((function(e){return Pe.e("".concat(n," error:"),e),Cn(e)}))):En()}},{key:"_getPendencyList",value:function(){var e=this,t=(a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).type,n=a.startTime,a=a.limit;return this._grpM.req({P:xn.GET_GRP_PENDENCY,data:{type:void 0===t?void 0:t,startTime:void 0===n?0:n,limit:void 0===a?20:a,handleAccount:this._grpM.getMyUserID()}}).then((function(t){var n=t.data.pendencyList;return 0!==t.data.nextStartTime?e._getPendencyList({startTime:t.data.nextStartTime}).then((function(e){return[].concat(_(n),_(e))})):n}))}},{key:"getGroupApplicationList",value:function(){var e=this;return this._getPendencyList().then((function(t){return e._getPendencyList({type:M.GRP_COMMUNITY}).then((function(n){return t.push.apply(t,_(n)),e._handlePendencyResult(t)})).catch((function(n){return e._handlePendencyResult(t)}))}))}},{key:"_handlePendencyResult",value:function(e){var t=this,n=[];return e.forEach((function(e){t.pendencyMap.set("".concat(e.from,"_").concat(e.groupID,"_").concat(e.to),e),0===e.handled&&n.push({applicant:e.from,applicantNick:e.fromUserNickName,groupName:e.groupName,groupID:e.groupID,authentication:e.authentication,messageKey:e.time,applicationType:e.applicationType,userID:e.userID,note:e.note})})),En({applicationList:n})}},{key:"_onReceivedGroupSystemNotice",value:function(e){var t=this,n=e.result;e.isInstantMessage&&n.forEach((function(e){switch(e.payload.operationType){case 1:case 3:case 6:case 11:case 12:case 15:break;case 2:t._onApplyJoinGroup(e);break;case 4:t._onMemberKicked(e);break;case 5:t._onGroupDismissed(e);break;case 7:t._onInviteGroup(e);break;case 8:t._onQuitGroup(e);break;case 9:t._onSetManager(e);break;case 10:t._onDeleteManager(e);break;case 20:t._onMessageRemindTypeSynced(e);break;case 21:t._grpM.onAVChatRoomMemberBanned(e)}}))}},{key:"_onApplyJoinGroup",value:function(e){var t=this,n=(e=e.payload.groupProfile).groupID,a=(e=e.groupType,this._grpM.hasLocalGroup(n));Pe.l("".concat(this._n,"._onApplyJoinGroup groupID:").concat(n," groupType:").concat(e," hasGroup:").concat(a)),a||Ct(e)||this._grpM.getGroupProfile({groupID:n}).then((function(e){(e=e.data.group)&&(t._grpM.updateGroupMap([e]),e=!e.isSupportTopic,t._grpM.emitGroupListUpdate(!0,e))}))}},{key:"_onMemberKicked",value:function(e){e=e.payload.groupProfile.groupID,this._grpM.hasLocalGroup(e)&&this._grpM.deleteLocalGroupAndConversation(e)}},{key:"_onGroupDismissed",value:function(e){e=e.payload.groupProfile.groupID;var t=(this._grpM.hasLocalGroup(e)&&this._grpM.deleteLocalGroupAndConversation(e),this._grpM._AVChatRoomHandler);t&&t.checkJoinedAVChatRoomByID(e)&&t.reset(e)}},{key:"_onInviteGroup",value:function(e){var t=this,n=e.payload.groupProfile.groupID;e=this._grpM.hasLocalGroup(n),Pe.l("".concat(this._n,"._onInviteGroup groupID:").concat(n," hasGroup:").concat(e)),this._grpM.getGroupProfile({groupID:n}).then((function(){t._grpM.emitGroupListUpdate(),t._grpM.get(11).pullMsgOnInvite("".concat(M.CONV_GROUP).concat(n))}))}},{key:"_onQuitGroup",value:function(e){var t=(e=e.payload.groupProfile).groupID,n=(e=e.groupType,this._grpM.hasLocalGroup(t));Pe.l("".concat(this._n,"._onQuitGroup groupID:").concat(t," groupType:").concat(e," hasGroup:").concat(n)),n&&this._grpM.deleteLocalGroupAndConversation(t)}},{key:"_onSetManager",value:function(e){var t=(e=e.payload.groupProfile).to;e=e.groupID,(e=this._grpM.getGroupMemberHandler().getLocalGroupMemberInfo(e,t))&&e.updateRole(M.GRP_MBR_ROLE_ADMIN)}},{key:"_onDeleteManager",value:function(e){var t=(e=e.payload.groupProfile).to;e=e.groupID,(e=this._grpM.getGroupMemberHandler().getLocalGroupMemberInfo(e,t))&&e.updateRole(M.GRP_MBR_ROLE_MEMBER)}},{key:"_onMessageRemindTypeSynced",value:function(e){var t=e.payload.groupProfile.groupID;e=e.payload.messageRemindType,this._grpM.get(11).onGroupMsgRemindTypeUpdated({groupID:t,messageRemindType:e})}},{key:"_handleTopicSystemNotice",value:function(e){var t=(n=e.groupProfile).groupID,n=n.topicID,a=(e=e.elements).operationType,o=e.topicIDList,i=(e=e.messageRemindType,this._grpM.get(10));17===a?i.onTopicCreated({groupID:t,topicID:n}):18===a?i.onTopicDeleted({groupID:t,topicIDList:o}):20===a&&i.onMessageRemindTypeUpdated({groupID:t,topicID:n,messageRemindType:e})}},{key:"reset",value:function(){this.pendencyMap.clear()}}]),Ho),Co=["relayFlag"],ko=(r(Yo,Ln),za=f(Yo),i(Yo,[{key:"_onCloudConfig",value:function(){var e=this.getCloudConfig("polling_interval"),t=this.getCloudConfig("polling_interval_plus"),n=this.getCloudConfig("polling_no_msg_count"),a=this.getCloudConfig("polling_simplified_msg"),o=this.getCloudConfig("paging_grp_count");Pe.l("".concat(this._n,"._onCloudConfig pollingInterval:").concat(e)+" pollingIntervalPlus:".concat(t," pollingNoMessageCount:").concat(n)+" pollingSimplifiedMessage:".concat(a," pagingGroupCount:").concat(o)),this._AVChatRoomHandler.setPollingInterval(e),this._AVChatRoomHandler.setPollingIntervalPlus(t),this._AVChatRoomHandler.setPollingNoMessageCount(n),this._AVChatRoomHandler.setPollingSimplifiedMessage(a),this._commonGroupHandler.setPagingGroupCount(o)}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e))}},{key:"guardForAVChatRoom",value:function(e){var t,n=this;return e.conversationType!==M.CONV_GROUP||(t=It(e.to)?xt(e.to):e.to,this.hasLocalGroup(t))?En():this.getGroupProfile({groupID:t}).then((function(a){return a=a.data.group.type,Pe.l("".concat(n._n,".guardForAVChatRoom. groupID:").concat(t," type:").concat(a)),a===M.GRP_AVCHATROOM?Cn(new On({code:a=Vn.MSG_SEND_FAIL_NOT_IN_AV,message:n.getErrMsg(a,e.from,t),data:{message:e}})):En()}))}},{key:"checkJoinedAVChatRoomByID",value:function(e){return this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"onNewMessage",value:function(e){this._commonGroupHandler.onNewMessage(e)}},{key:"updateNextMessageSeq",value:function(e){var t,n=this;ze(e)&&(t=this.get(10),e.forEach((function(e){var a=e.conversationID.replace(M.CONV_GROUP,"");It(a)&&t.updateUnreadCountAndLastMsg(a,e.lastMessage),n.groupMap.has(a)&&(n.groupMap.get(a).nextMessageSeq=e.lastMessage.sequence+1)})))}},{key:"onNewGroupTips",value:function(e){this._groupTipsHandler.onNewGroupTips(e)}},{key:"onMsgRevoked",value:function(e){this._commonGroupHandler.onMsgRevoked(e,!(1<arguments.length&&void 0!==arguments[1])||arguments[1])}},{key:"onNewGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler.onNewGroupSystemNotice(e)}},{key:"onMsgReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){var n;e=e.elements.groupMessageReadNotice,dt(e)||(n=t.get(11),e.forEach((function(e){var a=e.groupID,o=void 0===(o=e.topicID)?void 0:o,i=(e=e.lastMessageSeq,Pe.l("".concat(t._n,".onMsgReadNotice groupID:").concat(a," lastMessageSeq:").concat(e)),a="".concat(M.CONV_GROUP).concat(a),!0);He(o)||(a="".concat(M.CONV_GROUP).concat(o),i=!1),n.updateIsReadAfterReadReport({conversationID:a,lastMessageSeq:e}),n.updateUnreadCount(a,i),n.clearGroupAtInfoList(a,i)})))}))}},{key:"onReadReceiptList",value:function(e){var t=this;Pe.l("".concat(this._n,".onReadReceiptList options:"),e),e.dataList.forEach((function(e){var n=e.groupProfile,a=(e=e.elements,n=n.groupID,t.get(11));e=e.readReceiptList,a.updateReadReceiptInfo({groupID:n,readReceiptList:e})}))}},{key:"onMsgModified",value:function(e){Pe.l("".concat(this._n,".onMsgModified options:"),e);var n=this.get(11);e.dataList.forEach((function(e){n.onMessageModified(t(t({},e),{},{conversationType:M.CONV_GROUP,to:e.topicID||e.groupID}))}))}},{key:"deleteGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}},{key:"initGroupMap",value:function(e){this.groupMap.set(e.groupID,new ao(e))}},{key:"clearGroupMap",value:function(){this.groupMap.clear()}},{key:"deleteGroup",value:function(e){this.groupMap.delete(e)}},{key:"updateGroupMap",value:function(e){var t,n=this,a=this.get(11);e.forEach((function(e){t=e.groupID,n.groupMap.has(t)?n.groupMap.get(t).updateGroup(e):(n.groupMap.set(t,new ao(e)),a.deleteGroupRoamingInfo(t))}));var o,i=this.getMyUserID(),s=S(this.groupMap);try{for(s.s();!(o=s.n()).done;){var r=v(o.value,2)[1];r.selfInfo.userID=i,"Owner"===r.selfInfo.role&&(r.ownerID=i)}}catch(c){s.e(c)}finally{s.f()}}},{key:"getGroupMap",value:function(){return this.groupMap}},{key:"getLocalGroupList",value:function(){return _(this.groupMap.values()).filter((function(e){return e.type!==M.GRP_ROOM&&e.type!==M.GRP_LIVE}))}},{key:"getLocalGroupProfile",value:function(e){return this.groupMap.get(e)}},{key:"sortLocalGroupList",value:function(){var e=_(this.groupMap).filter((function(e){return(e=v(e,2))[0],!He(e[1].lastMessage)}));e.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})),this.groupMap=new Map(_(e))}},{key:"updateGroupLastMessage",value:function(e){this._commonGroupHandler.updateLastMsg(e)}},{key:"emitGroupListUpdate",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=this.getLocalGroupList();e&&this.emitOEvt(T.GROUP_LIST_UPDATED),t&&(e=JSON.parse(JSON.stringify(n)),this.get(11).updateConvGroupProfile(e))}},{key:"getMyNameCardByGroupID",value:function(e){return(e=this.getLocalGroupProfile(e))?e.selfInfo.nameCard:""}},{key:"isPagingGetCompleted",value:function(){return this._commonGroupHandler.isPagingGetCompleted()}},{key:"getMsgRemindType",value:function(e){var t=this;return ze(e)&&0!==e.length&&0!==(e=e.filter((function(e){return!Ct(t.getLocalGroupProfile(e).type)}))).length?(Pe.l("".concat(this._n,".getMsgRemindType groupIDList:").concat(e)),this.getGroupProfileAdvance({groupIDList:e,responseFilter:{memberInfoFilter:["MsgFlag"]}}).then((function(e){e=e.data.successGroupList;var n=t.get(11);e.forEach((function(e){n.onGroupMsgRemindTypeUpdated({groupID:e.groupID,messageRemindType:ze(e.members)?e.members[0].messageRemindType:""})}))}))):Promise.resolve()}},{key:"getGroupList",value:function(){return this._commonGroupHandler.getGroupList()}},{key:"syncCommunityWithTopic",value:function(){return this._commonGroupHandler.syncGroupList(!0)}},{key:"getGroupProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupProfile"),a=new $n("getGroupProfile"),o=e.groupID,i=e.groupCustomFieldFilter;return Pe.l("".concat(n," groupID:").concat(o)),i={groupIDList:[o],responseFilter:{groupBaseInfoFilter:_(x),groupCustomFieldFilter:i,memberInfoFilter:[].concat(_(U),["NameCard"])}},this.getGroupProfileAdvance(i).then((function(e){var i=(e=e.data).successGroupList;return e=e.failureGroupList,Pe.l("".concat(n," ok")),0<e.length?Cn(e[0]):((e=Ct(i[0].type)&&!t.hasLocalGroup(o)?new ao(i[0]):(t.updateGroupMap(i),t.getLocalGroupProfile(o))).isSupportTopic||t.get(11).updateConvGroupProfile([e]),a.setMessage("groupID:".concat(o," type:").concat(e.type," muteAllMembers:").concat(e.muteAllMembers," ownerID:").concat(e.ownerID)).end(),yn({group:e}))})).catch((function(t){return a.setError(t).setMessage("groupID:".concat(e.groupID)).end(),Pe.e("".concat(n," failed. error:"),t),Cn(t)}))}},{key:"getGroupProfileAdvance",value:function(e){var n,a="".concat(this._n,".getGroupProfileAdvance"),o=(ze(s=e.groupIDList)&&50<s.length&&(this.warn("GetGroupProfileLimit"),s.length=50),[]),i=[],s=(s.forEach((function(e){(kt({groupID:e})?i:o).push(e)})),[]);return 0<o.length&&(n=this._getGroupProfileAdvance(t(t({},e),{},{groupIDList:o})),s.push(n)),0<i.length&&(n=this._getGroupProfileAdvance(t(t({},e),{},{groupIDList:i,relayFlag:0<o.length})),s.push(n)),Promise.all(s).then((function(e){var t=[],n=[];return e.forEach((function(e){t.push.apply(t,_(e.successGroupList)),n.push.apply(n,_(e.failureGroupList))})),yn({successGroupList:t,failureGroupList:n})})).catch((function(e){return Pe.e("".concat(a," failed. error:"),e),Cn(e)}))}},{key:"_getGroupProfileAdvance",value:function(e){var t=this,n=e.relayFlag,a=void 0!==n&&n,o=p(e,Co);return this.req({P:xn.GET_GRP_PROFILE,data:o}).then((function(e){return Pe.l("".concat(t._n,"._getGroupProfileAdvance ok. options:"),o),{successGroupList:(e=e.data.groups).filter((function(e){return dt(e.errorCode)||0===e.errorCode})),failureGroupList:e.filter((function(e){return e.errorCode&&0!==e.errorCode})).map((function(e){return new On({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}})}))}})).catch((function(t){return a&&kt({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:Cn(t)}))}},{key:"createGroup",value:function(e){var n=this,a=[M.GRP_PUBLIC,M.GRP_WORK,M.GRP_MEETING,M.GRP_AVCHATROOM,M.GRP_COMMUNITY],o="".concat(this._n,".").concat("createGroup"),i=e.type,s=e.groupID;if(e.name&&!1===this._filterProfanity("name",e))return Cn({code:Vn.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return Cn({code:Vn.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return Cn({code:Vn.PROFANITY_FOUND});if(!a.includes(i))return Cn({code:Vn.ILLEGAL_GRP_TYPE});if(!kt({type:i})){if(!He(s)&&kt({groupID:s}))return Cn({code:Vn.ILLEGAL_GRP_ID});e.isSupportTopic=void 0}if(Ct(i)&&!dt(e.memberList)&&0<e.memberList.length&&(e.memberList=void 0),this._canIUseJoinOption(i)||dt(e.joinOption)||(e.joinOption=void 0),kt({type:i})){if(!He(s)&&!kt({groupID:s}))return Cn({code:Vn.ILLEGAL_GRP_ID});e.isSupportTopic=!0===e.isSupportTopic?1:0}var r=new $n("createGroup"),c=(Pe.l("".concat(o," options:"),e),null),l=[];return this.req({P:xn.CREATE_GRP,data:t(t({},e),{},{ownerID:this.getMyUserID(),webPushFlag:1})}).then((function(a){var i,s,u,d=(a=a.data).groupID,m=void 0===(a=a.overLimitUserIDList)?[]:a;return c=d,l=m,a="groupType:".concat(e.type," groupID:").concat(d," overLimitUserIDList:").concat(m),r.setMessage(a).end(),Pe.l("".concat(o," ok. ").concat(a)),e.type===M.GRP_AVCHATROOM||e.type===M.GRP_COMMUNITY&&1===e.isSupportTopic||(He(e.memberList)||He(m)||(e.memberList=e.memberList.filter((function(e){return-1===m.indexOf(e.userID)}))),n.updateGroupMap([t(t({},e),{},{groupID:d})]),a=n.get(2),u="",i=0,e.type===M.GRP_COMMUNITY?(u=n.isIntl()?"Create Community":"创建社群",i=1):u=n.isIntl()?"Create Group":"创建群组",s=n.get(4).getMyNick(),u=a.createCustomMessage({to:d,conversationType:M.CONV_GROUP,payload:{data:JSON.stringify({businessID:"group_create",content:u,cmd:i,opUser:s||n.getMyUserID(),version:4})}}),a.sendMessageInstance(u),n.emitGroupListUpdate()),n.getGroupProfile({groupID:d})})).then((function(e){var t=(n=(e=e.data.group).selfInfo).nameCard,n=n.joinTime;return e.updateSelfInfo({nameCard:t,joinTime:n,messageRemindType:M.MSG_REMIND_ACPT_AND_NOTE,role:M.GRP_MBR_ROLE_OWNER}),yn({group:e,overLimitUserIDList:l})})).catch((function(a){var i;return r.setMessage("groupType:".concat(e.type)).setError(a).end(),10010===a.code||10007===a.code?(n._silentlyGetGroupProfile(a.code,c),n.updateGroupMap([t(t({},e),{},{groupID:c})]),(i=n.getLocalGroupProfile(c)).selfInfo.role=M.GRP_MBR_ROLE_OWNER,yn({group:i,overLimitUserIDList:l})):(Pe.e("".concat(o," failed. error:"),a),Cn(a))}))}},{key:"dismissGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("dismissGroup"),a="groupID:".concat(e),o=new $n("dismissGroup");return o.setMessage(a),Pe.l("".concat(n," ").concat(a)),this.req({P:xn.DISMISS_GRP,data:{groupID:e}}).then((function(){return o.end(),Pe.l("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),yn({groupID:e})})).catch((function(e){return o.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))}},{key:"updateGroupProfile",value:function(e){var t,n,a=this,o="".concat(this._n,".").concat("updateGroupProfile");return this.hasLocalGroup(e.groupID)&&(t=this.getLocalGroupProfile(e.groupID).type,this._canIUseJoinOption(t)||dt(e.joinOption)||(Pe.w("".concat(o," joinOption is unavailable for Work/Meeting/AVChatRoom")),e.joinOption=void 0)),dt(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers="On":e.muteAllMembers="Off"),e.name&&!1===this._filterProfanity("name",e)||e.introduction&&!1===this._filterProfanity("introduction",e)||e.notification&&!1===this._filterProfanity("notification",e)?Cn({code:Vn.PROFANITY_FOUND}):((n=new $n("updateGroupProfile")).setMessage(JSON.stringify(e)),Pe.l("".concat(o," groupID:").concat(e.groupID)),this.req({P:xn.UPDATE_GRP_PROFILE,data:e}).then((function(){return n.end(),Pe.l("".concat(o," ok")),a.hasLocalGroup(e.groupID)&&a.groupMap.get(e.groupID).updateGroup(e),yn({group:a.groupMap.get(e.groupID)})})).catch((function(e){return n.setError(e).end(),Pe.l("".concat(o," failed. error:"),e),Cn(e)})))}},{key:"_filterProfanity",value:function(e,t){var n,a=this.get(29);return!a||(n=(a=a.filterText(t[e],B)).isAllowedToSend,a=a.modifiedText,!0===n&&(t[e]=a,!0))}},{key:"joinGroup",value:function(e){var t,n=this,a=e.groupID,o="".concat(this._n,".joinGroup");return this.deleteUnjoinedAVChatRoom(a),this.hasLocalGroup(a)?this.isLoggedIn()?(t=new $n("applyJoinGroup"),this.getGroupProfile({groupID:a}).then((function(){return t.setMessage("groupID:".concat(a," joinedStatus:").concat(M.JOIN_STATUS_ALREADY_IN_GROUP)).end(),En({status:M.JOIN_STATUS_ALREADY_IN_GROUP})})).catch((function(i){return t.setMessage("groupID:".concat(a," unjoined")).end(),Pe.w("".concat(o," ").concat(a," was unjoined, now join!")),n.groupMap.delete(a),n.applyJoinGroup(e)}))):En({status:M.JOIN_STATUS_ALREADY_IN_GROUP}):(Pe.l("".concat(o," groupID:").concat(a)),this.isLoggedIn()?this.applyJoinGroup(e):this._AVChatRoomHandler.joinWithoutAuth(e))}},{key:"applyJoinGroup",value:function(e){var n,a,o=this,i="".concat(this._n,".").concat("applyJoinGroup"),s=e.groupID;return He(e.applyMessage)||!1!==this._filterProfanity("applyMessage",e)?(n=new $n("applyJoinGroup"),e=t({},e),(a=this.canIUse(V.AV_HISTORY_MSG))&&(e.historyMessageFlag=1),this.get(11).deleteTopicRoamingInfo(s),this.req({P:xn.APPLY_JOIN_GRP,data:e}).then((function(e){var t=(e=e.data).joinedStatus,r=e.longPollingKey,c=e.startSeq,l=e.avChatRoomFlag,u=e.avChatRoomKey,d=e.messageList;switch(e="groupID:".concat(s," joinedStatus:").concat(t," longPollingKey:").concat(r," startSeq:").concat(c)+" avChatRoomFlag:".concat(l," canGetAVChatRoomHistoryMsg:").concat(a,",")+" historyMsgCount:".concat(He(d)?0:d.length),n.setMessage(e).end(),Pe.l("".concat(i," ok. ").concat(e)),t){case Ge:return yn({status:Ge});case Ue:return o.getGroupProfile({groupID:s}).then((function(e){return e=e.data.group,o._handleJoinResult({group:e,avChatRoomFlag:l,longPollingKey:r,startSeq:c,avChatRoomKey:u,messageList:d})})).catch((function(e){var t;return 10010===e.code||10007===e.code?(o._silentlyGetGroupProfile(e.code,s),t=new ao({groupID:s}),o.updateGroupMap([t]),o._handleJoinResult({group:t,avChatRoomFlag:l,longPollingKey:r,startSeq:c,avChatRoomKey:u,messageList:d})):(Pe.e("".concat(i," failed. error:"),e),Cn(e))}));default:var m=new On({code:Vn.JOIN_GRP_FAIL});return Pe.e("".concat(i," failed. error:"),m),Cn(m)}})).catch((function(e){return n.setMessage("groupID:".concat(s)).setError(e).end(),Pe.e("".concat(i," failed. error:"),e),Cn(e)}))):Cn({code:Vn.PROFANITY_FOUND})}},{key:"_handleJoinResult",value:function(e){var t=this,n=e.group,a=e.avChatRoomFlag,o=e.longPollingKey,i=e.startSeq,s=e.avChatRoomKey,r=e.messageList,c=n.groupID;return 1===a?(this.get(11).setCompleted("".concat(M.CONV_GROUP).concat(c)),this._groupAttributesHandler.initGroupAttributesCache({groupID:c,avChatRoomKey:s}),this._groupCountersHandler.initGroupCountersCache({groupID:c,avChatRoomKey:s}),(e=dt(o)?this._AVChatRoomHandler.handleJoinResult({group:n}):this._AVChatRoomHandler.startRunLoop({group:n,longPollingKey:o,startSeq:i})).then((function(){t._onAVChatRoomHistoryMessage(r,c)})),e):(this.emitGroupListUpdate(!0,!1),yn({status:Ue,group:n}))}},{key:"quitGroup",value:function(e){var t,n=this,a="".concat(this._n,".").concat("quitGroup"),o="groupID:".concat(e),i=(Pe.l("".concat(a," ").concat(o)),this.checkJoinedAVChatRoomByID(e));return i||this.hasLocalGroup(e)?i&&!this.isLoggedIn()?(Pe.l("".concat(a," anonymously ok. ").concat(o)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),En({groupID:e})):((t=new $n("quitGroup")).setMessage(o),this.req({P:xn.QUIT_GRP,data:{groupID:e}}).then((function(){return t.end(),Pe.l("".concat(a," ok")),n.deleteLocalGroupAndConversation(e),i&&n._AVChatRoomHandler.reset(e),n._groupAttributesHandler.deleteLocalGroupAttributes(e),yn({groupID:e})})).catch((function(e){return t.setError(e).end(),Pe.e("".concat(a," failed. error:"),e),Cn(e)}))):Cn({code:Vn.MEMBER_NOT_IN_GRP})}},{key:"searchGroupByID",value:function(e){var t="".concat(this._n,".").concat("searchGroupByID"),n={groupIDList:[e]},a=new $n("searchGroupByID");return a.setMessage("groupID:".concat(e)),Pe.l("".concat(t," groupID:").concat(e)),this.req({P:xn.SEARCH_GRP,data:n}).then((function(e){if(0!==(e=e.data.groupProfile)[0].errorCode)throw new On({code:e[0].errorCode,message:e[0].errorInfo});return a.end(),Pe.l("".concat(t," ok")),yn({group:new ao(e[0])})})).catch((function(e){return a.setError(e).end(),Pe.w("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"changeGroupOwner",value:function(e){var t,n=this,a="".concat(this._n,".").concat("changeGroupOwner");return this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===M.GRP_AVCHATROOM?Cn({code:Vn.CANNOT_CHANGE_OWNER_IN_AV}):e.newOwnerID===this.getMyUserID()?Cn({code:Vn.CANNOT_CHANGE_OWNER_TO_SELF}):((t=new $n("changeGroupOwner")).setMessage("groupID:".concat(e.groupID," newOwnerID:").concat(e.newOwnerID)),Pe.l("".concat(a," groupID:").concat(e.groupID)),this.req({P:xn.CHANGE_GRP_OWNER,data:e}).then((function(){t.end(),Pe.l("".concat(a," ok"));var o,i=e.groupID,s=e.newOwnerID,r=(n.groupMap.get(i).ownerID=s,n._groupMemberHandler.getLocalGroupMemberList(i));return r instanceof Map&&(o=r.get(n.getMyUserID()),dt(o)||(o.updateRole("Member"),n.groupMap.get(i).selfInfo.role="Member"),o=r.get(s),dt(o)||o.updateRole("Owner")),n.emitGroupListUpdate(!0,!1),yn({group:n.groupMap.get(i)})})).catch((function(e){return t.setError(e).end(),Pe.e("".concat(a," failed. error:"),e),Cn(e)})))}},{key:"getGroupApplicationList",value:function(){return this._groupSystemNoticeHandler.getGroupApplicationList()}},{key:"handleGroupApplication",value:function(e){var t,n,a,o,i,s=this,r="".concat(this._n,".").concat("handleGroupApplication"),c=e.handleAction,l=e.handleMessage,u=e.message,d=e.application,m=(u?(t=u.payload.operatorID,n=u.payload.groupProfile.groupID,a=u.payload.authentication,o=u.payload.messageKey):d&&(t=d.applicant,n=d.groupID,a=d.authentication,o=d.messageKey),xn.HANDLE_GRP_APPLICATION),p=(d&&2===d.applicationType&&(m=xn.HANDLE_INVITE_JOIN_GRP,i=d.userID),new $n("handleGroupApplication"));return p.setMessage("groupID:".concat(n)),Pe.l("".concat(r," groupID:").concat(n)),this.req({P:m,data:{handleAction:c,handleMessage:l,applicant:t,invitee:i,groupID:n,authentication:a,messageKey:o}}).then((function(){return p.end(),Pe.l("".concat(r," ok")),u&&s._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),yn({group:s.getLocalGroupProfile(n)})})).catch((function(e){return p.setError(e).end(),Pe.e("".concat(r," failed. error"),e),Cn(e)}))}},{key:"handleGroupInvitation",value:function(e){var n=this,a="".concat(this._n,".").concat("handleGroupInvitation"),o=(r=e.message.payload).groupProfile.groupID,i=r.authentication,s=r.messageKey,r=r.operatorID,c=e.handleAction,l=new $n("handleGroupInvitation");return l.setMessage("groupID:".concat(o," inviter:").concat(r," handleAction:").concat(c)),Pe.l("".concat(a," groupID:").concat(o," inviter:").concat(r," handleAction:").concat(c)),this.req({P:xn.HANDLE_GRP_INVITATION,data:t(t({},e),{},{inviter:r,groupID:o,authentication:i,messageKey:s})}).then((function(){return l.end(),Pe.l("".concat(a," ok")),n._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),yn({group:n.getLocalGroupProfile(o)})})).catch((function(e){return l.setError(e).end(),Pe.e("".concat(a," failed. error"),e),Cn(e)}))}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this,n="".concat(this._n,".getGroupOnlineMemberCount"),a=this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e),o=this.hasLocalGroup(e);if(Pe.l("".concat(n," groupID:").concat(e," isAVChatRoom:").concat(a," has:").concat(o)),a)return this._AVChatRoomHandler.getGroupOnlineMemberCount(e);if(!o)return En({memberCount:0});if(a=Date.now(),this._onlineMemberCountMap.has(e)){if(a-(o=this._onlineMemberCountMap.get(e)).lastReqTime<=6e4)return En({memberCount:o.memberCount});o.lastReqTime=a}return this.requestOnlineCount(e).then((function(a){return a=void 0===(a=a.data.memberCount)?0:a,t._onlineMemberCountMap.set(e,{lastReqTime:Date.now(),memberCount:a}),Pe.l("".concat(n," ok. groupID:").concat(e," memberCount:").concat(a)),En({memberCount:a})})).catch((function(e){return Pe.w("".concat(n," failed. error:"),e),Promise.reject(e)}))}},{key:"requestOnlineCount",value:function(e){return this.req({P:xn.GET_ONLINE_MBR_NUM,data:{groupID:e}})}},{key:"hasLocalGroup",value:function(e){return this.groupMap.has(e)}},{key:"deleteLocalGroupAndConversation",value:function(e){var t=this.checkJoinedAVChatRoomByID(e),n=(Pe.l("".concat(this._n,".deleteLocalGroupAndConversation groupID:").concat(e," isJoinedAVChatRoom:").concat(t)),this.get(11)),a="".concat(M.CONV_GROUP).concat(e);t&&(this.stopMessageLongPolling({groupID:e}),n.deleteLocalConv(a)),kt({groupID:e})&&(t=this.getLocalGroupProfile(e))&&!0===t.isSupportTopic&&this.get(10).deleteTopicListInCommunity(e),n.clearUnreadCount(a),n.setCompleted(a),this._deleteLocalGroup(e),this._onlineMemberCountMap.delete(e),this.emitGroupListUpdate(!0,!1)}},{key:"_deleteLocalGroup",value:function(e){this.groupMap.delete(e),this._groupMemberHandler.deleteGroupMemberList(e)}},{key:"sendMessage",value:function(e,t){return ze(e._receiverList)&&0<e._receiverList.length&&!this.canIUse(V.MSG_TO_SPECIFIED_GRP_MBR)?this.noUse("Targeted Group Message"):(e=this.createGroupMessagePack(e,t),this.req(e))}},{key:"createGroupMessagePack",value:function(e,t){var n=null,a=(t&&t.offlinePushInfo&&(n=t.offlinePushInfo),""),o=(ut(e.cloudCustomData)&&0<e.cloudCustomData.length&&(a=e.cloudCustomData),[]),i=void(Ke(t)&&Ke(t.messageControlInfo)&&(i=(r=t.messageControlInfo).excludedFromUnreadCount,s=r.excludedFromLastMessage,r=r.excludedFromContentModeration,!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===r)&&o.push("NoMsgCheck")),s=(ze(e._receiverList)&&0<e._receiverList.length&&(i=e._receiverList,50<e._receiverList.length)&&(i=e._receiverList.slice(0,50),this.warn("ReceiverListLimit")),this.isOnlineMessage(e,t)?1:0),r=JSON.parse(JSON.stringify(e.getElements())),c=(t=this.get(17).getFileDNList(),e.getGroupAtInfoList());return r={fromAccount:this.getMyUserID(),groupID:e.to,msgBody:sa(e.type,r,t),cloudCustomData:a,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==M.MSG_TEXT||He(c)?void 0:c,onlineOnlyFlag:s,clientTime:e.clientTime,offlinePushInfo:Va(n),messageControlInfo:0==s?o:void 0,needReadReceipt:!0!==e.needReadReceipt||this.isMessageFromOrToAVChatroom(e.to)?0:1,receiverList:i,isSupportExtension:!0===e.isSupportExtension?1:0,isRelayMessage:!0===e._relayFlag?1:0,cmConfigID:e._cmConfigID},It(e.to)&&(r.groupID=xt(e.to),r.topicID=e.to),{P:xn.SEND_GRP_MSG,data:r}}},{key:"revokeMessage",value:function(e){var t={groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]};return It(e.to)&&(t.groupID=xt(e.to),t.topicID=e.to),this.req({P:xn.REVOKE_GRP_MSG,data:t})}},{key:"deleteMessage",value:function(e){var t=e.to;return e=e.keyList,Pe.l("".concat(this._n,".deleteMessage groupID:").concat(t," count:").concat(e.length)),e={groupID:t,deleter:this.getMyUserID(),keyList:e},It(t)&&(e.groupID=xt(t),e.topicID=t),this.req({P:xn.DEL_GRP_MSG,data:e})}},{key:"modifyRemoteMessage",value:function(e){var t=e.to,n=e.sequence,a=e.payload,o=e.type,i=void 0===(i=e.version)?0:i,s=e.cloudCustomData,r=(e=e._elements,t),c=void 0;return t=void(It(t)&&(r=xt(t),c=t)),Gt(o)&&(1<e.length&&e.splice(0,1,{type:o,content:a}),t=e),this.req({P:xn.MODIFY_GRP_MSG,data:{groupID:r,topicID:c,sequence:n,version:i,elements:t,cloudCustomData:s}})}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._n,".").concat("getRoamingMessage"),a=e.conversationID,o=e.groupID,i=(e=e.sequence,new $n("getRoamingMessage")),s=0,r=void 0;return It(o)&&(o=xt(r=o)),this._computeLastSequence({groupID:o,topicID:r,sequence:e}).then((function(e){return s=e,Pe.l("".concat(n," groupID:").concat(o," startSequence:").concat(s)),t.req({P:xn.GET_GRP_ROAMING_MSG,data:{groupID:o,count:21,sequence:s,topicID:r}})})).then((function(e){var c=(u=e.data).messageList,l=u.complete,u=void 0===(u=u.invisibleSequenceList)?[]:u,d=(e=void 0===(e=e.data.nextSequence)?0:e,dt(c)?Pe.l("".concat(n," ok. complete:").concat(l," nextSequence:").concat(e," but messageList is undefined!")):Pe.l("".concat(n," ok. complete:").concat(l," nextSequence:").concat(e," count:").concat(c.length)),i.setMessage("groupID:".concat(o," topicID:").concat(r," startSequence:").concat(s," complete:").concat(l," nextSequence:").concat(e)).end(),t.get(11)),m=[],p=[];return He(c)||(m=d.onRoamingMessage(c,a,!0,p),d.updateIsRead(a),d.patchConvLastMessage(a)),(c=2===l||e<1)&&(d.setCompleted(a),e=""),Pe.l("".concat(n," isPullingCompleted:").concat(c," nextReqID:").concat(e," storedMsgCount:").concat(m.length)+" invisibleSeqCount:".concat(u.length)),{nextReqID:e+"",storedMessageList:m,assembledMessageList:p,isPullingCompleted:c}})).catch((function(e){return i.setError(e).setMessage("groupID:".concat(o," topicID:").concat(r," startSequence:").concat(s)).end(),Pe.w("".concat(n," failed. error:"),e),Cn(e)}))}},{key:"_getGroupIDOfMessage",value:function(e){return e.conversationID.replace(M.CONV_GROUP,"")}},{key:"getReadReceiptList",value:function(e){var t,n="".concat(this._n,".").concat("getReadReceiptList"),a=this._getGroupIDOfMessage(e[0]),o=this.getMyUserID(),i=e.filter((function(e){return e.from===o&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));return Pe.l("".concat(n," groupID:").concat(a," sequenceList:").concat(JSON.stringify(i))),0===i.length?En({messageList:e}):((t=new $n("getReadReceiptList")).setMessage("groupID:".concat(a)),this.req({P:xn.GET_READ_RECEIPT,data:{groupID:a,sequenceList:i}}).then((function(a){return t.end(),Pe.l("".concat(n," ok")),ze(a=a.data.readReceiptList)&&a.forEach((function(t){e.forEach((function(e){0===t.code&&t.sequence===e.sequence&&(e.readReceiptInfo.readCount=t.readCount,e.readReceiptInfo.unreadCount=t.unreadCount)}))})),yn({messageList:e})})).catch((function(e){return t.setError(e).end(),Pe.w("".concat(n," failed. error:"),e),Cn(e)})))}},{key:"sendReadReceipt",value:function(e){var t="".concat(this._n,".").concat("sendReadReceipt"),n=this._getGroupIDOfMessage(e[0]),a=new $n("sendReadReceipt"),o=(a.setMessage("groupID:".concat(n)),this.getMyUserID());return 0===(e=e.filter((function(e){return e.from!==o&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}))).length?Cn({code:Vn.READ_RECEIPT_MSG_LIST_EMPTY}):(Pe.l("".concat(t,". sequenceList:").concat(JSON.stringify(e))),this.req({P:xn.SEND_READ_RECEIPT,data:{groupID:n,sequenceList:e}}).then((function(e){return a.end(),Pe.l("".concat(t," ok")),yn()})).catch((function(e){return a.setError(e).end(),Pe.w("".concat(t," failed. error:"),e),Cn(e)})))}},{key:"getReadReceiptDetail",value:function(e){var t=this,n=e.message,a=e.filter,o=e.cursor,i=(e=e.count,this._getGroupIDOfMessage(n)),s=n.ID,r=(n=n.sequence,"".concat(this._n,".").concat("getReadReceiptDetail")),c=this._receiptDetailCompleteMap.get(s)||!1,l=0!==a&&1!==a?0:a,u=(a=ut(o)?o:"",o=!Je(e)||e<=0||100<=e?100:e,e="groupID:".concat(i," sequence:").concat(n," cursor:").concat(a," filter:").concat(l," completeFlag:").concat(c),Pe.l("".concat(r," ").concat(e)),{cursor:"",isCompleted:!1,messageID:s,unreadUserIDList:[],readUserIDList:[]}),d=new $n("getReadReceiptDetail");return d.setMessage(e),this.req({P:xn.GET_READ_RECEIPT_DETAIL,data:{groupID:i,sequence:n,flag:l,cursor:a,count:o}}).then((function(e){d.end();var n=(e=e.data).cursor,a=e.isCompleted,o=e.unreadUserIDList;return e=e.readUserIDList,u.cursor=n,1===a&&(u.isCompleted=!0,t._receiptDetailCompleteMap.set(s,!0)),0===l?u.readUserIDList=e.map((function(e){return e.userID})):1===l&&(u.unreadUserIDList=o.map((function(e){return e.userID}))),Pe.l("".concat(r," ok")),yn(u)})).catch((function(e){return d.setError(e).end(),Pe.w("".concat(r," failed. error:"),e),Cn(e)}))}},{key:"getRoamingMessagesHopping",value:function(e){var t=this,n="".concat(this._n,".").concat("getRoamingMessagesHopping"),a=e.groupID,o=e.count,i=e.sequence,s=e.direction,r=void 0;return dt(i)&&1===s?En({messageList:[],isCompleted:!0,nextMessageSeq:""}):(It(a)&&(a=xt(r=a)),this._computeReqSeqHopping({groupID:a,topicID:r,sequence:i}).then((function(c){dt(i)||1!==s||(c=i+o-1);var l="".concat(r?"topicID:".concat(r):"groupID:".concat(a)," sequence:").concat(i," reqSeq:").concat(c," direction:").concat(s),u=(Pe.l("".concat(n," ").concat(l)),new $n("getRoamingMessagesHopping"));return t.req({P:xn.GET_GRP_ROAMING_MSG,data:{groupID:a,topicID:r,count:o,sequence:c}}).then((function(a){var o=void 0===(o=(a=a.data).messageList)?[]:o,r=a.complete,c=void 0===(c=a.nextSequence)?0:c,d=(a=void 0===(a=a.invisibleSequenceList)?[]:a,"complete:".concat(r," nextSequence:").concat(c," remoteMsgCount:").concat(o.length," invisibleSequenceList:").concat(a)),m=(u.setMessage("".concat(l," ").concat(d)).end(),Pe.l("".concat(n," ok. ").concat(d)),d="".concat(M.CONV_GROUP).concat(e.groupID),t.get(11));return d=m.onRoamingMessage(o,d,!1),o=t._computeResult({groupID:e.groupID,direction:s,sequence:i,remoteMessageList:o,processedMessageList:d,complete:r,nextSequence:c,invisibleSequenceList:a}),m.storeHoppingMessageList(o.messageList),yn(o)})).catch((function(e){return u.setError(e).setMessage("groupID:".concat(a," sequence:").concat(i," count:").concat(o)).end(),Pe.w("".concat(n," failed. error:"),e),Cn(e)}))})))}},{key:"_computeReqSeqHopping",value:function(e){var t=this,n=e.groupID,a=void 0===(a=e.topicID)?void 0:a;return 0<(e=void 0===(e=e.sequence)?void 0:e)?Promise.resolve(e):dt(a)?this.getGroupProfileAdvance({groupIDList:[n],responseFilter:{groupBaseInfoFilter:["NextMsgSeq"]}}).then((function(e){var a=0;return He(e=e.data.successGroupList)||(a=e[0].nextMessageSeq-1),Pe.l("".concat(t._n,"._computeReqSeqHopping groupID:").concat(n," lastSequence:").concat(a," from remote")),a})).catch((function(e){return Cn(e)})):Promise.resolve(0)}},{key:"_computeResult",value:function(e){var t={messageList:[],isCompleted:!1,nextMessageSeq:""},n=e.groupID,a=e.direction,o=e.sequence,i=void 0===(i=e.remoteMessageList)?[]:i,s=void 0===(s=e.processedMessageList)?[]:s,r=e.complete,c=e.nextSequence;if(e=e.invisibleSequenceList,0===a)return t.nextMessageSeq=c,(2===r||c<1)&&(t.isCompleted=!0,t.nextMessageSeq=""),t.messageList=s,t;if(1===a){if(He(i)){if(He(e))return t.isCompleted=!0,t.nextMessageSeq="",t;t.nextMessageSeq=e[0]+1}else r=i[0].sequence,c=e[0]||0,t.nextMessageSeq=c<r?r+1:c+1;return s.forEach((function(e){e.sequence>=o&&t.messageList.push(e)})),(kt({groupID:n})||It(n))&&0===t.messageList.length&&i[0].sequence<o&&(t.isCompleted=!0,t.nextMessageSeq=""),t}}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,a=e.lastMessageSeq,o="".concat(this._n,".").concat("setMessageRead"),i=(e="convID:".concat(n," lastMessageSeq:").concat(a),Pe.l("".concat(o," ").concat(e)),Je(a)||this.warn("DoNotModifyLastSeq"),new $n("setMessageRead")),s=(i.setMessage(e),n.replace(M.CONV_GROUP,"")),r=void 0;return It(s)&&(s=xt(r=s)),this.req({P:xn.SET_GRP_MSG_READ,data:{groupID:s,topicID:r,messageReadSeq:a}}).then((function(){i.end(),Pe.l("".concat(o," ok"));var e,c=t.get(11),l=(c.updateIsReadAfterReadReport({conversationID:n,lastMessageSeq:a}),!0);return!dt(r)&&(l=!1,e=t.get(10).getLocalTopic(s,r))&&e.updateSelfInfo({readedSequence:a}),c.updateUnreadCount(n,l),yn()})).catch((function(e){return i.setError(e).end(),Pe.l("".concat(o," failed. error:"),e),Cn(e)}))}},{key:"_computeLastSequence",value:function(e){var t=e.groupID,n=void 0===(n=e.topicID)?void 0:n;return 0<(e=e.sequence)?Promise.resolve(e):dt(n)?this.getGroupLastSequence(t):Promise.resolve(0)}},{key:"getGroupLastSequence",value:function(e){var t="".concat(this._n,".").concat("getGroupLastSequence"),n=new $n("getGroupLastSequence"),a=0,o="",i="groupID:".concat(e);if(this.hasLocalGroup(e)){var s=this.getLocalGroupProfile(e),r=s.lastMessage;if(0<r.lastSequence&&!1===r.onlineOnlyFlag)return a=r.lastSequence,o="".concat(i,", ").concat(a," from group.lastMessage.lastSequence"),Pe.l("".concat(t," ").concat(o)),n.setMessage(o).end(),Promise.resolve(a);if(1<s.nextMessageSeq)return a=s.nextMessageSeq-1,o="".concat(i,", ").concat(a," from group.nextMessageSeq"),Pe.l("".concat(t," ").concat(o)),n.setMessage(o).end(),Promise.resolve(a)}return(r=this.get(11).getLocalConversation("GROUP".concat(e)))&&r.lastMessage.lastSequence&&!1===r.lastMessage.onlineOnlyFlag?(a=r.lastMessage.lastSequence,o="".concat(i,", ").concat(a," from conversation.lastMessage.lastSequence"),Pe.l("".concat(t," ").concat(o)),n.setMessage(o).end(),Promise.resolve(a)):this.getGroupProfileAdvance({groupIDList:[e],responseFilter:{groupBaseInfoFilter:["NextMsgSeq"]}}).then((function(e){return He(e=e.data.successGroupList)?Pe.w("".concat(t," ").concat(i,", empty successGroupList")):(a=e[0].nextMessageSeq-1,o="".concat(i,", ").concat(a," from remote"),Pe.l("".concat(t," ").concat(o))),n.setMessage(o).end(),a})).catch((function(e){return n.setError(e).setMessage(i).end(),Pe.w("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"isMessageFromOrToAVChatroom",value:function(e){return this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"hasJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler.hasJoinedAVChatRoom()}},{key:"getJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler.getJoinedAVChatRoom()}},{key:"getGroupRemoteLastSeq",value:function(e){return(e=this.getLocalGroupProfile(e))?e.nextMessageSeq-1:1}},{key:"isOnlineMessage",value:function(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly)}},{key:"_canIUseOnlineOnlyFlag",value:function(e){var t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==M.CONV_GROUP}},{key:"_onAVChatRoomHistoryMessage",value:function(e,n){var a;He(e)||(Pe.l("".concat(this._n,"._onAVChatRoomHistoryMessage groupID:").concat(n," count:").concat(e.length)),a=[],e.forEach((function(e){a.push(t(t({},e),{},{isHistoryMessage:1}))})),this.onAVChatRoomMessage(a,n))}},{key:"onAVChatRoomMessage",value:function(e){this._AVChatRoomHandler.onMessage(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:"")}},{key:"onAVChatRoomMemberBanned",value:function(e){this._AVChatRoomHandler.onAVChatRoomMemberBanned(e)}},{key:"setUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.set(e,1)}},{key:"deleteUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e)}},{key:"isUnjoinedAVChatRoom",value:function(e){return this._unjoinedAVChatRoomList.has(e)}},{key:"isGroupAttributesUpdatedNotice",value:function(e){return this._groupAttributesHandler.isGroupAttributesUpdatedNotice(e)}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesHandler.updateLocalMainSequenceOnReconnected()}},{key:"initGroupAttributes",value:function(e){return this._groupAttributesHandler.initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._groupAttributesHandler.setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._groupAttributesHandler.deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._groupAttributesHandler.getGroupAttributes(e)}},{key:"isMessageFromTopic",value:function(e,t){return 2===e&&!He(t)}},{key:"isMessageFromCommunityOfTopic",value:function(e,t){return 2===e&&He(t)}},{key:"getMessageExtensions",value:function(e,t){return Pe.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t)),this.req({P:xn.GET_GRP_MSG_EXT,data:{groupID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:"modifyMsgExts",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;return Pe.l("".concat(this._n,".modifyMsgExts operateType:").concat(n)),this.req({P:xn.MODIFY_GRP_MSG_EXT,data:{groupID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:"_genNotifyReqList",value:function(e){for(var t,n,a,o,i=[],s=0,r=e.length;s<r;s++)t=e[s],o=this.getLocalGroupProfile(t).type,n=this._getGroupLastRevokedTime(t),a=1e3*Ne(),o={notifyType:1,limit:20,type:kt({type:o,groupID:t})?M.GRP_COMMUNITY:void 0,groupID:t,beginTime:n,endTime:a},i.push(o);return i}},{key:"getNotice",value:function(e){var t=this,n="".concat(this._n,".getNotice");0!==(e=e.filter((function(e){var n;return!!t.hasLocalGroup(e)&&(n=(e=t.getLocalGroupProfile(e)).type,e=e.isSupportTopic,!Ct(n))&&!e}))).length&&(Pe.l("".concat(n," list:").concat(e)),this.req({P:xn.GET_GRP_NOTIFY,data:{notifyReqList:this._genNotifyReqList(e)}}).then((function(e){e=e.data.notifyRspList;var a,o,i=[];ze(e)&&(a={dataList:[]},o="".concat(n," ok."),e.forEach((function(e){var n=e.nextRevokedTime,s=e.groupID,r=e.notifyList;o+=" groupID:".concat(s," nextRevokedTime:").concat(n," count:").concat(r.length,"\n"),a.dataList.push({elements:{revokedInfos:t._genRevokedInfos(e)}}),0!==n?(t._setGroupLastRevokedTime(s,n),i.push(s)):t._setGroupLastRevokedTime(s,1e3*Ne())})),Pe.l(o),t.onMsgRevoked(a,!1)),0<i.length&&t.getNotice(i)})).catch((function(e){Pe.e("".concat(n," failed. error:"),e)})))}},{key:"_genRevokedInfos",value:function(e){var n=e.notifyList,a=e.groupID,o=[];return ze(n)&&n.forEach((function(e){o.push({groupID:a,sequence:e.sequence,random:e.random,revokerInfo:t({},e.revokerInfo)})})),o}},{key:"_getGroupLastRevokedTime",value:function(e){return this.hasLocalGroup(e)?this.getLocalGroupProfile(e)._lastRevokedTime:0}},{key:"_setGroupLastRevokedTime",value:function(e,t){this.hasLocalGroup(e)&&(this.getLocalGroupProfile(e)._lastRevokedTime=t)}},{key:"isGroupCountersNotice",value:function(e){return this._groupCountersHandler.isGroupCountersNotice(e)}},{key:"setGroupCounters",value:function(e){return this._groupCountersHandler.setGroupCounters(e)}},{key:"increaseGroupCounter",value:function(e){return this._groupCountersHandler.increaseGroupCounter(e)}},{key:"decreaseGroupCounter",value:function(e){return this._groupCountersHandler.decreaseGroupCounter(e)}},{key:"getGroupCounters",value:function(e){return this._groupCountersHandler.getGroupCounters(e)}},{key:"getGroupMemberHandler",value:function(){return this._groupMemberHandler}},{key:"getGroupMemberList",value:function(e){return this._groupMemberHandler.getGroupMemberList(e)}},{key:"getGroupMemberProfile",value:function(e){return this._groupMemberHandler.getGroupMemberProfile(e)}},{key:"addGroupMember",value:function(e){return this._groupMemberHandler.addGroupMember(e)}},{key:"deleteGroupMember",value:function(e){return this._groupMemberHandler.deleteGroupMember(e)}},{key:"setGroupMemberMuteTime",value:function(e){return this._groupMemberHandler.setGroupMemberMuteTime(e)}},{key:"setGroupMemberRole",value:function(e){return this._groupMemberHandler.setGroupMemberRole(e)}},{key:"setGroupMemberNameCard",value:function(e){return this._groupMemberHandler.setGroupMemberNameCard(e)}},{key:"setGroupMemberCustomField",value:function(e){return this._groupMemberHandler.setGroupMemberCustomField(e)}},{key:"markGroupMemberList",value:function(e){return this._groupMemberHandler.markGroupMemberList(e)}},{key:"modifyGroupMemberInfo",value:function(e){return this._groupMemberHandler.modifyGroupMemberInfo(e)}},{key:"restartPolling",value:function(){this._AVChatRoomHandler.restartPolling()}},{key:"getPollingTimerID",value:function(e){var t;return e&&(t=this.getLocalGroupProfile(e))&&Ct(t.type)?this._AVChatRoomHandler.getPollingTimerID(e):-1}},{key:"_canIUseJoinOption",value:function(e){return e===M.GRP_PUBLIC||kt({type:e})}},{key:"_silentlyGetGroupProfile",value:function(e,t){var n=setTimeout(this.getGroupProfile.bind(this,{groupID:t}),3e3);this._timeoutIDs.push(n),Pe.l("".concat(this._n,"._silentlyGetGroupProfile errorCode:").concat(e," groupID:").concat(t," timeoutIDs:").concat(this._timeoutIDs))}},{key:"_clearTimeoutIDs",value:function(){this._timeoutIDs.forEach((function(e){clearTimeout(e)})),this._timeoutIDs=[]}},{key:"startMessageLongPolling",value:function(e){var t=e.groupID,n=e.longPollingKey,a=(e=void 0===(e=e.longPollingSequence)?1:e,this.get(12).isUnlimitedAVChatRoom()),o=(this._AVChatRoomHandler.hasPollingInstance(t)&&this.stopMessageLongPolling({groupID:t}),this._AVChatRoomHandler.getJoinedLiveList());return!a&&0<o.length&&this.stopMessageLongPolling({groupID:o[0]}),a=new ao({groupID:t,type:M.GRP_LIVE}),Pe.l("".concat(this._n,".startMessageLongPolling groupID:").concat(t," longPollingKey:").concat(n," longPollingSequence:").concat(e)),this._AVChatRoomHandler.startRunLoop({group:a,longPollingKey:n,startSeq:e})}},{key:"stopMessageLongPolling",value:function(e){e=e.groupID;var t=this.get(11);return this._AVChatRoomHandler.reset(e),this._deleteLocalGroup(e),t.deleteLocalConv("".concat(M.CONV_GROUP).concat(e)),Pe.l("".concat(this._n,".stopMessageLongPolling ok, groupID:").concat(e)),En({groupID:e})}},{key:"reset",value:function(){this.groupMap.clear(),this._unjoinedAVChatRoomList.clear(),this._receiptDetailCompleteMap.clear(),this._onlineMemberCountMap.clear(),this._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._groupAttributesHandler.reset(),this._groupCountersHandler.reset(),this._AVChatRoomHandler.reset(),this._groupMemberHandler.reset(),this._clearTimeoutIDs()}}]),Yo),Io=["topicID","topicName","avatar","introduction","notification","unreadCount","muteAllMembers","customData","groupAtInfoList","nextMessageSeq","selfInfo"],So=(i(Fo,[{key:"_initTopic",value:function(e){for(var t in e)Io.indexOf(t)<0||("selfInfo"===t?this.updateSelfInfo(e[t]):this[t]="muteAllMembers"===t?1===e[t]:e[t])}},{key:"updateUnreadCount",value:function(){this.unreadCount=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0}},{key:"updateNextMessageSeq",value:function(e){this.nextMessageSeq=e}},{key:"updateLastMessage",value:function(e){this.lastMessage=qa(e)}},{key:"updateGroupAtInfoList",value:function(e){this.groupAtInfoList=JSON.parse(JSON.stringify(e))}},{key:"updateTopic",value:function(e){dt(e.selfInfo)||this.updateSelfInfo(e.selfInfo),dt(e.muteAllMembers)||(this.muteAllMembers=1===e.muteAllMembers),et(this,e,["groupID","lastMessageTime","selfInfo","muteAllMembers","lastMsg"])}},{key:"updateSelfInfo",value:function(e){return 0===et(this.selfInfo,e,[],[""])}},{key:"reduceUnreadCount",value:function(){return 1<=this.unreadCount&&(--this.unreadCount,!0)}},{key:"isLastMessageRevoked",value:function(e){return e.sequence===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"setLastMessageRevoker",value:function(e){this.lastMessage.revoker=e}}]),Fo),To=(r(Go,Ln),Ka=f(Go),i(Go,[{key:"_onCloudConfig",value:function(){var e=this.getCloudConfig("topic_cache_time"),t=this.getCloudConfig("topic_last_active_time");dt(e)||(this.TOPIC_CACHE_TIME=Number(e)),dt(t)||(this.TOPIC_LAST_ACTIVE_TIME=Number(t))}},{key:"onTopicCreated",value:function(e){var t=e.groupID;this.resetGetTopicTime(t),this.emitOEvt(T.TOPIC_CREATED,e)}},{key:"onTopicDeleted",value:function(e){var t=this,n=e.groupID,a=e.topicIDList;(void 0===a?[]:a).forEach((function(e){t._deleteLocalTopic(n,e)})),this.emitOEvt(T.TOPIC_DELETED,e)}},{key:"onTopicProfileUpdated",value:function(e){var t=e.groupID,n=e.topicID;(n=this.getLocalTopic(t,n))&&(n.updateTopic(e),this.emitOEvt(T.TOPIC_UPDATED,{groupID:t,topic:n}))}},{key:"onTopicLatestMsg",value:function(e){var t,n,a=(e=e||{}).topicLatestMessage;e=e.excludedUnreadSequenceList,He(a)||(t=a.groupProfile.topicID,a.conversationType=M.CONV_GROUP,a.to=t,(n=new Ia(a)).setElement(a.elements),this.updateUnreadCountAndLastMsg(t,n,e))}},{key:"onMessageRemindTypeUpdated",value:function(e){var t,n=e.groupID,a=e.topicID,o=(e=e.messageRemindType,this.getLocalTopic(n,a));o&&((t=o.updateSelfInfo({messageRemindType:e}))&&this.emitOEvt(T.TOPIC_UPDATED,{groupID:n,topic:o}),Pe.l("".concat(this._n,".onMessageRemindTypeUpdated topicID:").concat(a," messageRemindType:").concat(e," isUpdated:").concat(t)))}},{key:"onAtInfoUpdated",value:function(e){var t=e.topicID,n=(e=e.groupAtInfoList,xt(t));(t=this.getLocalTopic(n,t))&&!dt(e)&&(t.updateGroupAtInfoList(e),this.emitOEvt(T.TOPIC_UPDATED,{groupID:n,topic:t}))}},{key:"onUnreadCountUpdatedFromConv",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=xt(e);(e=this.getLocalTopic(n,e))&&e.unreadCount!==t&&(e.updateUnreadCount(t),0===t&&e.updateSelfInfo({readedSequence:e.lastMessage.lastSequence}),this.emitOEvt(T.TOPIC_UPDATED,{groupID:n,topic:e}))}},{key:"onMessageSent",value:function(e){var t,n,a=e.groupID,o=e.topicID;e=e.lastMessage,(o=this.getLocalTopic(a,o))&&(n=(t=void 0===(t=e.sequence)?0:t)+1)>o.nextMessageSeq&&(o.updateNextMessageSeq(n),o.updateLastMessage(e),o.updateSelfInfo({readedSequence:t}),o.updateUnreadCount(0),this.emitOEvt(T.TOPIC_UPDATED,{groupID:a,topic:o}))}},{key:"onMessageModified",value:function(e){var t,n=e.to,a=e.time,o=e.sequence,i=e.elements,s=e.cloudCustomData,r=e.messageVersion,c=xt(n),l=this.getLocalTopic(c,n);l&&(t=l.lastMessage,Pe.d("".concat(this._n,".onMessageModified topicID:").concat(n," lastMessage:"),JSON.stringify(t),"options:",JSON.stringify(e)),t)&&(null===t.payload||t.lastTime===a&&t.lastSequence===o&&t.version!==r)&&(t.type=i[0].type,t.payload=i[0].content,t.messageForShow=Ut(t.type,t.payload,this.isIntl()),t.cloudCustomData=s,t.version=r,t.lastSequence=o,t.lastTime=a,this.emitOEvt(T.TOPIC_UPDATED,{groupID:c,topic:l}))}},{key:"onMessageRevoked",value:function(e){var t,n,a,o=this;0!==e.length&&(n=t=null,a=!1,e.forEach((function(e){var i=e.to;n=xt(i),(t=o.getLocalTopic(n,i))&&(t.reduceUnreadCount()&&(a=!0),t.isLastMessageRevoked(e)&&(t.setLastMessageRevoked(!0),t.setLastMessageRevoker(e.revoker),a=!0),(i=t.selfInfo.excludedUnreadSequenceList||[]).push(e.sequence),t.updateSelfInfo({excludedUnreadSequenceList:i}))})),a)&&this.emitOEvt(T.TOPIC_UPDATED,{groupID:n,topic:t})}},{key:"isLastMessageRevoked",value:function(e){var t=e.topicID,n=(e=e.sequence,xt(t));return n=this.getLocalTopic(n,t),t=!1,n?n.isLastMessageRevoked({sequence:e}):t}},{key:"updateUnreadCountAndLastMsg",value:function(e,t,n){var a,o=xt(e),i=this.getLocalTopic(o,e);i&&(a=i.selfInfo.excludedUnreadSequenceList||[],dt(n)||(a=n),t._isExcludedFromUnreadCount&&a.push(t.sequence),i.updateSelfInfo({excludedUnreadSequenceList:a}),Pe.l("".concat(this._n,".updateUnreadCountAndLastMsg seq:").concat(t.sequence," lastSeq:").concat(i.lastMessage.lastSequence)),t.sequence>i.lastMessage.lastSequence)&&(i.updateLastMessage(t),n=t.sequence+1,i.updateNextMessageSeq(n),a=this._computeUnreadCount(i),i.updateUnreadCount(a),(t=this.get(11).getLocalConversation("".concat(M.CONV_GROUP).concat(e)))&&t.updateUnreadCount({nextUnreadCount:a,isFromGetConversations:!0}),this.emitOEvt(T.TOPIC_UPDATED,{groupID:o,topic:i}))}},{key:"getJoinedCommunityList",value:function(){return this.get(7).syncCommunityWithTopic()}},{key:"createTopicInCommunity",value:function(e){var n,a=this,o="".concat(this._n,".").concat("createTopicInCommunity"),i=e.topicID;return dt(i)||It(i)?e.topicName&&!1===this._filterProfanity("topicName",e)||e.introduction&&!1===this._filterProfanity("introduction",e)||e.notification&&!1===this._filterProfanity("notification",e)?Cn({code:Vn.PROFANITY_FOUND}):(n=new $n("createTopicInCommunity"),this.req({P:xn.CREATE_TOPIC,data:t({},e)}).then((function(i){return i=i.data.topicID,n.setMessage("topicID:".concat(i)).end(),Pe.l("".concat(o," ok. topicID:").concat(i)),a._updateTopicMap([t(t({},e),{},{topicID:i})]),yn({topicID:i})})).catch((function(e){return n.setError(e).end(),Pe.e("".concat(o," failed. error:"),e),Cn(e)}))):Cn({code:Vn.ILLEGAL_TOPIC_ID})}},{key:"deleteTopicFromCommunity",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteTopicFromCommunity"),a=e.groupID,o=(e=void 0===(e=e.topicIDList)?[]:e,new $n("deleteTopicFromCommunity"));return o.setMessage("groupID:".concat(a," topicIDList:").concat(e)),this.req({P:xn.DEL_TOPIC,data:{groupID:a,topicIDList:e}}).then((function(e){e=e.data.resultList;var i=[],s=[];return(void 0===e?[]:e).forEach((function(e){var t=e.topicID,n=e.errorCode;e=e.errorInfo,0===n?i.push({topicID:t}):s.push({topicID:t,code:n,message:e})})),e="success count:".concat(i.length,", fail count:").concat(s.length),o.setMoreMessage(e).end(),Pe.l("".concat(n," ok. ").concat(e)),i.forEach((function(e){t._deleteLocalTopic(a,e.topicID)})),yn({successTopicList:i,failureTopicList:s})})).catch((function(e){return o.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))}},{key:"updateTopicProfile",value:function(e){var n,a=this,o="".concat(this._n,".").concat("updateTopicProfile");return Pe.l("".concat(o," options:"),e),e.topicName&&!1===this._filterProfanity("topicName",e)||e.introduction&&!1===this._filterProfanity("introduction",e)||e.notification&&!1===this._filterProfanity("notification",e)?Cn({code:Vn.PROFANITY_FOUND}):((n=new $n("updateTopicProfile")).setMessage("groupID:".concat(e.groupID," topicID:").concat(e.topicID)),dt(e.muteAllMembers)||(e.muteAllMembers=!0===e.muteAllMembers?"On":"Off"),this.req({P:xn.UPDATE_TOPIC_PROFILE,data:t({},e)}).then((function(){return n.end(),Pe.l("".concat(o," ok")),a._updateTopicMap([e]),yn({topic:a.getLocalTopic(e.groupID,e.topicID)})})).catch((function(e){return n.setError(e).end(),Pe.e("".concat(o," failed. error:"),e),Cn(e)})))}},{key:"getTopicList",value:function(e){var n=this,a="".concat(this._n,".").concat("getTopicList"),o=e.groupID,i=0===(e=void 0===(e=e.topicIDList)?[]:e).length,s=new $n("getTopicList");if(s.setMessage("groupID:".concat(o)),this._getTopicTimeMap.has(o)){var r=(c=this._getTopicTimeMap.get(o)).isGetAll,c=c.time;if((r||!r&&!i)&&Date.now()-c<1e3*this.TOPIC_CACHE_TIME&&(r=this._getLocalTopicList(o,e),i||r.length===e.length))return s.setMoreMessage("from cache, topic count:".concat(r.length)).end(),Pe.l("".concat(a," groupID:").concat(o," from cache, topic count:").concat(r.length)),En({successTopicList:r,failureTopicList:[]})}return this.req({P:xn.GET_TOPIC_LIST,data:{groupID:o,topicIDList:e}}).then((function(e){e=e.data.topicInfoList;var r=[],c=[],l=[];return(void 0===e?[]:e).forEach((function(e){var n=e.topic,a=e.selfInfo,o=e.errorCode,i=(e=e.errorInfo,n.topicID);0===o?(r.push(t(t({},n),{},{selfInfo:a})),c.push(i)):l.push({topicID:i,code:o,message:e})})),n._updateTopicMap(r),n._handleTopicAtInfo(r),e="success count:".concat(c.length,", fail count:").concat(l.length),s.setMoreMessage(e).end(),Pe.l("".concat(a," groupID:").concat(o," from remote, ").concat(e)),e=[],He(c)||(n._getTopicTimeMap.set(o,{time:Date.now(),isGetAll:i}),e=n._getLocalTopicList(o,c)),yn({successTopicList:e,failureTopicList:l})})).catch((function(e){return s.setError(e).end(),Pe.e("".concat(a," failed. error:"),e),Cn(e)}))}},{key:"hasLocalTopic",value:function(e,t){return!!this._topicMap.has(e)&&this._topicMap.get(e).has(t)}},{key:"getLocalTopic",value:function(e,t){var n=null;return this._topicMap.has(e)?this._topicMap.get(e).get(t):n}},{key:"_getLocalTopicList",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=[];return(e=this._topicMap.get(e))&&(n=_(e.values())),0===t.length?n:n.filter((function(e){return t.includes(e.topicID)}))}},{key:"_deleteLocalTopic",value:function(e,t){this._topicMap.has(e)&&this._topicMap.get(e).has(t)&&(this._topicMap.get(e).delete(t),Pe.l("".concat(this._n,"._deleteLocalTopic groupID:").concat(e," topicID:").concat(t)))}},{key:"_updateTopicMap",value:function(e){var t=this,n=[];e.forEach((function(e){var a=e.groupID,o=e.topicID,i=null;t._topicMap.has(a)||t._topicMap.set(a,new Map),t._topicMap.get(a).has(o)?(i=t._topicMap.get(a).get(o)).updateTopic(e):(t._getTopicLastMessage(e),i=new So(e,t.isIntl()),t._topicMap.get(a).set(o,i)),e=t._computeUnreadCount(i),i.updateUnreadCount(e),n.push({conversationID:"".concat(M.CONV_GROUP).concat(o),type:M.CONV_TOPIC,unreadCount:e})})),0<n.length&&this.get(11).updateTopicConversation(n)}},{key:"resetGetTopicTime",value:function(e){var t=this;dt(e)?_(this._getTopicTimeMap.keys()).forEach((function(e){t._getTopicTimeMap.set(e,0)})):this._getTopicTimeMap.set(e,0)}},{key:"getTopicListOnReconnected",value:function(){var e=this,t=_(this._topicMap.keys()),n=[],a=this.get(11);t.forEach((function(t){var o=[],i=e._getLocalTopicList(t);a.deleteTopicRoamingInfo(t),i.forEach((function(t){var n=void 0===(n=t.lastMessage.lastTime)?0:n;Date.now()-1e3*n<1e3*e.TOPIC_LAST_ACTIVE_TIME&&o.push(t.topicID)})),0<o.length&&n.push({groupID:t,topicIDList:o})})),Pe.l("".concat(this._n,".getTopicListOnReconnected. active community count:").concat(n.length)),this._relayGetTopicList(n)}},{key:"_relayGetTopicList",value:function(e){var t,n,a,o=this;0!==e.length&&(n=5<(t=e.shift()).topicIDList.length?"topicIDList.length:".concat(t.topicIDList.length):"topicIDList:".concat(t.topicIDList),(a=new $n("relayGetTopicList")).setMessage(n),Pe.l("".concat(this._n,"._relayGetTopicList. ").concat(n)),this.getTopicList(t).then((function(){a.end(),o._relayGetTopicList(e)})).catch((function(t){a.setError(t).end(),o._relayGetTopicList(e)})))}},{key:"_handleTopicAtInfo",value:function(e){var n=this;0!==e.length&&e.forEach((function(e){var a=e.groupID,o=e.topicID,i=(e=e.groupAtInfoList,[]);dt(e)||(e.forEach((function(e){i.push(t(t({},e),{},{groupID:a,topicID:o}))})),n.get(11).onNewGroupAtTips({dataList:i}))}))}},{key:"_getTopicLastMessage",value:function(e){var t;dt(e.lastMsg)||(t={time:e.lastMsg.time,sequence:e.lastMsg.sequence,from:e.lastMsg.from,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:"",nick:e.lastMsg.nick,avatar:e.lastMsg.avatar,version:e.lastMsg.messageVersion,cloudCustomData:e.lastMsg.cloudCustomData,isRevoked:2===e.lastMsg.isPlaceMessage,revoker:He(e.lastMsg.revokerInfo)?null:e.lastMsg.revokerInfo.revoker},e.lastMessage=t)}},{key:"deleteTopicListInCommunity",value:function(e){var t=this,n=this._getLocalTopicList(e),a=this.get(11);n.forEach((function(n){n=n.topicID,t._deleteLocalTopic(e,n),t._getTopicTimeMap.delete(e),a.deleteLocalConv("".concat(M.CONV_GROUP).concat(n))}))}},{key:"_computeUnreadCount",value:function(e){var t,n=(o=e.selfInfo).excludedUnreadSequenceList,a=o.readedSequence,o=e.nextMessageSeq-e.selfInfo.readedSequence-1;return ze(n)&&(t=0,n.forEach((function(n){a<n&&n<=e.nextMessageSeq-1&&(t+=1)})),1<=t)&&(o-=t),o<0?0:o}},{key:"_filterProfanity",value:function(e,t){var n,a=this.get(29);return!a||(n=(a=a.filterText(t[e],B)).isAllowedToSend,a=a.modifiedText,!0===n&&(t[e]=a,!0))}},{key:"getMessageExtensions",value:function(e,t){Pe.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t));var n=xt(e.to);return this.req({P:xn.GET_GRP_MSG_EXT,data:{groupID:n,topicID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:"modifyMsgExts",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,a=(Pe.l("".concat(this._n,".modifyMsgExts operateType:").concat(n)),xt(e.to));return this.req({P:xn.MODIFY_GRP_MSG_EXT,data:{groupID:a,topicID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._topicMap.clear(),this._getTopicTimeMap.clear(),this.TOPIC_CACHE_TIME=300,this.TOPIC_LAST_ACTIVE_TIME=3600}}]),Go),Mo=(i(Uo,[{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"getUserProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getUserProfile"),a=e.userIDList;e.fromAccount=this._userM.getMyAccount(),100<a.length&&(Pe.w("".concat(n," ").concat(Ht(100))),a.length=100);for(var o,i=[],s=[],r=0,c=a.length;r<c;r++)o=a[r],this._userM.isMyFriend(o)&&this._contains(o)?s.push(this._getProfileFromMap(o)):i.push(o);if(0===i.length)return En(s);e.toAccount=i;var l=e.bFromGetMyProfile||!1,u=[],d=(e.toAccount.forEach((function(e){u.push({toAccount:e,standardSequence:0,customSequence:0})})),e.userItem=u,new $n("getUserProfile"));return d.setMessage(5<a.length?"userIDList.length:".concat(a.length):"userIDList:".concat(a)),this._userM.req({P:xn.GET_USER_PROFILE,data:e}).then((function(e){return d.end(),Pe.i("".concat(n," ok")),e=t._handleResponse(e).concat(s),yn(l?e[0]:e)})).catch((function(e){return d.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))}},{key:"getMyProfile",value:function(){var e,t=this._userM.getMyAccount(),n="".concat(this._n,".getMyProfile");return Pe.l("".concat(n," myAccount:").concat(t)),this._fill(),this._contains(t)?(e=this._getProfileFromMap(t),Pe.d("".concat(n," from cache, myProfile:").concat(JSON.stringify(e))),En(e)):this.getUserProfile({fromAccount:t,userIDList:[t],bFromGetMyProfile:!0})}},{key:"_handleResponse",value:function(e){var t=e.data.userProfileItem;if(!ze(t))return[];for(var n=[],a=(e=Date.now(),0),o=t.length;a<o;a++){var i=(s=t[a]).to,s=s.profileItem;"@TLS#NOT_FOUND"!==i&&""!==i&&(i=this._update(i,this._getLatestProfileFromResponse(i,s)).latestProfile,n.push(i))}return Pe.l("".concat(this._n,"._handleResponse cost:").concat(jt(e))),n}},{key:"_getLatestProfileFromResponse",value:function(e,t){var n={userID:e,profileCustomField:[]};if(!He(t))for(var a=0,o=t.length;a<o;a++)if(-1<t[a].tag.indexOf("Tag_Profile_Custom"))n.profileCustomField.push({key:t[a].tag,value:t[a].value});else switch(t[a].tag){case Re.NICK:n.nick=t[a].value;break;case Re.GENDER:n.gender=t[a].value;break;case Re.BIRTHDAY:n.birthday=t[a].value;break;case Re.LOCATION:n.location=t[a].value;break;case Re.SELFSIGNATURE:n.selfSignature=t[a].value;break;case Re.ALLOWTYPE:n.allowType=t[a].value;break;case Re.LANGUAGE:n.language=t[a].value;break;case Re.AVATAR:n.avatar=t[a].value;break;case Re.MESSAGESETTINGS:n.messageSettings=t[a].value;break;case Re.ADMINFORBIDTYPE:n.adminForbidType=t[a].value;break;case Re.LEVEL:n.level=t[a].value;break;case Re.ROLE:n.role=t[a].value;break;default:Pe.w("".concat(this._n,"._getLatestProfileFromResponse unknown tag:"),t[a].tag,t[a].value)}return n}},{key:"updateMyProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("updateMyProfile");if(e.nick&&!1===this._userM.filterProfanity("nick",e))return Cn({code:Vn.PROFANITY_FOUND});if(e.selfSignature&&!1===this._userM.filterProfanity("selfSignature",e))return Cn({code:Vn.PROFANITY_FOUND});var a=new $n("updateMyProfile"),o=(a.setMessage(JSON.stringify(e)),(new eo).validate(e));if(!o.valid)return a.setCode(Vn.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage("info:".concat(o.tips)).end(),Pe.e("".concat(n," info:").concat(o.tips)),Cn({code:Vn.UPDATE_PROFILE_INVALID_PARAM});var i,s,r=[];for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&("profileCustomField"===i?e.profileCustomField.forEach((function(e){r.push({tag:e.key,value:e.value})})):r.push({tag:Re[i.toUpperCase()],value:e[i]}));return 0===r.length?(o=new On({code:Vn.UPDATE_PROFILE_NO_KEY}),a.setError(o).end(),Pe.e("".concat(n," failed. error:"),o),Cn(o)):(s=this._userM.getMyAccount(),this._userM.req({P:xn.UPDATE_MY_PROFILE,data:{fromAccount:s,profileItem:r}}).then((function(o){a.end(),Pe.i("".concat(n," ok"));var i=(r=t._update(s,e)).isProfileUpdated,r=r.latestProfile;return!0===i&&t._userM.emitOEvt(T.PROFILE_UPDATED,[r]),En(r)})).catch((function(e){return a.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)})))}},{key:"onProfileModified",value:function(e){var t=e.dataList;if(!He(t)){var n=t.length;Pe.d("".concat(this._n,".onProfileModified count:").concat(n," dataList:"),e.dataList);for(var a=[],o=0;o<n;o++){var i=t[o].userID,s=(i=this._update(i,this._getLatestProfileFromResponse(i,t[o].profileList))).isProfileUpdated;i=i.latestProfile,!0===s&&a.push(i)}0<a.length&&(this._userM.emitIEvt(Ua.PROFILE_UPDATED,a),this._userM.emitOEvt(T.PROFILE_UPDATED,a))}}},{key:"_fill",value:function(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),n=0,a=e.length;n<a;n++)t-e[n].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[n].userID,e[n]);Pe.l("".concat(this._n,"._fill from cache, size:").concat(this.accountProfileMap.size))}}},{key:"_update",value:function(e,t){var n,a=!1,o=Date.now();return this._contains(e)?(n=this._getProfileFromMap(e),t.profileCustomField&&!0===_t(n.profileCustomField,t.profileCustomField)&&(n.lastUpdatedTime=o,a=!0),0<et(n,t,["profileCustomField"])&&(n.lastUpdatedTime=o,a=!0)):(n=new eo(t),!this._userM.isMyFriend(e)&&e!==this._userM.getMyAccount()||(n.lastUpdatedTime=o,a=!0,this.accountProfileMap.set(e,n))),this._flush(e===this._userM.getMyAccount()),!0===a&&Pe.l("".concat(this._n,"._update account:").concat(e," isUpdated:").concat(a)),{isProfileUpdated:a,latestProfile:n}}},{key:"_flush",value:function(e){var t=_(this.accountProfileMap.values()),n=this._userM.getStorageModule();Pe.d("".concat(this._n,"._flush length:").concat(t.length," flushAtOnce:").concat(e)),n.setItem(this.TAG,t,e)}},{key:"_contains",value:function(e){return this.accountProfileMap.has(e)}},{key:"_getProfileFromMap",value:function(e){return this.accountProfileMap.get(e)}},{key:"_getCachedProfiles",value:function(){var e=this._userM.getStorageModule().getItem(this.TAG);return He(e)?[]:e}},{key:"onConvProfileUpdated",value:function(e){for(var t,n,a=[],o=0,i=e.length;o<i;o++)n=(t=e[o]).userID,this._userM.isMyFriend(n)&&(this._contains(n)?0<et(this._getProfileFromMap(n),t)&&a.push(n):a.push(t.userID));0!==a.length&&(Pe.l("".concat(this._n,".onConvProfileUpdated toAccountList:").concat(a)),this.getUserProfile({userIDList:a}))}},{key:"getNickAndAvatarByUserID",value:function(e){return this._contains(e)?{nick:(e=this._getProfileFromMap(e)).nick,avatar:e.avatar}:{nick:"",avatar:""}}},{key:"getUserNickAndAvatar",value:function(e){var t,n=this,a=_(new Set(e)),o=(Pe.l("".concat(this._n,".getUserNickAndAvatar userIDList.length:").concat(e.length," uniqueUserIDList.length:").concat(a.length)),[]);return 0===e.length?Promise.resolve(o):(e=this._createUserIDListGroup(a),t=[],e.forEach((function(e){t.push(n.getUserProfile({userIDList:e}))})),Promise.all(t).then((function(e){return e.forEach((function(e){e=e.data.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}})),o.push.apply(o,_(e))})),o})))}},{key:"_createUserIDListGroup",value:function(e){for(var t=[],n=0;n<e.length;)t.push(e.slice(n,n+=100));return t}},{key:"reset",value:function(){this._flush(!0),this.accountProfileMap.clear()}}]),Uo),No=i((function e(t){a(this,e)})),wo=(i(xo,[{key:"getLocalBlacklist",value:function(){return _(this._blacklistMap.keys())}},{key:"getBlacklist",value:function(){var e=this,t="".concat(this._n,".getBlacklist"),n={fromAccount:this._userM.getMyAccount(),maxLimited:this.maxLimited,startIndex:0,lastSequence:this.currentSequence},a=new $n("getBlacklist");return this._userM.req({P:xn.GET_BL,data:n}).then((function(n){var o=(n=n.data).blackListItem,i=(n=n.currentSequence,He(o)?0:o.length);a.setMessage("count:".concat(i)).end(),Pe.i("".concat(t," ok")),e.currentSequence=n,e._handleResponse(o,!0),e._userM.emitOEvt(T.BLACKLIST_UPDATED,_(e._blacklistMap.keys()))})).catch((function(e){return a.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"addBlacklist",value:function(e){var t,n,a=this,o=new $n("addToBlacklist"),i="".concat(this._n,".addBlacklist"),s=this._userM.getMyAccount();return 1===e.userIDList.length&&e.userIDList[0]===s?(n=this._userM.getErrMsg(t=Vn.CANNOT_ADD_SELF_TO_BLACKLIST),o.setCode(t).setMessage(n).end(),n=new On({code:t}),Pe.e("".concat(i," failed. error:"),n),Cn(n)):(e.userIDList.includes(s)&&(e.userIDList=e.userIDList.filter((function(e){return e!==s}))),e.fromAccount=this._userM.getMyAccount(),e.toAccount=e.userIDList,this._userM.req({P:xn.ADD_TO_BL,data:e}).then((function(t){return o.setMessage(5<e.userIDList.length?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Pe.i("".concat(i," ok")),a._handleResponse(t.resultItem,!0),yn(_(a._blacklistMap.keys()))})).catch((function(e){return o.setError(e).end(),Pe.e("".concat(i," failed. error:"),e),Cn(e)})))}},{key:"_handleResponse",value:function(e,t){if(!He(e))for(var n,a,o,i=0,s=e.length;i<s;i++)a=e[i].to,o=e[i].resultCode,!dt(o)&&0!==o||(t?((n=this._blacklistMap.has(a)?this._blacklistMap.get(a):new No).userID=a,He(e[i].addBlackTimeStamp)||(n.timeStamp=e[i].addBlackTimeStamp),this._blacklistMap.set(a,n)):this._blacklistMap.has(a)&&(n=this._blacklistMap.get(a),this._blacklistMap.delete(a)));Pe.l("".concat(this._n,"._handleResponse total:").concat(this._blacklistMap.size," bAdd:").concat(t))}},{key:"deleteBlacklist",value:function(e){var t=this,n="".concat(this._n,".deleteBlacklist"),a=new $n("removeFromBlacklist");return e.fromAccount=this._userM.getMyAccount(),e.toAccount=e.userIDList,this._userM.req({P:xn.RM_FROM_BL,data:e}).then((function(o){return a.setMessage(5<e.userIDList.length?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Pe.i("".concat(n," ok")),t._handleResponse(o.data.resultItem,!1),yn(_(t._blacklistMap.keys()))})).catch((function(e){return a.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))}},{key:"onAccountDeleted",value:function(e){for(var t=0,n=e.length;t<n;t++){var a=e[t];this._blacklistMap.has(a)&&this._blacklistMap.delete(a)}var o=e.length;0<o&&(Pe.l("".concat(this._n,".onAccountDeleted count:").concat(o," ").concat(o<30?"userIDList:".concat(e):"")),this._userM.emitOEvt(T.BLACKLIST_UPDATED,_(this._blacklistMap.keys())))}},{key:"onAccountAdded",value:function(e){for(var t,n=[],a=0,o=e.length;a<o;a++)t=e[a],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new No({userID:t})),n.push(t));0<n.length&&(Pe.l("".concat(this._n,".onAccountAdded count:").concat(n.length," userIDList:"),n),this._userM.emitOEvt(T.BLACKLIST_UPDATED,_(this._blacklistMap.keys())))}},{key:"reset",value:function(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0}}]),xo),Do=(i(Bo,[{key:"_onCloudConfig",value:function(){var e=this._userM.getCloudConfig("status_query_count"),t=this._userM.getCloudConfig("status_sub_count"),n=this._userM.getCloudConfig("status_unsub_count");Pe.l("".concat(this._n,"._onCloudConfig statusQueryCount:").concat(e," statusSubscribeCount:").concat(t)+" statusUnsubscribeCount:".concat(n)),dt(e)||(this.MAX_QUERY_USER_COUNT=parseInt(e,10)),dt(e)||(this.MAX_SUBSCRIBE_USER_COUNT=parseInt(t,10)),dt(e)||(this.MAX_UNSUBSCRIBE_USER_COUNT=parseInt(n,10))}},{key:"onUserStatusUpdated",value:function(e){e=e.dataList;var t=this._userM.getMyUserID(),n=this._userM.get(12);e=e.map((function(e){var a=e.to,o=e.statusType;return e=ja(e=e.customStatus),a===t&&n.setCustomStatus(e),{userID:a,statusType:o,customStatus:e}})),Pe.l("".concat(this._n,".onUserStatusUpdated list:").concat(JSON.stringify(e))),this._userM.emitOEvt(T.USER_STATUS_UPDATED,e)}},{key:"setSelfStatus",value:function(e){var t,n,a=this,o="".concat(this._n,".setSelfStatus");return!1===this._userM.filterProfanity("customStatus",e)?Cn({code:Vn.PROFANITY_FOUND}):(t=new $n("setSelfStatus"),n=e.customStatus,this._userM.req({P:xn.SET_SELF_STATUS,data:{customStatus:n}}).then((function(e){return t.setMessage("customStatus:".concat(n)).end(),Pe.l("".concat(o," ok. customStatus:").concat(n)),a._userM.get(12).setCustomStatus(n),yn({userID:a._userM.getMyUserID(),statusType:1,customStatus:n})})).catch((function(e){return t.setError(e).end(),Pe.e("".concat(o," failed. error:"),e),Cn(e)})))}},{key:"getUserStatus",value:function(e){var t="".concat(this._n,".").concat("getUserStatus"),n=void 0===(e=e.userIDList)?[]:e,a=(e=this._userM.getMyUserID(),_(n)),o=void 0,i=a.indexOf(e);if(-1<i&&(a.splice(i,1),o={userID:e,statusType:1,customStatus:this._userM.get(12).getCustomStatus()}),0===a.length)return En({successUserList:[o],failureUserList:[]});if(!this._userM.canIUse(V.USER_STATUS))return this._userM.noUse("getUserStatus");a.length>this.MAX_QUERY_USER_COUNT&&(Pe.w("".concat(t," ").concat(Ht(this.MAX_QUERY_USER_COUNT))),a=n.slice(0,this.MAX_QUERY_USER_COUNT));var s=new $n("getUserStatus");return this._userM.req({P:xn.GET_USER_STATUS,data:{userIDList:a}}).then((function(e){var a=void 0===(a=(e=e.data).successUserList)?[]:a,i=(e=void 0===(e=e.failureUserList)?[]:e,a=a.map((function(e){return{userID:e.userID,statusType:e.statusType,customStatus:ja(e=e.customStatus)}})),e=e.map((function(e){var t=e.userID,n=e.invalidUserID,a=e.errorCode;return e=e.errorInfo,{userID:He(n)?t:n,code:a,message:e}})),dt(o)||a.unshift(o),"userID count:".concat(n.length,", success count:").concat(a.length,", fail count:").concat(e.length));return s.setMessage("".concat(i)).end(),Pe.l("".concat(t," ok. ").concat(i,".")),yn({successUserList:a,failureUserList:e})})).catch((function(e){return s.setMessage("userID count:".concat(n.length)).setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"subscribeUserStatus",value:function(e){var t,n,a,o,i="subscribeUserStatus";return this._userM.canIUse(V.USER_STATUS)?(t="".concat(this._n,".").concat(i),(n=_(e=void 0===(e=e.userIDList)?[]:e)).length>this.MAX_SUBSCRIBE_USER_COUNT&&(Pe.w("".concat(t," ").concat(Ht(this.MAX_SUBSCRIBE_USER_COUNT))),n=e.slice(0,this.MAX_SUBSCRIBE_USER_COUNT)),a=new $n(i),o="userID count:".concat(e.length),Pe.l("".concat(t," ").concat(o)),this._userM.req({P:xn.SUB_USER_STATUS,data:{userIDList:n}}).then((function(e){return e=(void 0===(e=e.data.failureUserList)?[]:e).map((function(e){var t=e.userID,n=e.invalidUserID,a=e.errorCode;return e=e.errorInfo,{userID:He(n)?t:n,code:a,message:e}})),a.setMessage("".concat(o," fail count:").concat(e.length)).end(),Pe.l("".concat(t," ok. fail count:").concat(e.length,".")),yn({failureUserList:e})})).catch((function(e){return a.setMessage(o).setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this._userM.noUse(i)}},{key:"unsubscribeUserStatus",value:function(e){var t,n,a,o,i="unsubscribeUserStatus";return this._userM.canIUse(V.USER_STATUS)?(t="".concat(this._n,".").concat(i),n=_(e=void 0===(e=(e||{}).userIDList)?[]:e),e.length>this.MAX_UNSUBSCRIBE_USER_COUNT&&(Pe.w("".concat(t," ").concat(Ht(this.MAX_UNSUBSCRIBE_USER_COUNT))),n=e.slice(0,this.MAX_UNSUBSCRIBE_USER_COUNT)),a=new $n(i),o="userID count:".concat(e.length),Pe.l("".concat(t," ").concat(o)),e={userIDList:n},0===n.length&&(e.userIDList=void 0,e.unsubscribeAll=1),this._userM.req({P:xn.UNSUB_USER_STATUS,data:e}).then((function(e){return e=(void 0===(e=e.data.failureUserList)?[]:e).map((function(e){var t=e.userID,n=e.invalidUserID,a=e.errorCode;return e=e.errorInfo,{userID:He(n)?t:n,code:a,message:e}})),a.setMessage("".concat(o," fail count:").concat(e.length)).end(),Pe.l("".concat(t," ok. fail count:").concat(e.length,".")),yn({failureUserList:e})})).catch((function(e){return a.setMessage("".concat(o)).setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this._userM.noUse(i)}},{key:"reset",value:function(){this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100}}]),Bo),bo=(r(Vo,Ln),Xa=f(Vo),i(Vo,[{key:"onContextUpdated",value:function(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist()}},{key:"mockOnNickAvatarModified",value:function(e,t){Pe.l("".concat(this._n,"._mockOnNickAvatarModified nick:").concat(e," avatar:").concat(t)),this.onProfileModified({dataList:[{pushType:1,userID:this.getMyUserID(),profileList:[{tag:Re.NICK,value:e},{tag:Re.AVATAR,value:t}]}]})}},{key:"onProfileModified",value:function(e){this._profileHandler.onProfileModified(e)}},{key:"onRelationChainModified",value:function(e){var t,n;He(e=e.dataList)||(t=[],e.forEach((function(e){e.blackListDelAccount&&t.push.apply(t,_(e.blackListDelAccount))})),0<t.length&&this._blacklistHandler.onAccountDeleted(t),n=[],e.forEach((function(e){e.blackListAddAccount&&n.push.apply(n,_(e.blackListAddAccount))})),0<n.length&&this._blacklistHandler.onAccountAdded(n))}},{key:"onConvProfileUpdated",value:function(e){this._profileHandler.onConvProfileUpdated(e)}},{key:"getMyAccount",value:function(){return this.getMyUserID()}},{key:"getMyNick",value:function(){return this._profileHandler.getNickAndAvatarByUserID(this.getMyUserID()).nick}},{key:"getMyProfile",value:function(){return this._profileHandler.getMyProfile()}},{key:"getStorageModule",value:function(){return this.get(13)}},{key:"filterProfanity",value:function(e,t){var n,a=this.get(29);return!a||(n=(a=a.filterText(t[e],"user_profile")).isAllowedToSend,a=a.modifiedText,!0===n&&(t[e]=a,!0))}},{key:"isMyFriend",value:function(e){var t=this.get(8);return!!t&&t.isMyFriend(e)}},{key:"getUserProfile",value:function(e){return this._profileHandler.getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._profileHandler.updateMyProfile(e)}},{key:"getNickAndAvatarByUserID",value:function(e){return this._profileHandler.getNickAndAvatarByUserID(e)}},{key:"getUserNickAndAvatar",value:function(e){return this._profileHandler.getUserNickAndAvatar(e)}},{key:"getLocalBlacklist",value:function(){return En(this._blacklistHandler.getLocalBlacklist())}},{key:"addBlacklist",value:function(e){return this._blacklistHandler.addBlacklist(e)}},{key:"deleteBlacklist",value:function(e){return this._blacklistHandler.deleteBlacklist(e)}},{key:"onUserStatusUpdated",value:function(e){this._userStatusHandler.onUserStatusUpdated(e)}},{key:"setSelfStatus",value:function(e){return this._userStatusHandler.setSelfStatus(e)}},{key:"getUserStatus",value:function(e){return this._userStatusHandler.getUserStatus(e)}},{key:"subscribeUserStatus",value:function(e){return this._userStatusHandler.subscribeUserStatus(e)}},{key:"unsubscribeUserStatus",value:function(e){return this._userStatusHandler.unsubscribeUserStatus(e)}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._profileHandler.reset(),this._blacklistHandler.reset(),this._userStatusHandler.reset()}}]),Vo),Lo=(i(Oo,[{key:"isLoggedIn",value:function(){return this._isLoggedIn}},{key:"isOversea",value:function(){return this._oversea}},{key:"isPrivateNetWork",value:function(){return this._proxyServer}},{key:"isDevMode",value:function(){return this._isDevMode}},{key:"isTestEnv",value:function(){return this._isTestEnv}},{key:"isPartialUpdatedConvs",value:function(){return this._isPartialUpdatedConvs}},{key:"isSingaporeSite",value:function(){return 2e7<=this._SDKAppID&&this._SDKAppID<3e7||172e7<=this._SDKAppID&&this._SDKAppID<173e7}},{key:"isKoreaSite",value:function(){return 3e7<=this._SDKAppID&&this._SDKAppID<4e7||173e7<=this._SDKAppID&&this._SDKAppID<174e7}},{key:"isGermanySite",value:function(){return 4e7<=this._SDKAppID&&this._SDKAppID<5e7||174e7<=this._SDKAppID&&this._SDKAppID<175e7}},{key:"isIndiaSite",value:function(){return 5e7<=this._SDKAppID&&this._SDKAppID<6e7||175e7<=this._SDKAppID&&this._SDKAppID<176e7}},{key:"isJapanSite",value:function(){return 6e7<=this._SDKAppID&&this._SDKAppID<7e7||176e7<=this._SDKAppID&&this._SDKAppID<177e7}},{key:"isUSASite",value:function(){return 7e7<=this._SDKAppID&&this._SDKAppID<8e7||177e7<=this._SDKAppID&&this._SDKAppID<178e7}},{key:"isIndonesiaSite",value:function(){return 8e7<=this._SDKAppID&&this._SDKAppID<9e7||178e7<=this._SDKAppID&&this._SDKAppID<179e7}},{key:"isIntl",value:function(){return 0===(e=this._SDKAppID)||2e7<=e&&e<9e7||172e7<=e&&e<179e7;var e}},{key:"isUnlimitedAVChatRoom",value:function(){return this._unlimitedAVChatRoom}},{key:"isUsingChatCore",value:function(){return this._isUsingChatCore}},{key:"setUsingChatCore",value:function(e){this._isUsingChatCore=e}},{key:"getUIPlatform",value:function(){return this._uiPlatform}},{key:"setUIPlatform",value:function(e){this._uiPlatform=e}},{key:"setUserID",value:function(e){this._userID=e}},{key:"getUserID",value:function(){return this._userID}},{key:"setUserSig",value:function(e){this._userSig=e}},{key:"getUserSig",value:function(){return this._userSig}},{key:"getSDKAppID",value:function(){return this._SDKAppID}},{key:"setTinyID",value:function(e){this._tinyID=e,this._isLoggedIn=!0}},{key:"getTinyID",value:function(){return this._tinyID}},{key:"setCustomStatus",value:function(e){this._customStatus=e}},{key:"getCustomStatus",value:function(){return this._customStatus}},{key:"getScene",value:function(){return fe?window.tencent_cloud_im_csig_flutter_for_web_25F_cy:this._isTUIKit()?"tuikit":this._scene}},{key:"getInstanceID",value:function(){return this._instanceID}},{key:"getStatusInstanceID",value:function(){return this._statusInstanceID}},{key:"setStatusInstanceID",value:function(e){this._statusInstanceID=e}},{key:"getVersion",value:function(){return this._version}},{key:"getA2Key",value:function(){return this._a2Key}},{key:"setA2Key",value:function(e){this._a2Key=e}},{key:"getContentType",value:function(){return this._contentType}},{key:"getProxyServer",value:function(){return this._proxyServer}},{key:"getFileUploadProxy",value:function(){return this._fileUploadProxy}},{key:"getFileDownloadProxy",value:function(){return this._fileDownloadProxy}},{key:"setApplicationID",value:function(e){this._applicationID=e}},{key:"getApplicationID",value:function(){return this._applicationID}},{key:"setDowloadFileAuthKey",value:function(e){this._authKey=e}},{key:"getDowloadFileAuthKey",value:function(){return this._authKey}},{key:"setCustomLoginInfo",value:function(e){this._customLoginInfo=e}},{key:"getCustomLoginInfo",value:function(){return this._customLoginInfo}},{key:"_isTUIKit",value:function(){var e=!1,t=!1,n=!1,a=!1,o=[];$&&(o=Object.keys(ae));for(var i=0,s=(o=ne?Q?Object.keys(uni):Object.keys(window):o).length;i<s;i++)if(o[i].toLowerCase().includes("uikit")){e=!0;break}o=null;var r,c=($&&!We(ae.createGamePortal)&&We(getApp)&&!dt(getApp())&&Ke(r=getApp().globalData)&&!0===r.isTUIKit&&(t=!0),!0===this._m.get(13).getStorageSync("TIM_".concat(this._SDKAppID,"_isTUIKit"))&&(n=!0),null);if(H&&!j&&"undefined"==typeof uni&&__wxConfig&&(c=__wxConfig.pages),q&&"undefined"==typeof uni&&__qqConfig&&(c=__qqConfig.pages),ze(c)&&0<c.length){for(var l=0,u=c.length;l<u;l++)if(c[l].toLowerCase().includes("tui")){a=!0;break}c=null}return e||t||n||a}},{key:"reset",value:function(){this._isLoggedIn=!1,this._userSig="",this._a2Key="",this._tinyID="",this._customStatus="",this._statusInstanceID=0}}]),Oo),Po={"k-vue2-pc":1,"k-vue2-h5":2,"k-vue2-h5-uni":3,"k-vue2-app-uni":4,"k-vue2-mp-uni":5,"k-vue2-pc-uni":6,"k-vue3-pc":7,"k-vue3-h5":8,"k-vue3-h5-uni":9,"k-vue3-app-uni":10,"k-vue3-mp-uni":11,"k-vue3-pc-uni":12,"k-rn":13},Ao=(r(Ro,Ln),Ja=f(Ro),i(Ro,[{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this._helloInterval==0&&this._hello()}},{key:"getPushModule",value:function(){var e=void 0,t=this.get(36),n=this.get(28);return t.canIUseTIMPush()?e=t:n.canIUseOfflinePush()&&(e=n),e}},{key:"login",value:function(e){if(this.isLoggedIn())return n=this.getMyUserID(),(n=this.getErrMsg("RepeatLogin",n))&&Pe.w(n),En({actionStatus:"OK",errorCode:0,errorInfo:n,repeatLogin:!0});if(Date.now()-this._lastLoginTs<=15e3)return this.warn("LoggingIn",e.userID),Cn({code:Vn.REPEAT_LOGIN});Pe.l("".concat(this._n,".login userID:").concat(e.userID));var t,n=this._checkLoginInfo(e);return 0!==n.code?Cn(n):(n=this.get(12),t=e.userID,e=e.userSig,n.setUserID(t),n.setUserSig(e),this.get(20).updateProtocolConfig(),this._login())}},{key:"_login",value:function(){var e=this,t=this.get(12),n=t.getScene(),a=0,o=n,i=(n&&n.startsWith("k-")&&(o=Po[n],n="tuikit"),new $n("login")),s=(i.setMessage("".concat(o)).setMoreMessage("identifier:".concat(this.getMyUserID())),"tuikit"===n),r=0,c=(Q?r=s?3===o||4===o||5===o||6===o?31:9===o||10===o||11===o||12===o?32:4:3:$?r=Z?36:"tuikit"===n?12:11:ne?r=fe?"flutter_web_uikit"===n?21:20:this._isReactUIKit()?ge?25:24:s?1===o||2===o?29:7===o||8===o?30:ge?17:14:ge?16:13:13===o&&(r=38),i.setUIPlatform(r),t.setUIPlatform(r),(s=this.getPushModule())&&(this._isWebUniapp=s.getUniAppPlatform(),o=this._getStatusInstanceID(),t.setStatusInstanceID(o),this.get(20).updateProtocolConfig(),a=s.getDeviceBrand()),"".concat(this._n,"._login"));return this._lastLoginTs=Date.now(),this.req({P:xn.LOGIN,data:{deviceBrand:a,isWebUniapp:this._isWebUniapp,customInfo:t.getCustomLoginInfo()}}).then((function(a){e._lastLoginTs=0;var o=Date.now(),s=null,r=(g=a.data).a2Key,l=g.tinyID,u=g.helloInterval,d=g.instanceID,m=g.timeStamp,p=void 0===(p=g.customStatus)?"":p,h=g.purchaseBits,g=void 0===(g=g.authKey)?"":g,f=1e3*m,v=o-i.getStartTs();if(v=f+parseInt(v/2)-o,o=i.getStartTs()+v,i.start(o),o=f,Me=v,(f=new Date).setTime(o),Pe.i("baseTime from server:".concat(f," offset:").concat(Me)),l){if(r)return o=e.get(21).getSocketID(),f=ja(p),p="socketID:".concat(o," scene:").concat(n," helloInterval:").concat(u," instanceID:").concat(d," timeStamp:").concat(m)+" offset:".concat(v," customStatus:").concat(f," isWebUniapp:").concat(e._isWebUniapp),Pe.l("".concat(c," ok. ").concat(p)),m=o="",H&&We(ae.getAccountInfoSync)&&(v=ae.getAccountInfoSync().miniProgram)&&(o=v.appId,m=v.envVersion),i.setMoreMessage("".concat(p," href:").concat(ne?window.location.href:""," mpAppId:").concat(o," envVersion:").concat(m," authKey:").concat(g)).end(),t.setA2Key(r),t.setTinyID(l),t.setStatusInstanceID(d),t.setCustomStatus(f),t.setDowloadFileAuthKey(g),h&&e.get(27).onPushedConfig({errorCode:0,expiredTime:0,purchaseBits:h}),e.get(20).updateProtocolConfig(),e.emitIEvt(Ua.A2KEY_AND_TINYID_UPDATED),e._helloInterval=u,e.triggerReady(),(v=e.getPushModule())&&(uni.setStorageSync("timUniAppInstanceID",d),v.init()),e._fetchCloudControlConfig(),e.get(29).init(),a;s=new On({code:Vn.NO_A2KEY})}else s=new On({code:Vn.NO_TINYID});throw i.setError(s).end(),s})).catch((function(t){return i.setError(t).end(!0),e._m.setNotReadyReason(Vn.LOGIN_FAILED),Pe.e("".concat(c," failed. error:"),t),e._lastLoginTs=0,e._m.onLoginFailed(),Cn(t)}))}},{key:"logout",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,n="".concat(this._n,".logout"),a=this.isLoggedIn();return Pe.i("".concat(n," type:").concat(t," isLoggedIn:").concat(a," isWebUniapp:").concat(this._isWebUniapp)),a?(new $n("logout").setMessage("identifier:".concat(this.getMyUserID())).end(!0),0===t&&this._m.setNotReadyReason(Vn.LOGGED_OUT),this.req({P:xn.LOGOUT,data:{type:t,isWebUniapp:this._isWebUniapp}}).then((function(){return e.resetReady(),En({})})).catch((function(t){return Pe.e("".concat(n," error:"),t),e.resetReady(),En({})}))):Cn({code:Vn.USER_NOT_LOGGED_IN})}},{key:"getLoginUser",value:function(){return this.isLoggedIn()?this.getMyUserID():""}},{key:"_fetchCloudControlConfig",value:function(){this.get(23).fetchConfig()}},{key:"_getStatusInstanceID",value:function(){return uni.getStorageSync("timUniAppInstanceID")||0}},{key:"_hello",value:function(){var e=this;this._lastWsHelloTs=Date.now(),this.req({P:xn.HELLO,data:{isWebUniapp:this._isWebUniapp}}).catch((function(t){Pe.w("".concat(e._n,"._hello error:"),t)}))}},{key:"getLastWsHelloTs",value:function(){return this._lastWsHelloTs}},{key:"_checkLoginInfo",value:function(e){var t=0;return He(this.get(12).getSDKAppID())?t=Vn.NO_SDKAPPID:He(e.userID)?t=Vn.NO_IDENTIFIER:He(e.userSig)&&(t=Vn.NO_USERSIG),{code:t}}},{key:"_isReactUIKit",value:function(){return ne&&void 0!==window.tencent_cloud_im_csig_react_uikit_23F_xa}},{key:"onMultipleAccountKickedOut",value:function(e){var t=this;new $n("kickedOut").setMessage("type:".concat(M.KICKED_OUT_MULT_ACCOUNT," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Pe.w("".concat(this._n,".onMultipleAccountKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOEvt(T.KICKED_OUT,{type:M.KICKED_OUT_MULT_ACCOUNT}),t._m.setNotReadyReason(Vn.KICKED_OUT_MULT_ACCOUNT),t._m.reset()}))}},{key:"onMultipleDeviceKickedOut",value:function(e){var t=this;new $n("kickedOut").setMessage("type:".concat(M.KICKED_OUT_MULT_DEVICE," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Pe.w("".concat(this._n,".onMultipleDeviceKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOEvt(T.KICKED_OUT,{type:M.KICKED_OUT_MULT_DEVICE}),t._m.setNotReadyReason(Vn.KICKED_OUT_MULT_DEVICE),t._m.reset()}))}},{key:"onUserSigExpired",value:function(){new $n("kickedOut").setMessage(M.KICKED_OUT_USERSIG_EXPIRED).end(!0),Pe.w("".concat(this._n,".onUserSigExpired userID:").concat(this.getMyUserID())),0!==this.get(12).getStatusInstanceID()&&(this.emitOEvt(T.KICKED_OUT,{type:M.KICKED_OUT_USERSIG_EXPIRED}),this._m.setNotReadyReason(Vn.KICKED_OUT_USERSIG_EXPIRED),this._m.reset())}},{key:"onRestApiKickedOut",value:function(e){new $n("kickedOut").setMessage("type:".concat(M.KICKED_OUT_REST_API," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Pe.w("".concat(this._n,".onRestApiKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),0!==this.get(12).getStatusInstanceID()&&(this.emitOEvt(T.KICKED_OUT,{type:M.KICKED_OUT_REST_API}),this._m.setNotReadyReason(Vn.KICKED_OUT_REST_API),this._m.reset(),this.get(21).onRestApiKickedOut())}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0,this._isWebUniapp=0}}]),Ro);function Ro(e){return a(this,Ro),(e=Ja.call(this,e))._n="SignModule",e._helloInterval=120,e._lastLoginTs=0,e._lastWsHelloTs=0,e._isWebUniapp=0,Ha.mixin(h(e)),e}function Oo(e,t){a(this,Oo),this._m=e,this._isLoggedIn=!1,this._SDKAppID=t.SDKAppID,this._userID=t.userID||"",this._userSig=t.userSig||"",this._version="3.4.7",this._a2Key="",this._tinyID="",this._customStatus="",this._contentType="json",this._unlimitedAVChatRoom=t.unlimitedAVChatRoom,this._scene=t.scene||"",this._oversea=t.oversea,this._instanceID=t.instanceID,this._statusInstanceID=0,this._isDevMode=t.devMode,this._isTestEnv=t.testEnv,this._proxyServer=t.proxyServer,this._fileUploadProxy=t.fileUploadProxy,this._fileDownloadProxy=t.fileDownloadProxy,this._applicationID=0,this._isPartialUpdatedConvs=t.partialUpdatedConversations,this._isUsingChatCore=!1,this._uiPlatform=0,this._authKey="",this._customLoginInfo=""}function Vo(e){return a(this,Vo),(e=Xa.call(this,e))._n="UserModule",e._profileHandler=new Mo(h(e)),e._blacklistHandler=new wo(h(e)),e._userStatusHandler=new Do(h(e)),e.getIEmitInst().on(Ua.A2KEY_AND_TINYID_UPDATED,e.onContextUpdated,h(e)),e}function Bo(e){a(this,Bo),this._userM=e,this._n="UserStatusHandler",this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100,this._userM.getIEmitInst().on(Ua.CLOUD_CONFIG,this._onCloudConfig,this)}function xo(e){a(this,xo),this._userM=e,this._n="BlacklistHandler",this._blacklistMap=new Map,this.startIndex=0,this.maxLimited=100,this.currentSequence=0}function Uo(e){a(this,Uo),this._userM=e,this._n="ProfileHandler",this.TAG="profile",this.accountProfileMap=new Map,this.expirationTime=864e5}function Go(e){return a(this,Go),(e=Ka.call(this,e))._n="TopicModule",e._topicMap=new Map,e._getTopicTimeMap=new Map,e.TOPIC_CACHE_TIME=300,e.TOPIC_LAST_ACTIVE_TIME=3600,e.getIEmitInst().on(Ua.CLOUD_CONFIG,e._onCloudConfig,h(e)),e}function Fo(e,t){a(this,Fo),this.topicID="",this.topicName="",this.avatar="",this.introduction="",this.notification="",this.unreadCount=0,this.muteAllMembers=!1,this.customData="",this.groupAtInfoList=[],this.nextMessageSeq=0,this.lastMessage=qa(e.lastMessage,t),this.selfInfo={muteTime:0,readedSequence:0,messageRemindType:"",excludedUnreadSequenceList:void 0},this._initTopic(e)}function Yo(e){return a(this,Yo),(e=za.call(this,e))._n="GroupModule",e._commonGroupHandler=new uo(h(e)),e._groupAttributesHandler=new mo(h(e)),e._groupCountersHandler=new po(h(e)),e._AVChatRoomHandler=new fo(h(e)),e._groupTipsHandler=new lo(h(e)),e._groupSystemNoticeHandler=new Eo(h(e)),e._groupMemberHandler=new _o(h(e)),e.groupMap=new Map,e._unjoinedAVChatRoomList=new Map,e._receiptDetailCompleteMap=new Map,e._onlineMemberCountMap=new Map,e._timeoutIDs=[],e.getIEmitInst().on(Ua.CLOUD_CONFIG,e._onCloudConfig,h(e)),e}function Ho(e){a(this,Ho),this._grpM=e,this._n="GroupSystemNoticeHandler",this.pendencyMap=new Map}function Zo(e){a(this,Zo),this._grpM=e,this._n="GroupMemberHandler",this.groupMemberListMap=new Map,this.DEFAULT_MEMBER_INFO_FILTER=["Role","JoinTime","NameCard","ShutUpUntil","OnlineStatus"],this._grpM.getIEmitInst().on(Ua.PROFILE_UPDATED,this._onProfileUpdated,this)}function qo(e){a(this,qo),this.userID="",this.avatar="",this.nick="",this.role="",this.joinTime="",this.lastSendMsgTime="",this.nameCard="",this.muteUntil=0,this.memberCustomField=[],this.isOnline=!1,this.updateMember(e)}function jo(e){a(this,jo),this._grpM=e,this._n="AVChatRoomHandler",this._joinedGroupMap=new Map,this._pollingRequestInfoMap=new Map,this._pollingInstanceMap=new Map,this._seqSll=new to(200),this._IDSll=new to(100),this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map,this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0,this._startBroadcastSeq=1,this._broadcastMessageIDMap=new Map,this.DEFAULT_POLLING_SIMPLIFIED_MSG=0}function Jo(e){a(this,Jo);var t=e.manager,n=e.groupID,o=e.onInit,i=e.onSuccess;e=e.onFail,this._n="Polling",this._manager=t,this._grpM=t._grpM,this._onInit=o,this._onSuccess=i,this._onFail=e,this._groupID=n,this._timeoutID=-1,this._isRunning=!1,this._proto=xn.AV_POLLING}function Xo(e){a(this,Xo),this._grpM=e,this._n="GroupCountersHandler",this._groupCountersMap=new Map,this.EXPIRE_TIME=3e4,this._grpM.getIEmitInst().on(Ua.CLOUD_CONFIG,this._onCloudConfig,this)}function Ko(e){a(this,Ko),this._grpM=e,this._n="GroupAttributesHandler",this._groupAttributesMap=new Map,this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4,this._grpM.getIEmitInst().on(Ua.CLOUD_CONFIG,this._onCloudConfig,this)}function zo(e){a(this,zo),this._grpM=e,this._n="CommonGroupHandler",this.tempConversationList=null,this._cachedGroupMessageMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this.PAGING_GRP_COUNT_LIMIT=200,this._pagingStatus=Mn,this._pagingGetCostList=[],e.getIEmitInst().on(Ua.A2KEY_AND_TINYID_UPDATED,this.syncGroupList,this)}function Wo(e){a(this,Wo),this._grpM=e,this._n="GroupTipsHandler",this._cachedGroupTipsMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4}function Qo(e){return a(this,Qo),(e=Wa.call(this,e))._n="ConvModule",Ha.mixin(h(e)),e._msgListHandler=new Ga(h(e)),e._msgRemindHandler=new so(h(e)),e._convGroupHandler=new ro(h(e)),e._sll=new to(100),e._pagingStatus=Mn,e._pagingTs=0,e._pagingStartIdx=0,e._pagingPinnedTs=0,e._pagingPinnedStartIdx=0,e._pagingConvIDMap=new Map,e._convIDFromUnreadDBMap=new Map,e._convMap=new Map,e._tmpGroupList=[],e._tmpGroupAtTipsList=[],e._peerReadTimeMap=new Map,e._completedMap=new Map,e._roamingMsgKeyAndTimeMap=new Map,e._remoteGroupReadSeqMap=new Map,e._convTotalUnreadCount=0,e._pagingGetCostList=[],e._convMapForDiff=new Map,e._partialUpdatedConvMap=new Map,e._everClearedMap=new Map,e._bPullOnInvite=!0,e._initListeners(),e}function $o(e){a(this,$o),this._convM=e,this._n="ConvGroupHandler",this._convGroupMap=new Map,this._startIndex=0,this._pagingStatus=Mn}function ei(e){a(this,ei),this._convM=e,this._n="MsgRemindHandler"}function ti(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];a(this,ti),this.conversationID=e.conversationID||"",this.unreadCount=e.unreadCount||0,this.type=e.type||"",this.lastMessage=Za(e.lastMessage,t,n),e.lastMsgTime&&(this.lastMessage.lastTime=e.lastMsgTime),this._isInfoCompleted=!1,this.peerReadTime=e.peerReadTime||0,this.groupAtInfoList=[],this.remark="",this.isPinned=e.isPinned||!1,this.messageRemindType=e.messageRemindType,this.markList=e.markList||[],this.customData=e.customData||"",this.conversationGroupList=e.conversationGroupList||[],this.draftText=e.draftText||"",this._initProfile(e),this.subType=this.groupProfile?this.groupProfile.type:""}function ni(e){a(this,ni),this.groupID="",this.name="",this.avatar="",this.type="",this.introduction="",this.notification="",this.ownerID="",this.createTime="",this.infoSequence="",this.lastInfoTime="",this.selfInfo={messageRemindType:"",joinTime:"",nameCard:"",role:"",userID:"",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:"",lastSequence:"",fromAccount:"",messageForShow:""},this.nextMessageSeq="",this.memberNum="",this.memberCount="",this.maxMemberNum="",this.maxMemberCount="",this.joinOption="",this.inviteOption="",this.groupCustomField=[],this.muteAllMembers=!1,this.isSupportTopic=!1,this._lastRevokedTime=0,this._initGroup(e)}function ai(e){a(this,ai),this.MAX_LENGTH=e,this.map=new Map}function oi(e){var t=this;a(this,oi),He(e)||(this.userID=e.userID||"",this.nick=e.nick||"",this.gender=e.gender||"",this.birthday=e.birthday||0,this.location=e.location||"",this.selfSignature=e.selfSignature||"",this.allowType=e.allowType||M.ALLOW_TYPE_ALLOW_ANY,this.language=e.language||0,this.avatar=e.avatar||"",this.messageSettings=e.messageSettings||0,this.adminForbidType=e.adminForbidType||M.FORBID_TYPE_NONE,this.level=e.level||0,this.role=e.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],He(e.profileCustomField))||e.profileCustomField.forEach((function(e){t.profileCustomField.push({key:e.key,value:e.value})}))}function ii(){return null}function si(e){var t=e.get(12);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:Ne()}}i(vi,[{key:"_errorTolerantHandle",value:function(){$||"undefined"!=typeof window&&this._canIUseCookies()||(this.getItem=ii,this.setItem=ii,this.removeItem=ii,this.clear=ii)}},{key:"onCheckTimer",value:function(e){e%20==0&&0!==this._storageQueue.size&&this._doFlush()}},{key:"_doFlush",value:function(){try{var e,t=S(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var n=v(e.value,2),a=n[0],o=n[1];this._setStorageSync(this._getKey(a),o)}}catch(i){t.e(i)}finally{t.f()}this._storageQueue.clear()}catch(i){Pe.w("".concat(this._n,"._doFlush error:"),i)}}},{key:"_getPrefix",value:function(){var e=this._m.get(12);return"TIM_".concat(e.getSDKAppID(),"_").concat(e.getUserID(),"_")}},{key:"_getKey",value:function(e){return"".concat(this._getPrefix()).concat(e)}},{key:"getItem",value:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;return this.getStorageSync(n)}catch(a){return Pe.w("".concat(this._n,".getItem error:"),a),{}}}},{key:"setItem",value:function(e,t){var n;2<arguments.length&&void 0!==arguments[2]&&arguments[2]?(n=3<arguments.length&&void 0!==arguments[3]&&!arguments[3]?e:this._getKey(e),this._setStorageSync(n,t)):this._storageQueue.set(e,t)}},{key:"clear",value:function(){try{$?ae.clearStorageSync():this._canIUseCookies()&&localStorage.clear()}catch(e){Pe.w("".concat(this._n,".clear error:"),e)}}},{key:"removeItem",value:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;this._removeStorageSync(n)}catch(a){Pe.w("".concat(this._n,".removeItem error:"),a)}}},{key:"getSize",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"b";try{var a={size:0,limitSize:5242880,unit:n};if(Object.defineProperty(a,"leftSize",{enumerable:!0,get:function(){return a.limitSize-a.size}}),$&&(a.limitSize=1024*ae.getStorageInfoSync().limitSize),e)a.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if($)ae.getStorageInfoSync().keys.forEach((function(e){a.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length}));else if(this._canIUseCookies())for(var o in localStorage)localStorage.hasOwnProperty(o)&&(a.size+=localStorage.getItem(o).length+o.length);return this._convertUnit(a)}catch(i){Pe.w("".concat(this._n," error:"),i)}}},{key:"_convertUnit",value:function(e){var t,n={},a=e.unit;for(t in n.unit=a,e)"number"==typeof e[t]&&("kb"===a.toLowerCase()?n[t]=Math.round(e[t]/1024):"mb"===a.toLowerCase()?n[t]=Math.round(e[t]/1024/1024):n[t]=e[t]);return n}},{key:"_setStorageSync",value:function(e,t){$?X?my.setStorageSync({key:e,data:t}):ae.setStorageSync(e,t):this._canIUseCookies()&&localStorage.setItem(e,JSON.stringify(t))}},{key:"getStorageSync",value:function(e){return $?X?my.getStorageSync({key:e}).data:ae.getStorageSync(e):this._canIUseCookies()?JSON.parse(localStorage.getItem(e)):{}}},{key:"_removeStorageSync",value:function(e){$?X?my.removeStorageSync({key:e}):ae.removeStorageSync(e):this._canIUseCookies()&&localStorage.removeItem(e)}},{key:"_canIUseCookies",value:function(){return"undefined"!=typeof window&&navigator&&navigator.cookieEnabled&&localStorage}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._doFlush()}}]);var ri,ci=vi,li=(i(fi,[{key:"pushIn",value:function(e){Pe.d("".concat(this._n,".pushIn"),this._report.length,e),this._report.push(e)}},{key:"backfill",value:function(e){var t;ze(e)&&0!==e.length&&(Pe.d("".concat(this._n,".backfill"),this._report.length,e.length),(t=this._report).unshift.apply(t,_(e)))}},{key:"getLogsNumInMemory",value:function(){return this._report.length}},{key:"isEmpty",value:function(){return 0===this._report.length}},{key:"_reset",value:function(){this._report.length=0,this._report=[]}},{key:"getLogsInMemory",value:function(){var e=this._report.slice();return this._reset(),e}}]),fi),ui=(r(gi,Ln),ri=f(gi),i(gi,[{key:"reportAtOnce",value:function(){this._report()}},{key:"_onLoginSuccess",value:function(){var e=this,t=this.get(13),n=t.getItem(this.TAG,!1);!He(n)&&We(n.forEach)&&(Pe.l("".concat(this._n,"._onLoginSuccess. logs count:").concat(n.length)),n.forEach((function(t){e._reportBody.pushIn(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfig",value:function(){var e=this.getCloudConfig("evt_rpt_threshold"),t=this.getCloudConfig("evt_rpt_waiting"),n=this.getCloudConfig("evt_rpt_level"),a=this.getCloudConfig("evt_rpt_sdkappid_bl"),o=this.getCloudConfig("evt_rpt_tinyid_wl");dt(e)||(this.MIN_THRESHOLD=Number(e)),dt(t)||(this.WAITING_TIME=Number(t)),dt(n)||(this.REPORT_LEVEL=n.split(",").map((function(e){return Number(e)}))),dt(a)||(this.REPORT_SDKAPPID_BLACKLIST=a.split(",").map((function(e){return Number(e)}))),dt(o)||(this.REPORT_TINYID_WHITELIST=o.split(","))}},{key:"pushIn",value:function(e){e instanceof $n&&(e.updateTimeStamp(),this._reportBody.pushIn(e),this._reportBody.getLogsNumInMemory()>=this.MIN_THRESHOLD)&&this._report()}},{key:"onCheckTimer",value:function(){Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()}},{key:"_filterLogs",value:function(e){var t=this,n=(a=this.get(12)).getSDKAppID(),a=a.getTinyID();return Vt(this.REPORT_SDKAPPID_BLACKLIST,n)&&!Bt(this.REPORT_TINYID_WHITELIST,a)?[]:e.filter((function(e){return t.REPORT_LEVEL.includes(e.level)}))}},{key:"_report",value:function(){var e,n,a=this;this._reportBody.isEmpty()||(e=this._reportBody.getLogsInMemory(),0!==(n=this._filterLogs(e)).length?(n={header:si(this),event:n},this.req({P:xn.SSO_STAT,data:t({},n)}).then((function(){a._lastReportTime=Date.now()})).catch((function(t){Pe.w("".concat(a._n,"._report failed. error:"),t),a._lastReportTime=Date.now(),a._reportBody.backfill(e),a._reportBody.getLogsNumInMemory()>a.MAX_THRESHOLD&&a._flushAtOnce()}))):this._lastReportTime=Date.now())}},{key:"_flushAtOnce",value:function(){var e=this.get(13),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory(),a="".concat(this._n,"._flushAtOnce");He(t)?(Pe.l("".concat(a," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1)):((n=n.concat(t)).length>this.MAX_THRESHOLD&&(n=n.slice(0,this.MAX_THRESHOLD)),Pe.l("".concat(a," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1))}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),gi),di="none",mi="online",pi=(i(hi,[{key:"_startRN",value:function(){var e,t=this;te&&(e=this._m.get(18).getPlugin("chat-network-monitor"))&&(this._removeListener=e.addEventListener((function(e){var n=e.isConnected;e=e.type,t._networkType!==e&&t._onNetworkStatusChange({isConnected:void 0!==n&&n,networkType:e})})))}},{key:"start",value:function(){var e=this,t="".concat(this._n,".start");$?(ae.getNetworkType({success:function(n){e._networkType=n.networkType||n.subtype||"",n.networkType===di?Pe.w("".concat(t," no network, please check!")):Pe.i("".concat(t," networkType:").concat(n.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),ae.onNetworkStatusChange(this._mpNetworkStatusCallback)):ne&&(this._networkType=mi,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window.addEventListener("online",this._webOnlineCallback),window.addEventListener("offline",this._webOfflineCallback))}},{key:"_onWebOnline",value:function(){this._onNetworkStatusChange({isConnected:!0,networkType:mi})}},{key:"_onWebOffline",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:di})}},{key:"_onNetworkStatusChange",value:function(e){var t=e.isConnected,n=(e=e.networkType,"".concat(this._n,"._onNetworkStatusChange")),a=!1,o="previous:".concat(this._networkType," current:").concat(e);t?(Pe.i("".concat(n," ").concat(o)),this._networkType!==e&&(a=!0,this._networkType=e,this._m.get(21).reConnect(!0))):this._networkType!==e&&(a=!0,this._networkType=e,Pe.w("".concat(n," no network, please check!")),this._m.get(21).offline()),a&&new $n("networkChange").setMessage("isConnected:".concat(t," ").concat(o)).end()}},{key:"isOnline",value:function(){return this._networkType!==di}},{key:"getNetworkType",value:function(){return this._networkType}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),$?null!==this._mpNetworkStatusCallback&&(ae.offNetworkStatusChange&&ae.offNetworkStatusChange(this._mpNetworkStatusCallback),this._mpNetworkStatusCallback=null):ne?(null!==this._webOnlineCallback&&(window.removeEventListener("online",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener("offline",this._webOfflineCallback),this._webOfflineCallback=null)):te&&this._removeListener&&(this._removeListener(),this._removeListener=null)}}]),hi);function hi(e){a(this,hi),this._m=e,this._networkType=mi,this._n="NetMonitorModule",this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null,this._removeListener=null,this._m.getIEmitInst().on(Ua.A2KEY_AND_TINYID_UPDATED,this._startRN,this)}function gi(e){a(this,gi),(e=ri.call(this,e))._n="EventStatModule",e.TAG="im-ssolog-event",e._reportBody=new li,e.MIN_THRESHOLD=20,e.MAX_THRESHOLD=100,e.WAITING_TIME=6e4,e.REPORT_LEVEL=[4,5,6],e.REPORT_SDKAPPID_BLACKLIST=[],e.REPORT_TINYID_WHITELIST=[],e._lastReportTime=Date.now();var t=e.getIEmitInst();return t.on(Ua.A2KEY_AND_TINYID_UPDATED,e._onLoginSuccess,h(e)),t.on(Ua.CLOUD_CONFIG,e._onCloudConfig,h(e)),e}function fi(e){a(this,fi),this._n="SSOLogBody",this._report=[]}function vi(e){a(this,vi),this._m=e,this._n="StorageModule",this._storageQueue=new Map,this._errorTolerantHandle()}function _i(e,t){return e(t={exports:{}},t.exports),t.exports}var yi,Ei=_i((function(e){var t=Object.prototype.hasOwnProperty,n="~";function a(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,a,i,s){if("function"!=typeof a)throw new TypeError("The listener must be a function");return a=new o(a,i||e,s),i=n?n+t:t,e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],a]:e._events[i].push(a):(e._events[i]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new a:delete e._events[t]}function r(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(n=!1)),r.prototype.eventNames=function(){var e,a,o=[];if(0===this._eventsCount)return o;for(a in e=this._events)t.call(e,a)&&o.push(n?a.slice(1):a);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},r.prototype.listeners=function(e){e=n?n+e:e;var t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var a=0,o=t.length,i=new Array(o);a<o;a++)i[a]=t[a].fn;return i},r.prototype.listenerCount=function(e){return e=n?n+e:e,(e=this._events[e])?e.fn?1:e.length:0},r.prototype.emit=function(e,t,a,o,i,s){var r=n?n+e:e;if(!this._events[r])return!1;var c,l=this._events[r],u=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),u){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,a),!0;case 4:return l.fn.call(l.context,t,a,o),!0;case 5:return l.fn.call(l.context,t,a,o,i),!0;case 6:return l.fn.call(l.context,t,a,o,i,s),!0}for(p=1,c=new Array(u-1);p<u;p++)c[p-1]=arguments[p];l.fn.apply(l.context,c)}else for(var d,m=l.length,p=0;p<m;p++)switch(l[p].once&&this.removeListener(e,l[p].fn,void 0,!0),u){case 1:l[p].fn.call(l[p].context);break;case 2:l[p].fn.call(l[p].context,t);break;case 3:l[p].fn.call(l[p].context,t,a);break;case 4:l[p].fn.call(l[p].context,t,a,o);break;default:if(!c)for(d=1,c=new Array(u-1);d<u;d++)c[d-1]=arguments[d];l[p].fn.apply(l[p].context,c)}return!0},r.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},r.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},r.prototype.removeListener=function(e,t,a,o){if(e=n?n+e:e,this._events[e])if(t){var i=this._events[e];if(i.fn)i.fn!==t||o&&!i.once||a&&i.context!==a||s(this,e);else{for(var r=0,c=[],l=i.length;r<l;r++)(i[r].fn!==t||o&&!i[r].once||a&&i[r].context!==a)&&c.push(i[r]);c.length?this._events[e]=1===c.length?c[0]:c:s(this,e)}}else s(this,e);return this},r.prototype.removeAllListeners=function(e){return e?(e=n?n+e:e,this._events[e]&&s(this,e)):(this._events=new a,this._eventsCount=0),this},r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prefixed=n,e.exports=r.EventEmitter=r})),Ci=["rich.my-imcloud.com","imrich.qcloud.com"],ki=["requestSnapshotUrl"],Ii=(r(Di,Ln),yi=f(Di),i(Di,[{key:"_init",value:function(){this._fileDownloadProxy=this.getFileDownloadProxy(),this._authKey=this.getDowloadFileAuthKey();var e=this.get(18);this.TIMUploadPlugin=e.getPlugin("tim-upload-plugin"),this.TIMUploadPlugin?this._initUploaderMethod():(this.COSSDK=e.getPlugin(e=$?"cos-wx-sdk":"cos-js-sdk"),this.COSSDK?(this._getAuthorizationKey(),this.warn("CosReplacement",e)):this.warn("PluginUndetected"))}},{key:"_onCloudConfig",value:function(){var e=this,t="".concat(this._n,"._onCloudConfig"),n=this.getCloudConfig("upload_size_limit"),a=this.getCloudConfig("simple_cos"),o=this.getCloudConfig("file_dn_list");if(Pe.l("".concat(t," uploadSizeLimit:").concat(n," simpleCos:").concat(a)),!dt(n))try{var i=JSON.parse(n);this.UPLOAD_SIZE_LIMIT={A:i.a?1048576*parseInt(i.a):this.UPLOAD_SIZE_LIMIT.A,F:i.f?1048576*parseInt(i.f):this.UPLOAD_SIZE_LIMIT.F,I:i.i?1048576*parseInt(i.i):this.UPLOAD_SIZE_LIMIT.I,V:i.v?1048576*parseInt(i.v):this.UPLOAD_SIZE_LIMIT.V}}catch(s){}if(dt(a)||(this.isSimpleCos="1"===a),!dt(o))try{JSON.parse(o).forEach((function(t){e._fileDNList.includes(t)||e._fileDNList.push(t)}))}catch(s){}}},{key:"_getAuthorizationKey",value:function(){var e=this,t="".concat(this._n,".").concat("_getAuthorizationKey"),n=new $n("_getAuthorizationKey"),a=Math.ceil(Date.now()/1e3);this.req({P:xn.COS_SIGN,data:{duration:this.expiredTimeLimit}}).then((function(o){o=o.data;var i=(Pe.l("".concat(t," ok. data:"),o),o.expiredTime-a);n.setMessage("requestId:".concat(o.requestId," requestTime:").concat(a," expiredTime:").concat(o.expiredTime," diff:").concat(i,"s")).end(),!$&&o.region&&(e.region=o.region),e.appid=o.appid,e.bucketName=o.bucketName,e.ciUrl=o.ciUrl,e.directory=o.directory,e.downloadUrl=o.downloadUrl,e.uploadUrl=o.uploadUrl,e.cosOptions={secretId:o.secretId,secretKey:o.secretKey,sessionToken:o.sessionToken,expiredTime:o.expiredTime},Pe.l("".concat(t," ok. region:").concat(e.region," bucketName:").concat(e.bucketName)),e._initUploaderMethod()})).catch((function(e){n.setError(e).end(),Pe.w("".concat(t," failed. error:"),e)}))}},{key:"_getCosPreSigUrl",value:function(e){var t=this,n="".concat(this._n,".").concat("_getCosPreSigUrl"),a=Math.ceil(Date.now()/1e3),o=new $n("_getCosPreSigUrl"),i={uploadMethod:e.uploadMethod,platform:this.getPlatform(),SDKAppID:this.getSDKAppID(),userID:e.userID,conversationType:e.conversationType,uploadConfig:[{fileID:1,fileType:e.fileType,fileName:e.fileName}]},s=xn.SIMPLE_COS_PRE_SIG;return this.isSimpleCos||(i={fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration},s=xn.COS_PRE_SIG),this.req({P:s,data:i}).then((function(e){t.tryCount=0,e=e.data||{};var i,s,r=(Pe.l("".concat(n," ok. isSimpleCos:").concat(t.isSimpleCos," data:"),e),"");return r=t.isSimpleCos?(i=(s=e.preSig[0]).uploadUrl,s=s.fileKey,"uploadIP:".concat(e.uploadIP," uploadUrl:").concat(i," fileKey:").concat(s," cost:").concat(jt(a))):"requestId:".concat(e.requestId," expiredTime:").concat(e.expiredTime," diff:").concat(e.expiredTime-a,"s"),o.setMessage(r).end(),e})).catch((function(a){return-1===a.code&&(a.code=Vn.COS_GET_SIG_FAIL),o.setError(a).end(),Pe.w("".concat(n," failed. error:"),a),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,Cn({code:Vn.COS_GET_SIG_FAIL}))}))}},{key:"_initUploaderMethod",value:function(){var e=this;this.TIMUploadPlugin?(this.timUploadPlugin=new this.TIMUploadPlugin,this._cosUploadMethod=function(t,n){e.timUploadPlugin.uploadFile(t,n)}):this.appid&&(this.cos=$?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=$?function(t,n){e.cos.postObject(t,n)}:function(t,n){e.cos.uploadFiles(t,n)})}},{key:"onCheckTimer",value:function(e){!this.COSSDK||this.TIMUploadPlugin||this.isLoggedIn()&&e%60==0&&Math.ceil(Date.now()/1e3)>=this.cosOptions.expiredTime-120&&this._getAuthorizationKey()}},{key:"getFileDNList",value:function(){return this._fileDNList}},{key:"_getAuthorization",value:function(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime})}},{key:"upload",value:function(e){if(!0===e._relayFlag)return Promise.resolve();var t=this.get(26);switch(e.type){case M.MSG_IMAGE:return t.addTotalCount(qn),this._uploadImage(e);case M.MSG_FILE:return t.addTotalCount(qn),this._uploadFile(e);case M.MSG_AUDIO:return t.addTotalCount(qn),this._uploadAudio(e);case M.MSG_VIDEO:return t.addTotalCount(qn),this._uploadVideo(e);default:return Promise.resolve()}}},{key:"_uploadImage",value:function(e){var n=this,a=this.get(2),o=e.getElements()[0],i=a.getMessageOption(e.clientSequence);return this.doUploadImage({file:i.payload.file,to:i.to,message:e,onProgress:function(e){if(o.updatePercent(e),We(i.onProgress))try{i.onProgress(e)}catch(t){return Cn({code:Vn.MSG_ONPROGRESS_ERR})}}}).then((function(a){var i=a.location,s=a.fileType,r=a.fileSize,c=a.width,l=a.height,u=a.smallImageUrl,d=a.smallImageWidth,m=a.smallImageHeight,p=a.largeImageUrl,h=a.largeImageWidth,g=a.largeImageHeight,f=a.imageInfoArray;a=n.isPrivateNetWork()?i:rt(i),o.updateImageFormat(s);var v,_,y={size:r,url:a,width:c,height:l};if(f&&0<f.length)for(var E=0;E<f.length;E++){var C=f[E];1===C.type?v=C:2===C.type?_=C:y=t(t({},y),C)}else _=u&&p?(v={url:u,width:d,height:m},{url:p,width:h,height:g}):(v=Pt({originUrl:a,originWidth:c,originHeight:l,min:198}),Pt({originUrl:a,originWidth:c,originHeight:l,min:720}));return o.updateImageInfoArray([t({},y),t({},_),t({},v)]),e}))}},{key:"_uploadFile",value:function(e){var t=this,n=this.get(2),a=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadFile({file:o.payload.file,to:o.to,message:e,onProgress:function(e){if(a.updatePercent(e),We(o.onProgress))try{o.onProgress(e)}catch(t){return Cn({code:Vn.MSG_ONPROGRESS_ERR})}}}).then((function(n){var o=n=n.location;return t.isPrivateNetWork()||(o=ia(o=rt(n),t._fileDownloadProxy,t._authKey,t._fileDNList)),a.updateFileUrl(o),e}))}},{key:"_uploadAudio",value:function(e){var t=this,n=this.get(2),a=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadAudio({file:o.payload.file,to:o.to,message:e,onProgress:function(e){if(a.updatePercent(e),We(o.onProgress))try{o.onProgress(e)}catch(t){return Cn({code:Vn.MSG_ONPROGRESS_ERR})}}}).then((function(n){return n=n.location,n=t.isPrivateNetWork()?n:rt(n),a.updateAudioUrl(n),e}))}},{key:"_uploadVideo",value:function(e){var t=this,n=this.get(2),a=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadVideo({file:o.payload.file,to:o.to,message:e,onProgress:function(e){if(a.updatePercent(e),We(o.onProgress))try{o.onProgress(e)}catch(t){return Cn({code:Vn.MSG_ONPROGRESS_ERR})}}}).then((function(n){var o=n.location;return n=n.snapshotInfo,o=t.isPrivateNetWork()?o:rt(o),a.updateVideoUrl(o),He(n)||a.updateSnapshotInfo(n),e}))}},{key:"_checkSizeError",value:function(e){var t="";return"A"===e?t="audio":"I"===e?t="image":"V"===e?t="video":"F"===e&&(t="file"),Cn({code:Vn["MSG_".concat(e,"_SIZE_LIMIT")],message:this.getErrMsg("UploadSizeLimit",t,"".concat(this.UPLOAD_SIZE_LIMIT[e]/1048576,"MB"))})}},{key:"doUploadImage",value:function(e){var t,n,a=this;return!e.file||this._isEmptyFileList(e.file.files)?Cn({code:Vn.MSG_I_SELECT_F_FIRST}):!0!==(t=this._checkImageType(e.file))||!0!==(t=this._checkImageSize(e.file))?t:(n=null,this._setUploadFileType(1),this.uploadByCOS(e).then((function(t){if(n=t,a.isPrivateNetWork())return wt(i);if(ze(n.imageInfoArray)){var o=n.imageInfoArray.find((function(e){return 3===e.type}));if(o)return o}var i;return te?{width:e.file.width,height:e.file.height}:(i=rt(t.location),a.COSSDK?wt(i):wt(i=ia(i,a._fileDownloadProxy,a._authKey,a._fileDNList)))})).then((function(e){return n.width=e.width,n.height=e.height,Promise.resolve(n)})))}},{key:"_checkImageType",value:function(e){var t="";return t=$?e.url.slice(e.url.lastIndexOf(".")+1):te?e.type.split("/")[1]:e.files[0].name.slice(e.files[0].name.lastIndexOf(".")+1),0<=Qa.indexOf(t.toLowerCase())||Cn({code:Vn.MSG_I_TYPES_LIMIT})}},{key:"_checkImageSize",value:function(e){return 0===(e=($||te?e:e.files[0]).size)?Cn({code:Vn.MSG_F_IS_EMPTY}):e<this.UPLOAD_SIZE_LIMIT.I||this._checkSizeError("I")}},{key:"doUploadFile",value:function(e){return!e.file||this._isEmptyFileList(e.file.files)?Cn({code:Vn.MSG_F_SELECT_F_FIRST}):e.file.files[0].size>this.UPLOAD_SIZE_LIMIT.F?this._checkSizeError("F"):0===e.file.files[0].size?Cn({code:Vn.MSG_F_IS_EMPTY}):(this._setUploadFileType(255),this.uploadByCOS(e))}},{key:"doUploadVideo",value:function(e){return e.file.videoFile.size>this.UPLOAD_SIZE_LIMIT.V?this._checkSizeError("V"):0===e.file.videoFile.size?Cn({code:Vn.MSG_F_IS_EMPTY}):-1===$a.indexOf(e.file.videoFile.type)?Cn({code:Vn.MSG_V_TYPES_LIMIT}):(this._setUploadFileType(2),$||te?this.handleVideoUpload(t(t({},e),{},{file:e.file.videoFile})):ne?this.handleVideoUpload(e):void 0)}},{key:"handleVideoUpload",value:function(e){var t=this;return new Promise((function(n,a){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){a(new On({code:Vn.MSG_V_UPLOAD_FAIL}))}))}))}))}},{key:"doUploadAudio",value:function(e){return e.file?e.file.size>this.UPLOAD_SIZE_LIMIT.A?this._checkSizeError("A"):0===e.file.size?Cn({code:Vn.MSG_F_IS_EMPTY}):(this._setUploadFileType(3),this.uploadByCOS(e)):Cn({code:Vn.MSG_A_UPLOAD_FAIL})}},{key:"uploadByCOS",value:function(e){var t,n,a,o,i=this;return We(this._cosUploadMethod)?this.timUploadPlugin?this._uploadWithPreSigUrl(e):(t=new $n("upload"),n="".concat(this._n,".uploadByCOS"),a=Date.now(),o=this._getFile(e),new Promise((function(s,r){var c=$?i._createCosOptionsWXMiniApp(e):i._createCosOptionsWeb(e),l=i;i._cosUploadMethod(c,(function(e,c){var u,d,m=Object.create(null);c?e||ze(c.files)&&c.files[0].error?(u=new On({code:Vn.MSG_F_UPLOAD_FAIL}),t.setError(u).end(),Pe.l("".concat(n," failed. error:"),c.files[0].error),403===c.files[0].error.statusCode&&i._getAuthorizationKey(),r(u)):(m.fileName=o.name,m.fileSize=o.size,m.fileType=o.type.slice(o.type.indexOf("/")+1).toLowerCase(),m.location=($?c:c.files[0].data).Location,u=Date.now()-a,c=l._formatFileSize(o.size),d=l._formatSpeed(1e3*o.size/u),c="size:".concat(c," time:").concat(u,"ms speed:").concat(d),Pe.l("".concat(n," success. name:").concat(o.name," ").concat(c)),s(m),(d=i.get(26)).addCost(qn,u),d.addFileSize(qn,o.size),t.setMessage(c).end()):(m=new On({code:Vn.MSG_F_UPLOAD_FAIL}),t.setError(m).end(),Pe.w("".concat(n," failed. error:"),e),403===e.statusCode&&i._getAuthorizationKey(),r(m))}))}))):(this.warn("PluginUndetected"),Cn({code:Vn.COS_UNDETECTED}))}},{key:"_uploadWithPreSigUrl",value:function(e){var t=this,n="".concat(this._n,"._uploadWithPreSigUrl"),a=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(o,i){var s=new $n("upload"),r=e.requestSnapshotUrl,c=void 0===r?void 0:r,l=p(e,ki),u=Date.now();t._cosUploadMethod(l,(function(r,d){if(r||403===d.statusCode)s.setError(new On(r)).end(),p={HttpStatusCode:9999,CostTime:jt(u,!1),error:r,url:e.url},d.data&&d.data.uploadIP&&(p.uploadIP=d.data.uploadIP),t._uploadSSOLog(p),Pe.l("".concat(n," failed, error:"),r),i(new On({code:Vn.MSG_F_UPLOAD_FAIL}));else{var m=Object.create(null),p=d.data.location||"",h=(t.isPrivateNetWork()||0!==p.indexOf("https://")&&0!==p.indexOf("http://")||(p=p.split("//")[1]),m.fileName=a.name,m.fileSize=a.size,m.fileType=a.type.slice(a.type.indexOf("/")+1).toLowerCase(),m.location=p,r=jt(u,!1),p=t._formatFileSize(a.size),t._formatSpeed(1e3*a.size/r));if(p="size:".concat(p," time:").concat(r,"ms speed:").concat(h," res:").concat(JSON.stringify(d.data)),Pe.l("".concat(n," ok. name:").concat(a.name," ").concat(p)),s.setMessage(p).end(),h={HttpStatusCode:d.statusCode,FileSize:a.size,CostTime:r,url:e.url},(d.data&&d.data.uploadIP&&(h.uploadIP=d.data.uploadIP),t._uploadSSOLog(h),p=t.get(26)).addCost(qn,r),p.addFileSize(qn,a.size),h=[],l.thumbUrl&&l.largeUrl&&h.push.apply(h,[t._getSmallImageInfoByUrl(l.thumbUrl,m),t._getLargeImageInfoByUrl(l.largeUrl,m)]),1===t.uploadFileType&&t.isSimpleCos&&!t.isPrivateNetWork()&&(h.push(t._getImageInfoArray(l.downloadUrl,m)),d.data.uploadIP)&&h.push(t._getDownloadIP(l.downloadUrl.split("//")[1].split("/")[0],m)),c&&h.push(t._getSnapshotInfoByUrl(c,m)),0<h.length)return Promise.all(h).then((function(){o(m)}));o(m)}}))}))}))}},{key:"_getDownloadIP",value:function(e,t){var n="".concat(this._n,"._getDownloadIP"),a=Date.now();return this.req({P:xn.GET_IP,data:{domainName:e}}).then((function(e){var o;e.data&&e.data.ip&&(Pe.l("".concat(n," ok. downloadIP:").concat(e.data.ip," cost:").concat(jt(a))),(o=t.location.split("/"))[0]=e.data.ip,t.location=o.join("/"))})).catch((function(e){}))}},{key:"_getImageInfoArray",value:function(e,t){var n=this,a="".concat(this._n,"._getImageInfoArray"),o=Date.now();return this.req({P:xn.GET_IMAGE_INFO,data:{imageUrl:e}}).then((function(e){return e=e.data||{},Pe.l("".concat(a," ok. data: ").concat(JSON.stringify(e)," cost:").concat(jt(o))),t.imageInfoArray=e.imageInfoArray,e})).catch((function(a){t.imageInfoArray=void 0,n._uploadSSOLog({HttpStatusCode:1e4,CostTime:jt(o,!1),url:e})}))}},{key:"_uploadSSOLog",value:function(e){var t,n;this.isSimpleCos&&((t=new $n).setEventType(18),e.error&&t.setError(new On(e.error)),n="HttpStatusCode:".concat(e.HttpStatusCode,"|CosRequestId:").concat(e.CosRequestId||"","|")+"FileAlreadyExist:".concat(e.FileAlreadyExist||0,"|FileSize:").concat(e.FileSize||0,"|CostTime:").concat(e.CostTime),e.uploadIP&&(n+="|FinalIP:".concat(e.uploadIP)),t.setMessage("OK").setMoreMessage(e.url).setExtension(n).end())}},{key:"_getRawOrUploadProxyUrl",value:function(e){var t=this.get(12).getFileUploadProxy(),n=e;return t?e.replace(/^https:\/\/[^/]+/,t):n}},{key:"_getFile",value:function(e){return ze(e.file.files)||Qe(e.file.files)?e.file.files[0]:e.file}},{key:"_formatFileSize",value:function(e){return e<1024?e+"B":e<1048576?Math.floor(e/1024)+"KB":Math.floor(e/1048576)+"MB"}},{key:"_formatSpeed",value:function(e){return e<=1048576?Ot(e/1024,1)+"KB/s":Ot(e/1048576,1)+"MB/s"}},{key:"_createCosOptionsWeb",value:function(e){var t=this._getFile(e),n=(n=t.name).slice(n.lastIndexOf("."));return n=this._genFileName("".concat(ot(999999)).concat(n)),{files:[{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(n),Body:t}],SliceSize:1048576,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Pe.w("onProgress callback error:",n)}},onFileFinish:function(e,t,n){}}}},{key:"_createCosOptionsWXMiniApp",value:function(e){var t=this._getFile(e),n=this._genFileName(t.name);return t=t.url,{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(n),FilePath:t,onProgress:function(t){if(Pe.l(JSON.stringify(t)),"function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Pe.w("onProgress callback error:",n)}}}}},{key:"_createCosOptionsPreSigUrl",value:function(e){var t,n=this,a="",o="",i=0,s=this._getFile(e);return i=$||te?(a=e.message.type===M.MSG_FILE?(t=(t=s.name).slice(t.lastIndexOf(".")),this._genFileName("".concat(ot(999999)).concat(t))):this._genFileName(s.name),o=s.url,1):(t=(t=s.name).slice(t.lastIndexOf(".")),a=this._genFileName("".concat(ot(999999)).concat(t)),o=s,0),this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:a,uploadMethod:i,duration:this.duration,userID:e.message.from,conversationType:St(e.message.conversationID)?1:2}).then((function(t){var i=(u=n.isSimpleCos?t.preSig[0]:t).uploadUrl,s=u.downloadUrl,r=void 0===(r=u.requestSnapshotUrl)?void 0:r,c=u.thumbUrl,l=u.largeUrl,u=u.fileKey;return t=void 0===(t=t.uploadIP)?"":t,{url:n._getRawOrUploadProxyUrl(i),fileType:n.uploadFileType,fileName:a,resources:o,downloadUrl:s,requestSnapshotUrl:r,thumbUrl:c,largeUrl:l,fileKey:u,uploadIP:!n.isPrivateNetWork()&&t,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Pe.w("onProgress callback error:",n),Pe.e(n)}}}}))}},{key:"_genFileName",value:function(e){return"".concat(Dt(),"-").concat(e)}},{key:"_setUploadFileType",value:function(e){this.uploadFileType=e}},{key:"_getSnapshotInfoByUrl",value:function(e,t){var n=this,a="_getSnapshotInfoByUrl",o=new $n(a);return this.req({P:xn.VIDEO_COVER,data:{platform:this.getPlatform(),coverName:this._genFileName(ot(99999)),requestSnapshotUrl:e}}).then((function(e){var i;return e=(e.data||{}).snapshotUrl,Pe.l("".concat(n._n,".").concat(a," ok. snapshotUrl:").concat(e)),o.setMessage("snapshotUrl:".concat(e)).end(),He(e)?{}:wt(i=ia(e,n._fileDownloadProxy,n._authKey,n._fileDNList)).then((function(e){t.snapshotInfo={snapshotUrl:i,snapshotWidth:e.width,snapshotHeight:e.height}}))})).catch((function(e){return Pe.w("".concat(n._n,".").concat(a," failed. error:"),e),o.setCode(e.errorCode).setMessage(e.errorInfo).end(),{}}))}},{key:"_getSmallImageInfoByUrl",value:function(e,t){return wt(ia(e,this._fileDownloadProxy,this._authKey,this._fileDNList)).then((function(n){t.smallImageUrl=e,t.smallImageWidth=n.width,t.smallImageHeight=n.height}))}},{key:"_getLargeImageInfoByUrl",value:function(e,t){return wt(ia(e,this._fileDownloadProxy,this._authKey,this._fileDNList)).then((function(n){t.largeImageUrl=e,t.largeImageWidth=n.width,t.largeImageHeight=n.height}))}},{key:"_isEmptyFileList",value:function(e){return!(!Qe(e)||0!==e.length)}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset"))}}]),Di),Si=["downloadKey","pbDownloadKey","messageList"],Ti=(i(wi,[{key:"uploadMergerMessage",value:function(e,t){var n="".concat(this._n,".").concat("uploadMergerMessage"),a=(Pe.d("".concat(n," message:"),e,"messageBytes:".concat(t)),e=JSON.parse(JSON.stringify(e.payload)).messageList).length,o=this._msgM.get(17).getFileDNList(),i=new $n("uploadMergerMessage");return e.forEach((function(e){sa(e.messageBody[0].type,e.messageBody,o)})),this._msgM.req({P:xn.UPLOAD_MERGER_MSG,data:{messageList:e}}).then((function(e){Pe.d("".concat(n," ok. response:"),e.data);var o={pbDownloadKey:o=(e=e.data).pbDownloadKey,downloadKey:e=e.downloadKey,messageNumber:a};return i.setMessage("".concat(a,"-").concat(t,"-").concat(e)).end(),o})).catch((function(e){throw Pe.w("".concat(n," failed. error:"),e),i.setError(e).end(),e}))}},{key:"downloadMergerMessage",value:function(e){var n=this,a="".concat(this._n,".").concat("downloadMergerMessage"),o=(Pe.d("".concat(a," message:"),e),e.payload.downloadKey),i=this._msgM.getFileDownloadProxy(),s=this._msgM.getDowloadFileAuthKey(),r=new $n("downloadMergerMessage");return r.setMessage("downloadKey:".concat(o)),this._msgM.req({P:xn.DOWNLOAD_MERGER_MSG,data:{downloadKey:o}}).then((function(o){Pe.d("".concat(a," ok. response:"),o.data);var c,l,u=n._msgM.get(17).getFileDNList();return We(e.clearElement)?((c=e.payload).downloadKey,c.pbDownloadKey,c.messageList,c=p(c,Si),e.clearElement(),e.setElement({type:e.type,content:t({messageList:o.data.messageList},c)},i,s,u)):(l=[],o.data.messageList.forEach((function(e){He(e)||(e=new Ea(e,i,s,u),l.push(e))})),e.payload.messageList=l,e.payload.downloadKey="",e.payload.pbDownloadKey=""),r.end(),e})).catch((function(e){throw Pe.w("".concat(a," failed. key:").concat(o," error:"),e),r.setError(e).end(),e}))}},{key:"createMergerMessagePack",value:function(e,t,n){return e.conversationType===M.CONV_C2C?this._createC2CMergerMessagePack(e,t,n):this._createGroupMergerMessagePack(e,t,n)}},{key:"_createC2CMergerMessagePack",value:function(e,t,n){var a=null,o=(t&&(t.offlinePushInfo&&(a=t.offlinePushInfo),!0===t.onlineUserOnly)&&(a?a.disablePush=!0:a={disablePush:!0}),[]),i=(Ke(t)&&Ke(t.messageControlInfo)&&(i=(r=t.messageControlInfo).excludedFromUnreadCount,s=r.excludedFromLastMessage,r=r.excludedFromContentModeration,!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===r)&&o.push("NoMsgCheck"),""),s=(ut(e.cloudCustomData)&&0<e.cloudCustomData.length&&(i=e.cloudCustomData),n.pbDownloadKey),r=n.downloadKey,c=(n=n.messageNumber,(u=e.payload).title),l=u.abstractList,u=u.compatibleText,d=(d=this._msgM.get(6))&&d.isOnlineMessage(e,t)?0:void 0;return{P:xn.SEND_C2C_MSG,data:{fromAccount:this._msgM.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:s,downloadKey:r,title:c,abstractList:l,compatibleText:u,messageNumber:n}}],cloudCustomData:i,clientTime:e.clientTime,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:d,offlinePushInfo:Va(a),messageControlInfo:0!==d?o:void 0,isSupportExtension:!0===e.isSupportExtension?1:0,isRelayMessage:!0===e._relayFlag?1:0}}}},{key:"_createGroupMergerMessagePack",value:function(e,t,n){var a=null,o=(t&&t.offlinePushInfo&&(a=t.offlinePushInfo),[]),i=(Ke(t)&&Ke(t.messageControlInfo)&&(i=(r=t.messageControlInfo).excludedFromUnreadCount,s=r.excludedFromLastMessage,r=r.excludedFromContentModeration,!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===r)&&o.push("NoMsgCheck"),""),s=(ut(e.cloudCustomData)&&0<e.cloudCustomData.length&&(i=e.cloudCustomData),n.pbDownloadKey),r=n.downloadKey,c=(n=n.messageNumber,(u=e.payload).title),l=u.abstractList,u=u.compatibleText,d=this._msgM.get(7);return t=d&&d.isOnlineMessage(e,t)?1:0,{P:xn.SEND_GRP_MSG,data:{fromAccount:this._msgM.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:s,downloadKey:r,title:c,abstractList:l,compatibleText:u,messageNumber:n}}],random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:void 0,cloudCustomData:i,onlineOnlyFlag:t,offlinePushInfo:Va(a),clientTime:e.clientTime,needReadReceipt:!0!==e.needReadReceipt||d.isMessageFromOrToAVChatroom(e.to)?0:1,messageControlInfo:0==t?o:void 0,isSupportExtension:!0===e.isSupportExtension?1:0,isRelayMessage:!0===e._relayFlag?1:0}}}}]),wi),Mi={ERR_SVR_COMM_SENSITIVE_TEXT:80001,ERR_SVR_COMM_BODY_SIZE_LIMIT:80002,OPEN_SERVICE_OVERLOAD_ERROR:60022,ERR_SVR_MSG_PKG_PARSE_FAILED:20001,ERR_SVR_MSG_INTERNAL_AUTH_FAILED:20002,ERR_SVR_MSG_INVALID_ID:20003,ERR_SVR_MSG_PUSH_DENY:20006,ERR_SVR_MSG_IN_PEER_BLACKLIST:20007,ERR_SVR_MSG_BOTH_NOT_FRIEND:20009,ERR_SVR_MSG_NOT_PEER_FRIEND:20010,ERR_SVR_MSG_NOT_SELF_FRIEND:20011,ERR_SVR_MSG_SHUTUP_DENY:20012,ERR_SVR_GROUP_INVALID_PARAMETERS:10004,ERR_SVR_GROUP_PERMISSION_DENY:10007,ERR_SVR_GROUP_NOT_FOUND:10010,ERR_SVR_GROUP_INVALID_GROUPID:10015,ERR_SVR_GROUP_REJECT_FROM_THIRDPARTY:10016,ERR_SVR_GROUP_SHUTUP_DENY:10017,MSG_SEND_FAIL:2100,OVER_FREQUENCY_LIMIT:2996},Ni=[Vn.MSG_ONPROGRESS_ERR,Vn.MSG_I_SELECT_F_FIRST,Vn.MSG_I_TYPES_LIMIT,Vn.MSG_F_IS_EMPTY,Vn.MSG_I_SIZE_LIMIT,Vn.MSG_F_SELECT_F_FIRST,Vn.MSG_F_SIZE_LIMIT,Vn.MSG_V_SIZE_LIMIT,Vn.MSG_V_TYPES_LIMIT,Vn.MSG_A_UPLOAD_FAIL,Vn.MSG_A_SIZE_LIMIT,Vn.COS_UNDETECTED];function wi(e){a(this,wi),this._n="MergerMessageHandler",this._msgM=e}function Di(e){a(this,Di),(e=yi.call(this,e))._n="UploadModule",e.TIMUploadPlugin=null,e.timUploadPlugin=null,e.COSSDK=null,e._cosUploadMethod=null,e.expiredTimeLimit=600,e.appid=0,e.bucketName="",e.ciUrl="",e.directory="",e.downloadUrl="",e.uploadUrl="",e.region="ap-shanghai",e.cos=null,e.cosOptions={secretId:"",secretKey:"",sessionToken:"",expiredTime:0},e.uploadFileType="",e.duration=900,e.tryCount=0,e.UPLOAD_SIZE_LIMIT={A:20971520,F:104857600,I:20971520,V:104857600},e.isSimpleCos=!1,e._fileDownloadProxy="",e._authKey="",e._fileDNList=Ci;var t=e.getIEmitInst();return t.on(Ua.A2KEY_AND_TINYID_UPDATED,e._init,h(e)),t.on(Ua.CLOUD_CONFIG,e._onCloudConfig,h(e)),e}function bi(e){var t=!1;return Object.values(Mi).includes(e)&&(t=!0),120001<=e&&e<=13e4||10100<=e&&e<=10200||t}var Li,Pi,Ai,Ri,Oi,Vi,Bi=["conversationID","timePosition","timePeriod"],xi=(r(zi,Ln),Vi=f(zi),i(zi,[{key:"createTextMessage",value:function(e){var t=this.getMyUserID(),n=(e.currentUser=t,e.senderTinyID=this.getMyTinyID(),new Ia(e));return e=ut(e.payload)?e.payload:e.payload.text,e=new ea({text:e}),t=this._getNickAndAvatarByUserID(t),n.setElement(e),n.setNickAndAvatar(t),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createImageMessage",value:function(e){var t=this.getMyUserID(),n=(e.currentUser=t,e.senderTinyID=this.getMyTinyID(),new Ia(e));if($){if(je(o=e.payload.file))return void this.warn("FileUnsupportedInMP","createImageMessage");var a=o.tempFiles[0].path||o.tempFiles[0].tempFilePath,o={url:a,name:a.slice(a.lastIndexOf("/")+1),size:o.tempFiles&&o.tempFiles[0].size||1,type:a.slice(a.lastIndexOf(".")+1).toLowerCase()};e.payload.file=o}else te?(o={url:(a=e.payload.file).uri,name:a.fileName,size:a.fileSize||1,type:a.type,width:a.width,height:a.height},e.payload.file=o):ne&&(je(e.payload.file)?(a=e.payload.file,e.payload.file={files:[a]}):Ke(e.payload.file)&&"undefined"!=typeof uni&&(o=e.payload.file.tempFiles[0],e.payload.file={files:[o]}));return a=new la({imageFormat:Ae.UNKNOWN,uuid:this._generateUUID(e.payload.file),file:e.payload.file}),o=this._getNickAndAvatarByUserID(t),n.setElement(a),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.clientSequence,e),n}},{key:"createAudioMessage",value:function(e){var t=e.payload.file,n=($&&(n={url:t.tempFilePath,name:t.tempFilePath.slice(t.tempFilePath.lastIndexOf("/")+1),size:t.fileSize,second:parseInt(t.duration)/1e3,type:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(".")+1).toLowerCase()},e.payload.file=n),te&&(n={url:t.uri,name:t.uri.slice(t.uri.lastIndexOf("/")+1),size:t.fileSize||1,second:Math.floor(t.duration/1e3),type:t.uri.slice(t.uri.lastIndexOf(".")+1).toLowerCase()},e.payload.file=n),this.getMyUserID()),a=(e.currentUser=n,e.senderTinyID=this.getMyTinyID(),new Ia(e));return t=new da({second:Math.floor(t.duration/1e3),size:t.fileSize||t.size||1,url:t.tempFilePath,uuid:this._generateUUID(e.payload.file)}),n=this._getNickAndAvatarByUserID(n),a.setElement(t),a.setNickAndAvatar(n),a.setNameCard(this._getNameCardByGroupID(a)),this._messageOptionsMap.set(a.clientSequence,e),a}},{key:"createVideoMessage",value:function(e){var t=this.getMyUserID(),n=(e.currentUser=t,e.senderTinyID=this.getMyTinyID(),e.payload.file.thumbUrl="",e.payload.file.thumbSize=0,{});if($){if(X)return void this.warn("VideoUnsupportedInAlipay");if(je(e.payload.file))return void this.warn("FileUnsupportedInMP","createVideoMessage");var a=e.payload.file;ze(a.tempFiles)&&(a=a.tempFiles[0]),n.url=a.tempFilePath,n.name=a.tempFilePath.slice(a.tempFilePath.lastIndexOf("/")+1),n.size=a.size||1,n.second=a.duration||0,n.type=a.tempFilePath.slice(a.tempFilePath.lastIndexOf(".")+1).toLowerCase()}else te?(a=e.payload.file,n.url=a.uri,n.name=a.fileName,n.size=a.fileSize||1,n.second=a.duration||0,n.type=a.type.split("/")[1]):ne&&(je(e.payload.file)?(a=e.payload.file,e.payload.file.files=[a]):Ke(e.payload.file)&&"undefined"!=typeof uni&&(a=e.payload.file.tempFile,e.payload.file.files=[a]),a=e.payload.file,n.url=window.URL.createObjectURL(a.files[0]),n.name=a.files[0].name,n.size=a.files[0].size||1,n.second=a.files[0].duration||0,n.type=a.files[0].type.split("/")[1]);return e.payload.file.videoFile=n,a=new Ia(e),n=new _a({videoFormat:n.type,videoSecond:Ot(n.second,0),videoSize:n.size,remoteVideoUrl:"",videoUrl:n.url,videoUUID:this._generateUUID(e.payload.file.videoFile),thumbUUID:this._generateUUID(e.payload.file.videoFile),thumbWidth:e.payload.file.width||200,thumbHeight:e.payload.file.height||200,thumbUrl:e.payload.file.thumbUrl,thumbSize:e.payload.file.thumbSize,thumbFormat:e.payload.file.thumbUrl.slice(e.payload.file.thumbUrl.lastIndexOf(".")+1).toLowerCase()}),t=this._getNickAndAvatarByUserID(t),a.setElement(n),a.setNickAndAvatar(t),a.setNameCard(this._getNameCardByGroupID(a)),this._messageOptionsMap.set(a.clientSequence,e),a}},{key:"createCustomMessage",value:function(e){var t=this.getMyUserID(),n=(e.currentUser=t,e.senderTinyID=this.getMyTinyID(),new Ia(e));return e=new va({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),t=this._getNickAndAvatarByUserID(t),n.setElement(e),n.setNickAndAvatar(t),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createFaceMessage",value:function(e){var t=this.getMyUserID(),n=(e.currentUser=t,e.senderTinyID=this.getMyTinyID(),new Ia(e));return e=new ua(e.payload),t=this._getNickAndAvatarByUserID(t),n.setElement(e),n.setNickAndAvatar(t),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createMergerMessage",value:function(e){var t=this.getMyUserID(),n=(e.currentUser=t,e.senderTinyID=this.getMyTinyID(),t=this._getNickAndAvatarByUserID(t),new Ia(e));return e=new Ca(e.payload),n.setElement(e),n.setNickAndAvatar(t),n.setNameCard(this._getNameCardByGroupID(n)),n.setRelayFlag(!0),n}},{key:"createForwardMessage",value:function(e){var t,n,a=e.to,o=e.conversationType,i=e.priority,s=e.payload,r=e.needReadReceipt,c=e.receiverList;return ze(s._elements)?(t=this.getMyUserID(),n=this._getNickAndAvatarByUserID(t),s.type===M.MSG_GRP_TIP?Cn({code:Vn.MSG_FORWARD_TYPE_INVALID}):(o={to:a,conversationType:o,conversationID:"".concat(o).concat(a),priority:i,isPlaceMessage:0,status:In,currentUser:t,senderTinyID:this.getMyTinyID(),cloudCustomData:e.cloudCustomData||s.cloudCustomData||"",needReadReceipt:r,receiverList:c,isSupportExtension:e.isSupportExtension||!1},(a=new Ia(o)).setElement(s._elements[0]),a.setNickAndAvatar(n),a.setNameCard(this._getNameCardByGroupID(s)),a.setRelayFlag(!0),a)):Cn({code:Vn.MSG_FORWARD_INVALID_ELEMENTS})}},{key:"downloadMergerMessage",value:function(e){return this._mergerMessageHandler.downloadMergerMessage(e)}},{key:"createFileMessage",value:function(e){if($){if(!H&&!q&&!z)return;var n=ae.getSystemInfoSync().SDKVersion;if(H&&Lt(n,"2.5.0")<0)return void this.warn("WXChooseMessageFile");if(q&&Lt(n,"1.18.0")<0)return void this.warn("QQChooseMessageFile")}ne||z?je(e.payload.file)?(n=e.payload.file,e.payload.file={files:[n]}):Ke(e.payload.file)&&"undefined"!=typeof uni&&(o=(n=e.payload.file).tempFiles,n=n.files,a=null,ze(o)?a=o[0]:ze(n)&&(a=n[0]),e.payload.file={files:[a]}):H||q?(n=t(t({},(o=e.payload.file.tempFiles)[0]),{},{url:o[0].path}),e.payload.file={files:[n]}):te&&(o=t(t({},a=e.payload.file),{},{url:a.uri}),e.payload.file={files:[o]}),n=this.getMyUserID();var a=(e.currentUser=n,e.senderTinyID=this.getMyTinyID(),new Ia(e)),o=new fa({uuid:this._generateUUID(e.payload.file),file:e.payload.file});return n=this._getNickAndAvatarByUserID(n),a.setElement(o),a.setNickAndAvatar(n),a.setNameCard(this._getNameCardByGroupID(a)),this._messageOptionsMap.set(a.clientSequence,e),a}},{key:"createLocationMessage",value:function(e){var t=this.getMyUserID(),n=(e.currentUser=t,e.senderTinyID=this.getMyTinyID(),new Ia(e));return e=new ya(e.payload),t=this._getNickAndAvatarByUserID(t),n.setElement(e),n.setNickAndAvatar(t),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"_onNoModule",value:function(){return Cn({code:Vn.NO_MODULE})}},{key:"sendMessageInstance",value:function(e,t){var n=this;if(!1===this.get(29).filterMessage(e,t))return e.hasRiskContent=!0,this._onSendMessageFailed(e,new On({code:Vn.PROFANITY_FOUND}));var a,o,i,s,r=null;if(e.conversationType===M.CONV_C2C)r=this.get(6);else{if(e.conversationType!==M.CONV_GROUP)return Cn({code:Vn.MSG_INVALID_CONV_TYPE});r=this.get(7)}return r?(o="".concat(this._n,".sendMessageInstance"),i=this.get(11),s=r.isOnlineMessage(e,t),this.get(17).upload(e).then((function(){return n._getSendMessageSpecifiedKey(e)===Zn&&n.get(26).addSuccessCount(qn),n._guardForGroup(e).then((function(){if(!e.isSendable())return Cn({code:Vn.MSG_F_URL_IS_EMPTY});n._addSendMessageTotalCount(e),a=Date.now();var o=function(e){var t="utf-8";ne&&document&&(t=document.charset.toLowerCase());var n,a=0,o=e.length;if("utf-8"===t||"utf8"===t)for(var i=0;i<o;i++)(n=e.codePointAt(i))<=127?a+=1:n<=2047?a+=2:n<=65535?a+=3:(a+=4,i++);else if("utf-16"===t||"utf16"===t)for(var s=0;s<o;s++)(n=e.codePointAt(s))<=65535?a+=2:(a+=4,s++);else a=e.replace(/[^\x00-\xff]/g,"aa").length;return a}(JSON.stringify(e));return e.type===M.MSG_MERGER&&11264<o?n._mergerMessageHandler.uploadMergerMessage(e,o).then((function(a){return a=n._mergerMessageHandler.createMergerMessagePack(e,t,a),n.req(a)})):(i.setMessageRandom(e),r.sendMessage(e,t))})).then((function(r){var c=(r=r.data).time,l=r.sequence,u=r.readReceiptCode;return r=r.messageDropReason,Je(u)&&0!==u&&(new $n("sendMessageWithReceipt").setMessage("from:".concat(e.from," to:").concat(e.to," sequence:").concat(l," readReceiptCode:").concat(u)).end(),Pe.w("".concat(o," readReceiptCode:").concat(u," message:").concat(n.getErrMsg(u)))),r&&(u=new $n("messageDropReason"),r="from:".concat(e.from," to:").concat(e.to," sequence:").concat(l," messageDropReason:").concat(r),u.setMessage(r).end(),Pe.w("".concat(o," ").concat(r))),n._addSendMessageSuccessCount(e,a),n._messageOptionsMap.delete(e.clientSequence),!0===e.isResend&&(u=i.findMessage(e.ID))&&(Pe.l("".concat(o," resend ok. ID:").concat(u.ID)),i.deleteLocalMessage(u)),e.status=Sn,e.time=c,r=!1,e.conversationType===M.CONV_GROUP?e.sequence=l:e.conversationType===M.CONV_C2C&&(u=i.getLatestMessageSentByMe(e.conversationID))&&(c=u.nick,l=u.avatar,c===e.nick&&l===e.avatar||(r=!0)),r&&i.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),!0===s?e._onlineOnlyFlag=!0:(i.appendToMessageList(e),u=e,Ke(t)&&Ke(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,u=""),!0===t.messageControlInfo.excludedFromUnreadCount)&&(e._isExcludedFromUnreadCount=!0),c=e.conversationType,It(e.to)&&(c=M.CONV_TOPIC,n.get(10).onMessageSent({groupID:xt(e.to),topicID:e.to,lastMessage:u})),i.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:c,subType:e.conversationSubType,lastMessage:u}]})),e._relayFlag||"TIMImageElem"!==e.type||At(e.payload.imageInfoArray),yn({message:e})}))})).catch((function(t){return n._onSendMessageFailed(e,t,s)}))):this._onNoModule()}},{key:"_guardForGroup",value:function(e){if(e.conversationType!==M.CONV_GROUP)return Promise.resolve();var t=this.get(7);if(!t)return this._onNoModule();if(kt({groupID:e.to})){var n=t.getLocalGroupProfile(e.to);if(n&&n.isSupportTopic)return Cn({code:Vn.MSG_SEND_GRP_WITH_TOPIC_FAIL})}return t.guardForAVChatRoom(e)}},{key:"_onSendMessageFailed",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],a="".concat(this._n,"._onSendMessageFailed"),o=(e.status=Tn,80001!==t.code&&80004!==t.code||(e.hasRiskContent=!0),this.get(11)),i=(o.deleteMessageRandom(e),10100<=t.code&&t.code<=10200||120001<=t.code&&t.code<=13e4);return n||i||!0===o.appendToMessageList(e)&&Pe.l("".concat(a," message stored, ID:").concat(e.ID)),this._addSendMessageFailCountOnUser(e,t),n=new $n("sendMessage"),i="head.seq:".concat(t.data.headSeq," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to),ne&&("connection"in navigator&&(o=navigator.connection,i+=" downlink:".concat(o.downlink," effectiveType:").concat(o.effectiveType," rtt:").concat(o.rtt)),"memory"in window.performance)&&(o=window.performance.memory,i+=" usedJSHeapSize:".concat(o.usedJSHeapSize," totalJSHeapSize:").concat(o.totalJSHeapSize," jsHeapSizeLimit:").concat(o.jsHeapSizeLimit)),n.setMessage(i).setError(t).end(),Pe.e("".concat(a," ").concat(i," error:"),t),Cn(new On({code:t&&t.code?t.code:Vn.MSG_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if([M.MSG_IMAGE,M.MSG_AUDIO,M.MSG_VIDEO,M.MSG_FILE].includes(e.type))return Zn;if(e.conversationType===M.CONV_C2C)return Fn;if(e.conversationType===M.CONV_GROUP){var t=this.get(7);if(t&&(t=t.getLocalGroupProfile(e.to)))return Ct(e=t.type)?Hn:Yn}}},{key:"_addSendMessageTotalCount",value:function(e){(e=this._getSendMessageSpecifiedKey(e))&&this.get(26).addTotalCount(e)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n;(e=this._getSendMessageSpecifiedKey(e))&&((n=this.get(26)).addSuccessCount(e),n.addCost(e,jt(t,!1)))}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){t=void 0===(t=t.code)?-1:t;var n,a=this.get(26);(e=this._getSendMessageSpecifiedKey(e))===Zn&&(n=!1,n=!!Ni.includes(t)||n)?a.addFailedCountOfUserSide(qn):bi(t)&&e&&a.addFailedCountOfUserSide(e)}},{key:"resendMessage",value:function(e,t){return e.isResend=!0,e.status=In,this.sendMessageInstance(e,t)}},{key:"revokeMessage",value:function(e){var t,n,a=this,o=null;return e.conversationType===M.CONV_C2C?o=this.get(6):e.conversationType===M.CONV_GROUP&&(o=this.get(7)),o?((t=new $n("revokeMessage")).setMessage("type:".concat(e.type," from:").concat(e.from," to:").concat(e.to)),n="".concat(this._n,".").concat("revokeMessage"),o.revokeMessage(e).then((function(o){return He(o=o.data.recallRetList)||0===o[0].retCode?(Pe.i("".concat(n," ok. ID:").concat(e.ID)),e.isRevoked=!0,t.end(),a.get(11).onMessageRevoked([e]),yn({message:e})):(o=new On({code:o[0].retCode,data:{message:e}}),t.setCode(o.code).setMoreMessage(o.message).end(),Cn(o))})).catch((function(a){t.setError(a).end();var o=new On({code:a&&a.code?a.code:Vn.MSG_REVOKE_FAIL,message:a&&a.message?a.message:void 0,data:{message:e}});return Pe.w("".concat(n," failed. error:"),a),Cn(o)}))):this._onNoModule()}},{key:"deleteMessage",value:function(e){var t=this,n=null,a=e[0],o=a.conversationID,i="",s=[],r=[];if(a.conversationType===M.CONV_C2C)n=this.get(6),i=o.replace(M.CONV_C2C,""),e.forEach((function(e){e&&e.status===Sn&&e.conversationID===o&&(e._onlineOnlyFlag||s.push("".concat(e.sequence,"_").concat(e.random,"_").concat(e.time)),r.push(e))}));else if(a.conversationType===M.CONV_GROUP)n=this.get(7),i=o.replace(M.CONV_GROUP,""),e.forEach((function(e){e&&e.status===Sn&&e.conversationID===o&&(e._onlineOnlyFlag||s.push("".concat(e.sequence)),r.push(e))}));else if(a.conversationType===M.CONV_SYSTEM)return Cn({code:Vn.CANNOT_DELETE_GRP_SYSTEM_NOTICE});if(!n)return this._onNoModule();if(0===s.length)return this._onMessageDeleted(r);30<s.length&&(s=s.slice(0,30),r=r.slice(0,30));var c=new $n("deleteMessage"),l=(c.setMessage("to:".concat(i," count:").concat(s.length)),"".concat(this._n,".").concat("deleteMessage"));return n.deleteMessage({to:i,keyList:s}).then((function(e){return c.end(),Pe.i("".concat(l," ok")),t._onMessageDeleted(r)})).catch((function(e){return c.setError(e).end(),Pe.w("".concat(l," failed. error:"),e),Cn(e=new On({code:e&&e.code?e.code:Vn.MSG_DELETE_FAIL,message:e&&e.message?e.message:void 0}))}))}},{key:"_onMessageDeleted",value:function(e){return this.get(11).onMessageDeleted(e),En({messageList:e})}},{key:"translateText",value:function(e){var n="".concat(this._n,".").concat("translateText"),a=e.sourceTextList,o=e.sourceLanguage,i=(e=e.targetLanguage,new $n("translateText"));return i.setMessage("sourceLanguage:".concat(o," targetLanguage:").concat(e)),this.req({P:xn.TRANSLATE_TEXT,data:{sourceTextList:a,source:o||"auto",target:e,from:this.getMyTinyID(),SDKAppID:this.getSDKAppID()}}).then((function(e){var a=(e=e.data).error,o=e.requestID;if(e=e.translatedTextList,0===a.code)return i.end(),Pe.i("".concat(n," ok. requestID:").concat(o)),yn({translatedTextList:e});throw t(t({},a),{},{requestID:o})})).catch((function(e){return i.setCode(e.code).setMoreMessage(e.requestID).end(),Pe.w("".concat(n," failed. error:"),e),Cn({code:Vn.TRANSLATE_TEXT_FAIL})}))}},{key:"convertVoiceToText",value:function(e){var n,a,o,i=e.message,s=(e=e.language,i.payload.url);return(i.from===this.getMyUserID()&&"out"===i.flow&&(s=i.payload.remoteAudioUrl),i=/\.(wav|pcm|ogg-opus|speex|silk|mp3|m4a|aac|amr)/).test(s)?(i=i.exec(s)[1]||"mp3",n="16k_zh-PY",e?"zh (cmn-Hans-CN)"===e?n="16k_zh":"en-US"===e?n="16k_en":"yue-Hant-HK"===e?n="16k_yue":"ja-JP"===e&&(n="16k_ja"):n="16k_zh-PY",e="serviceType:".concat(n," url:").concat(s),a="".concat(this._n,".").concat("convertVoiceToText"),Pe.i("".concat(a," ").concat(e)),(o=new $n("convertVoiceToText")).setMessage(e),this.req({P:xn.VOICE_TO_TEXT,data:{url:s,language:n,SDKAppID:this.getSDKAppID(),format:i}}).then((function(e){var n=(e=e.data).error,i=e.requestID;if(e=e.result,0===n.code)return o.end(),Pe.i("".concat(a," ok. requestID:").concat(i)),yn({result:e});throw t(t({},n),{},{requestID:i})})).catch((function(e){return o.setCode(e.code).setMoreMessage(e.requestID||"").end(),Pe.w("".concat(a," failed. error:"),e),Cn({code:Vn.VOICE_TO_TEXT_FAIL})}))):Cn({code:Vn.UNSUPPORTED_VOICE_FORMAT})}},{key:"modifyRemoteMessage",value:function(e){var t=this,n=null,a=e.conversationType,o=e.to,i=this.get(7);if(!i)return this._onNoModule();if(i.isMessageFromOrToAVChatroom(o))return Cn({code:Vn.MSG_MODIFY_DISABLED_IN_AV,data:{message:e}});if(!1===this.get(29).filterMessage(e))return e.hasRiskContent=!0,Cn({code:Vn.PROFANITY_FOUND,data:{message:e}});a===M.CONV_C2C?n=this.get(6):a===M.CONV_GROUP&&(n=this.get(7));var s=new $n("modifyMessage"),r=(s.setMessage("to:".concat(o)),"".concat(this._n,".modifyRemoteMessage"));return n.modifyRemoteMessage(e).then((function(n){return s.end(),Pe.i("".concat(r," ok")),yn({message:n=t._onModifyRemoteMessageResp(e,n.data)})})).catch((function(n){var a;return s.setCode(n.code).setMoreMessage(n.message).end(),Pe.w("".concat(r," failed. error:"),n),20027===n.code?(a=t._onModifyRemoteMessageResp(e,n.data),Cn({code:Vn.MSG_MODIFY_CONFLICT,data:{message:a}})):Cn({code:n.code,message:n.message,data:{message:e}})}))}},{key:"_generateSearchdata",value:function(e){var t=e.conversationID,n=e.timePosition,a=e.timePeriod;return e=p(e,Bi),dt(t)||(St(t)&&(e.account=t.replace(M.CONV_C2C,"")),Tt(t)&&(e.groupID=t.replace(M.CONV_GROUP,""))),Je(a)&&0<a&&(Je(n)&&0<n?e.startTime=n-a:e.startTime=Se()-a),e.startTime&&e.startTime<0&&(e.startTime=void 0),Je(n)&&0<n&&(e.endTime=n),e}},{key:"searchCloudMessages",value:function(e){var t=this,n="searchCloudMessages",a="".concat(this._n,".").concat(n);if(!e)return Cn({code:Vn.OPTIONS_IS_EMPTY,message:this.getErrMsg(Vn.OPTIONS_IS_EMPTY,n)});var o,i,s,r=e.keywordList,c=e.keywordListMatchType,l=e.conversationID,u=e.cursor,d=ze(e.senderUserIDList)&&0<e.senderUserIDList.length,m=ze(e.messageTypeList)&&0<e.messageTypeList.length;if(r||d||m)return o=Date.now(),i=new $n(n),s="keywordList:".concat(r," keywordListMatchType:").concat(c," ")+"convID:".concat(l," cursor:").concat(u),Pe.l("".concat(a," ").concat(s)),this.req({P:xn.MSG_CLOUD_SEARCH,data:this._generateSearchdata(e)}).then((function(n){var r=(c=n.data).code,c=c.message;if(0!==r)return c=t.getErrMsg(60020===r?"SearchCloudMessagesUnavailable":r)||c,r=new On({code:r,message:c}),i.setMessage(s).setError(r).end(),Cn(r);t.get(27).isSearchCloudMessagesEnabled(),r=(c=n.data).cursor,n=c.totalCount,c=c.searchResult;var l="totalCount:".concat(n," cost:").concat(jt(o));return yn({searchResultList:(Pe.l("".concat(a," ok. cursor:").concat(r," ").concat(l)),i.setMessage("".concat(s," ").concat(l)).end(),l=t._handleSearchResults(c,!e.conversationID)),cursor:r,totalCount:n})})).catch((function(e){return i.setMessage(s).setError(e).end(),Cn(e)}));throw Pe.e("[".concat(n,'] Missing required params: "keywordList".')),new Error("Params validate failed.")}},{key:"_handleSearchResults",value:function(e,t){var n=this.get(11);return ze(e)&&0!==e.length?e.map((function(e){var a=e.groupID,o=e.userID,i=e.messageCount,s=(e=void 0===(e=e.messageList)?[]:e,{conversationID:o=a?"".concat(M.CONV_GROUP).concat(a):"".concat(M.CONV_C2C).concat(o),messageCount:i,messageList:[]});return t&&1<i||0<(i=e.filter((function(e){return!!e}))).length&&(e=n.onRoamingMessage(i,o,!1),a&&e.reverse(),s.messageList=e,s.messageCount=e.length),s})):[]}},{key:"_onModifyRemoteMessageResp",value:function(e,t){Pe.d("".concat(this._n,"._onModifyRemoteMessageResp options:"),t);var n=e.conversationType,a=e.from,o=e.to,i=e.random,s=e.sequence,r=(e=e.time,t.elements),c=t.messageVersion;return t=void 0===(t=t.cloudCustomData)?"":t,this.get(11).onMessageModified({conversationType:n,from:a,to:o,time:e,random:i,sequence:s,elements:r,cloudCustomData:t,messageVersion:c})}},{key:"_generateUUID",value:function(e){var t=this.get(12);return t="".concat(t.getSDKAppID(),"-").concat(t.getUserID(),"-").concat(it()),(e=(e=e.name||e.value||e.url||e.tempFilePath)&&e.slice(e.lastIndexOf(".")+1))?"".concat(t,".").concat(e):t}},{key:"getMessageOption",value:function(e){return this._messageOptionsMap.get(e)}},{key:"_getNickAndAvatarByUserID",value:function(e){return this.get(4).getNickAndAvatarByUserID(e)}},{key:"_getNameCardByGroupID",value:function(e){if(e.conversationType===M.CONV_GROUP){var t=this.get(7);if(t)return t.getMyNameCardByGroupID(e.to)}return""}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._messageOptionsMap.clear()}}]),zi),Ui=(r(Ki,Ln),Oi=f(Ki),i(Ki,[{key:"onMsgExtNotify",value:function(e){var t=this,n=(e=e.dataList).messageInfo,a=e.operateType,o=e.operateResultList,i=e.tinyID,s=(e=e.globalSequence,n.clientTime),r=(n=n.random,"".concat(i,"-").concat(s,"-").concat(n)),c=[],l=[],u=(Pe.l("".concat(this._n,".onMsgExtNotify messageID:").concat(r," operateType:").concat(a," globalSequence:").concat(e)),this._updateGlobalSeq(r,e),!1),d=!1;o.forEach((function(e){var n=void 0===(n=e.extensions)?[]:n,o=e.clearSequence;1===a?(u=!0,n.forEach((function(e){c.push({key:e.key,value:e.value})})),t._updateLocalExt(r,n)):2===a?(d=!0,n.forEach((function(e){l.push(e.key)})),t._updateLocalExt(r,n)):3===a&&(d=!0,t._hasLocalExt(r)&&t._getLocalExt(r).forEach((function(e,t){e.seq<=o&&!He(e.value)&&l.push(t)})),t._clearLocalExt(r,o))})),u&&this.emitOEvt(T.MESSAGE_EXTENSIONS_UPDATED,{messageID:r,extensions:c}),d&&this.emitOEvt(T.MESSAGE_EXTENSIONS_DELETED,{messageID:r,keyList:l})}},{key:"setMessageExtensions",value:function(e,t){var n,a,o,i,s,r,c,l="setMessageExtensions";return this.canIUse(V.MSG_EXT)?(n="".concat(this._n,".").concat(l),a=e.ID,o=e.conversationID,i=e.sequence,s=e.time,r=_(t),20<t.length&&(r=t.slice(0,20),Pe.w("".concat(n,". the length of extensions cannot exceed 20."))),t="convID:".concat(o," messageID:").concat(a," sequence:").concat(i," time:").concat(s," count:").concat(r.length),(c=new $n(l)).setMessage(t),Pe.l("".concat(n," ").concat(t)),this._modifyMsgExts(e,r).then((function(e){var t=e.resultList,a=e.successCount;return e=e.failureCount,a="successCount:".concat(a," failCount:").concat(e),c.setMoreMessage(a).end(),Pe.l("".concat(n," ok. ").concat(a)),yn({extensions:t})})).catch((function(e){return c.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))):this.noUse(l)}},{key:"getMessageExtensions",value:function(e){var t,n,a,o,i,s,r,c=this,l="getMessageExtensions";return this.canIUse(V.MSG_EXT)?(t="".concat(this._n,".").concat(l),n=e.ID,i=e.conversationID,a=e.sequence,o=e.time,i="convID:".concat(i," messageID:").concat(n," sequence:").concat(a," time:").concat(o),(s=new $n(l)).setMessage(i),r=void Pe.l("".concat(t," ").concat(i)),this.getMsgExtsMap.has(n)&&(r=this._getGlobalSeq(n)),this._getMsgExts(e,r).then((function(e){return s.end(),Pe.l("".concat(t," ok. extCount:").concat(e.length)),dt(r)&&0<e.length&&c.getMsgExtsMap.set(n,1),yn({extensions:e})})).catch((function(e){return s.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this.noUse(l)}},{key:"deleteMessageExtensions",value:function(e,t){var n,a,o,i,s,r,c,l="deleteMessageExtensions";return this.canIUse(V.MSG_EXT)?(n="".concat(this._n,".").concat(l),a=[],o=3,He(t)||(o=2,t.forEach((function(e){a.push({key:e,value:"",seq:0})}))),t=e.ID,r=e.conversationID,i=e.sequence,s=e.time,r="convID:".concat(r," messageID:").concat(t," sequence:").concat(i," time:").concat(s," operateType:").concat(o),(c=new $n(l)).setMessage(r),Pe.l("".concat(n," ").concat(r)),this._modifyMsgExts(e,a,o).then((function(e){var t=e.resultList,a=e.successCount,i=(e=e.failureCount,"");return 2===o&&(i="success count:".concat(a," fail count:").concat(e)),c.setMoreMessage("".concat(i)).end(),Pe.l("".concat(n," ok. ").concat(i)),yn({extensions:t})})).catch((function(e){return c.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))):this.noUse(l)}},{key:"_modifyMsgExts",value:function(e,t){var n=this,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,o=It(e.to)?M.CONV_TOPIC:e.conversationType,i=void 0,s=(3!==a&&(i=this._getReqExts(e,t)),null);switch(o){case M.CONV_C2C:s=this.get(6);break;case M.CONV_GROUP:s=this.get(7);break;case M.CONV_TOPIC:s=this.get(10);break;default:return Cn({code:Vn.NO_MODULE})}return s.modifyMsgExts(e,i,a).then((function(t){var a=(t=t.data).extensions,o=(t=t.seq,[]),i=0,s=0,r=[];return(a=He(a)?[]:a).forEach((function(e){var t=e.errorCode,n=(e=e.extension).key,a=e.value;e=e.seq,o.push({code:t,key:n,value:a}),0===t?i++:s++,r.push({key:n,value:a,seq:e})})),n._updateGlobalSeq(e.ID,t),0<r.length&&(n._updateLocalExt(e.ID,r),r=null),{resultList:o,successCount:i,failureCount:s}})).catch((function(e){return Cn(e)}))}},{key:"_getReqExts",value:function(e,t){var n,a=[];return this._hasLocalExt(e.ID)?(n=this._getLocalExt(e.ID),t.forEach((function(e){var t=e.key,o=(e=e.value,0);n.has(t)&&(o=n.get(t).seq),a.push({key:t,value:e,seq:o})}))):t.forEach((function(e){var t=e.key;e=e.value,a.push({key:t,value:e,seq:0})})),a}},{key:"_getMsgExts",value:function(e,t){var n=this,a="".concat(this._n,"._getMsgExts"),o=e.ID,i=null;switch(It(e.to)?M.CONV_TOPIC:e.conversationType){case M.CONV_C2C:i=this.get(6);break;case M.CONV_GROUP:i=this.get(7);break;case M.CONV_TOPIC:i=this.get(10);break;default:return Cn({code:Vn.NO_MODULE})}return i.getMessageExtensions(e,t).then((function(t){var i=(t=t.data).extensions,s=t.completeFlag,r=t.globalSequence;return t=t.clearSequence,i=He(i)?[]:i,Pe.l("".concat(a," ok. completeFlag:").concat(s," globalSequence:").concat(r," clearSequence:").concat(t," count:").concat(i.length)),n._updateLocalExt(o,i),n._clearLocalExt(o,t),n._updateGlobalSeq(o,r),1!==s?(t=i.slice(-1)[0].seq+1,n._getMsgExts(e,t)):n._getLocalExtList(o)})).catch((function(e){return Cn(e)}))}},{key:"_hasLocalExt",value:function(e){return this.msgExtMap.has(e)}},{key:"_getLocalExt",value:function(e){return this.msgExtMap.get(e)}},{key:"_updateLocalExt",value:function(e,t){this._hasLocalExt(e)||this.msgExtMap.set(e,new Map);var n=this._getLocalExt(e);t.forEach((function(e){var t=e.key,a=e.value;e=e.seq,n.set(t,{value:void 0===a?"":a,seq:e})}))}},{key:"_clearLocalExt",value:function(e,t){var n;t<=0||!this._hasLocalExt(e)||(n=this._getLocalExt(e)).forEach((function(e,a){e.seq<=t&&n.delete(a)}))}},{key:"_getLocalExtList",value:function(e){var t=[];return this._hasLocalExt(e)&&this._getLocalExt(e).forEach((function(e,n){He(e=e.value)||t.push({key:n,value:e})})),t}},{key:"_getGlobalSeq",value:function(e){return this.globalSeqMap.get(e)}},{key:"_updateGlobalSeq",value:function(e,t){this.globalSeqMap.set(e,t)}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this.msgExtMap.clear(),this.globalSeqMap.clear(),this.getMsgExtsMap.clear()}}]),Ki),Gi=(r(Xi,Ln),Ri=f(Xi),i(Xi,[{key:"onReactionNotifyList",value:function(e){var n=this;(void 0===(e=(e||{}).dataList)?[]:e).forEach((function(e){var a=e.C2CMessageInfo,o=void 0===(o=e.groupMessageInfo)?{}:o,i=(e=void 0===(e=e.reactionList)?[]:e,o=(a=t(t({},void 0===a?{}:a),o)).tinyID,a.clientTime),s=(a=a.random,o="".concat(o,"-").concat(i,"-").concat(a),[]);e.forEach((function(e){dt(e.userIDList)&&(e.userIDList=[],e.count=0),s.push.apply(s,_(e.userIDList))})),Pe.l("".concat(n._n,".onReactionNotifyList messageID:").concat(o," reactionList:").concat(e.length)),n._handleReactionSummary([{messageID:o,reactionList:e}],s).then((function(e){n.emitOEvt(T.MESSAGE_REACTIONS_UPDATED,t({},e[0]))}))}))}},{key:"onReactionNotify",value:function(e){var n=(e=e.dataList||{}).C2CMessageInfo,a=void 0===(a=e.groupMessageInfo)?{}:a,o=e.reactionID,i=(e=e.operateType,a=(n=t(t({},void 0===n?{}:n),a)).tinyID,n.clientTime);n=n.random,a="".concat(a,"-").concat(i,"-").concat(n),Pe.l("".concat(this._n,".onReactionNotify messageID:").concat(a," reactionID:").concat(o," operateType:").concat(e)),1===e?this._addReactedByMyselfMap(a,o):this._removeReactedByMyselfMap(a,o),i="".concat(a,"-").concat(o),this._reactionInfoMap.has(i)&&((n=this._reactionInfoMap.get(i)).reactedByMyself=1===e,this.emitOEvt(T.MESSAGE_REACTIONS_UPDATED,{messageID:a,reactionList:[n]}))}},{key:"addMessageReaction",value:function(e,t){var n,a,o,i,s=this,r="addMessageReaction";return this.canIUse(V.MSG_REACTION)?(n="".concat(this._n,".").concat(r),i=e.ID,a=e.conversationID,a="convID:".concat(a," messageID:").concat(i," reactionID:").concat(t),(o=new $n(r)).setMessage(a),Pe.l("".concat(n," ").concat(a)),i=this._createReactionOperationPack(e,t,1),this._addReactedByMyselfMap(e.ID,t),this.req(i).then((function(){return o.end(),Pe.l("".concat(n," ok.")),yn()})).catch((function(a){return s._removeReactedByMyselfMap(e.ID,t),o.setError(a).end(),Pe.e("".concat(n," failed. error:"),a),Cn(a)}))):this.noUse(r)}},{key:"removeMessageReaction",value:function(e,t){var n,a,o,i,s="removeMessageReaction";return this.canIUse(V.MSG_REACTION)?(n="".concat(this._n,".").concat(s),i=e.ID,a=e.conversationID,a="convID:".concat(a," messageID:").concat(i," reactionID:").concat(t),(o=new $n(s)).setMessage(a),Pe.l("".concat(n," ").concat(a)),i=this._createReactionOperationPack(e,t,2),this._removeReactedByMyselfMap(e.ID,t),this.req(i).then((function(){return o.end(),Pe.l("".concat(n," ok.")),yn()})).catch((function(e){return o.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))):this.noUse(s)}},{key:"getMessageReactions",value:function(e){var n,a,o,i,s,r,c=this,l="getMessageReactions";return this.canIUse(V.MSG_REACTION)?(n="".concat(this._n,".").concat(l),a=e.messageList,r=e.maxUserCountPerReaction,o=a[0].conversationID,o="convID:".concat(o," maxUserCountPerReaction:").concat(r," msgCount:").concat(a.length),(i=new $n(l)).setMessage(o),Pe.l("".concat(n," ").concat(o)),s=new Map,r=this._createReactionSummaryPack(t(t({},e),{},{messageIDMap:s})),this.req(r).then((function(e){e=e.data.resultList;var t=[],n=[];return(void 0===e?[]:e).forEach((function(e){var a=void 0===(a=e.messageKey)?void 0:a,o=void 0===(o=e.messageSequence)?void 0:o;e=void 0===(e=e.reactionList)?[]:e,o=dt(a)?s.get(o):s.get(a),t.push({messageID:o,reactionList:e}),e.forEach((function(e){n.push.apply(n,_(e.userIDList))}))})),c._handleReactionSummary(t,n)})).then((function(e){return i.end(),Pe.l("".concat(n," ok.")),s.clear(),yn({resultList:e})})).catch((function(e){return i.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))):this.noUse(l)}},{key:"getAllUserListOfMessageReaction",value:function(e){var t,n,a,o,i,s,r,c,l=this,u="getAllUserListOfMessageReaction";return this.canIUse(V.MSG_REACTION)?(t="".concat(this._n,".").concat(u),i=e.message,n=e.reactionID,a=e.nextSeq,o=e.count,c=i.ID,i=i.conversationID,i="convID:".concat(i," messageID:").concat(c," reactionID:").concat(n," nextSeq:").concat(a," count:").concat(o),(s=new $n(u)).setMessage(i),Pe.l("".concat(t," ").concat(i)),r={userList:[],nextSeq:0,isCompleted:!1},c=this._createReactionUserListPack(e),this.req(c).then((function(e){var t=void 0===(t=(e=e.data).userIDList)?[]:t;return e=void 0===(e=e.nextSeq)?0:e,r.nextSeq=e,r.isCompleted=0===e,l.get(4).getUserNickAndAvatar(t)})).then((function(e){return r.userList=e,s.end(),Pe.l("".concat(t," ok.")),yn(r)})).catch((function(e){return s.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this.noUse(u)}},{key:"_createReactionOperationPack",value:function(e,t,n){var a,o,i=void 0;return t={reactionID:t,userIDList:[this.getMyUserID()]},e.conversationType===M.CONV_C2C&&(a=this.get(6),i=1===n?xn.ADD_C2C_MSG_REACTION:xn.RM_C2C_MSG_REACTION,t.from=e.from,t.to=e.to,t.messageKey=a.getMessageKey(e)),e.conversationType===M.CONV_GROUP&&(a=void 0,o=e.to,It(e.to)&&(o=xt(a=e.to)),i=1===n?xn.ADD_GRP_MSG_REACTION:xn.RM_GRP_MSG_REACTION,t.groupID=o,t.topicID=a,t.messageSequence=e.sequence),{P:i,data:t}}},{key:"_createReactionSummaryPack",value:function(e){var t,n,a,o=e.messageList,i=void 0===(i=e.maxUserCountPerReaction)?10:i,s=e.messageIDMap,r=void 0,c=void 0;return(e=o[0]).conversationType===M.CONV_C2C&&(t=this.get(6),n=o.map((function(e){var n=t.getMessageKey(e);return s.set(n,e.ID),n})),r=xn.GET_C2C_MSG_REACTIONS,c={from:e.from,to:e.to,messageKeyList:n,count:i}),e.conversationType===M.CONV_GROUP&&(n=void 0,a=e.to,It(e.to)&&(a=xt(n=e.to)),e=o.map((function(e){return s.set(e.sequence,e.ID),e.sequence})),r=xn.GET_GRP_MSG_REACTIONS,c={groupID:a,topicID:n,messageSequenceList:e,count:i}),{P:r,data:c}}},{key:"_createReactionUserListPack",value:function(e){var t=e.message,n=e.reactionID,a=e.nextSeq,o=void 0;return n={reactionID:n,nextSeq:void 0===a?0:a,count:100<(e=void 0===(e=e.count)?100:e)?100:e},t.conversationType===M.CONV_C2C&&(a=this.get(6),o=xn.GET_C2C_MSG_REACTION_USER_LIST,n.from=t.from,n.to=t.to,n.messageKey=a.getMessageKey(t)),t.conversationType===M.CONV_GROUP&&(e=void 0,a=t.to,It(t.to)&&(a=xt(e=t.to)),o=xn.GET_GRP_MSG_REACTION_USER_LIST,n.groupID=a,n.topicID=e,n.messageSequence=t.sequence),{P:o,data:n}}},{key:"_handleReactionSummary",value:function(e,t){var n=this;return this.get(4).getUserNickAndAvatar(t).then((function(t){var a=[];return e.forEach((function(e){var o=[];e.reactionList.forEach((function(a){var i=a.reactionID,s=a.count,r=a.userIDList,c=(a=void 0===(a=a.reactedByMyself)?void 0:a,[]);r.forEach((function(e){t.forEach((function(t){e===t.userID&&c.push(t)}))})),r={reactionID:i,totalUserCount:s,partialUserList:c,reactedByMyself:n._computeReactedByMyself({reactedByMyself:a,messageID:e.messageID,reactionID:i})},o.push(r),dt(a)&&!n._reactedByMyselfMap.has(e.messageID)&&(s="".concat(e.messageID,"-").concat(i),n._reactionInfoMap.set(s,r))})),a.push({messageID:e.messageID,reactionList:o})})),a}))}},{key:"_addReactedByMyselfMap",value:function(e,t){this._reactedByMyselfMap.has(e)||this._reactedByMyselfMap.set(e,[]),-1===(e=this._reactedByMyselfMap.get(e)).indexOf(t)&&e.push(t)}},{key:"_removeReactedByMyselfMap",value:function(e,t){this._reactedByMyselfMap.has(e)&&-1<(t=(e=this._reactedByMyselfMap.get(e)).indexOf(t))&&e.splice(t,1)}},{key:"_computeReactedByMyself",value:function(e){var t=e.reactedByMyself,n=e.messageID;return e=e.reactionID,dt(t)?!!this._reactedByMyselfMap.has(n)&&this._reactedByMyselfMap.get(n).includes(e):1===t}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._reactedByMyselfMap.clear(),this._reactionInfoMap.clear()}}]),Xi),Fi=(r(Ji,Ln),Ai=f(Ji),i(Ji,[{key:"sendMessage",value:function(e){var t=this,n=this._createMsg(e);if(null===n)return Cn({code:Vn.MSG_SEND_FAIL});this._addSendMessageTotalCount(n);var a=Date.now();return this.get(11).setMessageRandom(n),this._sendComboMessage(n,e).then((function(e){var o=(e=e.data).time,i=e.sequence;return Je(e=e.readReceiptCode)&&0!==e&&(new $n("sendMessageWithReceipt").setMessage("from:".concat(n.from," to:").concat(n.to," sequence:").concat(i," readReceiptCode:").concat(e)).end(),Pe.w("".concat(t._n,".sendMessage readReceiptCode:").concat(e," message:").concat(t.getErrMsg(e)))),t._addSendMessageSuccessCount(n,a),e=t.get(11),n.status=Sn,n.time=o,n.conversationType===M.CONV_GROUP&&(n.sequence=i),e.appendToMessageList(n),o=n,!0===n._isExcludedFromLastMessage&&(o=""),e.onMessageSent({conversationOptionsList:[{conversationID:n.conversationID,unreadCount:0,type:n.conversationType,subType:n.conversationSubType,lastMessage:o}]}),yn({message:n})})).catch((function(e){return t._onSendMessageFailed(n,e)}))}},{key:"_sendComboMessage",value:function(e,t){var n=this._m.get(20),a="";return e.conversationType===M.CONV_C2C&&(a="".concat(O.NAME.OPEN_IM,".").concat(xn.SEND_C2C_MSG)),e.conversationType===M.CONV_GROUP&&(a="".concat(O.NAME.GRP,".").concat(xn.SEND_GRP_MSG)),n.sendComboMessage({servcmd:a,data:t})}},{key:"_createMsg",value:function(e){var t="".concat(this._n,"._createMsg"),n=null;try{var a,o=this.getMyUserID(),i={};i.senderTinyID=this.getMyTinyID(),i.currentUser=o,i.from=e.From_Account||o,e.GroupId?(i.conversationID="".concat(M.CONV_GROUP).concat(e.GroupId),i.conversationType=M.CONV_GROUP,i.to=e.GroupId):e.To_Account&&(i.conversationID="".concat(M.CONV_C2C).concat(e.To_Account),i.conversationType=M.CONV_C2C,i.to=e.To_Account),i.time=e.MsgTimeStamp||0,i.random=e.Random||e.MsgRandom||0,i.priority=e.MsgPriority,ut(e.CloudCustomData)&&0<e.CloudCustomData.length&&(i.cloudCustomData=e.CloudCustomData),ze(e.SendMsgControl)&&(i.messageControlInfo={},e.SendMsgControl.includes("NoUnread")&&(i.messageControlInfo.excludedFromUnreadCount=1),e.SendMsgControl.includes("NoLastMsg"))&&(i.messageControlInfo.excludedFromLastMessage=1),i.conversationType===M.CONV_GROUP&&ze(e.To_Account)&&0<e.To_Account.length&&(a=e.To_Account,50<e.To_Account.length&&(a=e.To_Account.slice(0,50),Pe.w("".concat(t," To_Account must be less than or equal to 50."))),i.receiverList=_(a),e.To_Account=_(a)),1!==e.IsNeedReadReceipt&&1!==e.NeedReadReceipt||(i.needReadReceipt=!0),1===e.SupportMessageExtension&&(i.isSupportExtension=!0),(n=new Ia(i)).status=In,e.MsgClientTime=n.clientTime,n.conversationType===M.CONV_C2C&&(e.MsgSeq=n.sequence);for(var s,r=e.MsgBody.length,c=0;c<r;c++)"TIMTextElem"===(s=e.MsgBody[c]).MsgType?n.setTextElement(s.MsgContent.Text):"TIMCustomElem"===s.MsgType?n.setCustomElement({data:s.MsgContent.Data||"",description:s.MsgContent.Desc||"",extension:s.MsgContent.Ext||""}):"TIMFaceElem"===s.MsgType&&n.setFaceElement({index:s.MsgContent.Index,data:s.MsgContent.Data});var l=n.getElements();n.payload=l[0].content,n.type=l[0].type}catch(u){n=null,Pe.e("".concat(t," failed. error:"),u)}return n}},{key:"_onSendMessageFailed",value:function(e,t){e.status=Tn,this.get(11).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new $n("sendMessage"),a="head.seq:".concat(t.data.headSeq," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to);return n.setMessage(a).setError(t).end(),Pe.e("".concat(this._n,"._onSendMessageFailed ").concat(a," error:"),t),Cn(new On({code:t&&t.code?t.code:Vn.MSG_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){return e.conversationType===M.CONV_C2C?Fn:e.conversationType===M.CONV_GROUP&&(e=this.get(7).getLocalGroupProfile(e.to))?Ct(e=e.type)?Hn:Yn:void 0}},{key:"_addSendMessageTotalCount",value:function(e){(e=this._getSendMessageSpecifiedKey(e))&&this.get(26).addTotalCount(e)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n;(e=this._getSendMessageSpecifiedKey(e))&&((n=this.get(26)).addSuccessCount(e),n.addCost(e,jt(t,!1)))}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){t=void 0===(t=t.code)?-1:t;var n=this.get(26);e=this._getSendMessageSpecifiedKey(e),bi(t)&&e&&n.addFailedCountOfUserSide(e)}}]),Ji),Yi=(r(ji,Ln),Pi=f(ji),i(ji,[{key:"registerPlugin",value:function(e){var t=this,n="0";Object.keys(e).forEach((function(a){t.plugins[a]=e[a],"tim-upload-plugin"===a&&"function"==typeof e[a].getVersion&&(n=e[a].getVersion())})),new $n("registerPlugin").setMessage("".concat(Object.keys(e))).setMoreMessage("version:".concat(n)).end()}},{key:"getPlugin",value:function(e){return this.plugins[e]}},{key:"reset",value:function(){}}]),ji),Hi=(r(qi,Ln),Li=f(qi),i(qi,[{key:"_init",value:function(){this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"_startSync",value:function(e){var n=this,a=e.cookie,o=e.syncFlag,i=e.isOnlineSync,s="".concat(this._n,"._startSync"),r=(Pe.l("".concat(s," options:"),e),new $n("syncUnread"));r.setMessage(JSON.stringify(e)),this.req({P:xn.SYNC_UNREAD_MSG,data:{cookie:a,syncFlag:o,isOnlineSync:i}}).then((function(e){var a=(o=e.data).cookie,o=o.syncFlag,i="$cookie:".concat(a," syncFlag:").concat(o);Pe.l("".concat(s," ok. ").concat(i)),n._cookie=a,r.setMoreMessage(i).end(),He(a)||(0===o||1===o?(n._dispatch(t(t({},e.data),{},{isSyncingEnded:!1})),n._startSync({cookie:a,syncFlag:o,isOnlineSync:0})):2===o&&n._dispatch(t(t({},e.data),{},{isSyncingEnded:!0})))})).catch((function(e){r.setError(e).end(),Pe.e("".concat(s," failed. error:"),e)}))}},{key:"_dispatch",value:function(e){e.eventArray&&this.get(20).onMessage({head:{},body:{eventArray:e.eventArray,isInstantMessage:this._onlineSyncFlag,isSyncingEnded:e.isSyncingEnded}}),this.get(6).onNewMessage({dataList:e.messageList,isInstantMessage:!!e.isSyncingEnded&&this._onlineSyncFlag,C2CRemainingUnreadList:e.C2CRemainingUnreadList,C2CPairUnreadList:e.C2CPairUnreadList,isSyncingEnded:e.isSyncingEnded})}},{key:"syncOnNeed",value:function(){Pe.l("".concat(this._n,".syncOnNeed cookie:").concat(this._cookie)),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1})}},{key:"syncOnReconnected",value:function(){Pe.l("".concat(this._n,".syncOnReconnected cookie:").concat(this._cookie)),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._onlineSyncFlag=!1,this._cookie=""}}]),qi),Zi={req:{toAccount:"To_Account",fromAccount:"From_Account",to:"To_Account",from:"From_Account",groupID:"GroupId",groupAtUserID:"GroupAt_Account",extension:"Ext",data:"Data",description:"Desc",elements:"MsgBody",sizeType:"Type",downloadFlag:"Download_Flag",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",videoUrl:"",imageUrl:"URL",fileUrl:"Url",uuid:"UUID",priority:"MsgPriority",receiverUserID:"To_Account",receiverGroupID:"GroupId",messageSender:"SenderId",messageReceiver:"ReceiverId",nick:"From_AccountNick",avatar:"From_AccountHeadurl",messageNumber:"MsgNum",pbDownloadKey:"PbMsgKey",downloadKey:"JsonMsgKey",applicationType:"PendencyType",userIDList:"To_Account",groupNameList:"GroupName",userID:"To_Account",groupAttributeList:"GroupAttr",mainSequence:"AttrMainSeq",avChatRoomKey:"BytesKey",attributeControl:"AttrControl",sequence:"seq",messageControlInfo:"SendMsgControl",updateSequence:"UpdateSeq",clientTime:"MsgClientTime",sequenceList:"MsgSeqList",topicID:"TopicId",customData:"CustomString",isSupportTopic:"SupportTopic",isWebUniapp:"is_web_uniapp",isSupportExtension:"SupportMessageExtension",messageSequence:"MsgSeq",messageKey:"MsgKey",startSequence:"startSeq",simplifiedMessage:"DownsizeFlag",isRelayMessage:"IsRelayMsg",reactionID:"Reaction",messageSequenceList:"MsgSeqList",messageKeyList:"MsgKeyList",cmConfigID:"CustomModerationConfigID"},res:{MsgPriority:"priority",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",Download_Flag:"downloadFlag",GroupId:"groupID",Member_Account:"userID",MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",MsgSeq:"sequence",MsgRandom:"random",MsgTime:"time",MsgTimeStamp:"time",MsgContent:"content",MsgBody:"elements",From_AccountNick:"nick",From_AccountHeadurl:"avatar",GroupWithdrawInfoArray:"revokedInfos",GroupReadInfoArray:"groupMessageReadNotice",LastReadMsgSeq:"lastMessageSeq",WithdrawC2cMsgNotify:"c2cMessageRevokedNotify",C2cWithdrawInfoArray:"revokedInfos",C2cReadedReceipt:"c2cMessageReadReceipt",ReadC2cMsgNotify:"c2cMessageReadNotice",LastReadTime:"peerReadTime",MsgRand:"random",MsgType:"type",MsgShow:"messageShow",NextMsgSeq:"nextMessageSeq",FaceUrl:"avatar",ProfileDataMod:"profileModify",Profile_Account:"userID",ValueBytes:"value",ValueNum:"value",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgFrom_AccountExtraInfo:"messageFromAccountExtraInformation",Operator_Account:"operatorID",OpType:"operationType",ReportType:"operationType",UserId:"userID",User_Account:"userID",List_Account:"userIDList",MsgOperatorMemberExtraInfo:"operatorInfo",MsgMemberExtraInfo:"memberInfoList",ImageUrl:"avatar",NickName:"nick",MsgGroupNewInfo:"newGroupProfile",MsgAppDefinedData:"groupCustomField",Owner_Account:"ownerID",GroupFaceUrl:"avatar",GroupIntroduction:"introduction",GroupNotification:"notification",GroupApplyJoinOption:"joinOption",MsgKey:"messageKey",GroupInfo:"groupProfile",ShutupTime:"muteTime",Desc:"description",Ext:"extension",GroupAt_Account:"groupAtUserID",MsgNum:"messageNumber",PbMsgKey:"pbDownloadKey",JsonMsgKey:"downloadKey",MsgModifiedFlag:"isModified",PendencyItem:"applicationItem",PendencyType:"applicationType",AddTime:"time",AddSource:"source",AddWording:"wording",ProfileImImage:"avatar",PendencyAdd:"friendApplicationAdded",FrienPencydDel_Account:"friendApplicationDeletedUserIDList",Peer_Account:"userID",GroupAttr:"groupAttributeList",GroupAttrAry:"groupAttributeList",AttrMainSeq:"mainSequence",seq:"sequence",GroupAttrOption:"groupAttributeOption",BytesChangedKeys:"changedKeyList",GroupAttrInfo:"groupAttributeList",GroupAttrSeq:"mainSequence",PushChangedAttrValFlag:"isWithChangedAttributeInfo",SubKeySeq:"sequence",Val:"value",MsgGroupFromCardName:"senderNameCard",MsgGroupFromNickName:"senderNick",C2cNick:"peerNick",C2cImage:"peerAvatar",SendMsgControl:"messageControlInfo",NoLastMsg:"excludedFromLastMessage",NoUnread:"excludedFromUnreadCount",UpdateSeq:"updateSequence",MuteNotifications:"muteFlag",MsgClientTime:"clientTime",TinyId:"tinyID",GroupMsgReceiptList:"readReceiptList",ReadNum:"readCount",UnreadNum:"unreadCount",TopicId:"topicID",MillionGroupFlag:"communityType",SupportTopic:"isSupportTopic",MsgTopicNewInfo:"newTopicInfo",ShutupAll:"muteAllMembers",CustomString:"customData",TopicFaceUrl:"avatar",TopicIntroduction:"introduction",TopicNotification:"notification",TopicIdArray:"topicIDList",MsgVersion:"messageVersion",C2cMsgModNotifys:"c2cMessageModified",GroupMsgModNotifys:"groupMessageModified",ApplyJoinOption:"joinOption",MsgFlag:"messageRemindType",AtInfoList:"groupAtInfoList",AtFlagList:"groupAtType",AtMsgSeq:"sequence",BanDuration:"duration",BanDescription:"reason",NotVisible:"invisible",BytesTag:"tag",BytesValue:"value",RptBytesValue:"value",LatestSeq:"globalSequence",ClearSeq:"clearSequence",SupportMessageExtension:"isSupportExtension",ExtensionList:"extensions",GroupCounter:"counterList",Revoker_Account:"revoker",MsgExtensionNotify:"messageExtensionNotify",ExtensionC2cMsgInfo:"messageInfo",ExtensionGroupMsgInfo:"messageInfo",MsgOptType:"operateType",SetKVInfo:"operateResultList",DeleteKVInfo:"operateResultList",ClearKVInfo:"operateResultList",MsgKeyValue:"extensions",ClearMsgSeq:"clearSequence",MsgLastSeq:"globalSequence",InviteJoinOption:"inviteOption",MemberList_Account:"inviteeList",MsgMemberExtraInfoList:"inviteeInfoList",E:"event",GInf:"groupProfile",MCT:"clientTime",MR:"random",MP:"priority",MTS:"time",GId:"groupID",MS:"sequence",CCD:"cloudCustomData",F_Account:"from",F_Hd:"avatar",F_NN:"nick",GN:"groupName",GT:"groupType",IsSys:"isSystemMessage",OpInf:"operatorInfo",Img:"avatar",NN:"nick",OnlineInf:"onlineMemberInfo",ET:"expireTime",Num:"onlineMemberNum",Opt:"operationType",O_Account:"operatorID",RT:"operationType",UDF:"userDefinedField",L_Account:"userIDList",IsPlaceMsg:"isPlaceMessage",MsgCheckResult:"checkResult",Results:"resultList",Reaction:"reactionID",Reaction_Account:"userIDList",MsgReactionNotifyList:"messageReactionNotifyList",MsgReactionNotify:"messageReactionNotify",MsgReactionSummary:"reactionList",C2CMsgInfo:"C2CMessageInfo",GroupMsgInfo:"groupMessageInfo",int32_err_code:"errorCode",str_err_msg:"errorMsg",MsgDropReason:"messageDropReason",ReactedByMe:"reactedByMyself",Level:"messageRemindType",PeerReadTime:"timestamp",NoUnreadSeqList:"excludedUnreadSequenceList",NewMsg:"topicLatestMessage"},ignoreKeyWord:["C2C","ID","USP"]};function qi(e){return a(this,qi),(e=Li.call(this,e))._n="SyncUnreadMsgModule",e._cookie="",e._onlineSyncFlag=!1,e.getIEmitInst().on(Ua.A2KEY_AND_TINYID_UPDATED,e._init,h(e)),e}function ji(e){return a(this,ji),(e=Pi.call(this,e))._n="PluginModule",e.plugins={},e}function Ji(e){return a(this,Ji),(e=Ai.call(this,e))._n="ComboMsgModule",e}function Xi(e){return a(this,Xi),(e=Ri.call(this,e))._n="MsgReactionModule",e._reactedByMyselfMap=new Map,e._reactionInfoMap=new Map,e}function Ki(e){return a(this,Ki),(e=Oi.call(this,e))._n="MsgExtModule",e.msgExtMap=new Map,e.globalSeqMap=new Map,e.getMsgExtsMap=new Map,e}function zi(e){return a(this,zi),(e=Vi.call(this,e))._n="MessageModule",e._messageOptionsMap=new Map,e._mergerMessageHandler=new Ti(h(e)),e}function Wi(e,t){if("string"==typeof e||Array.isArray(e))return t=Object.assign({pascalCase:!1},t),0===(e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e=e=(e=e!==e.toLowerCase()?Qi(e):e).replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})).replace(/\d+(\w|$)/g,(function(e){return e.toUpperCase()})),t.pascalCase?e.charAt(0).toUpperCase()+e.slice(1):e);throw new TypeError("Expected the input to be `string | string[]`")}var Qi=function(e){for(var t=!1,n=!1,a=!1,o=0;o<e.length;o++){var i=e[o];t&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(e=e.slice(0,o)+"-"+e.slice(o),a=n,n=!(t=!1),o++):n&&a&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(e=e.slice(0,o-1)+"-"+e.slice(o-1),a=n,t=!(n=!1)):(t=i.toLowerCase()===i&&i.toUpperCase()!==i,a=n,n=i.toUpperCase()===i&&i.toLowerCase()!==i)}return e};function $i(e,t){var n=0;return function e(t,a){var o,i,s,r;return 100<++n?(n--,t):ze(t)?(o=t.map((function(t){return Xe(t)?e(t,a):t})),n--,o):Xe(t)?(i=t,s=function(e,t){if(!$e(t))return!1;if(t!==Wi(t))for(var n=0;n<Zi.ignoreKeyWord.length&&!t.includes(Zi.ignoreKeyWord[n]);n++);var o;return dt(a[t])?"OPPOChannelID"===(o=t)?o:o[0].toUpperCase()+Wi(o).slice(1):a[t]},r=Object.create(null),Object.keys(i).forEach((function(e){var t=s(i[e],e);t&&(r[t]=i[e])})),o=Nt(o=r,(function(t,n){return ze(t)||Xe(t)?e(t,a):t})),n--,o):void 0}(e,t)}for(var es,ts=String.fromCharCode,ns=function(e){var t=0|e.charCodeAt(0);if(55296<=t)if(t<56320)if(56320<=(e=0|e.charCodeAt(1))&&e<=57343){if(65535<(t=(t<<10)+e-56613888|0))return ts(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}else t=65533;else t<=57343&&(t=65533);return t<=2047?ts(192|t>>>6,128|63&t):ts(224|t>>>12,128|t>>>6&63,128|63&t)},as=function(e){for(var t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,ns),n=0|t.length,a=new Uint8Array(n),o=0;o<n;o=o+1|0)a[o]=0|t.charCodeAt(o);return a},os=(i(Ns,[{key:"getID",value:function(){return this._id}},{key:"_onOpen",value:function(e){this._handler.onOpen({id:this._id,res:JSON.stringify(e)})}},{key:"_onClose",value:function(e){this._handler.onClose({id:this._id,e:e})}},{key:"_onMessage",value:function(e){e=this._canIUseBinaryFrame?this._isAppCompressedData(e.data)?this._handler.inflate(e.data):function(e){for(var t=new Uint8Array(e),n="",a=0,o=t.length;a<o;){var i=t[a],s=0,r=0;if(i<=127?(s=0,r=255&i):i<=223?(s=1,r=31&i):i<=239?(s=2,r=15&i):i<=244&&(s=3,r=7&i),0<o-a-s)for(var c=0;c<s;)r=r<<6|63&(i=t[a+c+1]),c+=1;else r=65533,s=o-a;n+=String.fromCodePoint(r),a+=s+1}return n}(e.data):e.data,this._handler.onMessage({data:e})}},{key:"_isAppCompressedData",value:function(e){return 67===(e=new Uint8Array(e))[0]&&79===e[1]&&77===e[2]&&80===e[3]}},{key:"_onError",value:function(e){this._handler.onError({id:this._id,e:e})}},{key:"setIsWorkerEnabled",value:function(e){this._isWorkerEnabled=!0}},{key:"close",value:function(e){this._workerSocket&&(this._workerSocket.postMessage({cmd:"stop",code:e}),this._workerSocket.terminate(),this._workerSocket=null),X?(ae.offSocketClose(),ae.offSocketMessage(),ae.offSocketOpen(),ae.offSocketError(),ae.closeSocket()):this._socket&&($?(this._socket.onClose((function(){})),this._socket.onOpen((function(){})),this._socket.onMessage((function(){})),this._socket.onError((function(){}))):(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),J?this._socket.close({code:e}):this._socket.close(e),this._socket=null)}},{key:"send",value:function(e){this._workerSocket?this._workerSocket.postMessage({cmd:"sendMessage",data:this._canIUseBinaryFrame?as(e.data).buffer:e.data}):X?ae.sendSocketMessage({data:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):this._socket&&($?this._socket.send({data:this._canIUseBinaryFrame?as(e.data).buffer:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):this._socket.send(this._canIUseBinaryFrame?as(e.data):e.data))}}]),Ns),is=["keyMap"],ss=["keyMap"],rs="connected",cs="connecting",ls="disconnected",us=(i(Ms,[{key:"_setWebsocketHost",value:function(){var e=this._chM.get(12);this._currentSite=R,this._chM.isOversea()&&(this._currentSite="OVERSEA"),e.isSingaporeSite()?this._currentSite="SINGAPORE":e.isKoreaSite()?this._currentSite="KOREA":e.isGermanySite()?this._currentSite="GERMANY":e.isIndiaSite()?this._currentSite="IND":e.isJapanSite()?this._currentSite="JPN":e.isUSASite()?this._currentSite="USA":e.isIndonesiaSite()&&(this._currentSite="INDONESIA"),O.HOST.setCurrent(this._currentSite)}},{key:"_initConnection",value:function(){var e=this._chM.get(12).getSDKAppID()+"",t=(dt(O.HOST.CURRENT.BACKUP)?this._url=O.HOST.CURRENT.DEFAULT:""===this._url?this._url=O.HOST.CURRENT.DEFAULT0.replace("*",e):-1<this._url.indexOf(e)?this._url=O.HOST.CURRENT.DEFAULT:this._url===O.HOST.CURRENT.DEFAULT?this._url=O.HOST.CURRENT.BACKUP:this._url===O.HOST.CURRENT.BACKUP?this._url=this._canIUseAnyCast()?O.HOST.CURRENT.ANYCAST:O.HOST.CURRENT.DEFAULT:this._url===O.HOST.CURRENT.ANYCAST&&(O.HOST.CURRENT.ANYCAST="",this._url=O.HOST.CURRENT.DEFAULT),e=this._chM.get(12)).getProxyServer();He(t)||(this._url=t),e.isTestEnv()&&(this._url=b.TEST[this._currentSite].DEFAULT),this._connect(),this._nextPingTs=0}},{key:"_canIUseAnyCast",value:function(){return ne&&O.HOST.CURRENT.ANYCAST}},{key:"onCheckTimer",value:function(e){e%1==0&&(this._checkPromiseMap(),this._checkNativeAppWS())}},{key:"_checkPromiseMap",value:function(){var e=this;0!==this._promiseMap.size&&this._promiseMap.forEach((function(t,n){var a=t.reject,o=t.timestamp,i=(t=t.headSeq,15e3);-1!==n.indexOf(xn.LOGIN)?i=9e4:-1!==n.indexOf(xn.PING)&&(i=3e3),Date.now()-o>=i&&(Pe.l("".concat(e._n,"._checkPromiseMap request timeout, delete requestID:").concat(n)),e._promiseMap.delete(n),a(new On({code:Vn.NETWORK_TIMEOUT,data:{headSeq:t}})),e._chM.onRequestTimeout())}))}},{key:"_checkNativeAppWS",value:function(){z&&!this.isConnected()&&this._reConnect()}},{key:"onOpen",value:function(e){var t,n;this._readyState!==ls&&(this._onOpenTs=Date.now(),n=e.id,e=e.res,this._socketID=n,t=jt(this._startTs,!1),n="socketID:".concat(n," res:").concat(e),Pe.l("".concat(this._n,"._onOpen cost:").concat(t," ms. ").concat(n)),new $n("wsOnOpen").setMessage(t).setCostTime(t).setMoreMessage(n).end(),this._readyState=rs,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._chM.onReconnected(),this._reConnectFlag=!1),this._chM.onOpen())}},{key:"onClose",value:function(e){var t=new $n("wsOnClose"),n=e.id,a=(e=e.e,"sourceSocketID:".concat(n," currentSocketID:").concat(this._socketID," code:").concat(e.code," reason:").concat(e.reason)),o=0;0!==this._onOpenTs&&(o=Date.now()-this._onOpenTs),t.setMessage(o).setCostTime(o).setMoreMessage(a).setCode(e.code).end(!0),Pe.l("".concat(this._n,"._onClose ").concat(a," onlineTime:").concat(o)),n===this._socketID&&(this._readyState=ls,o<1e3?this._chM.onReconnectFailed():this._chM.onClose())}},{key:"onError",value:function(e){var t=e.id,n=(e=e.e,"sourceSocketID:".concat(t," currentSocketID:").concat(this._socketID));new $n("wsOnError").setMessage(e.errMsg||JSON.stringify(e,["message","code"])).setMoreMessage(n).setLevel("error").end(!0),Pe.w("".concat(this._n,"._onError"),e,n),t===this._socketID&&(this._readyState=ls,this._chM.onError())}},{key:"onMessage",value:function(e){var t,n,a,o,i,s;try{t=JSON.parse(e.data)}catch(r){new $n("jsonParseError").setMessage(e.data).end()}t&&t.head&&(e=this._getRequestIDFromHead(t.head),n=t.body,this._chM.get(30).isTRTCCommand(e)||(s=Rt(t.head),n=function e(t,n){var a,o,i;return ze(t)?t.map((function(t){return Xe(t)?e(t,n):t})):Xe(t)?(a=t,o=function(e,t){return dt(n[t])?Wi(t):n[t]},i={},Object.keys(a).forEach((function(e){i[o(a[e],e)]=a[e]})),Nt(i,(function(t){return ze(t)||Xe(t)?e(t,n):t}))):void 0}(t.body,this._getResKeyMap(s))),Pe.d("".concat(this._n,".onMessage ret:").concat(JSON.stringify(n)," requestID:").concat(e," has:").concat(this._promiseMap.has(e))),this._setNextPingTs(),this._promiseMap.has(e)?(a=(s=this._promiseMap.get(e)).resolve,o=s.reject,i=s.timestamp,s=s.headSeq,this._promiseMap.delete(e),this._calcRTT(i),n.errorCode&&0!==n.errorCode?(this._chM.onErrorCodeNotZero(n),o(new On({code:n.errorCode,message:n.errorInfo||"",data:e.includes(xn.MODIFY_C2C_MSG)||e.includes(xn.MODIFY_GRP_MSG)?{elements:n.elements,messageVersion:n.messageVersion,cloudCustomData:n.cloudCustomData,headSeq:s}:{headSeq:s}}))):a(yn(n))):this._chM.onMessage({head:t.head,body:n}))}},{key:"_calcRTT",value:function(e){e=Date.now()-e,this._chM.get(26).addRTT(e)}},{key:"_connect",value:function(){this._readyState!==cs&&this._readyState!==rs&&(this._startTs=Date.now(),this._onOpenTs=0,this._readyState=cs,this._socket=new os(this),this._socketID=this._socket.getID(),Pe.l("".concat(this._n,"._connect isWorkerEnabled:").concat(this.getIsWorkerEnabled()," socketID:").concat(this._socketID," url:").concat(this.getURL())),new $n("wsConnect").setMessage("socketID:".concat(this._socketID," url:").concat(this.getURL())).end())}},{key:"getURL",value:function(){this._chM.isDevMode()&&(this._canIUseBinaryFrame=!1);var e=bt(),t=((X||H&&"windows"===e||z)&&(this._canIUseBinaryFrame=!1),-1),n=("ios"===e?t=re||-1:"android"===e&&(t=le||-1),this._chM.get(12)),a=this._chM.getPlatform(),o=n.getSDKAppID();return n=n.getInstanceID(),o="sdkappid=".concat(o,"&instanceid=").concat(n,"&random=").concat(this._getRandom(),"&platform=").concat(a,"&host=").concat(e)+"&version=".concat(t,"&sdkversion=").concat("3.4.7"),Z&&(o+="&isminigame=1"),this._chM.canIUseInflate()&&(o+="&compress=gzip"),(this._canIUseBinaryFrame?"".concat(this._url,"/binfo?"):"".concat(this._url,"/info?")).concat(o)}},{key:"_closeConnection",value:function(e){Pe.l("".concat(this._n,"._closeConnection socketID:").concat(this._socketID)),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=ls)}},{key:"_resend",value:function(){var e=this;if(Pe.l("".concat(this._n,"._resend reConnectFlag:").concat(this._reConnectFlag),"promiseMap.size:".concat(this._promiseMap.size," simpleRequestMap.size:").concat(this._simpleRequestMap.size)),0<this._promiseMap.size&&this._promiseMap.forEach((function(t,n){var a=t.uplinkData,o=t.resolve;t=t.reject,-1!==n.indexOf(xn.AV_POLLING)?e._promiseMap.delete(n):(e._promiseMap.set(n,{resolve:o,reject:t,timestamp:Date.now(),uplinkData:a}),e._execute(n,a))})),0<this._simpleRequestMap.size){var t,n=S(this._simpleRequestMap);try{for(n.s();!(t=n.n()).done;){var a=v(t.value,2),o=a[0],i=a[1];this._execute(o,i)}}catch(s){n.e(s)}finally{n.f()}this._simpleRequestMap.clear()}}},{key:"send",value:function(e){var t=this,n=(e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap,p(e,is)),a=this._getRequestIDFromHead(e.head),o=JSON.stringify(n);return new Promise((function(i,s){t._promiseMap.set(a,{resolve:i,reject:s,timestamp:Date.now(),uplinkData:o,headSeq:e.head.seq}),Pe.d("".concat(t._n,".send uplinkData:").concat(JSON.stringify(n)," requestID:").concat(a," readyState:").concat(t._readyState)),t._readyState!==rs?t._reConnect():(t._execute(a,o),t._chM.get(26).addRequestCount())}))}},{key:"simplySend",value:function(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var t=p(e,ss);e=this._getRequestIDFromHead(e.head),t=JSON.stringify(t),this._readyState!==rs?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(e,t):Pe.l("".concat(this._n,".simplySend. simpleRequestMap is full, drop request!")),this._reConnect()):this._execute(e,t)}},{key:"_execute",value:function(e,t){this._socket.send({data:t,fail:$?this._onSendFail.bind(this):void 0,requestID:e})}},{key:"_onSendFail",value:function(e){Pe.l("".concat(this._n,"._onSendFail requestID:").concat(e)),this._chM.onSendFail()}},{key:"_getSequence",value:function(){var e;if(this._startSequence<2415919103)return e=this._startSequence,this._startSequence+=1,2415919103===this._startSequence&&(this._startSequence=ot()),e}},{key:"_getRequestIDFromHead",value:function(e){return e.servcmd+e.seq}},{key:"_getResKeyMap",value:function(e){return e=this._chM.getKeyMap(e),t(t({},Zi.res),e.res)}},{key:"_reConnect",value:function(){this._readyState!==rs&&this._readyState!==cs&&this.forcedReconnect()}},{key:"forcedReconnect",value:function(){var e="".concat(this._n,".forcedReconnect");Pe.l("".concat(e," count:").concat(this._reConnectCount," readyState:").concat(this._readyState)),this._reConnectFlag=!0,this._resetRandom(),this._reConnectCount<this.MAX_RECONNECT_COUNT?(this._reConnectCount+=1,this._closeConnection(4001),this._initConnection()):(this._reConnectCount=0,this._chM.get(15).isOnline()?(Pe.w("".concat(e," disconnected from wsserver but network is ok, continue...")),this._closeConnection(4001),this._initConnection()):this._chM.onReconnectFailed())}},{key:"getReconnectFlag",value:function(){return this._reConnectFlag}},{key:"_setNextPingTs",value:function(){this._nextPingTs=z?Date.now()+5e3:Date.now()+1e4}},{key:"getNextPingTs",value:function(){return this._nextPingTs}},{key:"isConnected",value:function(){return this._readyState===rs}},{key:"canIUseBinaryFrame",value:function(){return this._canIUseBinaryFrame}},{key:"getSocketID",value:function(){return this._socketID}},{key:"inflate",value:function(e){if(this._chM.canIUseInflate())return this._chM.get(37).inflate(e)}},{key:"setIsWorkerEnabled",value:function(e){Pe.l("".concat(this._n,".setIsWorkerEnabled flag:").concat(e)),this._isWorkerEnabled=e}},{key:"getIsWorkerEnabled",value:function(){return this._isWorkerEnabled&&he}},{key:"_getRandom",value:function(){return 0===this._random&&(this._random=Math.random()),this._random}},{key:"_resetRandom",value:function(){this._random=0}},{key:"close",value:function(){Pe.l("".concat(this._n,".close")),this._closeConnection(4e3),this._promiseMap.clear(),this._startSequence=ot(),this._readyState=ls,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url="",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0}}]),Ms),ds=function(e,t,n){return new Promise((function(a,o){var i,s,r="application/x-www-form-urlencoded;charset=UTF-8";$?ae.request({url:t,data:n,method:e,timeout:3e3,header:{"content-type":r},success:function(e){e&&e.data&&e.data.NetCheckInfo&&Pe.l("".concat("getconninfo ok in"," miniapp. ret:"),e.data),a()},fail:function(){o(new On({code:Vn.NETWORK_ERROR}))}}):(i=new XMLHttpRequest,s=setTimeout((function(){i.abort(),o(new On({code:Vn.NETWORK_TIMEOUT}))}),3e3),i.onreadystatechange=function(){4===i.readyState&&(clearTimeout(s),200===i.status||304===i.status?(i.responseText&&-1<i.responseText.indexOf("NetCheckInfo")&&Pe.l("".concat("getconninfo ok in"," web. ret:"),JSON.parse(i.responseText)),a()):o(new On({code:Vn.NETWORK_ERROR})))},i.open(e,t,!0),i.setRequestHeader("Content-type",r),n?i.send(n):i.send())}))},ms=(r(Ts,Ln),es=f(Ts),i(Ts,[{key:"onCheckTimer",value:function(e){this._socketHandler&&(this.isLoggedIn()?(0<this._timerForNotLoggedIn&&(clearInterval(this._timerForNotLoggedIn),this._timerForNotLoggedIn=-1),this._socketHandler.onCheckTimer(e)):this._socketHandler.onCheckTimer(1),this._checkNextPing())}},{key:"onErrorCodeNotZero",value:function(e){this.get(20).onErrorCodeNotZero(e)}},{key:"onMessage",value:function(e){this.get(20).onMessage(e)}},{key:"send",value:function(e){return this._socketHandler?this._previousState!==M.NET_STATE_CONNECTED&&e.head.servcmd.includes(xn.SSO_STAT)?(this.reConnect(),this.isPrivateNetWork()?Promise.resolve():this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject()}},{key:"_sendLogViaHTTP",value:function(e){var t=O.HOST.CURRENT.STAT;return t="".concat(t,"/v4/imopenstat/tim_web_report_v2?sdkappid=").concat(e.head.sdkappid,"&reqtime=").concat(Date.now()),e=JSON.stringify(e.body),ds("POST",t,e)}},{key:"simplySend",value:function(e){return this._socketHandler?this._socketHandler.simplySend(e):Promise.reject()}},{key:"onOpen",value:function(){this._ping()}},{key:"onClose",value:function(){this._socketHandler&&this._socketHandler.getReconnectFlag()&&this._emitNetStateChangeEvent(M.NET_STATE_DISCONNECTED),this.reConnect()}},{key:"onError",value:function(){$&&!z&&this.warn("DomainNameInMP"),this._emitNetStateChangeEvent(M.NET_STATE_DISCONNECTED)}},{key:"getKeyMap",value:function(e){return this.get(20).getKeyMap(e)}},{key:"onRequestTimeout",value:function(){3e4<=Date.now()-this._lastDiagnoseTS&&this.diagnose()}},{key:"onSendFail",value:function(){this._emitNetStateChangeEvent(M.NET_STATE_DISCONNECTED)}},{key:"onReconnected",value:function(){Pe.l("".concat(this._n,".onReconnected cost:").concat(jt(this._disconnectedTS,!0,!0))),this._m.restartTimer(),this.get(20).onReconnected(jt(this._disconnectedTS,!1,!1)),this._disconnectedTS=0,this._emitNetStateChangeEvent(M.NET_STATE_CONNECTED)}},{key:"onReconnectFailed",value:function(){Pe.l("".concat(this._n,".onReconnectFailed")),this._emitNetStateChangeEvent(M.NET_STATE_DISCONNECTED)}},{key:"setIsWorkerEnabled",value:function(e){this._socketHandler&&this._socketHandler.setIsWorkerEnabled(!1)}},{key:"offline",value:function(){this._emitNetStateChangeEvent(M.NET_STATE_DISCONNECTED)}},{key:"reConnect",value:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=!1,n=(this._socketHandler&&(t=this._socketHandler.getReconnectFlag()),"forcedFlag:".concat(e," fatalErrorFlag:").concat(this._fatalErrorFlag," previousState:").concat(this._previousState," reconnectFlag:").concat(t));Pe.l("".concat(this._n,".reConnect ").concat(n)),this._fatalErrorFlag||!this._socketHandler||!0!==e&&this._previousState===M.NET_STATE_CONNECTING&&t||(this._socketHandler.forcedReconnect(),this._emitNetStateChangeEvent(M.NET_STATE_CONNECTING))}},{key:"_emitNetStateChangeEvent",value:function(e){this._previousState!==e&&(Pe.l("".concat(this._n,"._emitNetStateChangeEvent from ").concat(this._previousState," to ").concat(e)),e===M.NET_STATE_DISCONNECTED&&0===this._disconnectedTS&&(this._disconnectedTS=Date.now(),this.diagnose()),this._previousState=e,this.emitOEvt(T.NET_STATE_CHANGE,{state:e}))}},{key:"_ping",value:function(){var e,t=this;!0!==this._probing&&(this._probing=!0,e=this.get(20).getProtocolData({P:xn.PING}),this.send(e).then((function(){t._probing=!1})).catch((function(e){t._probing=!1;var n=t.get(15).isOnline();Pe.w("".concat(t._n,"._ping failed. bOnline:").concat(n," error:"),e),e&&60002===e.code?(new $n("error").setMessage("code:".concat(e.code," message:").concat(e.message)).end(),t._fatalErrorFlag=!0,t._emitNetStateChangeEvent(M.NET_STATE_DISCONNECTED)):n?t.reConnect():t._emitNetStateChangeEvent(M.NET_STATE_DISCONNECTED)})))}},{key:"_checkNextPing",value:function(){this._socketHandler&&this._socketHandler.isConnected()&&Date.now()>=this._socketHandler.getNextPingTs()&&this._ping()}},{key:"dealloc",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),-1<this._timerForNotLoggedIn&&clearInterval(this._timerForNotLoggedIn)}},{key:"onRestApiKickedOut",value:function(){this._socketHandler&&(this._socketHandler.close(),this.reConnect(!0))}},{key:"canIUseInflate",value:function(){return this._m.canIUseInflate()}},{key:"getSocketID",value:function(){if(this._socketHandler)return this._socketHandler.getSocketID()}},{key:"diagnose",value:function(){this.isPrivateNetWork()||(this._lastDiagnoseTS=Date.now(),this._diagnoseBySSO(),this._diagnoseByCDN())}},{key:"_diagnoseBySSO",value:function(){var e=this,t=this._socketHandler.getURL(),n=t.split("/")[2];n.startsWith("ws")&&(t=t.slice(t.indexOf("info?")+5),n="https://".concat(n,"/v3/netcheck/getconninfo?").concat(t,"&reqtime=").concat(Date.now()),ds("GET",n).catch((function(t){Pe.w("".concat(e._n,"._diagnoseBySSO failed. error:"),t)})))}},{key:"_diagnoseByCDN",value:function(){var e=this,t=(t=this._socketHandler.getURL()).slice(t.indexOf("info?")+5);t="https://boce-cdn.my-imcloud.com/v3/netcheck/getconninfo?".concat(t,"&reqtime=").concat(Date.now()),ds("GET",t).catch((function(t){Pe.w("".concat(e._n,"._diagnoseByCDN failed. error:"),t)}))}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._previousState=M.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3),this._disconnectedTS=0,this._lastDiagnoseTS=0}}]),Ts),ps=["a2","tinyid"],hs=["a2","tinyid"],gs=(i(Ss,[{key:"_fillMap",value:function(){this._map.clear();var e=this._sessionM.genCommonHead(),n=this._sessionM.genCosSpecifiedHead(),a=this._sessionM.genSSOReportHead();this._map.set(xn.LOGIN,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_STATUS,".").concat(xn.LOGIN)}),body:{state:"Online",isWebUniapp:0,deviceBrand:0,customInfo:""},keyMap:{req:{deviceBrand:"InstType"},res:{InstId:"instanceID",HelloInterval:"helloInterval",RichMsgAuthKey:"authKey"}}}),this._map.set(xn.LOGOUT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_STATUS,".").concat(xn.LOGOUT)}),body:{type:0,isWebUniapp:0},keyMap:{req:{type:"wslogout_type"}}}),this._map.set(xn.HELLO,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_STATUS,".").concat(xn.HELLO)}),body:{isWebUniapp:0},keyMap:{res:{NewInstInfo:"newInstanceInfo"}}}),this._map.set(xn.KICK_OTHER,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.STAT_SERVICE,".").concat(xn.KICK_OTHER)}),body:{}}),this._map.set(xn.COS_SIGN,{head:t(t({},n),{},{servcmd:"".concat(O.NAME.IM_COS_SIGN,".").concat(xn.COS_SIGN)}),body:{cmd:"open_im_cos_svc",subCmd:"get_cos_token",duration:300,version:2},keyMap:{req:{userSig:"usersig",subCmd:"sub_cmd",cmd:"cmd",duration:"duration",version:"version"},res:{expired_time:"expiredTime",bucket_name:"bucketName",session_token:"sessionToken",tmp_secret_id:"secretId",tmp_secret_key:"secretKey"}}}),this._map.set(xn.COS_PRE_SIG,{head:t(t({},n),{},{servcmd:"".concat(O.NAME.CUSTOM_UPLOAD,".").concat(xn.COS_PRE_SIG)}),body:{fileType:void 0,fileName:void 0,uploadMethod:0,duration:900},keyMap:{req:{userSig:"usersig",fileType:"file_type",fileName:"file_name",uploadMethod:"upload_method"},res:{expired_time:"expiredTime",request_id:"requestId",head_url:"headUrl",upload_url:"uploadUrl",download_url:"downloadUrl",ci_url:"ciUrl",snapshot_url:"requestSnapshotUrl"}}}),this._map.set(xn.SIMPLE_COS_PRE_SIG,{head:t(t({},n),{},{servcmd:"".concat(O.NAME.CUSTOM_UPLOAD,".").concat(xn.SIMPLE_COS_PRE_SIG)}),body:{uploadMethod:0,platform:2,SDKAppID:0,userID:"",conversationType:1,uploadConfig:[{fileID:1,fileType:1,fileName:""}]},keyMap:{req:{platform:"uint32_platform",SDKAppID:"uint32_sdkappid",userID:"str_user_id",uploadMethod:"uint32_upload_method",conversationType:"uint32_scene",uploadConfig:"rpt_upload_object",fileID:"uint32_file_id",fileType:"uint32_file_type",fileName:"str_file_name"},res:{str_final_ip:"uploadIP",rpt_pre_sig:"preSig",uint32_file_id:"fileID",uint32_exist_flag:"existFlag",str_download_url:"downloadUrl",str_upload_url:"uploadUrl",str_snapshot_url:"requestSnapshotUrl",str_file_key:"fileKey"}}}),this._map.set(xn.GET_IMAGE_INFO,{head:t(t({},n),{},{servcmd:"".concat(O.NAME.CUSTOM_UPLOAD,".").concat(xn.GET_IMAGE_INFO)}),body:{imageUrl:""},keyMap:{req:{imageUrl:"str_image_url"},res:{rpt_msg_image_info:"imageInfoArray",uint32_image_type:"type",str_url:"url",uint32_width:"width",uint32_height:"height",str_image_format:"imageFormat"}}}),this._map.set(xn.GET_IP,{head:t(t({},n),{},{servcmd:"".concat(O.NAME.CUSTOM_UPLOAD,".").concat(xn.GET_IP)}),body:{domainName:""},keyMap:{req:{domainName:"str_domain"},res:{str_final_ip:"ip"}}}),this._map.set(xn.VIDEO_COVER,{head:t(t({},n),{},{servcmd:"".concat(O.NAME.CUSTOM_UPLOAD,".").concat(xn.VIDEO_COVER)}),body:{version:1,platform:void 0,coverName:void 0,requestSnapshotUrl:void 0},keyMap:{req:{version:"version",platform:"platform",coverName:"cover_name",requestSnapshotUrl:"snapshot_url"},res:{error_code:"errorCode",error_msg:"errorInfo",download_url:"snapshotUrl"}}}),this._map.set(xn.FETCH_COMMERCIAL_CONFIG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_CONFIG_MANAGER,".").concat(xn.FETCH_COMMERCIAL_CONFIG)}),body:{SDKAppID:0},keyMap:{req:{SDKAppID:"uint32_sdkappid"},res:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}),this._map.set(xn.PUSHED_COMMERCIAL_CONFIG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_CONFIG_MANAGER,".").concat(xn.PUSHED_COMMERCIAL_CONFIG)}),body:{},keyMap:{res:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}),this._map.set(xn.FETCH_CLOUD_CTRL_CONFIG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_CONFIG_MANAGER,".").concat(xn.FETCH_CLOUD_CTRL_CONFIG)}),body:{SDKAppID:0,version:0},keyMap:{req:{SDKAppID:"uint32_sdkappid",version:"uint64_version"},res:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}),this._map.set(xn.PUSHED_CLOUD_CTRL_CONFIG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_CONFIG_MANAGER,".").concat(xn.PUSHED_CLOUD_CTRL_CONFIG)}),body:{},keyMap:{res:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}),this._map.set(xn.OVERLOAD_NOTIFY,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OVERLOAD_PUSH,".").concat(xn.OVERLOAD_NOTIFY)}),body:{},keyMap:{res:{OverLoadServCmd:"overloadCommand",DelaySecs:"waitingTime"}}}),this._map.set(xn.SYNC_UNREAD_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.SYNC_UNREAD_MSG)}),body:{cookie:"",syncFlag:0,needAbstract:1,isOnlineSync:0,needSignaling:1,needCachedMsg:1},keyMap:{req:{fromAccount:"From_Account",toAccount:"To_Account",from:"From_Account",to:"To_Account",time:"MsgTimeStamp",sequence:"MsgSeq",random:"MsgRandom",elements:"MsgBody"},res:{MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",ClientSeq:"clientSequence",MsgSeq:"sequence",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgRandom:"random",MsgTimeStamp:"time",MsgContent:"content",ToGroupId:"to",MsgKey:"messageKey",GroupTips:"groupTips",MsgBody:"elements",MsgType:"type",C2CRemainingUnreadCount:"C2CRemainingUnreadList",C2CPairUnreadCount:"C2CPairUnreadList"}}}),this._map.set(xn.GET_PROFANITY_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_MSG_AUDIT_MGR,".").concat(xn.GET_PROFANITY_LIST)}),body:{version:0,deviceID:"",startIndex:void 0},keyMap:{req:{version:"uint64_version",deviceID:"str_device_id",startIndex:"uint64_start_index"},res:{msg_cmd_error_code:"errorInfo",str_err_msg:"errorMessage",uint32_code:"errorCode",msg_scene_ctl_config:"filterConfig",uint64_c2c_custom_msg_flag:"c2c_custom_message",uint64_c2c_text_msg_flag:"c2c_text_message",uint64_group_custom_msg_flag:"group_custom_message",uint64_group_text_msg_flag:"group_text_message",uint64_group_info_flag:"group_profile",uint64_group_member_info_flag:"group_member_profile",uint64_relation_chain_flag:"sns",uint64_user_info_flag:"user_profile",rpt_msg_dirty_word:"lexicon",str_dirty_word:"profanity",str_replaced_content:"replacement",uint64_filter_type:"filterType",uint64_id:"id",uint64_word_type:"profanityType",uint64_complete_flag:"completeFlag",uint64_next_start_index:"nextStartIndex",uint64_version:"version",uint64_expired_time:"expiredTime"}}}),this._map.set(xn.SEND_C2C_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.SEND_C2C_MSG)}),body:{fromAccount:"",toAccount:"",msgSeq:0,msgRandom:0,msgBody:[],cloudCustomData:void 0,nick:"",avatar:"",msgLifeTime:void 0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{sound:"",badgeMode:0,isVoipPush:void 0,image:""},androidInfo:{sound:"",XiaoMiChannelID:"",OPPOChannelID:"",GoogleChannelID:"",VIVOClassification:1,VIVOCategory:"",HuaWeiCategory:"",HuaWeiImage:"",HonorImage:"",GoogleImage:""}},messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,isSupportExtension:0,isRelayMessage:0,cmConfigID:void 0},keyMap:{req:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",count:"MaxCnt",lastMessageTime:"LastMsgTime",messageKey:"MsgKey",peerAccount:"Peer_Account",data:"Data",description:"Desc",extension:"Ext",type:"MsgType",content:"MsgContent",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",nick:"From_AccountNick",avatar:"From_AccountHeadurl",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"IsNeedReadReceipt",GoogleChannelID:"GoogleChannelID",XiaoMiChannelID:"XiaoMiChannelID"}}}),this._map.set(xn.SEND_GRP_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.SEND_GRP_MSG)}),body:{fromAccount:"",groupID:"",random:0,clientSequence:0,priority:"",msgBody:[],cloudCustomData:void 0,onlineOnlyFlag:0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{sound:"",badgeMode:0,isVoipPush:void 0,image:""},androidInfo:{sound:"",XiaoMiChannelID:"",OPPOChannelID:"",GoogleChannelID:"",VIVOClassification:1,VIVOCategory:"",HuaWeiCategory:"",HuaWeiImage:"",HonorImage:"",GoogleImage:""}},groupAtInfo:[],messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,topicID:void 0,receiverList:void 0,isSupportExtension:0,isRelayMessage:0,cmConfigID:void 0},keyMap:{req:{to:"GroupId",extension:"Ext",data:"Data",description:"Desc",random:"Random",sequence:"ReqMsgSeq",count:"ReqMsgNumber",type:"MsgType",priority:"MsgPriority",content:"MsgContent",elements:"MsgBody",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",clientSequence:"ClientSeq",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"NeedReadReceipt",receiverList:"To_Account",GoogleChannelID:"GoogleChannelID",XiaoMiChannelID:"XiaoMiChannelID"},res:{MsgTime:"time",MsgSeq:"sequence"}}}),this._map.set(xn.REVOKE_C2C_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.REVOKE_C2C_MSG)}),body:{msgInfo:{fromAccount:"",toAccount:"",msgTimeStamp:0,msgSeq:0,msgRandom:0}},keyMap:{req:{msgInfo:"MsgInfo",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom"}}}),this._map.set(xn.REVOKE_GRP_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.REVOKE_GRP_MSG)}),body:{groupID:"",msgSeqList:void 0,topicID:""},keyMap:{req:{msgSeqList:"MsgSeqList",msgSeq:"MsgSeq"}}}),this._map.set(xn.GET_C2C_ROAMING_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.GET_C2C_ROAMING_MSG)}),body:{peerAccount:"",count:15,lastMessageTime:0,messageKey:"",withRecalledMessage:1,direction:0},keyMap:{req:{messageKey:"MsgKey",peerAccount:"Peer_Account",count:"MaxCnt",lastMessageTime:"LastMsgTime",withRecalledMessage:"WithRecalledMsg",direction:"GetDirection"},res:{LastMsgTime:"lastMessageTime",IsNeedReadReceipt:"needReadReceipt",IsPeerRead:"readReceiptSentByPeer"}}}),this._map.set(xn.MODIFY_C2C_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.MODIFY_C2C_MSG)}),body:{from:"",to:"",sequence:0,random:0,time:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{req:{sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}}),this._map.set(xn.GET_GRP_ROAMING_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.GET_GRP_ROAMING_MSG)}),body:{withRecalledMsg:1,groupID:"",count:15,sequence:"",topicID:void 0},keyMap:{req:{sequence:"ReqMsgSeq",count:"ReqMsgNumber",withRecalledMessage:"WithRecalledMsg"},res:{Random:"random",MsgTime:"time",MsgSeq:"sequence",ReqMsgSeq:"sequence",RspMsgList:"messageList",IsSystemMsg:"isSystemMessage",ToGroupId:"to",EnumFrom_AccountType:"fromAccountType",EnumTo_AccountType:"toAccountType",GroupCode:"groupCode",MsgPriority:"priority",MsgBody:"elements",MsgType:"type",MsgContent:"content",IsFinished:"complete",Download_Flag:"downloadFlag",ClientSeq:"clientSequence",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",ToTopicId:"topicID",InvisibleMsgSeq:"invisibleSequenceList",NextReqMsgSeq:"nextSequence"}}}),this._map.set(xn.SET_C2C_MSG_READ,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.SET_C2C_MSG_READ)}),body:{C2CMsgReaded:void 0},keyMap:{req:{lastMessageTime:"LastedMsgTime"}}}),this._map.set(xn.SET_C2C_PEER_MUTE_NOTIFICATIONS,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{req:{userIDList:"Peer_Account",muteFlag:"Mute_Notifications"}}}),this._map.set(xn.GET_C2C_PEER_MUTE_NOTIFICATIONS,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{toAccount:void 0,userIDList:void 0},keyMap:{req:{userIDList:"Peer_Account"},res:{MuteNotificationsList:"muteFlagList"}}}),this._map.set(xn.SET_GRP_MSG_READ,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.SET_GRP_MSG_READ)}),body:{groupID:void 0,messageReadSeq:void 0,topicID:void 0},keyMap:{req:{messageReadSeq:"MsgReadedSeq"}}}),this._map.set(xn.SET_ALL_MSG_READ,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.SET_ALL_MSG_READ)}),body:{readAllC2CMessage:0,groupMessageReadInfoList:[]},keyMap:{req:{readAllC2CMessage:"C2CReadAllMsg",groupMessageReadInfoList:"GroupReadInfo",messageSequence:"MsgSeq"},res:{C2CReadAllMsg:"readAllC2CMessage",GroupReadInfoArray:"groupMessageReadInfoList"}}}),this._map.set(xn.DEL_C2C_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.DEL_C2C_MSG)}),body:{fromAccount:"",to:"",keyList:void 0},keyMap:{req:{keyList:"MsgKeyList"}}}),this._map.set(xn.DEL_GRP_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.DEL_GRP_MSG)}),body:{groupID:"",deleter:"",keyList:void 0,topicID:void 0},keyMap:{req:{deleter:"Deleter_Account",keyList:"Seqs"}}}),this._map.set(xn.TRANSLATE_TEXT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_TRANSLATE,".").concat(xn.TRANSLATE_TEXT)}),body:{sourceTextList:void 0,SDKAppID:0,from:0,source:"",target:""},keyMap:{req:{sourceTextList:"SourceText",SDKAppID:"SdkAppId",from:"FromAccount"},res:{TargetText:"translatedTextList",RequestId:"requestID",CmdErrorCode:"error",ErrorCode:"code",ErrorInfo:"message"}}}),this._map.set(xn.VOICE_TO_TEXT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_SPEECH,".").concat(xn.VOICE_TO_TEXT)}),body:{url:"",SDKAppID:0,format:"",sourceType:0,language:""},keyMap:{req:{url:"BytesUrl",SDKAppID:"Uint32Sdkappid",format:"BytesVoiceFormat",sourceType:"Uint64SourceType",language:"BytesEngServiceType"},res:{BytesRequestid:"requestID",BytesResult:"result",CmdErrorCode:"error",ErrorCode:"code",ErrorInfo:"message"}}}),this._map.set(xn.MODIFY_GRP_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.MODIFY_GRP_MSG)}),body:{groupID:"",topicID:void 0,sequence:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{req:{sequence:"MsgSeq",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}}),this._map.set(xn.GET_READ_RECEIPT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.GET_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{req:{sequence:"MsgSeq"}}}),this._map.set(xn.SEND_C2C_READ_RECEIPT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.SEND_C2C_READ_RECEIPT)}),body:{peerAccount:"",messageInfoList:void 0},keyMap:{req:{peerAccount:"Peer_Account",messageInfoList:"C2CMsgInfo",fromAccount:"From_Account",toAccount:"To_Account",sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",clientTime:"MsgClientTime"}}}),this._map.set(xn.SEND_READ_RECEIPT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.SEND_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{req:{sequenceList:"MsgSeqList",sequence:"MsgSeq"}}}),this._map.set(xn.GET_READ_RECEIPT_DETAIL,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.GET_READ_RECEIPT_DETAIL)}),body:{groupID:"",sequence:void 0,flag:0,cursor:0,count:0},keyMap:{req:{sequence:"MsgSeq",count:"Num"},res:{ReadList:"readUserIDList",Read_Account:"userID",UnreadList:"unreadUserIDList",Unread_Account:"userID",IsFinish:"isCompleted"}}}),this._map.set(xn.MODIFY_C2C_MSG_EXT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.MODIFY_C2C_MSG_EXT)}),body:{from:void 0,to:void 0,messageKey:void 0,operateType:void 0,extensionList:void 0}}),this._map.set(xn.GET_C2C_MSG_EXT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.GET_C2C_MSG_EXT)}),body:{from:void 0,to:void 0,messageKey:void 0,startSequence:void 0}}),this._map.set(xn.MODIFY_GRP_MSG_EXT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.MODIFY_GRP_MSG_EXT)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,operateType:void 0,extensionList:void 0}}),this._map.set(xn.GET_GRP_MSG_EXT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.GET_GRP_MSG_EXT)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,startSequence:void 0}}),this._map.set(xn.MSG_CLOUD_SEARCH,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.MSG_SEARCH,".").concat(xn.MSG_CLOUD_SEARCH)}),body:{keywordList:void 0,keywordListMatchType:"or",account:void 0,groupID:void 0,count:100,cursor:void 0,messageTypeList:void 0,senderUserIDList:void 0,startTime:void 0,endTime:void 0},keyMap:{req:{keywordListMatchType:"MatchType",account:"PeerAccount",groupID:"GroupID",messageTypeList:"MsgTypeList",senderUserIDList:"SendUserIDList"},res:{GroupID:"groupID",UserID:"userID",Count:"messageCount",LastMsgTime:"lastMessageTime",ConversationMsgs:"searchResult",IsNeedReadReceipt:"needReadReceipt",IsPeerRead:"readReceiptSentByPeer",MsgSeq:"sequence",ReqMsgSeq:"sequence",IsSystemMsg:"isSystemMessage",ToGroupId:"to",EnumFrom_AccountType:"fromAccountType",EnumTo_AccountType:"toAccountType",GroupCode:"groupCode",MsgContent:"content",ClientSeq:"clientSequence",ToTopicId:"topicID",InvisibleMsgSeq:"invisibleSequenceList",ErrorCode:"code",ErrorInfo:"message"}}}),this._map.set(xn.ADD_C2C_MSG_REACTION,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.ADD_C2C_MSG_REACTION)}),body:{from:void 0,to:void 0,reactionID:void 0,messageKey:void 0,userIDList:void 0},keyMap:{req:{userIDList:"Add_Account"}}}),this._map.set(xn.RM_C2C_MSG_REACTION,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.RM_C2C_MSG_REACTION)}),body:{from:void 0,to:void 0,reactionID:void 0,messageKey:void 0,userIDList:void 0},keyMap:{req:{userIDList:"Del_Account"}}}),this._map.set(xn.GET_C2C_MSG_REACTIONS,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.GET_C2C_MSG_REACTIONS)}),body:{from:void 0,to:void 0,messageKeyList:void 0,count:void 0}}),this._map.set(xn.GET_C2C_MSG_REACTION_USER_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.GET_C2C_MSG_REACTION_USER_LIST)}),body:{from:void 0,to:void 0,reactionID:void 0,messageKey:void 0,count:void 0}}),this._map.set(xn.ADD_GRP_MSG_REACTION,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.ADD_GRP_MSG_REACTION)}),body:{groupID:void 0,topicID:void 0,reactionID:void 0,messageSequence:void 0,userIDList:void 0},keyMap:{req:{userIDList:"Add_Account"}}}),this._map.set(xn.RM_GRP_MSG_REACTION,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.RM_GRP_MSG_REACTION)}),body:{groupID:void 0,topicID:void 0,reactionID:void 0,messageSequence:void 0,userIDList:void 0},keyMap:{req:{userIDList:"Del_Account"}}}),this._map.set(xn.GET_GRP_MSG_REACTIONS,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.GET_GRP_MSG_REACTIONS)}),body:{groupID:void 0,topicID:void 0,messageSequenceList:void 0,count:void 0},keyMap:{res:{MsgSeq:"messageSequence"}}}),this._map.set(xn.GET_GRP_MSG_REACTION_USER_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM_MSG_EXT,".").concat(xn.GET_GRP_MSG_REACTION_USER_LIST)}),body:{groupID:void 0,topicID:void 0,reactionID:void 0,messageSequence:void 0,nextSeq:void 0,count:void 0}}),this._map.set(xn.GET_C2C_PEER_READ_TIME,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.GET_C2C_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{req:{userIDList:"To_Account"},res:{ReadTime:"peerReadTimeList"}}}),this._map.set(xn.PAGING_GET_CONV_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.PAGING_GET_CONV_LIST)}),body:{fromAccount:void 0,timeStamp:void 0,startIndex:void 0,pinnedTimeStamp:void 0,pinnedStartIndex:void 0,orderType:void 0,messageAssistFlag:15,assistFlag:31},keyMap:{req:{messageAssistFlag:"MsgAssistFlags",assistFlag:"AssistFlags",pinnedTimeStamp:"TopTimeStamp",pinnedStartIndex:"TopStartIndex"},res:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime",LastMsgFlags:"lastMessageFlag",TopFlags:"isPinned",TopTimeStamp:"pinnedTimeStamp",TopStartIndex:"pinnedStartIndex",GroupId:"convGroupID",C2cRemark:"friendRemark",MsgRecvOption:"messageRemindType",GroupIgnoredUnreadSeqCount:"noUnreadCount",GroupNextMsgSeq:"nextMessageSeq"}}}),this._map.set(xn.DEL_CONV,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.DEL_CONV)}),body:{fromAccount:"",conversationList:void 0,clearHistoryMessage:void 0},keyMap:{req:{toGroupID:"ToGroupid",clearHistoryMessage:"ClearRamble",conversationList:"ContactItem"},res:{ResultItem:"resultList",ToGroupid:"groupID",ResultCode:"code",ResultInfo:"info"}}}),this._map.set(xn.CLEAR_HISTORY_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.CLEAR_HISTORY_MSG)}),body:{fromAccount:"",toAccount:void 0,type:1,toGroupID:void 0},keyMap:{req:{toGroupID:"ToGroupid"}}}),this._map.set(xn.PIN_CONV,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.PIN_CONV)}),body:{fromAccount:"",operationType:1,itemList:void 0},keyMap:{req:{itemList:"RecentContactItem"}}}),this._map.set(xn.DEL_GROUP_AT_TIPS,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.DEL_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{req:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}),this._map.set(xn.SET_CONV_CUSTOM_DATA,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.MARK_CONV)}),body:{fromAccount:"",itemList:void 0},keyMap:{req:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},res:{ToGroupId:"groupID",OptType:"operationType"}}}),this._map.set(xn.MARK_CONV,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.MARK_CONV)}),body:{fromAccount:"",itemList:void 0},keyMap:{req:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},res:{ToGroupId:"groupID",OptType:"operationType"}}}),this._map.set(xn.CREATE_CONV_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.CREATE_CONV_GRP)}),body:{fromAccount:"",itemList:void 0},keyMap:{req:{itemList:"GroupContactItem",groupID:"ToGroupId"},res:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType"}}}),this._map.set(xn.DEL_CONV_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.DEL_CONV_GRP)}),body:{fromAccount:"",groupName:void 0},keyMap:{res:{GroupId:"convGroupID"}}}),this._map.set(xn.RENAME_CONV_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.RENAME_CONV_GRP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0},keyMap:{req:{oldName:"OldGroupName",newName:"NewGroupName",groupID:"ToGroupId",operationType:"ContactOptType",groupName:"OldGroupName",updateItem:"ContactUpdateItem"},res:{ContactOptType:"operationType",ToGroupId:"groupID",GroupId:"convGroupID"}}}),this._map.set(xn.ADD_CONV_TO_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.RENAME_CONV_GRP)}),body:{fromAccount:"",updateType:void 0,updateGroup:{groupName:void 0,updateGroupType:void 0,updateItem:void 0}}}),this._map.set(xn.DEL_CONV_FROM_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.RENAME_CONV_GRP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0}}),this._map.set(xn.GET_CONV_GRP_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.GET_CONV_GRP_LIST)}),body:{fromAccount:"",startIndex:void 0},keyMap:{res:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType",CustomMark:"customData",ContactGroupId:"convGroupIDList"}}}),this._map.set(xn.SEARCH_CONV_GRP_MARK,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.RECENT_CONTACT,".").concat(xn.SEARCH_CONV_GRP_MARK)}),body:{fromAccount:"",contactItem:void 0},keyMap:{req:{groupID:"ToGroupId"},res:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType",CustomMark:"customData",ContactGroupId:"convGroupIDList",ContactResultItem:"contactItem"}}}),this._map.set(xn.GET_USER_PROFILE,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.PROFILE,".").concat(xn.GET_USER_PROFILE)}),body:{fromAccount:"",userItem:[]},keyMap:{req:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}),this._map.set(xn.UPDATE_MY_PROFILE,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.PROFILE,".").concat(xn.UPDATE_MY_PROFILE)}),body:{fromAccount:"",profileItem:[{tag:Re.NICK,value:""},{tag:Re.GENDER,value:""},{tag:Re.ALLOWTYPE,value:""},{tag:Re.AVATAR,value:""}]},keyMap:{req:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}),this._map.set(xn.GET_BL,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.GET_BL)}),body:{fromAccount:"",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{res:{CurruentSequence:"currentSequence"}}}),this._map.set(xn.ADD_TO_BL,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.ADD_TO_BL)}),body:{fromAccount:"",toAccount:[]}}),this._map.set(xn.RM_FROM_BL,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.RM_FROM_BL)}),body:{fromAccount:"",toAccount:[]}}),this._map.set(xn.SET_SELF_STATUS,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_STATUS,".").concat(xn.SET_SELF_STATUS)}),body:{customStatus:""}}),this._map.set(xn.GET_USER_STATUS,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_STATUS,".").concat(xn.GET_USER_STATUS)}),body:{userIDList:void 0},keyMap:{res:{UserStatusList:"successUserList",ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID",Status:"statusType"}}}),this._map.set(xn.SUB_USER_STATUS,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_STATUS,".").concat(xn.SUB_USER_STATUS)}),body:{userIDList:void 0},keyMap:{res:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}}),this._map.set(xn.UNSUB_USER_STATUS,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_STATUS,".").concat(xn.UNSUB_USER_STATUS)}),body:{userIDList:void 0,unsubscribeAll:void 0},keyMap:{res:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}}),this._map.set(xn.GET_FD_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.GET_FD_LIST)}),body:{fromAccount:"",startIndex:0,standardSequence:0,customSequence:0},keyMap:{res:{FriendNum:"friendCount",UserDataItem:"resultList",ValueItem:"tagValueList"}}}),this._map.set(xn.ADD_FD,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.ADD_FD)}),body:{fromAccount:"",addFriendItem:[],type:""},keyMap:{req:{source:"AddSource",wording:"AddWording",type:"AddType"},res:{ResultItem:"resultList"}}}),this._map.set(xn.UPDATE_FD,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.UPDATE_FD)}),body:{fromAccount:"",updateItem:void 0},keyMap:{req:{snsItem:"SnsItem"},res:{ResultItem:"resultList"}}}),this._map.set(xn.DEL_FD,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.DEL_FD)}),body:{fromAccount:"",userIDList:[],type:""},keyMap:{req:{type:"DeleteType"},res:{ResultItem:"resultList"}}}),this._map.set(xn.GET_FD_PROFILE,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.GET_FD_PROFILE)}),body:{fromAccount:"",userIDList:void 0},keyMap:{res:{InfoItem:"resultList",SnsProfileItem:"tagValueList"}}}),this._map.set(xn.CHECK_FD,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.CHECK_FD)}),body:{fromAccount:"",userIDList:[],type:""},keyMap:{req:{type:"CheckType"},res:{InfoItem:"resultList"}}}),this._map.set(xn.GET_FD_APPLICATION_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.GET_FD_APPLICATION_LIST)}),body:{fromAccount:"",applicationType:"",startTime:0,maxLimited:0,lastSequence:0},keyMap:{res:{PendencyItem:"resultList",AddSource:"source",AddTime:"time",AddWording:"wording",Image:"avatar",UnreadPendencyCount:"unreadCount",To_Account:"userID",PendencyType:"type"}}}),this._map.set(xn.RESPOND_FD_APPLICATION,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.RESPOND_FD_APPLICATION)}),body:{fromAccount:"",responseFriendItem:[]},keyMap:{req:{tag:"TagName",action:"ResponseAction"},res:{ResultItem:"resultList"}}}),this._map.set(xn.DEL_FD_APPLICATION,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.DEL_FD_APPLICATION)}),body:{fromAccount:"",type:"",userIDList:void 0},keyMap:{req:{type:"PendencyType",userIDList:"To_Account"},res:{ResultItem:"resultList"}}}),this._map.set(xn.REPORT_FD_APPLICATION,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.REPORT_FD_APPLICATION)}),body:{fromAccount:"",latestTimeStamp:""},keyMap:{req:{latestTimeStamp:"LatestPendencyTimeStamp"}}}),this._map.set(xn.CREATE_FD_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.CREATE_FD_GRP)}),body:{fromAccount:"",groupName:void 0,userIDList:void 0},keyMap:{req:{groupName:"GroupName",userIDList:"To_Account"},res:{ResultItem:"resultList"}}}),this._map.set(xn.DEL_FD_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.DEL_FD_GRP)}),body:{fromAccount:"",nameList:void 0},keyMap:{req:{nameList:"GroupName"}}}),this._map.set(xn.GET_FD_GRP_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.GET_FD_GRP_LIST)}),body:{fromAccount:"",lastSequence:0,needFriend:"Need_Friend_Type_Yes"},keyMap:{res:{ResultItem:"resultList",GroupName:"name",FriendNumber:"friendCount",To_Account:"userIDList"}}}),this._map.set(xn.UPDATE_FD_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FD,".").concat(xn.UPDATE_FD_GRP)}),body:{fromAccount:"",oldName:"",newName:void 0,updateGroupItem:void 0},keyMap:{req:{oldName:"GroupOldName",newName:"GroupNewName"},res:{UpdateType:"type",ResultItem:"resultList"}}}),this._map.set(xn.GET_GRP_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.GET_GRP_LIST)}),body:{memberAccount:"",limit:void 0,offset:void 0,groupType:void 0,responseFilter:{groupBaseInfoFilter:void 0,selfInfoFilter:void 0},isSupportTopic:0,needAppDefineData:1},keyMap:{req:{memberAccount:"Member_Account"},res:{GroupIdList:"groups",MsgSeq:"readedSequence",LastRecallTime:"_lastRevokedTime",AppDefinedData:"groupCustomField"}}}),this._map.set(xn.GET_GRP_PROFILE,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.GET_GRP_PROFILE)}),body:{groupIDList:void 0,responseFilter:{groupBaseInfoFilter:void 0,groupCustomFieldFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0}},keyMap:{req:{groupIDList:"GroupIdList",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",groupCustomFieldFilter:"AppDefinedDataFilter_Group",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},res:{GroupIdList:"groups",AppDefinedData:"groupCustomField",AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_Group:"groupCustomFieldFilter",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",InfoSeq:"infoSequence",MemberList:"members",GroupInfo:"groups",ShutUpUntil:"muteUntil",ShutUpAllMember:"muteAllMembers"}}}),this._map.set(xn.CREATE_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.CREATE_GRP)}),body:{type:void 0,name:void 0,groupID:void 0,ownerID:void 0,introduction:void 0,notification:void 0,maxMemberNum:void 0,joinOption:void 0,memberList:void 0,groupCustomField:void 0,memberCustomField:void 0,webPushFlag:1,avatar:"",isSupportTopic:void 0,inviteOption:void 0},keyMap:{req:{ownerID:"Owner_Account",userID:"Member_Account",avatar:"FaceUrl",maxMemberNum:"MaxMemberCount",joinOption:"ApplyJoinOption",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",inviteOption:"InviteJoinOption"},res:{HugeGroupFlag:"avChatRoomFlag",OverJoinedGroupLimit_Account:"overLimitUserIDList"}}}),this._map.set(xn.DISMISS_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.DISMISS_GRP)}),body:{groupID:void 0}}),this._map.set(xn.UPDATE_GRP_PROFILE,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.UPDATE_GRP_PROFILE)}),body:{groupID:void 0,name:void 0,introduction:void 0,notification:void 0,avatar:void 0,joinOption:void 0,groupCustomField:void 0,muteAllMembers:void 0,inviteOption:void 0},keyMap:{req:{groupCustomField:"AppDefinedData",muteAllMembers:"ShutUpAllMember",joinOption:"ApplyJoinOption",avatar:"FaceUrl",inviteOption:"InviteJoinOption"},res:{AppDefinedData:"groupCustomField",ShutUpAllMember:"muteAllMembers"}}}),this._map.set(xn.APPLY_JOIN_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.APPLY_JOIN_GRP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1,historyMessageFlag:void 0},keyMap:{req:{applyMessage:"ApplyMsg",historyMessageFlag:"HugeGroupHistoryMsgFlag"},res:{HugeGroupFlag:"avChatRoomFlag",AVChatRoomKey:"avChatRoomKey",RspMsgList:"messageList",ToGroupId:"to"}}}),this._map.set(xn.APPLY_JOIN_GRP_NOAUTH,(e.a2,e.tinyid,{head:t(t({},p(e,ps)),{},{servcmd:"".concat(O.NAME.BIG_GRP_NO_AUTH,".").concat(xn.APPLY_JOIN_GRP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1},keyMap:{req:{applyMessage:"ApplyMsg"},res:{HugeGroupFlag:"avChatRoomFlag"}}})),this._map.set(xn.QUIT_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.QUIT_GRP)}),body:{groupID:void 0}}),this._map.set(xn.SEARCH_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.SEARCH_GRP)}),body:{groupIDList:void 0,responseFilter:{groupBasePublicInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","CreateTime","Owner_Account","LastInfoTime","LastMsgTime","NextMsgSeq","MemberNum","MaxMemberNum","ApplyJoinOption","InviteJoinOption"]}}}),this._map.set(xn.CHANGE_GRP_OWNER,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.CHANGE_GRP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{req:{newOwnerID:"NewOwner_Account"}}}),this._map.set(xn.HANDLE_GRP_APPLICATION,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.HANDLE_GRP_APPLICATION)}),body:{groupID:void 0,applicant:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{req:{applicant:"Applicant_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}),this._map.set(xn.HANDLE_INVITE_JOIN_GRP,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.HANDLE_INVITE_JOIN_GRP)}),body:{groupID:void 0,applicant:void 0,invitee:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,userDefinedField:void 0},keyMap:{req:{applicant:"Applicant_Account",invitee:"Invited_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg"}}}),this._map.set(xn.HANDLE_GRP_INVITATION,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.HANDLE_GRP_INVITATION)}),body:{groupID:void 0,inviter:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{req:{inviter:"Inviter_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}),this._map.set(xn.GET_GRP_PENDENCY,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.GET_GRP_PENDENCY)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{req:{handleAccount:"Handle_Account"},res:{To_Account:"userID",ApplyInviteMsg:"note"}}}),this._map.set(xn.DEL_GRP_SYSTEM_NOTICE,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.DEL_GRP_SYSTEM_NOTICE)}),body:{messageListToDelete:void 0},keyMap:{req:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}),this._map.set(xn.AV_POLLING,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.BIG_GRP_POLLING,".").concat(xn.AV_POLLING)}),body:{USP:1,startSeq:1,startBroadcastSeq:void 0,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{req:{USP:"USP"},res:{ToGroupId:"groupID",RspBroadcastMsgList:"broadcastMessageList",IsSystemMsg:"isSystemMessage"}}}),this._map.set(xn.AV_NOAUTH_POLLING,(e.a2,e.tinyid,{head:t(t({},p(e,hs)),{},{servcmd:"".concat(O.NAME.BIG_GRP_POLLING_NO_AUTH,".").concat(xn.AV_POLLING)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{req:{USP:"USP"},res:{ToGroupId:"groupID",RspBroadcastMsgList:"broadcastMessageList",IsSystemMsg:"isSystemMessage"}}})),this._map.set(xn.GET_ONLINE_MBR_NUM,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.GET_ONLINE_MBR_NUM)}),body:{groupID:void 0},keyMap:{res:{OnlineMemberNum:"memberCount"}}}),this._map.set(xn.SET_GRP_ATTR,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.SET_GRP_ATTR)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{req:{key:"key",value:"value"}}}),this._map.set(xn.MODIFY_GRP_ATTR,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.MODIFY_GRP_ATTR)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{req:{key:"key",value:"value"}}}),this._map.set(xn.DEL_GRP_ATTR,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.DEL_GRP_ATTR)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{req:{key:"key"}}}),this._map.set(xn.CLEAR_GRP_ATTR,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.CLEAR_GRP_ATTR)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]}}),this._map.set(xn.GET_GRP_ATTR,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP_ATTR,".").concat(xn.GET_GRP_ATTR)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{req:{avChatRoomKey:"Key",groupType:"GroupType"}}}),this._map.set(xn.GET_GRP_NOTIFY,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.GET_GRP_NOTIFY)}),body:{notifyReqList:[]},keyMap:{req:{notifyReqList:"NotifyReqList"},res:{NextMsgTime:"nextRevokedTime",NotifyMsgList:"notifyList",NotifyRspList:"notifyRspList"}}}),this._map.set(xn.UPDATE_GRP_COUNTER,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.UPDATE_GRP_COUNTER)}),body:{groupID:void 0,counterList:void 0,avChatRoomKey:void 0,mode:void 0},keyMap:{req:{counterList:"GroupCounter"}}}),this._map.set(xn.GET_GRP_COUNTER,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.GET_GRP_COUNTER)}),body:{groupID:void 0,keyList:[],avChatRoomKey:void 0},keyMap:{req:{keyList:"GroupCounterKeys"}}}),this._map.set(xn.CREATE_TOPIC,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP_COMMUNITY,".").concat(xn.CREATE_TOPIC)}),body:{groupID:void 0,topicName:void 0,avatar:void 0,customData:void 0,topicID:void 0,notification:void 0,introduction:void 0},keyMap:{req:{avatar:"FaceUrl"}}}),this._map.set(xn.DEL_TOPIC,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP_COMMUNITY,".").concat(xn.DEL_TOPIC)}),body:{groupID:void 0,topicIDList:void 0},keyMap:{req:{topicIDList:"TopicIdList"},res:{DestroyResultItem:"resultList"}}}),this._map.set(xn.UPDATE_TOPIC_PROFILE,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP_COMMUNITY,".").concat(xn.UPDATE_TOPIC_PROFILE)}),body:{groupID:void 0,topicID:void 0,avatar:void 0,customData:void 0,notification:void 0,introduction:void 0,muteAllMembers:void 0,topicName:void 0},keyMap:{req:{avatar:"FaceUrl",muteAllMembers:"ShutUpAllMember"}}}),this._map.set(xn.GET_TOPIC_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP_COMMUNITY,".").concat(xn.GET_TOPIC_LIST)}),body:{groupID:void 0,topicIDList:void 0,MemberInfoFilter:["NoUnreadSeqList"]},keyMap:{req:{topicIDList:"TopicIdList"},res:{TopicAndSelfInfo:"topicInfoList",TopicInfo:"topic",GroupID:"groupID",ShutUpTime:"muteTime",ShutUpAllFlag:"muteAllMembers",LastMsgTime:"lastMessageTime",MsgSeq:"readedSequence",LastMsgSeq:"sequence"}}}),this._map.set(xn.GET_GRP_MBR_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.GET_GRP_MBR_LIST)}),body:{groupID:void 0,limit:0,offset:void 0,next:void 0,memberRoleFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{req:{memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},res:{AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",MemberList:"members",ShutUpUntil:"muteUntil"}}}),this._map.set(xn.GET_AV_MBR_LIST,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP_AV,".").concat(xn.GET_AV_MBR_LIST)}),body:{groupID:void 0,offset:void 0,filter:void 0},keyMap:{req:{offset:"Timestamp",filter:"Mark"},res:{NextTimestamp:"offset"}}}),this._map.set(xn.GET_GRP_MBR_PROFILE,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.GET_GRP_MBR_PROFILE)}),body:{groupID:void 0,userIDList:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{req:{userIDList:"Member_List_Account",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},res:{MemberList:"members",ShutUpUntil:"muteUntil",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",AppMemberDefinedData:"memberCustomField"}}}),this._map.set(xn.ADD_GRP_MBR,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.ADD_GRP_MBR)}),body:{groupID:void 0,silence:void 0,userIDList:void 0},keyMap:{req:{userID:"Member_Account",userIDList:"MemberList"},res:{MemberList:"members"}}}),this._map.set(xn.DEL_GRP_MBR,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.DEL_GRP_MBR)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{req:{userIDList:"MemberToDel_Account"}}}),this._map.set(xn.BAN_AV_MBR,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.BAN_AV_MBR)}),body:{groupID:void 0,userIDList:void 0,duration:void 0,reason:""},keyMap:{req:{userIDList:"Members_Account",duration:"Duration",reason:"Description"}}}),this._map.set(xn.MODIFY_GRP_MBR_INFO,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP,".").concat(xn.MODIFY_GRP_MBR_INFO)}),body:{groupID:void 0,topicID:void 0,userID:void 0,messageRemindType:void 0,nameCard:void 0,role:void 0,memberCustomField:void 0,muteTime:void 0},keyMap:{req:{userID:"Member_Account",memberCustomField:"AppMemberDefinedData",muteTime:"ShutUpTime",messageRemindType:"MsgFlag"}}}),this._map.set(xn.MARK_AV_MBR_INFO,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.GRP_AV,".").concat(xn.MARK_AV_MBR_INFO)}),body:{groupID:void 0,operationType:1,memberList:[]},keyMap:{req:{operationType:"CommandType",memberList:"MemberList",markType:"Marks",userID:"Member_Account"},res:{CommandType:"operationType",Marks:"markType",Member_Account:"userID"}}}),this._map.set(xn.SSO_STAT,{head:t(t({},a),{},{servcmd:"".concat(O.NAME.IM_OPEN_STAT,".").concat(xn.SSO_STAT)}),body:{header:{},event:[],quality:[]},keyMap:{req:{SDKType:"sdk_type",SDKVersion:"sdk_version",deviceType:"device_type",platform:"platform",instanceID:"instance_id",traceID:"trace_id",SDKAppID:"sdk_app_id",userID:"user_id",tinyID:"tiny_id",extension:"extension",timestamp:"timestamp",networkType:"network_type",eventType:"event_type",code:"error_code",message:"error_message",moreMessage:"more_message",duplicate:"duplicate",costTime:"cost_time",level:"level",qualityType:"quality_type",reportIndex:"report_index",wholePeriod:"whole_period",totalCount:"total_count",rttCount:"success_count_business",successRateOfRequest:"percent_business",countLessThan1Second:"success_count_business",percentOfCountLessThan1Second:"percent_business",countLessThan3Second:"success_count_platform",percentOfCountLessThan3Second:"percent_platform",successCountOfBusiness:"success_count_business",successRateOfBusiness:"percent_business",successCountOfPlatform:"success_count_platform",successRateOfPlatform:"percent_platform",successCountOfMessageReceived:"success_count_business",successRateOfMessageReceived:"percent_business",avgRTT:"average_value",avgDelay:"average_value",avgValue:"average_value",uiPlatform:"ui_platform"}}}),this._map.set(xn.PING,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.HEARTBEAT,".").concat(xn.PING)}),body:{}}),this._map.set(xn.MSG_PUSH,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_PUSH,".").concat(xn.MSG_PUSH)}),body:{},keyMap:{res:{C2cMsgArray:"C2CMessageArray",GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",C2cNotifyMsgArray:"C2CNotifyMessageArray",C2cMsgInfo:"C2CReadReceiptArray",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyAdd_Account:"userID",ProfileImNick:"nick",PendencyType:"applicationType",C2CReadAllMsg:"readAllC2CMessage",IsNeedReadReceipt:"needReadReceipt",Status:"statusType"}}}),this._map.set(xn.MULTI_MSG_PUSH,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_PUSH,".").concat(xn.MULTI_MSG_PUSH)}),body:{},keyMap:{res:{GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyType:"applicationType"}}}),this._map.set(xn.MSG_PUSH_ACK,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OPEN_IM,".").concat(xn.MSG_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{req:{sessionData:"SessionData"}}}),this._map.set(xn.STATUS_FORCE_OFFLINE,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_STATUS,".").concat(xn.STATUS_FORCE_OFFLINE)}),body:{},keyMap:{res:{C2cNotifyMsgArray:"C2CNotifyMessageArray",NoticeSeq:"noticeSequence",KickoutMsgNotify:"kickoutMsgNotify",NewInstInfo:"newInstanceInfo"}}}),this._map.set(xn.DOWNLOAD_MERGER_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_LONG_MSG,".").concat(xn.DOWNLOAD_MERGER_MSG)}),body:{downloadKey:""},keyMap:{res:{Data:"data",Desc:"description",Ext:"extension",Download_Flag:"downloadFlag",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}}),this._map.set(xn.UPLOAD_MERGER_MSG,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_LONG_MSG,".").concat(xn.UPLOAD_MERGER_MSG)}),body:{messageList:[]},keyMap:{req:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",type:"MsgType",content:"MsgContent",data:"Data",description:"Desc",extension:"Ext",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}}),this._map.set(xn.FOLLOW,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FOLLOW,".").concat(xn.FOLLOW)}),body:{fromAccount:"",userIDList:[]},keyMap:{req:{userIDList:"FollowItem"},res:{ResultItem:"resultList",To_Account:"userID"}}}),this._map.set(xn.UNFOLLOW,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FOLLOW,".").concat(xn.UNFOLLOW)}),body:{fromAccount:"",userIDList:[]},keyMap:{req:{userIDList:"To_Account"},res:{ResultItem:"resultList",To_Account:"userID"}}}),this._map.set(xn.GET_FOLLOW_INFO,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FOLLOW,".").concat(xn.GET_FOLLOW_INFO)}),body:{fromAccount:"",userIDList:[]},keyMap:{req:{userIDList:"To_Account"},res:{FollowInfo:"followInfoList",To_Account:"userID",FollowerCount:"followersCount",FollowingCount:"followingCount",MutualFollowingCount:"mutualFollowersCount"}}}),this._map.set(xn.GET_FOLLOW,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FOLLOW,".").concat(xn.GET_FOLLOW)}),body:{fromAccount:"",type:1,nextCursor:"",count:500},keyMap:{req:{type:"FollowType",nextCursor:"StartCursor",count:"WantNum"},res:{FollowItem:"resultList",To_Account:"userID",ProfileItem:"profileList"}}}),this._map.set(xn.CHECK_FOLLOW_TYPE,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.FOLLOW,".").concat(xn.CHECK_FOLLOW_TYPE)}),body:{fromAccount:"",userIDList:[]},keyMap:{req:{userIDList:"To_Account"},res:{ResultItem:"resultList",To_Account:"userID"}}}),this._map.set(xn.SET_TOKEN,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_STATUS,".").concat(xn.SET_TOKEN)}),body:{tokenID:"",pushMsg:0,sdkAppID:0,businessID:"",deviceBrand:"",deviceToken:"",isTpns:0,isWebUniapp:0,notificationStatus:0,deviceModel:"",systemVersion:"",pushVersion:""},keyMap:{req:{tokenID:"TokenID",pushMsg:"PushMsg",sdkAppID:"EnterVersion",businessID:"BusiID",deviceBrand:"InstType",deviceToken:"VarToken",isTpns:"IsTpns",notificationStatus:"NotificationStatus",deviceModel:"DeviceModel",systemVersion:"SystemVersion",pushVersion:"PushPluginVersion"}}}),this._map.set(xn.STAT_FOREGROUND,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_STATUS,".").concat(xn.STAT_FOREGROUND)}),body:{isWebUniapp:0}}),this._map.set(xn.STAT_BACKGROUND,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_OPEN_STATUS,".").concat(xn.STAT_BACKGROUND)}),body:{C2CUnread:0,GroupUnread:0,isWebUniapp:0},keyMap:{req:{c2cUnreadCount:"C2cUnread",groupUnreadCount:"GrpUnread"}}}),this._map.set(xn.PUSH_REPORT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.OFFLINE_PUSH_REPORT,".").concat(xn.PUSH_REPORT)}),body:{eventList:[]},keyMap:{req:{eventList:"UinappPushEvents",type:"EventType",time:"EventTime",pushId:"ClickExt"}}}),this._map.set(xn.SET_ALL_RECEIVE_MSG_OPT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_MSG_LOGIC,".").concat(xn.SET_ALL_RECEIVE_MSG_OPT)}),body:{startTime:0,endTime:0,isRepeated:0,messageRemindType:0},keyMap:{req:{messageRemindType:"Level"}}}),this._map.set(xn.GET_ALL_RECEIVE_MSG_OPT,{head:t(t({},e),{},{servcmd:"".concat(O.NAME.IM_MSG_LOGIC,".").concat(xn.GET_ALL_RECEIVE_MSG_OPT)}),body:{toAccount:void 0}})}},{key:"has",value:function(e){return this._map.has(e)}},{key:"get",value:function(e){return this._map.get(e)}},{key:"update",value:function(){this._fillMap()}},{key:"getKeyMap",value:function(e){return this.has(e)?this.get(e).keyMap||{}:(Pe.w("".concat(this._n,".getKeyMap unknown P:").concat(e)),{})}},{key:"getProtocolData",value:function(e){var t=e.P,n=e.data;if(e=this.get(t),t=null,n){var a,o=this._simpleDeepCopy(e),i=(o=this._updateService(n,o)).body,s=Object.create(null);for(a in i)if(Object.prototype.hasOwnProperty.call(i,a)){if(s[a]=i[a],void 0===n[a])continue;s[a]=n[a]}o.body=s,t=this._getUplinkData(o)}else t=this._getUplinkData(e);return t}},{key:"_getUplinkData",value:function(e){var t=Rt((e=this._dataCleaner(e)).head);return t=$i(e.body,this._getReqKeyMap(t)),e.body=t,e}},{key:"_updateService",value:function(e,t){var n,a,o=Rt(t.head);return this._isFromGroupRequest(t)&&(n=e.type,a=e.groupID,e=void 0===(e=e.groupIDList)?[]:e,dt(a=void 0===a?void 0:a)&&(a=e[0]||""),kt({type:n,groupID:a}))&&(t.head.servcmd="".concat(O.NAME.GRP_COMMUNITY,".").concat(o)),t}},{key:"_isFromGroupRequest",value:function(e){return e.head.servcmd.includes(O.NAME.GRP)||e.head.servcmd.includes(O.NAME.GRP_ATTR)}},{key:"_getReqKeyMap",value:function(e){return e=this.getKeyMap(e),t(t({},Zi.req),e.req)}},{key:"_dataCleaner",value:function(e){var t,a=Array.isArray(e)?[]:Object.create(null);for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&$e(t)&&null!==e[t]&&void 0!==e[t]&&("object"!==n(e[t])?a[t]=e[t]:a[t]=this._dataCleaner.bind(this)(e[t]));return a}},{key:"_simpleDeepCopy",value:function(e){for(var t,n=Object.keys(e),a={},o=0,i=n.length;o<i;o++)ze(e[t=n[o]])?a[t]=Array.from(e[t]):Xe(e[t])?a[t]=this._simpleDeepCopy(e[t]):a[t]=e[t];return a}}]),Ss),fs=[xn.MSG_PUSH_ACK],vs=(i(Is,[{key:"_onC2CMsgArray",value:function(e){var t=this._sessionM.get(6);e.dataList.forEach((function(e){var t;1===e.isSyncMessage&&(t=e.from,e.from=e.to,e.to=t)})),1===e.needSync&&this._sessionM.get(19).syncOnNeed(),t.onNewMessage({dataList:e.dataList,isInstantMessage:!0})}},{key:"_onC2CMsgModified",value:function(e){this._sessionM.get(6).onMsgModified(e)}},{key:"_onGroupMsgArray",value:function(e){var t=this._sessionM.get(7);t&&t.onNewMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0})}},{key:"_onGroupMsgModified",value:function(e){var t=this._sessionM.get(7);t&&t.onMsgModified(e)}},{key:"_onGroupTips",value:function(e){var t=this._sessionM.get(7);if(t){var n=e.event,a=e.dataList,o=e.isInstantMessage,i=void 0===o||o,s=e.isSyncingEnded;switch(n){case 4:case 6:t.onNewGroupTips({event:n,dataList:a});break;case 5:for(var r=0;r<a.length;r++)if(ze(a[r].elements.revokedInfos))t.onMsgRevoked({dataList:a});else if(ze(a[r].elements.groupMessageReadNotice))t.onMsgReadNotice({dataList:a});else{if(!ze(a[r].elements.readReceiptList)){t.onNewGroupSystemNotice({dataList:a,isInstantMessage:i,isSyncingEnded:s});break}t.onReadReceiptList({dataList:a})}break;case 12:this._sessionM.get(11).onNewGroupAtTips({dataList:a});break;default:Pe.l("".concat(this._n,"._onGroupTips unknown event:").concat(n," dataList:"),a)}}}},{key:"_onC2CNotifyMsgArray",value:function(e){var t,n=this,a=e.dataList;ze(a)&&(t=this._sessionM.get(6),a.forEach((function(e){var o,i;Ke(e)&&(e.hasOwnProperty("kickoutMsgNotify")?(o=(i=e.kickoutMsgNotify).kickType,i=void 0===(i=i.newInstanceInfo)?{}:i,1===o?n._sessionM.onMultipleAccountKickedOut(i):2===o?n._sessionM.onMultipleDeviceKickedOut(i):3===o&&n._sessionM.onRestApiKickedOut(i)):e.hasOwnProperty("c2cMessageRevokedNotify")?t&&t.onMsgRevoked({dataList:a}):e.hasOwnProperty("c2cMessageReadReceipt")?t&&t.onMsgReadReceipt({dataList:a}):e.hasOwnProperty("c2cMessageReadNotice")?t&&t.onMsgReadNotice({dataList:a}):e.hasOwnProperty("muteNotificationsSync")&&n._sessionM.get(11).onC2CMsgRemindTypeSynced({dataList:a}))})))}},{key:"_onC2CReadReceiptArray",value:function(e){this._sessionM.get(6).onReadReceiptList(e)}},{key:"_onProfileModified",value:function(e){this._sessionM.get(4).onProfileModified({dataList:e.dataList});var t=this._sessionM.get(8);t&&t.onFriendProfileModified({dataList:e.dataList})}},{key:"_onRelationChainModified",value:function(e){this._sessionM.get(4).onRelationChainModified({dataList:e.dataList});var t=this._sessionM.get(8);t&&t.onRelationChainModified({dataList:e.dataList})}},{key:"_onRecentContact",value:function(e){var t;ze(e=e.dataList)&&(t=this._sessionM.get(11))&&e.forEach((function(e){var n,a,o=e.pushType;1===o?(n=e.recentContactDeleteItem,t.onConvDeleted(n.recentContactList)):2===o?(n=e.recentContactTopItem,t.onConvPinnedStatus(n.recentContactList,!0)):3===o?(n=e.recentContactTopItem,t.onConvPinnedStatus(n.recentContactList,!1)):4===o?(n=e.recentContactMarkContact,t.onConvMarkUpdated(n.recentContactMarkContactItem)):5===o?(n=e.recentContactCreateContactGroup,t.onConvGroupCreated(n.msgContactGroupContactItem)):6===o?(n=e.recentContactDelContactGroup,t.onConvGroupDeleted(n.msgGroupItem)):7===o&&(o=(n=e.recentContactUpdateContactGroup).updateType,e=n.msgUpdateGroup,n=n.msgUpdateContact,1===o?1===(a=e.updateGroupType)?t.onConvGroupNameUpdated(e):2===a&&t.onConvInGroupUpdated(e):2===o&&t.onConvAddedToOrDeletedFromGroup(n))}))}},{key:"_onAllMsgRead",value:function(e){e=e.dataList;var t=this._sessionM.get(11);t&&t.onPushedAllMessageRead(e)}},{key:"_onUserStatusList",value:function(e){this._sessionM.get(4).onUserStatusUpdated(e)}},{key:"_onMsgExtNotify",value:function(e){this._sessionM.get(3).onMsgExtNotify(e)}},{key:"_onMsgReactionNotifyList",value:function(e){this._sessionM.get(34).onReactionNotifyList(e)}},{key:"_onMsgReactionNotify",value:function(e){this._sessionM.get(34).onReactionNotify(e)}},{key:"_onFollowNotify",value:function(e){this._sessionM.get(35).onFollowNotify(e)}},{key:"_onTopicLatestMsg",value:function(e){this._sessionM.get(10).onTopicLatestMsg(e)}},{key:"onMessage",value:function(e){var t=this,n=e.body;if(this._filterMsgFromIMOpenPush(e)){var a,o=n.eventArray,i=n.isInstantMessage,s=n.isSyncingEnded,r=n.needSync;if(ze(o))for(var c,l,u,d=0,m=o.length;d<m;d++)100!==(u=(c=o[d]).event)?24!==u?26!==u?(a=Object.keys(c).find((function(e){return-1!==t._keys.indexOf(e)})))?(l=14===u?{readAllC2CMessage:c[a],groupMessageReadInfoList:c.groupMessageReadNotice||[]}:16===u?{userID:c.userID,timestamp:c.timestamp,readReceiptList:c[a]}:c[a],this._eventHandlerMap.get(a)({event:u,dataList:l,isInstantMessage:i,isSyncingEnded:s,needSync:r})):Pe.l("".concat(this._n,".onMessage unknown eventItem:"),c):this._onTopicLatestMsg(c):this._onAllRcvMsgOptNotify(c):this._onRoomCustomData(c.content)}}},{key:"_onRoomCustomData",value:function(e){this._sessionM.get(30).onRoomCustomDataReceived(e),Pe.l("".concat(this._n,"._onRoomCustomData data:").concat(e))}},{key:"_onAllRcvMsgOptNotify",value:function(e){this._sessionM.get(11).onAllRcvMsgOptNotify(e)}},{key:"_filterMsgFromIMOpenPush",value:function(e){var t=e.head,n=(e=e.body,t=t.servcmd,!1);return!(n=dt(t)?n:t.includes(O.NAME.IM_CONFIG_MANAGER)||t.includes(O.NAME.OVERLOAD_PUSH)||t.includes(O.NAME.STAT_SERVICE))||(t.includes(xn.PUSHED_CLOUD_CTRL_CONFIG)?this._sessionM.get(23).onPushedConfig(e):t.includes(xn.PUSHED_COMMERCIAL_CONFIG)?this._sessionM.get(27).onPushedConfig(e):t.includes(xn.OVERLOAD_NOTIFY)?this._sessionM.onPushedServerOverload(e):t.includes(xn.KICK_OTHER)&&(n=Date.now(),this._sessionM.reLoginOnKickOther(),e=new $n("kickOther"),n-=t=this._sessionM.get(1).getLastWsHelloTs(),e.setMessage("last wshello time:".concat(t," diff:").concat(n,"ms")).end()),!1)}}]),Is),_s=[{cmd:xn.GET_GRP_PROFILE,interval:1,count:8},{cmd:xn.UPDATE_GRP_PROFILE,interval:1,count:8},{cmd:xn.GET_AV_MBR_LIST,interval:3,count:1},{cmd:xn.GET_GRP_PENDENCY,interval:1,count:15},{cmd:xn.GET_TOPIC_LIST,interval:1,count:10},{cmd:xn.SET_GRP_ATTR,interval:5,count:10},{cmd:xn.MODIFY_GRP_ATTR,interval:5,count:10},{cmd:xn.DEL_GRP_ATTR,interval:5,count:10},{cmd:xn.CLEAR_GRP_ATTR,interval:5,count:10},{cmd:xn.GET_GRP_ATTR,interval:5,count:20},{cmd:xn.UPDATE_GRP_COUNTER,interval:5,count:20},{cmd:xn.GET_GRP_COUNTER,interval:5,count:20},{cmd:xn.SET_ALL_MSG_READ,interval:1,count:1},{cmd:xn.GET_USER_STATUS,interval:5,count:20},{cmd:xn.SUB_USER_STATUS,interval:5,count:20},{cmd:xn.UNSUB_USER_STATUS,interval:5,count:20},{cmd:xn.MSG_CLOUD_SEARCH,interval:1,count:2},{cmd:xn.CHECK_FOLLOW_TYPE,interval:5,count:20},{cmd:xn.GET_GRP_ROAMING_MSG,interval:1,count:20},{cmd:xn.GET_C2C_ROAMING_MSG,interval:1,count:20}],ys=new Map,Es=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],Cs=0,ks=Es.length;Cs<ks;Cs++)ys.set(Cs,Es[Cs]);function Is(e){a(this,Is),this._sessionM=e,this._n="MsgDispatcher",this._eventHandlerMap=new Map,this._eventHandlerMap.set("C2CMessageArray",this._onC2CMsgArray.bind(this)),this._eventHandlerMap.set("groupMessageArray",this._onGroupMsgArray.bind(this)),this._eventHandlerMap.set("groupTips",this._onGroupTips.bind(this)),this._eventHandlerMap.set("C2CNotifyMessageArray",this._onC2CNotifyMsgArray.bind(this)),this._eventHandlerMap.set("C2CReadReceiptArray",this._onC2CReadReceiptArray.bind(this)),this._eventHandlerMap.set("profileModify",this._onProfileModified.bind(this)),this._eventHandlerMap.set("friendListMod",this._onRelationChainModified.bind(this)),this._eventHandlerMap.set("recentContactMod",this._onRecentContact.bind(this)),this._eventHandlerMap.set("readAllC2CMessage",this._onAllMsgRead.bind(this)),this._eventHandlerMap.set("c2cMessageModified",this._onC2CMsgModified.bind(this)),this._eventHandlerMap.set("groupMessageModified",this._onGroupMsgModified.bind(this)),this._eventHandlerMap.set("userStatusList",this._onUserStatusList.bind(this)),this._eventHandlerMap.set("messageExtensionNotify",this._onMsgExtNotify.bind(this)),this._eventHandlerMap.set("messageReactionNotifyList",this._onMsgReactionNotifyList.bind(this)),this._eventHandlerMap.set("messageReactionNotify",this._onMsgReactionNotify.bind(this)),this._eventHandlerMap.set("followChangeList",this._onFollowNotify.bind(this)),this._keys=_(this._eventHandlerMap.keys())}function Ss(e){a(this,Ss),this._n="PHandler",this._sessionM=e,this._map=new Map,this._fillMap()}function Ts(e){return a(this,Ts),(e=es.call(this,e))._n="ChannelModule",e._socketHandler=new us(h(e)),e._probing=!1,e._isAppShowing=!0,e._previousState=M.NET_STATE_CONNECTED,e._timerForNotLoggedIn=-1,e._timerForNotLoggedIn=setInterval(e.onCheckTimer.bind(h(e)),1e3),e._fatalErrorFlag=!1,e._disconnectedTS=0,e._lastDiagnoseTS=0,e}function Ms(e){a(this,Ms),this._chM=e,this._n="SocketHandler",this._promiseMap=new Map,this._readyState=ls,this._simpleRequestMap=new Map,this.MAX_SIZE=100,this._startSequence=ot(),this._startTs=0,this._reConnectFlag=!1,this._nextPingTs=0,this._reConnectCount=0,this.MAX_RECONNECT_COUNT=3,this._socketID=-1,this._random=0,this._socket=null,this._url="",this._onOpenTs=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0,this._currentSite=R,this._setWebsocketHost(),this._initConnection()}function Ns(e){a(this,Ns);var t,n,o=(this._handler=e).getURL();this._socket=null,this._workerSocket=null,this._id=ot(),this._handler.getIsWorkerEnabled()?(t=URL.createObjectURL(new Blob([';let _socket = null;onmessage = function(event) { if (event.data.cmd === "start") { const url = event.data.url; _socket = new WebSocket(url); _socket.binaryType = "arraybuffer"; _socket.onopen = function() { postMessage({ callback: "onOpen", extensions: _socket.extensions }); }; _socket.onclose = function(e) { postMessage({ callback: "onOpen", e: { code: e.code, reason: e.reason } }); }; _socket.onmessage = function(e) { postMessage({ callback: "onMessage", data: e.data }); }; _socket.onerror = function(e) { postMessage({ callback: "onError", e: { isTrusted: "true" } }); }; } else if (event.data.cmd === "sendMessage") { if (_socket !== null) { _socket.send(event.data.data); } } else if (event.data.cmd === "stop") { if (_socket !== null) { _socket.close(event.data.code); _socket = null; } }};'],{type:"application/javascript; charset=utf-8"})),this._workerSocket=new Worker(t),(n=this)._workerSocket.onmessage=function(e){var t=(o=e.data).callback,a=o.e,o=o.extensions;"onOpen"===t?n._onOpen(o):"onClose"===t?n._onClose(a):"onError"===t?n._onError(a):"onMessage"===t&&n._onMessage(e.data)},this._workerSocket.postMessage({cmd:"start",id:this._id,url:o})):$?X?(ae.connectSocket({url:o,header:{"content-type":"application/json"}}),ae.onSocketClose(this._onClose.bind(this)),ae.onSocketOpen(this._onOpen.bind(this)),ae.onSocketMessage(this._onMessage.bind(this)),ae.onSocketError(this._onError.bind(this))):(this._socket=ae.connectSocket({url:o,header:{"content-type":"application/json"},complete:function(){}}),this._socket.onClose(this._onClose.bind(this)),this._socket.onOpen(this._onOpen.bind(this)),this._socket.onMessage(this._onMessage.bind(this)),this._socket.onError(this._onError.bind(this))):(this._socket=new WebSocket(o),this._socket.binaryType="arraybuffer",this._socket.onopen=this._onOpen.bind(this,this._socket.extensions),this._socket.onmessage=this._onMessage.bind(this),this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this)),this._canIUseBinaryFrame=e.canIUseBinaryFrame()}function ws(e){for(var t,n,a=e,o="",i=0,s=(a=e.length%8!=0?"0".repeat(8-e.length%8)+e:a).length;i<s;i+=8)t=parseInt(a.slice(i,i+4),2),n=parseInt(a.slice(i+4,i+8),2),o+=ys.get(t)+ys.get(n);return o}function Ds(e){var t;return e<0||53<e?NaN:(t=0|1073741824*Math.random(),30<e?t+1073741824*(0|Math.random()*(1<<e-30)):t>>>30-e)}function bs(e,t){for(var n=e.toString(16),a=t-n.length,o="0";0<a;a>>>=1,o+=o)1&a&&(n=o+n);return n}r(Xr,Ln),Fs=f(Xr),i(Xr,[{key:"_init",value:function(){this._updateCmdFreqLimitMap(_s)}},{key:"_onCloudConfig",value:function(){var e=this.getCloudConfig("cmd_frequency_limit");dt(e)||(e=JSON.parse(e),this._updateCmdFreqLimitMap(e))}},{key:"_updateCmdFreqLimitMap",value:function(e){var t=this;e.forEach((function(e){t._cmdFreqLimitMap.set(e.cmd,{interval:e.interval,count:e.count})}))}},{key:"updateProtocolConfig",value:function(){this._pHandler.update()}},{key:"req",value:function(e){Pe.d("".concat(this._n,".req options:"),e);var t,n,a=e.P;return this._pHandler.has(a)?(t=(e=this.getProtocolData(e)).head.servcmd,this._isFreqOverLimit(t)?Cn({code:n=Vn.OVER_FREQUENCY_LIMIT,message:this.getErrMsg(n,this._getCmd(t))}):this._isServerOverload(t)?Cn({code:n=Vn.OPEN_SERVICE_OVERLOAD_ERROR,message:this.getErrMsg(n,this._getCmd(t))}):(n=this.get(21),fs.includes(a)?n.simplySend(e):n.send(e))):(Pe.w("".concat(this._n,".req unknown P:").concat(a)),Cn({code:Vn.NO_PROTOCOL}))}},{key:"getKeyMap",value:function(e){return this._pHandler.getKeyMap(e)}},{key:"genCommonHead",value:function(){var e=this.get(12);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:P,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:12775283,sdkability_ext:ws(""),cappid:e.getApplicationID()}}},{key:"genCosSpecifiedHead",value:function(){var e=this.get(12);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:P,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:12775283,sdkability_ext:ws(""),cappid:e.getApplicationID()}}},{key:"genSSOReportHead",value:function(){var e=this.get(12);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:P,sdkappid:e.getSDKAppID(),contenttype:"",reqtime:0,identifier:"",usersig:"",status_instid:e.getStatusInstanceID(),sdkability:12775283,sdkability_ext:ws(""),cappid:e.getApplicationID()}}},{key:"getProtocolData",value:function(e){return this._pHandler.getProtocolData(e)}},{key:"trans",value:function(e){var n=e.servcmd;return e=e.data,n={head:t(t({},this.genCommonHead()),{},{servcmd:n}),body:e},this.get(21).send(n)}},{key:"sendComboMessage",value:function(e){var n=e.servcmd;return e=e.data,n={head:t(t({},this.genCommonHead()),{},{servcmd:n}),body:e},this.get(21).send(n)}},{key:"onErrorCodeNotZero",value:function(e){var t,n=e.errorCode;n===Vn.HELLO_ANSWER_KICKED_OUT&&(t=e.kickType,e=void 0===(e=e.newInstanceInfo)?{}:e,1===t?this.onMultipleAccountKickedOut(e):2===t?this.onMultipleDeviceKickedOut(e):3===t&&this.onRestApiKickedOut(e)),n!==Vn.MSG_A2KEY_EXPIRED&&n!==Vn.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.get(21).reConnect())}},{key:"onMessage",value:function(e){var t=(n=e.body).needAck,n=n.sessionData;1===(void 0===t?0:t)&&this._sendACK(n),this._msgDispatcher.onMessage(e)}},{key:"onReconnected",value:function(e){this._incrementalPullContactFlag=e<=300,this._reLoginOnReconnected()}},{key:"reLoginOnKickOther",value:function(){Pe.l("".concat(this._n,".reLoginOnKickOther")),this._reLogin()}},{key:"_reLoginOnReconnected",value:function(){Pe.l("".concat(this._n,"._reLoginOnReconnected")),this._reLogin()}},{key:"_reLogin",value:function(){var e,t,n,a=this,o="".concat(this._n,"._reLogin");this.isLoggedIn()&&(e=0,(t=this.get(1).getPushModule())&&(e=t.getUniAppPlatform()),n=new $n("reLogin"),this.req({P:xn.LOGIN,data:{isWebUniapp:e,customInfo:this.get(12).getCustomLoginInfo()}}).then((function(e){var t=(e=e.data).instanceID,i=(e=e.customStatus,a.get(12)),s=ja(e),r=(i.setStatusInstanceID(t),a.get(21)),c=r.getSocketID();c="socketID:".concat(c," instanceID:").concat(t," customStatus:").concat(s),n.setMessage(c).end(!0),Pe.l("".concat(o," ok. ").concat(c)),i.getCustomStatus()!==s&&a.get(4).onUserStatusUpdated({dataList:[{to:a.getMyUserID(),statusType:M.USER_STATUS_ONLINE,customStatus:e}]}),r.diagnose(),a.get(11).syncConvList(a._incrementalPullContactFlag).then((function(){Pe.l("".concat(o,", sync conv list ok.")),a.get(25).start()})),((t=a.get(7))&&t.updateLocalMainSequenceOnReconnected(),c=a.get(10)).resetGetTopicTime(),c.getTopicListOnReconnected(),(i=a.get(35))&&i.clearCacheOnReconnected()})))}},{key:"onMultipleAccountKickedOut",value:function(e){this.get(1).onMultipleAccountKickedOut(e)}},{key:"onMultipleDeviceKickedOut",value:function(e){this.get(1).onMultipleDeviceKickedOut(e)}},{key:"_onUserSigExpired",value:function(){this.get(1).onUserSigExpired()}},{key:"onRestApiKickedOut",value:function(e){this.get(1).onRestApiKickedOut(e)}},{key:"_sendACK",value:function(e){this.req({P:xn.MSG_PUSH_ACK,data:{sessionData:e}})}},{key:"_isFreqOverLimit",value:function(e){var t,n,a,o;return e=e.split(".")[1],!!this._cmdFreqLimitMap.has(e)&&(!this._cmdReqInfoMap.has(e)||(t=(n=this._cmdFreqLimitMap.get(e)).count,n=n.interval,a=(o=this._cmdReqInfoMap.get(e)).startTime,o=o.requestCount,Date.now()-a>1e3*n)?(this._cmdReqInfoMap.set(e,{startTime:Date.now(),requestCount:1}),!1):(this._cmdReqInfoMap.set(e,{startTime:a,requestCount:o+=1}),t<o))}},{key:"_isServerOverload",value:function(e){var t,n;return!!this._serverOverloadInfoMap.has(e)&&(t=(n=this._serverOverloadInfoMap.get(e)).overloadTime,n=n.waitingTime,Date.now()-t<=1e3*n||(this._serverOverloadInfoMap.delete(e),!1))}},{key:"_getCmd",value:function(e){var t="";if(e.includes(".")){var n,a=e.split(".")[1];for(n in xn)if(xn[n]===a){t=n;break}}return t}},{key:"onPushedServerOverload",value:function(e){var t=e.overloadCommand;e=e.waitingTime,this._serverOverloadInfoMap.set(t,{overloadTime:Date.now(),waitingTime:e}),Pe.w("".concat(this._n,".onPushedServerOverload waitingTime:").concat(e,"s cmd:").concat(this._getCmd(t)))}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._updateCmdFreqLimitMap(_s),this._cmdReqInfoMap.clear(),this._serverOverloadInfoMap.clear(),this._incrementalPullContactFlag=!0}}]);var Ls,Ps,As,Rs,Os,Vs,Bs,xs,Us,Gs,Fs,Ys=Xr,Hs=(r(Jr,Ln),Gs=f(Jr),i(Jr,[{key:"getCloudConfig",value:function(e){return dt(e)?this._cloudConfig:this._cloudConfig.has(e)?this._cloudConfig.get(e):void 0}},{key:"getServerConfig",value:function(e){var t={code:0,data:""};return!dt(e)&&this._cloudConfig.has(e)&&(t.data=this._cloudConfig.get(e)),Promise.resolve(t)}},{key:"_canFetch",value:function(){return this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime}},{key:"fetchConfig",value:function(){var e,t=this,n="".concat(this._n,".fetchConfig"),a=this._canFetch();Pe.l("".concat(n," canFetch:").concat(a)),a&&(e=new $n("fetchCloudCtrlConfig"),a=this.get(12).getSDKAppID(),this._isFetching=!0,this.req({P:xn.FETCH_CLOUD_CTRL_CONFIG,data:{SDKAppID:a,version:this._version}}).then((function(a){t._isFetching=!1;var o=(i=a.data).version,i=i.cloudControlConfig;e.setMessage("version:".concat(t._version," newVersion:").concat(o," config:").concat(i)).end(),Pe.l("".concat(n," ok")),t._parse(a.data)})).catch((function(a){t._isFetching=!1,e.setError(a).end(),Pe.l("".concat(n," failed. error:"),a),t._setExpiredTime(12e4)})))}},{key:"onPushedConfig",value:function(e){Pe.l("".concat(this._n,".onPushedConfig config:"),e),new $n("pushedCloudCtrlConfig").setMessage("newVersion:".concat(e.version," config:").concat(e.cloudControlConfig)).end(),this._parse(e)}},{key:"onCheckTimer",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:"_parse",value:function(e){var t=this,n="".concat(this._n,"._parse"),a=e.errorCode,o=e.errorMessage,i=e.cloudControlConfig,s=e.version,r=e.expiredTime;if(0===a){if(this._version!==s){var c=null;try{c=JSON.parse(i)}catch(l){this.isPrivateNetWork()||Pe.e("".concat(n," failed. config:"),i)}c&&(this._cloudConfig.clear(),Object.keys(c).forEach((function(e){t._cloudConfig.set(e,c[e])})),this._version=s,this.emitIEvt(Ua.CLOUD_CONFIG))}this._setExpiredTime(1e3*r)}else dt(a)?(Pe.l("".concat(n," failed. Invalid message format:"),e),this._setExpiredTime(36e5)):(Pe.e("".concat(n," errorCode:").concat(a," errorMessage:").concat(o)),this._setExpiredTime(12e4))}},{key:"_setExpiredTime",value:function(e){this._expiredTime=Date.now()+e}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),Jr),Zs=(r(jr,Ln),Us=f(jr),i(jr,[{key:"start",value:function(){this._recoverGroupChat(),this._recoverC2CChat()}},{key:"_recoverGroupChat",value:function(){var e,t,n,a,o=this,i=this._getLocalConvList().filter((function(e){return e.type===M.CONV_GROUP&&e.groupProfile.type!==M.GRP_AVCHATROOM})),s=this.get(11),r=[];i.forEach((function(i){var c=i.conversationID;i=i.lastMessage,e=c.replace(M.CONV_GROUP,""),t=s.getLocalLastMessage(c),i&&0!==i.lastSequence&&t&&(n=i.lastSequence,t=t.sequence,a=n-t,0<t)&&1<=a&&a<300?o._recoverGroupMsg({groupID:e,localLastMessageSequence:t,remoteLastMessageSequence:n}):r.push(e)})),this._getGroupNotice(r)}},{key:"_recoverC2CChat",value:function(){var e,t,n,a=this,o=this._getLocalConvList().filter((function(e){return e.type===M.CONV_C2C})),i=this.get(11),s=[Promise.resolve()];o.forEach((function(o){var r=o.conversationID;o=o.lastMessage,e=i.getLocalLastMessage(r),o&&0!==o.lastTime&&e&&(t=o.lastTime,e=e.time,n=t-e,0<e)&&1<=n&&n<=600&&s.push(a._recoverC2CMsg({conversationID:r,localLastMessageTime:e,remoteLastMessageTime:t}))})),Promise.all(s).then((function(){Pe.l("".concat(a._n,"._recoverC2CChat all done")),a.get(19).syncOnReconnected()}))}},{key:"_getLocalConvList",value:function(){return this.get(11).getLocalConvList()}},{key:"_recoverGroupMsg",value:function(e){var t=this,n="".concat(this._n,".").concat("_recoverGroupMsg"),a=(Pe.l("".concat(n," options:"),e),e.groupID),o=e.localLastMessageSequence,i=e.remoteLastMessageSequence,s=JSON.stringify(e),r=new $n("_recoverGroupMsg");r.setMessage(s),this._getGroupRoamingMsg({groupID:a,sequence:o}).then((function(e){var c=(e=e.data).complete,l=e.messageList;if(!dt(l)){e=l[0].sequence;var u=l.map((function(e){return e.sequence})),d=(u="".concat(s," complete:").concat(c," sequenceList:").concat(u),Pe.l("".concat(n," ").concat(u)),e!==o&&e<i&&2!==c&&t._recoverGroupMsg({groupID:a,localLastMessageSequence:e,remoteLastMessageSequence:i}),r.setMessage(u).end(),t.get(7));1<l.length&&l.sort((function(e,t){return e.sequence-t.sequence}));for(var m=!1,p=0,h=l.length;p<h;p++)if(l[p].from===M.CONV_SYSTEM){m=!0;break}if(m)for(var g=0,f=l.length;g<f;g++){var v=l[g];v.from!==M.CONV_SYSTEM?d.onNewMessage({dataList:[v],isInstantMessage:!1,updateUnreadCount:!1}):d.onNewGroupTips({event:v.event,dataList:[v]})}else d.onNewMessage({dataList:l,isInstantMessage:!1,updateUnreadCount:!1})}})).catch((function(e){r.setError(e).end(),Pe.w("".concat(n," failed. error:"),e)}))}},{key:"_getGroupNotice",value:function(e){var t=e.length;if(Pe.l("".concat(this._n,"._getGroupNotice length:").concat(t)),0!==t){var n=this.get(7);if(t<=10)n.getNotice(e);else{var a=Math.floor(t/10);5<=a&&(a=5);for(var o=0;o<=a;o++)n.getNotice(e.slice(10*o,10*(o+1)))}}}},{key:"_getGroupRoamingMsg",value:function(e){var t=e.groupID;return e=e.sequence,this.req({P:xn.GET_GRP_ROAMING_MSG,data:{groupID:t,count:this.PULL_LIMIT_COUNT,sequence:e+this.PULL_LIMIT_COUNT-1}})}},{key:"_recoverC2CMsg",value:function(e){var t=this,n="".concat(this._n,".").concat("_recoverC2CMsg"),a=(Pe.l("".concat(n," options:"),e),e.conversationID),o=e.localLastMessageTime,i=e.remoteLastMessageTime,s=JSON.stringify(e),r=new $n("_recoverC2CMsg");return r.setMessage(s),this._getC2CRoamingMsg({conversationID:a,time:o}).then((function(e){var o=(e=e.data).complete;if(e=e.messageList,!dt(e)){var c=e.length;if(t.get(6).onNewMessage({dataList:e,isInstantMessage:!0}),c=e[c-1].time,e=e.map((function(e){return e.random})),e="".concat(s," complete:").concat(o," randomList:").concat(e),Pe.l("".concat(n," ").concat(e)),r.setMessage(e).end(),c<i&&1!==o)return t._recoverC2CMsg({conversationID:a,localLastMessageTime:c,remoteLastMessageTime:i})}})).catch((function(e){r.setError(e).end(),Pe.w("".concat(n," failed. error:"),e)}))}},{key:"_getC2CRoamingMsg",value:function(e){var t=e.conversationID;return e=e.time,this.req({P:xn.GET_C2C_ROAMING_MSG,data:{peerAccount:t.replace(M.CONV_C2C,""),count:this.PULL_LIMIT_COUNT+1,lastMessageTime:e,direction:1}})}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset"))}}]),jr),qs=(i(qr,[{key:"addMessageDelay",value:function(e){0<=(e=Se()-e)&&this._e2eDelayArray.push(e)}},{key:"_calcAvg",value:function(e,t){var n;return 0===t?0:(n=0,e.forEach((function(e){n+=e})),Ot(n/t,1))}},{key:"_calcCountWithLimit",value:function(e){var t=e.e2eDelayArray,n=e.min,a=e.max;return t.filter((function(e){return n<=e&&e<a})).length}},{key:"_calcPercent",value:function(e,t){return 100<(e=Ot(e/t*100,2))?100:e}},{key:"_checkE2EDelayException",value:function(e,t){var n,a,o,i=e.filter((function(e){return t<e}));0<i.length&&(n=i.length,a=Math.min.apply(Math,_(i)),o=Math.max.apply(Math,_(i)),i=this._calcAvg(i,n),50<(e=Ot(n/e.length*100,2)))&&new $n("messageE2EDelayException").setMessage("count:".concat(n," min:").concat(a," max:").concat(o," avg:").concat(i," percent:").concat(e)).setLevel("warning").end()}},{key:"getStatResult",value:function(){var e,t,n,a,o,i,s=this._e2eDelayArray.length;return 0===s?null:(e=_(this._e2eDelayArray),t=this._calcCountWithLimit({e2eDelayArray:e,min:0,max:1}),n=this._calcCountWithLimit({e2eDelayArray:e,min:1,max:3}),a=this._calcPercent(t,s),o=this._calcPercent(n,s),i=this._calcAvg(e,s),this._checkE2EDelayException(e,3),e.length=0,this.reset(),{totalCount:s,countLessThan1Second:t,percentOfCountLessThan1Second:a,countLessThan3Second:n,percentOfCountLessThan3Second:o,avgDelay:i})}},{key:"reset",value:function(){this._e2eDelayArray.length=0}}]),qr),js=(i(Zr,[{key:"addRequestCount",value:function(){this._requestCount+=1}},{key:"addRTT",value:function(e){this._rttArray.push(e)}},{key:"_calcTotalCount",value:function(){return this._requestCount}},{key:"_calcRTTCount",value:function(e){return e.length}},{key:"_calcSuccessRateOfRequest",value:function(e,t){return 0===t?0:100<(e=Ot(e/t*100,2))?100:e}},{key:"_calcAvg",value:function(e,t){var n;return 0===t?0:(n=0,e.forEach((function(e){n+=e})),parseInt(n/t))}},{key:"_calcMax",value:function(){return Math.max.apply(Math,_(this._rttArray))}},{key:"_calcMin",value:function(){return Math.min.apply(Math,_(this._rttArray))}},{key:"getStatResult",value:function(){var e,t,n=this._calcTotalCount(),a=_(this._rttArray);return 0===n?null:(e=this._calcRTTCount(a),t=this._calcSuccessRateOfRequest(e,n),a=this._calcAvg(a,e),Pe.l("".concat(this._n,".getStatResult max:").concat(this._calcMax()," min:").concat(this._calcMin()," avg:").concat(a)),this.reset(),{totalCount:n,rttCount:e,successRateOfRequest:t,avgRTT:a})}},{key:"reset",value:function(){this._requestCount=0,this._rttArray.length=0}}]),Zr),Js=(i(Hr,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}))}},{key:"addTotalCount",value:function(e){return!(dt(e)||!this._map.has(e)||(this._map.get(e).totalCount+=1,0))}},{key:"addSuccessCount",value:function(e){return!(dt(e)||!this._map.has(e)||(this._map.get(e).successCount+=1,0))}},{key:"addFailedCountOfUserSide",value:function(e){return!(dt(e)||!this._map.has(e)||(this._map.get(e).failedCountOfUserSide+=1,0))}},{key:"addCost",value:function(e,t){return!(dt(e)||!this._map.has(e)||(this._map.get(e).costArray.push(t),0))}},{key:"addFileSize",value:function(e,t){return!(dt(e)||!this._map.has(e)||(this._map.get(e).fileSizeArray.push(t),0))}},{key:"_calcSuccessRateOfBusiness",value:function(e){return dt(e)||!this._map.has(e)?-1:100<(e=Ot((e=this._map.get(e)).successCount/e.totalCount*100,2))?100:e}},{key:"_calcSuccessRateOfPlatform",value:function(e){var t;return dt(e)||!this._map.has(e)?-1:(t=this._map.get(e),100<(e=Ot(e=this._calcSuccessCountOfPlatform(e)/t.totalCount*100,2))?100:e)}},{key:"_calcTotalCount",value:function(e){return dt(e)||!this._map.has(e)?-1:this._map.get(e).totalCount}},{key:"_calcSuccessCountOfBusiness",value:function(e){return dt(e)||!this._map.has(e)?-1:this._map.get(e).successCount}},{key:"_calcSuccessCountOfPlatform",value:function(e){return dt(e)||!this._map.has(e)?-1:(e=this._map.get(e)).successCount+e.failedCountOfUserSide}},{key:"_calcAvg",value:function(e){return dt(e)||!this._map.has(e)?-1:e===qn?this._calcAvgSpeed(e):this._calcAvgCost(e)}},{key:"_calcAvgCost",value:function(e){var t,n=this._map.get(e).costArray.length;return 0===n?0:(t=0,this._map.get(e).costArray.forEach((function(e){t+=e})),parseInt(t/n))}},{key:"_calcAvgSpeed",value:function(e){var t=0,n=0;return this._map.get(e).costArray.forEach((function(e){t+=e})),this._map.get(e).fileSizeArray.forEach((function(e){n+=e})),parseInt(1e3*n/t)}},{key:"getStatResult",value:function(e){var t,n,a,o,i,s=this._calcTotalCount(e);return 0===s?null:(t=this._calcSuccessCountOfBusiness(e),n=this._calcSuccessRateOfBusiness(e),a=this._calcSuccessCountOfPlatform(e),o=this._calcSuccessRateOfPlatform(e),i=this._calcAvg(e),this.reset(e),{totalCount:s,successCountOfBusiness:t,successRateOfBusiness:n,successCountOfPlatform:a,successRateOfPlatform:o,avgValue:i})}},{key:"reset",value:function(e){dt(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}}]),Hr),Xs=(i(Yr,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._lastMap.set(e,new Map),t._currentMap.set(e,new Map)}))}},{key:"addMessageSequence",value:function(e){var t,n,a,o=e.key,i=e.message;return!(dt(o)||!this._lastMap.has(o)||!this._currentMap.has(o)||(t=i.conversationID,i=i.sequence,t=t.replace(M.CONV_GROUP,""),0!==this._lastMap.get(o).size&&this._lastMap.get(o).has(t)&&(a=(n=this._lastMap.get(o).get(t)).length-1,i>n[0])&&i<n[a]?(n.push(i),n.sort(),this._lastMap.get(o).set(t,n)):this._addCurrentMap(e),0))}},{key:"_addCurrentMap",value:function(e){var t=e.key,n=(e=e.message).conversationID;e=e.sequence,n=n.replace(M.CONV_GROUP,""),this._currentMap.get(t).has(n)||this._currentMap.get(t).set(n,[]),this._currentMap.get(t).get(n).push(e)}},{key:"_copyData",value:function(e){if(!dt(e)){this._lastMap.set(e,new Map);var t,n=this._lastMap.get(e),a=S(this._currentMap.get(e));try{for(a.s();!(t=a.n()).done;){var o=v(t.value,2),i=o[0],s=o[1];n.set(i,s)}}catch(r){a.e(r)}finally{a.f()}n=null,this._currentMap.set(e,new Map)}}},{key:"getStatResult",value:function(e){var t,n,a;return dt(this._currentMap.get(e))||dt(this._lastMap.get(e))?null:0===this._lastMap.get(e).size?(this._copyData(e),null):(n=t=0,this._lastMap.get(e).forEach((function(e,a){var o=(e=_(e.values())).length;e=e[o-1]-e[0]+1,t+=e,n+=o})),0===t?null:(100<(a=Ot(n/t*100,2))&&(a=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:n,successRateOfMessageReceived:a}))}},{key:"reset",value:function(){this._currentMap.clear(),this._lastMap.clear()}}]),Yr),Ks=(r(Fr,Ln),xs=f(Fr),i(Fr,[{key:"_onLoginSuccess",value:function(){var e=this,t=(this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems),this.get(13)),n=t.getItem(this.TAG,!1);!He(n)&&We(n.forEach)&&(Pe.l("".concat(this._n,"._onLoginSuccess. logs count:").concat(n.length)),n.forEach((function(t){e._statInfoArr.push(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfig",value:function(){var e=this.getCloudConfig("q_rpt_interval"),t=this.getCloudConfig("q_rpt_sdkappid_bl"),n=this.getCloudConfig("q_rpt_tinyid_wl");dt(e)||(this.REPORT_INTERVAL=Number(e)),dt(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(",").map((function(e){return Number(e)}))),dt(n)||(this.REPORT_TINYID_WHITELIST=n.split(","))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this.REPORT_INTERVAL==0&&(this.wholePeriod=!0,this._report())}},{key:"addRequestCount",value:function(){this._avgRTT.addRequestCount()}},{key:"addRTT",value:function(e){this._avgRTT.addRTT(e)}},{key:"addMessageDelay",value:function(e){this._avgE2EDelay.addMessageDelay(e)}},{key:"addTotalCount",value:function(e){this._rateMessageSent.addTotalCount(e)||Pe.w("".concat(this._n,".addTotalCount invalid key:"),e)}},{key:"addSuccessCount",value:function(e){this._rateMessageSent.addSuccessCount(e)||Pe.w("".concat(this._n,".addSuccessCount invalid key:"),e)}},{key:"addFailedCountOfUserSide",value:function(e){this._rateMessageSent.addFailedCountOfUserSide(e)||Pe.w("".concat(this._n,".addFailedCountOfUserSide invalid key:"),e)}},{key:"addCost",value:function(e,t){this._rateMessageSent.addCost(e,t)||Pe.w("".concat(this._n,".addCost invalid key or cost:"),e,t)}},{key:"addFileSize",value:function(e,t){this._rateMessageSent.addFileSize(e,t)||Pe.w("".concat(this._n,".addFileSize invalid key or size:"),e,t)}},{key:"addMessageSequence",value:function(e){this._rateMessageReceived.addMessageSequence(e)||Pe.w("".concat(this._n,".addMessageSequence invalid key:"),e.key)}},{key:"_getQualityItem",value:function(e){var n={},a=Wn[this.get(15).getNetworkType()];switch(dt(a)&&(a=8),a={qualityType:Kn[e],timestamp:Ne(),networkType:a,extension:""},e){case Un:n=this._avgRTT.getStatResult();break;case Gn:n=this._avgE2EDelay.getStatResult();break;case Fn:case Yn:case Hn:case Zn:case qn:n=this._rateMessageSent.getStatResult(e);break;case jn:case Jn:case Xn:n=this._rateMessageReceived.getStatResult(e)}return null===n?null:t(t({},a),n)}},{key:"_report",value:function(e){var t=this,n=[],a=null,o=(dt(e)?this._qualityItems.forEach((function(e){null!==(a=t._getQualityItem(e))&&(a.reportIndex=t.reportIndex,a.wholePeriod=t.wholePeriod,n.push(a))})):null!==(a=this._getQualityItem(e))&&(a.reportIndex=this.reportIndex,a.wholePeriod=this.wholePeriod,n.push(a)),Pe.d("".concat(this._n,"._report"),n),0<this._statInfoArr.length&&(n=n.concat(this._statInfoArr),this._statInfoArr=[]),e=this.get(12)).getSDKAppID();e=e.getTinyID(),0<(n=Vt(this.REPORT_SDKAPPID_BLACKLIST,o)&&!Bt(this.REPORT_TINYID_WHITELIST,e)?[]:n).length&&this._doReport(n)}},{key:"_doReport",value:function(e){var n=this,a={header:si(this),quality:e};this.req({P:xn.SSO_STAT,data:t({},a)}).then((function(){n.reportIndex++,n.wholePeriod=!1})).catch((function(t){Pe.w("".concat(n._n,"._doReport failed. error:"),t),n._statInfoArr=n._statInfoArr.concat(e),n._flushAtOnce()}))}},{key:"_flushAtOnce",value:function(){var e=this.get(13),t=e.getItem(this.TAG,!1),n=this._statInfoArr,a="".concat(this._n,"._flushAtOnce");He(t)?(Pe.l("".concat(a," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1)):(10<(n=n.concat(t)).length&&(n=n.slice(0,10)),Pe.l("".concat(a," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1)),this._statInfoArr=[]}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._report(),this.reportIndex=0,this.wholePeriod=!1,this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[],this._avgRTT.reset(),this._avgE2EDelay.reset(),this._rateMessageSent.reset(),this._rateMessageReceived.reset()}}]),Fr),zs=i((function e(t){a(this,e),He(t)||(this.userID=t.userID||"",this.nick=t.nick||"",this.avatar=t.avatar||"",this.time=t.time||0,this.source=t.source||"",this.wording=t.wording||"",this.type=t.type||"")})),Ws=(i(Gr,[{key:"getLocalApplicationList",value:function(){return{friendApplicationList:_(this._map.values()),unreadCount:this._unreadCount}}},{key:"_onApplicationListUpdated",value:function(){this._snsM.emitOEvt(T.FRIEND_APPLICATION_LIST_UPDATED,{friendApplicationList:_(this._map.values()),unreadCount:this._unreadCount})}},{key:"onApplicationRead",value:function(){this._unreadCount=0,this._onApplicationListUpdated()}},{key:"onApplicationAdded",value:function(e,n){var a,o,i=this;He(e)||(a="",a=n===this._snsM.getMyUserID()?M.SNS_APPLICATION_SENT_BY_ME:M.SNS_APPLICATION_SENT_TO_ME,o=!1,e.forEach((function(e){var n="".concat(e.userID,"_").concat(a);a!==M.SNS_APPLICATION_SENT_TO_ME||i._map.has(n)||(i._unreadCount+=1),i._map.set(n,new zs(t(t({},e),{},{type:a}))),o=!0})),o&&this._onApplicationListUpdated())}},{key:"onApplicationDeleted",value:function(e){He(e)||(this._startTime=0,this._currentSeq=0,this.getApplicationList())}},{key:"getApplicationList",value:function(){var e=this,t="".concat(this._n,".").concat("getApplicationList"),n=new $n("getApplicationList");return this._snsM.req({P:xn.GET_FD_APPLICATION_LIST,data:{applicationType:M.SNS_APPLICATION_TYPE_BOTH,fromAccount:this._snsM.getMyUserID(),maxLimited:this._maxLimited,startTime:this._startTime,lastSequence:this._currentSeq}}).then((function(a){var o=(a=a.data).resultList,i=a.unreadCount,s=a.startTime,r=(a=a.currentSequence,e._startTime=s,e._currentSeq=a,e._unreadCount=i,ze(o)?o.length:0);r="applicationCount:".concat(r," unreadCount:").concat(i," startTime:").concat(s," currentSequence:").concat(a),n.setMessage(r).end(),Pe.i("".concat(t," ok. ").concat(r)),e._map.clear(),ze(o)&&o.forEach((function(t){var n=t.userID,a=t.type;t=new zs(t),e._map.set("".concat(n,"_").concat(a),t)})),e._onApplicationListUpdated()})).catch((function(e){return n.setError(e).end(),Pe.w("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"deleteApplication",value:function(e){var t,n="".concat(this._n,".").concat("deleteApplication"),a=e.userID,o=e.type;return o&&(o===M.SNS_APPLICATION_SENT_BY_ME||o===M.SNS_APPLICATION_SENT_TO_ME)||(o=M.SNS_APPLICATION_SENT_TO_ME),this._map.has("".concat(a,"_").concat(o))?((t=new $n("deleteApplication")).setMessage("userID:".concat(a," type:").concat(o)),this._snsM.req({P:xn.DEL_FD_APPLICATION,data:{fromAccount:this._snsM.getMyUserID(),userIDList:[a],type:o}}).then((function(e){var i=(r=(e=e.data.resultList)[0]).to,s=r.resultCode,r=r.resultInfo;return t.setMoreMessage("resultList:".concat(JSON.stringify(e))).end(),Pe.i("".concat(n," ok. userID:").concat(a," type:").concat(o)),0===s?yn():Cn({userID:i,code:s,message:r})})).catch((function(e){return t.setError(e).end(),Pe.w("".concat(n," failed. error:"),e),Cn(e)}))):Cn({code:Vn.FRIEND_APPLICATION_NOT_EXIST})}},{key:"acceptApplication",value:function(e){var t="".concat(this._n,".").concat("acceptApplication"),n=e.userID,a=e.remark,o=e.tag,i=e.type,s=(i&&(i===M.SNS_APPLICATION_AGREE||i===M.SNS_APPLICATION_AGREE_AND_ADD)||(i=M.SNS_APPLICATION_AGREE_AND_ADD),new $n("acceptApplication"));return s.setMessage("userID:".concat(n," type:").concat(i)),this._snsM.req({P:xn.RESPOND_FD_APPLICATION,data:{fromAccount:this._snsM.getMyUserID(),responseFriendItem:[{userID:n,remark:a,tag:o,action:i}]}}).then((function(e){s.end();var a=(e=e.data.resultList[0]).resultCode;if(e=e.resultInfo,0!==a)return Cn({code:a,message:e});Pe.i("".concat(t," ok. userID:").concat(n," type:").concat(i))})).catch((function(e){return s.setError(e).end(),Pe.w("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"refuseApplication",value:function(e){var t="".concat(this._n,".").concat("refuseApplication"),n=e.userID,a=new $n("refuseApplication");return a.setMessage("userID:".concat(n)),this._snsM.req({P:xn.RESPOND_FD_APPLICATION,data:{fromAccount:this._snsM.getMyUserID(),responseFriendItem:[{userID:n,action:"Response_Action_Reject"}]}}).then((function(e){a.end();var o=(e=e.data.resultList[0]).resultCode;if(e=e.resultInfo,0!==o)return Cn({code:o,message:e});Pe.i("".concat(t," ok. userID:").concat(n))})).catch((function(e){return a.setError(e).end(),Pe.w("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"setApplicationRead",value:function(){var e=this,t="".concat(this._n,".").concat("setApplicationRead"),n=new $n("setApplicationRead");return this._snsM.req({P:xn.REPORT_FD_APPLICATION,data:{fromAccount:this._snsM.getMyUserID(),latestTimeStamp:Ot(Ne()/1e3,0)}}).then((function(a){n.end(),Pe.i("".concat(t," ok")),e._unreadCount=0})).catch((function(e){return n.setError(e).end(),Pe.w("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"reset",value:function(){this._maxLimited=100,this._currentSeq=0,this._unreadCount=0,this._map.clear()}}]),Gr),Qs=(i(Ur,[{key:"validate",value:function(e){var t,n=!0,a="";if(He(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var o=e.profileCustomField.length,i=null,s=0;s<o;s++){if(i=e.profileCustomField[s],!ut(i.key)||-1===i.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"The prefix of keys of the custom profile key-value pairs (which is profileCustomField) must be Tag_Profile_Custom"};if(!ut(i.value))return{valid:!1,tips:"The type of values of the custom profile key-value pairs (which is profileCustomField) must be String"}}for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)){if("profileCustomField"===t)continue;if(He(e[t])&&!ut(e[t])&&!Je(e[t])){a="key:"+t+", invalid value:"+e[t],n=!1;continue}switch(t){case"nick":ut(e[t])||(n=!(a="nick must be a string")),500<at(e[t])&&(a="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(at(e[t])," bytes"),n=!1);break;case"gender":st(Ve,e.gender)||(a="key:gender, invalid value:"+e.gender,n=!1);break;case"birthday":Je(e.birthday)||(n=!(a="birthday must be a number"));break;case"location":ut(e.location)||(n=!(a="location must be a string"));break;case"selfSignature":ut(e.selfSignature)||(n=!(a="selfSignature must be a string"));break;case"allowType":st(xe,e.allowType)||(a="key:allowType, invalid value:"+e.allowType,n=!1);break;case"language":Je(e.language)||(n=!(a="language must be a number"));break;case"avatar":ut(e.avatar)||(n=!(a="avatar must be a string"));break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(n=!(a="messageSettings must be 0 or 1"));break;case"adminForbidType":st(Be,e.adminForbidType)||(a="key:adminForbidType, invalid value:"+e.adminForbidType,n=!1);break;case"level":Je(e.level)||(n=!(a="level must be a number"));break;case"role":Je(e.role)||(n=!(a="role must be a number"));break;default:a="unknown key:"+t+" "+e[t],n=!1}}return{valid:n,tips:a}}},{key:"update",value:function(e){var t,n="",a=[];this.friendCustomField.forEach((function(e){a.push(e.key)}));for(var o=0,i=e.length;o<i;o++)if(n=e[o].tag,t=e[o].value,-1<n.indexOf("Tag_SNS_Custom"))-1<a.indexOf(n)?this.friendCustomField.forEach((function(e){e.key===n&&(e.value=t)})):this.friendCustomField.push({key:n,value:t});else if(-1<n.indexOf("Tag_Profile_Custom")){var s=!1;this.profile.profileCustomField.forEach((function(e){e.key===n&&(e.value=t,s=!0)})),s||this.profile.profileCustomField.push({key:n,value:t})}else switch(n){case Re.NICK:this.profile.nick=t;break;case Re.GENDER:this.profile.gender=t;break;case Re.BIRTHDAY:this.profile.birthday=t;break;case Re.LOCATION:this.profile.location=t;break;case Re.SELFSIGNATURE:this.profile.selfSignature=t;break;case Re.ALLOWTYPE:this.profile.allowType=t;break;case Re.LANGUAGE:this.profile.language=t;break;case Re.AVATAR:this.profile.avatar=t;break;case Re.MESSAGESETTINGS:this.profile.messageSettings=t;break;case Re.ADMINFORBIDTYPE:this.profile.adminForbidType=t;break;case Re.LEVEL:this.profile.level=t;break;case Re.ROLE:this.profile.role=t;break;case Oe.REMARK:this.remark=t;break;case Oe.ADDTIME:this.addTime=t;break;case Oe.GROUP:this.groupList=JSON.parse(JSON.stringify(t));break;case Oe.ADDSOURCE:this.source=t;break;case Oe.ADDWORDING:break;default:Pe.d("snsProfileItem unkown tag->",e[o].tag)}this.timestamp=Date.now(),a.length=0}},{key:"updateProfile",value:function(e){this.profile=JSON.parse(JSON.stringify(e)),this.timestamp=Date.now()}},{key:"addToGroupList",value:function(e){-1===this.groupList.indexOf(e)&&(this.groupList.push(e),this.count=this.groupList.length)}},{key:"removeFromGroupList",value:function(e){-1<(e=this.groupList.indexOf(e))&&(this.groupList.splice(e,1),this.count=this.groupList.length)}}]),Ur),$s=(i(xr,[{key:"getLocalFriendList",value:function(){return _(this._map.values())}},{key:"getFriendRemark",value:function(e){return this._map.has(e)?this._map.get(e).remark:""}},{key:"onFriendProfileModified",value:function(e){var t,n=this;He(e=e.dataList)||(t=this._snsM.get(11),e.forEach((function(e){var a,o=e.userID;e=e.profileList,n.isMyFriend(o)&&(Pe.l("".concat(n._n,".onFriendProfileModified. friend account:").concat(o,", profileList:").concat(JSON.stringify(e))),(a=n._map.get(o)).update(e),t.modifyMessageSentByPeer({conversationID:"".concat(M.CONV_C2C).concat(o),latestNick:a.profile.nick,latestAvatar:a.profile.avatar}))})),this._onFriendListUpdated())}},{key:"onFriendAdded",value:function(e){var t=this;0!==e.length&&(Pe.l("".concat(this._n,".onFriendAdded userIDList:").concat(e)),e.forEach((function(e){t._map.set(e,new Qs(e))})),this.getFriendProfile({userIDList:e}).then((function(n){e.forEach((function(e){var n=t._map.get(e);0<n.groupList.length&&t._snsM.updateWhenFriendAdded({nameList:n.groupList,userID:e})})),t._onFriendListUpdated()})))}},{key:"onFriendDeleted",value:function(e){var t=this;0!==e.length&&(Pe.l("".concat(this._n,".onFriendDeleted userIDList:").concat(e)),e.forEach((function(e){var n=t._map.get(e);0<n.groupList.length&&t._snsM.updateWhenFriendDeleted({nameList:n.groupList,userID:e}),t._map.delete(e)})),this._onFriendListUpdated())}},{key:"_onFriendListUpdated",value:function(){this._snsM.emitOEvt(T.FRIEND_LIST_UPDATED),this._snsM.get(11).checkAndPatchRemark()}},{key:"getFriendProfile",value:function(e){var t,n=this,a="".concat(this._n,".").concat("getFriendProfile"),o=(e=e.userIDList,[]),i=[],s=[];return e.forEach((function(e){var t;n._map.has(e)?(t=n._map.get(e),Date.now()-t.timestamp<n._expirationTime?i.push(t):s.push(e)):o.push({userID:e,code:Vn.NOT_MY_FRIEND,message:n._snsM.getErrMsg(Vn.NOT_MY_FRIEND)})})),0===s.length?(Pe.i("".concat(a," newUserIDList is empty")),En({friendList:i,failureUserIDList:o})):((t=new $n("getFriendProfile")).setMessage("userIDList:".concat(s)),Pe.i("".concat(a," userIDList:").concat(s)),this._snsM.req({P:xn.GET_FD_PROFILE,data:{fromAccount:this._snsM.getMyUserID(),userIDList:s}}).then((function(e){return t.end(),Pe.i("".concat(a," ok")),e.data.resultList.forEach((function(e){var t,a=e.to,s=e.resultCode,r=e.resultInfo;e=e.tagValueList,dt(s)||0===s?(n._map.has(a)?(t=n._map.get(a)).update(e):(t=new Qs(a,e),n._map.set(a,t)),i.push(t)):o.push({userID:a,code:s,message:r})})),yn({friendList:i,failureUserIDList:o})})).catch((function(e){return t.setError(e).end(),Pe.w("".concat(a," failed. error:"),e),Cn(e)})))}},{key:"isMyFriend",value:function(e){return this._map.has(e)}},{key:"pagingGetFriendList",value:function(){var e=this,t="".concat(this._n,".").concat("getFriendList"),n=new $n("getFriendList"),a=Date.now();this._snsM.req({P:xn.GET_FD_LIST,data:{fromAccount:this._snsM.getMyUserID(),startIndex:this._startIdx,standardSequence:this._standardSeq,customSequence:this._customSeq}}).then((function(o){var i=(o=o.data).friendCount,s=o.resultList,r=o.nextStartIndex,c=o.standardSequence,l=o.customSequence;o=o.completeFlag,e._startIdx=r,e._standardSeq=c,e._customSeq=l,i="friendCount:".concat(i," nextStartIndex:").concat(r," standardSequence:").concat(c," ")+"customSequence:".concat(l," completeFlag:").concat(o," cost:").concat(jt(a)),n.setMessage(i).end(),Pe.i("".concat(t," ok."),i),He(s)||s.forEach((function(t){var n=t.to;t=t.tagValueList,e._map.set(n,new Qs(n,t))})),0===o?e.pagingGetFriendList():(e._snsM.emitOEvt(T.FRIEND_LIST_UPDATED),e._pagingGetFriendProfile())})).catch((function(e){return n.setError(e).end(),Pe.w("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"_pagingGetFriendProfile",value:function(){var e=this,t=_(this._map.keys()),n=this._snsM.get(4),a=t.length,o=a<=100?1:Math.ceil(a/100);Pe.l("".concat(this._n,"._pagingGetFriendProfile friendCount:").concat(a," pageCount:").concat(o));for(var i=0;i<o;i++)n.getUserProfile({userIDList:t.slice(100*i,100*(i+1))}).then((function(t){t.data.forEach((function(t){var n=e._map.get(t.userID);n&&n.updateProfile(t)})),e._onFriendListUpdated()}))}},{key:"addFriend",value:function(e){var t,n,a,o,i,s,r,c=this,l="".concat(this._n,".").concat("addFriend");return this._map.has(e.to)?Cn({code:Vn.ALREADY_MY_FRIEND}):e.wording&&!1===this._snsM.filterProfanity("wording",e)?Cn({code:Vn.PROFANITY_FOUND}):(t=e.to,n=e.source,a=e.type,o=e.wording,i=e.remark,e=e.groupName,(s=a)&&(s===M.SNS_ADD_TYPE_SINGLE||s===M.SNS_ADD_TYPE_BOTH)||(s=M.SNS_ADD_TYPE_BOTH),(r=new $n("addFriend")).setMessage("to:".concat(t," source:").concat(n," type:").concat(s)),this._snsM.req({P:xn.ADD_FD,data:{fromAccount:this._snsM.getMyUserID(),addFriendItem:[{to:t,source:n,wording:o,remark:i,groupName:e}],type:s}}).then((function(e){e=e.data.resultList;var t=(r.setMoreMessage("resultList:".concat(JSON.stringify(e))).end(),e=e[0]).to,n=e.resultCode;return e=e.resultInfo,Pe.i("".concat(l," ok. to:").concat(t," type:").concat(s," code:").concat(n)),dt(n)||0===n?yn({userID:t,code:0}):30539===n?yn({userID:t,code:n,message:c._snsM.getErrMsg(n)}):Cn({userID:t,code:n,message:c._snsM.getErrMsg(n)||e})})).catch((function(e){return r.setError(e).end(),Pe.w("".concat(l," failed. error:"),e),Cn(e)})))}},{key:"deleteFriend",value:function(e){var t,n=this,a="".concat(this._n,".").concat("deleteFriend"),o=e.userIDList,i=(e=e.type,1e3<o.length&&(Pe.w("".concat(a," ").concat(Ht(1e3))),o.length=1e3),[]),s=[],r=[];return o.forEach((function(e){n._map.has(e)?r.push(e):i.push({userID:e,code:Vn.NOT_MY_FRIEND,message:n._snsM.getErrMsg(Vn.NOT_MY_FRIEND)})})),0===r.length?En({successUserIDList:s,failureUserIDList:i}):((o=e)&&(o===M.SNS_DELETE_TYPE_SINGLE||o===M.SNS_DELETE_TYPE_BOTH)||(o=M.SNS_DELETE_TYPE_BOTH),(t=new $n("deleteFriend")).setMessage("userIDList:".concat(r," type:").concat(o)),this._snsM.req({P:xn.DEL_FD,data:{fromAccount:this._snsM.getMyUserID(),userIDList:r,type:o}}).then((function(e){return t.end(),Pe.i("".concat(a," ok")),He(e=e.data.resultList)||e.forEach((function(e){var t=e.to,n=e.resultCode;e=e.resultInfo,dt(n)||0===n?s.push({userID:t}):i.push({userID:t,code:n,message:e})})),yn({successUserIDList:s,failureUserIDList:i})})).catch((function(e){return t.setError(e).end(),Pe.w("".concat(a," error:"),e),Cn(e)})))}},{key:"updateFriend",value:function(e){var t,n,a,o=this,i=e.userID,s=e.remark,r=e.friendCustomField;return this._map.has(i)?(t="".concat(this._n,".").concat("updateFriend"),(n=new $n("updateFriend")).setMessage("userID:".concat(i," remark:").concat(s," friendCustomField:").concat(r)),a=[],dt(s)||a.push({tag:Oe.REMARK,value:s}),ze(r)&&0<r.length&&r.forEach((function(e){a.push({tag:e.key,value:e.value})})),this._snsM.req({P:xn.UPDATE_FD,data:{fromAccount:this._snsM.getMyUserID(),updateItem:[{to:i,snsItem:a}]}}).then((function(e){n.end(),Pe.i("".concat(t," ok"));var a=(e=e.data.resultList[0]).to,i=e.resultCode;return e=e.resultInfo,dt(i)||0===i?((a=o._map.get(a))&&(dt(s)||(a.remark=s),ze(r)&&0<r.length&&_t(a.friendCustomField,r),o._onFriendListUpdated()),yn(a)):Cn({code:i,message:e})})).catch((function(e){return n.setError(e).end(),Pe.w("".concat(t," failed. error:"),e),Cn(e)}))):Cn({code:Vn.NOT_MY_FRIEND})}},{key:"checkFriend",value:function(e){var t="".concat(this._n,".").concat("checkFriend"),n=e.userIDList,a=e.type,o=(a&&(a===M.SNS_CHECK_TYPE_SINGLE||a===M.SNS_CHECK_TYPE_BOTH)||(a=M.SNS_CHECK_TYPE_BOTH),new $n("checkFriend"));return o.setMessage("userIDList:".concat(n," type:").concat(a)),this._snsM.req({P:xn.CHECK_FD,data:{fromAccount:this._snsM.getMyUserID(),userIDList:n,type:a}}).then((function(e){o.end(),Pe.i("".concat(t," ok. userIDList:").concat(n," type:").concat(a));var i=[],s=[];return ze(e=e.data.resultList)&&e.forEach((function(e){var t=e.to,n=e.relation,a=e.resultCode;e=e.resultInfo,dt(a)||0===a?i.push({userID:t,code:0,relation:n}):s.push({userID:t,code:a,message:e})})),yn({successUserIDList:i,failureUserIDList:s})})).catch((function(e){return o.setError(e).end(),Pe.w("".concat(t," failed. error:"),e),Cn(e)}))}},{key:"onAddedToFriendGroup",value:function(e){var t=this,n=e.name;e=e.userIDList,Pe.l("".concat(this._n,".onAddedToFriendGroup groupName:").concat(n," userIDList:").concat(e)),n&&!He(e)&&e.forEach((function(e){t._map.has(e)&&t._map.get(e).addToGroupList(n)}))}},{key:"onRemovedFromFriendGroup",value:function(e){var t=this,n=e.name;e=e.userIDList,Pe.l("".concat(this._n,".onRemovedFromFriendGroup groupName:").concat(n," userIDList:").concat(e)),n&&!He(e)&&e.forEach((function(e){t._map.has(e)&&t._map.get(e).removeFromGroupList(n)}))}},{key:"reset",value:function(){this._map.clear(),this._startIdx=0,this._standardSeq=0,this._customSeq=0}}]),xr),er=(i(Br,[{key:"addToUserIDList",value:function(e){-1===this.userIDList.indexOf(e)&&(this.userIDList.push(e),this.count=this.userIDList.length)}},{key:"removeFromUserIDList",value:function(e){-1<(e=this.userIDList.indexOf(e))&&(this.userIDList.splice(e,1),this.count=this.userIDList.length)}}]),Br),tr=(i(Vr,[{key:"getLocalGroupList",value:function(){return _(this._map.values())}},{key:"_onGroupListUpdated",value:function(){var e=_(this._map.values());this._snsM.emitOEvt(T.FRIEND_GROUP_LIST_UPDATED,e)}},{key:"getGroupList",value:function(){var e=this,t="".concat(this._n,".").concat("getGroupList"),n=new $n("getGroupList");return this._snsM.req({P:xn.GET_FD_GRP_LIST,data:{fromAccount:this._snsM.getMyUserID()}}).then((function(a){n.end(),He(a=a.data.resultList)?Pe.i("".concat(t," ok. count:0")):(Pe.i("".concat(t," ok. count:").concat(a.length)),e._map.clear(),a.forEach((function(t){var n=new er(t);e._map.set(t.name,n)})),e._onGroupListUpdated())})).catch((function(e){return n.setError(e).end(),Pe.w("".concat(t," error:"),e),Cn(e)}))}},{key:"createGroup",value:function(e){var t,n,a=this,o="".concat(this._n,".").concat("createGroup"),i=e.name;return e=e.userIDList,this._map.has(i)?Cn({code:Vn.FRIEND_GRP_EXISTED}):(t="name:".concat(i," userIDList:").concat(e),(n=new $n("createGroup")).setMessage(t),this._snsM.req({P:xn.CREATE_FD_GRP,data:{fromAccount:this._snsM.getMyUserID(),groupName:[i],userIDList:ze(e)?e:void 0}}).then((function(e){n.end(),Pe.l("".concat(o," ok. ").concat(t)),e=e.data.resultList;var s=[],r=[];return e&&e.forEach((function(e){var t=e.to,n=e.resultCode,a=e.resultInfo;dt(n)||0===n?s.push(t):(t={userID:e.to,code:n,message:a},r.push(t))})),e=new er({name:i,userIDList:s}),a._map.set(i,e),a._snsM.onAddedToFriendGroup({name:i,userIDList:s}),a._onGroupListUpdated(),yn({friendGroup:e,failureUserIDList:r})})).catch((function(e){return n.setError(e).end(),Pe.w("".concat(o," failed. error:"),e),Cn(e)})))}},{key:"deleteGroup",value:function(e){var t,n,a=this,o="".concat(this._n,".").concat("deleteGroup"),i=e.name;return this._map.has(i)?(t="name:".concat(i),(n=new $n("deleteGroup")).setMessage(t),this._snsM.req({P:xn.DEL_FD_GRP,data:{fromAccount:this._snsM.getMyUserID(),nameList:[i]}}).then((function(e){n.end(),Pe.l("".concat(o," ok. ").concat(t));var s=a._map.get(i);return s&&(a._snsM.onRemovedFromFriendGroup({name:i,userIDList:s.userIDList}),a._map.delete(i),s.userIDList.length=0),a._onGroupListUpdated(),yn(s)})).catch((function(e){return n.setError(e).end(),Pe.w("".concat(o," failed. error:"),e),Cn(e)}))):this._onGroupNotExist()}},{key:"renameGroup",value:function(e){var t,n,a=this,o="".concat(this._n,".").concat("renameGroup"),i=e.oldName,s=e.newName;return this._map.has(i)?(t="oldName:".concat(i," newName:").concat(s),(n=new $n("renameGroup")).setMessage(t),this._snsM.req({P:xn.UPDATE_FD_GRP,data:{fromAccount:this._snsM.getMyUserID(),oldName:i,newName:s}}).then((function(){var e;return n.end(),Pe.l("".concat(o," ok. ").concat(t)),a._map.has(i)?((e=a._map.get(i)).name=s,a._map.delete(i),a._map.set(s,e),a._snsM.onRemovedFromFriendGroup({name:i,userIDList:e.userIDList}),a._snsM.onAddedToFriendGroup({name:s,userIDList:e.userIDList}),a._onGroupListUpdated(),yn(e)):yn()})).catch((function(e){return n.setError(e).end(),Pe.w("".concat(o," failed. error:"),e),Cn(e)}))):this._onGroupNotExist()}},{key:"addToGroup",value:function(e){var t,n,a=this,o="".concat(this._n,".").concat("addToGroup"),i=e.name;return e=e.userIDList,this._map.has(i)?(t="name:".concat(i," userIDList:").concat(e),(n=new $n("addToGroup")).setMessage(t),this._snsM.req({P:xn.UPDATE_FD_GRP,data:{fromAccount:this._snsM.getMyUserID(),oldName:i,updateGroupItem:e.filter((function(e){return a._snsM.isMyFriend(e)})).map((function(e){return{to:e,updateType:"Update_Type_Add"}}))}}).then((function(e){return n.end(),Pe.l("".concat(o," ok. ").concat(t)),a._onGroupUpdated(i,e)})).catch((function(e){return n.setError(e).end(),Pe.w("".concat(o," failed. error:"),e),Cn(e)}))):this._onGroupNotExist()}},{key:"removeFromGroup",value:function(e){var t,n,a=this,o="".concat(this._n,".").concat("removeFromGroup"),i=e.name;return e=e.userIDList,this._map.has(i)?(t="name:".concat(i," userIDList:").concat(e),(n=new $n("removeFromGroup")).setMessage(t),this._snsM.req({P:xn.UPDATE_FD_GRP,data:{fromAccount:this._snsM.getMyUserID(),oldName:i,updateGroupItem:e.filter((function(e){return a._snsM.isMyFriend(e)})).map((function(e){return{to:e,updateType:"Update_Type_Delete"}}))}}).then((function(e){return n.end(),Pe.l("".concat(o," ok. ").concat(t)),a._onGroupUpdated(i,e)})).catch((function(e){return n.setError(e).end(),Pe.w("".concat(o," failed. error:"),e),Cn(e)}))):this._onGroupNotExist()}},{key:"_onGroupUpdated",value:function(e,t){t=t.data.resultList;var n=this._map.get(e),a=[],o=[],i=[];return ze(t)&&t.forEach((function(e){var t=e.to,s=e.resultCode,r=e.resultInfo,c=e.type;0===s?"Update_Type_Add"===c?n&&(n.addToUserIDList(t),o.push(t)):"Update_Type_Delete"===c&&n&&(n.removeFromUserIDList(t),i.push(t)):a.push({to:e.to,code:s,message:r})})),Pe.l("".concat(this._n,"._onGroupUpdated name:").concat(e," userIDList:").concat(n.userIDList)),0<o.length&&this._snsM.onAddedToFriendGroup({name:e,userIDList:o}),0<i.length&&this._snsM.onRemovedFromFriendGroup({name:e,userIDList:i}),yn({friendGroup:n,failureUserIDList:a})}},{key:"updateWhenFriendAdded",value:function(e){var t=this,n=e.nameList,a=e.userID;Pe.l("".concat(this._n,".updateWhenFriendAdded userID:").concat(a," nameList:").concat(n)),He(n)||n.forEach((function(e){t._map.has(e)&&t._map.get(e).addToUserIDList(a)}))}},{key:"updateWhenFriendDeleted",value:function(e){var t=this,n=e.nameList,a=e.userID;Pe.l("".concat(this._n,".updateWhenFriendDeleted userID:").concat(a," nameList:").concat(n)),He(n)||n.forEach((function(e){t._map.has(e)&&t._map.get(e).removeFromUserIDList(a)}))}},{key:"_onGroupNotExist",value:function(e){return Cn({code:Vn.FRIEND_GRP_NOT_EXIST})}},{key:"reset",value:function(){this._map.clear()}}]),Vr),nr=(r(Or,Ln),Bs=f(Or),i(Or,[{key:"onContextUpdated",value:function(e){this._friendHandler.pagingGetFriendList(),this._friendGroupHandler.getGroupList(),this._friendApplicationHandler.getApplicationList()}},{key:"onRelationChainModified",value:function(e){var t,n,a,o,i,s,r=this;He(e=e.dataList)||(t=[],n=[],a=[],i=!(o=[]),s="",e.forEach((function(e){var c;3!==e.pushType&&4!==e.pushType||!e.from||(s=e.from),e.friendAddAccount&&(t.push.apply(t,_(e.friendAddAccount)),o.push.apply(o,_(e.friendAddAccount))),e.friendDelAccount&&n.push.apply(n,_(e.friendDelAccount)),e.friendApplicationAdded&&a.push.apply(a,_(e.friendApplicationAdded)),e.friendApplicationDeletedUserIDList&&o.push.apply(o,_(e.friendApplicationDeletedUserIDList)),e.reportTime&&7===e.pushType&&(i=!0),e.friendUpInfo&&(c={dataList:[]},e.friendUpInfo.forEach((function(e){c.dataList.push({userID:e.friendAccount,profileList:_(e.sns)})})),r.onFriendProfileModified(c))})),i&&this._friendApplicationHandler.onApplicationRead(),this._friendApplicationHandler.onApplicationAdded(a,s),this._friendApplicationHandler.onApplicationDeleted(o),this._friendHandler.onFriendAdded(t),this._friendHandler.onFriendDeleted(n))}},{key:"isMyFriend",value:function(e){return this._friendHandler.isMyFriend(e)}},{key:"filterProfanity",value:function(e,t){var n,a=this.get(29);return!a||(n=(a=a.filterText(t[e],"sns")).isAllowedToSend,a=a.modifiedText,!0===n&&(t[e]=a,!0))}},{key:"onFriendProfileModified",value:function(e){this._friendHandler.onFriendProfileModified(e)}},{key:"getLocalFriendList",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],t=this._friendHandler.getLocalFriendList();return e?En(t):t}},{key:"getFriendRemark",value:function(e){return this._friendHandler.getFriendRemark(e)}},{key:"getFriendList",value:function(){return this._friendHandler.pagingGetFriendList()}},{key:"addFriend",value:function(e){return this._friendHandler.addFriend(e)}},{key:"deleteFriend",value:function(e){return this._friendHandler.deleteFriend(e)}},{key:"checkFriend",value:function(e){return this._friendHandler.checkFriend(e)}},{key:"getFriendProfile",value:function(e){return this._friendHandler.getFriendProfile(e)}},{key:"updateFriend",value:function(e){return this._friendHandler.updateFriend(e)}},{key:"onAddedToFriendGroup",value:function(e){this._friendHandler.onAddedToFriendGroup(e)}},{key:"onRemovedFromFriendGroup",value:function(e){this._friendHandler.onRemovedFromFriendGroup(e)}},{key:"getLocalFriendApplicationList",value:function(){return En(this._friendApplicationHandler.getLocalApplicationList())}},{key:"deleteFriendApplication",value:function(e){return this._friendApplicationHandler.deleteApplication(e)}},{key:"refuseFriendApplication",value:function(e){return this._friendApplicationHandler.refuseApplication(e)}},{key:"acceptFriendApplication",value:function(e){return this._friendApplicationHandler.acceptApplication(e)}},{key:"setFriendApplicationRead",value:function(e){return this._friendApplicationHandler.setApplicationRead(e)}},{key:"getLocalFriendGroupList",value:function(){return En(this._friendGroupHandler.getLocalGroupList())}},{key:"createFriendGroup",value:function(e){return this._friendGroupHandler.createGroup(e)}},{key:"deleteFriendGroup",value:function(e){return this._friendGroupHandler.deleteGroup(e)}},{key:"addToFriendGroup",value:function(e){return this._friendGroupHandler.addToGroup(e)}},{key:"removeFromFriendGroup",value:function(e){return this._friendGroupHandler.removeFromGroup(e)}},{key:"renameFriendGroup",value:function(e){return this._friendGroupHandler.renameGroup(e)}},{key:"updateWhenFriendAdded",value:function(e){this._friendGroupHandler.updateWhenFriendAdded(e)}},{key:"updateWhenFriendDeleted",value:function(e){this._friendGroupHandler.updateWhenFriendDeleted(e)}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._friendHandler.reset(),this._friendGroupHandler.reset(),this._friendApplicationHandler.reset()}}]),Or),ar=(r(Rr,Ln),Vs=f(Rr),i(Rr,[{key:"isWorkerEnabled",value:function(){return this._isWorkerEnabled&&he}},{key:"startWorkerTimer",value:function(){Pe.l("".concat(this._n,".startWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("start")}},{key:"stopWorkerTimer",value:function(){Pe.l("".concat(this._n,".stopWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("stop")}},{key:"_init",value:function(){var e,t;he&&(e=URL.createObjectURL(new Blob(['let interval = -1;onmessage = function(event) { if (event.data === "start") { if (interval > 0) { clearInterval(interval); } interval = setInterval(() => { postMessage(""); }, 1000); postMessage(interval); } else if (event.data === "stop") { clearInterval(interval); interval = -1; }};'],{type:"application/javascript; charset=utf-8"})),this._workerTimer=new Worker(e),(t=this)._workerTimer.onmessage=function(e){e.data?(t._timerID=e.data,Pe.l("".concat(t._n,"._init seed:").concat(t._timerID))):t._m.onCheckTimer()})}},{key:"_onCloudConfig",value:function(){var e=this.getCloudConfig("enable_worker");Pe.l("".concat(this._n,"._onCloudConfig enableWorker:").concat(e)),dt(e)||"1"===e?!this._isWorkerEnabled&&he&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._m.onWorkerTimerEnabled()):this._isWorkerEnabled&&he&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._m.onWorkerTimerDisabled())}},{key:"terminate",value:function(){Pe.l("".concat(this._n,".terminate")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null,this._timerID=-1)}},{key:"getTimerID",value:function(){return this._timerID}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset"))}}]),Rr),or=(i(Ar,[{key:"isValidPurchaseBits",value:function(e){return e&&"string"==typeof e&&1<=e.length&&e.length<=64&&/[01]{1,64}/.test(e)}},{key:"parsePurchaseBits",value:function(e){if(this.isValidPurchaseBits(e)){this._featureMap.clear();for(var t,n=e.length-1,a=0;0<=n;n--,a++)t=(a<32?new D(0,Math.pow(2,a)):new D(Math.pow(2,a-32),0)).toString(),"1"===e[n]?this._featureMap.set(t,!0):this._featureMap.set(t,!1)}else Pe.w("".concat(this._n,".parsePurchaseBits invalid purchasebits:").concat(e))}},{key:"hasPurchasedFeature",value:function(e){return!!this._featureMap.get(e)}},{key:"isFeatureEnabled",value:function(e){for(var t=parseInt(e).toString(2),n=void 0,a=!0,o=t.length-1,i=0;0<=o;o--,i++)if("1"===t.charAt(o)&&(n=(i<32?new D(0,Math.pow(2,i)):new D(Math.pow(2,i-32),0)).toString(),!this._featureMap.get(n))){a=!1;break}return Pe.l("".concat(this._n,".isFeatureEnabled decimalNumber:").concat(e," key:").concat(n," ret:").concat(a)),En({enabled:a})}},{key:"isFeatureEnabledForStat",value:function(e){for(var t=parseInt(e).toString(2),n=t.length-1,a=0;0<=n;n--,a++)if("1"===t.charAt(n)){if(o=(a<32?new D(0,Math.pow(2,a)):new D(Math.pow(2,a-32),0)).toString(),!this._featureMap.get(o))break;var o,i="",s=0;o===V.PLUGIN_TRANSLATE?(i="plugin_translate",s=16):o===V.PLUGIN_VOICE_TO_TEXT?(i="plugin_voice_to_text",s=17):o===V.PLUGIN_CS?(i="plugin_cs",s=14):o===V.PLUGIN_PUSH?(i="plugin_push",s=13):o===V.PLUGIN_BOT?(i="plugin_bot",s=15):o===V.MSG_REACTION&&(i="plugin_emoji_reaction",s=18),""!==i&&(o=this._commercialConfigM.get(12).getUIPlatform(),new $n(i).setCode(s).setUIPlatform(o).end(),Pe.l("".concat(this._n,".isFeatureEnabledForStat ").concat(i," code:").concat(s," uiPlatform:").concat(o)))}}},{key:"isSearchCloudMessagesEnabled",value:function(){var e;this._isSCMReported||(e=this._commercialConfigM.get(12).getUIPlatform(),new $n("plugin_search").setCode(6).setUIPlatform(e).end(),this._isSCMReported=!0)}},{key:"clear",value:function(){this._featureMap.clear(),this._isSCMReported=!1}}]),Ar),ir=(i(Pr,[{key:"_canFetch",value:function(){return this.get(12).isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1)}},{key:"onCheckTimer",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:"fetchConfig",value:function(){var e,t,n=this,a=this._canFetch(),o="".concat(this._n,".fetchConfig");Pe.l("".concat(o," canFetch:").concat(a)),a&&(e=new $n("fetchCommercialConfig"),a=this.get(12).getSDKAppID(),t=this.get(20),this._isFetching=!0,t.req({P:xn.FETCH_COMMERCIAL_CONFIG,data:{SDKAppID:a}}).then((function(t){e.setMessage("purchaseBits:".concat(t.data.purchaseBits)).end(),Pe.l("".concat(o," ok.")),n._parseConfig(t.data),n._isFetching=!1})).catch((function(t){e.setError(t).end(),n._isFetching=!1})))}},{key:"onPushedConfig",value:function(e){var t="".concat(this._n,".onPushedConfig data:").concat(JSON.stringify(e));Pe.l("".concat(t)),new $n("pushedCommercialConfig").setMessage("purchaseBits:".concat(e.purchaseBits)).end(),this._parseConfig(e)}},{key:"_parseConfig",value:function(e){var t="".concat(this._n,"._parseConfig"),n=e.errorCode,a=e.errorMessage,o=e.purchaseBits,i=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(o),this._expiredTime=Date.now()+1e3*i):dt(n)?(Pe.l("".concat(t," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Pe.e("".concat(t," errorCode:").concat(n," errorMessage:").concat(a)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"canIUse",value:function(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e)}},{key:"isFeatureEnabled",value:function(e){return this._purchasedFeatureHandler.isFeatureEnabled(e)}},{key:"isFeatureEnabledForStat",value:function(e){this._purchasedFeatureHandler.isFeatureEnabledForStat(e)}},{key:"isSearchCloudMessagesEnabled",value:function(){this._purchasedFeatureHandler.isSearchCloudMessagesEnabled()}},{key:"get",value:function(e){return this._m.get(e)}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),Pr),sr=(r(Lr,Ln),Os=f(Lr),i(Lr,[{key:"registerPlugin",value:function(e){var t,n,a,o,i,s,r,c,l,u,d,m,p;z?(this._offlinePushPlugin=e["tim-offline-push-plugin"],t=(p=e.offlinePushConfig||{}).huaweiBusinessID,n=p.xiaomiBusinessID,a=p.xiaomiAppID,o=p.xiaomiAppKey,i=p.meizuBusinessID,s=p.meizuAppID,r=p.meizuAppKey,c=p.vivoBusinessID,l=p.oppoBusinessID,u=p.oppoAppKey,d=p.oppoAppSecret,m=p.honorBusinessID,p=p.iosBusinessID,this._androidPushConfig.huaweiPushBussinessId=t,this._androidPushConfig.xiaomiPushBussinessId=n,this._androidPushConfig.xiaomiPushAppId=a,this._androidPushConfig.xiaomiPushAppKey=o,this._androidPushConfig.meizuPushBussinessId=i,this._androidPushConfig.meizuPushAppId=s,this._androidPushConfig.meizuPushAppKey=r,this._androidPushConfig.vivoPushBussinessId=c,this._androidPushConfig.oppoPushBussinessId=l,this._androidPushConfig.oppoPushAppKey=u,this._androidPushConfig.oppoPushAppSecret=d,this._androidPushConfig.honorPushBussinessId=m,new $n("registerPlugin").setMessage("tim-offline-push-plugin").setMoreMessage("isExist:".concat(!dt(this._offlinePushPlugin))).end(!0),Pe.l("".concat(this._n,".").concat("registerPlugin"," ok. offlinePushConfig:").concat(JSON.stringify(e.offlinePushConfig))),this._iosBusinessID=p,this._setAppShowListener()):this.warn("OfflinePushInUniapp")}},{key:"init",value:function(){this._isWebUniapp=this.getUniAppPlatform(),this._getDeviceToken()}},{key:"_getDeviceToken",value:function(){var e,t=this,n="".concat(this._n,".").concat("_getDeviceToken");We(this._offlinePushPlugin.getDeviceToken)?(e="androidPushConfig:".concat(JSON.stringify(this._androidPushConfig),", iosBusinessID:").concat(this._iosBusinessID),Pe.l("".concat(n," start. ").concat(e)),new $n("_getDeviceToken").setMessage("".concat(e)).end(!0),this._offlinePushPlugin.getDeviceToken(this._androidPushConfig,(function(a){var o,i,s,r,c=new $n("getDeviceTokenRes"),l=a.code,u=a.msg;0===l?(o=(r=a.data).deviceToken,i=r.deviceBrand,s=r.deviceType,r=r.bussinessId,t._deviceToken=o,t._businessID=r||t._iosBusinessID,e="deviceToken:".concat(o,", deviceBrand:").concat(i||s,", businessID:").concat(t._businessID),Pe.l("".concat(n," ok. ").concat(e)),c.setMessage(e).end(!0),t._setToken()):(c.setMessage("code:".concat(l,", msg:").concat(u)).end(!0),Pe.e("".concat(n," failed. error:"),a))}))):Pe.e("".concat(n," getDeviceToken is not a function"))}},{key:"canIUseOfflinePush",value:function(){return z&&!dt(this._offlinePushPlugin)}},{key:"_setAppShowListener",value:function(){var e=this,t="".concat(this._n,".").concat("_setAppShowListener");dt(this._offlinePushPlugin)?Pe.e("".concat(t," offlinePushPlugin is undefined")):We(this._offlinePushPlugin.setAppShowListener)?(new $n("_setAppShowListener").end(!0),Pe.l("".concat(t," start")),this._offlinePushPlugin.setAppShowListener((function(n){n=(n||{}).appShow,new $n("setAppShowListenerRes").setMessage("appShow:".concat(n)).end(!0),Pe.l("".concat(t," ok. appShow:").concat(n)),e._m.isReady()&&(0===n?(e._getConvUnreadCount(),e._onBackground()):1===n&&e._onForeground())}))):Pe.e("".concat(t," setAppShowListener is not a function"))}},{key:"getDeviceBrand",value:function(){var e;if(!dt(this._offlinePushPlugin)&&We(this._offlinePushPlugin.getDeviceType))return e=(this._offlinePushPlugin.getDeviceType()||{}).deviceType,Pe.l("".concat(this._n,".getDeviceBrand ok. deviceType:").concat(e)),e}},{key:"_setToken",value:function(){var e="".concat(this._n,"._setToken"),t=this.get(12),n=1,a="",o="",i=(He(this._deviceToken)&&(n=0),this.getUniAppPlatform()),s=this.getDeviceBrand(),r=(i===L.IOS||i===L.IPAD||i===L.MAC?o=this._deviceToken:i===L.ANDROID&&(a=this._deviceToken),new $n("offlinePushSetToken"));return i="deviceToken:".concat(o||a,", businessID:").concat(this._businessID,", ")+"deviceBrand:".concat(s,", isWebUniapp:").concat(this._isWebUniapp,", pushMsg:").concat(n,", platform:").concat(i),r.setMessage("".concat(i)),Pe.l("".concat(e," ").concat(i)),this.req({P:xn.SET_TOKEN,data:{tokenID:a,pushMsg:n,sdkAppID:t.getSDKAppID(),businessID:parseInt(this._businessID),deviceBrand:s,deviceToken:o,isWebUniapp:this._isWebUniapp}}).then((function(t){return r.end(),Pe.l("".concat(e," ok")),t})).catch((function(t){return r.setError(t).end(),Pe.e("".concat(e," failed. error:"),t),Cn(t)}))}},{key:"_getConvUnreadCount",value:function(){var e=this;this._c2cUnreadCount=0,this._groupUnreadCount=0,this.get(11).getLocalConvList().forEach((function(t){t.type===M.CONV_C2C&&(e._c2cUnreadCount+=t.unreadCount),t.type===M.CONV_GROUP&&(e._groupUnreadCount+=t.unreadCount)}))}},{key:"_onBackground",value:function(){var e=this,t="".concat(this._n,".").concat("_onBackground"),n=new $n("_onBackground");this.req({P:xn.STAT_BACKGROUND,data:{c2cUnreadCount:this._c2cUnreadCount,groupUnreadCount:this._groupUnreadCount,isWebUniapp:this._isWebUniapp}}).then((function(a){return n.setMessage("c2cUnreadCount: ".concat(e._c2cUnreadCount,", groupUnreadCount: ").concat(e._groupUnreadCount)).end(),Pe.l("".concat(t," ok")),a})).catch((function(e){n.setError(e).end(),Pe.e("".concat(t," failed. error:"),e)}))}},{key:"_onForeground",value:function(){var e="".concat(this._n,".").concat("_onForeground"),t=new $n("_onForeground");this.req({P:xn.STAT_FOREGROUND,data:{isWebUniapp:this._isWebUniapp}}).then((function(n){return t.end(),Pe.l("".concat(e," ok")),n})).catch((function(n){t.setError(n).end(),Pe.e("".concat(e," failed. error:"),n)}))}},{key:"getUniAppPlatform",value:function(){var e=uni.getSystemInfoSync().platform,t=this.getDeviceBrand();return"ios"===e?L.IOS:"android"===e?L.ANDROID:1002===t?L.IPAD:1001===t?L.MAC:void 0}},{key:"reset",value:function(){this._deviceToken="",this._businessID=0,this._c2cUnreadCount=0,this._groupUnreadCount=0,this._isWebUniapp=0,Pe.l("".concat(this._n,".reset"))}}]),Lr),rr=(r(br,Ln),Rs=f(br),i(br,[{key:"registerPlugin",value:function(e){var t,n,a;z?(t="".concat(this._n,".").concat("registerPlugin"),this._pushPlugin=e["tim-push"],this._getDeviceInfo(),n=(a=e.pushConfig||{}).androidConfig,a=a.iOSConfig,Xe(n)&&(this._androidPushConfig=n[this._deviceInfo.packageName]),n=(a||{}).iOSBusinessID,this._iOSBusinessID=n,a=!dt(this._pushPlugin),new $n("registerPlugin").setMessage(this._pluginName).setMoreMessage("isExisted:".concat(a)).end(!0),Pe.l("".concat(t," ok. pushConfig:").concat(JSON.stringify(e.pushConfig))),a?(this._setAppShowListener(),this._setPushEventReportListener()):Pe.e("".concat(t," ").concat(this._pluginName," is undefined"))):this.warn("TIMPushInUniapp")}},{key:"init",value:function(){this._isWebUniapp=this.getUniAppPlatform(),this._reportEventCacheList(),this._getDeviceToken(),this.get(27).isFeatureEnabledForStat(Math.pow(2,41))}},{key:"_reportEventCacheList",value:function(){var e=this,n="".concat(this._n,".").concat("_reportEventCacheList");We(this._pushPlugin.getPushEventCacheList)?(new $n("_reportEventCacheList").end(!0),this._pushPlugin.getPushEventCacheList((function(a){var o=a.code,i=a.data.eventList,s=new $n("getPushEventCacheListRes");if(s.setCode(o),0!==o)s.setMessage("res:".concat(JSON.stringify(a))).end(!0),Pe.e("".concat(n," failed. error:").concat(JSON.stringify(a)));else{o=i.length<10?"eventList:".concat(JSON.stringify(i)):"eventList.length:".concat(i.length),Pe.l("".concat(n," ok. ").concat(o)),s.setMessage(o).end(!0);for(var r=t(t({},a.data),{},{eventList:[]});0<i.length;)r.eventList=i.splice(0,40),e._pushReport(r)}}))):Pe.e("".concat(this._pluginName,".getPushEventCacheList is not a function"))}},{key:"_getDeviceToken",value:function(){var e,t=this,n="".concat(this._n,".").concat("_getDeviceToken");We(this._pushPlugin.getDeviceToken)?(e="androidPushConfig:".concat(JSON.stringify(this._androidPushConfig)," iOSBusinessID:").concat(this._iOSBusinessID),Pe.l("".concat(n," start. ").concat(e)),new $n("_getDeviceToken").setMessage("".concat(e)).end(!0),this._pushPlugin.getDeviceToken(this._androidPushConfig,(function(a){var o,i,s,r=a.code,c=a.msg,l=new $n("getDeviceTokenRes");l.setCode(r),0===r?(o=(r=a.data).deviceToken,i=r.deviceBrand,s=r.deviceType,r=r.bussinessId,t._deviceToken=o,t._businessID=r||t._iOSBusinessID,e="deviceToken:".concat(o," deviceBrand:").concat(i||s," businessID:").concat(t._businessID),Pe.l("".concat(n," ok. ").concat(e)),l.setMessage(e).end(!0),t._setToken()):(l.setMessage(c).end(!0),Pe.e("".concat(n," failed. error:").concat(JSON.stringify(a))))}))):Pe.e("".concat(this._pluginName,".getDeviceToken is not a function"))}},{key:"_getDeviceInfo",value:function(){var e,n,a,o,i="".concat(this._n,".").concat("_getDeviceInfo");We(this._pushPlugin.getDeviceInfo)?(o=(e=this._pushPlugin.getDeviceInfo()).code,n=e.data,(a=new $n("_getDeviceInfo")).setCode(o),0===o?(this._deviceInfo=t(t({},this._deviceInfo),n),this._deviceInfo.pushVersion||(this._deviceInfo.pushVersion="1.0.1"),o="deviceInfo:".concat(JSON.stringify(this._deviceInfo)),Pe.l("".concat(i," ok. ").concat(o)),a.setMessage(o).end(!0)):(a.setMessage("deviceInfoRes:".concat(JSON.stringify(e))).end(!0),Pe.e("".concat(i," failed. error:").concat(JSON.stringify(e))))):Pe.e("".concat(this._pluginName,".getDeviceInfo is not a function"))}},{key:"canIUseTIMPush",value:function(){return z&&!dt(this._pushPlugin)}},{key:"_setAppShowListener",value:function(){var e=this,t="".concat(this._n,".").concat("_setAppShowListener");We(this._pushPlugin.setAppShowListener)?(new $n("_setAppShowListener").end(!0),Pe.l("".concat(t," start")),this._pushPlugin.setAppShowListener((function(n){n=(n||{}).appShow,new $n("setAppShowListenerRes").setMessage("appShow:".concat(n)).end(!0),Pe.l("".concat(t," ok. appShow:").concat(n)),e._m.isReady()&&(0===n?(e._getConvUnreadCount(),e._onBackground()):1===n&&e._onForeground())}))):Pe.e("".concat(this._pluginName,".setAppShowListener is not a function"))}},{key:"_setPushEventReportListener",value:function(){var e=this,t="".concat(this._n,".").concat("_setPushEventReportListener");We(this._pushPlugin.setPushEventReportListener)?(new $n("_setPushEventReportListener").end(!0),this._pushPlugin.setPushEventReportListener((function(n){var a=n.code,o=n.data,i=o.eventList,s=new $n("setPushEventReportListenerRes");s.setCode(a),0===a?(a="eventList:".concat(JSON.stringify(i)),Pe.l("".concat(t," ok. ").concat(a)),s.setMessage(a).end(!0),e._m.isReady()&&ze(i)&&0<i.length&&e._pushReport(o)):(s.setMessage("res:".concat(JSON.stringify(n))).end(!0),Pe.e("".concat(t," failed. error:").concat(JSON.stringify(n))))}))):Pe.e("".concat(this._pluginName,".setPushEventReportListener is not a function"))}},{key:"getDeviceBrand",value:function(){var e;if(!dt(this._pushPlugin)&&We(this._pushPlugin.getDeviceType))return e=(this._pushPlugin.getDeviceType()||{}).deviceType,Pe.l("".concat(this._n,".getDeviceBrand ok. deviceType:").concat(e)),e}},{key:"_setToken",value:function(){var e="".concat(this._n,".").concat("_setToken"),n=this.get(12),a=1,o="",i="",s=(He(this._deviceToken)&&(a=0),this.getUniAppPlatform()),r=this.getDeviceBrand(),c=(s===L.IOS||s===L.IPAD||s===L.MAC?i=this._deviceToken:s===L.ANDROID&&(o=this._deviceToken),s=t({tokenID:o,pushMsg:a,sdkAppID:n.getSDKAppID(),businessID:parseInt(this._businessID),deviceBrand:r,deviceToken:i,isWebUniapp:this._isWebUniapp},this._deviceInfo),new $n("_setToken"));o="data:".concat(JSON.stringify(s)),c.setMessage("".concat(o)),Pe.l("".concat(e," ").concat(o)),this.req({P:xn.SET_TOKEN,data:s}).then((function(){c.end(),Pe.w("".concat(e," ok"))})).catch((function(t){c.setError(t).end(),Pe.e("".concat(e," failed. error:"),t),Cn(t)}))}},{key:"_getConvUnreadCount",value:function(){var e=this;this._c2cUnreadCount=0,this._groupUnreadCount=0,this.get(11).getLocalConvList().forEach((function(t){t.type===M.CONV_C2C&&(e._c2cUnreadCount+=t.unreadCount),t.type===M.CONV_GROUP&&(e._groupUnreadCount+=t.unreadCount)}))}},{key:"_onBackground",value:function(){var e=this,t="".concat(this._n,".").concat("_onBackground"),n=new $n("_onBackground");this.req({P:xn.STAT_BACKGROUND,data:{c2cUnreadCount:this._c2cUnreadCount,groupUnreadCount:this._groupUnreadCount,isWebUniapp:this._isWebUniapp}}).then((function(){n.setMessage("c2cUnreadCount:".concat(e._c2cUnreadCount," groupUnreadCount:").concat(e._groupUnreadCount)).end(),Pe.l("".concat(t," ok"))})).catch((function(e){n.setError(e).end(),Pe.e("".concat(t," failed. error:"),e)}))}},{key:"_onForeground",value:function(){var e="".concat(this._n,".").concat("_onForeground"),t=new $n("_onForeground");this.req({P:xn.STAT_FOREGROUND,data:{isWebUniapp:this._isWebUniapp}}).then((function(){t.end(),Pe.l("".concat(e," ok"))})).catch((function(n){t.setError(n).end(),Pe.e("".concat(e," failed. error:"),n)}))}},{key:"_pushReport",value:function(e){var t=this,n="".concat(this._n,".").concat("_pushReport"),a=new $n("_pushReport");this.req({P:xn.PUSH_REPORT,data:{eventList:e.eventList}}).then((function(){a.end(),t._notifyReportSuccess(e)})).catch((function(e){a.setError(e).end(),Pe.e("".concat(n," failed. error:"),e)}))}},{key:"_notifyReportSuccess",value:function(e){!dt(this._pushPlugin)&&We(this._pushPlugin.notifyReportSuccess)&&(this._pushPlugin.notifyReportSuccess(e),Pe.l("".concat(this._n,"._notifyReportSuccess ok")))}},{key:"getUniAppPlatform",value:function(){var e=uni.getSystemInfoSync().platform,t=this.getDeviceBrand();return"ios"===e?L.IOS:"android"===e?L.ANDROID:1002===t?L.IPAD:1001===t?L.MAC:void 0}},{key:"reset",value:function(){this._deviceToken="",this._businessID=0,this._c2cUnreadCount=0,this._groupUnreadCount=0,this._isWebUniapp=0,Pe.l("".concat(this._n,".reset"))}}]),br),cr=(r(Dr,Ln),As=f(Dr),i(Dr,[{key:"init",value:function(){var e=this.get(18).getPlugin("tim-profanity-filter-plugin");e&&(this._plugin=new e({logger:Pe,isArray:ze,isMap:Ze,isDevMode:this.isDevMode()}),this._getLexicon())}},{key:"onCheckTimer",value:function(){this._plugin&&this._canIUseLexicon&&this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime&&this._getLexicon()}},{key:"filterMessage",value:function(e,t){var n=!0;if(this._plugin&&this._canIUseLexicon&&(!t||!t.messageControlInfo||!0!==t.messageControlInfo.excludedFromContentModeration)){t=e.type;var a=e.conversationType;if(t===M.MSG_TEXT||t===M.MSG_CUSTOM){var o,i="".concat(this._n,".filterMessage");if(Pe.l("".concat(i)),t===M.MSG_TEXT){if(a===M.CONV_C2C?o="c2c_text_message":a===M.CONV_GROUP&&(o="group_text_message"),!this._isConfigOn(o))return n;var s=(r=this._plugin.filter(e.payload.text)).type,r=r.modifiedText;1===s?n=!1:2===s&&(e.payload.text=r)}else if(t===M.MSG_CUSTOM){if(a===M.CONV_C2C?o="c2c_custom_message":a===M.CONV_GROUP&&(o="group_custom_message"),!this._isConfigOn(o))return n;s=this._plugin.filter(e.payload.data),r=this._plugin.filter(e.payload.description),t=this._plugin.filter(e.payload.extension),1===s.type||1===r.type||1===t.type?n=!1:(2===s.type&&(e.payload.data=s.modifiedText),2===r.type&&(e.payload.description=r.modifiedText),2===t.type&&(e.payload.extension=t.modifiedText))}Pe.l("".concat(i," done. isAllowedToSend:").concat(n))}}return n}},{key:"filterText",value:function(e,t){var n="".concat(this._n,".filterText"),a={isAllowedToSend:!0,modifiedText:e};return this._plugin&&this._canIUseLexicon&&this._isConfigOn(t)&&(Pe.l("".concat(n)),e=(t=this._plugin.filter(e)).type,t=t.modifiedText,1===e?a.isAllowedToSend=!1:2===e&&(a.modifiedText=t),Pe.l("".concat(n," done. ret:"),a)),a}},{key:"_getLexicon",value:function(){var e=this,t=new $n("profanityFilter"),n="".concat(this._n,"._getLexicon");this._isFetching=!0,this.req({P:xn.GET_PROFANITY_LIST,data:{startIndex:this._startIndex,version:this._version}}).then((function(a){var o=(a=a.data).errorInfo,i=a.filterConfig,s=a.lexicon,r=a.strToken,c=a.completeFlag,l=a.nextStartIndex,u=a.version,d=(a=a.expiredTime,o.errorCode),m=o.errorMessage;return 0!==d?(e._isFetching=!1,Pe.w("".concat(n," failed. error:"),o),void t.setCode(d).setMessage(m).end()):(e._onFilterConfig(i),e._getToken(r),1===c?(Pe.l("".concat(n," done. version:").concat(u," expiredTime:").concat(a)),e._version=u,e._canIUseLexicon=!0,e._isFetching=!1,e._expiredTime=Date.now()+1e3*a,void e._plugin.onLexiconCompleted(s)):(e._startIndex=l,e._plugin.onLexiconSliced(s),void e._getLexicon()))})).catch((function(a){t.setError(a).end(),e._isFetching=!1,Pe.l("".concat(n," failed. error:"),a)}))}},{key:"_onFilterConfig",value:function(e){var t=this;He(e)||(this._filterConfigMap.clear(),Object.keys(e).forEach((function(n){t._filterConfigMap.set(n,e[n])})),Pe.l("".concat(this._n,"._onFilterConfig. keys:").concat(Array.from(this._filterConfigMap.keys())," values:").concat(Array.from(this._filterConfigMap.values()))))}},{key:"_isConfigOn",value:function(e){return 1===this._filterConfigMap.get(e)}},{key:"_getToken",value:function(e){if(ut(e)){var t=e.length,n="";if(t%2==0)for(var a=0;a<=t-1;a+=2)n=(n+=e[a+1])+e[a];else{for(var o=0;o<t-1;o+=2)n=(n+=e[o+1])+e[o];n+=e[t-1]}this._plugin.onToken(n)}}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._plugin&&(this._plugin.reset(),this._plugin=null),this._filterConfigMap.clear(),this._startIndex=0,this._version=0,this._canIUseLexicon=!1,this._isFetching=!1,this._expiredTime=0}}]),Dr),lr=(i(wr,[{key:"_onCloudConfig",value:function(){var e=this,t=this._m.get(23).getCloudConfig("rtc_cmd");dt(t)||((t=JSON.parse(t)).forEach((function(t){e._TRTCCommandList.includes(t)||e._TRTCCommandList.push(t)})),this._setTRTCCommandMap())}},{key:"_setTRTCCommandMap",value:function(){for(var e,t=0,n=this._TRTCCommandList.length;t<n;t++)e=this._TRTCCommandList[t].split(".")[0],this._TRTCCommandMap.set(e,1)}},{key:"onRoomCustomDataReceived",value:function(e){this._m.getOEmitInst().emit(T.ROOM_CUSTOM_DATA_RECEIVED,e)}},{key:"sendTRTCCustomData",value:function(e){var t=e.serviceCommand,n=(e=e.data,"".concat(O.NAME.TUIROOM_SVR,".*"));return dt(t)||(n=t),this._isValidServiceCommand(n)?this._trans({servcmd:n,data:e}):Cn({code:Vn.INVALID_TRTC_CMD})}},{key:"_trans",value:function(e){Pe.d("".concat(this._n,"._trans. options:").concat(JSON.stringify(e)));var t=e.servcmd;return e=e.data,this._m.get(20).trans({servcmd:t,data:ut(e)?JSON.parse(e):e})}},{key:"_isValidServiceCommand",value:function(e){return e.endsWith(".*")?this._TRTCCommandList.includes(e):(e=e.split(".")[0],this._TRTCCommandMap.has(e))}},{key:"isTRTCCommand",value:function(e){return e=e.split(".")[0],this._TRTCCommandMap.has(e)}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset"))}}]),wr),ur=(i(Nr,[{key:"_init",value:function(){var e,t=this._getStorageModule().getItem(this.TIM_ERROR_ASSISTANCE,!1);if(t){try{e=JSON.parse(t)}catch(n){this._getStorageModule().removeItem(this.TIM_ERROR_ASSISTANCE,!1),Pe.w("".concat(this._n,"._init error:"),n)}e&&(this._needToUpdate(e)?this._fetch():this._fillMap(e.message))}else this._fetch()}},{key:"_needToUpdate",value:function(e){var t=e.localSavedTime;return e=e.localSavedVersion,t=t&&(new Date).getTime()-t>=this.STORAGE_EXPIRES_TIME,e=!e||"3.4.7"!==e,Pe.l("".concat(this._n,"._needToUpdate isTimeout:").concat(t," isDifferentVersion:").concat(e)),t||e}},{key:"_fetch",value:function(){var e,t,n,a,o,i;this._m.get(12).isPrivateNetWork()||(e="https://web.sdk.qcloud.com/im/download/error-message/v3/0.0.6/tim-error-message.txt",t="application/x-www-form-urlencoded;charset=UTF-8",n="".concat(this._n,"._fetch ok in"),a=this,$?ae.request({url:e,method:"GET",timeout:3e3,header:{"content-type":t},dataType:"text",success:function(e){a._fillAndSave(e.data),Pe.l("".concat(n," mini program"))},fail:function(){}}):(o=new XMLHttpRequest,i=setTimeout((function(){o.abort()}),3e3),o.onreadystatechange=function(){4===o.readyState&&(clearTimeout(i),200!==o.status&&304!==o.status||(Pe.l("".concat(n," browser")),a._fillAndSave(o.responseText)))},o.open("GET",e,!0),o.setRequestHeader("Content-type",t),o.send()))}},{key:"_fillAndSave",value:function(e){this._fillMap(e),this._getStorageModule().setItem(this.TIM_ERROR_ASSISTANCE,JSON.stringify({message:e,localSavedTime:(new Date).getTime(),localSavedVersion:"3.4.7"}),!0,!1)}},{key:"_getStorageModule",value:function(){return this._m.get(13)}},{key:"_fillMap",value:function(e){this._map.clear();for(var t,n,a=e.split(";\n"),o=a.length,i=new RegExp(/'/g),s=0;s<o;s++)if(n=a[s].indexOf(":"),t=a[s].slice(0,n),n=a[s].slice(n+1,a[s].length),!t.startsWith("//")){if(dt(n))continue;this._map.set(t,n.replace(i,""))}}},{key:"get",value:function(e){var t=e.isIntl,n=e.key,a=e.replacement1;return e=e.replacement2,t="".concat(n,t?"_en":"_cn"),!this._map.has(t)&&this._map.has(n)&&(t=n),n="",this._map.has(t)&&(n=this._map.get(t),dt(a)||(n=n.replace("$replacement1",a)),dt(e)||(n=n.replace("$replacement2",e))),n}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset"))}}]),Nr),dr=(i(Mr,[{key:"onNewMessageList",value:function(e){var t=this;e.forEach((function(e){var n=t.getPayloadData(e);n&&t._handleActionType(n,e)}))}},{key:"onMessageModified",value:function(e){var t=this;e.forEach((function(e){var n=t.getPayloadData(e);n&&t._onInvitationModified(n,e)}))}},{key:"getPayloadData",value:function(e){var t="".concat(this._n,".getPayloadData");e=e.payload.data;try{return JSON.parse(e)}catch(n){return Pe.e("".concat(t," JSON parse error. signalingData:").concat(e)),null}}},{key:"_handleActionType",value:function(e,t){switch(e.actionType){case N.ACTION_TYPE_INVITE:this._onNewInvitationReceived(e,t);break;case N.ACTION_TYPE_REJECT_INVITE:this._onInviteeRejected(e);break;case N.ACTION_TYPE_ACCEPT_INVITE:this._onInviteeAccepted(e);break;case N.ACTION_TYPE_CANCEL_INVITE:this._onInvitationCancelled(e);break;case N.ACTION_TYPE_INVITE_TIMEOUT:this._onInvitationTimeout(e)}}},{key:"_genBaseEmitData",value:function(e){return{inviteID:e.inviteID,inviter:e.inviter,groupID:e.groupID,data:e.data||""}}},{key:"_onNewInvitationReceived",value:function(e,n){var a="".concat(this._n,"._onNewInvitationReceived"),o=e.inviteID,i=e.inviteeList,s=e.groupID,r=e.inviter,c=this._sigM.getMyUserID(),l=i.includes(c),u=e.timeout,d=(ke().getTime()-1e3*n.time)/1e3;0<u&&0<d&&d<u&&(u-=d),a="".concat(a," myselfIncluded:").concat(l," groupID:").concat(s," signalObj:").concat(JSON.stringify(e)),Pe.l("".concat(a," timeout:").concat(u,"s delta:").concat(d,"s")),!(s&&l||!s)||(a=this._sigM.getInviteInfo(o))&&a===e||(a||this._sigM.setInviteInfo(o,t(t({},e),{},{message:n})),this._sigM.emitEvent(N.NEW_INVITATION_RECEIVED,t(t({},this._genBaseEmitData(e)),{},{inviteeList:i})),r!==c&&this._sigM.startTimer(t(t({},e),{},{timeout:u})))}},{key:"_onInviteeRejected",value:function(e){var n="".concat(this._n,"._onInviteeRejected"),a=e.inviteID,o=e.inviter,i=e.groupID,s=this._sigM.hasInviteInfo(a);Pe.l("".concat(n," inviteID:").concat(a," hasInviteID:").concat(s," inviter:").concat(o," groupID:").concat(i)),s&&(this._sigM.updateInviteInfo(e),this._sigM.emitEvent(N.INVITEE_REJECTED,t(t({},this._genBaseEmitData(e)),{},{invitee:e.inviteeList[0]})))}},{key:"_onInviteeAccepted",value:function(e){var n="".concat(this._n,"._onInviteeAccepted"),a=e.inviteID,o=e.inviter,i=e.groupID,s=this._sigM.hasInviteInfo(a);Pe.l("".concat(n," inviteID:").concat(a," hasInviteID:").concat(s," inviter:").concat(o," groupID:").concat(i)),s&&(this._sigM.updateInviteInfo(e),this._sigM.emitEvent(N.INVITEE_ACCEPTED,t(t({},this._genBaseEmitData(e)),{},{invitee:e.inviteeList[0]})))}},{key:"_onInvitationCancelled",value:function(e){var t="".concat(this._n,"._onInvitationCancelled"),n=e.inviteID,a=e.inviter,o=e.groupID,i=this._sigM.hasInviteInfo(n);Pe.l("".concat(t," inviteID:").concat(n," hasInviteID:").concat(i," inviter:").concat(a," groupID:").concat(o)),i&&(this._sigM.deleteInviteInfo(n),this._sigM.emitEvent(N.INVITATION_CANCELLED,this._genBaseEmitData(e)))}},{key:"_onInvitationTimeout",value:function(e){var n="".concat(this._n,"._onInvitationTimeout"),a=e.inviteID,o=e.inviter,i=e.groupID,s=e.inviteeList,r=this._sigM.hasInviteInfo(a);Pe.l("".concat(n," inviteID:").concat(a," hasInviteID:").concat(r," inviter:").concat(o," groupID:").concat(i," data:").concat(e.data)),r&&(this._sigM.updateInviteInfo(e),this._sigM.emitEvent(N.INVITATION_TIMEOUT,t(t({},this._genBaseEmitData(e)),{},{inviteeList:s,isSelfTimeout:!1})))}},{key:"_onInvitationModified",value:function(e,n){var a="".concat(this._n,"._onInvitationModified"),o=e.inviteID,i=e.data;Pe.l("".concat(a," inviteID:").concat(o," data:").concat(i)),this._sigM.setInviteInfo(o,t(t({},e),{},{message:n})),this._sigM.emitEvent(N.INVITATION_MODIFIED,{inviteID:o,data:i})}}]),Mr),mr=(i(Tr,[{key:"generateInviteID",value:function(){var e,t=(t=bs)((e=Ds)(32),8)+"-"+t(e(16),4)+"-"+t(16384|e(12),4)+"-"+t(32768|e(14),4)+"-"+t(e(48),12);return Pe.l("".concat(this._n,".generateInviteID inviteID:").concat(t)),t}},{key:"createInviteInfo",value:function(e){var n=this.generateInviteID(),a=(e=this.createInviteCustomData(t(t({},e),{},{inviteID:n}))).groupID,o=e.inviteeList;return a=a||o[0],{customData:e,message:this._sigM.createSignaling(e,a),inviteID:n}}},{key:"_genBaseCustomData",value:function(e){var t=e.data,n=e.inviteID;return{businessID:1,timeout:0,data:void 0===t?"":t,inviteID:void 0===n?"":n,groupID:void 0===(e=e.groupID)?"":e}}},{key:"createInviteCustomData",value:function(e){var n=e.userID,a=void 0===(a=e.timeout)?0:a,o=void 0===(o=e.groupID)?"":o,i=this._sigM.getMyUserID();return i=t(t({},this._genBaseCustomData(e)),{},{actionType:N.ACTION_TYPE_INVITE,inviter:i,inviteeList:o?e.inviteeList:[n],timeout:a}),Pe.l("".concat(this._n,".createInviteCustomData customData:"),i),i}},{key:"createCancelCustomData",value:function(e){var n,a="".concat(this._n,".createCancelCustomData"),o=e.inviteID,i=this._sigM.getMyUserID(),s=(o=this._sigM.getInviteInfo(o)).inviteeList,r=o.groupID;return(o=o.inviter)===i?n=t(t({},this._genBaseCustomData(e)),{},{actionType:N.ACTION_TYPE_CANCEL_INVITE,groupID:r,inviter:i,inviteeList:s}):Pe.e("".concat(a," unmatched inviter:").concat(o," and my userID:").concat(i)),Pe.l("".concat(a," customData:"),n),n}},{key:"createAcceptCustomData",value:function(e){var n,a="".concat(this._n,".createAcceptCustomData"),o=e.inviteID,i=this._sigM.getMyUserID(),s=this._sigM.getInviteInfo(o),r=s.inviter,c=s.groupID;return s.inviteeList.includes(i)?n=t(t({},this._genBaseCustomData(e)),{},{actionType:N.ACTION_TYPE_ACCEPT_INVITE,groupID:c,inviter:r,inviteeList:[i]}):Pe.e("".concat(a," userID:").concat(i," not in inviteeList. inviteID:").concat(o," groupID:").concat(c)),Pe.l("".concat(a," customData:"),n),n}},{key:"createRejectCustomData",value:function(e){var n,a="".concat(this._n,".createRejectCustomData"),o=e.inviteID,i=this._sigM.getMyUserID(),s=this._sigM.getInviteInfo(o),r=s.inviter,c=s.groupID;return s.inviteeList.includes(i)?n=t(t({},this._genBaseCustomData(e)),{},{actionType:N.ACTION_TYPE_REJECT_INVITE,groupID:c,inviter:r,inviteeList:[i]}):Pe.e("".concat(a," userID:").concat(i," not in inviteeList. inviteID:").concat(o," groupID:").concat(c)),Pe.l("".concat(a," customData:"),n),n}},{key:"createTimeoutCustomData",value:function(e){var n="".concat(this._n,".createTimeoutCustomData"),a=e.inviteeList,o=e.inviter,i=void 0!==(i=e.isInviter)&&i,s=this._sigM.getMyUserID();return e=t(t({},this._genBaseCustomData(e)),{},{actionType:N.ACTION_TYPE_INVITE_TIMEOUT,inviter:o,inviteeList:i?a:[s]}),Pe.l("".concat(n," customData:"),e),e}}]),Tr),pr=(i(Sr,[{key:"setCloudConfig",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:20,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:300;this.COUNT=e,this.EXPIRED_TIME=t,Pe.l("".concat(this._n,".setCloudConfig count:").concat(e,", time:").concat(t))}},{key:"getHistorySignaling",value:function(){var e=this,t=this._sigM.get(11).getLocalConvList();He(t)||(this._getC2CSignalingList(),t=this._getValidGroupConvList(t),this._getGroupSignalingList(t).then((function(t){e._handleSignalingList(t)})))}},{key:"_getC2CSignalingList",value:function(){var e=this._sigM.get(6).getMessageListFromUnreadDB();e=this._sigM.filterMessageList(e),this._getRelatedToMeMap(e)}},{key:"_getGroupSignalingList",value:function(e){var t=this;return 0===(e=this._createPromiseList(e)).length?Promise.resolve(this._sortSignaling(this._relatedToMeMap)):this._concurrentGetMessageList(e).then((function(e){var n=new Map;return e.forEach((function(e){e=e.list,e=t._getRelatedToMeMap(e),n=new Map([].concat(_(n),_(e)))})),t._sortSignaling(n)}))}},{key:"_handleSignalingList",value:function(e){He(e)||this._sigM.onNewMessageList(e)}},{key:"_getValidGroupConvList",value:function(e){for(var t=[],n=0,a=e.length;n<a;n++){var o=(s=e[n]).type,i=s.unreadCount,s=s.lastMessage;o=o===M.CONV_GROUP,s=this._isNotExpired(s),o&&i&&s&&t.push(e[n])}return t}},{key:"_isNotExpired",value:function(e){return!(!e||!e.lastTime)&&e.lastTime>Se()-this.EXPIRED_TIME}},{key:"_createPromiseList",value:function(e){for(var t=[],n=0;n<e.length;n++){var a=(o=e[n]).conversationID,o=(o=o.unreadCount)<this.COUNT?o:this.COUNT;this._map.set(a,{msgCount:o,list:[]}),o=this._sigM.get(11).getMessageList({conversationID:a}),t.push(o)}return t}},{key:"_concurrentGetMessageList",value:function(e){var t=this,n=[];return Promise.all(e).then((function(e){for(var a=0;a<e.length;a++){var o=(i=e[a]).code,i=i.data;0===o&&0!==i.messageList.length&&(t._handleMessageList(i.messageList),o=t._relayGetMessageList(i))&&n.push(o)}return 0<n.length?t._concurrentGetMessageList(n):t._map}))}},{key:"_relayGetMessageList",value:function(e){var t,n=e.messageList,a=e.nextReqMessageID;return e=e.isCompleted,0===n.length||(n=n[0].conversationID,0===(t=this._map.get(n).msgCount))||e?null:this._sigM.get(11).getMessageList({conversationID:n,nextReqMessageID:a,count:t})}},{key:"_handleMessageList",value:function(e){var t=e.length,n=e[0].conversationID,a=(o=this._map.get(n)).msgCount,o=o.list;this._map.set(n,{msgCount:0<a-t?a-t:0,list:o.concat(this._sigM.filterMessageList(e))})}},{key:"_getRelatedToMeMap",value:function(e){for(var t=0;t<e.length;t++){var n=e[t];this._saveRelatedToMe(n)}return this._relatedToMeMap}},{key:"_saveRelatedToMe",value:function(e){var t,n=(t=this._sigM.getPayloadData(e)||{}).actionType,a=void 0===(t=t.inviteID)?"":t;switch(void 0===n?"":n){case N.ACTION_TYPE_INVITE:this._setHistoryInvite(e);break;case N.ACTION_TYPE_REJECT_INVITE:case N.ACTION_TYPE_ACCEPT_INVITE:this._updateHistoryInvite(e);break;case N.ACTION_TYPE_CANCEL_INVITE:this._delHistoryInvite(a);break;case N.ACTION_TYPE_INVITE_TIMEOUT:this._updateHistoryInvite(e)}}},{key:"_setHistoryInvite",value:function(e){var n=this._sigM.getPayloadData(e)||{},a=void 0===(a=n.inviteID)?"":a,o=void 0===(o=n.inviteeList)?[]:o,i=void 0===(i=n.timeout)?0:i,s=this._sigM.getMyUserID();o.includes(s)&&(o=Se()-e.time,0<i&&i<o&&0!==i||this._relatedToMeMap.set(a,t(t({},n),{},{messageList:[e]})))}},{key:"_delHistoryInvite",value:function(e){this._relatedToMeMap.has(e)&&this._relatedToMeMap.delete(e)}},{key:"_updateHistoryInvite",value:function(e){var t=void 0===(t=(o=this._sigM.getPayloadData(e)||{}).inviteID)?"":t,n=void 0===(o=o.inviteeList)?[]:o;if(this._relatedToMeMap.has(t)){for(var a=(o=this._relatedToMeMap.get(t)).inviteeList,o=o.messageList,i=0;i<n.length;i++){var s=n[i];a.includes(s)&&a.splice(a.indexOf(s),1)}0===a.length?this._delHistoryInvite(t):o.push(e)}else this._delHistoryInvite(t)}},{key:"_sortSignaling",value:function(e){var t=[];return e.forEach((function(e){t=[].concat(_(t),_(e.messageList))})),t.sort((function(e,t){return e.time-t.time}))}},{key:"reset",value:function(){this._map.clear(),this._relatedToMeMap.clear()}}]),Sr),hr=i((function e(t,n){a(this,e),this.businessID=t.businessID||1,this.inviteID=t.inviteID,this.groupID=t.groupID||"",this.inviter=t.inviter||"",this.inviteeList=t.inviteeList||[],this.data=t.data||"",this.actionType=t.actionType||N.ACTION_TYPE_INVITE,this.timeout=t.timeout||0})),gr=["message"],fr=["message"],vr=(r(Ir,Ln),Ps=f(Ir),i(Ir,[{key:"onC2CUnreadHandleCompleted",value:function(){this._isC2CUnreadHandleCompleted=!0,this._isCloudConfigCompleted&&this._isConvSyncCompleted&&!this._isSyncCompleted&&this.onReady()}},{key:"onConvSyncCompleted",value:function(){this._isConvSyncCompleted=!0,this._isC2CUnreadHandleCompleted&&this._isCloudConfigCompleted&&!this._isSyncCompleted&&this.onReady()}},{key:"onCloudConfig",value:function(){this._isCloudConfigCompleted=!0;var e=this.getCloudConfig("history_s_count"),t=this.getCloudConfig("history_s_time");dt(e)||(e=Number(e)),dt(t)||(t=Number(t)),this._historySignalingHandler.setCloudConfig(e,t),this._isC2CUnreadHandleCompleted&&this._isConvSyncCompleted&&!this._isSyncCompleted&&this.onReady()}},{key:"_isListenerExisted",value:function(){return-1<this._m.getOEmitInst().eventNames().indexOf(N.NEW_INVITATION_RECEIVED)}},{key:"onReady",value:function(){this._isSyncCompleted=!0;var e=this._isListenerExisted();Pe.l("".concat(this._n,".onReady. isListenerExisted: ").concat(e)),e&&this._historySignalingHandler.getHistorySignaling()}},{key:"onNewMessageList",value:function(e){if(0<(e=this.filterMessageList(e)).length)return this._remoteSignalingHandler.onNewMessageList(e)}},{key:"onMessageModified",value:function(e){if(0<(e=this.filterMessageList(e)).length)return this._remoteSignalingHandler.onMessageModified(e)}},{key:"hasInviteInfo",value:function(e){return this._inviteInfoMap.has(e)}},{key:"getInviteInfo",value:function(e){return this._inviteInfoMap.get(e)}},{key:"setInviteInfo",value:function(e,n){var a=n.message;n=p(n,gr),Pe.l("".concat(this._n,".setInviteInfo inviteID:").concat(e," data:"),n),this._inviteInfoMap.set(e,t(t({},n),{},{message:a}))}},{key:"deleteInviteInfo",value:function(e){this.hasInviteInfo(e)&&(Pe.l("".concat(this._n,".deleteInviteInfo inviteID:").concat(e,".")),this._inviteInfoMap.delete(e))}},{key:"updateInviteInfo",value:function(e){var t="".concat(this._n,".updateInviteInfo"),n=e.inviteID,a=e.inviter,o=e.inviteeList;e=e.groupID,Pe.l("".concat(t," inviteID:").concat(n," inviter:").concat(a," groupID:").concat(e)),e&&this.hasInviteInfo(n)&&(a=o[0],(e=this.getInviteInfo(n).inviteeList).includes(a)&&(e.splice(e.indexOf(a),1),Pe.l("".concat(t," remove ").concat(a,". localInviteeList.length:").concat(e.length))),0!==e.length)||this.deleteInviteInfo(n)}},{key:"canIUseSignaling",value:function(){return this._canIUseSignaling}},{key:"emitEvent",value:function(e,t){this.emitOEvt(e,t)}},{key:"addSignalingListener",value:function(e,t,n){this._canIUseSignaling||(this._canIUseSignaling=!0),this._m.getOEmitInst().on(e,t,n)}},{key:"removeSignalingListener",value:function(e,t,n){this._m.getOEmitInst().off(e,t,n),this._isListenerExisted()||(this._canIUseSignaling=!1)}},{key:"invite",value:function(e){var n=this,a="".concat(this._n,".").concat("invite"),o=this._localSignalingHandler.createInviteInfo(e),i=o.message,s=o.customData,r=o.inviteID;return Pe.l("".concat(a," options:").concat(JSON.stringify(e)," inviteID:").concat(r)),this.sendSignaling(i,e).then((function(e){return e&&0===e.code?(n.setInviteInfo(r,t(t({},s),{},{message:i})),n.startTimer(t(t({},s),{},{inviteID:r})),t(t({},e),{},{inviteID:r})):e})).catch((function(e){return Cn(e)}))}},{key:"inviteSync",value:function(e,n,a){var o=this,i="".concat(this._n,".").concat("inviteSync"),s=this._localSignalingHandler.createInviteInfo(e),r=s.message,c=s.customData,l=s.inviteID;return Pe.l("".concat(i," options:").concat(JSON.stringify(e)," inviteID:").concat(l)),this.sendSignaling(r,e).then((function(e){if(e&&0===e.code)return o.setInviteInfo(l,t(t({},c),{},{message:r})),o.startTimer(t(t({},c),{},{inviteID:l})),n&&n({inviteID:l}),{inviteID:l};a&&a(0===e.code,e.message||"")})).catch((function(e){return a&&a(e.code,e.message),Cn(e)})),l}},{key:"_handleImResponse",value:function(e,t,n){t&&0===t.code&&(this._isHandling=!1,n?this.deleteInviteInfo(e.inviteID):this.updateInviteInfo(e))}},{key:"cancel",value:function(e){var n=this,a="".concat(this._n,".").concat("cancel");if(Pe.l("".concat(a," options:").concat(JSON.stringify(e))),!this.hasInviteInfo(e.inviteID)||this._isHandling)return Cn({code:Vn.INVALID_CANCEL_MESSAGE});this._isHandling=!0;var o,i=this._localSignalingHandler.createCancelCustomData(e);return i?(a=i.groupID,o=i.inviteeList,a=a||o[0],o=this.createSignaling(i,a),this.sendSignaling(o,e).then((function(a){return n._handleImResponse(i,a,!0),0===a.code?t(t({},a),{},{inviteID:e.inviteID}):a})).catch((function(e){return Cn(e)}))):(this._isHandling=!1,Cn({code:Vn.SIGNALING_NO_PERMISSION}))}},{key:"accept",value:function(e){var n=this,a="".concat(this._n,".").concat("accept");if(Pe.l("".concat(a," options:").concat(JSON.stringify(e))),!this.hasInviteInfo(e.inviteID)||this._isHandling)return Cn({code:Vn.SIGNALING_INVALID_INVITE_ID});this._isHandling=!0;var o=this._localSignalingHandler.createAcceptCustomData(e);return o?(a=this.createSignaling(o),this.sendSignaling(a,e).then((function(a){return n._handleImResponse(o,a),0===a.code?t(t({},a),{},{inviteID:e.inviteID}):a})).catch((function(e){return Cn(e)}))):(this._isHandling=!1,Cn({code:Vn.SIGNALING_NO_PERMISSION}))}},{key:"reject",value:function(e){var n=this,a="".concat(this._n,".").concat("reject");if(Pe.l("".concat(a," options:").concat(JSON.stringify(e))),!this.hasInviteInfo(e.inviteID)||this._isHandling)return Cn({code:Vn.SIGNALING_INVALID_INVITE_ID});this._isHandling=!0;var o=this._localSignalingHandler.createRejectCustomData(e);return o?(a=this.createSignaling(o),this.sendSignaling(a,e).then((function(a){return n._handleImResponse(o,a,!0),0===a.code?t(t({},a),{},{inviteID:e.inviteID}):a})).catch((function(e){return Cn(e)}))):(this._isHandling=!1,Cn({code:Vn.SIGNALING_NO_PERMISSION}))}},{key:"getSignalingInfo",value:function(e){var t="".concat(this._n,".getSignalingInfo"),n=e.ID,a=e.from,o=e.to,i=this._filterSignaling(e),s=null;return i&&(e=this.getPayloadData(e),s=new hr(e)),e=i?"actionType:".concat(s.actionType):"",Pe.l("".concat(t," messageID:").concat(n," from:").concat(a," to:").concat(o," ")+"".concat(e," isSignaling:").concat(i)),s}},{key:"modifyInvitation",value:function(e){var n=this,a=e.inviteID,o=e.data;if(!this.hasInviteInfo(e.inviteID)||this._isHandling)return Cn({code:Vn.SIGNALING_INVALID_INVITE_ID});this._isHandling=!0;var i=(e=this.getInviteInfo(a)).message,s=p(e,fr),r=i.payload.data;return s.data=o,i.payload.data=JSON.stringify(s),this.get(2).modifyRemoteMessage(i).then((function(e){return n.setInviteInfo(a,t(t({},s),{},{message:i})),n._isHandling=!1,e})).catch((function(e){return n._isHandling=!1,i.payload.data=r,Cn(e)}))}},{key:"_genMsgCtrlInfo",value:function(){var e=void 0===(e=(o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).data)?"":e,t=o.onlineUserOnly,n=void 0===(n=o.inviteID)?"":n,a=o.offlinePushInfo,o=o.actionType,i={_onlineOnlyFlag:!1};return n={onlineUserOnly:(i=n&&this.getInviteInfo(n)?this.getInviteInfo(n).message:i)._onlineOnlyFlag||t||!1,offlinePushInfo:a,messageControlInfo:{excludedFromContentModeration:!0,excludedFromUnreadCount:!1,excludedFromLastMessage:!1}},o===N.ACTION_TYPE_INVITE_TIMEOUT?(i=!!e.match(/excludeTimeoutSignalingFromHistoryMessage/),n.messageControlInfo.excludedFromUnreadCount=i,n.messageControlInfo.excludedFromLastMessage=i):(t=!!e.match(/excludeFromHistoryMessage/),a=!!e.match(/excludeOriginalSignalingFromHistoryMessage/),n.messageControlInfo.excludedFromUnreadCount=t||a,n.messageControlInfo.excludedFromLastMessage=t||a),n}},{key:"sendSignaling",value:function(e,t){var n=this;return this.get(2).sendMessageInstance(e,this._genMsgCtrlInfo(t)).catch((function(e){return n._isHandling=!1,Cn(e)}))}},{key:"filterMessageList",value:function(e){var t=this;return e.filter((function(e){return t._filterSignaling(e)}))}},{key:"getPayloadData",value:function(e){return this._remoteSignalingHandler.getPayloadData(e)}},{key:"createSignaling",value:function(e,t){var n=e.groupID,a=e.inviter;return t={to:t||n||a,conversationType:n?M.CONV_GROUP:M.CONV_C2C,priority:M.MSG_PRIORITY_HIGH,payload:{data:JSON.stringify(e)}},a=this.get(2).createCustomMessage(t),Pe.l("".concat(this._n,".createSignaling. message:"),a),a}},{key:"_filterSignaling",value:function(e){var t,n,a=!1;return e.type&&e.type===M.MSG_CUSTOM&&(t=e.cloudCustomData,e=void 0===(e=e.payload.data)?"":e,t=(void 0===t?"":t).match(/"type":"tsignaling"/),n=e.match(/inviteID/),e=e.match(/actionType/),a=t||n&&e),!!a}},{key:"startTimer",value:function(e){var t,n,a,o=this,i="".concat(this._n,".startTimer"),s=e.timeout,r=e.inviteID,c=e.inviter,l=e.groupID,u=c===this.getMyUserID();Pe.l("".concat(i," timeout:").concat(s," isInviter:").concat(u," groupID:").concat(l)),s<=0||(t=u?s+5:s,n=1,a=setInterval((function(){var s=o._hasLocalInviteInfo(e,u);n<t&&s?++n:(s&&o._sendTimeoutNotice(r,u),Pe.l("".concat(i," end.")),clearInterval(a))}),1e3))}},{key:"_hasLocalInviteInfo",value:function(e,t){var n,a,o=e.inviteID;return e=e.groupID,!!this.hasInviteInfo(o)&&(n="".concat(this._n,"._hasLocalInviteInfo"),a=this.getInviteInfo(o).inviteeList,Pe.l("".concat(n," inviteID:").concat(o," inviteeList:").concat(a," groupID:").concat(e)),!e||(t?0<a.length:0<a.length&&a.includes(this.getMyUserID())))}},{key:"_getReceiver",value:function(e,t){var n=t.groupID,a=t.inviteeList;return t=t.inviter,e?n||a[0]:n||t}},{key:"_sendTimeoutNotice",value:function(e,n){var a=this,o=this.getInviteInfo(e),i=this._getReceiver(n,o),s=(Pe.l("".concat(this._n,"._sendTimeoutNotice inviteID:").concat(e," to:").concat(i," isInviter:").concat(n)),this._localSignalingHandler.createTimeoutCustomData(t(t({},o),{},{isInviter:n}))),r=this.createSignaling(s,i);return this.sendSignaling(r,s).then((function(t){var o,i,c;t&&0===t.code&&(t=s.data,o=s.groupID,i=s.inviteeList,c=s.inviter,a.emitEvent(N.INVITATION_TIMEOUT,{data:t,groupID:o,inviteID:e,inviteeList:i,inviter:c,isSelfTimeout:!0,message:r}),n?a.deleteInviteInfo(e):a.updateInviteInfo(s))}))}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._inviteInfoMap.clear(),this._canIUseSignaling=!1,this._isHandling=!1,this._historySignalingHandler.reset(),this._isC2CUnreadHandleCompleted=!1,this._isConvSyncCompleted=!1,this._isSyncCompleted=!1,this._isCloudConfigCompleted=!1}}]),Ir),_r=["followDiffList"],yr={NONE:0,FOLLOWERS:1,FOLLOWING:2,MUTUAL:3},Er=(r(kr,Ln),Ls=f(kr),i(kr,[{key:"_onCloudConfig",value:function(){var e=this.getCloudConfig("follow_req_count");dt(e)||(e=Number(e),this.DEFAULT_COUNT=e>this.MAX_COUNT?this.MAX_COUNT:e,this._clearFollowList())}},{key:"clearCacheOnReconnected",value:function(){this._clearFollowList(),this._followType.clear()}},{key:"onFollowNotify",value:function(e){var t=this;e=e.dataList||[],Pe.l("".concat(this._n,".onFollowNotify followChangeList:").concat(e.length)),e.forEach((function(e){var n=void 0===(n=e.followDiffList)?[]:n,a=p(e,_r);n.forEach((function(e){var n=e.isAdd,o=(e=void 0===(e=e.followType)?[]:e,t._initFollowInfo());o[e].userInfoList.push(a),o[e].isAdd=1===n,t._emitEvent(o)}))}))}},{key:"_initFollowInfo",value:function(){var e={};return Object.values(yr).forEach((function(t){t!==yr.NONE&&(e[t]={userInfoList:[],isAdd:!1})})),e}},{key:"_emitEvent",value:function(e){var t=this;Object.keys(e).forEach((function(n){n=Number(n);var a=e[n];0<a.userInfoList.length&&(n===yr.FOLLOWERS&&(t._clearFollowList(yr.FOLLOWERS),t.emitOEvt(T.MY_FOLLOWERS_LIST_UPDATED,a)),n===yr.FOLLOWING&&(t._clearFollowList(yr.FOLLOWING),t.emitOEvt(T.MY_FOLLOWING_LIST_UPDATED,a)),n===yr.MUTUAL)&&(t._clearFollowList(yr.MUTUAL),t.emitOEvt(T.MUTUAL_FOLLOWERS_LIST_UPDATED,a))}))}},{key:"followUser",value:function(e){var t,n,a;return this.canIUse(V.FOLLOW)?(t="".concat(this._n,".").concat("followUser"),n="userIDList:".concat(e.length),(a=new $n("followUser")).setMessage(n),Pe.l("".concat(t," ").concat(n)),this.req({P:xn.FOLLOW,data:{fromAccount:this.getMyUserID(),userIDList:e.map((function(e){return{userID:e}}))}}).then((function(e){return a.end(),Pe.l("".concat(t," ok.")),yn(e.data.resultList)})).catch((function(e){return a.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this.noUse("followUser")}},{key:"unfollowUser",value:function(e){var t,n,a;return this.canIUse(V.FOLLOW)?(t="".concat(this._n,".").concat("unfollowUser"),n="userIDList:".concat(e.length),(a=new $n("unfollowUser")).setMessage(n),Pe.l("".concat(t," ").concat(n)),this.req({P:xn.UNFOLLOW,data:{fromAccount:this.getMyUserID(),userIDList:e}}).then((function(e){return a.end(),Pe.l("".concat(t," ok.")),yn(e.data.resultList)})).catch((function(e){return a.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this.noUse("unfollowUser")}},{key:"getMyFollowersList",value:function(){var e=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",a="getMyFollowersList";if(!this.canIUse(V.FOLLOW))return this.noUse(a);var o=n||this.FIRST_PAGE_INDEX;if(this._myFollowersList.has(o)){var i=(r=this._myFollowersList.get(o)).resultList,s=r.nextCursor,r=r.lastUpdateTime;if(Date.now()-r<this.MAX_CATCH_TIME&&0<i.length)return Pe.l("".concat(this._n,".").concat(a," nextCursor:").concat(n," from local.")),En({resultList:i,nextCursor:s})}return this._getFollowList(n,yr.FOLLOWERS).then((function(i){return e._myFollowersList.set(o,t(t({},i),{},{lastUpdateTime:Date.now()})),Pe.l("".concat(e._n,".").concat(a," nextCursor:").concat(n," from remote.")),yn(i)}))}},{key:"getMyFollowingList",value:function(){var e=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",a="getMyFollowingList";if(!this.canIUse(V.FOLLOW))return this.noUse(a);var o=n||this.FIRST_PAGE_INDEX;if(this._myFollowingList.has(o)){var i=(r=this._myFollowingList.get(o)).resultList,s=r.nextCursor,r=r.lastUpdateTime;if(Date.now()-r<this.MAX_CATCH_TIME&&0<i.length)return Pe.l("".concat(this._n,".").concat(a," nextCursor:").concat(n," from local.")),En({resultList:i,nextCursor:s})}return this._getFollowList(n,yr.FOLLOWING).then((function(i){return e._myFollowingList.set(o,t(t({},i),{},{lastUpdateTime:Date.now()})),Pe.l("".concat(e._n,".").concat(a," nextCursor:").concat(n," from remote.")),yn(i)}))}},{key:"getMutualFollowersList",value:function(){var e=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",a="getMutualFollowersList";if(!this.canIUse(V.FOLLOW))return this.noUse(a);var o=n||this.FIRST_PAGE_INDEX;if(this._myMutualFollowersList.has(o)){var i=(r=this._myMutualFollowersList.get(o)).resultList,s=r.nextCursor,r=r.lastUpdateTime;if(Date.now()-r<this.MAX_CATCH_TIME&&0<i.length)return Pe.l("".concat(this._n,".").concat(a," nextCursor:").concat(n," from local.")),En({resultList:i,nextCursor:s})}return this._getFollowList(n,yr.MUTUAL).then((function(i){return e._myMutualFollowersList.set(o,t(t({},i),{},{lastUpdateTime:Date.now()})),Pe.l("".concat(e._n,".").concat(a," nextCursor:").concat(n," from remote.")),yn(i)}))}},{key:"_getFollowList",value:function(e,n){var a=this,o=new $n("_getFollowList");return o.setMessage("nextCursor:".concat(e," type:").concat(n)),this.req({P:xn.GET_FOLLOW,data:{fromAccount:this.getMyUserID(),count:this.DEFAULT_COUNT,nextCursor:e,type:n}}).then((function(e){o.end();var n=void 0===(n=(e=e.data).resultList)?[]:n,i=(e=void 0===(e=e.nextCursor)?"":e,[]);return n.forEach((function(e){var n=e.userID,o=e.followTime;e=e.profileList,i.push(t({userID:n,followTime:o},a._handleProfileItem(void 0===e?[]:e)))})),{resultList:i,nextCursor:e}})).catch((function(e){return o.setError(e).end(),Pe.e("".concat(a._n,"._getFollowList failed. error:"),e),Cn(e)}))}},{key:"_handleProfileItem",value:function(e){var t={};return e.forEach((function(e){switch(e.tag){case Re.NICK:t.nick=e.value;break;case Re.GENDER:t.gender=e.value;break;case Re.BIRTHDAY:t.birthday=e.value;break;case Re.LOCATION:t.location=e.value;break;case Re.SELFSIGNATURE:t.selfSignature=e.value;break;case Re.ALLOWTYPE:t.allowType=e.value;break;case Re.LANGUAGE:t.language=e.value;break;case Re.AVATAR:t.avatar=e.value;break;case Re.MESSAGESETTINGS:t.messageSettings=e.value;break;case Re.ADMINFORBIDTYPE:t.adminForbidType=e.value;break;case Re.LEVEL:t.level=e.value;break;case Re.ROLE:t.role=e.value;break;default:t[e.tag]=e.value}})),t}},{key:"getUserFollowInfo",value:function(e){var t,n,a;return this.canIUse(V.FOLLOW)?(n=!1,dt(e)&&(e=[this.getMyUserID()],n=!0),t="".concat(this._n,".").concat("getUserFollowInfo"),n="userIDList:".concat(e.length," isGetMyFollowInfo:").concat(n),(a=new $n("getUserFollowInfo")).setMessage(n),Pe.l("".concat(t," ").concat(n)),this.req({P:xn.GET_FOLLOW_INFO,data:{fromAccount:this.getMyUserID(),userIDList:e}}).then((function(e){a.end(),Pe.l("".concat(t," ok.")),e=e.data.followInfoList;var n=[];return(void 0===e?[]:e).forEach((function(e){var t=e.followersCount,a=e.followingCount;e=e.mutualFollowersCount,n.push({followersCount:t,followingCount:a,mutualFollowersCount:e})})),yn(n)})).catch((function(e){return a.setError(e).end(),Pe.e("".concat(t," failed. error:"),e),Cn(e)}))):this.noUse("getUserFollowInfo")}},{key:"checkFollowType",value:function(e){var t=this;if(!this.canIUse(V.FOLLOW))return this.noUse("checkFollowType");100<e.length&&(e=e.slice(0,100),Pe.w("".concat(n," ").concat(Ht(100))));var n="".concat(this._n,".").concat("checkFollowType"),a="userIDList length:".concat(e.length," "),o=new $n("checkFollowType"),i=(o.setMessage(a),Pe.l("".concat(n," ").concat(a)),[]),s=[];return e.forEach((function(e){var n;t._followType.has(e)?(n=t._followType.get(e),i.push({userID:e,followType:n})):s.push(e)})),Pe.l("".concat(n," from local count:").concat(i.length,", from remote count:").concat(s.length,".")),0===s.length?En(i):this.req({P:xn.CHECK_FOLLOW_TYPE,data:{fromAccount:this.getMyUserID(),userIDList:s}}).then((function(e){return o.end(),Pe.l("".concat(n," ok.")),(void 0===(e=e.data.resultList)?[]:e).forEach((function(e){var n=e.userID;e=e.followType,t._setFollowType(n,e),i.push({userID:n,followType:e})})),yn(i)})).catch((function(e){return o.setError(e).end(),Pe.e("".concat(n," failed. error:"),e),Cn(e)}))}},{key:"_setFollowType",value:function(e,t){this._followType.set(e,t)}},{key:"_clearFollowList",value:function(e){dt(e)?(this._myFollowersList.clear(),this._myFollowingList.clear(),this._myMutualFollowersList.clear()):e!==yr.FOLLOWERS?e!==yr.FOLLOWING?e===yr.MUTUAL&&this._myMutualFollowersList.clear():this._myFollowingList.clear():this._myFollowersList.clear()}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._clearFollowList(),this._followType.clear()}}]),kr),Cr=_i((function(e,t){var a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;t.assign=function(e){for(var t,a,o=Array.prototype.slice.call(arguments,1);o.length;){var i=o.shift();if(i){if("object"!==n(i))throw new TypeError(i+"must be non-object");for(var s in i)t=i,a=s,Object.prototype.hasOwnProperty.call(t,a)&&(e[s]=i[s])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,a,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+a),o);else for(var i=0;i<a;i++)e[o+i]=t[n+i]},flattenChunks:function(e){for(var t,n,a,o=0,i=0,s=e.length;i<s;i++)o+=e[i].length;for(a=new Uint8Array(o),i=t=0,s=e.length;i<s;i++)n=e[i],a.set(n,t),t+=n.length;return a}},i={arraySet:function(e,t,n,a,o){for(var i=0;i<a;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,o)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(a)}));function kr(e){return a(this,kr),(e=Ls.call(this,e))._n="FollowModule",e._myFollowersList=new Map,e._myFollowingList=new Map,e._myMutualFollowersList=new Map,e._followType=new Map,e.MAX_CATCH_TIME=6e5,e.FIRST_PAGE_INDEX=it(),e.DEFAULT_COUNT=500,e.MAX_COUNT=1e3,e.getIEmitInst().on(Ua.CLOUD_CONFIG,e._onCloudConfig,h(e)),e}function Ir(e){a(this,Ir),(e=Ps.call(this,e))._n="SignalingModule",e._inviteInfoMap=new Map,e._canIUseSignaling=!1,e._isHandling=!1,e._remoteSignalingHandler=new dr(h(e)),e._localSignalingHandler=new mr(h(e)),e._historySignalingHandler=new pr(h(e)),e._isC2CUnreadHandleCompleted=!1,e._isConvSyncCompleted=!1,e._isSyncCompleted=!1,e._isCloudConfigCompleted=!1;var t=e.getIEmitInst();return t.on(Ua.C2C_UNREAD_HANDLE_COMPLETED,e.onC2CUnreadHandleCompleted,h(e)),t.on(Ua.CONV_SYNC_COMPLETED,e.onConvSyncCompleted,h(e)),t.on(Ua.CLOUD_CONFIG,e.onCloudConfig,h(e)),e}function Sr(e){a(this,Sr),this._n="HistorySignalingHandler",this._sigM=e,this.COUNT=20,this.EXPIRED_TIME=300,this._map=new Map,this._relatedToMeMap=new Map}function Tr(e){a(this,Tr),this._n="LocalSignalingHandler",this._sigM=e}function Mr(e){a(this,Mr),this._n="RemoteSignalingHandler",this._sigM=e}function Nr(e){a(this,Nr),this._m=e,this._n="ErrMsgModule",this.TIM_ERROR_ASSISTANCE="tim_error_assistance",this.STORAGE_EXPIRES_TIME=6048e5,this._map=new Map,this._init()}function wr(e){a(this,wr),this._m=e,this._n="TransCmdModule",this._TRTCCommandList=["tui_room_svr.*","callkit_records_svr.*","room_engine_srv.*","room_engine_http_srv.*","room_engine_mic.*","live_engine_srv.*","live_engine_http_srv.*","live_engine_pk.*","trtc_ai_service.*"],this._TRTCCommandMap=new Map,this._setTRTCCommandMap(),this._m.getIEmitInst().on(Ua.CLOUD_CONFIG,this._onCloudConfig,this)}function Dr(e){return a(this,Dr),(e=As.call(this,e))._n="ProfanityFilterModule",e._plugin=null,e._filterConfigMap=new Map,e._startIndex=0,e._version=0,e._canIUseLexicon=!1,e._isFetching=!1,e._expiredTime=0,e}function br(e){var t;return a(this,br),(t=Rs.call(this,e))._m=e,t._n="TIMPushModule",t._pluginName="TIMPush",t._pushPlugin=void 0,t._androidPushConfig={},t._deviceToken="",t._businessID=0,t._iOSBusinessID=0,t._c2cUnreadCount=0,t._groupUnreadCount=0,t._isWebUniapp=0,t._deviceInfo={notificationStatus:0,deviceModel:"",systemVersion:"",pushVersion:"1.0.1",packageName:""},t}function Lr(e){var t;return a(this,Lr),(t=Os.call(this,e))._m=e,t._n="OfflinePushModule",t._offlinePushPlugin=void 0,t._androidPushConfig={huaweiPushBussinessId:"",xiaomiPushBussinessId:"",xiaomiPushAppId:"",xiaomiPushAppKey:"",meizuPushBussinessId:"",meizuPushAppId:"",meizuPushAppKey:"",vivoPushBussinessId:"",fcmPushBussinessId:"",oppoPushBussinessId:"",oppoPushAppKey:"",oppoPushAppSecret:"",honorPushBussinessId:""},t._deviceToken="",t._businessID=0,t._iosBusinessID=0,t._c2cUnreadCount=0,t._groupUnreadCount=0,t._isWebUniapp=0,t}function Pr(e){a(this,Pr),this._m=e,this._n="CommercialConfigModule",this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler=new or(this)}function Ar(e){a(this,Ar),this._commercialConfigM=e,this._n="PurchasedFeatureHandler",this._isSCMReported=!1,this._featureMap=new Map}function Rr(e){return a(this,Rr),(e=Vs.call(this,e))._n="WorkerTimerModule",e._isWorkerEnabled=!0,e._workerTimer=null,e._timerID=-1,e._init(),e.getIEmitInst().on(Ua.CLOUD_CONFIG,e._onCloudConfig,h(e)),e}function Or(e){return a(this,Or),(e=Bs.call(this,e))._n="SnsModule",e._friendHandler=new $s(h(e)),e._friendApplicationHandler=new Ws(h(e)),e._friendGroupHandler=new tr(h(e)),e.getIEmitInst().on(Ua.A2KEY_AND_TINYID_UPDATED,e.onContextUpdated,h(e)),e}function Vr(e){a(this,Vr),this._snsM=e,this._n="FriendGroupHandler",this._map=new Map}function Br(e){a(this,Br),He(e)||(this.name=e.name||"",this.userIDList=e.userIDList||[],this.count=this.userIDList.length||0)}function xr(e){a(this,xr),this._snsM=e,this._n="FriendHandler",this._map=new Map,this._startIdx=0,this._standardSeq=0,this._customSeq=0,this._expirationTime=18e4}function Ur(e,n){a(this,Ur),this.userID=e,this.remark="",this.groupList=[],this.source="",this.addTime=0,this.friendCustomField=[],this.timestamp=0;var o={},i=[];if(o.userID=e,!He(n))for(var s,r="",c=0,l=n.length;c<l;c++)if(r=n[c].tag,s=n[c].value,-1<r.indexOf("Tag_SNS_Custom"))this.friendCustomField.push({key:r,value:s});else if(-1<r.indexOf("Tag_Profile_Custom"))i.push({key:r,value:s});else switch(r){case Re.NICK:o.nick=s;break;case Re.GENDER:o.gender=s;break;case Re.BIRTHDAY:o.birthday=s;break;case Re.LOCATION:o.location=s;break;case Re.SELFSIGNATURE:o.selfSignature=s;break;case Re.ALLOWTYPE:o.allowType=s;break;case Re.LANGUAGE:o.language=s;break;case Re.AVATAR:o.avatar=s;break;case Re.MESSAGESETTINGS:o.messageSettings=s;break;case Re.ADMINFORBIDTYPE:o.adminForbidType=s;break;case Re.LEVEL:o.level=s;break;case Re.ROLE:o.role=s;break;case Oe.REMARK:this.remark=s;break;case Oe.ADDTIME:this.addTime=s;break;case Oe.GROUP:this.groupList=JSON.parse(JSON.stringify(s));break;case Oe.ADDSOURCE:this.source=s;break;case Oe.ADDWORDING:break;default:Pe.l("snsProfileItem unknown tag->",n[c].tag)}this.profile=new eo(t(t({},o),{},{profileCustomField:i}))}function Gr(e){a(this,Gr),this._snsM=e,this._n="FriendApplicationHandler",this._startTime=0,this._maxLimited=100,this._currentSeq=0,this._map=new Map,this._unreadCount=0}function Fr(e){a(this,Fr),(e=xs.call(this,e))._n="QualityStatModule",e.TAG="im-ssolog-quality-stat",e.reportIndex=0,e.wholePeriod=!1,e._qualityItems=[Un,Gn,Fn,Yn,Hn,Zn,qn,jn,Jn,Xn],e._messageSentItems=[Fn,Yn,Hn,Zn,qn],e._messageReceivedItems=[jn,Jn,Xn],e.REPORT_INTERVAL=120,e.REPORT_SDKAPPID_BLACKLIST=[],e.REPORT_TINYID_WHITELIST=[],e._statInfoArr=[],e._avgRTT=new js,e._avgE2EDelay=new qs,e._rateMessageSent=new Js,e._rateMessageReceived=new Xs;var t=e.getIEmitInst();return t.on(Ua.A2KEY_AND_TINYID_UPDATED,e._onLoginSuccess,h(e)),t.on(Ua.CLOUD_CONFIG,e._onCloudConfig,h(e)),e}function Yr(){a(this,Yr),this._lastMap=new Map,this._currentMap=new Map}function Hr(){a(this,Hr),this._map=new Map}function Zr(){a(this,Zr),this._n="AvgRTT",this._requestCount=0,this._rttArray=[]}function qr(){a(this,qr),this._n="AvgE2EDelay",this._e2eDelayArray=[]}function jr(e){return a(this,jr),(e=Us.call(this,e))._n="RecoverMsgModule",e.PULL_LIMIT_COUNT=15,e}function Jr(e){return a(this,Jr),(e=Gs.call(this,e))._n="CloudControlModule",e._cloudConfig=new Map,e._expiredTime=0,e._version=0,e._isFetching=!1,e}function Xr(e){return a(this,Xr),(e=Fs.call(this,e))._n="SessionModule",e._platform=e.getPlatform(),e._pHandler=new gs(h(e)),e._msgDispatcher=new vs(h(e)),e._cmdFreqLimitMap=new Map,e._cmdReqInfoMap=new Map,e._serverOverloadInfoMap=new Map,e._incrementalPullContactFlag=!0,e._init(),e.getIEmitInst().on(Ua.CLOUD_CONFIG,e._onCloudConfig,h(e)),e}function Kr(e,t,n,a){for(var o=65535&e,i=e>>>16&65535,s=0;0!==n;){for(n-=s=2e3<n?2e3:n;i=i+(o=o+t[a++]|0)|0,--s;);o%=65521,i%=65521}return o|i<<16}function zr(e,t,n,a){var o=Qr,i=a+n;e^=-1;for(var s=a;s<i;s++)e=e>>>8^o[255&(e^t[s])];return~e}function Wr(e,t,n,a,o,i,s,r){var c,l,u,d,m,p,h,g,f,v=r.bits,_=0,y=0,E=0,C=0,k=0,I=0,S=0,T=0,M=0,N=0,w=null,D=0,b=new Cr.Buf16(16),L=new Cr.Buf16(16),P=null,A=0;for(_=0;_<=15;_++)b[_]=0;for(y=0;y<a;y++)b[t[n+y]]++;for(k=v,C=15;1<=C&&0===b[C];C--);if(C<k&&(k=C),0===C)o[i++]=20971520,o[i++]=20971520,r.bits=1;else{for(E=1;E<C&&0===b[E];E++);for(k<E&&(k=E),_=T=1;_<=15;_++)if((T=(T<<1)-b[_])<0)return-1;if(0<T&&(0===e||1!==C))return-1;for(L[1]=0,_=1;_<15;_++)L[_+1]=L[_]+b[_];for(y=0;y<a;y++)0!==t[n+y]&&(s[L[t[n+y]]++]=y);if(p=0===e?(w=P=s,19):1===e?(w=$r,D-=257,P=ec,A-=257,256):(w=tc,P=nc,-1),_=E,m=i,S=y=N=0,u=-1,d=(M=1<<(I=k))-1,1===e&&852<M||2===e&&592<M)return 1;for(;;){for(f=s[y]<p?(g=0,s[y]):s[y]>p?(g=P[A+s[y]],w[D+s[y]]):(g=96,0),c=1<<(h=_-S),E=l=1<<I;o[m+(N>>S)+(l-=c)]=h<<24|g<<16|f,0!==l;);for(c=1<<_-1;N&c;)c>>=1;if(N=0!==c?(N&c-1)+c:0,y++,0==--b[_]){if(_===C)break;_=t[n+s[y]]}if(k<_&&(N&d)!==u){for(m+=E,T=1<<(I=_-(S=0===S?k:S));I+S<C&&!((T-=b[I+S])<=0);)I++,T<<=1;if(M+=1<<I,1===e&&852<M||2===e&&592<M)return 1;o[u=N&d]=k<<24|I<<16|m-i}}0!==N&&(o[m+N]=_-S<<24|64<<16),r.bits=k}return 0}Cr.assign,Cr.shrinkBuf,Cr.setTyped,Cr.Buf8,Cr.Buf16,Cr.Buf32;var Qr=function(){for(var e=[],t=0;t<256;t++){for(var n=t,a=0;a<8;a++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e}(),$r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],ec=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],tc=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],nc=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function ac(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function oc(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Cr.Buf16(320),this.work=new Cr.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ic(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Cr.Buf32(852),t.distcode=t.distdyn=new Cr.Buf32(592),t.sane=1,t.back=-1,0):-2}function sc(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ic(e)):-2}function rc(e,t){var n,a;return!e||!e.state||(a=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?-2:(null!==a.window&&a.wbits!==t&&(a.window=null),a.wrap=n,a.wbits=t,sc(e))}function cc(e,t){var n;return e?(n=new oc,(e.state=n).window=null,0!==(n=rc(e,t))&&(e.state=null),n):-2}var lc,uc,dc=!0;function mc(e,t,n,a){var o;return null===(e=e.state).window&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new Cr.Buf8(e.wsize)),a>=e.wsize?(Cr.arraySet(e.window,t,n-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):((o=e.wsize-e.wnext)>a&&(o=a),Cr.arraySet(e.window,t,n-a,o,e.wnext),(a-=o)?(Cr.arraySet(e.window,t,n-a,a,0),e.wnext=a,e.whave=e.wsize):(e.wnext+=o,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=o))),0}var pc={inflateReset:sc,inflateReset2:rc,inflateResetKeep:ic,inflateInit:function(e){return cc(e,15)},inflateInit2:cc,inflate:function(e,t){var n,a,o,i,s,r,c,l,u,d,m,p,h,g,f,v,_,y,E,C,k,I,S,T,M=0,N=new Cr.Buf8(4),w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(n=e.state).mode&&(n.mode=13),s=e.next_out,o=e.output,c=e.avail_out,i=e.next_in,a=e.input,r=e.avail_in,l=n.hold,u=n.bits,d=r,m=c,I=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap)n.mode=13;else{for(;u<16;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}if(2&n.wrap&&35615===l)N[n.check=0]=255&l,N[1]=l>>>8&255,n.check=zr(n.check,N,2,0),u=l=0,n.mode=2;else if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31)e.msg="incorrect header check",n.mode=30;else if(8!=(15&l))e.msg="unknown compression method",n.mode=30;else{if(u-=4,k=8+(15&(l>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<k,e.adler=n.check=1,n.mode=512&l?10:12,u=l=0}}break;case 2:for(;u<16;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}if(n.flags=l,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=l>>8&1),512&n.flags&&(N[0]=255&l,N[1]=l>>>8&255,n.check=zr(n.check,N,2,0)),u=l=0,n.mode=3;case 3:for(;u<32;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}n.head&&(n.head.time=l),512&n.flags&&(N[0]=255&l,N[1]=l>>>8&255,N[2]=l>>>16&255,N[3]=l>>>24&255,n.check=zr(n.check,N,4,0)),u=l=0,n.mode=4;case 4:for(;u<16;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}n.head&&(n.head.xflags=255&l,n.head.os=l>>8),512&n.flags&&(N[0]=255&l,N[1]=l>>>8&255,n.check=zr(n.check,N,2,0)),u=l=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),512&n.flags&&(N[0]=255&l,N[1]=l>>>8&255,n.check=zr(n.check,N,2,0)),u=l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((p=(p=n.length)>r?r:p)&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Cr.arraySet(n.head.extra,a,i,p,k)),512&n.flags&&(n.check=zr(n.check,a,p,i)),r-=p,i+=p,n.length-=p),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===r)break e;for(p=0;k=a[i+p++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k)),k&&p<r;);if(512&n.flags&&(n.check=zr(n.check,a,p,i)),r-=p,i+=p,k)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===r)break e;for(p=0;k=a[i+p++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k)),k&&p<r;);if(512&n.flags&&(n.check=zr(n.check,a,p,i)),r-=p,i+=p,k)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;u<16;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}if(l!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}u=l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}e.adler=n.check=ac(l),u=l=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=s,e.avail_out=c,e.next_in=i,e.avail_in=r,n.hold=l,n.bits=u,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last)l>>>=7&u,u-=7&u,n.mode=27;else{for(;u<3;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}switch(n.last=1&l,--u,3&(l>>>=1)){case 0:n.mode=14;break;case 1:D=b=void 0;var D,b=n;if(dc){for(lc=new Cr.Buf32(512),uc=new Cr.Buf32(32),D=0;D<144;)b.lens[D++]=8;for(;D<256;)b.lens[D++]=9;for(;D<280;)b.lens[D++]=7;for(;D<288;)b.lens[D++]=8;for(Wr(1,b.lens,0,288,lc,0,b.work,{bits:9}),D=0;D<32;)b.lens[D++]=5;Wr(2,b.lens,0,32,uc,0,b.work,{bits:5}),dc=!1}if(b.lencode=lc,b.lenbits=9,b.distcode=uc,b.distbits=5,n.mode=20,6!==t)break;l>>>=2,u-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}l>>>=2,u-=2}break;case 14:for(l>>>=7&u,u-=7&u;u<32;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&l,u=l=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(p=n.length){if(0===(p=c<(p=r<p?r:p)?c:p))break e;Cr.arraySet(o,a,i,p,s),r-=p,i+=p,c-=p,s+=p,n.length-=p}else n.mode=12;break;case 17:for(;u<14;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}if(n.nlen=257+(31&l),l>>>=5,u-=5,n.ndist=1+(31&l),l>>>=5,u-=5,n.ncode=4+(15&l),l>>>=4,u-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;u<3;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}n.lens[w[n.have++]]=7&l,l>>>=3,u-=3}for(;n.have<19;)n.lens[w[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},I=Wr(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,I){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;v=(M=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,_=65535&M,!((f=M>>>24)<=u);){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}if(_<16)l>>>=f,u-=f,n.lens[n.have++]=_;else{if(16===_){for(T=f+2;u<T;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}if(l>>>=f,u-=f,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}k=n.lens[n.have-1],p=3+(3&l),l>>>=2,u-=2}else if(17===_){for(T=f+3;u<T;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}k=0,p=3+(7&(l>>>=f)),l>>>=3,u=u-f-3}else{for(T=f+7;u<T;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}k=0,p=11+(127&(l>>>=f)),l>>>=7,u=u-f-7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;p--;)n.lens[n.have++]=k}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,S={bits:n.lenbits},I=Wr(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,I){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},I=Wr(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,I){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=r&&258<=c){e.next_out=s,e.avail_out=c,e.next_in=i,e.avail_in=r,n.hold=l,n.bits=u,Z=F=V=O=R=A=P=L=ae=ne=te=ee=$=Q=W=z=K=X=J=j=q=H=Y=G=U=void 0;var L,P,A,R,O,V,B=e,x=m,U=B.state,G=B.next_in,F=B.input,Y=G+(B.avail_in-5),H=B.next_out,Z=B.output,q=H-(x-B.avail_out),j=H+(B.avail_out-257),J=U.dmax,X=U.wsize,K=U.whave,z=U.wnext,W=U.window,Q=U.hold,$=U.bits,ee=U.lencode,te=U.distcode,ne=(1<<U.lenbits)-1,ae=(1<<U.distbits)-1;t:do{for($<15&&(Q+=F[G++]<<$,$+=8,Q+=F[G++]<<$,$+=8),L=ee[Q&ne];;){if(Q>>>=P=L>>>24,$-=P,0==(P=L>>>16&255))Z[H++]=65535&L;else{if(!(16&P)){if(!(64&P)){L=ee[(65535&L)+(Q&(1<<P)-1)];continue}if(32&P){U.mode=12;break t}B.msg="invalid literal/length code",U.mode=30;break t}for(A=65535&L,(P&=15)&&($<P&&(Q+=F[G++]<<$,$+=8),A+=Q&(1<<P)-1,Q>>>=P,$-=P),$<15&&(Q+=F[G++]<<$,$+=8,Q+=F[G++]<<$,$+=8),L=te[Q&ae];;){if(Q>>>=P=L>>>24,$-=P,!(16&(P=L>>>16&255))){if(!(64&P)){L=te[(65535&L)+(Q&(1<<P)-1)];continue}B.msg="invalid distance code",U.mode=30;break t}if(R=65535&L,$<(P&=15)&&(Q+=F[G++]<<$,($+=8)<P)&&(Q+=F[G++]<<$,$+=8),(R+=Q&(1<<P)-1)>J){B.msg="invalid distance too far back",U.mode=30;break t}if(Q>>>=P,$-=P,R>(P=H-q)){if((P=R-P)>K&&U.sane){B.msg="invalid distance too far back",U.mode=30;break t}if(V=W,(O=0)===z){if(O+=X-P,P<A){for(A-=P;Z[H++]=W[O++],--P;);O=H-R,V=Z}}else if(z<P){if(O+=X+z-P,(P-=z)<A){for(A-=P;Z[H++]=W[O++],--P;);if(O=0,z<A){for(A-=P=z;Z[H++]=W[O++],--P;);O=H-R,V=Z}}}else if(O+=z-P,P<A){for(A-=P;Z[H++]=W[O++],--P;);O=H-R,V=Z}for(;2<A;)Z[H++]=V[O++],Z[H++]=V[O++],Z[H++]=V[O++],A-=3;A&&(Z[H++]=V[O++],1<A)&&(Z[H++]=V[O++])}else{for(O=H-R;Z[H++]=Z[O++],Z[H++]=Z[O++],Z[H++]=Z[O++],2<(A-=3););A&&(Z[H++]=Z[O++],1<A)&&(Z[H++]=Z[O++])}break}}break}}while(G<Y&&H<j);G-=A=$>>3,Q&=(1<<($-=A<<3))-1,B.next_in=G,B.next_out=H,B.avail_in=G<Y?Y-G+5:5-(G-Y),B.avail_out=H<j?j-H+257:257-(H-j),U.hold=Q,U.bits=$,s=e.next_out,o=e.output,c=e.avail_out,i=e.next_in,a=e.input,r=e.avail_in,l=n.hold,u=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;v=(M=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,_=65535&M,!((f=M>>>24)<=u);){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}if(v&&!(240&v)){for(y=f,E=v,C=_;v=(M=n.lencode[C+((l&(1<<y+E)-1)>>y)])>>>16&255,_=65535&M,!(y+(f=M>>>24)<=u);){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}l>>>=y,u-=y,n.back+=y}if(l>>>=f,u-=f,n.back+=f,n.length=_,0===v){n.mode=26;break}if(32&v){n.back=-1,n.mode=12;break}if(64&v){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&v,n.mode=22;case 22:if(n.extra){for(T=n.extra;u<T;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;v=(M=n.distcode[l&(1<<n.distbits)-1])>>>16&255,_=65535&M,!((f=M>>>24)<=u);){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}if(!(240&v)){for(y=f,E=v,C=_;v=(M=n.distcode[C+((l&(1<<y+E)-1)>>y)])>>>16&255,_=65535&M,!(y+(f=M>>>24)<=u);){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}l>>>=y,u-=y,n.back+=y}if(l>>>=f,u-=f,n.back+=f,64&v){e.msg="invalid distance code",n.mode=30;break}n.offset=_,n.extra=15&v,n.mode=24;case 24:if(n.extra){for(T=n.extra;u<T;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===c)break e;if(n.offset>(p=m-c)){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}h=p>n.wnext?(p-=n.wnext,n.wsize-p):n.wnext-p,p>n.length&&(p=n.length),g=n.window}else g=o,h=s-n.offset,p=n.length;for(c-=p=c<p?c:p,n.length-=p;o[s++]=g[h++],--p;);0===n.length&&(n.mode=21);break;case 26:if(0===c)break e;o[s++]=n.length,c--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(0===r)break e;r--,l|=a[i++]<<u,u+=8}if(m-=c,e.total_out+=m,n.total+=m,m&&(e.adler=n.check=(n.flags?zr:Kr)(n.check,o,m,s-m)),m=c,(n.flags?l:ac(l))!==n.check){e.msg="incorrect data check",n.mode=30;break}u=l=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;u<32;){if(0===r)break e;r--,l+=a[i++]<<u,u+=8}if(l!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}u=l=0}n.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;default:return-2}return e.next_out=s,e.avail_out=c,e.next_in=i,e.avail_in=r,n.hold=l,n.bits=u,(n.wsize||m!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&mc(e,e.output,e.next_out,m-e.avail_out),d-=e.avail_in,m-=e.avail_out,e.total_in+=d,e.total_out+=m,n.total+=m,n.wrap&&m&&(e.adler=n.check=(n.flags?zr:Kr)(n.check,o,m,e.next_out-m)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==d&&0===m||4===t)&&0===I?-5:I},inflateEnd:function(e){var t;return e&&e.state?((t=e.state).window&&(t.window=null),e.state=null,0):-2},inflateGetHeader:function(e,t){return e&&e.state&&2&(e=e.state).wrap?((e.head=t).done=!1,0):-2},inflateSetDictionary:function(e,t){var n,a=t.length;return!e||!e.state||0!==(n=e.state).wrap&&11!==n.mode?-2:11===n.mode&&Kr(1,t,a,0)!==n.check?-3:mc(e,t,a,a)?(n.mode=31,-4):(n.havedict=1,0)},inflateInfo:"pako inflate (from Nodeca project)"},hc=!0,gc=!0;try{String.fromCharCode.apply(null,[0])}catch(Bc){hc=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Bc){gc=!1}for(var fc=new Cr.Buf8(256),vc=0;vc<256;vc++)fc[vc]=252<=vc?6:248<=vc?5:240<=vc?4:224<=vc?3:192<=vc?2:1;function _c(e,t){for(var n,a,o=t||e.length,i=new Array(2*o),s=0,r=0;r<o;)if((n=e[r++])<128)i[s++]=n;else if(4<(a=fc[n]))i[s++]=65533,r+=a-1;else{for(n&=2===a?31:3===a?15:7;1<a&&r<o;)n=n<<6|63&e[r++],a--;1<a?i[s++]=65533:n<65536?i[s++]=n:(n-=65536,i[s++]=55296|n>>10&1023,i[s++]=56320|1023&n)}var c=i,l=s;if(l<65534&&(c.subarray&&gc||!c.subarray&&hc))return String.fromCharCode.apply(null,Cr.shrinkBuf(c,l));for(var u="",d=0;d<l;d++)u+=String.fromCharCode(c[d]);return u}function yc(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}function Ec(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}fc[254]=fc[254]=1;var Cc={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},kc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Ic=Object.prototype.toString;function Sc(e){if(!(this instanceof Sc))return new Sc(e);this.options=Cr.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;if(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new yc,this.strm.avail_out=0,(e=pc.inflateInit2(this.strm,t.windowBits))!==Cc.Z_OK)throw new Error(kc[e]);if(this.header=new Ec,pc.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=function(e){for(var t,n,a,o,i=e.length,s=0,r=0;r<i;r++)55296==(64512&(n=e.charCodeAt(r)))&&r+1<i&&56320==(64512&(a=e.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(a-56320),r++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Cr.Buf8(s),r=o=0;o<s;r++)55296==(64512&(n=e.charCodeAt(r)))&&r+1<i&&56320==(64512&(a=e.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(a-56320),r++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(t.dictionary):"[object ArrayBuffer]"===Ic.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(e=pc.inflateSetDictionary(this.strm,t.dictionary))!==Cc.Z_OK)throw new Error(kc[e])}function Tc(e,t){if((t=new Sc(t)).push(e,!0),t.err)throw t.msg||kc[t.err];return t.result}Sc.prototype.push=function(e,t){var n,a,o,i,s,r=this.strm,c=this.options.chunkSize,l=this.options.dictionary,u=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?Cc.Z_FINISH:Cc.Z_NO_FLUSH,"string"==typeof e?r.input=function(e){for(var t=new Cr.Buf8(e.length),n=0,a=t.length;n<a;n++)t[n]=e.charCodeAt(n);return t}(e):"[object ArrayBuffer]"===Ic.call(e)?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new Cr.Buf8(c),r.next_out=0,r.avail_out=c),(n=(n=pc.inflate(r,Cc.Z_NO_FLUSH))===Cc.Z_NEED_DICT&&l?pc.inflateSetDictionary(this.strm,l):n)===Cc.Z_BUF_ERROR&&!0===u&&(n=Cc.Z_OK,u=!1),n!==Cc.Z_STREAM_END&&n!==Cc.Z_OK)return this.onEnd(n),!(this.ended=!0);!r.next_out||0!==r.avail_out&&n!==Cc.Z_STREAM_END&&(0!==r.avail_in||a!==Cc.Z_FINISH&&a!==Cc.Z_SYNC_FLUSH)||("string"===this.options.to?(o=function(e,t){for(var n=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0||0===n)&&n+fc[e[n]]>t?n:t}(r.output,r.next_out),i=r.next_out-o,s=_c(r.output,o),r.next_out=i,r.avail_out=c-i,i&&Cr.arraySet(r.output,r.output,o,i,0),this.onData(s)):this.onData(Cr.shrinkBuf(r.output,r.next_out))),0===r.avail_in&&0===r.avail_out&&(u=!0)}while((0<r.avail_in||0===r.avail_out)&&n!==Cc.Z_STREAM_END);return(a=n===Cc.Z_STREAM_END?Cc.Z_FINISH:a)===Cc.Z_FINISH?(n=pc.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Cc.Z_OK):a!==Cc.Z_SYNC_FLUSH||(this.onEnd(Cc.Z_OK),!(r.avail_out=0))},Sc.prototype.onData=function(e){this.chunks.push(e)},Sc.prototype.onEnd=function(e){e===Cc.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Cr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},W={};var Mc=((0,Cr.assign)(W,{Inflate:Sc,inflate:Tc,inflateRaw:function(e,t){return(t=t||{}).raw=!0,Tc(e,t)},ungzip:Tc},Cc),W),Nc=(i(Oc,[{key:"inflate",value:function(e){e=new Uint8Array(e).slice(4);var t,n=Date.now();try{t=Mc.inflate(e,{to:"string"}),this._bLogForInflateOK||(this._bLogForInflateOK=!0,new $n("inflateOK").end())}catch(o){return this._bLogForInflateError?void 0:(this._bLogForInflateError=!0,void new $n("inflateError").setMessage(o).end())}e=e.length+4;var a=t.length;return Pe.d("inflate ok. zipped:".concat(e," unzipped:").concat(a)+" compression ratio:".concat(Math.round(100*(a-e)/a),"% cost:").concat(Date.now()-n)),t}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._bLogForInflateOK=!1,this._bLogForInflateError=!1}}]),Oc),wc=(i(Rc,[{key:"_startTimer",value:function(){var e=this._map.get(24),t=e.isWorkerEnabled();Pe.l("".concat(this._n,".startTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer()}},{key:"_startMainThreadTimer",value:function(){this._checkTimer<0&&(this._checkTimer=setInterval(this.onCheckTimer.bind(this),1e3)),Pe.l("".concat(this._n,"._startMainThreadTimer seed:").concat(this._checkTimer))}},{key:"stopTimer",value:function(){var e=this._map.get(24),t=e.isWorkerEnabled();Pe.l("".concat(this._n,".stopTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer()}},{key:"_stopMainThreadTimer",value:function(){Pe.l("".concat(this._n,"._stopMainThreadTimer")),0<this._checkTimer&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0)}},{key:"_stopMainThreadSocket",value:function(){Pe.l("".concat(this._n,"._stopMainThreadSocket"));var e=this._map.get(21);e.setIsWorkerEnabled(!0),e.reConnect()}},{key:"_startMainThreadSocket",value:function(){Pe.l("".concat(this._n,"._startMainThreadSocket"));var e=this._map.get(21);e.setIsWorkerEnabled(!1),e.reConnect()}},{key:"onWorkerTimerEnabled",value:function(){Pe.l("".concat(this._n,".onWorkerTimerEnabled, disable main thread timer and socket")),this._stopMainThreadTimer(),this._stopMainThreadSocket()}},{key:"onWorkerTimerDisabled",value:function(){Pe.l("".concat(this._n,".onWorkerTimerDisabled, enable main thread timer and socket")),this._startMainThreadTimer(),this._startMainThreadSocket()}},{key:"onCheckTimer",value:function(){this._checkCount+=1;var e,t=S(this._map);try{for(t.s();!(e=t.n()).done;){var n=v(e.value,2)[1];n.onCheckTimer&&n.onCheckTimer(this._checkCount)}}catch(a){t.e(a)}finally{t.f()}}},{key:"_initReadyList",value:function(){var e=this;this._readyList=[this._map.get(1)],this._readyList.forEach((function(t){t.ready((function(){return e._onModuleReady()}))}))}},{key:"_onModuleReady",value:function(){var e,t,n=!0;this._readyList.forEach((function(e){e.isReady()||(n=!1)})),n&&!this._isReady&&(this._isReady=!0,this._oEmitter.emit(T.SDK_READY),e=Date.now()-this._startLoginTs,Pe.w("SDK is ready. cost ".concat(e," ms")),this._startLoginTs=Date.now(),t=this._ssoLogForReady.getStartTs()+Me,this._ssoLogForReady.setMessage(e).start(t).end())}},{key:"login",value:function(){0===this._startLoginTs&&(Ie(),this._startLoginTs=Date.now(),this._startTimer(),this._map.get(15).start(),this._ssoLogForReady=new $n("sdkReady"),this._reason=Vn.LOGGING_IN)}},{key:"onLoginFailed",value:function(){this._startLoginTs=0}},{key:"getOEmitInst",value:function(){return null===this._oEmitter&&(this._oEmitter=new Ei,e=this._oEmitter,Bn=e,this._oEmitter._emit=this._oEmitter.emit,this._oEmitter.emit=function(e,t){var n,a,o=this;this._canIUseSignaling()&&(e===T.MESSAGE_RECEIVED&&this.get(33).onNewMessageList(t),e===T.MESSAGE_MODIFIED)&&this.get(33).onMessageModified(t),e===T.CONVERSATION_LIST_UPDATED||e===T.FRIEND_LIST_UPDATED||e===T.GROUP_LIST_UPDATED||e===T.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED?!1!==this._eventThrottling?this._eventThrottleMap.has(e)?(n=Date.now())-(a=this._eventThrottleMap.get(e)).last<=1e3?(a.timeoutID&&clearTimeout(a.timeoutID),a.timeoutID=setTimeout((function(){a.last=Date.now(),o._oEmitter._emit.apply(o._oEmitter,[e,{name:e,data:o._getEventData(e)}])}),1e3)):(a.last=n,this._oEmitter._emit.apply(this._oEmitter,[e,{name:e,data:this._getEventData(e)}])):(this._eventThrottleMap.set(e,{last:Date.now(),timeoutID:-1}),this._oEmitter._emit.apply(this._oEmitter,[e,{name:e,data:this._getEventData(e)}])):this._oEmitter._emit.apply(this._oEmitter,[e,{name:e,data:this._getEventData(e)}]):this._oEmitter._emit.apply(this._oEmitter,[e,{name:e,data:t}])}.bind(this)),this._oEmitter;var e}},{key:"_canIUseSignaling",value:function(){var e=this.get(33);return!!e&&e.canIUseSignaling()}},{key:"_getEventData",value:function(e){return e===T.CONVERSATION_LIST_UPDATED?this._map.get(12).isPartialUpdatedConvs()?this._map.get(11).getPartialUpdatedConvs():this._map.get(11).getLocalConvList():e===T.FRIEND_LIST_UPDATED?this._map.get(8).getLocalFriendList(!1):e===T.GROUP_LIST_UPDATED?this._map.get(7).getLocalGroupList():e===T.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED?this._map.get(11).getTotalUnreadCount():e===T.CONVERSATION_ID_LIST_UPDATED?this._map.get(11).getUpdatedConvIDList():void 0}},{key:"getIEmitInst",value:function(){return null===this._iEmitter&&(this._iEmitter=new Ei,this._iEmitter._emit=this._iEmitter.emit,this._iEmitter.emit=function(e,t){e=Ke(t)&&t.data?[e,{name:e,data:t.data}]:[e,{name:e,data:t}],this._iEmitter._emit.apply(this._iEmitter,e)}.bind(this)),this._iEmitter}},{key:"hasModule",value:function(e){return this._map.has(e)}},{key:"get",value:function(e){return this._map.get(e)}},{key:"canIUseModule",value:function(e){return!this._map.get(12).isUsingChatCore()||this._optionalModuleMap.has(e)}},{key:"canIUseInflate",value:function(){return!!this._map.get(37)}},{key:"isReady",value:function(){return this._isReady}},{key:"isIntl",value:function(){return this.get(12).isIntl()}},{key:"getNotReadyReason",value:function(){return this._reason}},{key:"setNotReadyReason",value:function(e){this._reason=e}},{key:"getErrMsg",value:function(e,t,n){return this._map.get(32).get({key:e,replacement1:t,replacement2:n,isIntl:this.isIntl()})}},{key:"warn",value:function(e,t,n){(e=this.getErrMsg(e,t,n))&&Pe.w(e)}},{key:"onError",value:function(e){var t="code:".concat(e.code," message:").concat(e.message);Pe.w("Oops! ".concat(t)),new $n("error").setMessage(t).setLevel("error").end(),this.getOEmitInst().emit(T.ERROR,e)}},{key:"restartTimer",value:function(){Pe.l("".concat(this._n,".restartTimer")),this.stopTimer(),this._startTimer();var e=this.get(7);e&&e.restartPolling()}},{key:"getTimerID",value:function(){var e=this._map.get(24);return e.isWorkerEnabled()?e.getTimerID():this._checkTimer}},{key:"getPollingTimerID",value:function(e){return this._map.get(7).getPollingTimerID(e)}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),Ie();var e,t=S(this._map);try{for(t.s();!(e=t.n()).done;){var n=v(e.value,2)[1];n.reset&&n.reset()}}catch(s){t.e(s)}finally{t.f()}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._oEmitter.emit(T.SDK_NOT_READY);var a,o=S(this._eventThrottleMap);try{for(o.s();!(a=o.n()).done;){var i=v(a.value,2)[1];i.timeoutID&&clearTimeout(i.timeoutID)}}catch(s){o.e(s)}finally{o.f()}this._eventThrottleMap.clear()}}]),Rc),Dc=(i(Ac,[{key:"defense",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0;if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);var a=null;return this._funcMap.get(e).has(t)?a=this._funcMap.get(e).get(t):(a=this._pack(e,t,n),this._funcMap.get(e).set(t,a)),a}},{key:"defenseOnce",value:function(e,t){return"function"!=typeof t?null:this._pack(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0)}},{key:"find",value:function(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)&&this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(this._m.warn("ListenerFnNotFound",e),null)}},{key:"delete",value:function(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)}},{key:"_pack",value:function(e,t,n){var a=this;return function(){try{t.apply(n,Array.from(arguments))}catch(s){var o=Object.values(T).indexOf(e),i="CallbackError";-1!==o&&(o=Object.keys(T)[o],a._m.warn(i,o,s)),a._reportCount<5&&(new $n(i).setMessage("eventName:".concat(e)).setMoreMessage(s.message).end(),a._reportCount+=1)}}}},{key:"destroy",value:function(){this._funcMap.clear()}},{key:"reset",value:function(){Pe.l("".concat(this._n,".reset")),this._reportCount=0}}]),Ac),bc=(i(Pc,[{key:"onError",value:function(e){this._m.onError(e)}},{key:"login",value:function(e){return this._m.login(),this._get(1).login(e)}},{key:"logout",value:function(){var e=this;return this._get(1).logout().then((function(t){return e._safetyCallbackFactory.reset(),e._m.reset(),t}))}},{key:"getLoginUser",value:function(){return this._get(1).getLoginUser()}},{key:"getServerTime",value:function(){return Ne()}},{key:"isReady",value:function(){return this._m.isReady()}},{key:"isIntl",value:function(){return this._m.isIntl()}},{key:"getNotReadyReason",value:function(){return this._m.getNotReadyReason()}},{key:"getErrMsg",value:function(e,t,n){return this._m.getErrMsg(e,t,n)}},{key:"_get",value:function(e){return this._m.get(e)}},{key:"destroy",value:function(){var e=this,t=this._get(12),n=t.getSDKAppID();return Pe.w("destroy ".concat(n," ").concat(t.getInstanceID())),this.logout().finally((function(){e._safetyCallbackFactory.destroy(),e._m.stopTimer(),e._get(24).terminate(),e._get(21).dealloc(),e._m.getOEmitInst().emit(T.SDK_DESTROY,{SDKAppID:n})}))}},{key:"on",value:function(e,t,n){Pe.d("on","eventName:".concat(e)),this._m.getOEmitInst().on(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:"once",value:function(e,t,n){Pe.d("once","eventName:".concat(e)),this._m.getOEmitInst().once(e,this._safetyCallbackFactory.defenseOnce(e,t,n),n||this)}},{key:"off",value:function(e,t,n,a){Pe.d("off","eventName:".concat(e));var o=this._safetyCallbackFactory.find(e,t);null!==o&&(this._m.getOEmitInst().off(e,o,n,a),this._safetyCallbackFactory.delete(e,t))}},{key:"registerPlugin",value:function(e){(dt(e["tim-push"])?dt(e["tim-offline-push-plugin"])?this._get(18):this._get(28):this._get(36)).registerPlugin(e)}},{key:"setLogLevel",value:function(e){var t;e<=0&&((t=this.getErrMsg("TIM_ASCII_ART"))&&g("log","at node_modules/@tencentcloud/chat/index.js:1",t),(t=this.getErrMsg("API_REFER"))&&(Yt()?g("log","at node_modules/@tencentcloud/chat/index.js:1","%c ".concat("IM SDK API ->"," %c"),"background:#ff9d00; padding:1px; border-radius:3px; color: #fff","background:transparent",t):g("log","at node_modules/@tencentcloud/chat/index.js:1","IM SDK API ->",t)),(t=this.getErrMsg("DOCS_GUIDE"))&&g("log","at node_modules/@tencentcloud/chat/index.js:1",t),t=this.getErrMsg("IOS_WEBVIEW_WARNING"),ve)&&t&&g("warn","at node_modules/@tencentcloud/chat/index.js:1",t),Pe.setLevel(e)}},{key:"createTextMessage",value:function(e){return this._get(2).createTextMessage(e)}},{key:"createTextAtMessage",value:function(e){return this._get(2).createTextMessage(e)}},{key:"createImageMessage",value:function(e){return this._get(2).createImageMessage(e)}},{key:"createAudioMessage",value:function(e){return this._get(2).createAudioMessage(e)}},{key:"createVideoMessage",value:function(e){return this._get(2).createVideoMessage(e)}},{key:"createCustomMessage",value:function(e){return this._get(2).createCustomMessage(e)}},{key:"createFaceMessage",value:function(e){return this._get(2).createFaceMessage(e)}},{key:"createFileMessage",value:function(e){return this._get(2).createFileMessage(e)}},{key:"createLocationMessage",value:function(e){return this._get(2).createLocationMessage(e)}},{key:"createMergerMessage",value:function(e){return this._get(2).createMergerMessage(e)}},{key:"downloadMergerMessage",value:function(e){return e.type!==M.MSG_MERGER?Cn({code:Vn.MSG_MERGER_TYPE_INVALID}):He(e.payload.downloadKey)?Cn({code:Vn.MSG_MERGER_KEY_INVALID}):this._get(2).downloadMergerMessage(e).catch((function(e){return Cn({code:Vn.MSG_MERGER_DOWNLOAD_FAIL})}))}},{key:"createForwardMessage",value:function(e){return this._get(2).createForwardMessage(e)}},{key:"sendMessage",value:function(e,t){return e instanceof Ia?this._get(2).sendMessageInstance(e,t):Cn({code:Vn.MSG_INSTANCE_REQUIRED})}},{key:"searchCloudMessages",value:function(e){return this._get(2).searchCloudMessages(e)}},{key:"callExperimentalAPI",value:function(e,t){return"sendComboMessage"===e?this._get(31).sendMessage(t):"handleGroupInvitation"===e?this._get(7).handleGroupInvitation(t):"isCommercialAbilityEnabled"===e?this._get(27).isFeatureEnabled(t):"isFeatureEnabledForStat"===e?this._get(27).isFeatureEnabledForStat(t):"isIntl"===e?this.isIntl():"sendTRTCCustomData"===e||"sendRoomCustomData"===e?this._get(30).sendTRTCCustomData(t):"getTimerID"===e?this._m.getTimerID():"getPollingTimerID"===e?this._m.getPollingTimerID(t):"setApplicationID"===e?(this._get(12).setApplicationID(t),void this._get(20).updateProtocolConfig()):"getServerConfig"===e?this._get(23).getServerConfig(t):"canIUseModule"===e?this._m.canIUseModule(t):"startMessageLongPolling"===e?this._get(7).startMessageLongPolling(t):"stopMessageLongPolling"===e?this._get(7).stopMessageLongPolling(t):"disableMessagePullOnInvite"===e?this._get(11).disableMsgPullOnInvite(t):"clearLocalMessage"===e?this._get(11).clearMemMsg(t,!1):"setCustomLoginInfo"===e?this._get(12).setCustomLoginInfo(t):Cn({code:Vn.INVALID_OPERATION})}},{key:"revokeMessage",value:function(e){return this._get(2).revokeMessage(e)}},{key:"resendMessage",value:function(e,t){return e instanceof Ia?this._get(2).resendMessage(e,t):Cn({code:Vn.MSG_INSTANCE_REQUIRED})}},{key:"deleteMessage",value:function(e){return this._get(2).deleteMessage(e)}},{key:"translateText",value:function(e){return this._get(2).translateText(e)}},{key:"convertVoiceToText",value:function(e){return this._get(2).convertVoiceToText(e)}},{key:"setMessageExtensions",value:function(e,t){return this._get(3).setMessageExtensions(e,t)}},{key:"getMessageExtensions",value:function(e){return this._get(3).getMessageExtensions(e)}},{key:"deleteMessageExtensions",value:function(e,t){return this._get(3).deleteMessageExtensions(e,t)}},{key:"addMessageReaction",value:function(e,t){return this._get(34).addMessageReaction(e,t)}},{key:"removeMessageReaction",value:function(e,t){return this._get(34).removeMessageReaction(e,t)}},{key:"getMessageReactions",value:function(e){return this._get(34).getMessageReactions(e)}},{key:"getAllUserListOfMessageReaction",value:function(e){return this._get(34).getAllUserListOfMessageReaction(e)}},{key:"modifyMessage",value:function(e){return this._get(2).modifyRemoteMessage(e)}},{key:"getMessageList",value:function(e){return this._get(11).getMessageList(e)}},{key:"getMessageListHopping",value:function(e){return this._get(11).getMessageListHopping(e)}},{key:"sendMessageReadReceipt",value:function(e){return this._get(11).sendReadReceipt(e)}},{key:"getMessageReadReceiptList",value:function(e){return this._get(11).getReadReceiptList(e)}},{key:"getGroupMessageReadMemberList",value:function(e){var t=this._get(7);return t?t.getReadReceiptDetail(e):Cn({code:Vn.NO_MODULE})}},{key:"findMessage",value:function(e){return this._get(11).findMessage(e)}},{key:"setMessageRead",value:function(e){return this._get(11).setMessageRead(e)}},{key:"getConversationList",value:function(e){return this._get(11).getConvList(e)}},{key:"getConversationProfile",value:function(e){return this._get(11).getConversationProfile(e)}},{key:"deleteConversation",value:function(e){return this._get(11).deleteConversation(e)}},{key:"setConversationDraft",value:function(e){return this._get(11).setConvDraft(e)}},{key:"clearHistoryMessage",value:function(e){return this._get(11).clearHistoryMessage(e)}},{key:"pinConversation",value:function(e){return this._get(11).pinConversation(e)}},{key:"setAllMessageRead",value:function(e){return this._get(11).setAllMessageRead(e)}},{key:"setMessageRemindType",value:function(e){return this._get(11).setMessageRemindType(e)}},{key:"setAllReceiveMessageOpt",value:function(e){return this._get(11).setAllRcvMsgOpt(e)}},{key:"getAllReceiveMessageOpt",value:function(){return this._get(11).getAllRcvMsgOpt()}},{key:"getTotalUnreadMessageCount",value:function(){return this._get(11).getTotalUnreadCount()}},{key:"setConversationCustomData",value:function(e){return this._get(11).setConvCustomData(e)}},{key:"markConversation",value:function(e){return this._get(11).markConv(e)}},{key:"getConversationGroupList",value:function(){return this._get(11).getConvGroupList()}},{key:"createConversationGroup",value:function(e){return this._get(11).createConvGroup(e)}},{key:"deleteConversationGroup",value:function(e){return this._get(11).deleteConvGroup(e)}},{key:"renameConversationGroup",value:function(e){return this._get(11).renameConvGroup(e)}},{key:"addConversationsToGroup",value:function(e){return this._get(11).addConvsToGroup(e)}},{key:"deleteConversationsFromGroup",value:function(e){return this._get(11).deleteConvsFromGroup(e)}},{key:"getMyProfile",value:function(){return this._get(4).getMyProfile()}},{key:"getUserProfile",value:function(e){return this._get(4).getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._get(4).updateMyProfile(e)}},{key:"getBlacklist",value:function(){return this._get(4).getLocalBlacklist()}},{key:"addToBlacklist",value:function(e){return this._get(4).addBlacklist(e)}},{key:"removeFromBlacklist",value:function(e){return this._get(4).deleteBlacklist(e)}},{key:"setSelfStatus",value:function(e){return this._get(4).setSelfStatus(e)}},{key:"getUserStatus",value:function(e){return this._get(4).getUserStatus(e)}},{key:"subscribeUserStatus",value:function(e){return this._get(4).subscribeUserStatus(e)}},{key:"unsubscribeUserStatus",value:function(e){return this._get(4).unsubscribeUserStatus(e)}},{key:"getFriendList",value:function(){var e=this._get(8);return e?e.getLocalFriendList():Cn({code:Vn.NO_MODULE})}},{key:"addFriend",value:function(e){var t=this._get(8);return t?t.addFriend(e):Cn({code:Vn.NO_MODULE})}},{key:"deleteFriend",value:function(e){var t=this._get(8);return t?t.deleteFriend(e):Cn({code:Vn.NO_MODULE})}},{key:"checkFriend",value:function(e){var t=this._get(8);return t?t.checkFriend(e):Cn({code:Vn.NO_MODULE})}},{key:"getFriendProfile",value:function(e){var t=this._get(8);return t?t.getFriendProfile(e):Cn({code:Vn.NO_MODULE})}},{key:"updateFriend",value:function(e){var t=this._get(8);return t?t.updateFriend(e):Cn({code:Vn.NO_MODULE})}},{key:"getFriendApplicationList",value:function(){var e=this._get(8);return e?e.getLocalFriendApplicationList():Cn({code:Vn.NO_MODULE})}},{key:"acceptFriendApplication",value:function(e){var t=this._get(8);return t?t.acceptFriendApplication(e):Cn({code:Vn.NO_MODULE})}},{key:"refuseFriendApplication",value:function(e){var t=this._get(8);return t?t.refuseFriendApplication(e):Cn({code:Vn.NO_MODULE})}},{key:"deleteFriendApplication",value:function(e){var t=this._get(8);return t?t.deleteFriendApplication(e):Cn({code:Vn.NO_MODULE})}},{key:"setFriendApplicationRead",value:function(){var e=this._get(8);return e?e.setFriendApplicationRead():Cn({code:Vn.NO_MODULE})}},{key:"getFriendGroupList",value:function(){var e=this._get(8);return e?e.getLocalFriendGroupList():Cn({code:Vn.NO_MODULE})}},{key:"createFriendGroup",value:function(e){var t=this._get(8);return t?t.createFriendGroup(e):Cn({code:Vn.NO_MODULE})}},{key:"deleteFriendGroup",value:function(e){var t=this._get(8);return t?t.deleteFriendGroup(e):Cn({code:Vn.NO_MODULE})}},{key:"addToFriendGroup",value:function(e){var t=this._get(8);return t?t.addToFriendGroup(e):Cn({code:Vn.NO_MODULE})}},{key:"removeFromFriendGroup",value:function(e){var t=this._get(8);return t?t.removeFromFriendGroup(e):Cn({code:Vn.NO_MODULE})}},{key:"renameFriendGroup",value:function(e){var t=this._get(8);return t?t.renameFriendGroup(e):Cn({code:Vn.NO_MODULE})}},{key:"followUser",value:function(e){var t=this._get(35);return t?t.followUser(e):Cn({code:Vn.NO_MODULE})}},{key:"unfollowUser",value:function(e){var t=this._get(35);return t?t.unfollowUser(e):Cn({code:Vn.NO_MODULE})}},{key:"getMyFollowersList",value:function(e){var t=this._get(35);return t?t.getMyFollowersList(e):Cn({code:Vn.NO_MODULE})}},{key:"getMyFollowingList",value:function(e){var t=this._get(35);return t?t.getMyFollowingList(e):Cn({code:Vn.NO_MODULE})}},{key:"getMutualFollowersList",value:function(e){var t=this._get(35);return t?t.getMutualFollowersList(e):Cn({code:Vn.NO_MODULE})}},{key:"getUserFollowInfo",value:function(e){var t=this._get(35);return t?t.getUserFollowInfo(e):Cn({code:Vn.NO_MODULE})}},{key:"checkFollowType",value:function(e){var t=this._get(35);return t?t.checkFollowType(e):Cn({code:Vn.NO_MODULE})}},{key:"getGroupList",value:function(){var e=this._get(7);return e?e.getGroupList():Cn({code:Vn.NO_MODULE})}},{key:"getGroupProfile",value:function(e){var t=this._get(7);return t?t.getGroupProfile(e):Cn({code:Vn.NO_MODULE})}},{key:"createGroup",value:function(e){var t=this._get(7);return t?t.createGroup(e):Cn({code:Vn.NO_MODULE})}},{key:"dismissGroup",value:function(e){var t=this._get(7);return t?t.dismissGroup(e):Cn({code:Vn.NO_MODULE})}},{key:"updateGroupProfile",value:function(e){var t=this._get(7);return t?t.updateGroupProfile(e):Cn({code:Vn.NO_MODULE})}},{key:"joinGroup",value:function(e){var t=this._get(7);return t?t.joinGroup(e):Cn({code:Vn.NO_MODULE})}},{key:"quitGroup",value:function(e){var t=this._get(7);return t?t.quitGroup(e):Cn({code:Vn.NO_MODULE})}},{key:"searchGroupByID",value:function(e){var t=this._get(7);return t?t.searchGroupByID(e):Cn({code:Vn.NO_MODULE})}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._get(7);return t?t.getGroupOnlineMemberCount(e):Cn({code:Vn.NO_MODULE})}},{key:"changeGroupOwner",value:function(e){var t=this._get(7);return t?t.changeGroupOwner(e):Cn({code:Vn.NO_MODULE})}},{key:"getGroupApplicationList",value:function(){var e=this._get(7);return e?e.getGroupApplicationList():Cn({code:Vn.NO_MODULE})}},{key:"handleGroupApplication",value:function(e){var t=this._get(7);return t?t.handleGroupApplication(e):Cn({code:Vn.NO_MODULE})}},{key:"initGroupAttributes",value:function(e){var t=this._get(7);return t?t.initGroupAttributes(e):Cn({code:Vn.NO_MODULE})}},{key:"setGroupAttributes",value:function(e){var t=this._get(7);return t?t.setGroupAttributes(e):Cn({code:Vn.NO_MODULE})}},{key:"deleteGroupAttributes",value:function(e){var t=this._get(7);return t?t.deleteGroupAttributes(e):Cn({code:Vn.NO_MODULE})}},{key:"getGroupAttributes",value:function(e){var t=this._get(7);return t?t.getGroupAttributes(e):Cn({code:Vn.NO_MODULE})}},{key:"setGroupCounters",value:function(e){var t=this._get(7);return t?t.setGroupCounters(e):Cn({code:Vn.NO_MODULE})}},{key:"increaseGroupCounter",value:function(e){var t=this._get(7);return t?t.increaseGroupCounter(e):Cn({code:Vn.NO_MODULE})}},{key:"decreaseGroupCounter",value:function(e){var t=this._get(7);return t?t.decreaseGroupCounter(e):Cn({code:Vn.NO_MODULE})}},{key:"getGroupCounters",value:function(e){var t=this._get(7);return t?t.getGroupCounters(e):Cn({code:Vn.NO_MODULE})}},{key:"getGroupMemberList",value:function(e){var t=this._get(7);return t?t.getGroupMemberList(e):Cn({code:Vn.NO_MODULE})}},{key:"getGroupMemberProfile",value:function(e){var t=this._get(7);return t?t.getGroupMemberProfile(e):Cn({code:Vn.NO_MODULE})}},{key:"addGroupMember",value:function(e){var t=this._get(7);return t?t.addGroupMember(e):Cn({code:Vn.NO_MODULE})}},{key:"deleteGroupMember",value:function(e){var t=this._get(7);return t?t.deleteGroupMember(e):Cn({code:Vn.NO_MODULE})}},{key:"setGroupMemberMuteTime",value:function(e){var t=this._get(7);return t?t.setGroupMemberMuteTime(e):Cn({code:Vn.NO_MODULE})}},{key:"setGroupMemberRole",value:function(e){var t=this._get(7);return t?t.setGroupMemberRole(e):Cn({code:Vn.NO_MODULE})}},{key:"setGroupMemberNameCard",value:function(e){var t=this._get(7);return t?t.setGroupMemberNameCard(e):Cn({code:Vn.NO_MODULE})}},{key:"setGroupMemberCustomField",value:function(e){var t=this._get(7);return t?t.setGroupMemberCustomField(e):Cn({code:Vn.NO_MODULE})}},{key:"markGroupMemberList",value:function(e){var t=this._get(7);return t?t.markGroupMemberList(e):Cn({code:Vn.NO_MODULE})}},{key:"getJoinedCommunityList",value:function(){return this._get(10).getJoinedCommunityList()}},{key:"createTopicInCommunity",value:function(e){return this._get(10).createTopicInCommunity(e)}},{key:"deleteTopicFromCommunity",value:function(e){return this._get(10).deleteTopicFromCommunity(e)}},{key:"updateTopicProfile",value:function(e){return this._get(10).updateTopicProfile(e)}},{key:"getTopicList",value:function(e){return this._get(10).getTopicList(e)}},{key:"addSignalingListener",value:function(e,t,n){var a=this._get(33);a&&a.addSignalingListener(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:"removeSignalingListener",value:function(e,t,n){var a,o=this._safetyCallbackFactory.find(e,t);null!==o&&(a=this._get(33))&&(a.removeSignalingListener(e,o,n),this._safetyCallbackFactory.delete(e,t))}},{key:"invite",value:function(e){var t=this._get(33);return t?t.invite(e):Cn({code:Vn.NO_MODULE})}},{key:"inviteSync",value:function(e,t,n){var a=this._get(33);return a?a.inviteSync(e,t,n):""}},{key:"inviteInGroup",value:function(e){var t=this._get(33);return t?t.invite(e):Cn({code:Vn.NO_MODULE})}},{key:"inviteInGroupSync",value:function(e,t,n){var a=this._get(33);return a?a.inviteSync(e,t,n):""}},{key:"cancel",value:function(e){var t=this._get(33);return t?t.cancel(e):Cn({code:Vn.NO_MODULE})}},{key:"accept",value:function(e){var t=this._get(33);return t?t.accept(e):Cn({code:Vn.NO_MODULE})}},{key:"reject",value:function(e){var t=this._get(33);return t?t.reject(e):Cn({code:Vn.NO_MODULE})}},{key:"getSignalingInfo",value:function(e){var t=this._get(33);return t?t.getSignalingInfo(e):null}},{key:"modifyInvitation",value:function(e){var t=this._get(33);return t?t.modifyInvitation(e):Cn({code:Vn.NO_MODULE})}}]),Pc),Lc={login:1,logout:1,getLoginUser:1,destroy:1,on:1,off:1,ready:1,setLogLevel:1,joinGroup:1,quitGroup:1,registerPlugin:1,getGroupOnlineMemberCount:1,isReady:1,addSignalingListener:1,removeSignalingListener:1,callExperimentalAPI:1};function Pc(e){a(this,Pc),e={SDKAppID:e.SDKAppID,unlimitedAVChatRoom:e.unlimitedAVChatRoom||!1,scene:e.scene||"",oversea:e.oversea||!1,instanceID:Dt(),devMode:e.devMode||!1,testEnv:e.testEnv||!1,proxyServer:e.proxyServer||void 0,fileUploadProxy:e.fileUploadProxy||void 0,fileDownloadProxy:e.fileDownloadProxy||e.fileUploadProxy||void 0,eventThrottling:!1!==e.eventThrottling,partialUpdatedConversations:!0===e.partialUpdatedConversations,modules:e.modules||void 0},this._m=new wc(e),this._safetyCallbackFactory=new Dc(this._m)}function Ac(e){a(this,Ac),this._funcMap=new Map,this._m=e,this._n="SafetyCallback",this._reportCount=0}function Rc(e){var t=this;a(this,Rc);var n,o=new $n("sdkConstruct"),i=(this._n="ModuleManager",this._isReady=!1,this._reason=Vn.USER_NOT_LOGGED_IN,this._startLoginTs=0,this._map=new Map,this._optionalModuleMap=new Map,this._iEmitter=null,this._oEmitter=null,this._checkCount=0,this._checkTimer=-1,this._map.set(12,new Lo(this,e)),this._map.set(37,new Nc(this)),this._map.set(15,new pi(this)),this._map.set(27,new ir(this)),this._map.set(23,new Hs(this)),this._map.set(24,new ar(this)),this._map.set(26,new Ks(this)),this._map.set(21,new ms(this)),this._map.set(20,new Ys(this)),this._map.set(1,new Ao(this)),this._map.set(2,new xi(this)),this._map.set(3,new Ui(this)),this._map.set(34,new Gi(this)),this._map.set(31,new Fi(this)),this._map.set(4,new bo(this)),this._map.set(6,new xa(this)),this._map.set(11,new co(this)),this._map.set(7,new ko(this)),this._map.set(10,new To(this)),this._map.set(13,new ci(this)),this._map.set(32,new ur(this)),this._map.set(14,new ui(this)),this._map.set(17,new Ii(this)),this._map.set(18,new Yi(this)),this._map.set(19,new Hi(this)),this._map.set(25,new Zs(this)),this._map.set(8,new nr(this)),this._map.set(28,new sr(this)),this._map.set(36,new rr(this)),this._map.set(29,new cr(this)),this._map.set(30,new lr(this)),this._map.set(33,new vr(this)),this._map.set(35,new Er(this)),this._eventThrottleMap=new Map,this._eventThrottling=e.eventThrottling,this._map.get(12).isPartialUpdatedConvs()&&(this._eventThrottling=!1),Ke(e.modules)?(Object.keys(e.modules).forEach((function(a){n=e.modules[a],"group-module"===a?t._map.set(7,new n(t)):"relationship-module"===a?t._map.set(8,new n(t)):"signaling-module"===a?t._map.set(33,new n(t)):"follow-module"===a&&t._map.set(35,new n(t)),t._optionalModuleMap.set(a,1)})),this._map.get(12).setUsingChatCore(!0)):this._map.has(7)||this._map.get(12).setUsingChatCore(!0),e.instanceID),s=e.SDKAppID,r=this._map.get(12).isIntl(),c=this._map.get(12).isUsingChatCore();i="instanceID:".concat(i," SDKAppID:").concat(s," isIntl:").concat(r," isUsingChatCore:").concat(c," host:").concat(bt())+" isIOSWebView:".concat(ve," platform:").concat(ie," canIUseInflate:").concat(this.canIUseInflate())+" workerAvailable:".concat(he," eventThrottling:").concat(this._eventThrottling," UserAgent:").concat(oe),$n.bindEventStatModule(this._map.get(14)),$n.bindNetMonitorModule(this._map.get(15)),o.setMessage("".concat(i," ").concat(function(){var e="";if($)try{var t=ae.getSystemInfoSync(),n=t.model,a=t.version,o=t.system,i=t.platform,s=t.SDKVersion;e="model:".concat(n," version:").concat(a," system:").concat(o," platform:").concat(i," SDKVersion:").concat(s)}catch(r){e=""}return e}())).end(),Pe.i("SDK ".concat(i)),On.prototype._getErrMsg=this.getErrMsg.bind(this),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}function Oc(e){a(this,Oc),this._m=e,this._n="InflateModule",this._bLogForInflateOK=!1,this._bLogForInflateError=!1}var Vc={};return(K={}).create=function(e){var n,a,o,i="TencentCloudChat.create",s=0;if(Je(o=e.SDKAppID))s=o;else if(s=parseInt(o),isNaN(o))return Pe.e("".concat(i," failed. Failed to parse the SDKAppID, please check the arguments")),null;return s&&Vc[s]?Vc[s]:(Pe.l("".concat(i)),(o=new bc(t(t({},e),{},{SDKAppID:s}))).on(T.SDK_DESTROY,(function(e){Vc[e.data.SDKAppID]=null,delete Vc[e.data.SDKAppID]})),n=o,a=Object.create(null),Object.keys(Rn).forEach((function(e){var t;n[e]&&(t=new w,a[e]=function(){var a=Array.from(arguments);return t.use((function(t,a){s=e;var o,i,s=!(!(o=n).isReady()&&1!==Lc[s])||(i={code:i=o.getNotReadyReason(),message:"".concat(o.getErrMsg(i)," | ").concat(s," | ").concat(o.getErrMsg(Vn.SDK_IS_NOT_READY))},o.onError(i),i);return!0===s?a():Cn(s)})).use((function(t,n){if(!0===function(e,t,n){if(void 0===t)return!0;var a=!0;if(Ke(t))Object.keys(t).forEach((function(o){var i=1===e.length?e[0][o]:void 0;a=!!Xt(i,t[o],n,o)&&a}));else if(ze(t))for(var o=0;o<t.length;o++)a=!!Xt(e[o],t[o],n,t[o].name)&&a;if(a)return a;throw new Error("Params validate failed.")}(t,An[e],e))return n()})).use((function(t,a){return n[e].apply(n,t)})),t.run(a)})})),e=a,Vc[s]=e,An.hookGetAPITips(o.getErrMsg.bind(o)),Pe.l("".concat(i," ok")),e)},K.TYPES=M,K.EVENT=T,K.TSignaling=N,K.VERSION="3.4.7",Pe.l("TencentCloudChat.VERSION:".concat(K.VERSION)),K}()}(dc);const mc=Pe(dc.exports);var pc=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();const hc=Pe(new(function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setOptions(t),this.initialize()}return pc(e,[{key:"setOptions",value:function(e){e=e||{},this.options=Object.assign({checkPolyphone:!1,charCase:0},e)}},{key:"initialize",value:function(){this.char_dict="YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYFZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJCZFMZFFPFKHKGDPSXKTACJDHHZDDCRRCFQYJKQCCWJDXHWJLYLLZGCFCQDSMLZPBJJPLSBCJGGDCKKDEZSQCCKJGCGKDJTJDLZYCXKLQSCGJCLTFPCQCZGWPJDQYZJJBYJHSJDZWGFSJGZKQCCZLLPSPKJGQJHZZLJPLGJGJJTHJJYJZCZMLZLYQBGJWMLJKXZDZNJQSYZMLJLLJKYWXMKJLHSKJGBMCLYYMKXJQLBMLLKMDXXKWYXYSLMLPSJQQJQXYXFJTJDXMXXLLCXQBSYJBGWYMBGGBCYXPJYGPEPFGDJGBHBNSQJYZJKJKHXQFGQZKFHYGKHDKLLSDJQXPQYKYBNQSXQNSZSWHBSXWHXWBZZXDMNSJBSBKBBZKLYLXGWXDRWYQZMYWSJQLCJXXJXKJEQXSCYETLZHLYYYSDZPAQYZCMTLSHTZCFYZYXYLJSDCJQAGYSLCQLYYYSHMRQQKLDXZSCSSSYDYCJYSFSJBFRSSZQSBXXPXJYSDRCKGJLGDKZJZBDKTCSYQPYHSTCLDJDHMXMCGXYZHJDDTMHLTXZXYLYMOHYJCLTYFBQQXPFBDFHHTKSQHZYYWCNXXCRWHOWGYJLEGWDQCWGFJYCSNTMYTOLBYGWQWESJPWNMLRYDZSZTXYQPZGCWXHNGPYXSHMYQJXZTDPPBFYHZHTJYFDZWKGKZBLDNTSXHQEEGZZYLZMMZYJZGXZXKHKSTXNXXWYLYAPSTHXDWHZYMPXAGKYDXBHNHXKDPJNMYHYLPMGOCSLNZHKXXLPZZLBMLSFBHHGYGYYGGBHSCYAQTYWLXTZQCEZYDQDQMMHTKLLSZHLSJZWFYHQSWSCWLQAZYNYTLSXTHAZNKZZSZZLAXXZWWCTGQQTDDYZTCCHYQZFLXPSLZYGPZSZNGLNDQTBDLXGTCTAJDKYWNSYZLJHHZZCWNYYZYWMHYCHHYXHJKZWSXHZYXLYSKQYSPSLYZWMYPPKBYGLKZHTYXAXQSYSHXASMCHKDSCRSWJPWXSGZJLWWSCHSJHSQNHCSEGNDAQTBAALZZMSSTDQJCJKTSCJAXPLGGXHHGXXZCXPDMMHLDGTYBYSJMXHMRCPXXJZCKZXSHMLQXXTTHXWZFKHCCZDYTCJYXQHLXDHYPJQXYLSYYDZOZJNYXQEZYSQYAYXWYPDGXDDXSPPYZNDLTWRHXYDXZZJHTCXMCZLHPYYYYMHZLLHNXMYLLLMDCPPXHMXDKYCYRDLTXJCHHZZXZLCCLYLNZSHZJZZLNNRLWHYQSNJHXYNTTTKYJPYCHHYEGKCTTWLGQRLGGTGTYGYHPYHYLQYQGCWYQKPYYYTTTTLHYHLLTYTTSPLKYZXGZWGPYDSSZZDQXSKCQNMJJZZBXYQMJRTFFBTKHZKBXLJJKDXJTLBWFZPPTKQTZTGPDGNTPJYFALQMKGXBDCLZFHZCLLLLADPMXDJHLCCLGYHDZFGYDDGCYYFGYDXKSSEBDHYKDKDKHNAXXYBPBYYHXZQGAFFQYJXDMLJCSQZLLPCHBSXGJYNDYBYQSPZWJLZKSDDTACTBXZDYZYPJZQSJNKKTKNJDJGYYPGTLFYQKASDNTCYHBLWDZHBBYDWJRYGKZYHEYYFJMSDTYFZJJHGCXPLXHLDWXXJKYTCYKSSSMTWCTTQZLPBSZDZWZXGZAGYKTYWXLHLSPBCLLOQMMZSSLCMBJCSZZKYDCZJGQQDSMCYTZQQLWZQZXSSFPTTFQMDDZDSHDTDWFHTDYZJYQJQKYPBDJYYXTLJHDRQXXXHAYDHRJLKLYTWHLLRLLRCXYLBWSRSZZSYMKZZHHKYHXKSMDSYDYCJPBZBSQLFCXXXNXKXWYWSDZYQOGGQMMYHCDZTTFJYYBGSTTTYBYKJDHKYXBELHTYPJQNFXFDYKZHQKZBYJTZBXHFDXKDASWTAWAJLDYJSFHBLDNNTNQJTJNCHXFJSRFWHZFMDRYJYJWZPDJKZYJYMPCYZNYNXFBYTFYFWYGDBNZZZDNYTXZEMMQBSQEHXFZMBMFLZZSRXYMJGSXWZJSPRYDJSJGXHJJGLJJYNZZJXHGXKYMLPYYYCXYTWQZSWHWLYRJLPXSLSXMFSWWKLCTNXNYNPSJSZHDZEPTXMYYWXYYSYWLXJQZQXZDCLEEELMCPJPCLWBXSQHFWWTFFJTNQJHJQDXHWLBYZNFJLALKYYJLDXHHYCSTYYWNRJYXYWTRMDRQHWQCMFJDYZMHMYYXJWMYZQZXTLMRSPWWCHAQBXYGZYPXYYRRCLMPYMGKSJSZYSRMYJSNXTPLNBAPPYPYLXYYZKYNLDZYJZCZNNLMZHHARQMPGWQTZMXXMLLHGDZXYHXKYXYCJMFFYYHJFSBSSQLXXNDYCANNMTCJCYPRRNYTYQNYYMBMSXNDLYLYSLJRLXYSXQMLLYZLZJJJKYZZCSFBZXXMSTBJGNXYZHLXNMCWSCYZYFZLXBRNNNYLBNRTGZQYSATSWRYHYJZMZDHZGZDWYBSSCSKXSYHYTXXGCQGXZZSHYXJSCRHMKKBXCZJYJYMKQHZJFNBHMQHYSNJNZYBKNQMCLGQHWLZNZSWXKHLJHYYBQLBFCDSXDLDSPFZPSKJYZWZXZDDXJSMMEGJSCSSMGCLXXKYYYLNYPWWWGYDKZJGGGZGGSYCKNJWNJPCXBJJTQTJWDSSPJXZXNZXUMELPXFSXTLLXCLJXJJLJZXCTPSWXLYDHLYQRWHSYCSQYYBYAYWJJJQFWQCQQCJQGXALDBZZYJGKGXPLTZYFXJLTPADKYQHPMATLCPDCKBMTXYBHKLENXDLEEGQDYMSAWHZMLJTWYGXLYQZLJEEYYBQQFFNLYXRDSCTGJGXYYNKLLYQKCCTLHJLQMKKZGCYYGLLLJDZGYDHZWXPYSJBZKDZGYZZHYWYFQYTYZSZYEZZLYMHJJHTSMQWYZLKYYWZCSRKQYTLTDXWCTYJKLWSQZWBDCQYNCJSRSZJLKCDCDTLZZZACQQZZDDXYPLXZBQJYLZLLLQDDZQJYJYJZYXNYYYNYJXKXDAZWYRDLJYYYRJLXLLDYXJCYWYWNQCCLDDNYYYNYCKCZHXXCCLGZQJGKWPPCQQJYSBZZXYJSQPXJPZBSBDSFNSFPZXHDWZTDWPPTFLZZBZDMYYPQJRSDZSQZSQXBDGCPZSWDWCSQZGMDHZXMWWFYBPDGPHTMJTHZSMMBGZMBZJCFZWFZBBZMQCFMBDMCJXLGPNJBBXGYHYYJGPTZGZMQBQTCGYXJXLWZKYDPDYMGCFTPFXYZTZXDZXTGKMTYBBCLBJASKYTSSQYYMSZXFJEWLXLLSZBQJJJAKLYLXLYCCTSXMCWFKKKBSXLLLLJYXTYLTJYYTDPJHNHNNKBYQNFQYYZBYYESSESSGDYHFHWTCJBSDZZTFDMXHCNJZYMQWSRYJDZJQPDQBBSTJGGFBKJBXTGQHNGWJXJGDLLTHZHHYYYYYYSXWTYYYCCBDBPYPZYCCZYJPZYWCBDLFWZCWJDXXHYHLHWZZXJTCZLCDPXUJCZZZLYXJJTXPHFXWPYWXZPTDZZBDZCYHJHMLXBQXSBYLRDTGJRRCTTTHYTCZWMXFYTWWZCWJWXJYWCSKYBZSCCTZQNHXNWXXKHKFHTSWOCCJYBCMPZZYKBNNZPBZHHZDLSYDDYTYFJPXYNGFXBYQXCBHXCPSXTYZDMKYSNXSXLHKMZXLYHDHKWHXXSSKQYHHCJYXGLHZXCSNHEKDTGZXQYPKDHEXTYKCNYMYYYPKQYYYKXZLTHJQTBYQHXBMYHSQCKWWYLLHCYYLNNEQXQWMCFBDCCMLJGGXDQKTLXKGNQCDGZJWYJJLYHHQTTTNWCHMXCXWHWSZJYDJCCDBQCDGDNYXZTHCQRXCBHZTQCBXWGQWYYBXHMBYMYQTYEXMQKYAQYRGYZSLFYKKQHYSSQYSHJGJCNXKZYCXSBXYXHYYLSTYCXQTHYSMGSCPMMGCCCCCMTZTASMGQZJHKLOSQYLSWTMXSYQKDZLJQQYPLSYCZTCQQPBBQJZCLPKHQZYYXXDTDDTSJCXFFLLCHQXMJLWCJCXTSPYCXNDTJSHJWXDQQJSKXYAMYLSJHMLALYKXCYYDMNMDQMXMCZNNCYBZKKYFLMCHCMLHXRCJJHSYLNMTJZGZGYWJXSRXCWJGJQHQZDQJDCJJZKJKGDZQGJJYJYLXZXXCDQHHHEYTMHLFSBDJSYYSHFYSTCZQLPBDRFRZTZYKYWHSZYQKWDQZRKMSYNBCRXQBJYFAZPZZEDZCJYWBCJWHYJBQSZYWRYSZPTDKZPFPBNZTKLQYHBBZPNPPTYZZYBQNYDCPJMMCYCQMCYFZZDCMNLFPBPLNGQJTBTTNJZPZBBZNJKLJQYLNBZQHKSJZNGGQSZZKYXSHPZSNBCGZKDDZQANZHJKDRTLZLSWJLJZLYWTJNDJZJHXYAYNCBGTZCSSQMNJPJYTYSWXZFKWJQTKHTZPLBHSNJZSYZBWZZZZLSYLSBJHDWWQPSLMMFBJDWAQYZTCJTBNNWZXQXCDSLQGDSDPDZHJTQQPSWLYYJZLGYXYZLCTCBJTKTYCZJTQKBSJLGMGZDMCSGPYNJZYQYYKNXRPWSZXMTNCSZZYXYBYHYZAXYWQCJTLLCKJJTJHGDXDXYQYZZBYWDLWQCGLZGJGQRQZCZSSBCRPCSKYDZNXJSQGXSSJMYDNSTZTPBDLTKZWXQWQTZEXNQCZGWEZKSSBYBRTSSSLCCGBPSZQSZLCCGLLLZXHZQTHCZMQGYZQZNMCOCSZJMMZSQPJYGQLJYJPPLDXRGZYXCCSXHSHGTZNLZWZKJCXTCFCJXLBMQBCZZWPQDNHXLJCTHYZLGYLNLSZZPCXDSCQQHJQKSXZPBAJYEMSMJTZDXLCJYRYYNWJBNGZZTMJXLTBSLYRZPYLSSCNXPHLLHYLLQQZQLXYMRSYCXZLMMCZLTZSDWTJJLLNZGGQXPFSKYGYGHBFZPDKMWGHCXMSGDXJMCJZDYCABXJDLNBCDQYGSKYDQTXDJJYXMSZQAZDZFSLQXYJSJZYLBTXXWXQQZBJZUFBBLYLWDSLJHXJYZJWTDJCZFQZQZZDZSXZZQLZCDZFJHYSPYMPQZMLPPLFFXJJNZZYLSJEYQZFPFZKSYWJJJHRDJZZXTXXGLGHYDXCSKYSWMMZCWYBAZBJKSHFHJCXMHFQHYXXYZFTSJYZFXYXPZLCHMZMBXHZZSXYFYMNCWDABAZLXKTCSHHXKXJJZJSTHYGXSXYYHHHJWXKZXSSBZZWHHHCWTZZZPJXSNXQQJGZYZYWLLCWXZFXXYXYHXMKYYSWSQMNLNAYCYSPMJKHWCQHYLAJJMZXHMMCNZHBHXCLXTJPLTXYJHDYYLTTXFSZHYXXSJBJYAYRSMXYPLCKDUYHLXRLNLLSTYZYYQYGYHHSCCSMZCTZQXKYQFPYYRPFFLKQUNTSZLLZMWWTCQQYZWTLLMLMPWMBZSSTZRBPDDTLQJJBXZCSRZQQYGWCSXFWZLXCCRSZDZMCYGGDZQSGTJSWLJMYMMZYHFBJDGYXCCPSHXNZCSBSJYJGJMPPWAFFYFNXHYZXZYLREMZGZCYZSSZDLLJCSQFNXZKPTXZGXJJGFMYYYSNBTYLBNLHPFZDCYFBMGQRRSSSZXYSGTZRNYDZZCDGPJAFJFZKNZBLCZSZPSGCYCJSZLMLRSZBZZLDLSLLYSXSQZQLYXZLSKKBRXBRBZCYCXZZZEEYFGKLZLYYHGZSGZLFJHGTGWKRAAJYZKZQTSSHJJXDCYZUYJLZYRZDQQHGJZXSSZBYKJPBFRTJXLLFQWJHYLQTYMBLPZDXTZYGBDHZZRBGXHWNJTJXLKSCFSMWLSDQYSJTXKZSCFWJLBXFTZLLJZLLQBLSQMQQCGCZFPBPHZCZJLPYYGGDTGWDCFCZQYYYQYSSCLXZSKLZZZGFFCQNWGLHQYZJJCZLQZZYJPJZZBPDCCMHJGXDQDGDLZQMFGPSYTSDYFWWDJZJYSXYYCZCYHZWPBYKXRYLYBHKJKSFXTZJMMCKHLLTNYYMSYXYZPYJQYCSYCWMTJJKQYRHLLQXPSGTLYYCLJSCPXJYZFNMLRGJJTYZBXYZMSJYJHHFZQMSYXRSZCWTLRTQZSSTKXGQKGSPTGCZNJSJCQCXHMXGGZTQYDJKZDLBZSXJLHYQGGGTHQSZPYHJHHGYYGKGGCWJZZYLCZLXQSFTGZSLLLMLJSKCTBLLZZSZMMNYTPZSXQHJCJYQXYZXZQZCPSHKZZYSXCDFGMWQRLLQXRFZTLYSTCTMJCXJJXHJNXTNRZTZFQYHQGLLGCXSZSJDJLJCYDSJTLNYXHSZXCGJZYQPYLFHDJSBPCCZHJJJQZJQDYBSSLLCMYTTMQTBHJQNNYGKYRQYQMZGCJKPDCGMYZHQLLSLLCLMHOLZGDYYFZSLJCQZLYLZQJESHNYLLJXGJXLYSYYYXNBZLJSSZCQQCJYLLZLTJYLLZLLBNYLGQCHXYYXOXCXQKYJXXXYKLXSXXYQXCYKQXQCSGYXXYQXYGYTQOHXHXPYXXXULCYEYCHZZCBWQBBWJQZSCSZSSLZYLKDESJZWMYMCYTSDSXXSCJPQQSQYLYYZYCMDJDZYWCBTJSYDJKCYDDJLBDJJSODZYSYXQQYXDHHGQQYQHDYXWGMMMAJDYBBBPPBCMUUPLJZSMTXERXJMHQNUTPJDCBSSMSSSTKJTSSMMTRCPLZSZMLQDSDMJMQPNQDXCFYNBFSDQXYXHYAYKQYDDLQYYYSSZBYDSLNTFQTZQPZMCHDHCZCWFDXTMYQSPHQYYXSRGJCWTJTZZQMGWJJTJHTQJBBHWZPXXHYQFXXQYWYYHYSCDYDHHQMNMTMWCPBSZPPZZGLMZFOLLCFWHMMSJZTTDHZZYFFYTZZGZYSKYJXQYJZQBHMBZZLYGHGFMSHPZFZSNCLPBQSNJXZSLXXFPMTYJYGBXLLDLXPZJYZJYHHZCYWHJYLSJEXFSZZYWXKZJLUYDTMLYMQJPWXYHXSKTQJEZRPXXZHHMHWQPWQLYJJQJJZSZCPHJLCHHNXJLQWZJHBMZYXBDHHYPZLHLHLGFWLCHYYTLHJXCJMSCPXSTKPNHQXSRTYXXTESYJCTLSSLSTDLLLWWYHDHRJZSFGXTSYCZYNYHTDHWJSLHTZDQDJZXXQHGYLTZPHCSQFCLNJTCLZPFSTPDYNYLGMJLLYCQHYSSHCHYLHQYQTMZYPBYWRFQYKQSYSLZDQJMPXYYSSRHZJNYWTQDFZBWWTWWRXCWHGYHXMKMYYYQMSMZHNGCEPMLQQMTCWCTMMPXJPJJHFXYYZSXZHTYBMSTSYJTTQQQYYLHYNPYQZLCYZHZWSMYLKFJXLWGXYPJYTYSYXYMZCKTTWLKSMZSYLMPWLZWXWQZSSAQSYXYRHSSNTSRAPXCPWCMGDXHXZDZYFJHGZTTSBJHGYZSZYSMYCLLLXBTYXHBBZJKSSDMALXHYCFYGMQYPJYCQXJLLLJGSLZGQLYCJCCZOTYXMTMTTLLWTGPXYMZMKLPSZZZXHKQYSXCTYJZYHXSHYXZKXLZWPSQPYHJWPJPWXQQYLXSDHMRSLZZYZWTTCYXYSZZSHBSCCSTPLWSSCJCHNLCGCHSSPHYLHFHHXJSXYLLNYLSZDHZXYLSXLWZYKCLDYAXZCMDDYSPJTQJZLNWQPSSSWCTSTSZLBLNXSMNYYMJQBQHRZWTYYDCHQLXKPZWBGQYBKFCMZWPZLLYYLSZYDWHXPSBCMLJBSCGBHXLQHYRLJXYSWXWXZSLDFHLSLYNJLZYFLYJYCDRJLFSYZFSLLCQYQFGJYHYXZLYLMSTDJCYHBZLLNWLXXYGYYHSMGDHXXHHLZZJZXCZZZCYQZFNGWPYLCPKPYYPMCLQKDGXZGGWQBDXZZKZFBXXLZXJTPJPTTBYTSZZDWSLCHZHSLTYXHQLHYXXXYYZYSWTXZKHLXZXZPYHGCHKCFSYHUTJRLXFJXPTZTWHPLYXFCRHXSHXKYXXYHZQDXQWULHYHMJTBFLKHTXCWHJFWJCFPQRYQXCYYYQYGRPYWSGSUNGWCHKZDXYFLXXHJJBYZWTSXXNCYJJYMSWZJQRMHXZWFQSYLZJZGBHYNSLBGTTCSYBYXXWXYHXYYXNSQYXMQYWRGYQLXBBZLJSYLPSYTJZYHYZAWLRORJMKSCZJXXXYXCHDYXRYXXJDTSQFXLYLTSFFYXLMTYJMJUYYYXLTZCSXQZQHZXLYYXZHDNBRXXXJCTYHLBRLMBRLLAXKYLLLJLYXXLYCRYLCJTGJCMTLZLLCYZZPZPCYAWHJJFYBDYYZSMPCKZDQYQPBPCJPDCYZMDPBCYYDYCNNPLMTMLRMFMMGWYZBSJGYGSMZQQQZTXMKQWGXLLPJGZBQCDJJJFPKJKCXBLJMSWMDTQJXLDLPPBXCWRCQFBFQJCZAHZGMYKPHYYHZYKNDKZMBPJYXPXYHLFPNYYGXJDBKXNXHJMZJXSTRSTLDXSKZYSYBZXJLXYSLBZYSLHXJPFXPQNBYLLJQKYGZMCYZZYMCCSLCLHZFWFWYXZMWSXTYNXJHPYYMCYSPMHYSMYDYSHQYZCHMJJMZCAAGCFJBBHPLYZYLXXSDJGXDHKXXTXXNBHRMLYJSLTXMRHNLXQJXYZLLYSWQGDLBJHDCGJYQYCMHWFMJYBMBYJYJWYMDPWHXQLDYGPDFXXBCGJSPCKRSSYZJMSLBZZJFLJJJLGXZGYXYXLSZQYXBEXYXHGCXBPLDYHWETTWWCJMBTXCHXYQXLLXFLYXLLJLSSFWDPZSMYJCLMWYTCZPCHQEKCQBWLCQYDPLQPPQZQFJQDJHYMMCXTXDRMJWRHXCJZYLQXDYYNHYYHRSLSRSYWWZJYMTLTLLGTQCJZYABTCKZCJYCCQLJZQXALMZYHYWLWDXZXQDLLQSHGPJFJLJHJABCQZDJGTKHSSTCYJLPSWZLXZXRWGLDLZRLZXTGSLLLLZLYXXWGDZYGBDPHZPBRLWSXQBPFDWOFMWHLYPCBJCCLDMBZPBZZLCYQXLDOMZBLZWPDWYYGDSTTHCSQSCCRSSSYSLFYBFNTYJSZDFNDPDHDZZMBBLSLCMYFFGTJJQWFTMTPJWFNLBZCMMJTGBDZLQLPYFHYYMJYLSDCHDZJWJCCTLJCLDTLJJCPDDSQDSSZYBNDBJLGGJZXSXNLYCYBJXQYCBYLZCFZPPGKCXZDZFZTJJFJSJXZBNZYJQTTYJYHTYCZHYMDJXTTMPXSPLZCDWSLSHXYPZGTFMLCJTYCBPMGDKWYCYZCDSZZYHFLYCTYGWHKJYYLSJCXGYWJCBLLCSNDDBTZBSCLYZCZZSSQDLLMQYYHFSLQLLXFTYHABXGWNYWYYPLLSDLDLLBJCYXJZMLHLJDXYYQYTDLLLBUGBFDFBBQJZZMDPJHGCLGMJJPGAEHHBWCQXAXHHHZCHXYPHJAXHLPHJPGPZJQCQZGJJZZUZDMQYYBZZPHYHYBWHAZYJHYKFGDPFQSDLZMLJXKXGALXZDAGLMDGXMWZQYXXDXXPFDMMSSYMPFMDMMKXKSYZYSHDZKXSYSMMZZZMSYDNZZCZXFPLSTMZDNMXCKJMZTYYMZMZZMSXHHDCZJEMXXKLJSTLWLSQLYJZLLZJSSDPPMHNLZJCZYHMXXHGZCJMDHXTKGRMXFWMCGMWKDTKSXQMMMFZZYDKMSCLCMPCGMHSPXQPZDSSLCXKYXTWLWJYAHZJGZQMCSNXYYMMPMLKJXMHLMLQMXCTKZMJQYSZJSYSZHSYJZJCDAJZYBSDQJZGWZQQXFKDMSDJLFWEHKZQKJPEYPZYSZCDWYJFFMZZYLTTDZZEFMZLBNPPLPLPEPSZALLTYLKCKQZKGENQLWAGYXYDPXLHSXQQWQCQXQCLHYXXMLYCCWLYMQYSKGCHLCJNSZKPYZKCQZQLJPDMDZHLASXLBYDWQLWDNBQCRYDDZTJYBKBWSZDXDTNPJDTCTQDFXQQMGNXECLTTBKPWSLCTYQLPWYZZKLPYGZCQQPLLKCCYLPQMZCZQCLJSLQZDJXLDDHPZQDLJJXZQDXYZQKZLJCYQDYJPPYPQYKJYRMPCBYMCXKLLZLLFQPYLLLMBSGLCYSSLRSYSQTMXYXZQZFDZUYSYZTFFMZZSMZQHZSSCCMLYXWTPZGXZJGZGSJSGKDDHTQGGZLLBJDZLCBCHYXYZHZFYWXYZYMSDBZZYJGTSMTFXQYXQSTDGSLNXDLRYZZLRYYLXQHTXSRTZNGZXBNQQZFMYKMZJBZYMKBPNLYZPBLMCNQYZZZSJZHJCTZKHYZZJRDYZHNPXGLFZTLKGJTCTSSYLLGZRZBBQZZKLPKLCZYSSUYXBJFPNJZZXCDWXZYJXZZDJJKGGRSRJKMSMZJLSJYWQSKYHQJSXPJZZZLSNSHRNYPZTWCHKLPSRZLZXYJQXQKYSJYCZTLQZYBBYBWZPQDWWYZCYTJCJXCKCWDKKZXSGKDZXWWYYJQYYTCYTDLLXWKCZKKLCCLZCQQDZLQLCSFQCHQHSFSMQZZLNBJJZBSJHTSZDYSJQJPDLZCDCWJKJZZLPYCGMZWDJJBSJQZSYZYHHXJPBJYDSSXDZNCGLQMBTSFSBPDZDLZNFGFJGFSMPXJQLMBLGQCYYXBQKDJJQYRFKZTJDHCZKLBSDZCFJTPLLJGXHYXZCSSZZXSTJYGKGCKGYOQXJPLZPBPGTGYJZGHZQZZLBJLSQFZGKQQJZGYCZBZQTLDXRJXBSXXPZXHYZYCLWDXJJHXMFDZPFZHQHQMQGKSLYHTYCGFRZGNQXCLPDLBZCSCZQLLJBLHBZCYPZZPPDYMZZSGYHCKCPZJGSLJLNSCDSLDLXBMSTLDDFJMKDJDHZLZXLSZQPQPGJLLYBDSZGQLBZLSLKYYHZTTNTJYQTZZPSZQZTLLJTYYLLQLLQYZQLBDZLSLYYZYMDFSZSNHLXZNCZQZPBWSKRFBSYZMTHBLGJPMCZZLSTLXSHTCSYZLZBLFEQHLXFLCJLYLJQCBZLZJHHSSTBRMHXZHJZCLXFNBGXGTQJCZTMSFZKJMSSNXLJKBHSJXNTNLZDNTLMSJXGZJYJCZXYJYJWRWWQNZTNFJSZPZSHZJFYRDJSFSZJZBJFZQZZHZLXFYSBZQLZSGYFTZDCSZXZJBQMSZKJRHYJZCKMJKHCHGTXKXQGLXPXFXTRTYLXJXHDTSJXHJZJXZWZLCQSBTXWXGXTXXHXFTSDKFJHZYJFJXRZSDLLLTQSQQZQWZXSYQTWGWBZCGZLLYZBCLMQQTZHZXZXLJFRMYZFLXYSQXXJKXRMQDZDMMYYBSQBHGZMWFWXGMXLZPYYTGZYCCDXYZXYWGSYJYZNBHPZJSQSYXSXRTFYZGRHZTXSZZTHCBFCLSYXZLZQMZLMPLMXZJXSFLBYZMYQHXJSXRXSQZZZSSLYFRCZJRCRXHHZXQYDYHXSJJHZCXZBTYNSYSXJBQLPXZQPYMLXZKYXLXCJLCYSXXZZLXDLLLJJYHZXGYJWKJRWYHCPSGNRZLFZWFZZNSXGXFLZSXZZZBFCSYJDBRJKRDHHGXJLJJTGXJXXSTJTJXLYXQFCSGSWMSBCTLQZZWLZZKXJMLTMJYHSDDBXGZHDLBMYJFRZFSGCLYJBPMLYSMSXLSZJQQHJZFXGFQFQBPXZGYYQXGZTCQWYLTLGWSGWHRLFSFGZJMGMGBGTJFSYZZGZYZAFLSSPMLPFLCWBJZCLJJMZLPJJLYMQDMYYYFBGYGYZMLYZDXQYXRQQQHSYYYQXYLJTYXFSFSLLGNQCYHYCWFHCCCFXPYLYPLLZYXXXXXKQHHXSHJZCFZSCZJXCPZWHHHHHAPYLQALPQAFYHXDYLUKMZQGGGDDESRNNZLTZGCHYPPYSQJJHCLLJTOLNJPZLJLHYMHEYDYDSQYCDDHGZUNDZCLZYZLLZNTNYZGSLHSLPJJBDGWXPCDUTJCKLKCLWKLLCASSTKZZDNQNTTLYYZSSYSSZZRYLJQKCQDHHCRXRZYDGRGCWCGZQFFFPPJFZYNAKRGYWYQPQXXFKJTSZZXSWZDDFBBXTBGTZKZNPZZPZXZPJSZBMQHKCYXYLDKLJNYPKYGHGDZJXXEAHPNZKZTZCMXCXMMJXNKSZQNMNLWBWWXJKYHCPSTMCSQTZJYXTPCTPDTNNPGLLLZSJLSPBLPLQHDTNJNLYYRSZFFJFQWDPHZDWMRZCCLODAXNSSNYZRESTYJWJYJDBCFXNMWTTBYLWSTSZGYBLJPXGLBOCLHPCBJLTMXZLJYLZXCLTPNCLCKXTPZJSWCYXSFYSZDKNTLBYJCYJLLSTGQCBXRYZXBXKLYLHZLQZLNZCXWJZLJZJNCJHXMNZZGJZZXTZJXYCYYCXXJYYXJJXSSSJSTSSTTPPGQTCSXWZDCSYFPTFBFHFBBLZJCLZZDBXGCXLQPXKFZFLSYLTUWBMQJHSZBMDDBCYSCCLDXYCDDQLYJJWMQLLCSGLJJSYFPYYCCYLTJANTJJPWYCMMGQYYSXDXQMZHSZXPFTWWZQSWQRFKJLZJQQYFBRXJHHFWJJZYQAZMYFRHCYYBYQWLPEXCCZSTYRLTTDMQLYKMBBGMYYJPRKZNPBSXYXBHYZDJDNGHPMFSGMWFZMFQMMBCMZZCJJLCNUXYQLMLRYGQZCYXZLWJGCJCGGMCJNFYZZJHYCPRRCMTZQZXHFQGTJXCCJEAQCRJYHPLQLSZDJRBCQHQDYRHYLYXJSYMHZYDWLDFRYHBPYDTSSCNWBXGLPZMLZZTQSSCPJMXXYCSJYTYCGHYCJWYRXXLFEMWJNMKLLSWTXHYYYNCMMCWJDQDJZGLLJWJRKHPZGGFLCCSCZMCBLTBHBQJXQDSPDJZZGKGLFQYWBZYZJLTSTDHQHCTCBCHFLQMPWDSHYYTQWCNZZJTLBYMBPDYYYXSQKXWYYFLXXNCWCXYPMAELYKKJMZZZBRXYYQJFLJPFHHHYTZZXSGQQMHSPGDZQWBWPJHZJDYSCQWZKTXXSQLZYYMYSDZGRXCKKUJLWPYSYSCSYZLRMLQSYLJXBCXTLWDQZPCYCYKPPPNSXFYZJJRCEMHSZMSXLXGLRWGCSTLRSXBZGBZGZTCPLUJLSLYLYMTXMTZPALZXPXJTJWTCYYZLBLXBZLQMYLXPGHDSLSSDMXMBDZZSXWHAMLCZCPJMCNHJYSNSYGCHSKQMZZQDLLKABLWJXSFMOCDXJRRLYQZKJMYBYQLYHETFJZFRFKSRYXFJTWDSXXSYSQJYSLYXWJHSNLXYYXHBHAWHHJZXWMYLJCSSLKYDZTXBZSYFDXGXZJKHSXXYBSSXDPYNZWRPTQZCZENYGCXQFJYKJBZMLJCMQQXUOXSLYXXLYLLJDZBTYMHPFSTTQQWLHOKYBLZZALZXQLHZWRRQHLSTMYPYXJJXMQSJFNBXYXYJXXYQYLTHYLQYFMLKLJTMLLHSZWKZHLJMLHLJKLJSTLQXYLMBHHLNLZXQJHXCFXXLHYHJJGBYZZKBXSCQDJQDSUJZYYHZHHMGSXCSYMXFEBCQWWRBPYYJQTYZCYQYQQZYHMWFFHGZFRJFCDPXNTQYZPDYKHJLFRZXPPXZDBBGZQSTLGDGYLCQMLCHHMFYWLZYXKJLYPQHSYWMQQGQZMLZJNSQXJQSYJYCBEHSXFSZPXZWFLLBCYYJDYTDTHWZSFJMQQYJLMQXXLLDTTKHHYBFPWTYYSQQWNQWLGWDEBZWCMYGCULKJXTMXMYJSXHYBRWFYMWFRXYQMXYSZTZZTFYKMLDHQDXWYYNLCRYJBLPSXCXYWLSPRRJWXHQYPHTYDNXHHMMYWYTZCSQMTSSCCDALWZTCPQPYJLLQZYJSWXMZZMMYLMXCLMXCZMXMZSQTZPPQQBLPGXQZHFLJJHYTJSRXWZXSCCDLXTYJDCQJXSLQYCLZXLZZXMXQRJMHRHZJBHMFLJLMLCLQNLDXZLLLPYPSYJYSXCQQDCMQJZZXHNPNXZMEKMXHYKYQLXSXTXJYYHWDCWDZHQYYBGYBCYSCFGPSJNZDYZZJZXRZRQJJYMCANYRJTLDPPYZBSTJKXXZYPFDWFGZZRPYMTNGXZQBYXNBUFNQKRJQZMJEGRZGYCLKXZDSKKNSXKCLJSPJYYZLQQJYBZSSQLLLKJXTBKTYLCCDDBLSPPFYLGYDTZJYQGGKQTTFZXBDKTYYHYBBFYTYYBCLPDYTGDHRYRNJSPTCSNYJQHKLLLZSLYDXXWBCJQSPXBPJZJCJDZFFXXBRMLAZHCSNDLBJDSZBLPRZTSWSBXBCLLXXLZDJZSJPYLYXXYFTFFFBHJJXGBYXJPMMMPSSJZJMTLYZJXSWXTYLEDQPJMYGQZJGDJLQJWJQLLSJGJGYGMSCLJJXDTYGJQJQJCJZCJGDZZSXQGSJGGCXHQXSNQLZZBXHSGZXCXYLJXYXYYDFQQJHJFXDHCTXJYRXYSQTJXYEFYYSSYYJXNCYZXFXMSYSZXYYSCHSHXZZZGZZZGFJDLTYLNPZGYJYZYYQZPBXQBDZTZCZYXXYHHSQXSHDHGQHJHGYWSZTMZMLHYXGEBTYLZKQWYTJZRCLEKYSTDBCYKQQSAYXCJXWWGSBHJYZYDHCSJKQCXSWXFLTYNYZPZCCZJQTZWJQDZZZQZLJJXLSBHPYXXPSXSHHEZTXFPTLQYZZXHYTXNCFZYYHXGNXMYWXTZSJPTHHGYMXMXQZXTSBCZYJYXXTYYZYPCQLMMSZMJZZLLZXGXZAAJZYXJMZXWDXZSXZDZXLEYJJZQBHZWZZZQTZPSXZTDSXJJJZNYAZPHXYYSRNQDTHZHYYKYJHDZXZLSWCLYBZYECWCYCRYLCXNHZYDZYDYJDFRJJHTRSQTXYXJRJHOJYNXELXSFSFJZGHPZSXZSZDZCQZBYYKLSGSJHCZSHDGQGXYZGXCHXZJWYQWGYHKSSEQZZNDZFKWYSSTCLZSTSYMCDHJXXYWEYXCZAYDMPXMDSXYBSQMJMZJMTZQLPJYQZCGQHXJHHLXXHLHDLDJQCLDWBSXFZZYYSCHTYTYYBHECXHYKGJPXHHYZJFXHWHBDZFYZBCAPNPGNYDMSXHMMMMAMYNBYJTMPXYYMCTHJBZYFCGTYHWPHFTWZZEZSBZEGPFMTSKFTYCMHFLLHGPZJXZJGZJYXZSBBQSCZZLZCCSTPGXMJSFTCCZJZDJXCYBZLFCJSYZFGSZLYBCWZZBYZDZYPSWYJZXZBDSYUXLZZBZFYGCZXBZHZFTPBGZGEJBSTGKDMFHYZZJHZLLZZGJQZLSFDJSSCBZGPDLFZFZSZYZYZSYGCXSNXXCHCZXTZZLJFZGQSQYXZJQDCCZTQCDXZJYQJQCHXZTDLGSCXZSYQJQTZWLQDQZTQCHQQJZYEZZZPBWKDJFCJPZTYPQYQTTYNLMBDKTJZPQZQZZFPZSBNJLGYJDXJDZZKZGQKXDLPZJTCJDQBXDJQJSTCKNXBXZMSLYJCQMTJQWWCJQNJNLLLHJCWQTBZQYDZCZPZZDZYDDCYZZZCCJTTJFZDPRRTZTJDCQTQZDTJNPLZBCLLCTZSXKJZQZPZLBZRBTJDCXFCZDBCCJJLTQQPLDCGZDBBZJCQDCJWYNLLZYZCCDWLLXWZLXRXNTQQCZXKQLSGDFQTDDGLRLAJJTKUYMKQLLTZYTDYYCZGJWYXDXFRSKSTQTENQMRKQZHHQKDLDAZFKYPBGGPZREBZZYKZZSPEGJXGYKQZZZSLYSYYYZWFQZYLZZLZHWCHKYPQGNPGBLPLRRJYXCCSYYHSFZFYBZYYTGZXYLXCZWXXZJZBLFFLGSKHYJZEYJHLPLLLLCZGXDRZELRHGKLZZYHZLYQSZZJZQLJZFLNBHGWLCZCFJYSPYXZLZLXGCCPZBLLCYBBBBUBBCBPCRNNZCZYRBFSRLDCGQYYQXYGMQZWTZYTYJXYFWTEHZZJYWLCCNTZYJJZDEDPZDZTSYQJHDYMBJNYJZLXTSSTPHNDJXXBYXQTZQDDTJTDYYTGWSCSZQFLSHLGLBCZPHDLYZJYCKWTYTYLBNYTSDSYCCTYSZYYEBHEXHQDTWNYGYCLXTSZYSTQMYGZAZCCSZZDSLZCLZRQXYYELJSBYMXSXZTEMBBLLYYLLYTDQYSHYMRQWKFKBFXNXSBYCHXBWJYHTQBPBSBWDZYLKGZSKYHXQZJXHXJXGNLJKZLYYCDXLFYFGHLJGJYBXQLYBXQPQGZTZPLNCYPXDJYQYDYMRBESJYYHKXXSTMXRCZZYWXYQYBMCLLYZHQYZWQXDBXBZWZMSLPDMYSKFMZKLZCYQYCZLQXFZZYDQZPZYGYJYZMZXDZFYFYTTQTZHGSPCZMLCCYTZXJCYTJMKSLPZHYSNZLLYTPZCTZZCKTXDHXXTQCYFKSMQCCYYAZHTJPCYLZLYJBJXTPNYLJYYNRXSYLMMNXJSMYBCSYSYLZYLXJJQYLDZLPQBFZZBLFNDXQKCZFYWHGQMRDSXYCYTXNQQJZYYPFZXDYZFPRXEJDGYQBXRCNFYYQPGHYJDYZXGRHTKYLNWDZNTSMPKLBTHBPYSZBZTJZSZZJTYYXZPHSSZZBZCZPTQFZMYFLYPYBBJQXZMXXDJMTSYSKKBJZXHJCKLPSMKYJZCXTMLJYXRZZQSLXXQPYZXMKYXXXJCLJPRMYYGADYSKQLSNDHYZKQXZYZTCGHZTLMLWZYBWSYCTBHJHJFCWZTXWYTKZLXQSHLYJZJXTMPLPYCGLTBZZTLZJCYJGDTCLKLPLLQPJMZPAPXYZLKKTKDZCZZBNZDYDYQZJYJGMCTXLTGXSZLMLHBGLKFWNWZHDXUHLFMKYSLGXDTWWFRJEJZTZHYDXYKSHWFZCQSHKTMQQHTZHYMJDJSKHXZJZBZZXYMPAGQMSTPXLSKLZYNWRTSQLSZBPSPSGZWYHTLKSSSWHZZLYYTNXJGMJSZSUFWNLSOZTXGXLSAMMLBWLDSZYLAKQCQCTMYCFJBSLXCLZZCLXXKSBZQCLHJPSQPLSXXCKSLNHPSFQQYTXYJZLQLDXZQJZDYYDJNZPTUZDSKJFSLJHYLZSQZLBTXYDGTQFDBYAZXDZHZJNHHQBYKNXJJQCZMLLJZKSPLDYCLBBLXKLELXJLBQYCXJXGCNLCQPLZLZYJTZLJGYZDZPLTQCSXFDMNYCXGBTJDCZNBGBQYQJWGKFHTNPYQZQGBKPBBYZMTJDYTBLSQMPSXTBNPDXKLEMYYCJYNZCTLDYKZZXDDXHQSHDGMZSJYCCTAYRZLPYLTLKXSLZCGGEXCLFXLKJRTLQJAQZNCMBYDKKCXGLCZJZXJHPTDJJMZQYKQSECQZDSHHADMLZFMMZBGNTJNNLGBYJBRBTMLBYJDZXLCJLPLDLPCQDHLXZLYCBLCXZZJADJLNZMMSSSMYBHBSQKBHRSXXJMXSDZNZPXLGBRHWGGFCXGMSKLLTSJYYCQLTSKYWYYHYWXBXQYWPYWYKQLSQPTNTKHQCWDQKTWPXXHCPTHTWUMSSYHBWCRWXHJMKMZNGWTMLKFGHKJYLSYYCXWHYECLQHKQHTTQKHFZLDXQWYZYYDESBPKYRZPJFYYZJCEQDZZDLATZBBFJLLCXDLMJSSXEGYGSJQXCWBXSSZPDYZCXDNYXPPZYDLYJCZPLTXLSXYZYRXCYYYDYLWWNZSAHJSYQYHGYWWAXTJZDAXYSRLTDPSSYYFNEJDXYZHLXLLLZQZSJNYQYQQXYJGHZGZCYJCHZLYCDSHWSHJZYJXCLLNXZJJYYXNFXMWFPYLCYLLABWDDHWDXJMCXZTZPMLQZHSFHZYNZTLLDYWLSLXHYMMYLMBWWKYXYADTXYLLDJPYBPWUXJMWMLLSAFDLLYFLBHHHBQQLTZJCQJLDJTFFKMMMBYTHYGDCQRDDWRQJXNBYSNWZDBYYTBJHPYBYTTJXAAHGQDQTMYSTQXKBTZPKJLZRBEQQSSMJJBDJOTGTBXPGBKTLHQXJJJCTHXQDWJLWRFWQGWSHCKRYSWGFTGYGBXSDWDWRFHWYTJJXXXJYZYSLPYYYPAYXHYDQKXSHXYXGSKQHYWFDDDPPLCJLQQEEWXKSYYKDYPLTJTHKJLTCYYHHJTTPLTZZCDLTHQKZXQYSTEEYWYYZYXXYYSTTJKLLPZMCYHQGXYHSRMBXPLLNQYDQHXSXXWGDQBSHYLLPJJJTHYJKYPPTHYYKTYEZYENMDSHLCRPQFDGFXZPSFTLJXXJBSWYYSKSFLXLPPLBBBLBSFXFYZBSJSSYLPBBFFFFSSCJDSTZSXZRYYSYFFSYZYZBJTBCTSBSDHRTJJBYTCXYJEYLXCBNEBJDSYXYKGSJZBXBYTFZWGENYHHTHZHHXFWGCSTBGXKLSXYWMTMBYXJSTZSCDYQRCYTWXZFHMYMCXLZNSDJTTTXRYCFYJSBSDYERXJLJXBBDEYNJGHXGCKGSCYMBLXJMSZNSKGXFBNBPTHFJAAFXYXFPXMYPQDTZCXZZPXRSYWZDLYBBKTYQPQJPZYPZJZNJPZJLZZFYSBTTSLMPTZRTDXQSJEHBZYLZDHLJSQMLHTXTJECXSLZZSPKTLZKQQYFSYGYWPCPQFHQHYTQXZKRSGTTSQCZLPTXCDYYZXSQZSLXLZMYCPCQBZYXHBSXLZDLTCDXTYLZJYYZPZYZLTXJSJXHLPMYTXCQRBLZSSFJZZTNJYTXMYJHLHPPLCYXQJQQKZZSCPZKSWALQSBLCCZJSXGWWWYGYKTJBBZTDKHXHKGTGPBKQYSLPXPJCKBMLLXDZSTBKLGGQKQLSBKKTFXRMDKBFTPZFRTBBRFERQGXYJPZSSTLBZTPSZQZSJDHLJQLZBPMSMMSXLQQNHKNBLRDDNXXDHDDJCYYGYLXGZLXSYGMQQGKHBPMXYXLYTQWLWGCPBMQXCYZYDRJBHTDJYHQSHTMJSBYPLWHLZFFNYPMHXXHPLTBQPFBJWQDBYGPNZTPFZJGSDDTQSHZEAWZZYLLTYYBWJKXXGHLFKXDJTMSZSQYNZGGSWQSPHTLSSKMCLZXYSZQZXNCJDQGZDLFNYKLJCJLLZLMZZNHYDSSHTHZZLZZBBHQZWWYCRZHLYQQJBEYFXXXWHSRXWQHWPSLMSSKZTTYGYQQWRSLALHMJTQJSMXQBJJZJXZYZKXBYQXBJXSHZTSFJLXMXZXFGHKZSZGGYLCLSARJYHSLLLMZXELGLXYDJYTLFBHBPNLYZFBBHPTGJKWETZHKJJXZXXGLLJLSTGSHJJYQLQZFKCGNNDJSSZFDBCTWWSEQFHQJBSAQTGYPQLBXBMMYWXGSLZHGLZGQYFLZBYFZJFRYSFMBYZHQGFWZSYFYJJPHZBYYZFFWODGRLMFTWLBZGYCQXCDJYGZYYYYTYTYDWEGAZYHXJLZYYHLRMGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY",this.full_dict={a:"啊阿锕",ai:"埃挨哎唉哀皑癌蔼矮艾碍爱隘诶捱嗳嗌嫒瑷暧砹锿霭",an:"鞍氨安俺按暗岸胺案谙埯揞犴庵桉铵鹌顸黯",ang:"肮昂盎",ao:"凹敖熬翱袄傲奥懊澳坳拗嗷噢岙廒遨媪骜聱螯鏊鳌鏖",ba:"芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸茇菝萆捭岜灞杷钯粑鲅魃",bai:"白柏百摆佰败拜稗薜掰鞴",ban:"斑班搬扳般颁板版扮拌伴瓣半办绊阪坂豳钣瘢癍舨",bang:"邦帮梆榜膀绑棒磅蚌镑傍谤蒡螃",bao:"苞胞包褒雹保堡饱宝抱报暴豹鲍爆勹葆宀孢煲鸨褓趵龅",bo:"剥薄玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳亳蕃啵饽檗擘礴钹鹁簸跛",bei:"杯碑悲卑北辈背贝钡倍狈备惫焙被孛陂邶埤蓓呗怫悖碚鹎褙鐾",ben:"奔苯本笨畚坌锛",beng:"崩绷甭泵蹦迸唪嘣甏",bi:"逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛匕仳俾芘荜荸吡哔狴庳愎滗濞弼妣婢嬖璧贲畀铋秕裨筚箅篦舭襞跸髀",bian:"鞭边编贬扁便变卞辨辩辫遍匾弁苄忭汴缏煸砭碥稹窆蝙笾鳊",biao:"标彪膘表婊骠飑飙飚灬镖镳瘭裱鳔",bie:"鳖憋别瘪蹩鳘",bin:"彬斌濒滨宾摈傧浜缤玢殡膑镔髌鬓",bing:"兵冰柄丙秉饼炳病并禀邴摒绠枋槟燹",bu:"捕卜哺补埠不布步簿部怖拊卟逋瓿晡钚醭",ca:"擦嚓礤",cai:"猜裁材才财睬踩采彩菜蔡",can:"餐参蚕残惭惨灿骖璨粲黪",cang:"苍舱仓沧藏伧",cao:"操糙槽曹草艹嘈漕螬艚",ce:"厕策侧册测刂帻恻",ceng:"层蹭噌",cha:"插叉茬茶查碴搽察岔差诧猹馇汊姹杈楂槎檫钗锸镲衩",chai:"拆柴豺侪茈瘥虿龇",chan:"搀掺蝉馋谗缠铲产阐颤冁谄谶蒇廛忏潺澶孱羼婵嬗骣觇禅镡裣蟾躔",chang:"昌猖场尝常长偿肠厂敞畅唱倡伥鬯苌菖徜怅惝阊娼嫦昶氅鲳",chao:"超抄钞朝嘲潮巢吵炒怊绉晁耖",che:"车扯撤掣彻澈坼屮砗",chen:"郴臣辰尘晨忱沉陈趁衬称谌抻嗔宸琛榇肜胂碜龀",cheng:"撑城橙成呈乘程惩澄诚承逞骋秤埕嵊徵浈枨柽樘晟塍瞠铖裎蛏酲",chi:"吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽傺墀芪茌搋叱哧啻嗤彳饬沲媸敕胝眙眵鸱瘛褫蚩螭笞篪豉踅踟魑",chong:"充冲虫崇宠茺忡憧铳艟",chou:"抽酬畴踌稠愁筹仇绸瞅丑俦圳帱惆溴妯瘳雠鲋",chu:"臭初出橱厨躇锄雏滁除楚础储矗搐触处亍刍憷绌杵楮樗蜍蹰黜",chuan:"揣川穿椽传船喘串掾舛惴遄巛氚钏镩舡",chuang:"疮窗幢床闯创怆",chui:"吹炊捶锤垂陲棰槌",chun:"春椿醇唇淳纯蠢促莼沌肫朐鹑蝽",chuo:"戳绰蔟辶辍镞踔龊",ci:"疵茨磁雌辞慈瓷词此刺赐次荠呲嵯鹚螅糍趑",cong:"聪葱囱匆从丛偬苁淙骢琮璁枞",cou:"薮楱辏腠",cu:"凑粗醋簇猝殂蹙",cuan:"蹿篡窜汆撺爨",cui:"摧崔催脆瘁粹淬翠萃悴璀榱隹",cun:"村存寸磋忖皴",cuo:"撮搓措挫错厝脞锉矬痤鹾蹉躜",chuai:"嘬膪踹",cen:"岑涔",da:"搭达答瘩打大耷哒嗒怛妲疸褡笪靼鞑",dai:"呆歹傣戴带殆代贷袋待逮怠埭甙呔岱迨逯骀绐玳黛",dan:"耽担丹单郸掸胆旦氮但惮淡诞弹蛋亻儋卩萏啖澹檐殚赕眈瘅聃箪",dang:"当挡党荡档谠凼菪宕砀铛裆",dao:"刀捣蹈倒岛祷导到稻悼道盗叨啁忉洮氘焘忑纛",de:"德得的锝",deng:"蹬灯登等瞪凳邓噔嶝戥磴镫簦",di:"堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔氐籴诋谛邸坻莜荻嘀娣柢棣觌砥碲睇镝羝骶",dia:"嗲",dian:"颠掂滇碘点典靛垫电佃甸店惦奠淀殿丶阽坫埝巅玷癜癫簟踮",diao:"碉叼雕凋刁掉吊钓调轺铞蜩粜貂",die:"跌爹碟蝶迭谍叠佚垤堞揲喋渫轶牒瓞褶耋蹀鲽鳎",ding:"丁盯叮钉顶鼎锭定订丢仃啶玎腚碇町铤疔耵酊",dong:"东冬董懂动栋侗恫冻洞垌咚岽峒夂氡胨胴硐鸫",dou:"兜抖斗陡豆逗痘蔸钭窦窬蚪篼酡",du:"都督毒犊独读堵睹赌杜镀肚度渡妒芏嘟渎椟橐牍蠹笃髑黩",duan:"端短锻段断缎彖椴煅簖",dui:"堆兑队对怼憝碓",dun:"墩吨蹲敦顿囤钝盾遁炖砘礅盹镦趸",duo:"掇哆多夺垛躲朵跺舵剁惰堕咄哚缍柁铎裰踱",e:"蛾峨鹅俄额讹娥恶厄扼遏鄂饿噩谔垩垭苊莪萼呃愕屙婀轭曷腭硪锇锷鹗颚鳄",en:"恩蒽摁唔嗯",er:"而儿耳尔饵洱二贰迩珥铒鸸鲕",fa:"发罚筏伐乏阀法珐垡砝",fan:"藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛蘩幡犭梵攵燔畈蹯",fang:"坊芳方肪房防妨仿访纺放匚邡彷钫舫鲂",fei:"菲非啡飞肥匪诽吠肺废沸费芾狒悱淝妃绋绯榧腓斐扉祓砩镄痱蜚篚翡霏鲱",fen:"芬酚吩氛分纷坟焚汾粉奋份忿愤粪偾瀵棼愍鲼鼢",feng:"丰封枫蜂峰锋风疯烽逢冯缝讽奉凤俸酆葑沣砜",fo:"佛仏坲梻仸",fou:"缶",fu:"佛否夫敷肤孵扶拂辐幅氟符伏俘服浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐匐凫郛芙苻茯莩菔呋幞滏艴孚驸绂桴赙黻黼罘稃馥虍蚨蜉蝠蝮麸趺跗鳆",ga:"噶嘎蛤尬呷尕尜旮钆",gai:"该改概钙盖溉丐陔垓戤赅胲",gan:"干甘杆柑竿肝赶感秆敢赣坩苷尴擀泔淦澉绀橄旰矸疳酐",gang:"冈刚钢缸肛纲岗港戆罡颃筻",gong:"杠工攻功恭龚供躬公宫弓巩汞拱贡共蕻廾咣珙肱蚣蛩觥",gao:"篙皋高膏羔糕搞镐稿告睾诰郜蒿藁缟槔槁杲锆",ge:"哥歌搁戈鸽胳疙割革葛格阁隔铬个各鬲仡哿塥嗝纥搿膈硌铪镉袼颌虼舸骼髂",gei:"给",gen:"根跟亘茛哏艮",geng:"耕更庚羹埂耿梗哽赓鲠",gou:"钩勾沟苟狗垢构购够佝诟岣遘媾缑觏彀鸲笱篝鞲",gu:"辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇嘏诂菰哌崮汩梏轱牯牿胍臌毂瞽罟钴锢瓠鸪鹄痼蛄酤觚鲴骰鹘",gua:"刮瓜剐寡挂褂卦诖呱栝鸹",guai:"乖拐怪哙",guan:"棺关官冠观管馆罐惯灌贯倌莞掼涫盥鹳鳏",guang:"光广逛犷桄胱疒",gui:"瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽匦刿庋宄妫桧炅晷皈簋鲑鳜",gun:"辊滚棍丨衮绲磙鲧",guo:"锅郭国果裹过馘蠃埚掴呙囗帼崞猓椁虢锞聒蜮蜾蝈",ha:"哈",hai:"骸孩海氦亥害骇咴嗨颏醢",han:"酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉邗菡撖阚瀚晗焓颔蚶鼾",hen:"夯痕很狠恨",hang:"杭航沆绗珩桁",hao:"壕嚎豪毫郝好耗号浩薅嗥嚆濠灏昊皓颢蚝",he:"呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺诃劾壑藿嗑嗬阖盍蚵翮",hei:"嘿黑",heng:"哼亨横衡恒訇蘅",hong:"轰哄烘虹鸿洪宏弘红黉讧荭薨闳泓",hou:"喉侯猴吼厚候后堠後逅瘊篌糇鲎骺",hu:"呼乎忽瑚壶葫胡蝴狐糊湖弧虎唬护互沪户冱唿囫岵猢怙惚浒滹琥槲轷觳烀煳戽扈祜鹕鹱笏醐斛",hua:"花哗华猾滑画划化话劐浍骅桦铧稞",huai:"槐徊怀淮坏还踝",huan:"欢环桓缓换患唤痪豢焕涣宦幻郇奂垸擐圜洹浣漶寰逭缳锾鲩鬟",huang:"荒慌黄磺蝗簧皇凰惶煌晃幌恍谎隍徨湟潢遑璜肓癀蟥篁鳇",hui:"灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘诙茴荟蕙哕喙隳洄彗缋珲晖恚虺蟪麾",hun:"荤昏婚魂浑混诨馄阍溷缗",huo:"豁活伙火获或惑霍货祸攉嚯夥钬锪镬耠蠖",ji:"击圾基机畸稽积箕肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪居丌乩剞佶佴脔墼芨芰萁蒺蕺掎叽咭哜唧岌嵴洎彐屐骥畿玑楫殛戟戢赍觊犄齑矶羁嵇稷瘠瘵虮笈笄暨跻跽霁鲚鲫髻麂",jia:"嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁伽郏拮岬浃迦珈戛胛恝铗镓痂蛱笳袈跏",jian:"歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件健舰剑饯渐溅涧建僭谏谫菅蒹搛囝湔蹇謇缣枧柙楗戋戬牮犍毽腱睑锏鹣裥笕箴翦趼踺鲣鞯",jiang:"僵姜将浆江疆蒋桨奖讲匠酱降茳洚绛缰犟礓耩糨豇",jiao:"蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫佼僬茭挢噍峤徼姣纟敫皎鹪蛟醮跤鲛",jie:"窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届偈讦诘喈嗟獬婕孑桀獒碣锴疖袷颉蚧羯鲒骱髫",jin:"巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸尽卺荩堇噤馑廑妗缙瑾槿赆觐钅锓衿矜",jing:"劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净刭儆阱菁獍憬泾迳弪婧肼胫腈旌",jiong:"炯窘冂迥扃",jiu:"揪究纠玖韭久灸九酒厩救旧臼舅咎就疚僦啾阄柩桕鹫赳鬏",ju:"鞠拘狙疽驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧倨讵苣苴莒掬遽屦琚枸椐榘榉橘犋飓钜锔窭裾趄醵踽龃雎鞫",juan:"捐鹃娟倦眷卷绢鄄狷涓桊蠲锩镌隽",jue:"撅攫抉掘倔爵觉决诀绝厥劂谲矍蕨噘崛獗孓珏桷橛爝镢蹶觖",jun:"均菌钧军君峻俊竣浚郡骏捃狻皲筠麇",ka:"喀咖卡佧咔胩",ke:"咯坷苛柯棵磕颗科壳咳可渴克刻客课岢恪溘骒缂珂轲氪瞌钶疴窠蝌髁",kai:"开揩楷凯慨剀垲蒈忾恺铠锎",kan:"刊堪勘坎砍看侃凵莰莶戡龛瞰",kang:"康慷糠扛抗亢炕坑伉闶钪",kao:"考拷烤靠尻栲犒铐",ken:"肯啃垦恳垠裉颀",keng:"吭忐铿",kong:"空恐孔控倥崆箜",kou:"抠口扣寇芤蔻叩眍筘",ku:"枯哭窟苦酷库裤刳堀喾绔骷",kua:"夸垮挎跨胯侉",kuai:"块筷侩快蒯郐蒉狯脍",kuan:"宽款髋",kuang:"匡筐狂框矿眶旷况诓诳邝圹夼哐纩贶",kui:"亏盔岿窥葵奎魁傀馈愧溃馗匮夔隗揆喹喟悝愦阕逵暌睽聩蝰篑臾跬",kun:"坤昆捆困悃阃琨锟醌鲲髡",kuo:"括扩廓阔蛞",la:"垃拉喇蜡腊辣啦剌摺邋旯砬瘌",lai:"莱来赖崃徕涞濑赉睐铼癞籁",lan:"蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥啉岚懔漤榄斓罱镧褴",lang:"琅榔狼廊郎朗浪莨蒗啷阆锒稂螂",lao:"捞劳牢老佬姥酪烙涝唠崂栳铑铹痨醪",le:"勒乐肋仂叻嘞泐鳓",lei:"雷镭蕾磊累儡垒擂类泪羸诔荽咧漯嫘缧檑耒酹",ling:"棱冷拎玲菱零龄铃伶羚凌灵陵岭领另令酃塄苓呤囹泠绫柃棂瓴聆蛉翎鲮",leng:"楞愣",li:"厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐痢立粒沥隶力璃哩俪俚郦坜苈莅蓠藜捩呖唳喱猁溧澧逦娌嫠骊缡珞枥栎轹戾砺詈罹锂鹂疠疬蛎蜊蠡笠篥粝醴跞雳鲡鳢黧",lian:"俩联莲连镰廉怜涟帘敛脸链恋炼练挛蔹奁潋濂娈琏楝殓臁膦裢蠊鲢",liang:"粮凉梁粱良两辆量晾亮谅墚椋踉靓魉",liao:"撩聊僚疗燎寥辽潦了撂镣廖料蓼尥嘹獠寮缭钌鹩耢",lie:"列裂烈劣猎冽埒洌趔躐鬣",lin:"琳林磷霖临邻鳞淋凛赁吝蔺嶙廪遴檩辚瞵粼躏麟",liu:"溜琉榴硫馏留刘瘤流柳六抡偻蒌泖浏遛骝绺旒熘锍镏鹨鎏",long:"龙聋咙笼窿隆垄拢陇弄垅茏泷珑栊胧砻癃",lou:"楼娄搂篓漏陋喽嵝镂瘘耧蝼髅",lu:"芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮垆摅撸噜泸渌漉璐栌橹轳辂辘氇胪镥鸬鹭簏舻鲈",lv:"驴吕铝侣旅履屡缕虑氯律率滤绿捋闾榈膂稆褛",luan:"峦孪滦卵乱栾鸾銮",lue:"掠略锊",lun:"轮伦仑沦纶论囵",luo:"萝螺罗逻锣箩骡裸落洛骆络倮荦摞猡泺椤脶镙瘰雒",ma:"妈麻玛码蚂马骂嘛吗唛犸嬷杩麽",mai:"埋买麦卖迈脉劢荬咪霾",man:"瞒馒蛮满蔓曼慢漫谩墁幔缦熳镘颟螨鳗鞔",mang:"芒茫盲忙莽邙漭朦硭蟒",meng:"氓萌蒙檬盟锰猛梦孟勐甍瞢懵礞虻蜢蠓艋艨黾",miao:"猫苗描瞄藐秒渺庙妙喵邈缈缪杪淼眇鹋蜱",mao:"茅锚毛矛铆卯茂冒帽貌贸侔袤勖茆峁瑁昴牦耄旄懋瞀蛑蝥蟊髦",me:"么",mei:"玫枚梅酶霉煤没眉媒镁每美昧寐妹媚坶莓嵋猸浼湄楣镅鹛袂魅",men:"门闷们扪玟焖懑钔",mi:"眯醚靡糜迷谜弥米秘觅泌蜜密幂芈冖谧蘼嘧猕獯汨宓弭脒敉糸縻麋",mian:"棉眠绵冕免勉娩缅面沔湎腼眄",mie:"蔑灭咩蠛篾",min:"民抿皿敏悯闽苠岷闵泯珉",ming:"明螟鸣铭名命冥茗溟暝瞑酩",miu:"谬",mo:"摸摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谟茉蓦馍嫫镆秣瘼耱蟆貊貘",mou:"谋牟某厶哞婺眸鍪",mu:"拇牡亩姆母墓暮幕募慕木目睦牧穆仫苜呒沐毪钼",na:"拿哪呐钠那娜纳内捺肭镎衲箬",nai:"氖乃奶耐奈鼐艿萘柰",nan:"南男难囊喃囡楠腩蝻赧",nang:"攮哝囔馕曩",nao:"挠脑恼闹孬垴猱瑙硇铙蛲",ne:"淖呢讷",nei:"馁",nen:"嫩能枘恁",ni:"妮霓倪泥尼拟你匿腻逆溺伲坭猊怩滠昵旎祢慝睨铌鲵",nian:"蔫拈年碾撵捻念廿辇黏鲇鲶",niang:"娘酿",niao:"鸟尿茑嬲脲袅",nie:"捏聂孽啮镊镍涅乜陧蘖嗫肀颞臬蹑",nin:"您柠",ning:"狞凝宁拧泞佞蓥咛甯聍",niu:"牛扭钮纽狃忸妞蚴",nong:"脓浓农侬",nu:"奴努怒呶帑弩胬孥驽",nv:"女恧钕衄",nuan:"暖",nuenue:"虐",nue:"疟谑",nuo:"挪懦糯诺傩搦喏锘",o:"喔",ou:"哦欧鸥殴藕呕偶沤怄瓯耦",pa:"啪趴爬帕怕琶葩筢",pai:"拍排牌徘湃派俳蒎",pan:"攀潘盘磐盼畔判叛爿泮袢襻蟠蹒",pang:"乓庞旁耪胖滂逄",pao:"抛咆刨炮袍跑泡匏狍庖脬疱",pei:"呸胚培裴赔陪配佩沛掊辔帔淠旆锫醅霈",pen:"喷盆湓",peng:"砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯堋嘭怦蟛",pi:"砒霹批披劈琵毗啤脾疲皮匹痞僻屁譬丕陴邳郫圮鼙擗噼庀媲纰枇甓睥罴铍痦癖疋蚍貔",pian:"篇偏片骗谝骈犏胼褊翩蹁",piao:"飘漂瓢票剽嘌嫖缥殍瞟螵",pie:"撇瞥丿苤氕",pin:"拼频贫品聘拚姘嫔榀牝颦",ping:"乒坪苹萍平凭瓶评屏俜娉枰鲆",po:"坡泼颇婆破魄迫粕叵鄱溥珀钋钷皤笸",pou:"剖裒踣",pu:"扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑匍噗濮璞氆镤镨蹼",qi:"期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫亟亓圻芑萋葺嘁屺岐汔淇骐绮琪琦杞桤槭欹祺憩碛蛴蜞綦綮趿蹊鳍麒",qia:"掐恰洽葜",qian:"牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉佥阡芊芡荨掮岍悭慊骞搴褰缱椠肷愆钤虔箝",qiang:"枪呛腔羌墙蔷强抢嫱樯戗炝锖锵镪襁蜣羟跫跄",qiao:"橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍劁诮谯荞愀憔缲樵毳硗跷鞒",qie:"切茄且怯窃郄唼惬妾挈锲箧",qin:"钦侵亲秦琴勤芹擒禽寝沁芩蓁蕲揿吣嗪噙溱檎螓衾",qing:"青轻氢倾卿清擎晴氰情顷请庆倩苘圊檠磬蜻罄箐謦鲭黥",qiong:"琼穷邛茕穹筇銎",qiu:"秋丘邱球求囚酋泅俅氽巯艽犰湫逑遒楸赇鸠虬蚯蝤裘糗鳅鼽",qu:"趋区蛆曲躯屈驱渠取娶龋趣去诎劬蕖蘧岖衢阒璩觑氍祛磲癯蛐蠼麴瞿黢",quan:"圈颧权醛泉全痊拳犬券劝诠荃獾悛绻辁畎铨蜷筌鬈",que:"缺炔瘸却鹊榷确雀阙悫",qun:"裙群逡",ran:"然燃冉染苒髯",rang:"瓤壤攘嚷让禳穰",rao:"饶扰绕荛娆桡",ruo:"惹若弱",re:"热偌",ren:"壬仁人忍韧任认刃妊纫仞荏葚饪轫稔衽",reng:"扔仍",ri:"日",rong:"戎茸蓉荣融熔溶容绒冗嵘狨缛榕蝾",rou:"揉柔肉糅蹂鞣",ru:"茹蠕儒孺如辱乳汝入褥蓐薷嚅洳溽濡铷襦颥",ruan:"软阮朊",rui:"蕊瑞锐芮蕤睿蚋",run:"闰润",sa:"撒洒萨卅仨挲飒",sai:"腮鳃塞赛噻",san:"三叁伞散彡馓氵毵糁霰",sang:"桑嗓丧搡磉颡",sao:"搔骚扫嫂埽臊瘙鳋",se:"瑟色涩啬铩铯穑",sen:"森",seng:"僧",sha:"莎砂杀刹沙纱傻啥煞脎歃痧裟霎鲨",shai:"筛晒酾",shan:"珊苫杉山删煽衫闪陕擅赡膳善汕扇缮剡讪鄯埏芟潸姗骟膻钐疝蟮舢跚鳝",shang:"墒伤商赏晌上尚裳垧绱殇熵觞",shao:"梢捎稍烧芍勺韶少哨邵绍劭苕潲蛸笤筲艄",she:"奢赊蛇舌舍赦摄射慑涉社设厍佘猞畲麝",shen:"砷申呻伸身深娠绅神沈审婶甚肾慎渗诜谂吲哂渖椹矧蜃",sheng:"声生甥牲升绳省盛剩胜圣丞渑媵眚笙",shi:"师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试谥埘莳蓍弑唑饣轼耆贳炻礻铈铊螫舐筮豕鲥鲺",shou:"收手首守寿授售受瘦兽扌狩绶艏",shu:"蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱恕倏塾菽忄沭涑澍姝纾毹腧殳镯秫鹬",shua:"刷耍唰涮",shuai:"摔衰甩帅蟀",shuan:"栓拴闩",shuang:"霜双爽孀",shui:"谁水睡税",shun:"吮瞬顺舜恂",shuo:"说硕朔烁蒴搠嗍濯妁槊铄",si:"斯撕嘶思私司丝死肆寺嗣四伺似饲巳厮俟兕菥咝汜泗澌姒驷缌祀祠锶鸶耜蛳笥",song:"松耸怂颂送宋讼诵凇菘崧嵩忪悚淞竦",sou:"搜艘擞嗽叟嗖嗾馊溲飕瞍锼螋",su:"苏酥俗素速粟僳塑溯宿诉肃夙谡蔌嗉愫簌觫稣",suan:"酸蒜算",sui:"虽隋随绥髓碎岁穗遂隧祟蓑冫谇濉邃燧眭睢",sun:"孙损笋荪狲飧榫跣隼",suo:"梭唆缩琐索锁所唢嗦娑桫睃羧",ta:"塌他它她塔獭挞蹋踏闼溻遢榻沓",tai:"胎苔抬台泰酞太态汰邰薹肽炱钛跆鲐",tan:"坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭郯蕈昙钽锬覃",tang:"汤塘搪堂棠膛唐糖傥饧溏瑭铴镗耥螗螳羰醣",thang:"倘躺淌",theng:"趟烫",tao:"掏涛滔绦萄桃逃淘陶讨套挑鼗啕韬饕",te:"特",teng:"藤腾疼誊滕",ti:"梯剔踢锑提题蹄啼体替嚏惕涕剃屉荑悌逖绨缇鹈裼醍",tian:"天添填田甜恬舔腆掭忝阗殄畋钿蚺",tiao:"条迢眺跳佻祧铫窕龆鲦",tie:"贴铁帖萜餮",ting:"厅听烃汀廷停亭庭挺艇莛葶婷梃蜓霆",tong:"通桐酮瞳同铜彤童桶捅筒统痛佟僮仝茼嗵恸潼砼",tou:"偷投头透亠",tu:"凸秃突图徒途涂屠土吐兔堍荼菟钍酴凃",tuan:"湍团疃",tui:"推颓腿蜕褪退忒煺",tun:"吞屯臀饨暾豚窀",tuo:"拖托脱鸵陀驮驼椭妥拓唾乇佗坨庹沱柝砣箨舄跎鼍",wa:"挖哇蛙洼娃瓦袜佤娲腽",wai:"歪外",wan:"豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕剜芄苋菀纨绾琬脘畹蜿箢",wang:"汪王亡枉网往旺望忘妄罔尢惘辋魍",wei:"威巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫倭偎诿隈葳薇帏帷崴嵬猥猬闱沩洧涠逶娓玮韪軎炜煨熨痿艉鲔",wen:"瘟温蚊文闻纹吻稳紊问刎愠阌汶璺韫殁雯",weng:"嗡翁瓮蓊蕹",wo:"挝蜗涡窝我斡卧握沃莴幄渥杌肟龌",wu:"巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误兀仵阢邬圬芴庑怃忤浯寤迕妩骛牾焐鹉鹜蜈鋈鼯",xi:"昔熙析西硒矽晰嘻吸锡牺稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细僖兮隰郗茜葸蓰奚唏徙饩阋浠淅屣嬉玺樨曦觋欷熹禊禧钸皙穸蜥蟋舾羲粞翕醯鼷",xia:"瞎虾匣霞辖暇峡侠狭下厦夏吓掀葭嗄狎遐瑕硖瘕罅黠",xian:"锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线冼藓岘猃暹娴氙祆鹇痫蚬筅籼酰跹",xiang:"相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象芗葙饷庠骧缃蟓鲞飨",xiao:"萧硝霄削哮嚣销消宵淆晓小孝校肖啸笑效哓咻崤潇逍骁绡枭枵筱箫魈",xie:"楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑偕亵勰燮薤撷廨瀣邂绁缬榭榍歙躞",xin:"薪芯锌欣辛新忻心信衅囟馨莘歆铽鑫昕",xing:"星腥猩惺兴刑型形邢行醒幸杏性姓陉荇荥擤悻硎",xiong:"兄凶胸匈汹雄熊芎",xiu:"休修羞朽嗅锈秀袖绣莠岫馐庥鸺貅髹",xu:"墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续讴诩圩蓿怵洫溆顼栩煦砉盱胥糈醑",xuan:"轩喧宣悬旋玄选癣眩绚儇谖萱揎馔泫洵渲漩璇楦暄炫煊碹铉镟痃",xue:"靴薛学穴雪血噱泶鳕",xun:"勋熏循旬询寻驯巡殉汛训讯逊迅巽埙荀薰峋徇浔曛窨醺鲟",ya:"压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶伢揠吖岈迓娅琊桠氩砑睚痖",yan:"焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验厣靥赝俨偃兖讠谳郾鄢芫菸崦恹闫阏洇湮滟妍嫣琰晏胭腌焱罨筵酽魇餍鼹",yang:"殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾徉怏泱炀烊恙蛘鞅",yao:"邀腰妖瑶摇尧遥窑谣姚咬舀药要耀夭爻吆崾徭瀹幺珧杳曜肴鹞窈繇鳐",ye:"椰噎耶爷野冶也页掖业叶曳腋夜液谒邺揶馀晔烨铘",yi:"一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎刈劓佾诒圪圯埸懿苡薏弈奕挹弋呓咦咿噫峄嶷猗饴怿怡悒漪迤驿缢殪贻旖熠钇镒镱痍瘗癔翊衤蜴舣羿翳酏黟",yin:"茵荫因殷音阴姻吟银淫寅饮尹引隐印胤鄞堙茚喑狺夤氤铟瘾蚓霪龈",ying:"英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映嬴郢茔莺萦撄嘤膺滢潆瀛瑛璎楹鹦瘿颍罂",yo:"哟唷",yong:"拥佣臃痈庸雍踊蛹咏泳涌永恿勇用俑壅墉慵邕镛甬鳙饔",you:"幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼卣攸侑莸呦囿宥柚猷牖铕疣蝣鱿黝鼬",yu:"迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉浴寓裕预豫驭禺毓伛俣谀谕萸蓣揄喁圄圉嵛狳饫庾阈妪妤纡瑜昱觎腴欤於煜燠聿钰鹆瘐瘀窳蝓竽舁雩龉",yuan:"鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院塬沅媛瑗橼爰眢鸢螈鼋",yue:"曰约越跃钥岳粤月悦阅龠樾刖钺",yun:"耘云郧匀陨允运蕴酝晕韵孕郓芸狁恽纭殒昀氲",za:"匝砸杂拶咂",zai:"栽哉灾宰载再在咱崽甾",zan:"攒暂赞瓒昝簪糌趱錾",zang:"赃脏葬奘戕臧",zao:"遭糟凿藻枣早澡蚤躁噪造皂灶燥唣缫",ze:"责择则泽仄赜啧迮昃笮箦舴",zei:"贼",zen:"怎谮",zeng:"增憎曾赠缯甑罾锃",zha:"扎喳渣札轧铡闸眨栅榨咋乍炸诈揸吒咤哳怍砟痄蚱齄",zhai:"摘斋宅窄债寨砦",zhan:"瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽谵搌旃",zhang:"樟章彰漳张掌涨杖丈帐账仗胀瘴障仉鄣幛嶂獐嫜璋蟑",zhao:"招昭找沼赵照罩兆肇召爪诏棹钊笊",zhe:"遮折哲蛰辙者锗蔗这浙谪陬柘辄磔鹧褚蜇赭",zhen:"珍斟真甄砧臻贞针侦枕疹诊震振镇阵缜桢榛轸赈胗朕祯畛鸩",zheng:"蒸挣睁征狰争怔整拯正政帧症郑证诤峥钲铮筝",zhi:"芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒卮陟郅埴芷摭帙忮彘咫骘栉枳栀桎轵轾攴贽膣祉祗黹雉鸷痣蛭絷酯跖踬踯豸觯",zhong:"中盅忠钟衷终种肿重仲众冢锺螽舂舯踵",zhou:"舟周州洲诌粥轴肘帚咒皱宙昼骤啄着倜诹荮鬻纣胄碡籀舳酎鲷",zhu:"珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑住注祝驻伫侏邾苎茱洙渚潴驺杼槠橥炷铢疰瘃蚰竺箸翥躅麈",zhua:"抓",zhuai:"拽",zhuan:"专砖转撰赚篆抟啭颛",zhuang:"桩庄装妆撞壮状丬",zhui:"椎锥追赘坠缀萑骓缒",zhun:"谆准",zhuo:"捉拙卓桌琢茁酌灼浊倬诼廴蕞擢啜浞涿杓焯禚斫",zi:"兹咨资姿滋淄孜紫仔籽滓子自渍字谘嵫姊孳缁梓辎赀恣眦锱秭耔笫粢觜訾鲻髭",zong:"鬃棕踪宗综总纵腙粽",zou:"邹走奏揍鄹鲰",zu:"租足卒族祖诅阻组俎菹啐徂驵蹴",zuan:"钻纂攥缵",zui:"嘴醉最罪",zun:"尊遵撙樽鳟",zuo:"昨左佐柞做作坐座阝阼胙祚酢",diu:"铥",nou:"耨",bia:"髟"},this.polyphone={19969:"DZ",19975:"WM",19988:"QJ",20048:"YL",20056:"SC",20060:"NM",20094:"QG",20127:"QJ",20167:"QC",20193:"YG",20250:"KH",20256:"ZC",20282:"SC",20285:"QJG",20291:"TD",20314:"YD",20340:"NE",20375:"TD",20389:"YJ",20391:"CZ",20415:"PB",20446:"YS",20447:"SQ",20504:"TC",20608:"KG",20854:"QJ",20857:"ZC",20911:"PF",20985:"AW",21032:"PB",21048:"XQ",21049:"SC",21089:"YS",21119:"JC",21242:"SB",21273:"SC",21305:"YP",21306:"QO",21330:"ZC",21333:"SDC",21345:"QK",21378:"CA",21397:"SC",21414:"XS",21442:"SC",21477:"JG",21480:"TD",21484:"ZS",21494:"YX",21505:"YX",21512:"HG",21523:"XH",21537:"PB",21542:"PF",21549:"KH",21571:"E",21574:"DA",21588:"TD",21589:"O",21618:"ZC",21621:"KHA",21632:"ZJ",21654:"KG",21679:"LKG",21683:"KH",21710:"A",21719:"YH",21734:"WOE",21769:"A",21780:"WN",21804:"XH",21834:"A",21899:"ZD",21903:"RN",21908:"WO",21939:"ZC",21956:"SA",21964:"YA",21970:"TD",22003:"A",22031:"JG",22040:"XS",22060:"ZC",22066:"ZC",22079:"MH",22129:"XJ",22179:"XA",22237:"NJ",22244:"TD",22280:"JQ",22300:"YH",22313:"XW",22331:"YQ",22343:"YJ",22351:"PH",22395:"DC",22412:"TD",22484:"PB",22500:"PB",22534:"ZD",22549:"DH",22561:"PB",22612:"TD",22771:"KQ",22831:"HB",22841:"JG",22855:"QJ",22865:"XQ",23013:"ML",23081:"WM",23487:"SX",23558:"QJ",23561:"YW",23586:"YW",23614:"YW",23615:"SN",23631:"PB",23646:"ZS",23663:"ZT",23673:"YG",23762:"TD",23769:"ZS",23780:"QJ",23884:"QK",24055:"XH",24113:"DC",24162:"ZC",24191:"GA",24273:"QJ",24324:"NL",24377:"TD",24378:"QJ",24439:"PF",24554:"ZS",24683:"TD",24694:"WE",24733:"LK",24925:"TN",25094:"ZG",25100:"XQ",25103:"XH",25153:"PB",25170:"PB",25179:"KG",25203:"PB",25240:"ZS",25282:"FB",25303:"NA",25324:"KG",25341:"ZY",25373:"WZ",25375:"XJ",25384:"A",25457:"A",25528:"SD",25530:"SC",25552:"TD",25774:"ZC",25874:"ZC",26044:"YW",26080:"WM",26292:"PB",26333:"PB",26355:"ZY",26366:"CZ",26397:"ZC",26399:"QJ",26415:"ZS",26451:"SB",26526:"ZC",26552:"JG",26561:"TD",26588:"JG",26597:"CZ",26629:"ZS",26638:"YL",26646:"XQ",26653:"KG",26657:"XJ",26727:"HG",26894:"ZC",26937:"ZS",26946:"ZC",26999:"KJ",27099:"KJ",27449:"YQ",27481:"XS",27542:"ZS",27663:"ZS",27748:"TS",27784:"SC",27788:"ZD",27795:"TD",27812:"O",27850:"PB",27852:"MB",27895:"SL",27898:"PL",27973:"QJ",27981:"KH",27986:"HX",27994:"XJ",28044:"YC",28065:"WG",28177:"SM",28267:"QJ",28291:"KH",28337:"ZQ",28463:"TL",28548:"DC",28601:"TD",28689:"PB",28805:"JG",28820:"QG",28846:"PB",28952:"TD",28975:"ZC",29100:"A",29325:"QJ",29575:"SL",29602:"FB",30010:"TD",30044:"CX",30058:"PF",30091:"YSP",30111:"YN",30229:"XJ",30427:"SC",30465:"SX",30631:"YQ",30655:"QJ",30684:"QJG",30707:"SD",30729:"XH",30796:"LG",30917:"PB",31074:"NM",31085:"JZ",31109:"SC",31181:"ZC",31192:"MLB",31293:"JQ",31400:"YX",31584:"YJ",31896:"ZN",31909:"ZY",31995:"XJ",32321:"PF",32327:"ZY",32418:"HG",32420:"XQ",32421:"HG",32438:"LG",32473:"GJ",32488:"TD",32521:"QJ",32527:"PB",32562:"ZSQ",32564:"JZ",32735:"ZD",32793:"PB",33071:"PF",33098:"XL",33100:"YA",33152:"PB",33261:"CX",33324:"BP",33333:"TD",33406:"YA",33426:"WM",33432:"PB",33445:"JG",33486:"ZN",33493:"TS",33507:"QJ",33540:"QJ",33544:"ZC",33564:"XQ",33617:"YT",33632:"QJ",33636:"XH",33637:"YX",33694:"WG",33705:"PF",33728:"YW",33882:"SR",34067:"WM",34074:"YW",34121:"QJ",34255:"ZC",34259:"XL",34425:"JH",34430:"XH",34485:"KH",34503:"YS",34532:"HG",34552:"XS",34558:"YE",34593:"ZL",34660:"YQ",34892:"XH",34928:"SC",34999:"QJ",35048:"PB",35059:"SC",35098:"ZC",35203:"TQ",35265:"JX",35299:"JX",35782:"SZ",35828:"YS",35830:"E",35843:"TD",35895:"YG",35977:"MH",36158:"JG",36228:"QJ",36426:"XQ",36466:"DC",36710:"JC",36711:"ZYG",36767:"PB",36866:"SK",36951:"YW",37034:"YX",37063:"XH",37218:"ZC",37325:"ZC",38063:"PB",38079:"TD",38085:"QY",38107:"DC",38116:"TD",38123:"YD",38224:"HG",38241:"XTC",38271:"ZC",38415:"YE",38426:"KH",38461:"YD",38463:"AE",38466:"PB",38477:"XJ",38518:"YT",38551:"WK",38585:"ZC",38704:"XS",38739:"LJ",38761:"GJ",38808:"SQ",39048:"JG",39049:"XJ",39052:"HG",39076:"CZ",39271:"XT",39534:"TD",39552:"TD",39584:"PB",39647:"SB",39730:"LG",39748:"TPB",40109:"ZQ",40479:"ND",40516:"HG",40536:"HG",40583:"QJ",40765:"YQ",40784:"QJ",40840:"YK",40863:"QJG"}}},{key:"getCamelChars",value:function(e){if("string"!=typeof e)throw new Error(-1,"函数getCamelChars需要字符串类型参数!");for(var t=new Array,n=0,a=e.length;n<a;n++){var o=e.charAt(n);t.push(this._getChar(o))}var i=this._getResult(t);return 1===this.options.charCase?i=i.toLowerCase():2!==this.options.charCase||(i=i.toUpperCase()),i}},{key:"getFullChars",value:function(e){for(var t=e.length,n="",a=0;a<t;a++){var o=e.substr(a,1),i=o.charCodeAt(0);if(i>40869||i<19968)n+=o;else{var s=this._getFullChar(o);!1!==s&&(n+=s)}}return 1===this.options.charCase?n=n.toLowerCase():2!==this.options.charCase||(n=n.toUpperCase()),n}},{key:"_getFullChar",value:function(e){for(var t in this.full_dict)if(-1!=this.full_dict[t].indexOf(e))return this._capitalize(t);return!1}},{key:"_capitalize",value:function(e){if(e.length>0)return e.substr(0,1).toUpperCase()+e.substr(1,e.length)}},{key:"_getChar",value:function(e){var t=e.charCodeAt(0);return t>40869||t<19968?e:this.options.checkPolyphone&&this.polyphone[t]?this.polyphone[t]:this.char_dict.charAt(t-19968)}},{key:"_getResult",value:function(e){if(!this.options.checkPolyphone)return e.join("");for(var t=[""],n=0,a=e.length;n<a;n++){var o=e[n],i=o.length;if(1==i)for(var s=0;s<t.length;s++)t[s]+=o;else{var r=t.slice(0);t=[];for(var c=0;c<i;c++){for(var l=r.slice(0),u=0;u<l.length;u++)l[u]+=o.charAt(c);t=t.concat(l)}}}return t}}]),e}())({charCase:0})),gc=w({__name:"book",setup(t){const{proxy:n}=e.getCurrentInstance(),a=O();e.computed((()=>a.state.userinfo));const o=e.reactive({data:[],pageNum:1,pageSize:10,total:0});let i=e.reactive({});const s=e.ref(""),r=[{key:"other",name:"#"},{key:"a",name:"A"},{key:"b",name:"B"},{key:"c",name:"C"},{key:"d",name:"D"},{key:"e",name:"E"},{key:"f",name:"F"},{key:"g",name:"G"},{key:"h",name:"H"},{key:"i",name:"I"},{key:"j",name:"J"},{key:"k",name:"K"},{key:"l",name:"L"},{key:"m",name:"M"},{key:"n",name:"N"},{key:"o",name:"O"},{key:"p",name:"P"},{key:"q",name:"Q"},{key:"r",name:"R"},{key:"s",name:"S"},{key:"t",name:"T"},{key:"u",name:"U"},{key:"v",name:"V"},{key:"w",name:"W"},{key:"x",name:"X"},{key:"y",name:"Y"},{key:"z",name:"Z"}],c=e.ref(!1),l=e.reactive({itemHeight:0,minHeight:0,maxHeight:0,height:0}),u=[{text:"删除",style:{backgroundColor:"#F85050"},fn:e=>function(e){new Promise(((t,n)=>{Me.alert({content:`确认删除好友${e.profile.nick}`}).then((e=>{if(e.confirm)return t()}))})).then((t=>{uni.$chat.deleteFriend({userIDList:[e.userID],type:mc.TYPES.SNS_DELETE_TYPE_BOTH}).then((e=>{d()}))}))}(e)}];function d(){uni.$chat.isReady()?uni.$chat.getFriendList().then((e=>{if(g("log","at components/news/book.vue:221","friend",e),0==e.code){const t=e.data;o.data.push(...t.map((e=>{let t=hc.getCamelChars(e.remark||e.profile.nick);return{key:t.charAt(0),letter:t.charAt(0),child:[e]}}))),g("log","at components/news/book.vue:235","userList.data",o.data)}})):setTimeout((function(){d()}),200)}function m(e){c.value=!0}function p(e){if(!c.value)return;let t=e.touches[0].pageY;t=Math.max(t,l.minHeight),t=Math.min(t,l.maxHeight);let n=Math.floor(t-l.minHeight)/l.itemHeight;n=parseInt(n),s.value=r[n].key}function h(e){c.value=!1}function v(){Te.news.setNotes({query:{name:i.note||"",friendId:i.userId}}).then((e=>{if(200===e.code)return n.$refs.note.close(),void refreshFriendList();Me.alert({content:e.msg,showCancel:!1})}))}return e.onMounted((()=>{d(),uni.createSelectorQuery().in(n).select(".letterBox").boundingClientRect((e=>{l.minHeight=e.top,l.height=e.height,l.maxHeight=e.bottom,l.itemHeight=e.height/r.length})).exec(),function(){let e=e=>{g("log","at components/news/book.vue:197","onFriendListUpdated",e.data)};uni.$chat.on(mc.EVENT.MESSAGE_RECEIVED,e)}()})),e.onUnmounted((()=>{uni.$chat.off(mc.EVENT.MESSAGE_RECEIVED)})),(t,a)=>{const c=f(e.resolveDynamicComponent("uni-swipe-action-item"),lc),l=f(e.resolveDynamicComponent("uni-swipe-action"),uc),d=f(e.resolveDynamicComponent("uni-icons"),D),_=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"firendBox pr"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll","scroll-into-view":s.value},[e.createVNode(l,{ref:"swipeAction"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"list pb30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"li",key:t.key,id:t.key},[e.createElementVNode("view",{class:"letter ptb10 plr30 c666 f20"},e.toDisplayString(t.letter),1),e.createElementVNode("view",{class:"child pl30 pr50"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.child,((t,a)=>(e.openBlock(),e.createBlock(c,{"right-options":u,key:a,onClick:e=>function(e,t){e.content.fn(t),n.$refs.swipeAction.closeAll()}(e,t)},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"item rows ptb20",onClick:e=>function(e){g("log","at components/news/book.vue:362","handleUser",e),Me.toChat({name:e.remark||e.profile.nick,msgId:e.userID,type:"C2C"})}(t)},[e.createElementVNode("image",{class:"wh80 avatar cir",src:t.profile.avatar,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"name thd f1 ml20 c333 f32"},e.toDisplayString(t.remark||t.profile.nick),1)],8,["onClick"])])),_:2},1032,["onClick"])))),128))])],8,["id"])))),128)),e.createElementVNode("view",{class:"mtb20 nomore"},"到底啦~")])])),_:1},512)],8,["scroll-into-view"]),e.createElementVNode("view",{class:"letterBox c666 f22",onTouchstart:m,onTouchmove:e.withModifiers(p,["stop","prevent"]),onTouchend:h},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,((t,n)=>e.createElementVNode("view",{class:"item fmid ptb5 plr20",key:t,onClick:e=>function(e){s.value=e.key}(t)},e.toDisplayString(t.name),9,["onClick"]))),64))],32)]),e.createVNode(_,{ref:"note",type:"bottom","mask-background-color":"rgba(0,0,0,0)"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"noteAlt popBot plr25 bfff"},[e.createElementVNode("view",{class:"header rows ptb20"},[e.createElementVNode("view",{class:"title c333 f34"},"设置好友("+e.toDisplayString(e.unref(i).remark)+")备注",1),e.createVNode(d,{type:"closeempty",size:"40rpx",onClick:a[0]||(a[0]=e=>t.$refs.note.close())})]),e.createElementVNode("view",{class:"content mt30 plr30"},[e.withDirectives(e.createElementVNode("input",{class:"input","onUpdate:modelValue":a[1]||(a[1]=t=>e.unref(i).note=t),placeholder:"请输入好友备注"},null,512),[[e.vModelText,e.unref(i).note]])]),e.createElementVNode("view",{class:"btn lg black mtb30",onClick:v},"保存")])])),_:1},512)],64)}}},[["__scopeId","data-v-e0802049"]]),fc=w({__name:"groupList",setup(t){const{proxy:n}=e.getCurrentInstance(),a=e.reactive([]),o=[{text:"退出群聊",style:{backgroundColor:"#F85050"},fn:e=>function(e){Me.alert({content:"确认退出群聊?"}).then((t=>{t.confirm&&uni.$chat.quitGroup({groupID:e.groupID}).then((e=>{i()}))}))}(e)}];function i(){uni.$chat.isReady()?uni.$chat.getGroupList().then((e=>{0==e.code&&(a.length=0,a.push(...e.data.groupList),g("log","at components/news/groupList.vue:74","group list",a))})):setTimeout((function(){i()}),200)}return e.onMounted((()=>{i(),function(){let e=function(e){i()};uni.$chat.on(mc.EVENT.FRIEND_LIST_UPDATED,e)}()})),e.onUnmounted((()=>{uni.$chat.off(mc.EVENT.FRIEND_LIST_UPDATED)})),(t,i)=>{const s=f(e.resolveDynamicComponent("uni-swipe-action-item"),lc),r=f(e.resolveDynamicComponent("uni-swipe-action"),uc);return e.openBlock(),e.createElementBlock("view",{class:"group pr"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll"},[e.createVNode(r,{ref:"swipeAction"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"list plr20 pb30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"li",key:a},[e.createVNode(s,{"right-options":o,onClick:e=>function(e,t){e.content.fn(t),n.$refs.swipeAction.closeAll()}(e,t)},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"item rows ptb20",onClick:e=>function(e){g("log","at components/news/groupList.vue:84","group item",e),Me.toChat({name:`${e.name}(${e.memberCount})`,msgId:e.groupID,type:"GROUP"})}(t)},[e.createElementVNode("image",{class:"wh80 avatar br10",src:t.avatar,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"f1 mlr20"},[e.createElementVNode("view",{class:"name thd f1 c333 f32"},e.toDisplayString(t.name),1)])],8,["onClick"])])),_:2},1032,["onClick"])])))),128)),e.createElementVNode("view",{class:"mtb20 nomore"},"到底啦~")])])),_:1},512)])])}}},[["__scopeId","data-v-b7848e3c"]]),vc=w({__name:"msgList",setup(t){const n=O();e.computed((()=>n.state.userinfo));const a=[{text:"删除",style:{backgroundColor:"#F85050"},fn:e=>function(e){uni.$chat.deleteConversation({conversationIDList:[e.conversationID],clearHistoryMessage:!1}).then((e=>{i()}))}(e)}],o=e.reactive([]);function i(){uni.$chat.getConversationList().then((e=>{o.length=0,o.push(...e.data.conversationList)}))}return e.onMounted((()=>{i(),function(){let e=function(e){i()};uni.$chat.on(mc.EVENT.CONVERSATION_LIST_UPDATED,e)}()})),e.onUnmounted((()=>{uni.$chat.on(mc.EVENT.CONVERSATION_LIST_UPDATED)})),(t,n)=>{const i=f(e.resolveDynamicComponent("uni-swipe-action-item"),lc),s=f(e.resolveDynamicComponent("uni-swipe-action"),uc);return e.openBlock(),e.createElementBlock("view",{class:"firendBox pr"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll"},[e.createVNode(s,{ref:"swipeAction"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"list pb30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,((t,n)=>(e.openBlock(),e.createBlock(i,{"right-options":a,key:n,onClick:e=>function(e,t){g("log","at components/news/msgList.vue:136","ev",e,t),e.content.fn(t),proxy.$refs.swipeAction.closeAll()}(e,t)},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"item rows ptb20 plr30",onClick:e=>function(e){g("log","at components/news/msgList.vue:112","item",e);let t={type:e.type};"C2C"==e.type?(t.name=`${e.userProfile.nick}`,t.msgId=`${e.userProfile.userID}`):"GROUP"==e.type&&(t.name=`${e.groupProfile.name}(${e.groupProfile.memberCount})`,t.msgId=`${e.groupProfile.groupID}`),Me.toChat(t)}(t)},[e.createElementVNode("view",{class:"image wh90 pr"},["GROUP"==t.type?(e.openBlock(),e.createElementBlock("image",{key:0,class:"cir wh90",src:t.groupProfile.avatar,mode:"aspectFill"},null,8,["src"])):"C2C"==t.type?(e.openBlock(),e.createElementBlock("image",{key:1,class:"cir wh90",src:t.userProfile.avatar,mode:"aspectFill"},null,8,["src"])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"col f1 ml20"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"name f1 thd c333 f32"},["GROUP"==t.type?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(t.groupProfile.name),1)):"C2C"==t.type?(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(t.userProfile.nick),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"datetime c999 f22"},e.toDisplayString(e.unref(Me).formatTime("MM-dd HH:mm",t.lastMessage.lastTime)),1)]),e.createElementVNode("view",{class:"desc thd mt10 c666 f24"},e.toDisplayString(t.lastMessage.messageForShow),1)])],8,["onClick"])])),_:2},1032,["onClick"])))),128)),e.createElementVNode("view",{class:"mtb20 tac c999 f20"},"到底啦~")])])),_:1},512)])])}}},[["__scopeId","data-v-c93d9d22"]]),_c=w({__name:"news",setup(t){const n=O(),a=e.reactive([{key:"friend",name:"通讯录",load:!1},{key:"group",name:"即时消息",load:!1},{key:"video",name:"视讯消息",load:!1},{key:"video",name:"商城消息",load:!1}]),o=e.ref(""),i=e.ref(!1),s=e.computed((()=>n.state.userinfo));function r(e){o.value!==e&&(o.value=e,a[e].load||(a[e].load=!0))}function c(){uni.showActionSheet({itemList:["扫一扫","添加好友","发起群聊","我的二维码","设置"],success:e=>{switch(e.tapIndex){case 0:uni.scanCode({success:e=>{var t;g("log","at pages/news/news.vue:98","扫描结果:"+e.result),t=e.result,Ie.getUserInfo({query:{userRecommend:t}}).then((e=>{null!==e.data&&uni.navigateTo({url:"/pages/index/beInvited?header="+e.data.userPortrait+"&userId="+e.data.userId+"&userNickname="+e.data.userNickname})}))},fail:e=>{g("error","at pages/news/news.vue:102","扫描失败:"+e),uni.showToast({title:"扫描失败",icon:"none"})}});break;case 1:uni.navigateTo({url:"/pages/news/addFriend"});break;case 2:uni.navigateTo({url:"/pages/news/group-chat/index"})}}})}return e.computed((()=>a[o.value])),E((()=>{r(2)})),(t,n)=>{const l=f(e.resolveDynamicComponent("uni-icons"),D),u=f(e.resolveDynamicComponent("footerMenu"),Vn);return e.openBlock(),e.createElementBlock(e.Fragment,null,[(s.value.id,e.openBlock(),e.createElementBlock("view",{key:1,class:"page"},[e.createVNode(e.unref(tc),null,{left:e.withCtx((()=>[e.createElementVNode("view")])),content:e.withCtx((()=>[])),right:e.withCtx((()=>[e.createVNode(l,{type:"bars",size:"40rpx",onClick:c})])),_:1}),e.createElementVNode("view",{class:e.normalizeClass(["searchBox",{active:i.value}])},[e.createElementVNode("view",{class:"search rows mt20 mlr20 ptb10 plr30 bfff bar"},[e.createVNode(l,{type:"search"}),e.createElementVNode("input",{type:"text",placeholder:"搜索",class:"f1 ml10","confirm-type":"search"})])],2),e.createElementVNode("view",{class:"headMenu f24"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["option oh df",[t.key,{active:n===o.value}]]),key:t.key,onClick:e=>r(n)},[e.createElementVNode("view",{class:"f1 fmid"},e.toDisplayString(t.name),1)],10,["onClick"])))),128))]),e.createElementVNode("swiper",{class:"swiper",current:o.value,"disable-touch":"true"},[e.createElementVNode("swiper-item",null,[a[0].load?(e.openBlock(),e.createBlock(e.unref(gc),{key:0})):(e.openBlock(),e.createElementBlock("view",{key:1,class:"loading"},"正在加载"))]),e.createElementVNode("swiper-item",null,[a[1].load?(e.openBlock(),e.createBlock(e.unref(fc),{key:0})):(e.openBlock(),e.createElementBlock("view",{key:1,class:"loading"},"正在加载"))]),e.createElementVNode("swiper-item",null,[a[2].load?(e.openBlock(),e.createBlock(e.unref(vc),{key:0})):(e.openBlock(),e.createElementBlock("view",{key:1,class:"loading"},"正在加载"))]),e.createElementVNode("swiper-item",null,[e.createVNode(e.unref(vc))])],8,["current"])])),e.createVNode(u,{ref:"footerMneuRef",page:"news"},null,512)],64)}}},[["__scopeId","data-v-c66838eb"]]),yc={__name:"index",setup(t){const n=e.ref([]),{notificationChat:a}=e.inject("util"),o={};return(()=>{try{uni.WebIM.conn.getGroup({limit:100,success:function(e){n.value=e.data,getApp().globalData.groupList=e.data||[]},error:function(){}})}catch(e){g("error","at pages/news/group-chat-list/index.vue:29","获取群聊列表失败:",e)}})(),(t,i)=>n.value.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"group-chat-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"p25",key:n,onClick:n=>e.unref(a)(t,o.chatType.GROUP_CHAT)},e.toDisplayString(t.groupname),9,["onClick"])))),128))])):e.createCommentVNode("",!0)}},Ec={en:{"uni-search-bar.cancel":"cancel","uni-search-bar.placeholder":"Search enter content"},"zh-Hans":{"uni-search-bar.cancel":"取消","uni-search-bar.placeholder":"请输入搜索内容"},"zh-Hant":{"uni-search-bar.cancel":"取消","uni-search-bar.placeholder":"請輸入搜索內容"}},{t:Cc}=ta(Ec),kc={name:"UniSearchBar",emits:["input","update:modelValue","clear","cancel","confirm","blur","focus"],props:{placeholder:{type:String,default:""},radius:{type:[Number,String],default:5},clearButton:{type:String,default:"auto"},cancelButton:{type:String,default:"auto"},cancelText:{type:String,default:""},bgColor:{type:String,default:"#F8F8F8"},textColor:{type:String,default:"#000000"},maxlength:{type:[Number,String],default:100},value:{type:[Number,String],default:""},modelValue:{type:[Number,String],default:""},focus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data:()=>({show:!1,showSync:!1,searchVal:""}),computed:{cancelTextI18n(){return this.cancelText||Cc("uni-search-bar.cancel")},placeholderText(){return this.placeholder||Cc("uni-search-bar.placeholder")}},watch:{modelValue:{immediate:!0,handler(e){this.searchVal=e,e&&(this.show=!0)}},focus:{immediate:!0,handler(e){if(e){if(this.readonly)return;this.show=!0,this.$nextTick((()=>{this.showSync=!0}))}}},searchVal(e,t){this.$emit("input",e),this.$emit("update:modelValue",e)}},methods:{searchClick(){this.readonly||this.show||(this.show=!0,this.$nextTick((()=>{this.showSync=!0})))},clear(){this.searchVal="",this.$nextTick((()=>{this.$emit("clear",{value:""})}))},cancel(){this.readonly||(this.$emit("cancel",{value:this.searchVal}),this.searchVal="",this.show=!1,this.showSync=!1,plus.key.hideSoftKeybord())},confirm(){plus.key.hideSoftKeybord(),this.$emit("confirm",{value:this.searchVal})},blur(){plus.key.hideSoftKeybord(),this.$emit("blur",{value:this.searchVal})},emitFocus(e){this.$emit("focus",e.detail)}}};const Ic=w(kc,[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"uni-searchbar"},[e.createElementVNode("view",{style:e.normalizeStyle({borderRadius:a.radius+"px",backgroundColor:a.bgColor}),class:"uni-searchbar__box",onClick:n[5]||(n[5]=(...e)=>s.searchClick&&s.searchClick(...e))},[e.createElementVNode("view",{class:"uni-searchbar__box-icon-search"},[e.renderSlot(t.$slots,"searchIcon",{},(()=>[e.createVNode(r,{color:"#c0c4cc",size:"18",type:"search"})]),!0)]),i.show||i.searchVal?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,focus:i.showSync,disabled:a.readonly,placeholder:s.placeholderText,maxlength:a.maxlength,class:"uni-searchbar__box-search-input","confirm-type":"search",type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>i.searchVal=e),style:e.normalizeStyle({color:a.textColor}),onConfirm:n[1]||(n[1]=(...e)=>s.confirm&&s.confirm(...e)),onBlur:n[2]||(n[2]=(...e)=>s.blur&&s.blur(...e)),onFocus:n[3]||(n[3]=(...e)=>s.emitFocus&&s.emitFocus(...e))},null,44,["focus","disabled","placeholder","maxlength"])),[[e.vModelText,i.searchVal]]):(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-searchbar__text-placeholder"},e.toDisplayString(a.placeholder),1)),i.show&&("always"===a.clearButton||"auto"===a.clearButton&&""!==i.searchVal)&&!a.readonly?(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-searchbar__box-icon-clear",onClick:n[4]||(n[4]=(...e)=>s.clear&&s.clear(...e))},[e.renderSlot(t.$slots,"clearIcon",{},(()=>[e.createVNode(r,{color:"#c0c4cc",size:"20",type:"clear"})]),!0)])):e.createCommentVNode("",!0)],4),"always"===a.cancelButton||i.show&&"auto"===a.cancelButton?(e.openBlock(),e.createElementBlock("text",{key:0,onClick:n[6]||(n[6]=(...e)=>s.cancel&&s.cancel(...e)),class:"uni-searchbar__cancel"},e.toDisplayString(s.cancelTextI18n),1)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-2ba324d9"]]),Sc=w({__name:"book",props:e.mergeModels({list:{type:Array}},{ids:{},idsModifiers:{}}),emits:["update:ids"],setup(t){e.getCurrentInstance();const n=e.useModel(t,"ids"),a=O();return e.computed((()=>a.state.userinfo)),(a,o)=>{const i=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"firendBox pr"},[e.createElementVNode("view",{class:"list bfff"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"li",key:a,onClick:e=>function(e){g("log","at pages/news/group-chat/book.vue:49","handleUser",e);const t=n.value.findIndex((t=>t==e.userID));t>=0?n.value.splice(t,1):n.value.push(e.userID)}(t)},[e.createElementVNode("view",{class:"item rows ptb20 pl30 pr50"},[e.createElementVNode("image",{class:"wh80 avatar cir",src:t.profile.avatar,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"name thd f1 ml20 c333 f32"},e.toDisplayString(t.remark||t.profile.nick),1),n.value.includes(t.userID)?(e.openBlock(),e.createBlock(i,{key:0,type:"circle-filled",size:"40rpx",color:"#20D200"})):(e.openBlock(),e.createBlock(i,{key:1,type:"circle",size:"40rpx",color:"#ccc"}))])],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"mtb20 nomore"},"到底啦~")])}}},[["__scopeId","data-v-934af76c"]]),Tc=w({__name:"index",setup(t){const n=O(),a=e.reactive([]),o=e.ref(""),i=e.reactive([]),s=e.computed((()=>n.state.userinfo));function r(){uni.$chat.isReady()?uni.$chat.getFriendList().then((e=>{if(0==e.code){const t=e.data;i.push(...t)}})):setTimeout((function(){r()}),200)}function c(){if(!o.value)return void Me.alert("群聊名称不能为空");if(a.length<2)return void Me.alert("请至少选择两名用户");const e=[{userID:s.value.userId},...a.map((e=>({userID:e})))];uni.$chat.createGroup({type:mc.TYPES.GRP_WORK,name:o.value,memberList:e}).then((e=>{g("log","at pages/news/group-chat/index.vue:91","createGroup success",e),Me.alert("创建成功")})).catch((e=>{g("log","at pages/news/group-chat/index.vue:94","createGroup catch",e)}))}return E((()=>{r()})),(t,n)=>{const s=f(e.resolveDynamicComponent("uni-search-bar"),Ic);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createVNode(s,{placeholder:"请输入群聊名称",modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e),style:{background:"#fff"}},null,8,["modelValue"]),e.createElementVNode("view",{class:"jy-chat-box mt30"},[e.createVNode(e.unref(Sc),{list:i,ids:a,"onUpdate:ids":n[1]||(n[1]=e=>a=e)},null,8,["list","ids"])]),e.createElementVNode("view",{class:"fill",style:{height:"120rpx"}}),e.createElementVNode("view",{class:"footer plr30 bfff shadow"},[e.createElementVNode("view",{class:"btn lg colourful",onClick:c},"新建群聊")])])}}},[["__scopeId","data-v-81850f47"]]),Mc=w({__name:"index",props:{item:{type:Object,default:()=>{}},msg:{type:Object}},emits:["openRedBag","viewVideo"],setup(t,{emit:n}){const a=t,o=O(),i=n,s=e.computed((()=>a.item.payload.data)),r=uni.createInnerAudioContext();function c(){uni.$TUICallKit.call({userID:a.msg.id,callMediaType:s.value.data.call_type},(e=>{g("log","at pages/news/chat/components/news-temp/index.vue:70","[TUICallKit] call params: ",JSON.stringify(e))}))}function l(){i("openRedBag",a.item)}return e.computed((()=>o.state.userinfo)),(n,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"content pr"},[t.item.type===e.unref(mc).TYPES.MSG_IMAGE?(e.openBlock(),e.createElementBlock("image",{key:0,src:t.item.payload.imageInfoArray[0].imageUrl,mode:"widthFix"},null,8,["src"])):t.item.type===e.unref(mc).TYPES.MSG_TEXT?(e.openBlock(),e.createElementBlock("view",{key:1,class:"p25"},e.toDisplayString(t.item.payload.text),1)):t.item.type===e.unref(mc).TYPES.MSG_CUSTOM?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[s.value.businessID?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[1==s.value.businessID?(e.openBlock(),e.createElementBlock("view",{key:0,class:"p25",onClick:c},[s.value.actionType==e.unref(mc).TSignaling.ACTION_TYPE_INVITE?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("text",null,"[ "),1==s.value.data.call_type?(e.openBlock(),e.createBlock(o,{key:0,type:"videocam",color:"#333",size:"32rpx"})):2==s.value.data.call_type?(e.openBlock(),e.createBlock(o,{key:1,type:"phone",color:"#333",size:"32rpx"})):e.createCommentVNode("",!0),e.createElementVNode("text",null,"发起"),1==s.value.data.call_type?(e.openBlock(),e.createElementBlock("text",{key:2},"语音")):2==s.value.data.call_type?(e.openBlock(),e.createElementBlock("text",{key:3},"视频")):e.createCommentVNode("",!0),e.createElementVNode("text",null,"通话"),e.createElementVNode("text",null," ]")],64)):e.createCommentVNode("",!0),s.value.actionType==e.unref(mc).TSignaling.ACTION_TYPE_CANCEL_INVITE?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("text",null,"["),1==s.value.data.call_type?(e.openBlock(),e.createBlock(o,{key:0,type:"videocam",color:"#333",size:"32rpx"})):2==s.value.data.call_type?(e.openBlock(),e.createBlock(o,{key:1,type:"phone",color:"#333",size:"32rpx"})):e.createCommentVNode("",!0),e.createElementVNode("text",null,"已取消通话 ]")],64)):e.createCommentVNode("",!0),s.value.actionType==e.unref(mc).TSignaling.ACTION_TYPE_ACCEPT_INVITE?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("text",null,"[ "),1==s.value.data.call_type?(e.openBlock(),e.createBlock(o,{key:0,type:"videocam",color:"#333",size:"32rpx"})):2==s.value.data.call_type?(e.openBlock(),e.createBlock(o,{key:1,type:"phone",color:"#333",size:"32rpx"})):e.createCommentVNode("",!0),e.createElementVNode("text",null,"已接通 ]")],64)):e.createCommentVNode("",!0),s.value.actionType==e.unref(mc).TSignaling.ACTION_TYPE_REJECT_INVITE?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("text",null,"[ "),1==s.value.data.call_type?(e.openBlock(),e.createBlock(o,{key:0,type:"videocam",color:"#333",size:"32rpx"})):2==s.value.data.call_type?(e.openBlock(),e.createBlock(o,{key:1,type:"phone",color:"#333",size:"32rpx"})):e.createCommentVNode("",!0),e.createElementVNode("text",null,"已拒绝通话 ]")],64)):e.createCommentVNode("",!0),s.value.actionType==e.unref(mc).TSignaling.ACTION_TYPE_INVITE_TIMEOUT?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("text",null,"[ "),1==s.value.data.call_type?(e.openBlock(),e.createBlock(o,{key:0,type:"videocam",color:"#333",size:"32rpx"})):2==s.value.data.call_type?(e.openBlock(),e.createBlock(o,{key:1,type:"phone",color:"#333",size:"32rpx"})):e.createCommentVNode("",!0),e.createElementVNode("text",null,"超时未接听 ]")],64)):e.createCommentVNode("",!0)])):"redPacket"==s.value.businessID?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["redPacket br10",{disabled:0!=s.value.status||s.value.receive}]),onClick:l},[e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("image",{class:"img mr10",src:"/static/image/red-envelope.png"}),e.createElementVNode("view",{class:"red-packet-text"},e.toDisplayString(s.value.name),1)]),e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"f20",style:{color:"#FBD3A4"}},e.toDisplayString(1==s.value.type?"积分红包":"余额红包"),1)],2)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.item.type==e.unref(mc).TYPES.MSG_AUDIO?(e.openBlock(),e.createElementBlock("div",{key:3,class:"df aic p25",style:{width:"100rpx"},onClick:a[0]||(a[0]=n=>{return a=t.item,r.src=a.payload.url,void e.nextTick((()=>{r.play()}));var a})},[e.createElementVNode("image",{class:"mr20",style:{width:"30rpx",height:"30rpx","z-index":"1"},src:e.unref("/static/audio.png")},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(t.item.payload.downloadFlag)+"''",1)])):e.createCommentVNode("",!0),t.item.type==e.unref(mc).TYPES.MSG_VIDEO?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("image",{src:t.item.payload.snapshotUrl,mode:"widthFix"},null,8,["src"]),e.createElementVNode("view",{class:"window pfull",onClick:a[1]||(a[1]=e=>{return n=t.item,void i("viewVideo",n);var n})},[e.createElementVNode("image",{class:"pause pmid wh40",src:"/static/pause.png",mode:"aspectFit"})])],64)):e.createCommentVNode("",!0),"order"===t.item.type?(e.openBlock(),e.createBlock(e.unref(sa),{key:5,showType:4,right:!1})):e.createCommentVNode("",!0),"shop"===t.item.type?(e.openBlock(),e.createBlock(e.unref(sa),{key:6,showType:3})):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-4eeabec8"]]),Nc=["😀","😁","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","👦","👧","👨","👩","👴","👵","👶","👱","👮","👲","👳","👷","👸","💂","🎅","👰","👼","💆","💇","🙍","🙎","🙅","🙆","💁","🙋","🙇","🙌","🙏","👤","👥","🚶","🏃","👯","💃","👫","👬","👭","💏","💑","👪","💪","👈","👉","☝","👆","👇","✌","✋","👌","👍","👎","✊","👊","👋","👏","👐","✍","👣","👀","👂","👃","👅","👄","💋","👓","👔","👙","👛","👜","👝","🎒","💼","👞","👟","👠","👡","👢","👑","👒","🎩","🎓","💄","💅","💍","🌂","📶","📳","📴","♻","🏧","🚮","🚰","♿","🚹","🚺","🚻","🚼","🚾","⚠","🚸","⛔","🚫","🚳","🚭","🚯","🚱","🚷","🔞","💈","🙈","🐒","🐶","🐕","🐩","🐺","🐱","🐈","🐯","🐅","🐆","🐴","🐎","🐮","🐂","🐃","🐄","🐷","🐖","🐗","🐽","🐏","🐑","🐐","🐪","🐫","🐘","🐭","🐁","🐀","🐹","🐰","🐇","🐻","🐨","🐼","🐾","🐔","🐓","🐣","🐤","🐥","🐦","🐧","🐸","🐊","🐢","🐍","🐲","🐉","🐳","🐋","🐬","🐟","🐠","🐡","🐙","🐚","🐌","🐛","🐜","🐝","🐞","🦋","💐","🌸","💮","🌹","🌺","🌻","🌼","🌷","🌱","🌲","🌳","🌴","🌵","🌾","🌿","🍀","🍁","🍂","🍃","🌍","🌎","🌏","🌐","🌑","🌒","🌓","🌔","🌕","🌖","🌗","🌘","🌙","🌚","🌛","🌜","☀","🌝","🌞","⭐","🌟","🌠","☁","⛅","☔","⚡","❄","🔥","💧","🌊","🏀","🏈","🏉","🎾","🎱","🎳","⛳","🎣","🎽","🎿","😈","👿","👹","👺","💀","☠","👻","👽","👾","💣","🌋","🗻","🏠","🏡","🏢","🏣","🏤","🏥","🏦","🏨","⛲","🌁","🌃","🌆","🌇","🎠","🎡","🎢","🚂","🚌","🚍","🚎","🚏","🚐","🚑","🚒","🚓","🚔","🚕","🚖","🚗","🚘","💌","💎","🔪","💈","🚪","🚽","🚿","🛁","⌛","⏳","⌚","⏰","🎈","🎉","💤","💢","💬","💭","♨","🌀","🔔","🔕","✡","✝","🔯","📛","🔰","🔱","⭕","✅","☑","✔","✖","❌","❎","","","➗","➰","➿","〽","✳","✴","❇","‼","⁉","❓","❔","❕","❗","🕛","🕧","🕐","🕜","🕑","🕝","🕒","🕞","🕓","🕟","🕔","🕠","🕕","🕡","🕖","🕢","🕗","🕣","🕘","🕤","🕙","🕥","🕚","🕦","⏱","⏲","🕰","💘","❤","💓","💔","💕","💖","💗","💙","💚","💛","💜","💝","💞","💟❣","🍇","🍈","🍉","🍊","🍋","🍌","🍍","🍎","🍏","🍐","🍑","🍒","🍓"],wc=w({__name:"emoji",emits:["setEmoj"],setup(t,{emit:n}){const a=n;return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"NewsPlus"},[e.createElementVNode("scroll-view",{"scroll-y":"","scroll-with-animation":""},[e.createElementVNode("view",{append:"tree",class:"emoj_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Nc),((t,n)=>(e.openBlock(),e.createElementBlock("text",{key:n,onClick:e=>a("setEmoj",t),class:"emoj_box_img"},e.toDisplayString(t),9,["onClick"])))),128))])])]))}},[["__scopeId","data-v-b952e898"]]),Dc={__name:"jy-voice",props:{msg:Object},emits:["send"],setup(t,{emit:n}){const a=t,o=n,i=uni.getRecorderManager(),s=e.ref(0),r=e.ref(null),c=e.ref("按住 说话"),l=e.ref("手指上滑 取消发送"),u=e.ref(!1),d=e.ref(0),m=e.ref(!1),p={touchstartVoice:e=>{d.value=e.changedTouches[0].pageY.toFixed(2),i.start({duration:6e4,sampleRate:44100,numberOfChannels:1,encodeBitRate:192e3,format:"mp3"}),s.value=0,u.value=!0,g("log","at pages/news/chat/jy-voice.vue:61","recorder start success"),r.value=setInterval((()=>{s.value+=.1}),100),g("log","at pages/news/chat/jy-voice.vue:67","touchstartVoice",d.value)},touchmoveVoice:e=>{if(!u.value)return;d.value-e.changedTouches[0].pageY.toFixed(2)>=60?(g("log","at pages/news/chat/jy-voice.vue:77","取消发送"),m.value=!0,l.value="松开手指 取消发送"):(g("log","at pages/news/chat/jy-voice.vue:81","继续发送"),m.value=!1,l.value="手指上滑 取消发送")},touchendVoice:()=>{u.value&&(clearInterval(r.value),c.value="按住 说话",l.value="手指上滑 取消发送",g("log","at pages/news/chat/jy-voice.vue:95","touchendVoice"),p.stop())},touchcancelVoice:()=>{clearInterval(r.value),c.value="按住 说话",l.value="手指上滑 取消发送",m.value=!0,g("log","at pages/news/chat/jy-voice.vue:106","touchcancelVoice"),p.stop()},stop:()=>{r.value=null,u.value=!1,i.stop(),g("log","at pages/news/chat/jy-voice.vue:113","录音结束")}};return i.onStop((e=>{if(!m.value)if(m.value)uni.showToast({icon:"none",title:"取消发送",duration:2e3});else if(s.value<1)uni.showToast({icon:"none",title:"语音时长过短",duration:2e3});else if(s.value>60)uni.showToast({icon:"none",title:"语音时长过长",duration:2e3});else{g("log","at pages/news/chat/jy-voice.vue:148","file",e);try{let t=uni.$chat.createAudioMessage({to:a.msg.id,conversationType:a.msg.type,payload:{file:e},onProgress:function(e){g("log","at pages/news/chat/jy-voice.vue:159","file uploading:",e)}});o("send",t)}catch(zo){g("log","at pages/news/chat/jy-voice.vue:164","message catch",zo)}}})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"voice_box",onTouchstart:n[0]||(n[0]=(...e)=>p.touchstartVoice&&p.touchstartVoice(...e)),onTouchmove:n[1]||(n[1]=e.withModifiers(((...e)=>p.touchmoveVoice&&p.touchmoveVoice(...e)),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...e)=>p.touchendVoice&&p.touchendVoice(...e)),onTouchcancel:n[3]||(n[3]=(...e)=>p.touchcancelVoice&&p.touchcancelVoice(...e))},[e.createElementVNode("text",{class:"voice_text c000"},e.toDisplayString(c.value),1)],32),u.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["record",u.value?"":"hidden"])},[e.createVNode(a,{class:e.normalizeClass([m.value?"cancel":"ing"]),type:m.value?"micoff":"mic",size:"100"},null,8,["class","type"]),e.createElementVNode("view",{class:e.normalizeClass(["tis",m.value?"change":""])},e.toDisplayString(l.value),3)],2)):e.createCommentVNode("",!0)],64)}}},bc=w(Dc,[["__scopeId","data-v-5cd19aa1"]]),Lc=w({__name:"jy-plus",props:{msg:{type:Object}},emits:["plusClick","send"],setup(t,{emit:n}){const a=t,o=n,i=e.computed((()=>{let e=[{type:"picture.png",label:"照片",value:"chooseImage"},{type:"photograph.png",label:"拍摄",value:"takePhoto"},{type:"red-envelope.png",label:"红包",value:"redEnvelope"}];return"C2C"==a.msg.type&&e.push({type:"news-voice.png",label:"音视频",value:"voice"}),e})),s=e.ref(null);e.ref(null),e.reactive({name:""}),e.reactive({show:!1,title:"选择订单"});const r={voice:()=>{const e=[{name:"语音通话",type:1},{nanme:"视频通话",type:2}];uni.showActionSheet({itemList:["语音通话","视频通话"],success:t=>{uni.$TUICallKit.call({userID:a.msg.id,callMediaType:e[t.tapIndex].type},(e=>{g("log","at pages/news/chat/jy-plus.vue:97","[TUICallKit] call params: ",JSON.stringify(e))}))}})},chooseOrder:()=>{e.nextTick().then((()=>{s.value.open()}))},chooseShop:()=>{},redEnvelope(){uni.navigateTo({url:Me.setUrl("/pages/news/redPacket",{msgId:a.msg.id,sendType:{C2C:1,GROUP:2}[a.msg.type]})})},takePhoto:()=>{c({sourceType:["album"]})},chooseImage:()=>{c({sourceType:["album"]})}};function c(e){uni.chooseImage({count:1,sizeType:["original","compressed"],sourceType:e.sourceType,success:e=>{let t=uni.$chat.createImageMessage({to:a.msg.id,conversationType:a.msg.type,payload:{file:e},onProgress:function(e){g("log","at pages/news/chat/jy-plus.vue:161","file uploading:",e)}});o("send",t)}})}const l=e=>{s.value.close()};return(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D),o=f(e.resolveDynamicComponent("uni-easyinput"),ma),c=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"jy-plus"},[e.createElementVNode("view",{class:"NewsPlus ptb20",style:{background:"#F6F6F6"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"df fdc aic",key:n,onClick:r[t.value]},[e.createElementVNode("view",{class:"imageBox fmid wh100"},[e.createElementVNode("image",{class:"image wh50",src:`/static/new-${t.type}`,mode:"aspectFit"},null,8,["src"])]),e.createElementVNode("text",{class:"mt20"},e.toDisplayString(t.label),1)],8,["onClick"])))),128))])]),e.createVNode(c,{ref_key:"popupRef",ref:s,type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"jy-popup bfff",style:e.normalizeStyle({height:.7*e.unref(Fn)(!0)+"px"})},[e.createElementVNode("view",{class:"title"},[e.createElementVNode("text",null,"咨询订单")]),e.createElementVNode("view",{class:"close-btn",onClick:n[0]||(n[0]=e=>s.value.close())},"×"),e.createElementVNode("view",{class:"input-view"},[e.createVNode(o,{class:"easyinput",placeholder:"搜索你要查询的订单"},{left:e.withCtx((()=>[e.createVNode(a,{class:"ml20",type:"search",size:"20"})])),_:1})]),e.createElementVNode("scroll-view",{"scroll-y":"","scroll-with-animation":""},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,n)=>e.createElementVNode("view",null,[e.createElementVNode("view",{class:"time"}," 下单时间2024-07-28 22:45:25 "),e.createVNode(e.unref(sa),{showType:4,onConsult:l})]))),64))])],4)])),_:1},512)],64)}}},[["__scopeId","data-v-01c433a0"]]),Pc={__name:"chat",setup(t){const{proxy:n}=e.getCurrentInstance(),a=O(),o=e.reactive({id:"",type:""}),i=e.ref(""),s=e.ref(!1),r=e.ref(!1),c=e.computed((()=>a.state.userinfo)),l=e.ref([]),u=e.ref(void 0),d=e.ref(0),m=e.ref(0),p=e.ref(1),h=e.ref({}),v=e.ref("input"),_=e.ref(""),y=e.ref(null);function S(){u.value&&T()}function T(t=()=>{}){uni.$chat.isReady()||!c.value.userId?s.value?Me.showToastAndRedirect("加载中"):r.value||(s.value=!0,(async e=>{let t={conversationID:`${e.chatType}${e.msgId}`,nextReqMessageID:e.nextReqMessageID};return g("log","at pages/news/chat/fn.js:21","options",t),new Promise(((e,n)=>{uni.$chat.getMessageList(t).then((t=>{e(t)})).catch((e=>{g("log","at pages/news/chat/fn.js:26","Promise reject",e),n(e)}))}))})({msgId:o.id,chatType:o.type,nextReqMessageID:u.value}).then((n=>{const a=n.data;1==p.value&&(l.value.length=0),l.value.unshift(...a.messageList.map((e=>{try{e.messageType=1,e.type===mc.TYPES.MSG_CUSTOM&&e.payload.data&&(e.payload.data&&(e.payload.data=JSON.parse(e.payload.data)),e.payload.data.data&&(e.payload.data.data=JSON.parse(e.payload.data.data)),["1","group_create"].includes(e.payload.data.businessID)&&(e.messageType=2))}catch(t){g("log","at pages/news/chat/chat.vue:188","map catch",t)}return e}))),p.value++,g("log","at pages/news/chat/chat.vue:193","getHistoryMsg then",a.messageList.length,l.value,n),u.value=a.nextReqMessageID||void 0,e.nextTick((()=>{t()}))})).finally((()=>{s.value=!1}))):setTimeout((function(){T(t)}),200)}function M(){uni.createSelectorQuery().in(n).select("#scroll-content").boundingClientRect((e=>{d.value=e.height,uni.pageScrollTo({scrollTop:d.value,duration:0})})).exec()}function N(e){0==e.scrollTop&&S()}function w(){L({message:uni.$chat.createTextMessage({to:o.id,conversationType:o.type,payload:{text:i.value},needReadReceipt:!0}),success:()=>{i.value=""}})}function b(e){g("log","at pages/news/chat/chat.vue:267","handlePlusSend",e),L({message:e})}function L(e){uni.$chat.sendMessage(e.message).then((t=>{g("log","at pages/news/chat/chat.vue:280","rs",t),e.success&&e.success(),T(M())})).catch((e=>{g("log","at pages/news/chat/chat.vue:285","sendMsg error:",e)}))}function P(e){h.value=e,Te.news.getRedbag({data:{bagId:e.payload.data.id}}).then((e=>{if(g("log","at pages/news/chat/chat.vue:301","getRedbag",e),200==e.code){const t=e.data;h.value.payload.data={...t,businessID:"redPacket"};let n={...h.value};return n.payload.data=JSON.stringify(o.payload.data),void uni.$chat.modifyMessage(n).then((e=>{g("log","at pages/news/chat/chat.vue:316","modifyMessage success",e)})).catch((e=>{g("log","at pages/news/chat/chat.vue:318","modifyMessage catch",e)}))}Me.alert({content:e.msg,showCancel:!1})})),n.$refs.RedPacket.open()}function A(){0==h.value.payload.data.status&&Te.news.grabred({data:{id:h.value.payload.data.id}}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):P(h.value)}))}function R(e){i.value=i.value+e}function V(e){v.value!==e?v.value=e:v.value="input"}function B(){V("input")}function x(e){g("log","at pages/news/chat/chat.vue:373","handlePlusSend",e),L({message:e})}E((t=>{t.name&&uni.setNavigationBarTitle({title:t.name}),t.msgId&&(o.id=t.msgId),t.type&&(o.type=t.type),function(){let e=function(e){l.value.push(...e.data)};uni.$chat.on(mc.EVENT.MESSAGE_RECEIVED,e)}(),T(M),uni.onKeyboardHeightChange((t=>{G.value.height=t.height+"px",e.nextTick((()=>{M()}))}))})),C((()=>{uni.createSelectorQuery().in(n).select("#tool").boundingClientRect((e=>{m.value=e.height})).exec(),y.value=uni.createVideoContext("video")})),I((e=>{N(e)})),k((()=>{uni.offKeyboardHeightChange((()=>{})),y.value.stop()}));const U=e.ref(!1),G=e.ref({height:"0px",duration:"0.25s"});function F(t){G.value=t.detail,e.nextTick((()=>{U.value=t.detail.height>0}))}function Y(e){_.value=e.payload.videoUrl,y.value.requestFullScreen(),y.value.requestFullScreen()}function H(e){g("log","at pages/news/chat/chat.vue:415","onScreenChange",e),e.fullScreen||y.value.pause()}return(t,n)=>{const a=f(e.resolveDynamicComponent("uni-easyinput"),ma),s=f(e.resolveDynamicComponent("uni-icons"),D),r=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"app"},[e.createElementVNode("scroll-view",{class:"scroll-view","scroll-y":"","scroll-with-animation":!0,"scroll-top":d.value,onScroll:N,onScrolltoupper:S},[e.createElementVNode("view",{id:"scroll-content",style:{padding:"30rpx 30rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:n},[2==t.messageType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},["group_create"===t.payload.data.businessID?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mtb30 tac c999 f22"},"群组创建成功")):e.createCommentVNode("",!0)],64)):1==t.messageType?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["message",[t.from===c.value.userId?"self":"friend"]])},[t.from===c.value.userId?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("image",{src:e.unref(Me).format_url(c.value.userPortrait,"img"),class:"avatar",mode:"widthFix"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",{key:1},[e.createElementVNode("image",{src:t.avatar,class:"avatar",mode:"widthFix"},null,8,["src"])])),e.createElementVNode("view",{class:"df fdc mlr20"},[t.from!=c.value.userId?(e.openBlock(),e.createElementBlock("view",{key:0,class:"df fdc"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(t.nick),1)])):e.createCommentVNode("",!0),e.createVNode(e.unref(Mc),{item:t,msg:o,onOpenRedBag:P,onViewVideo:Y},null,8,["item","msg"])])],2)):e.createCommentVNode("",!0)])))),128)),U.value?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({height:`${G.value.height}px`,transition:`${G.value.duration}s`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"ghost",style:e.normalizeStyle({height:m.value+"px"})},null,4)])],40,["scroll-top"])]),e.createElementVNode("view",{class:"tool",id:"tool"},[e.createElementVNode("view",{class:"tool-group",style:{background:"#F6F6F6"}},[e.createElementVNode("image",{src:e.unref("/static/news-voice.png"),mode:"widthFix",class:"thumb",onClick:n[0]||(n[0]=e=>V("voice"))},null,8,["src"]),"voice"==v.value?(e.openBlock(),e.createBlock(bc,{key:0,onSend:x,msg:o},null,8,["msg"])):e.createCommentVNode("",!0),"voice"!=v.value?(e.openBlock(),e.createBlock(a,{key:1,onFocus:B,type:"text",modelValue:i.value,"onUpdate:modelValue":n[1]||(n[1]=e=>i.value=e),clearable:!1,class:"input","adjust-position":!1,onKeyboardheightchange:F,placeholder:"请输入你的问题",confirmType:"发送"},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("image",{src:e.unref("/static/news-emoji.png"),mode:"widthFix",class:"thumb",onClick:n[2]||(n[2]=e=>V("emoji"))},null,8,["src"]),i.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"send",onClick:w},"发送")):(e.openBlock(),e.createElementBlock("image",{key:2,src:e.unref("/static/news-plus.png"),mode:"widthFix",class:"thumb",onClick:n[3]||(n[3]=e=>V("plus"))},null,8,["src"]))]),U.value?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({height:`${G.value.height}px`,transition:`${G.value.duration}s`})},null,4)):e.createCommentVNode("",!0),"emoji"==v.value?(e.openBlock(),e.createBlock(wc,{key:1,onSetEmoj:R})):e.createCommentVNode("",!0),"plus"==v.value?(e.openBlock(),e.createBlock(Lc,{key:2,onSend:b,msg:o},null,8,["msg"])):e.createCommentVNode("",!0)]),e.createElementVNode("video",{src:_.value,id:"video",onFullscreenchange:H},null,40,["src"]),e.createVNode(r,{ref:"RedPacket",type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"red-bag br20",onTouchmove:n[4]||(n[4]=e.withModifiers((()=>{}),["stop","prevent"]))},[e.createElementVNode("view",{class:"rbag_top"},[e.createElementVNode("view",{class:"user fmid"},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{class:"wh80 cir",src:h.value.avatar,mode:"scaleToFill"},null,8,["src"])]),e.createElementVNode("view",{class:"ml15 f32"},e.toDisplayString(h.value.nick)+"的红包",1)]),e.createElementVNode("view",{class:"app_name mt15 tac f40"},e.toDisplayString(h.value.payload.data.name),1),h.value.payload.data.receive?(e.openBlock(),e.createElementBlock("view",{key:0,class:"amount f32"},[e.createElementVNode("text",{class:""},"已领取"),e.createElementVNode("text",{class:"value"},e.toDisplayString(h.value.payload.data.randomAmount),1),1==h.value.payload.data.type?(e.openBlock(),e.createElementBlock("text",{key:0,class:"unit"},"积分")):2==h.value.payload.data.type?(e.openBlock(),e.createElementBlock("text",{key:1,class:"unit"},"余额")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"open_rbag_btn pr fmid",onClick:A},[h.value.payload.data.receive?(e.openBlock(),e.createElementBlock("text",{key:0},"已")):e.createCommentVNode("",!0),e.createElementVNode("text",null,"开")])],32),e.createElementVNode("view",{class:"tac mt35",onClick:n[5]||(n[5]=e.withModifiers((e=>t.$refs.RedPacket.close()),["stop"]))},[e.createVNode(s,{type:"close",color:"#fbd977",size:"32"})])])),_:1},512)],64)}}},Ac=w(Pc,[["__scopeId","data-v-e2ccffae"]]),Rc={inject:["util"],data:()=>({randomAmount:void 0,sendType:null,blessing:"恭喜发财",money:.01,username:null,receivedNumber:8,SumNumber:10,receivedMoney:5.43,SumMoney:10,receivedList:[],radius:"100% 100% 0 0"}),methods:{grabredLog(){let{bagId:e}=this.$route.query;Te.news.grabredLog({bagId:e}).then((e=>{let t=0;e.rows.length>0&&e.rows.forEach(((e,n)=>{const{userNickname:a,userPortrait:o,amount:i,createTime:s}=e;i>t&&(t=e.amount),this.receivedList.push({userNickname:a,face:this.util.format_url(o),createTime:s,amount:i,islucky:!1})})),this.receivedList[0].islucky=!0}))},getUserinfo(e){Te.video.getUserInfo({query:{userId:e}}).then((e=>{this.username=e.data.userNickname}))},getRedbag(){let{bagId:e}=this.$route.query;redEnvelope.getRedbag({bagId:e}).then((e=>{var t;const{all:n,num:a,residue:o,score:i,balance:s,sendType:r,userId:c}=e.data;switch(this.receivedNumber=n-a,this.SumNumber=n,this.randomAmount=null==(t=e.data)?void 0:t.randomAmount,this.sendType=r,r){case 1:this.SumMoney=i;break;case 2:this.SumMoney=s}this.receivedMoney=this.SumMoney-o,this.getUserinfo(c)}))}},mounted(){this.getRedbag(),this.grabredLog()},onPageScroll(e){if(e.scrollTop>100)return;let t=100-e.scrollTop;this.radius=t+"% "+t+"% 0 0"}};const Oc=w(Rc,[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"top"},[e.createElementVNode("view",{class:"blessing"},e.toDisplayString(i.blessing),1),i.randomAmount?(e.openBlock(),e.createElementBlock("view",{key:0,class:"money"},e.toDisplayString(i.randomAmount),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"money"}," 暂无记录 ")),e.createElementVNode("view",{class:"face",style:e.normalizeStyle({"border-radius":`${i.radius}`})},[e.createElementVNode("image",{src:"/static/img/im/face/face_11.jpg"})],4),e.createElementVNode("view",{class:"username"},e.toDisplayString(i.username)+"的红包 ",1)]),e.createElementVNode("view",{class:"info"},e.toDisplayString(`已领取${i.receivedNumber}/${i.SumNumber} 个,共${i.receivedMoney}/${i.SumMoney}${1==i.sendType?"积分":"元"}`),1),i.receivedList.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.receivedList,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"row",key:n},[e.createElementVNode("view",{class:"left"},[e.createElementVNode("image",{src:t.face},null,8,["src"])]),e.createElementVNode("view",{class:"right"},[e.createElementVNode("view",{class:"r1"},[e.createElementVNode("view",{class:"username"},e.toDisplayString(t.userNickname),1),e.createElementVNode("view",{class:"money"},e.toDisplayString(`${t.amount}${1==i.sendType?"积分":"元"}`),1)]),e.createElementVNode("view",{class:"r2"},[e.createElementVNode("view",{class:"time"},e.toDisplayString(t.createTime),1),t.islucky?(e.openBlock(),e.createElementBlock("view",{key:0,class:"lucky"}," 手气王 ")):e.createCommentVNode("",!0)])])])))),128))])):e.createCommentVNode("",!0)],64)}]]),Vc="/static/mine-ruzhushangjia.png",Bc="/static/mien-dianpuguanli.png",xc="/static/mine-dingdanguanli.png",Uc=w({__name:"mine",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo||{})),o=e.ref(!1);function i(e){uni.navigateTo({url:e})}return I((e=>{e.scrollTop>44?o.value=!0:o.value=!1})),(t,n)=>{const s=f(e.resolveDynamicComponent("uni-icons"),D),r=f(e.resolveDynamicComponent("footerMenu"),Vn);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"app"},[e.createElementVNode("view",{class:e.normalizeClass(["apex",{active:o.value}])},[e.createVNode(e.unref(qr)),e.createElementVNode("view",{class:"head rows"},[e.createElementVNode("view",{class:""}),e.createElementVNode("view",{class:""},"个人中心"),e.createElementVNode("view",{class:""})])],2),e.createElementVNode("view",{class:"shopHeaderBg"}),e.createElementVNode("view",{class:"header pr mtb30 mlr20"},[e.createVNode(e.unref(qr)),e.createElementVNode("view",{class:"userinfo rows"},[e.createElementVNode("image",{class:"avatar wh130 cir",src:a.value.userPortrait,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"info f1 mlr30"},[e.createElementVNode("view",{class:"nickname f34"},e.toDisplayString(a.value.userNickname),1),e.createElementVNode("view",{class:"address df aic mt15 f28 c666",onClick:n[0]||(n[0]=e=>i("/pages/mine/delivery-address/index"))},[e.createElementVNode("image",{class:"wh30",src:"/static/mine-dingwei.png",mode:"aspectFill"}),e.createElementVNode("text",null,"收货地址")])]),e.createElementVNode("view",{class:"df"},[e.createElementVNode("image",{class:"ml20 wh40",onClick:n[1]||(n[1]=e=>i("customer_service")),src:"/static/mine-kefu.png",mode:"aspectFill"}),e.createElementVNode("image",{class:"ml20 wh40",onClick:n[2]||(n[2]=e=>i("/pages/mine/setting/setting")),src:"/static/mine-shezhi.png",mode:"aspectFill"})])])]),e.createElementVNode("view",{class:"wallet rows mtb10 mlr20 ptb20 plr20 bfff br20",onClick:n[3]||(n[3]=e=>i("/pages/index/wallet"))},[e.createElementVNode("image",{class:"wh80",src:"/static/mine-wallet.png",mode:"aspectFill"}),e.createElementVNode("view",{class:"mlr20 f1 f36 c333"},"我的钱包"),e.createElementVNode("view",{class:"right df aic"},[e.createElementVNode("text",null,"查看余额"),e.createVNode(s,{type:"right"})])]),e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"header mtb20 rows"},[e.createElementVNode("text",{class:"title c333 f30"},"我的订单"),e.createElementVNode("view",{class:"df aic",onClick:n[4]||(n[4]=e=>i("/pages/shop/order/index"))},[e.createElementVNode("text",{class:"c999 f26 mr20"},"全部"),e.createVNode(s,{type:"right"})])]),e.createElementVNode("view",{class:"main ptb20 f24"},[e.createElementVNode("view",{class:"item ver"},[e.createElementVNode("image",{src:"/static/mine-daifukuan.png",mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"待付款")]),e.createElementVNode("view",{class:"item ver"},[e.createElementVNode("image",{src:"/static/mine-daifahuo.png",mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"待发货")]),e.createElementVNode("view",{class:"item ver"},[e.createElementVNode("image",{src:"/static/mine-daishouhuo.png",mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"待收货")]),e.createElementVNode("view",{class:"item ver"},[e.createElementVNode("image",{src:"/static/mine-daipingjia.png",mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"评价")]),e.createElementVNode("view",{class:"item ver"},[e.createElementVNode("image",{src:"/static/mine-tuikuan_shouhou.png",mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"退款/售后")])])]),e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"main ptb20 f24"},[e.createElementVNode("view",{class:"item ver",onClick:n[5]||(n[5]=e=>i("/pages/shop/collect"))},[e.createElementVNode("image",{src:"/static/mine-wodeshoucang.png",mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"商品收藏")]),e.createElementVNode("view",{class:"item ver",onClick:n[6]||(n[6]=e=>i("/pages/shop/focusStore"))},[e.createElementVNode("image",{src:"/static/mine-dianpushoucang.png",mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"店铺收藏")]),e.createElementVNode("view",{class:"item ver",onClick:n[7]||(n[7]=e=>i("/pages/shop/history"))},[e.createElementVNode("image",{src:"/static/mine-lishijilu.png",mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"历史浏览")]),e.createElementVNode("view",{class:"item ver",onClick:n[8]||(n[8]=e=>i("/pages/shop/coupon"))},[e.createElementVNode("image",{src:"/static/mine-youhuiquan.png",mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"优惠券")])])]),e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"header ptb10 rows"},[e.createElementVNode("text",{class:"title c333 f30"},"商家管理")]),e.createElementVNode("view",{class:"main ptb20 f24"},[(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"item ver",onClick:n[10]||(n[10]=e=>i("/pages/shop/settle"))},[e.createElementVNode("image",{src:Vc,mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"店铺管理")]),e.createElementVNode("view",{class:"item ver",onClick:n[11]||(n[11]=e=>i("/pages/merchant/business-operator/index"))},[e.createElementVNode("image",{src:Bc,mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"商品管理")]),e.createElementVNode("view",{class:"item ver",onClick:n[12]||(n[12]=e=>i("pages/merchant/order/index"))},[e.createElementVNode("image",{src:xc,mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"订单管理")]),e.createElementVNode("view",{class:"item ver"},[e.createElementVNode("image",{src:"/static/mine-kehuxiaoxi.png",mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"客户消息")])],64))])]),e.createElementVNode("view",{class:"recommend mtb20 mlr20"},[e.createVNode(e.unref(Bn),{choicenessTitle:"true"})])]),e.createVNode(r,{ref:"footerMneuRef",page:"mine"},null,512)],64)}}},[["__scopeId","data-v-cffabc67"]]),Gc=w({__name:"setting",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo)),o=[{id:mc.TYPES.ALLOW_TYPE_ALLOW_ANY,name:"允许任何人添加"},{id:mc.TYPES.ALLOW_TYPE_NEED_CONFIRM,name:"需要确认才能添加"},{id:mc.TYPES.ALLOW_TYPE_DENY_ANY,name:"不允许任何人添加 "}],i=e.ref(0),s=e.ref({}),r=e.ref(0);function c(e){const t=e.detail.value;t!==i.value&&(i.value=t,uni.$chat.updateMyProfile({allowType:o[i.value].id}))}function l(e){uni.navigateTo({url:e})}function u(){Me.alert({title:"提示",content:"确定退出登录?"}).then((e=>{e.confirm&&Me.logout((()=>{plus.runtime.restart()}))}))}return E((()=>{Me.isLogin((()=>{uni.$chat.getMyProfile().then((e=>{const t=e.data;s.value=t,i.value=o.findIndex((e=>e.id==t.allowType))}))}));let e=uni.getSystemInfoSync();r.value=e.appVersion})),(t,n)=>{const d=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"area"},[e.createElementVNode("view",{class:"line rows",onClick:n[0]||(n[0]=e=>{return t="/pages/mine/userinfo",void Me.isLogin().then((()=>{l(t)})).catch((()=>{l("/pages/login/login")}));var t})},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{class:"head-portrait wh80",src:a.value.userPortrait,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"info f1 ml20"},[e.createElementVNode("view",{class:""},e.toDisplayString(a.value.userNickname),1)])]),(a.value.id,e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"line rows"},[e.createElementVNode("view",{class:""},"修改账号"),e.createElementVNode("view",{class:"f1 tar c999 f28"},e.toDisplayString(a.value.account),1)]),e.createElementVNode("view",{class:"line rows"},[e.createElementVNode("view",{class:""},"绑定手机号"),e.createElementVNode("view",{class:"f1 tar c999 f28"},e.toDisplayString(a.value.phoneNumber),1)]),e.createElementVNode("view",{class:"line rows",onClick:n[1]||(n[1]=e=>l("/pages/mine/realname"))},[e.createElementVNode("view",{class:"key"},"实名认证"),e.createElementVNode("view",{class:"col f1 ml20 tar c999 f28"},[a.value.isRealName?(e.openBlock(),e.createElementBlock("view",{key:0,class:""},"已认证")):(e.openBlock(),e.createElementBlock("view",{key:1,class:""},"未认证"))]),e.createVNode(d,{class:"ml20",type:"right"})])],64))]),(a.value.id,e.openBlock(),e.createElementBlock("view",{key:0,class:"area"},[e.createElementVNode("view",{class:"line rows",onClick:n[2]||(n[2]=e=>l("/pages/mine/setting/usePay"))},[e.createElementVNode("view",{class:""},"先用后付"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows"},[e.createElementVNode("view",{class:""},"二级密码"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows"},[e.createElementVNode("view",{class:""},"登录密码"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows"},[e.createElementVNode("view",{class:""},"邮箱"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows ptb20 plr10",onClick:n[3]||(n[3]=e=>l("/pages/mine/setting/teen"))},[e.createElementVNode("view",{class:""},"青少年模式"),e.createElementVNode("view",{class:"f1 tar"},[e.createVNode(d,{type:"right"})])]),s.value.userID?(e.openBlock(),e.createElementBlock("view",{key:0,class:"line"},[e.createElementVNode("picker",{range:o,"range-key":"name",onChange:c,value:i.value},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:""},"好友验证方式"),e.createElementVNode("view",{class:"value mlr20 f1 tar c666 f28"},e.toDisplayString(o[i.value].name),1),e.createVNode(d,{type:"right"})])],40,["value"])])):e.createCommentVNode("",!0)])),e.createElementVNode("view",{class:"area"},[e.createElementVNode("view",{class:"line rows",onClick:n[4]||(n[4]=e=>l("/pages/mine/setting/safeCenter"))},[e.createElementVNode("view",{class:""},"安全中心"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows",onClick:n[5]||(n[5]=e=>l("/pages/mine/setting/binding"))},[e.createElementVNode("view",{class:""},"我的绑定"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows",onClick:n[6]||(n[6]=e=>l("/pages/mine/setting/bankCard"))},[e.createElementVNode("view",{class:""},"我的银行卡"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows"},[e.createElementVNode("view",{class:""},"意见反馈"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows"},[e.createElementVNode("view",{class:""},"关于我们"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows",onClick:n[7]||(n[7]=t=>l(e.unref(Me).setUrl("/pages/index/article",{id:6})))},[e.createElementVNode("view",{class:""},"用户协议"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows",onClick:n[8]||(n[8]=t=>l(e.unref(Me).setUrl("/pages/index/article",{id:1})))},[e.createElementVNode("view",{class:""},"隐私政策"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows ptb20 plr10"},[e.createElementVNode("view",{class:""},"版本号"),e.createElementVNode("view",{class:"c999 f28"},e.toDisplayString(r.value),1)])]),e.createElementVNode("view",{class:"mtb30 c999"},[e.createElementVNode("view",{class:"mtb5"},[e.createElementVNode("view",{onClick:n[9]||(n[9]=e=>l("/pages/mine/switch-accounts/index")),class:"btn"},"切换账号")]),e.createElementVNode("view",{class:"mtb5"},[e.createElementVNode("view",{onClick:u,class:"btn"},"退出登录")])]),e.createElementVNode("view",{class:"fill",style:{height:"30rpx"}})])}}},[["__scopeId","data-v-519de1ac"]]),Fc=w({__name:"userinfo",setup(t){const n=O(),a=e.reactive({}),o=e.reactive([{id:0,name:"男"},{id:1,name:"女"}]),i=e.ref(0);function s(e){const t=e.detail.value;a.birthday!==t&&(a.birthday=t)}function r(e){const t=e.detail.value;i.value!==t&&(i.value=t)}function c(e){Me.upload_image({value:a[e],type:1,success:t=>{a[e]=t.value}})}function l(){o[i.value]&&(a.sex=o[i.value].id);const e={...a};Te.mine.updateUserInfo({data:e}).then((e=>{if(200===e.code)return n.commit("setState",{key:"userinfo",value:Object.assign(n.state.userinfo,a)}),void Me.alert("修改成功");Me.alert({content:e.msg,showCancel:!1})}))}return E((()=>{!function(){const e=n.state.userinfo;a.background=e.background,a.account=e.account,a.userAccount=e.userAccount,a.userNickname=e.userNickname,a.homeTown=e.homeTown,a.personalSignature=e.personalSignature,a.id=e.id+"",a.birthday=e.birthday,i.value=o.findIndex((t=>t.id==e.sex))}()})),(t,n)=>{const u=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"bgBox pr"},[e.createElementVNode("view",{class:"bg pfull"},[e.createElementVNode("image",{src:a.background,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"window pfull"}),e.createElementVNode("view",{class:"content pr fmid fdc cfff"},[e.createElementVNode("view",{class:"avatarBox cir",onClick:n[0]||(n[0]=e.withModifiers((e=>c("avatar")),["stop"]))},[e.createElementVNode("image",{class:"avatar wh200 cir",src:a.avatar,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"nickname mt5 f28"},"更换头像"),e.createElementVNode("view",{class:"changeBg btn sm pa t0 r0 mr20 mt20 plr20",onClick:n[1]||(n[1]=e=>c("background"))},"修改背景")])]),e.createElementVNode("view",{class:"info oh pr plr35 c333 bfff br20"},[e.createElementVNode("view",{class:"title mtb20 f36 b"},"我的资料"),e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"key"},"账号"),e.createElementVNode("view",{class:"value tar f1"},[e.createElementVNode("text",null,e.toDisplayString(a.account),1)])]),e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"key"},"昵称"),e.createElementVNode("view",{class:"value tar f1"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":n[2]||(n[2]=e=>a.userNickname=e),placeholder:"请输入昵称"},null,512),[[e.vModelText,a.userNickname]])]),e.createVNode(u,{type:"right"})]),e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"key"},"生日"),e.createElementVNode("picker",{class:"value tar f1",mode:"date",onChange:s},[a.birthday?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(a.birthday),1)):(e.openBlock(),e.createElementBlock("text",{key:1},"请选择"))],32),e.createVNode(u,{type:"right"})]),e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"key"},"性别"),e.createElementVNode("picker",{class:"value tar f1",range:o,value:i.value,"range-key":"name",onChange:r},[-1==i.value?(e.openBlock(),e.createElementBlock("text",{key:0},"请选择")):(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(o[i.value].name),1))],40,["range","value"]),e.createVNode(u,{type:"right"})]),e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"key"},"家乡"),e.createElementVNode("view",{class:"value tar f1"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":n[3]||(n[3]=e=>a.homeTown=e),placeholder:"请输入你的家乡"},null,512),[[e.vModelText,a.homeTown]])]),e.createVNode(u,{type:"right"})]),e.createElementVNode("view",{class:"line ptb20"},[e.createElementVNode("view",{class:"key"},"个性签名"),e.createElementVNode("view",{class:"value textareaBox inputBox mt20 ptb20 plr20"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":n[4]||(n[4]=e=>a.personalSignature=e),placeholder:"写点什么介绍下自己",style:{height:"300rpx"}},null,512),[[e.vModelText,a.personalSignature]])])]),e.createElementVNode("view",{class:"fill",style:{height:"150rpx"}}),e.createElementVNode("view",{class:"footer bfff shadow"},[e.createElementVNode("view",{class:"btn lg colourful mlr30",onClick:l},"保存")])])])}}},[["__scopeId","data-v-2ef21509"]]),Yc=w({__name:"index",setup(t){const{checkLink:n,showToastAndRedirect:a,alert:o,finalLogin:i}=e.inject("util"),{userinfo:s}=O().state,r=e.ref([]),c=e.ref(null);(()=>{try{const e=uni.getStorageSync("userInfoList");r.value=e,g("log","at pages/mine/switch-accounts/index.vue:67","===================================="),g("log","at pages/mine/switch-accounts/index.vue:68",e),g("log","at pages/mine/switch-accounts/index.vue:69","====================================")}catch(e){g("log","at pages/mine/switch-accounts/index.vue:71","===================================="),g("log","at pages/mine/switch-accounts/index.vue:72","error",e),g("log","at pages/mine/switch-accounts/index.vue:73","====================================")}})();const l=e.ref(!1),u=[{text:"删除",style:{backgroundColor:"#FF4949"}}],d=()=>{l.value=!l.value,c.value.closeAll(),l||(uni.setStorageSync("userInfoList",r.value),a("保存成功","success"))},m=(e,t)=>{if(g("log","at pages/mine/switch-accounts/index.vue:124","===================================="),g("log","at pages/mine/switch-accounts/index.vue:125",e),g("log","at pages/mine/switch-accounts/index.vue:126","===================================="),"right"===e.position)r.value.splice(t,1)},p=e=>{g("log","at pages/mine/switch-accounts/index.vue:140","change",e)};return(t,h)=>{const v=f(e.resolveDynamicComponent("uni-swipe-action-item"),lc),_=f(e.resolveDynamicComponent("uni-swipe-action"),uc);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(tc,{title:"个人信息"},{right:e.withCtx((()=>[e.createElementVNode("text",{onClick:d,class:"text-primary"},e.toDisplayString(l.value?"保存":"管理"),1)])),_:1}),e.createElementVNode("view",{class:"app"},[e.createVNode(_,{ref_key:"swipeAction",ref:c,class:"uni-swipe-action"},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,((t,n)=>(e.openBlock(),e.createBlock(v,{class:"item-box",key:n,"right-options":u,"auto-close":!0,onChange:p,onClick:m,disabled:!l.value},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content-box content-box-p content-box-b",onClick:e.withModifiers((e=>(e=>{e.userId!==s.userId?Me.logout((()=>{Te.login.userLoginByPassword({data:{userPhone:e.userPhone,userPassword:e.userPassword,userImei:uni.getSystemInfoSync().deviceId}}).then((e=>{g("log","at pages/mine/switch-accounts/index.vue:97","userLoginByPassword",e),200!=e.code?o({content:e.msg,showCancel:!1}):i(e)}))})):a("已登录","error")})(t)),["stop"])},[e.createElementVNode("view",{class:"avatar-box bfff"},[e.createElementVNode("image",{class:"avatar float-right",src:t.userPortrait,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("text",{class:"account-text"},e.toDisplayString(t.userNickname),1)]),t.userId==e.unref(s).userId?(e.openBlock(),e.createElementBlock("text",{key:0,class:"current-login"},"当前登录")):e.createCommentVNode("",!0)],8,["onClick"])])),_:2},1032,["disabled"])))),128)),e.createVNode(v,{class:"item-box",onClick:h[0]||(h[0]=t=>e.unref(n)("pages/login/loginPhone"))},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"add-account-number content-box-p content-box-b"},[e.createElementVNode("text",{class:"add-item float-right"},"+"),e.createElementVNode("text",{class:"account-text"},"添加账号")])])),_:1})])),_:1},512),e.createElementVNode("view",{class:"fill",style:{height:"90rpx"}})])],64)}}},[["__scopeId","data-v-af3fb102"]]),Hc="/static/mine-pay-use.png",Zc=w({__name:"usePay",setup(t){e.ref(!1);const n=()=>{g("log","at pages/mine/setting/usePay.vue:44","===================================="),g("log","at pages/mine/setting/usePay.vue:45","关闭服务"),g("log","at pages/mine/setting/usePay.vue:46","====================================")};return(t,a)=>{const o=f(e.resolveDynamicComponent("uni-section"),Hn);return e.openBlock(),e.createElementBlock("view",{class:"jy-pay-use pr"},[(e.openBlock(),e.createElementBlock("view",{key:1,class:"container-close"},[e.createElementVNode("image",{src:e.unref(Hc),mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",null,[e.createElementVNode("span",null,"先用后付"),e.createElementVNode("span",{class:"success"},"开通成功")]),e.createElementVNode("text",{class:"reel"},"购买卷轴用户可享用"),e.createElementVNode("view",{class:"edit-box"},[e.createVNode(o,{title:"当前可用额度(元)"},{right:e.withCtx((()=>[e.createElementVNode("view",{class:"df"},[e.createElementVNode("text",null,"3000"),e.createTextVNode("/"),e.createElementVNode("text",null,"3000")])])),_:1})])])),e.createElementVNode("view",{class:"footer plr30",onClick:n,style:e.normalizeStyle({bottom:e.unref(Gn)()})},[e.createElementVNode("view",{class:"btn lg bar black"},e.toDisplayString(e.unref(Hc)?"关闭服务":"开启服务"),1)],4)])}}},[["__scopeId","data-v-e34483db"]]),qc=w({__name:"realname",setup(t){const n=h("Hisign-Face"),a=O(),o=e.reactive({name:"",userId:"",idCard:"",signData:""}),i=e.ref(""),s=e.computed((()=>a.state.userinfo)),r=e.computed((()=>{let e=s.value.idCard||"";return e&&(e=e.slice(0,1)+"*".repeat(s.value.idCard.length-2)+e.slice(-1)),e}));function c(){n.startLive({openSound:!0,signKey:"HISP1YFG44LQ29W0"},(e=>{g("log","at pages/mine/realname.vue:60","startLive",e),0==e.errorCode?i.value=e.liveImage:1==e.errorCode&&"活体检测未通过"==e.errorMessage&&Me.alert({title:"系统提示",content:"检测失败请重试",showCancel:!1})}))}function l(){const e={...o};e.name?e.idCard?i.value?(e.userId=s.value.userId,e.signData=i.value,Te.mine.certification({data:e}).then((e=>{if(g("log","at pages/mine/realname.vue:105","certification",e),200==e.code)return Me.alert("认证成功"),Me.getUserinfo(),void setTimeout((()=>{uni.navigateBack()}),500);Me.alert({content:e.msg,showCancel:!1})}))):Me.alert("请先进行人脸识别"):Me.alert("用户身份证号不能为空"):Me.alert("真实姓名不能为空")}return(t,n)=>s.value.isRealName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"ver"},[e.createElementVNode("image",{class:"authImg",src:"/static/mineAuth.png",mode:"aspectFill"}),e.createElementVNode("view",{class:"mt30 tac c666 f30"},[e.createElementVNode("view",{class:""},e.toDisplayString(s.value.name),1),e.createElementVNode("view",{class:"mt50"},e.toDisplayString(r.value),1)])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"container"},[e.createElementVNode("view",{class:"line df aic"},[e.createElementVNode("view",{class:"key"},"真实姓名"),e.createElementVNode("view",{class:"value"},[e.withDirectives(e.createElementVNode("input",{class:"input",type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>o.name=e),placeholder:"请输入姓名"},null,512),[[e.vModelText,o.name]])])]),e.createElementVNode("view",{class:"line df aic"},[e.createElementVNode("view",{class:"key"},"身份证号"),e.createElementVNode("view",{class:"value"},[e.withDirectives(e.createElementVNode("input",{class:"input",type:"text","onUpdate:modelValue":n[1]||(n[1]=e=>o.idCard=e),placeholder:"请输入身份证号"},null,512),[[e.vModelText,o.idCard]])])]),e.createElementVNode("view",{class:"line df aic"},[e.createElementVNode("view",{class:"key"},"人脸识别"),e.createElementVNode("view",{class:"value"},[e.createElementVNode("view",{class:"recognize",onClick:c},[i.value?(e.openBlock(),e.createElementBlock("text",{key:0},"重新识别")):(e.openBlock(),e.createElementBlock("text",{key:1},"开始识别"))])])]),e.createElementVNode("view",{class:"btn bar lg black mtb60 mlr60",onClick:l},"提交")]))}},[["__scopeId","data-v-f6a74926"]]);var jc=[{name:"北京",city:[{name:"北京市",area:[{name:"东城区",id:"110101"},{name:"西城区",id:"110102"},{name:"朝阳区",id:"110105"},{name:"丰台区",id:"110106"},{name:"石景山区",id:"110107"},{name:"海淀区",id:"110108"},{name:"门头沟区",id:"110109"},{name:"房山区",id:"110111"},{name:"通州区",id:"110112"},{name:"顺义区",id:"110113"},{name:"昌平区",id:"110114"},{name:"大兴区",id:"110115"},{name:"怀柔区",id:"110116"},{name:"平谷区",id:"110117"},{name:"密云县",id:"110228"},{name:"延庆县",id:"110229"}]}]},{name:"天津",city:[{name:"天津市",area:[{name:"和平区",id:"120101"},{name:"河东区",id:"120102"},{name:"河西区",id:"120103"},{name:"南开区",id:"120104"},{name:"河北区",id:"120105"},{name:"红桥区",id:"120106"},{name:"东丽区",id:"120110"},{name:"西青区",id:"120111"},{name:"津南区",id:"120112"},{name:"北辰区",id:"120113"},{name:"武清区",id:"120114"},{name:"宝坻区",id:"120115"},{name:"滨海新区",id:"120116"},{name:"宁河县",id:"120221"},{name:"静海县",id:"120223"},{name:"蓟县",id:"120225"}]}]},{name:"河北省",city:[{name:"石家庄市",area:[{name:"长安区",id:"130102"},{name:"桥西区",id:"130104"},{name:"新华区",id:"130105"},{name:"井陉矿区",id:"130107"},{name:"裕华区",id:"130108"},{name:"藁城区",id:"130109"},{name:"鹿泉区",id:"130110"},{name:"栾城区",id:"130111"},{name:"井陉县",id:"130121"},{name:"正定县",id:"130123"},{name:"行唐县",id:"130125"},{name:"灵寿县",id:"130126"},{name:"高邑县",id:"130127"},{name:"深泽县",id:"130128"},{name:"赞皇县",id:"130129"},{name:"无极县",id:"130130"},{name:"平山县",id:"130131"},{name:"元氏县",id:"130132"},{name:"赵县",id:"130133"},{name:"辛集市",id:"130181"},{name:"晋州市",id:"130183"},{name:"新乐市",id:"130184"}]},{name:"唐山市",area:[{name:"路南区",id:"130202"},{name:"路北区",id:"130203"},{name:"古冶区",id:"130204"},{name:"开平区",id:"130205"},{name:"丰南区",id:"130207"},{name:"丰润区",id:"130208"},{name:"曹妃甸区",id:"130209"},{name:"滦县",id:"130223"},{name:"滦南县",id:"130224"},{name:"乐亭县",id:"130225"},{name:"迁西县",id:"130227"},{name:"玉田县",id:"130229"},{name:"遵化市",id:"130281"},{name:"迁安市",id:"130283"}]},{name:"秦皇岛市",area:[{name:"海港区",id:"130302"},{name:"山海关区",id:"130303"},{name:"北戴河区",id:"130304"},{name:"青龙满族自治县",id:"130321"},{name:"昌黎县",id:"130322"},{name:"抚宁县",id:"130323"},{name:"卢龙县",id:"130324"}]},{name:"邯郸市",area:[{name:"邯山区",id:"130402"},{name:"丛台区",id:"130403"},{name:"复兴区",id:"130404"},{name:"峰峰矿区",id:"130406"},{name:"邯郸县",id:"130421"},{name:"临漳县",id:"130423"},{name:"成安县",id:"130424"},{name:"大名县",id:"130425"},{name:"涉县",id:"130426"},{name:"磁县",id:"130427"},{name:"肥乡县",id:"130428"},{name:"永年县",id:"130429"},{name:"邱县",id:"130430"},{name:"鸡泽县",id:"130431"},{name:"广平县",id:"130432"},{name:"馆陶县",id:"130433"},{name:"魏县",id:"130434"},{name:"曲周县",id:"130435"},{name:"武安市",id:"130481"}]},{name:"邢台市",area:[{name:"桥东区",id:"130502"},{name:"桥西区",id:"130503"},{name:"邢台县",id:"130521"},{name:"临城县",id:"130522"},{name:"内丘县",id:"130523"},{name:"柏乡县",id:"130524"},{name:"隆尧县",id:"130525"},{name:"任县",id:"130526"},{name:"南和县",id:"130527"},{name:"宁晋县",id:"130528"},{name:"巨鹿县",id:"130529"},{name:"新河县",id:"130530"},{name:"广宗县",id:"130531"},{name:"平乡县",id:"130532"},{name:"威县",id:"130533"},{name:"清河县",id:"130534"},{name:"临西县",id:"130535"},{name:"南宫市",id:"130581"},{name:"沙河市",id:"130582"}]},{name:"保定市",area:[{name:"新市区",id:"130602"},{name:"北市区",id:"130603"},{name:"南市区",id:"130604"},{name:"满城县",id:"130621"},{name:"清苑县",id:"130622"},{name:"涞水县",id:"130623"},{name:"阜平县",id:"130624"},{name:"徐水县",id:"130625"},{name:"定兴县",id:"130626"},{name:"唐县",id:"130627"},{name:"高阳县",id:"130628"},{name:"容城县",id:"130629"},{name:"涞源县",id:"130630"},{name:"望都县",id:"130631"},{name:"安新县",id:"130632"},{name:"易县",id:"130633"},{name:"曲阳县",id:"130634"},{name:"蠡县",id:"130635"},{name:"顺平县",id:"130636"},{name:"博野县",id:"130637"},{name:"雄县",id:"130638"},{name:"涿州市",id:"130681"},{name:"定州市",id:"130682"},{name:"安国市",id:"130683"},{name:"高碑店市",id:"130684"}]},{name:"张家口市",area:[{name:"桥东区",id:"130702"},{name:"桥西区",id:"130703"},{name:"宣化区",id:"130705"},{name:"下花园区",id:"130706"},{name:"宣化县",id:"130721"},{name:"张北县",id:"130722"},{name:"康保县",id:"130723"},{name:"沽源县",id:"130724"},{name:"尚义县",id:"130725"},{name:"蔚县",id:"130726"},{name:"阳原县",id:"130727"},{name:"怀安县",id:"130728"},{name:"万全县",id:"130729"},{name:"怀来县",id:"130730"},{name:"涿鹿县",id:"130731"},{name:"赤城县",id:"130732"},{name:"崇礼县",id:"130733"}]},{name:"承德市",area:[{name:"双桥区",id:"130802"},{name:"双滦区",id:"130803"},{name:"鹰手营子矿区",id:"130804"},{name:"承德县",id:"130821"},{name:"兴隆县",id:"130822"},{name:"平泉县",id:"130823"},{name:"滦平县",id:"130824"},{name:"隆化县",id:"130825"},{name:"丰宁满族自治县",id:"130826"},{name:"宽城满族自治县",id:"130827"},{name:"围场满族蒙古族自治县",id:"130828"}]},{name:"沧州市",area:[{name:"新华区",id:"130902"},{name:"运河区",id:"130903"},{name:"沧县",id:"130921"},{name:"青县",id:"130922"},{name:"东光县",id:"130923"},{name:"海兴县",id:"130924"},{name:"盐山县",id:"130925"},{name:"肃宁县",id:"130926"},{name:"南皮县",id:"130927"},{name:"吴桥县",id:"130928"},{name:"献县",id:"130929"},{name:"孟村回族自治县",id:"130930"},{name:"泊头市",id:"130981"},{name:"任丘市",id:"130982"},{name:"黄骅市",id:"130983"},{name:"河间市",id:"130984"}]},{name:"廊坊市",area:[{name:"安次区",id:"131002"},{name:"广阳区",id:"131003"},{name:"固安县",id:"131022"},{name:"永清县",id:"131023"},{name:"香河县",id:"131024"},{name:"大城县",id:"131025"},{name:"文安县",id:"131026"},{name:"大厂回族自治县",id:"131028"},{name:"霸州市",id:"131081"},{name:"三河市",id:"131082"}]},{name:"衡水市",area:[{name:"桃城区",id:"131102"},{name:"枣强县",id:"131121"},{name:"武邑县",id:"131122"},{name:"武强县",id:"131123"},{name:"饶阳县",id:"131124"},{name:"安平县",id:"131125"},{name:"故城县",id:"131126"},{name:"景县",id:"131127"},{name:"阜城县",id:"131128"},{name:"冀州市",id:"131181"},{name:"深州市",id:"131182"}]}]},{name:"山西省",city:[{name:"太原市",area:[{name:"小店区",id:"140105"},{name:"迎泽区",id:"140106"},{name:"杏花岭区",id:"140107"},{name:"尖草坪区",id:"140108"},{name:"万柏林区",id:"140109"},{name:"晋源区",id:"140110"},{name:"清徐县",id:"140121"},{name:"阳曲县",id:"140122"},{name:"娄烦县",id:"140123"},{name:"古交市",id:"140181"}]},{name:"大同市",area:[{name:"城区",id:"140202"},{name:"矿区",id:"140203"},{name:"南郊区",id:"140211"},{name:"新荣区",id:"140212"},{name:"阳高县",id:"140221"},{name:"天镇县",id:"140222"},{name:"广灵县",id:"140223"},{name:"灵丘县",id:"140224"},{name:"浑源县",id:"140225"},{name:"左云县",id:"140226"},{name:"大同县",id:"140227"}]},{name:"阳泉市",area:[{name:"城区",id:"140302"},{name:"矿区",id:"140303"},{name:"郊区",id:"140311"},{name:"平定县",id:"140321"},{name:"盂县",id:"140322"}]},{name:"长治市",area:[{name:"城区",id:"140402"},{name:"郊区",id:"140411"},{name:"长治县",id:"140421"},{name:"襄垣县",id:"140423"},{name:"屯留县",id:"140424"},{name:"平顺县",id:"140425"},{name:"黎城县",id:"140426"},{name:"壶关县",id:"140427"},{name:"长子县",id:"140428"},{name:"武乡县",id:"140429"},{name:"沁县",id:"140430"},{name:"沁源县",id:"140431"},{name:"潞城市",id:"140481"}]},{name:"晋城市",area:[{name:"城区",id:"140502"},{name:"沁水县",id:"140521"},{name:"阳城县",id:"140522"},{name:"陵川县",id:"140524"},{name:"泽州县",id:"140525"},{name:"高平市",id:"140581"}]},{name:"朔州市",area:[{name:"朔城区",id:"140602"},{name:"平鲁区",id:"140603"},{name:"山阴县",id:"140621"},{name:"应县",id:"140622"},{name:"右玉县",id:"140623"},{name:"怀仁县",id:"140624"}]},{name:"晋中市",area:[{name:"榆次区",id:"140702"},{name:"榆社县",id:"140721"},{name:"左权县",id:"140722"},{name:"和顺县",id:"140723"},{name:"昔阳县",id:"140724"},{name:"寿阳县",id:"140725"},{name:"太谷县",id:"140726"},{name:"祁县",id:"140727"},{name:"平遥县",id:"140728"},{name:"灵石县",id:"140729"},{name:"介休市",id:"140781"}]},{name:"运城市",area:[{name:"盐湖区",id:"140802"},{name:"临猗县",id:"140821"},{name:"万荣县",id:"140822"},{name:"闻喜县",id:"140823"},{name:"稷山县",id:"140824"},{name:"新绛县",id:"140825"},{name:"绛县",id:"140826"},{name:"垣曲县",id:"140827"},{name:"夏县",id:"140828"},{name:"平陆县",id:"140829"},{name:"芮城县",id:"140830"},{name:"永济市",id:"140881"},{name:"河津市",id:"140882"}]},{name:"忻州市",area:[{name:"忻府区",id:"140902"},{name:"定襄县",id:"140921"},{name:"五台县",id:"140922"},{name:"代县",id:"140923"},{name:"繁峙县",id:"140924"},{name:"宁武县",id:"140925"},{name:"静乐县",id:"140926"},{name:"神池县",id:"140927"},{name:"五寨县",id:"140928"},{name:"岢岚县",id:"140929"},{name:"河曲县",id:"140930"},{name:"保德县",id:"140931"},{name:"偏关县",id:"140932"},{name:"原平市",id:"140981"}]},{name:"临汾市",area:[{name:"尧都区",id:"141002"},{name:"曲沃县",id:"141021"},{name:"翼城县",id:"141022"},{name:"襄汾县",id:"141023"},{name:"洪洞县",id:"141024"},{name:"古县",id:"141025"},{name:"安泽县",id:"141026"},{name:"浮山县",id:"141027"},{name:"吉县",id:"141028"},{name:"乡宁县",id:"141029"},{name:"大宁县",id:"141030"},{name:"隰县",id:"141031"},{name:"永和县",id:"141032"},{name:"蒲县",id:"141033"},{name:"汾西县",id:"141034"},{name:"侯马市",id:"141081"},{name:"霍州市",id:"141082"}]},{name:"吕梁市",area:[{name:"离石区",id:"141102"},{name:"文水县",id:"141121"},{name:"交城县",id:"141122"},{name:"兴县",id:"141123"},{name:"临县",id:"141124"},{name:"柳林县",id:"141125"},{name:"石楼县",id:"141126"},{name:"岚县",id:"141127"},{name:"方山县",id:"141128"},{name:"中阳县",id:"141129"},{name:"交口县",id:"141130"},{name:"孝义市",id:"141181"},{name:"汾阳市",id:"141182"}]}]},{name:"内蒙古自治区",city:[{name:"呼和浩特市",area:[{name:"新城区",id:"150102"},{name:"回民区",id:"150103"},{name:"玉泉区",id:"150104"},{name:"赛罕区",id:"150105"},{name:"土默特左旗",id:"150121"},{name:"托克托县",id:"150122"},{name:"和林格尔县",id:"150123"},{name:"清水河县",id:"150124"},{name:"武川县",id:"150125"}]},{name:"包头市",area:[{name:"东河区",id:"150202"},{name:"昆都仑区",id:"150203"},{name:"青山区",id:"150204"},{name:"石拐区",id:"150205"},{name:"白云鄂博矿区",id:"150206"},{name:"九原区",id:"150207"},{name:"土默特右旗",id:"150221"},{name:"固阳县",id:"150222"},{name:"达尔罕茂明安联合旗",id:"150223"}]},{name:"乌海市",area:[{name:"海勃湾区",id:"150302"},{name:"海南区",id:"150303"},{name:"乌达区",id:"150304"}]},{name:"赤峰市",area:[{name:"红山区",id:"150402"},{name:"元宝山区",id:"150403"},{name:"松山区",id:"150404"},{name:"阿鲁科尔沁旗",id:"150421"},{name:"巴林左旗",id:"150422"},{name:"巴林右旗",id:"150423"},{name:"林西县",id:"150424"},{name:"克什克腾旗",id:"150425"},{name:"翁牛特旗",id:"150426"},{name:"喀喇沁旗",id:"150428"},{name:"宁城县",id:"150429"},{name:"敖汉旗",id:"150430"}]},{name:"通辽市",area:[{name:"科尔沁区",id:"150502"},{name:"科尔沁左翼中旗",id:"150521"},{name:"科尔沁左翼后旗",id:"150522"},{name:"开鲁县",id:"150523"},{name:"库伦旗",id:"150524"},{name:"奈曼旗",id:"150525"},{name:"扎鲁特旗",id:"150526"},{name:"霍林郭勒市",id:"150581"}]},{name:"鄂尔多斯市",area:[{name:"东胜区",id:"150602"},{name:"达拉特旗",id:"150621"},{name:"准格尔旗",id:"150622"},{name:"鄂托克前旗",id:"150623"},{name:"鄂托克旗",id:"150624"},{name:"杭锦旗",id:"150625"},{name:"乌审旗",id:"150626"},{name:"伊金霍洛旗",id:"150627"}]},{name:"呼伦贝尔市",area:[{name:"海拉尔区",id:"150702"},{name:"扎赉诺尔区",id:"150703"},{name:"阿荣旗",id:"150721"},{name:"莫力达瓦达斡尔族自治旗",id:"150722"},{name:"鄂伦春自治旗",id:"150723"},{name:"鄂温克族自治旗",id:"150724"},{name:"陈巴尔虎旗",id:"150725"},{name:"新巴尔虎左旗",id:"150726"},{name:"新巴尔虎右旗",id:"150727"},{name:"满洲里市",id:"150781"},{name:"牙克石市",id:"150782"},{name:"扎兰屯市",id:"150783"},{name:"额尔古纳市",id:"150784"},{name:"根河市",id:"150785"}]},{name:"巴彦淖尔市",area:[{name:"临河区",id:"150802"},{name:"五原县",id:"150821"},{name:"磴口县",id:"150822"},{name:"乌拉特前旗",id:"150823"},{name:"乌拉特中旗",id:"150824"},{name:"乌拉特后旗",id:"150825"},{name:"杭锦后旗",id:"150826"}]},{name:"乌兰察布市",area:[{name:"集宁区",id:"150902"},{name:"卓资县",id:"150921"},{name:"化德县",id:"150922"},{name:"商都县",id:"150923"},{name:"兴和县",id:"150924"},{name:"凉城县",id:"150925"},{name:"察哈尔右翼前旗",id:"150926"},{name:"察哈尔右翼中旗",id:"150927"},{name:"察哈尔右翼后旗",id:"150928"},{name:"四子王旗",id:"150929"},{name:"丰镇市",id:"150981"}]},{name:"兴安盟",area:[{name:"乌兰浩特市",id:"152201"},{name:"阿尔山市",id:"152202"},{name:"科尔沁右翼前旗",id:"152221"},{name:"科尔沁右翼中旗",id:"152222"},{name:"扎赉特旗",id:"152223"},{name:"突泉县",id:"152224"}]},{name:"锡林郭勒盟",area:[{name:"二连浩特市",id:"152501"},{name:"锡林浩特市",id:"152502"},{name:"阿巴嘎旗",id:"152522"},{name:"苏尼特左旗",id:"152523"},{name:"苏尼特右旗",id:"152524"},{name:"东乌珠穆沁旗",id:"152525"},{name:"西乌珠穆沁旗",id:"152526"},{name:"太仆寺旗",id:"152527"},{name:"镶黄旗",id:"152528"},{name:"正镶白旗",id:"152529"},{name:"正蓝旗",id:"152530"},{name:"多伦县",id:"152531"}]},{name:"阿拉善盟",area:[{name:"阿拉善左旗",id:"152921"},{name:"阿拉善右旗",id:"152922"},{name:"额济纳旗",id:"152923"}]}]},{name:"辽宁省",city:[{name:"沈阳市",area:[{name:"和平区",id:"210102"},{name:"沈河区",id:"210103"},{name:"大东区",id:"210104"},{name:"皇姑区",id:"210105"},{name:"铁西区",id:"210106"},{name:"苏家屯区",id:"210111"},{name:"浑南区",id:"210112"},{name:"沈北新区",id:"210113"},{name:"于洪区",id:"210114"},{name:"辽中县",id:"210122"},{name:"康平县",id:"210123"},{name:"法库县",id:"210124"},{name:"新民市",id:"210181"}]},{name:"大连市",area:[{name:"中山区",id:"210202"},{name:"西岗区",id:"210203"},{name:"沙河口区",id:"210204"},{name:"甘井子区",id:"210211"},{name:"旅顺口区",id:"210212"},{name:"金州区",id:"210213"},{name:"长海县",id:"210224"},{name:"瓦房店市",id:"210281"},{name:"普兰店市",id:"210282"},{name:"庄河市",id:"210283"}]},{name:"鞍山市",area:[{name:"铁东区",id:"210302"},{name:"铁西区",id:"210303"},{name:"立山区",id:"210304"},{name:"千山区",id:"210311"},{name:"台安县",id:"210321"},{name:"岫岩满族自治县",id:"210323"},{name:"海城市",id:"210381"}]},{name:"抚顺市",area:[{name:"新抚区",id:"210402"},{name:"东洲区",id:"210403"},{name:"望花区",id:"210404"},{name:"顺城区",id:"210411"},{name:"抚顺县",id:"210421"},{name:"新宾满族自治县",id:"210422"},{name:"清原满族自治县",id:"210423"}]},{name:"本溪市",area:[{name:"平山区",id:"210502"},{name:"溪湖区",id:"210503"},{name:"明山区",id:"210504"},{name:"南芬区",id:"210505"},{name:"本溪满族自治县",id:"210521"},{name:"桓仁满族自治县",id:"210522"}]},{name:"丹东市",area:[{name:"元宝区",id:"210602"},{name:"振兴区",id:"210603"},{name:"振安区",id:"210604"},{name:"宽甸满族自治县",id:"210624"},{name:"东港市",id:"210681"},{name:"凤城市",id:"210682"}]},{name:"锦州市",area:[{name:"古塔区",id:"210702"},{name:"凌河区",id:"210703"},{name:"太和区",id:"210711"},{name:"黑山县",id:"210726"},{name:"义县",id:"210727"},{name:"凌海市",id:"210781"},{name:"北镇市",id:"210782"}]},{name:"营口市",area:[{name:"站前区",id:"210802"},{name:"西市区",id:"210803"},{name:"鲅鱼圈区",id:"210804"},{name:"老边区",id:"210811"},{name:"盖州市",id:"210881"},{name:"大石桥市",id:"210882"}]},{name:"阜新市",area:[{name:"海州区",id:"210902"},{name:"新邱区",id:"210903"},{name:"太平区",id:"210904"},{name:"清河门区",id:"210905"},{name:"细河区",id:"210911"},{name:"阜新蒙古族自治县",id:"210921"},{name:"彰武县",id:"210922"}]},{name:"辽阳市",area:[{name:"白塔区",id:"211002"},{name:"文圣区",id:"211003"},{name:"宏伟区",id:"211004"},{name:"弓长岭区",id:"211005"},{name:"太子河区",id:"211011"},{name:"辽阳县",id:"211021"},{name:"灯塔市",id:"211081"}]},{name:"盘锦市",area:[{name:"双台子区",id:"211102"},{name:"兴隆台区",id:"211103"},{name:"大洼县",id:"211121"},{name:"盘山县",id:"211122"}]},{name:"铁岭市",area:[{name:"银州区",id:"211202"},{name:"清河区",id:"211204"},{name:"铁岭县",id:"211221"},{name:"西丰县",id:"211223"},{name:"昌图县",id:"211224"},{name:"调兵山市",id:"211281"},{name:"开原市",id:"211282"}]},{name:"朝阳市",area:[{name:"双塔区",id:"211302"},{name:"龙城区",id:"211303"},{name:"朝阳县",id:"211321"},{name:"建平县",id:"211322"},{name:"喀喇沁左翼蒙古族自治县",id:"211324"},{name:"北票市",id:"211381"},{name:"凌源市",id:"211382"}]},{name:"葫芦岛市",area:[{name:"连山区",id:"211402"},{name:"龙港区",id:"211403"},{name:"南票区",id:"211404"},{name:"绥中县",id:"211421"},{name:"建昌县",id:"211422"},{name:"兴城市",id:"211481"}]},{name:"金普新区",area:[{name:"金州新区",id:"211501"},{name:"普湾新区",id:"211502"},{name:"保税区",id:"211503"}]}]},{name:"吉林省",city:[{name:"长春市",area:[{name:"南关区",id:"220102"},{name:"宽城区",id:"220103"},{name:"朝阳区",id:"220104"},{name:"二道区",id:"220105"},{name:"绿园区",id:"220106"},{name:"双阳区",id:"220112"},{name:"九台区",id:"220113"},{name:"农安县",id:"220122"},{name:"榆树市",id:"220182"},{name:"德惠市",id:"220183"}]},{name:"吉林市",area:[{name:"昌邑区",id:"220202"},{name:"龙潭区",id:"220203"},{name:"船营区",id:"220204"},{name:"丰满区",id:"220211"},{name:"永吉县",id:"220221"},{name:"蛟河市",id:"220281"},{name:"桦甸市",id:"220282"},{name:"舒兰市",id:"220283"},{name:"磐石市",id:"220284"}]},{name:"四平市",area:[{name:"铁西区",id:"220302"},{name:"铁东区",id:"220303"},{name:"梨树县",id:"220322"},{name:"伊通满族自治县",id:"220323"},{name:"公主岭市",id:"220381"},{name:"双辽市",id:"220382"}]},{name:"辽源市",area:[{name:"龙山区",id:"220402"},{name:"西安区",id:"220403"},{name:"东丰县",id:"220421"},{name:"东辽县",id:"220422"}]},{name:"通化市",area:[{name:"东昌区",id:"220502"},{name:"二道江区",id:"220503"},{name:"通化县",id:"220521"},{name:"辉南县",id:"220523"},{name:"柳河县",id:"220524"},{name:"梅河口市",id:"220581"},{name:"集安市",id:"220582"}]},{name:"白山市",area:[{name:"浑江区",id:"220602"},{name:"江源区",id:"220605"},{name:"抚松县",id:"220621"},{name:"靖宇县",id:"220622"},{name:"长白朝鲜族自治县",id:"220623"},{name:"临江市",id:"220681"}]},{name:"松原市",area:[{name:"宁江区",id:"220702"},{name:"前郭尔罗斯蒙古族自治县",id:"220721"},{name:"长岭县",id:"220722"},{name:"乾安县",id:"220723"},{name:"扶余市",id:"220781"}]},{name:"白城市",area:[{name:"洮北区",id:"220802"},{name:"镇赉县",id:"220821"},{name:"通榆县",id:"220822"},{name:"洮南市",id:"220881"},{name:"大安市",id:"220882"}]},{name:"延边朝鲜族自治州",area:[{name:"延吉市",id:"222401"},{name:"图们市",id:"222402"},{name:"敦化市",id:"222403"},{name:"珲春市",id:"222404"},{name:"龙井市",id:"222405"},{name:"和龙市",id:"222406"},{name:"汪清县",id:"222424"},{name:"安图县",id:"222426"}]}]},{name:"黑龙江省",city:[{name:"哈尔滨市",area:[{name:"道里区",id:"230102"},{name:"南岗区",id:"230103"},{name:"道外区",id:"230104"},{name:"平房区",id:"230108"},{name:"松北区",id:"230109"},{name:"香坊区",id:"230110"},{name:"呼兰区",id:"230111"},{name:"阿城区",id:"230112"},{name:"双城区",id:"230113"},{name:"依兰县",id:"230123"},{name:"方正县",id:"230124"},{name:"宾县",id:"230125"},{name:"巴彦县",id:"230126"},{name:"木兰县",id:"230127"},{name:"通河县",id:"230128"},{name:"延寿县",id:"230129"},{name:"尚志市",id:"230183"},{name:"五常市",id:"230184"}]},{name:"齐齐哈尔市",area:[{name:"龙沙区",id:"230202"},{name:"建华区",id:"230203"},{name:"铁锋区",id:"230204"},{name:"昂昂溪区",id:"230205"},{name:"富拉尔基区",id:"230206"},{name:"碾子山区",id:"230207"},{name:"梅里斯达斡尔族区",id:"230208"},{name:"龙江县",id:"230221"},{name:"依安县",id:"230223"},{name:"泰来县",id:"230224"},{name:"甘南县",id:"230225"},{name:"富裕县",id:"230227"},{name:"克山县",id:"230229"},{name:"克东县",id:"230230"},{name:"拜泉县",id:"230231"},{name:"讷河市",id:"230281"}]},{name:"鸡西市",area:[{name:"鸡冠区",id:"230302"},{name:"恒山区",id:"230303"},{name:"滴道区",id:"230304"},{name:"梨树区",id:"230305"},{name:"城子河区",id:"230306"},{name:"麻山区",id:"230307"},{name:"鸡东县",id:"230321"},{name:"虎林市",id:"230381"},{name:"密山市",id:"230382"}]},{name:"鹤岗市",area:[{name:"向阳区",id:"230402"},{name:"工农区",id:"230403"},{name:"南山区",id:"230404"},{name:"兴安区",id:"230405"},{name:"东山区",id:"230406"},{name:"兴山区",id:"230407"},{name:"萝北县",id:"230421"},{name:"绥滨县",id:"230422"}]},{name:"双鸭山市",area:[{name:"尖山区",id:"230502"},{name:"岭东区",id:"230503"},{name:"四方台区",id:"230505"},{name:"宝山区",id:"230506"},{name:"集贤县",id:"230521"},{name:"友谊县",id:"230522"},{name:"宝清县",id:"230523"},{name:"饶河县",id:"230524"}]},{name:"大庆市",area:[{name:"萨尔图区",id:"230602"},{name:"龙凤区",id:"230603"},{name:"让胡路区",id:"230604"},{name:"红岗区",id:"230605"},{name:"大同区",id:"230606"},{name:"肇州县",id:"230621"},{name:"肇源县",id:"230622"},{name:"林甸县",id:"230623"},{name:"杜尔伯特蒙古族自治县",id:"230624"}]},{name:"伊春市",area:[{name:"伊春区",id:"230702"},{name:"南岔区",id:"230703"},{name:"友好区",id:"230704"},{name:"西林区",id:"230705"},{name:"翠峦区",id:"230706"},{name:"新青区",id:"230707"},{name:"美溪区",id:"230708"},{name:"金山屯区",id:"230709"},{name:"五营区",id:"230710"},{name:"乌马河区",id:"230711"},{name:"汤旺河区",id:"230712"},{name:"带岭区",id:"230713"},{name:"乌伊岭区",id:"230714"},{name:"红星区",id:"230715"},{name:"上甘岭区",id:"230716"},{name:"嘉荫县",id:"230722"},{name:"铁力市",id:"230781"}]},{name:"佳木斯市",area:[{name:"向阳区",id:"230803"},{name:"前进区",id:"230804"},{name:"东风区",id:"230805"},{name:"郊区",id:"230811"},{name:"桦南县",id:"230822"},{name:"桦川县",id:"230826"},{name:"汤原县",id:"230828"},{name:"抚远县",id:"230833"},{name:"同江市",id:"230881"},{name:"富锦市",id:"230882"}]},{name:"七台河市",area:[{name:"新兴区",id:"230902"},{name:"桃山区",id:"230903"},{name:"茄子河区",id:"230904"},{name:"勃利县",id:"230921"}]},{name:"牡丹江市",area:[{name:"东安区",id:"231002"},{name:"阳明区",id:"231003"},{name:"爱民区",id:"231004"},{name:"西安区",id:"231005"},{name:"东宁县",id:"231024"},{name:"林口县",id:"231025"},{name:"绥芬河市",id:"231081"},{name:"海林市",id:"231083"},{name:"宁安市",id:"231084"},{name:"穆棱市",id:"231085"}]},{name:"黑河市",area:[{name:"爱辉区",id:"231102"},{name:"嫩江县",id:"231121"},{name:"逊克县",id:"231123"},{name:"孙吴县",id:"231124"},{name:"北安市",id:"231181"},{name:"五大连池市",id:"231182"}]},{name:"绥化市",area:[{name:"北林区",id:"231202"},{name:"望奎县",id:"231221"},{name:"兰西县",id:"231222"},{name:"青冈县",id:"231223"},{name:"庆安县",id:"231224"},{name:"明水县",id:"231225"},{name:"绥棱县",id:"231226"},{name:"安达市",id:"231281"},{name:"肇东市",id:"231282"},{name:"海伦市",id:"231283"}]},{name:"大兴安岭地区",area:[{name:"加格达奇区",id:"232701"},{name:"新林区",id:"232702"},{name:"松岭区",id:"232703"},{name:"呼中区",id:"232704"},{name:"呼玛县",id:"232721"},{name:"塔河县",id:"232722"},{name:"漠河县",id:"232723"}]}]},{name:"上海",city:[{name:"上海市",area:[{name:"黄浦区",id:"310101"},{name:"徐汇区",id:"310104"},{name:"长宁区",id:"310105"},{name:"静安区",id:"310106"},{name:"普陀区",id:"310107"},{name:"闸北区",id:"310108"},{name:"虹口区",id:"310109"},{name:"杨浦区",id:"310110"},{name:"闵行区",id:"310112"},{name:"宝山区",id:"310113"},{name:"嘉定区",id:"310114"},{name:"浦东新区",id:"310115"},{name:"金山区",id:"310116"},{name:"松江区",id:"310117"},{name:"青浦区",id:"310118"},{name:"奉贤区",id:"310120"},{name:"崇明县",id:"310230"}]}]},{name:"江苏省",city:[{name:"南京市",area:[{name:"玄武区",id:"320102"},{name:"秦淮区",id:"320104"},{name:"建邺区",id:"320105"},{name:"鼓楼区",id:"320106"},{name:"浦口区",id:"320111"},{name:"栖霞区",id:"320113"},{name:"雨花台区",id:"320114"},{name:"江宁区",id:"320115"},{name:"六合区",id:"320116"},{name:"溧水区",id:"320117"},{name:"高淳区",id:"320118"}]},{name:"无锡市",area:[{name:"崇安区",id:"320202"},{name:"南长区",id:"320203"},{name:"北塘区",id:"320204"},{name:"锡山区",id:"320205"},{name:"惠山区",id:"320206"},{name:"滨湖区",id:"320211"},{name:"江阴市",id:"320281"},{name:"宜兴市",id:"320282"}]},{name:"徐州市",area:[{name:"鼓楼区",id:"320302"},{name:"云龙区",id:"320303"},{name:"贾汪区",id:"320305"},{name:"泉山区",id:"320311"},{name:"铜山区",id:"320312"},{name:"丰县",id:"320321"},{name:"沛县",id:"320322"},{name:"睢宁县",id:"320324"},{name:"新沂市",id:"320381"},{name:"邳州市",id:"320382"}]},{name:"常州市",area:[{name:"天宁区",id:"320402"},{name:"钟楼区",id:"320404"},{name:"戚墅堰区",id:"320405"},{name:"新北区",id:"320411"},{name:"武进区",id:"320412"},{name:"溧阳市",id:"320481"},{name:"金坛市",id:"320482"}]},{name:"苏州市",area:[{name:"虎丘区",id:"320505"},{name:"吴中区",id:"320506"},{name:"相城区",id:"320507"},{name:"姑苏区",id:"320508"},{name:"吴江区",id:"320509"},{name:"常熟市",id:"320581"},{name:"张家港市",id:"320582"},{name:"昆山市",id:"320583"},{name:"太仓市",id:"320585"}]},{name:"南通市",area:[{name:"崇川区",id:"320602"},{name:"港闸区",id:"320611"},{name:"通州区",id:"320612"},{name:"海安县",id:"320621"},{name:"如东县",id:"320623"},{name:"启东市",id:"320681"},{name:"如皋市",id:"320682"},{name:"海门市",id:"320684"}]},{name:"连云港市",area:[{name:"连云区",id:"320703"},{name:"海州区",id:"320706"},{name:"赣榆区",id:"320707"},{name:"东海县",id:"320722"},{name:"灌云县",id:"320723"},{name:"灌南县",id:"320724"}]},{name:"淮安市",area:[{name:"清河区",id:"320802"},{name:"淮安区",id:"320803"},{name:"淮阴区",id:"320804"},{name:"清浦区",id:"320811"},{name:"涟水县",id:"320826"},{name:"洪泽县",id:"320829"},{name:"盱眙县",id:"320830"},{name:"金湖县",id:"320831"}]},{name:"盐城市",area:[{name:"亭湖区",id:"320902"},{name:"盐都区",id:"320903"},{name:"响水县",id:"320921"},{name:"滨海县",id:"320922"},{name:"阜宁县",id:"320923"},{name:"射阳县",id:"320924"},{name:"建湖县",id:"320925"},{name:"东台市",id:"320981"},{name:"大丰市",id:"320982"}]},{name:"扬州市",area:[{name:"广陵区",id:"321002"},{name:"邗江区",id:"321003"},{name:"江都区",id:"321012"},{name:"宝应县",id:"321023"},{name:"仪征市",id:"321081"},{name:"高邮市",id:"321084"}]},{name:"镇江市",area:[{name:"京口区",id:"321102"},{name:"润州区",id:"321111"},{name:"丹徒区",id:"321112"},{name:"丹阳市",id:"321181"},{name:"扬中市",id:"321182"},{name:"句容市",id:"321183"}]},{name:"泰州市",area:[{name:"海陵区",id:"321202"},{name:"高港区",id:"321203"},{name:"姜堰区",id:"321204"},{name:"兴化市",id:"321281"},{name:"靖江市",id:"321282"},{name:"泰兴市",id:"321283"}]},{name:"宿迁市",area:[{name:"宿城区",id:"321302"},{name:"宿豫区",id:"321311"},{name:"沭阳县",id:"321322"},{name:"泗阳县",id:"321323"},{name:"泗洪县",id:"321324"}]}]},{name:"浙江省",city:[{name:"杭州市",area:[{name:"上城区",id:"330102"},{name:"下城区",id:"330103"},{name:"江干区",id:"330104"},{name:"拱墅区",id:"330105"},{name:"西湖区",id:"330106"},{name:"滨江区",id:"330108"},{name:"萧山区",id:"330109"},{name:"余杭区",id:"330110"},{name:"桐庐县",id:"330122"},{name:"淳安县",id:"330127"},{name:"建德市",id:"330182"},{name:"富阳区",id:"330183"},{name:"临安市",id:"330185"}]},{name:"宁波市",area:[{name:"海曙区",id:"330203"},{name:"江东区",id:"330204"},{name:"江北区",id:"330205"},{name:"北仑区",id:"330206"},{name:"镇海区",id:"330211"},{name:"鄞州区",id:"330212"},{name:"象山县",id:"330225"},{name:"宁海县",id:"330226"},{name:"余姚市",id:"330281"},{name:"慈溪市",id:"330282"},{name:"奉化市",id:"330283"}]},{name:"温州市",area:[{name:"鹿城区",id:"330302"},{name:"龙湾区",id:"330303"},{name:"瓯海区",id:"330304"},{name:"洞头县",id:"330322"},{name:"永嘉县",id:"330324"},{name:"平阳县",id:"330326"},{name:"苍南县",id:"330327"},{name:"文成县",id:"330328"},{name:"泰顺县",id:"330329"},{name:"瑞安市",id:"330381"},{name:"乐清市",id:"330382"}]},{name:"嘉兴市",area:[{name:"南湖区",id:"330402"},{name:"秀洲区",id:"330411"},{name:"嘉善县",id:"330421"},{name:"海盐县",id:"330424"},{name:"海宁市",id:"330481"},{name:"平湖市",id:"330482"},{name:"桐乡市",id:"330483"}]},{name:"湖州市",area:[{name:"吴兴区",id:"330502"},{name:"南浔区",id:"330503"},{name:"德清县",id:"330521"},{name:"长兴县",id:"330522"},{name:"安吉县",id:"330523"}]},{name:"绍兴市",area:[{name:"越城区",id:"330602"},{name:"柯桥区",id:"330603"},{name:"上虞区",id:"330604"},{name:"新昌县",id:"330624"},{name:"诸暨市",id:"330681"},{name:"嵊州市",id:"330683"}]},{name:"金华市",area:[{name:"婺城区",id:"330702"},{name:"金东区",id:"330703"},{name:"武义县",id:"330723"},{name:"浦江县",id:"330726"},{name:"磐安县",id:"330727"},{name:"兰溪市",id:"330781"},{name:"义乌市",id:"330782"},{name:"东阳市",id:"330783"},{name:"永康市",id:"330784"}]},{name:"衢州市",area:[{name:"柯城区",id:"330802"},{name:"衢江区",id:"330803"},{name:"常山县",id:"330822"},{name:"开化县",id:"330824"},{name:"龙游县",id:"330825"},{name:"江山市",id:"330881"}]},{name:"舟山市",area:[{name:"定海区",id:"330902"},{name:"普陀区",id:"330903"},{name:"岱山县",id:"330921"},{name:"嵊泗县",id:"330922"}]},{name:"台州市",area:[{name:"椒江区",id:"331002"},{name:"黄岩区",id:"331003"},{name:"路桥区",id:"331004"},{name:"玉环县",id:"331021"},{name:"三门县",id:"331022"},{name:"天台县",id:"331023"},{name:"仙居县",id:"331024"},{name:"温岭市",id:"331081"},{name:"临海市",id:"331082"}]},{name:"丽水市",area:[{name:"莲都区",id:"331102"},{name:"青田县",id:"331121"},{name:"缙云县",id:"331122"},{name:"遂昌县",id:"331123"},{name:"松阳县",id:"331124"},{name:"云和县",id:"331125"},{name:"庆元县",id:"331126"},{name:"景宁畲族自治县",id:"331127"},{name:"龙泉市",id:"331181"}]},{name:"舟山群岛新区",area:[{name:"金塘岛",id:"331201"},{name:"六横岛",id:"331202"},{name:"衢山岛",id:"331203"},{name:"舟山本岛西北部",id:"331204"},{name:"岱山岛西南部",id:"331205"},{name:"泗礁岛",id:"331206"},{name:"朱家尖岛",id:"331207"},{name:"洋山岛",id:"331208"},{name:"长涂岛",id:"331209"},{name:"虾峙岛",id:"331210"}]}]},{name:"安徽省",city:[{name:"合肥市",area:[{name:"瑶海区",id:"340102"},{name:"庐阳区",id:"340103"},{name:"蜀山区",id:"340104"},{name:"包河区",id:"340111"},{name:"长丰县",id:"340121"},{name:"肥东县",id:"340122"},{name:"肥西县",id:"340123"},{name:"庐江县",id:"340124"},{name:"高薪区",id:"340171"},{name:"经开区",id:"340172"},{name:"新站区",id:"340173"},{name:"巢湖市",id:"340181"}]},{name:"芜湖市",area:[{name:"镜湖区",id:"340202"},{name:"弋江区",id:"340203"},{name:"鸠江区",id:"340207"},{name:"三山区",id:"340208"},{name:"芜湖县",id:"340221"},{name:"繁昌县",id:"340222"},{name:"南陵县",id:"340223"},{name:"无为县",id:"340225"}]},{name:"蚌埠市",area:[{name:"龙子湖区",id:"340302"},{name:"蚌山区",id:"340303"},{name:"禹会区",id:"340304"},{name:"淮上区",id:"340311"},{name:"怀远县",id:"340321"},{name:"五河县",id:"340322"},{name:"固镇县",id:"340323"}]},{name:"淮南市",area:[{name:"大通区",id:"340402"},{name:"田家庵区",id:"340403"},{name:"谢家集区",id:"340404"},{name:"八公山区",id:"340405"},{name:"潘集区",id:"340406"},{name:"凤台县",id:"340421"}]},{name:"马鞍山市",area:[{name:"花山区",id:"340503"},{name:"雨山区",id:"340504"},{name:"博望区",id:"340506"},{name:"当涂县",id:"340521"},{name:"含山县",id:"340522"},{name:"和县",id:"340523"}]},{name:"淮北市",area:[{name:"杜集区",id:"340602"},{name:"相山区",id:"340603"},{name:"烈山区",id:"340604"},{name:"濉溪县",id:"340621"}]},{name:"铜陵市",area:[{name:"铜官山区",id:"340702"},{name:"狮子山区",id:"340703"},{name:"郊区",id:"340711"},{name:"铜陵县",id:"340721"}]},{name:"安庆市",area:[{name:"迎江区",id:"340802"},{name:"大观区",id:"340803"},{name:"宜秀区",id:"340811"},{name:"怀宁县",id:"340822"},{name:"枞阳县",id:"340823"},{name:"潜山县",id:"340824"},{name:"太湖县",id:"340825"},{name:"宿松县",id:"340826"},{name:"望江县",id:"340827"},{name:"岳西县",id:"340828"},{name:"桐城市",id:"340881"}]},{name:"黄山市",area:[{name:"屯溪区",id:"341002"},{name:"黄山区",id:"341003"},{name:"徽州区",id:"341004"},{name:"歙县",id:"341021"},{name:"休宁县",id:"341022"},{name:"黟县",id:"341023"},{name:"祁门县",id:"341024"}]},{name:"滁州市",area:[{name:"琅琊区",id:"341102"},{name:"南谯区",id:"341103"},{name:"来安县",id:"341122"},{name:"全椒县",id:"341124"},{name:"定远县",id:"341125"},{name:"凤阳县",id:"341126"},{name:"天长市",id:"341181"},{name:"明光市",id:"341182"}]},{name:"阜阳市",area:[{name:"颍州区",id:"341202"},{name:"颍东区",id:"341203"},{name:"颍泉区",id:"341204"},{name:"临泉县",id:"341221"},{name:"太和县",id:"341222"},{name:"阜南县",id:"341225"},{name:"颍上县",id:"341226"},{name:"界首市",id:"341282"}]},{name:"宿州市",area:[{name:"埇桥区",id:"341302"},{name:"砀山县",id:"341321"},{name:"萧县",id:"341322"},{name:"灵璧县",id:"341323"},{name:"泗县",id:"341324"}]},{name:"六安市",area:[{name:"金安区",id:"341502"},{name:"裕安区",id:"341503"},{name:"寿县",id:"341521"},{name:"霍邱县",id:"341522"},{name:"舒城县",id:"341523"},{name:"金寨县",id:"341524"},{name:"霍山县",id:"341525"}]},{name:"亳州市",area:[{name:"谯城区",id:"341602"},{name:"涡阳县",id:"341621"},{name:"蒙城县",id:"341622"},{name:"利辛县",id:"341623"}]},{name:"池州市",area:[{name:"贵池区",id:"341702"},{name:"东至县",id:"341721"},{name:"石台县",id:"341722"},{name:"青阳县",id:"341723"}]},{name:"宣城市",area:[{name:"宣州区",id:"341802"},{name:"郎溪县",id:"341821"},{name:"广德县",id:"341822"},{name:"泾县",id:"341823"},{name:"绩溪县",id:"341824"},{name:"旌德县",id:"341825"},{name:"宁国市",id:"341881"}]}]},{name:"福建省",city:[{name:"福州市",area:[{name:"鼓楼区",id:"350102"},{name:"台江区",id:"350103"},{name:"仓山区",id:"350104"},{name:"马尾区",id:"350105"},{name:"晋安区",id:"350111"},{name:"长乐区",id:"350182"},{name:"闽侯县",id:"350121"},{name:"连江县",id:"350122"},{name:"罗源县",id:"350123"},{name:"闽清县",id:"350124"},{name:"永泰县",id:"350125"},{name:"平潭县",id:"350128"},{name:"福清市",id:"350181"}]},{name:"厦门市",area:[{name:"思明区",id:"350203"},{name:"海沧区",id:"350205"},{name:"湖里区",id:"350206"},{name:"集美区",id:"350211"},{name:"同安区",id:"350212"},{name:"翔安区",id:"350213"}]},{name:"莆田市",area:[{name:"城厢区",id:"350302"},{name:"涵江区",id:"350303"},{name:"荔城区",id:"350304"},{name:"秀屿区",id:"350305"},{name:"仙游县",id:"350322"}]},{name:"三明市",area:[{name:"梅列区",id:"350402"},{name:"三元区",id:"350403"},{name:"明溪县",id:"350421"},{name:"清流县",id:"350423"},{name:"宁化县",id:"350424"},{name:"大田县",id:"350425"},{name:"尤溪县",id:"350426"},{name:"沙县",id:"350427"},{name:"将乐县",id:"350428"},{name:"泰宁县",id:"350429"},{name:"建宁县",id:"350430"},{name:"永安市",id:"350481"}]},{name:"泉州市",area:[{name:"鲤城区",id:"350502"},{name:"丰泽区",id:"350503"},{name:"洛江区",id:"350504"},{name:"泉港区",id:"350505"},{name:"惠安县",id:"350521"},{name:"安溪县",id:"350524"},{name:"永春县",id:"350525"},{name:"德化县",id:"350526"},{name:"金门县",id:"350527"},{name:"石狮市",id:"350581"},{name:"晋江市",id:"350582"},{name:"南安市",id:"350583"}]},{name:"漳州市",area:[{name:"芗城区",id:"350602"},{name:"龙文区",id:"350603"},{name:"云霄县",id:"350622"},{name:"漳浦县",id:"350623"},{name:"诏安县",id:"350624"},{name:"长泰县",id:"350625"},{name:"东山县",id:"350626"},{name:"南靖县",id:"350627"},{name:"平和县",id:"350628"},{name:"华安县",id:"350629"},{name:"龙海市",id:"350681"}]},{name:"南平市",area:[{name:"延平区",id:"350702"},{name:"建阳区",id:"350703"},{name:"顺昌县",id:"350721"},{name:"浦城县",id:"350722"},{name:"光泽县",id:"350723"},{name:"松溪县",id:"350724"},{name:"政和县",id:"350725"},{name:"邵武市",id:"350781"},{name:"武夷山市",id:"350782"},{name:"建瓯市",id:"350783"}]},{name:"龙岩市",area:[{name:"新罗区",id:"350802"},{name:"长汀县",id:"350821"},{name:"永定区",id:"350822"},{name:"上杭县",id:"350823"},{name:"武平县",id:"350824"},{name:"连城县",id:"350825"},{name:"漳平市",id:"350881"}]},{name:"宁德市",area:[{name:"蕉城区",id:"350902"},{name:"霞浦县",id:"350921"},{name:"古田县",id:"350922"},{name:"屏南县",id:"350923"},{name:"寿宁县",id:"350924"},{name:"周宁县",id:"350925"},{name:"柘荣县",id:"350926"},{name:"福安市",id:"350981"},{name:"福鼎市",id:"350982"}]}]},{name:"江西省",city:[{name:"南昌市",area:[{name:"东湖区",id:"360102"},{name:"西湖区",id:"360103"},{name:"青云谱区",id:"360104"},{name:"湾里区",id:"360105"},{name:"青山湖区",id:"360111"},{name:"南昌县",id:"360121"},{name:"新建县",id:"360122"},{name:"安义县",id:"360123"},{name:"进贤县",id:"360124"}]},{name:"景德镇市",area:[{name:"昌江区",id:"360202"},{name:"珠山区",id:"360203"},{name:"浮梁县",id:"360222"},{name:"乐平市",id:"360281"}]},{name:"萍乡市",area:[{name:"安源区",id:"360302"},{name:"湘东区",id:"360313"},{name:"莲花县",id:"360321"},{name:"上栗县",id:"360322"},{name:"芦溪县",id:"360323"}]},{name:"九江市",area:[{name:"庐山区",id:"360402"},{name:"浔阳区",id:"360403"},{name:"九江县",id:"360421"},{name:"武宁县",id:"360423"},{name:"修水县",id:"360424"},{name:"永修县",id:"360425"},{name:"德安县",id:"360426"},{name:"星子县",id:"360427"},{name:"都昌县",id:"360428"},{name:"湖口县",id:"360429"},{name:"彭泽县",id:"360430"},{name:"瑞昌市",id:"360481"},{name:"共青城市",id:"360482"}]},{name:"新余市",area:[{name:"渝水区",id:"360502"},{name:"分宜县",id:"360521"}]},{name:"鹰潭市",area:[{name:"月湖区",id:"360602"},{name:"余江县",id:"360622"},{name:"贵溪市",id:"360681"}]},{name:"赣州市",area:[{name:"章贡区",id:"360702"},{name:"南康区",id:"360703"},{name:"赣县",id:"360721"},{name:"信丰县",id:"360722"},{name:"大余县",id:"360723"},{name:"上犹县",id:"360724"},{name:"崇义县",id:"360725"},{name:"安远县",id:"360726"},{name:"龙南县",id:"360727"},{name:"定南县",id:"360728"},{name:"全南县",id:"360729"},{name:"宁都县",id:"360730"},{name:"于都县",id:"360731"},{name:"兴国县",id:"360732"},{name:"会昌县",id:"360733"},{name:"寻乌县",id:"360734"},{name:"石城县",id:"360735"},{name:"瑞金市",id:"360781"}]},{name:"吉安市",area:[{name:"吉州区",id:"360802"},{name:"青原区",id:"360803"},{name:"吉安县",id:"360821"},{name:"吉水县",id:"360822"},{name:"峡江县",id:"360823"},{name:"新干县",id:"360824"},{name:"永丰县",id:"360825"},{name:"泰和县",id:"360826"},{name:"遂川县",id:"360827"},{name:"万安县",id:"360828"},{name:"安福县",id:"360829"},{name:"永新县",id:"360830"},{name:"井冈山市",id:"360881"}]},{name:"宜春市",area:[{name:"袁州区",id:"360902"},{name:"奉新县",id:"360921"},{name:"万载县",id:"360922"},{name:"上高县",id:"360923"},{name:"宜丰县",id:"360924"},{name:"靖安县",id:"360925"},{name:"铜鼓县",id:"360926"},{name:"丰城市",id:"360981"},{name:"樟树市",id:"360982"},{name:"高安市",id:"360983"}]},{name:"抚州市",area:[{name:"临川区",id:"361002"},{name:"南城县",id:"361021"},{name:"黎川县",id:"361022"},{name:"南丰县",id:"361023"},{name:"崇仁县",id:"361024"},{name:"乐安县",id:"361025"},{name:"宜黄县",id:"361026"},{name:"金溪县",id:"361027"},{name:"资溪县",id:"361028"},{name:"东乡县",id:"361029"},{name:"广昌县",id:"361030"}]},{name:"上饶市",area:[{name:"信州区",id:"361102"},{name:"上饶县",id:"361121"},{name:"广丰县",id:"361122"},{name:"玉山县",id:"361123"},{name:"铅山县",id:"361124"},{name:"横峰县",id:"361125"},{name:"弋阳县",id:"361126"},{name:"余干县",id:"361127"},{name:"鄱阳县",id:"361128"},{name:"万年县",id:"361129"},{name:"婺源县",id:"361130"},{name:"德兴市",id:"361181"}]}]},{name:"山东省",city:[{name:"济南市",area:[{name:"历下区",id:"370102"},{name:"市中区",id:"370103"},{name:"槐荫区",id:"370104"},{name:"天桥区",id:"370105"},{name:"历城区",id:"370112"},{name:"长清区",id:"370113"},{name:"平阴县",id:"370124"},{name:"济阳县",id:"370125"},{name:"商河县",id:"370126"},{name:"章丘市",id:"370181"}]},{name:"青岛市",area:[{name:"市南区",id:"370202"},{name:"市北区",id:"370203"},{name:"黄岛区",id:"370211"},{name:"崂山区",id:"370212"},{name:"李沧区",id:"370213"},{name:"城阳区",id:"370214"},{name:"胶州市",id:"370281"},{name:"即墨市",id:"370282"},{name:"平度市",id:"370283"},{name:"莱西市",id:"370285"},{name:"西海岸新区",id:"370286"}]},{name:"淄博市",area:[{name:"淄川区",id:"370302"},{name:"张店区",id:"370303"},{name:"博山区",id:"370304"},{name:"临淄区",id:"370305"},{name:"周村区",id:"370306"},{name:"桓台县",id:"370321"},{name:"高青县",id:"370322"},{name:"沂源县",id:"370323"}]},{name:"枣庄市",area:[{name:"市中区",id:"370402"},{name:"薛城区",id:"370403"},{name:"峄城区",id:"370404"},{name:"台儿庄区",id:"370405"},{name:"山亭区",id:"370406"},{name:"滕州市",id:"370481"}]},{name:"东营市",area:[{name:"东营区",id:"370502"},{name:"河口区",id:"370503"},{name:"垦利县",id:"370521"},{name:"利津县",id:"370522"},{name:"广饶县",id:"370523"}]},{name:"烟台市",area:[{name:"芝罘区",id:"370602"},{name:"福山区",id:"370611"},{name:"牟平区",id:"370612"},{name:"莱山区",id:"370613"},{name:"长岛县",id:"370634"},{name:"龙口市",id:"370681"},{name:"莱阳市",id:"370682"},{name:"莱州市",id:"370683"},{name:"蓬莱市",id:"370684"},{name:"招远市",id:"370685"},{name:"栖霞市",id:"370686"},{name:"海阳市",id:"370687"}]},{name:"潍坊市",area:[{name:"潍城区",id:"370702"},{name:"寒亭区",id:"370703"},{name:"坊子区",id:"370704"},{name:"奎文区",id:"370705"},{name:"临朐县",id:"370724"},{name:"昌乐县",id:"370725"},{name:"青州市",id:"370781"},{name:"诸城市",id:"370782"},{name:"寿光市",id:"370783"},{name:"安丘市",id:"370784"},{name:"高密市",id:"370785"},{name:"昌邑市",id:"370786"}]},{name:"济宁市",area:[{name:"任城区",id:"370811"},{name:"兖州区",id:"370812"},{name:"微山县",id:"370826"},{name:"鱼台县",id:"370827"},{name:"金乡县",id:"370828"},{name:"嘉祥县",id:"370829"},{name:"汶上县",id:"370830"},{name:"泗水县",id:"370831"},{name:"梁山县",id:"370832"},{name:"曲阜市",id:"370881"},{name:"邹城市",id:"370883"}]},{name:"泰安市",area:[{name:"泰山区",id:"370902"},{name:"岱岳区",id:"370911"},{name:"宁阳县",id:"370921"},{name:"东平县",id:"370923"},{name:"新泰市",id:"370982"},{name:"肥城市",id:"370983"}]},{name:"威海市",area:[{name:"环翠区",id:"371002"},{name:"文登区",id:"371003"},{name:"荣成市",id:"371082"},{name:"乳山市",id:"371083"}]},{name:"日照市",area:[{name:"东港区",id:"371102"},{name:"岚山区",id:"371103"},{name:"五莲县",id:"371121"},{name:"莒县",id:"371122"}]},{name:"莱芜市",area:[{name:"莱城区",id:"371202"},{name:"钢城区",id:"371203"}]},{name:"临沂市",area:[{name:"兰山区",id:"371302"},{name:"罗庄区",id:"371311"},{name:"河东区",id:"371312"},{name:"沂南县",id:"371321"},{name:"郯城县",id:"371322"},{name:"沂水县",id:"371323"},{name:"兰陵县",id:"371324"},{name:"费县",id:"371325"},{name:"平邑县",id:"371326"},{name:"莒南县",id:"371327"},{name:"蒙阴县",id:"371328"},{name:"临沭县",id:"371329"}]},{name:"德州市",area:[{name:"德城区",id:"371402"},{name:"陵城区",id:"371403"},{name:"宁津县",id:"371422"},{name:"庆云县",id:"371423"},{name:"临邑县",id:"371424"},{name:"齐河县",id:"371425"},{name:"平原县",id:"371426"},{name:"夏津县",id:"371427"},{name:"武城县",id:"371428"},{name:"乐陵市",id:"371481"},{name:"禹城市",id:"371482"}]},{name:"聊城市",area:[{name:"东昌府区",id:"371502"},{name:"阳谷县",id:"371521"},{name:"莘县",id:"371522"},{name:"茌平县",id:"371523"},{name:"东阿县",id:"371524"},{name:"冠县",id:"371525"},{name:"高唐县",id:"371526"},{name:"临清市",id:"371581"}]},{name:"滨州市",area:[{name:"滨城区",id:"371602"},{name:"沾化区",id:"371603"},{name:"惠民县",id:"371621"},{name:"阳信县",id:"371622"},{name:"无棣县",id:"371623"},{name:"博兴县",id:"371625"},{name:"邹平县",id:"371626"},{name:"北海新区",id:"371627"}]},{name:"菏泽市",area:[{name:"牡丹区",id:"371702"},{name:"曹县",id:"371721"},{name:"单县",id:"371722"},{name:"成武县",id:"371723"},{name:"巨野县",id:"371724"},{name:"郓城县",id:"371725"},{name:"鄄城县",id:"371726"},{name:"定陶县",id:"371727"},{name:"东明县",id:"371728"}]}]},{name:"河南省",city:[{name:"郑州市",area:[{name:"中原区",id:"410102"},{name:"二七区",id:"410103"},{name:"管城回族区",id:"410104"},{name:"金水区",id:"410105"},{name:"上街区",id:"410106"},{name:"惠济区",id:"410108"},{name:"中牟县",id:"410122"},{name:"巩义市",id:"410181"},{name:"荥阳市",id:"410182"},{name:"新密市",id:"410183"},{name:"新郑市",id:"410184"},{name:"登封市",id:"410185"}]},{name:"开封市",area:[{name:"龙亭区",id:"410202"},{name:"顺河回族区",id:"410203"},{name:"鼓楼区",id:"410204"},{name:"禹王台区",id:"410205"},{name:"祥符区",id:"410212"},{name:"杞县",id:"410221"},{name:"通许县",id:"410222"},{name:"尉氏县",id:"410223"},{name:"兰考县",id:"410225"}]},{name:"洛阳市",area:[{name:"老城区",id:"410302"},{name:"西工区",id:"410303"},{name:"瀍河回族区",id:"410304"},{name:"涧西区",id:"410305"},{name:"吉利区",id:"410306"},{name:"洛龙区",id:"410311"},{name:"孟津县",id:"410322"},{name:"新安县",id:"410323"},{name:"栾川县",id:"410324"},{name:"嵩县",id:"410325"},{name:"汝阳县",id:"410326"},{name:"宜阳县",id:"410327"},{name:"洛宁县",id:"410328"},{name:"伊川县",id:"410329"},{name:"偃师市",id:"410381"}]},{name:"平顶山市",area:[{name:"新华区",id:"410402"},{name:"卫东区",id:"410403"},{name:"石龙区",id:"410404"},{name:"湛河区",id:"410411"},{name:"宝丰县",id:"410421"},{name:"叶县",id:"410422"},{name:"鲁山县",id:"410423"},{name:"郏县",id:"410425"},{name:"舞钢市",id:"410481"},{name:"汝州市",id:"410482"}]},{name:"安阳市",area:[{name:"文峰区",id:"410502"},{name:"北关区",id:"410503"},{name:"殷都区",id:"410505"},{name:"龙安区",id:"410506"},{name:"安阳县",id:"410522"},{name:"汤阴县",id:"410523"},{name:"滑县",id:"410526"},{name:"内黄县",id:"410527"},{name:"林州市",id:"410581"}]},{name:"鹤壁市",area:[{name:"鹤山区",id:"410602"},{name:"山城区",id:"410603"},{name:"淇滨区",id:"410611"},{name:"浚县",id:"410621"},{name:"淇县",id:"410622"}]},{name:"新乡市",area:[{name:"红旗区",id:"410702"},{name:"卫滨区",id:"410703"},{name:"凤泉区",id:"410704"},{name:"牧野区",id:"410711"},{name:"新乡县",id:"410721"},{name:"获嘉县",id:"410724"},{name:"原阳县",id:"410725"},{name:"延津县",id:"410726"},{name:"封丘县",id:"410727"},{name:"长垣县",id:"410728"},{name:"卫辉市",id:"410781"},{name:"辉县市",id:"410782"}]},{name:"焦作市",area:[{name:"解放区",id:"410802"},{name:"中站区",id:"410803"},{name:"马村区",id:"410804"},{name:"山阳区",id:"410811"},{name:"修武县",id:"410821"},{name:"博爱县",id:"410822"},{name:"武陟县",id:"410823"},{name:"温县",id:"410825"},{name:"沁阳市",id:"410882"},{name:"孟州市",id:"410883"}]},{name:"濮阳市",area:[{name:"华龙区",id:"410902"},{name:"清丰县",id:"410922"},{name:"南乐县",id:"410923"},{name:"范县",id:"410926"},{name:"台前县",id:"410927"},{name:"濮阳县",id:"410928"}]},{name:"许昌市",area:[{name:"魏都区",id:"411002"},{name:"许昌县",id:"411023"},{name:"鄢陵县",id:"411024"},{name:"襄城县",id:"411025"},{name:"禹州市",id:"411081"},{name:"长葛市",id:"411082"}]},{name:"漯河市",area:[{name:"源汇区",id:"411102"},{name:"郾城区",id:"411103"},{name:"召陵区",id:"411104"},{name:"舞阳县",id:"411121"},{name:"临颍县",id:"411122"}]},{name:"三门峡市",area:[{name:"湖滨区",id:"411202"},{name:"渑池县",id:"411221"},{name:"陕县",id:"411222"},{name:"卢氏县",id:"411224"},{name:"义马市",id:"411281"},{name:"灵宝市",id:"411282"}]},{name:"南阳市",area:[{name:"宛城区",id:"411302"},{name:"卧龙区",id:"411303"},{name:"南召县",id:"411321"},{name:"方城县",id:"411322"},{name:"西峡县",id:"411323"},{name:"镇平县",id:"411324"},{name:"内乡县",id:"411325"},{name:"淅川县",id:"411326"},{name:"社旗县",id:"411327"},{name:"唐河县",id:"411328"},{name:"新野县",id:"411329"},{name:"桐柏县",id:"411330"},{name:"邓州市",id:"411381"}]},{name:"商丘市",area:[{name:"梁园区",id:"411402"},{name:"睢阳区",id:"411403"},{name:"民权县",id:"411421"},{name:"睢县",id:"411422"},{name:"宁陵县",id:"411423"},{name:"柘城县",id:"411424"},{name:"虞城县",id:"411425"},{name:"夏邑县",id:"411426"},{name:"永城市",id:"411481"}]},{name:"信阳市",area:[{name:"浉河区",id:"411502"},{name:"平桥区",id:"411503"},{name:"罗山县",id:"411521"},{name:"光山县",id:"411522"},{name:"新县",id:"411523"},{name:"商城县",id:"411524"},{name:"固始县",id:"411525"},{name:"潢川县",id:"411526"},{name:"淮滨县",id:"411527"},{name:"息县",id:"411528"}]},{name:"周口市",area:[{name:"川汇区",id:"411602"},{name:"扶沟县",id:"411621"},{name:"西华县",id:"411622"},{name:"商水县",id:"411623"},{name:"沈丘县",id:"411624"},{name:"郸城县",id:"411625"},{name:"淮阳县",id:"411626"},{name:"太康县",id:"411627"},{name:"鹿邑县",id:"411628"},{name:"项城市",id:"411681"}]},{name:"驻马店市",area:[{name:"驿城区",id:"411702"},{name:"西平县",id:"411721"},{name:"上蔡县",id:"411722"},{name:"平舆县",id:"411723"},{name:"正阳县",id:"411724"},{name:"确山县",id:"411725"},{name:"泌阳县",id:"411726"},{name:"汝南县",id:"411727"},{name:"遂平县",id:"411728"},{name:"新蔡县",id:"411729"}]},{name:"直辖县级",area:[{name:"济源市",id:"419001"}]}]},{name:"湖北省",city:[{name:"武汉市",area:[{name:"江岸区",id:"420102"},{name:"江汉区",id:"420103"},{name:"硚口区",id:"420104"},{name:"汉阳区",id:"420105"},{name:"武昌区",id:"420106"},{name:"青山区",id:"420107"},{name:"洪山区",id:"420111"},{name:"东西湖区",id:"420112"},{name:"汉南区",id:"420113"},{name:"蔡甸区",id:"420114"},{name:"江夏区",id:"420115"},{name:"黄陂区",id:"420116"},{name:"新洲区",id:"420117"}]},{name:"黄石市",area:[{name:"黄石港区",id:"420202"},{name:"西塞山区",id:"420203"},{name:"下陆区",id:"420204"},{name:"铁山区",id:"420205"},{name:"阳新县",id:"420222"},{name:"大冶市",id:"420281"}]},{name:"十堰市",area:[{name:"茅箭区",id:"420302"},{name:"张湾区",id:"420303"},{name:"郧阳区",id:"420304"},{name:"郧西县",id:"420322"},{name:"竹山县",id:"420323"},{name:"竹溪县",id:"420324"},{name:"房县",id:"420325"},{name:"丹江口市",id:"420381"}]},{name:"宜昌市",area:[{name:"西陵区",id:"420502"},{name:"伍家岗区",id:"420503"},{name:"点军区",id:"420504"},{name:"猇亭区",id:"420505"},{name:"夷陵区",id:"420506"},{name:"远安县",id:"420525"},{name:"兴山县",id:"420526"},{name:"秭归县",id:"420527"},{name:"长阳土家族自治县",id:"420528"},{name:"五峰土家族自治县",id:"420529"},{name:"宜都市",id:"420581"},{name:"当阳市",id:"420582"},{name:"枝江市",id:"420583"}]},{name:"襄阳市",area:[{name:"襄城区",id:"420602"},{name:"樊城区",id:"420606"},{name:"襄州区",id:"420607"},{name:"南漳县",id:"420624"},{name:"谷城县",id:"420625"},{name:"保康县",id:"420626"},{name:"老河口市",id:"420682"},{name:"枣阳市",id:"420683"},{name:"宜城市",id:"420684"}]},{name:"鄂州市",area:[{name:"梁子湖区",id:"420702"},{name:"华容区",id:"420703"},{name:"鄂城区",id:"420704"}]},{name:"荆门市",area:[{name:"东宝区",id:"420802"},{name:"掇刀区",id:"420804"},{name:"京山县",id:"420821"},{name:"沙洋县",id:"420822"},{name:"钟祥市",id:"420881"}]},{name:"孝感市",area:[{name:"孝南区",id:"420902"},{name:"孝昌县",id:"420921"},{name:"大悟县",id:"420922"},{name:"云梦县",id:"420923"},{name:"应城市",id:"420981"},{name:"安陆市",id:"420982"},{name:"汉川市",id:"420984"}]},{name:"荆州市",area:[{name:"沙市区",id:"421002"},{name:"荆州区",id:"421003"},{name:"公安县",id:"421022"},{name:"监利县",id:"421023"},{name:"江陵县",id:"421024"},{name:"石首市",id:"421081"},{name:"洪湖市",id:"421083"},{name:"松滋市",id:"421087"}]},{name:"黄冈市",area:[{name:"黄州区",id:"421102"},{name:"团风县",id:"421121"},{name:"红安县",id:"421122"},{name:"罗田县",id:"421123"},{name:"英山县",id:"421124"},{name:"浠水县",id:"421125"},{name:"蕲春县",id:"421126"},{name:"黄梅县",id:"421127"},{name:"麻城市",id:"421181"},{name:"武穴市",id:"421182"}]},{name:"咸宁市",area:[{name:"咸安区",id:"421202"},{name:"嘉鱼县",id:"421221"},{name:"通城县",id:"421222"},{name:"崇阳县",id:"421223"},{name:"通山县",id:"421224"},{name:"赤壁市",id:"421281"}]},{name:"随州市",area:[{name:"曾都区",id:"421303"},{name:"随县",id:"421321"},{name:"广水市",id:"421381"}]},{name:"恩施土家族苗族自治州",area:[{name:"恩施市",id:"422801"},{name:"利川市",id:"422802"},{name:"建始县",id:"422822"},{name:"巴东县",id:"422823"},{name:"宣恩县",id:"422825"},{name:"咸丰县",id:"422826"},{name:"来凤县",id:"422827"},{name:"鹤峰县",id:"422828"}]},{name:"直辖县级",area:[{name:"仙桃市",id:"429004"},{name:"潜江市",id:"429005"},{name:"天门市",id:"429006"},{name:"神农架林区",id:"429021"}]}]},{name:"湖南省",city:[{name:"长沙市",area:[{name:"芙蓉区",id:"430102"},{name:"天心区",id:"430103"},{name:"岳麓区",id:"430104"},{name:"开福区",id:"430105"},{name:"雨花区",id:"430111"},{name:"望城区",id:"430112"},{name:"长沙县",id:"430121"},{name:"宁乡县",id:"430124"},{name:"浏阳市",id:"430181"}]},{name:"株洲市",area:[{name:"荷塘区",id:"430202"},{name:"芦淞区",id:"430203"},{name:"石峰区",id:"430204"},{name:"天元区",id:"430211"},{name:"株洲县",id:"430221"},{name:"攸县",id:"430223"},{name:"茶陵县",id:"430224"},{name:"炎陵县",id:"430225"},{name:"醴陵市",id:"430281"}]},{name:"湘潭市",area:[{name:"雨湖区",id:"430302"},{name:"岳塘区",id:"430304"},{name:"湘潭县",id:"430321"},{name:"湘乡市",id:"430381"},{name:"韶山市",id:"430382"}]},{name:"衡阳市",area:[{name:"珠晖区",id:"430405"},{name:"雁峰区",id:"430406"},{name:"石鼓区",id:"430407"},{name:"蒸湘区",id:"430408"},{name:"南岳区",id:"430412"},{name:"衡阳县",id:"430421"},{name:"衡南县",id:"430422"},{name:"衡山县",id:"430423"},{name:"衡东县",id:"430424"},{name:"祁东县",id:"430426"},{name:"耒阳市",id:"430481"},{name:"常宁市",id:"430482"}]},{name:"邵阳市",area:[{name:"双清区",id:"430502"},{name:"大祥区",id:"430503"},{name:"北塔区",id:"430511"},{name:"邵东县",id:"430521"},{name:"新邵县",id:"430522"},{name:"邵阳县",id:"430523"},{name:"隆回县",id:"430524"},{name:"洞口县",id:"430525"},{name:"绥宁县",id:"430527"},{name:"新宁县",id:"430528"},{name:"城步苗族自治县",id:"430529"},{name:"武冈市",id:"430581"}]},{name:"岳阳市",area:[{name:"岳阳楼区",id:"430602"},{name:"云溪区",id:"430603"},{name:"君山区",id:"430611"},{name:"岳阳县",id:"430621"},{name:"华容县",id:"430623"},{name:"湘阴县",id:"430624"},{name:"平江县",id:"430626"},{name:"汨罗市",id:"430681"},{name:"临湘市",id:"430682"}]},{name:"常德市",area:[{name:"武陵区",id:"430702"},{name:"鼎城区",id:"430703"},{name:"安乡县",id:"430721"},{name:"汉寿县",id:"430722"},{name:"澧县",id:"430723"},{name:"临澧县",id:"430724"},{name:"桃源县",id:"430725"},{name:"石门县",id:"430726"},{name:"津市市",id:"430781"}]},{name:"张家界市",area:[{name:"永定区",id:"430802"},{name:"武陵源区",id:"430811"},{name:"慈利县",id:"430821"},{name:"桑植县",id:"430822"}]},{name:"益阳市",area:[{name:"资阳区",id:"430902"},{name:"赫山区",id:"430903"},{name:"南县",id:"430921"},{name:"桃江县",id:"430922"},{name:"安化县",id:"430923"},{name:"沅江市",id:"430981"}]},{name:"郴州市",area:[{name:"北湖区",id:"431002"},{name:"苏仙区",id:"431003"},{name:"桂阳县",id:"431021"},{name:"宜章县",id:"431022"},{name:"永兴县",id:"431023"},{name:"嘉禾县",id:"431024"},{name:"临武县",id:"431025"},{name:"汝城县",id:"431026"},{name:"桂东县",id:"431027"},{name:"安仁县",id:"431028"},{name:"资兴市",id:"431081"}]},{name:"永州市",area:[{name:"零陵区",id:"431102"},{name:"冷水滩区",id:"431103"},{name:"祁阳县",id:"431121"},{name:"东安县",id:"431122"},{name:"双牌县",id:"431123"},{name:"道县",id:"431124"},{name:"江永县",id:"431125"},{name:"宁远县",id:"431126"},{name:"蓝山县",id:"431127"},{name:"新田县",id:"431128"},{name:"江华瑶族自治县",id:"431129"}]},{name:"怀化市",area:[{name:"鹤城区",id:"431202"},{name:"中方县",id:"431221"},{name:"沅陵县",id:"431222"},{name:"辰溪县",id:"431223"},{name:"溆浦县",id:"431224"},{name:"会同县",id:"431225"},{name:"麻阳苗族自治县",id:"431226"},{name:"新晃侗族自治县",id:"431227"},{name:"芷江侗族自治县",id:"431228"},{name:"靖州苗族侗族自治县",id:"431229"},{name:"通道侗族自治县",id:"431230"},{name:"洪江市",id:"431281"}]},{name:"娄底市",area:[{name:"娄星区",id:"431302"},{name:"双峰县",id:"431321"},{name:"新化县",id:"431322"},{name:"冷水江市",id:"431381"},{name:"涟源市",id:"431382"}]},{name:"湘西土家族苗族自治州",area:[{name:"吉首市",id:"433101"},{name:"泸溪县",id:"433122"},{name:"凤凰县",id:"433123"},{name:"花垣县",id:"433124"},{name:"保靖县",id:"433125"},{name:"古丈县",id:"433126"},{name:"永顺县",id:"433127"},{name:"龙山县",id:"433130"}]}]},{name:"广东省",city:[{name:"广州市",area:[{name:"荔湾区",id:"440103"},{name:"越秀区",id:"440104"},{name:"海珠区",id:"440105"},{name:"天河区",id:"440106"},{name:"白云区",id:"440111"},{name:"黄埔区",id:"440112"},{name:"番禺区",id:"440113"},{name:"花都区",id:"440114"},{name:"南沙区",id:"440115"},{name:"从化区",id:"440117"},{name:"增城区",id:"440118"}]},{name:"韶关市",area:[{name:"武江区",id:"440203"},{name:"浈江区",id:"440204"},{name:"曲江区",id:"440205"},{name:"始兴县",id:"440222"},{name:"仁化县",id:"440224"},{name:"翁源县",id:"440229"},{name:"乳源瑶族自治县",id:"440232"},{name:"新丰县",id:"440233"},{name:"乐昌市",id:"440281"},{name:"南雄市",id:"440282"}]},{name:"深圳市",area:[{name:"罗湖区",id:"440303"},{name:"福田区",id:"440304"},{name:"南山区",id:"440305"},{name:"宝安区",id:"440306"},{name:"龙岗区",id:"440307"},{name:"盐田区",id:"440308"},{name:"光明新区",id:"440309"},{name:"坪山新区",id:"440310"},{name:"大鹏新区",id:"440311"},{name:"龙华新区",id:"440312"}]},{name:"珠海市",area:[{name:"香洲区",id:"440402"},{name:"斗门区",id:"440403"},{name:"金湾区",id:"440404"}]},{name:"汕头市",area:[{name:"龙湖区",id:"440507"},{name:"金平区",id:"440511"},{name:"濠江区",id:"440512"},{name:"潮阳区",id:"440513"},{name:"潮南区",id:"440514"},{name:"澄海区",id:"440515"},{name:"南澳县",id:"440523"}]},{name:"佛山市",area:[{name:"禅城区",id:"440604"},{name:"南海区",id:"440605"},{name:"顺德区",id:"440606"},{name:"三水区",id:"440607"},{name:"高明区",id:"440608"}]},{name:"江门市",area:[{name:"蓬江区",id:"440703"},{name:"江海区",id:"440704"},{name:"新会区",id:"440705"},{name:"台山市",id:"440781"},{name:"开平市",id:"440783"},{name:"鹤山市",id:"440784"},{name:"恩平市",id:"440785"}]},{name:"湛江市",area:[{name:"赤坎区",id:"440802"},{name:"霞山区",id:"440803"},{name:"坡头区",id:"440804"},{name:"麻章区",id:"440811"},{name:"遂溪县",id:"440823"},{name:"徐闻县",id:"440825"},{name:"廉江市",id:"440881"},{name:"雷州市",id:"440882"},{name:"吴川市",id:"440883"}]},{name:"茂名市",area:[{name:"茂南区",id:"440902"},{name:"电白区",id:"440904"},{name:"高州市",id:"440981"},{name:"化州市",id:"440982"},{name:"信宜市",id:"440983"}]},{name:"肇庆市",area:[{name:"端州区",id:"441202"},{name:"鼎湖区",id:"441203"},{name:"广宁县",id:"441223"},{name:"怀集县",id:"441224"},{name:"封开县",id:"441225"},{name:"德庆县",id:"441226"},{name:"高要市",id:"441283"},{name:"四会市",id:"441284"}]},{name:"惠州市",area:[{name:"惠城区",id:"441302"},{name:"惠阳区",id:"441303"},{name:"博罗县",id:"441322"},{name:"惠东县",id:"441323"},{name:"龙门县",id:"441324"}]},{name:"梅州市",area:[{name:"梅江区",id:"441402"},{name:"梅县区",id:"441403"},{name:"大埔县",id:"441422"},{name:"丰顺县",id:"441423"},{name:"五华县",id:"441424"},{name:"平远县",id:"441426"},{name:"蕉岭县",id:"441427"},{name:"兴宁市",id:"441481"}]},{name:"汕尾市",area:[{name:"城区",id:"441502"},{name:"海丰县",id:"441521"},{name:"陆河县",id:"441523"},{name:"陆丰市",id:"441581"}]},{name:"河源市",area:[{name:"源城区",id:"441602"},{name:"紫金县",id:"441621"},{name:"龙川县",id:"441622"},{name:"连平县",id:"441623"},{name:"和平县",id:"441624"},{name:"东源县",id:"441625"}]},{name:"阳江市",area:[{name:"江城区",id:"441702"},{name:"阳东区",id:"441704"},{name:"阳西县",id:"441721"},{name:"阳春市",id:"441781"}]},{name:"清远市",area:[{name:"清城区",id:"441802"},{name:"清新区",id:"441803"},{name:"佛冈县",id:"441821"},{name:"阳山县",id:"441823"},{name:"连山壮族瑶族自治县",id:"441825"},{name:"连南瑶族自治县",id:"441826"},{name:"英德市",id:"441881"},{name:"连州市",id:"441882"}]},{name:"东莞市",area:[{name:"莞城区",id:"441901"},{name:"南城区",id:"441902"},{name:"万江区",id:"441904"},{name:"石碣镇",id:"441905"},{name:"石龙镇",id:"441906"},{name:"茶山镇",id:"441907"},{name:"石排镇",id:"441908"},{name:"企石镇",id:"441909"},{name:"横沥镇",id:"441910"},{name:"桥头镇",id:"441911"},{name:"谢岗镇",id:"441912"},{name:"东坑镇",id:"441913"},{name:"常平镇",id:"441914"},{name:"寮步镇",id:"441915"},{name:"大朗镇",id:"441916"},{name:"麻涌镇",id:"441917"},{name:"中堂镇",id:"441918"},{name:"高埗镇",id:"441919"},{name:"樟木头镇",id:"441920"},{name:"大岭山镇",id:"441921"},{name:"望牛墩镇",id:"441922"},{name:"黄江镇",id:"441923"},{name:"洪梅镇",id:"441924"},{name:"清溪镇",id:"441925"},{name:"沙田镇",id:"441926"},{name:"道滘镇",id:"441927"},{name:"塘厦镇",id:"441928"},{name:"虎门镇",id:"441929"},{name:"厚街镇",id:"441930"},{name:"凤岗镇",id:"441931"},{name:"长安镇",id:"441932"}]},{name:"中山市",area:[{name:"石岐区",id:"442001"},{name:"南区",id:"442004"},{name:"五桂山区",id:"442005"},{name:"火炬开发区",id:"442006"},{name:"黄圃镇",id:"442007"},{name:"南头镇",id:"442008"},{name:"东凤镇",id:"442009"},{name:"阜沙镇",id:"442010"},{name:"小榄镇",id:"442011"},{name:"东升镇",id:"442012"},{name:"古镇镇",id:"442013"},{name:"横栏镇",id:"442014"},{name:"三角镇",id:"442015"},{name:"民众镇",id:"442016"},{name:"南朗镇",id:"442017"},{name:"港口镇",id:"442018"},{name:"大涌镇",id:"442019"},{name:"沙溪镇",id:"442020"},{name:"三乡镇",id:"442021"},{name:"板芙镇",id:"442022"},{name:"神湾镇",id:"442023"},{name:"坦洲镇",id:"442024"}]},{name:"潮州市",area:[{name:"湘桥区",id:"445102"},{name:"潮安区",id:"445103"},{name:"饶平县",id:"445122"}]},{name:"揭阳市",area:[{name:"榕城区",id:"445202"},{name:"揭东区",id:"445203"},{name:"揭西县",id:"445222"},{name:"惠来县",id:"445224"},{name:"普宁市",id:"445281"}]},{name:"云浮市",area:[{name:"云城区",id:"445302"},{name:"云安区",id:"445303"},{name:"新兴县",id:"445321"},{name:"郁南县",id:"445322"},{name:"罗定市",id:"445381"}]}]},{name:"广西壮族自治区",city:[{name:"南宁市",area:[{name:"兴宁区",id:"450102"},{name:"青秀区",id:"450103"},{name:"江南区",id:"450105"},{name:"西乡塘区",id:"450107"},{name:"良庆区",id:"450108"},{name:"邕宁区",id:"450109"},{name:"武鸣县",id:"450122"},{name:"隆安县",id:"450123"},{name:"马山县",id:"450124"},{name:"上林县",id:"450125"},{name:"宾阳县",id:"450126"},{name:"横县",id:"450127"},{name:"埌东新区",id:"450128"}]},{name:"柳州市",area:[{name:"城中区",id:"450202"},{name:"鱼峰区",id:"450203"},{name:"柳南区",id:"450204"},{name:"柳北区",id:"450205"},{name:"柳江县",id:"450221"},{name:"柳城县",id:"450222"},{name:"鹿寨县",id:"450223"},{name:"融安县",id:"450224"},{name:"融水苗族自治县",id:"450225"},{name:"三江侗族自治县",id:"450226"},{name:"柳东新区",id:"450227"}]},{name:"桂林市",area:[{name:"秀峰区",id:"450302"},{name:"叠彩区",id:"450303"},{name:"象山区",id:"450304"},{name:"七星区",id:"450305"},{name:"雁山区",id:"450311"},{name:"临桂区",id:"450312"},{name:"阳朔县",id:"450321"},{name:"灵川县",id:"450323"},{name:"全州县",id:"450324"},{name:"兴安县",id:"450325"},{name:"永福县",id:"450326"},{name:"灌阳县",id:"450327"},{name:"龙胜各族自治县",id:"450328"},{name:"资源县",id:"450329"},{name:"平乐县",id:"450330"},{name:"荔浦县",id:"450331"},{name:"恭城瑶族自治县",id:"450332"}]},{name:"梧州市",area:[{name:"万秀区",id:"450403"},{name:"长洲区",id:"450405"},{name:"龙圩区",id:"450406"},{name:"苍梧县",id:"450421"},{name:"藤县",id:"450422"},{name:"蒙山县",id:"450423"},{name:"岑溪市",id:"450481"}]},{name:"北海市",area:[{name:"海城区",id:"450502"},{name:"银海区",id:"450503"},{name:"铁山港区",id:"450512"},{name:"合浦县",id:"450521"}]},{name:"防城港市",area:[{name:"港口区",id:"450602"},{name:"防城区",id:"450603"},{name:"上思县",id:"450621"},{name:"东兴市",id:"450681"}]},{name:"钦州市",area:[{name:"钦南区",id:"450702"},{name:"钦北区",id:"450703"},{name:"灵山县",id:"450721"},{name:"浦北县",id:"450722"}]},{name:"贵港市",area:[{name:"港北区",id:"450802"},{name:"港南区",id:"450803"},{name:"覃塘区",id:"450804"},{name:"平南县",id:"450821"},{name:"桂平市",id:"450881"}]},{name:"玉林市",area:[{name:"玉州区",id:"450902"},{name:"福绵区",id:"450903"},{name:"玉东新区",id:"450904"},{name:"容县",id:"450921"},{name:"陆川县",id:"450922"},{name:"博白县",id:"450923"},{name:"兴业县",id:"450924"},{name:"北流市",id:"450981"}]},{name:"百色市",area:[{name:"右江区",id:"451002"},{name:"田阳县",id:"451021"},{name:"田东县",id:"451022"},{name:"平果县",id:"451023"},{name:"德保县",id:"451024"},{name:"靖西县",id:"451025"},{name:"那坡县",id:"451026"},{name:"凌云县",id:"451027"},{name:"乐业县",id:"451028"},{name:"田林县",id:"451029"},{name:"西林县",id:"451030"},{name:"隆林各族自治县",id:"451031"}]},{name:"贺州市",area:[{name:"八步区",id:"451102"},{name:"昭平县",id:"451121"},{name:"钟山县",id:"451122"},{name:"富川瑶族自治县",id:"451123"},{name:"平桂管理区",id:"451124"}]},{name:"河池市",area:[{name:"金城江区",id:"451202"},{name:"南丹县",id:"451221"},{name:"天峨县",id:"451222"},{name:"凤山县",id:"451223"},{name:"东兰县",id:"451224"},{name:"罗城仫佬族自治县",id:"451225"},{name:"环江毛南族自治县",id:"451226"},{name:"巴马瑶族自治县",id:"451227"},{name:"都安瑶族自治县",id:"451228"},{name:"大化瑶族自治县",id:"451229"},{name:"宜州市",id:"451281"}]},{name:"来宾市",area:[{name:"兴宾区",id:"451302"},{name:"忻城县",id:"451321"},{name:"象州县",id:"451322"},{name:"武宣县",id:"451323"},{name:"金秀瑶族自治县",id:"451324"},{name:"合山市",id:"451381"}]},{name:"崇左市",area:[{name:"江州区",id:"451402"},{name:"扶绥县",id:"451421"},{name:"宁明县",id:"451422"},{name:"龙州县",id:"451423"},{name:"大新县",id:"451424"},{name:"天等县",id:"451425"},{name:"凭祥市",id:"451481"}]}]},{name:"海南省",city:[{name:"海口市",area:[{name:"秀英区",id:"460105"},{name:"龙华区",id:"460106"},{name:"琼山区",id:"460107"},{name:"美兰区",id:"460108"}]},{name:"三亚市",area:[{name:"海棠区",id:"460202"},{name:"吉阳区",id:"460203"},{name:"天涯区",id:"460204"},{name:"崖州区",id:"460205"}]},{name:"三沙市",area:[{name:"西沙群岛",id:"460321"},{name:"南沙群岛",id:"460322"},{name:"中沙群岛",id:"460323"}]},{name:"直辖县级",area:[{name:"五指山市",id:"469001"},{name:"琼海市",id:"469002"},{name:"儋州市",id:"469003"},{name:"文昌市",id:"469005"},{name:"万宁市",id:"469006"},{name:"东方市",id:"469007"},{name:"定安县",id:"469021"},{name:"屯昌县",id:"469022"},{name:"澄迈县",id:"469023"},{name:"临高县",id:"469024"},{name:"白沙黎族自治县",id:"469025"},{name:"昌江黎族自治县",id:"469026"},{name:"乐东黎族自治县",id:"469027"},{name:"陵水黎族自治县",id:"469028"},{name:"保亭黎族苗族自治县",id:"469029"},{name:"琼中黎族苗族自治县",id:"469030"}]}]},{name:"重庆",city:[{name:"重庆市",area:[{name:"万州区",id:"500101"},{name:"涪陵区",id:"500102"},{name:"渝中区",id:"500103"},{name:"大渡口区",id:"500104"},{name:"江北区",id:"500105"},{name:"沙坪坝区",id:"500106"},{name:"九龙坡区",id:"500107"},{name:"南岸区",id:"500108"},{name:"北碚区",id:"500109"},{name:"綦江区",id:"500110"},{name:"大足区",id:"500111"},{name:"渝北区",id:"500112"},{name:"巴南区",id:"500113"},{name:"黔江区",id:"500114"},{name:"长寿区",id:"500115"},{name:"江津区",id:"500116"},{name:"合川区",id:"500117"},{name:"永川区",id:"500118"},{name:"南川区",id:"500119"},{name:"璧山区",id:"500120"},{name:"铜梁区",id:"500151"},{name:"潼南县",id:"500223"},{name:"荣昌县",id:"500226"},{name:"梁平县",id:"500228"},{name:"城口县",id:"500229"},{name:"丰都县",id:"500230"},{name:"垫江县",id:"500231"},{name:"武隆县",id:"500232"},{name:"忠县",id:"500233"},{name:"开县",id:"500234"},{name:"云阳县",id:"500235"},{name:"奉节县",id:"500236"},{name:"巫山县",id:"500237"},{name:"巫溪县",id:"500238"},{name:"石柱土家族自治县",id:"500240"},{name:"秀山土家族苗族自治县",id:"500241"},{name:"酉阳土家族苗族自治县",id:"500242"},{name:"彭水苗族土家族自治县",id:"500243"}]},{name:"两江新区",area:[{name:"北部新区",id:"500301"},{name:"保税港区",id:"500302"},{name:"工业园区",id:"500303"}]}]},{name:"四川省",city:[{name:"成都市",area:[{name:"锦江区",id:"510104"},{name:"青羊区",id:"510105"},{name:"金牛区",id:"510106"},{name:"武侯区",id:"510107"},{name:"成华区",id:"510108"},{name:"龙泉驿区",id:"510112"},{name:"青白江区",id:"510113"},{name:"新都区",id:"510114"},{name:"温江区",id:"510115"},{name:"金堂县",id:"510121"},{name:"双流县",id:"510122"},{name:"郫县",id:"510124"},{name:"大邑县",id:"510129"},{name:"蒲江县",id:"510131"},{name:"新津县",id:"510132"},{name:"都江堰市",id:"510181"},{name:"彭州市",id:"510182"},{name:"邛崃市",id:"510183"},{name:"崇州市",id:"510184"}]},{name:"自贡市",area:[{name:"自流井区",id:"510302"},{name:"贡井区",id:"510303"},{name:"大安区",id:"510304"},{name:"沿滩区",id:"510311"},{name:"荣县",id:"510321"},{name:"富顺县",id:"510322"}]},{name:"攀枝花市",area:[{name:"东区",id:"510402"},{name:"西区",id:"510403"},{name:"仁和区",id:"510411"},{name:"米易县",id:"510421"},{name:"盐边县",id:"510422"}]},{name:"泸州市",area:[{name:"江阳区",id:"510502"},{name:"纳溪区",id:"510503"},{name:"龙马潭区",id:"510504"},{name:"泸县",id:"510521"},{name:"合江县",id:"510522"},{name:"叙永县",id:"510524"},{name:"古蔺县",id:"510525"}]},{name:"德阳市",area:[{name:"旌阳区",id:"510603"},{name:"中江县",id:"510623"},{name:"罗江县",id:"510626"},{name:"广汉市",id:"510681"},{name:"什邡市",id:"510682"},{name:"绵竹市",id:"510683"}]},{name:"绵阳市",area:[{name:"涪城区",id:"510703"},{name:"游仙区",id:"510704"},{name:"三台县",id:"510722"},{name:"盐亭县",id:"510723"},{name:"安县",id:"510724"},{name:"梓潼县",id:"510725"},{name:"北川羌族自治县",id:"510726"},{name:"平武县",id:"510727"},{name:"江油市",id:"510781"}]},{name:"广元市",area:[{name:"利州区",id:"510802"},{name:"昭化区",id:"510811"},{name:"朝天区",id:"510812"},{name:"旺苍县",id:"510821"},{name:"青川县",id:"510822"},{name:"剑阁县",id:"510823"},{name:"苍溪县",id:"510824"}]},{name:"遂宁市",area:[{name:"船山区",id:"510903"},{name:"安居区",id:"510904"},{name:"蓬溪县",id:"510921"},{name:"射洪县",id:"510922"},{name:"大英县",id:"510923"}]},{name:"内江市",area:[{name:"市中区",id:"511002"},{name:"东兴区",id:"511011"},{name:"威远县",id:"511024"},{name:"资中县",id:"511025"},{name:"隆昌县",id:"511028"}]},{name:"乐山市",area:[{name:"市中区",id:"511102"},{name:"沙湾区",id:"511111"},{name:"五通桥区",id:"511112"},{name:"金口河区",id:"511113"},{name:"犍为县",id:"511123"},{name:"井研县",id:"511124"},{name:"夹江县",id:"511126"},{name:"沐川县",id:"511129"},{name:"峨边彝族自治县",id:"511132"},{name:"马边彝族自治县",id:"511133"},{name:"峨眉山市",id:"511181"}]},{name:"南充市",area:[{name:"顺庆区",id:"511302"},{name:"高坪区",id:"511303"},{name:"嘉陵区",id:"511304"},{name:"南部县",id:"511321"},{name:"营山县",id:"511322"},{name:"蓬安县",id:"511323"},{name:"仪陇县",id:"511324"},{name:"西充县",id:"511325"},{name:"阆中市",id:"511381"}]},{name:"眉山市",area:[{name:"东坡区",id:"511402"},{name:"彭山区",id:"511403"},{name:"仁寿县",id:"511421"},{name:"洪雅县",id:"511423"},{name:"丹棱县",id:"511424"},{name:"青神县",id:"511425"}]},{name:"宜宾市",area:[{name:"翠屏区",id:"511502"},{name:"南溪区",id:"511503"},{name:"宜宾县",id:"511521"},{name:"江安县",id:"511523"},{name:"长宁县",id:"511524"},{name:"高县",id:"511525"},{name:"珙县",id:"511526"},{name:"筠连县",id:"511527"},{name:"兴文县",id:"511528"},{name:"屏山县",id:"511529"}]},{name:"广安市",area:[{name:"广安区",id:"511602"},{name:"前锋区",id:"511603"},{name:"岳池县",id:"511621"},{name:"武胜县",id:"511622"},{name:"邻水县",id:"511623"},{name:"华蓥市",id:"511681"}]},{name:"达州市",area:[{name:"通川区",id:"511702"},{name:"达川区",id:"511703"},{name:"宣汉县",id:"511722"},{name:"开江县",id:"511723"},{name:"大竹县",id:"511724"},{name:"渠县",id:"511725"},{name:"万源市",id:"511781"}]},{name:"雅安市",area:[{name:"雨城区",id:"511802"},{name:"名山区",id:"511803"},{name:"荥经县",id:"511822"},{name:"汉源县",id:"511823"},{name:"石棉县",id:"511824"},{name:"天全县",id:"511825"},{name:"芦山县",id:"511826"},{name:"宝兴县",id:"511827"}]},{name:"巴中市",area:[{name:"巴州区",id:"511902"},{name:"恩阳区",id:"511903"},{name:"通江县",id:"511921"},{name:"南江县",id:"511922"},{name:"平昌县",id:"511923"}]},{name:"资阳市",area:[{name:"雁江区",id:"512002"},{name:"安岳县",id:"512021"},{name:"乐至县",id:"512022"},{name:"简阳市",id:"512081"}]},{name:"阿坝藏族羌族自治州",area:[{name:"汶川县",id:"513221"},{name:"理县",id:"513222"},{name:"茂县",id:"513223"},{name:"松潘县",id:"513224"},{name:"九寨沟县",id:"513225"},{name:"金川县",id:"513226"},{name:"小金县",id:"513227"},{name:"黑水县",id:"513228"},{name:"马尔康县",id:"513229"},{name:"壤塘县",id:"513230"},{name:"阿坝县",id:"513231"},{name:"若尔盖县",id:"513232"},{name:"红原县",id:"513233"}]},{name:"甘孜藏族自治州",area:[{name:"康定县",id:"513321"},{name:"泸定县",id:"513322"},{name:"丹巴县",id:"513323"},{name:"九龙县",id:"513324"},{name:"雅江县",id:"513325"},{name:"道孚县",id:"513326"},{name:"炉霍县",id:"513327"},{name:"甘孜县",id:"513328"},{name:"新龙县",id:"513329"},{name:"德格县",id:"513330"},{name:"白玉县",id:"513331"},{name:"石渠县",id:"513332"},{name:"色达县",id:"513333"},{name:"理塘县",id:"513334"},{name:"巴塘县",id:"513335"},{name:"乡城县",id:"513336"},{name:"稻城县",id:"513337"},{name:"得荣县",id:"513338"}]},{name:"凉山彝族自治州",area:[{name:"西昌市",id:"513401"},{name:"木里藏族自治县",id:"513422"},{name:"盐源县",id:"513423"},{name:"德昌县",id:"513424"},{name:"会理县",id:"513425"},{name:"会东县",id:"513426"},{name:"宁南县",id:"513427"},{name:"普格县",id:"513428"},{name:"布拖县",id:"513429"},{name:"金阳县",id:"513430"},{name:"昭觉县",id:"513431"},{name:"喜德县",id:"513432"},{name:"冕宁县",id:"513433"},{name:"越西县",id:"513434"},{name:"甘洛县",id:"513435"},{name:"美姑县",id:"513436"},{name:"雷波县",id:"513437"}]}]},{name:"贵州省",city:[{name:"贵阳市",area:[{name:"南明区",id:"520102"},{name:"云岩区",id:"520103"},{name:"花溪区",id:"520111"},{name:"乌当区",id:"520112"},{name:"白云区",id:"520113"},{name:"观山湖区",id:"520115"},{name:"开阳县",id:"520121"},{name:"息烽县",id:"520122"},{name:"修文县",id:"520123"},{name:"清镇市",id:"520181"}]},{name:"六盘水市",area:[{name:"钟山区",id:"520201"},{name:"六枝特区",id:"520203"},{name:"水城县",id:"520221"},{name:"盘县",id:"520222"}]},{name:"遵义市",area:[{name:"红花岗区",id:"520302"},{name:"汇川区",id:"520303"},{name:"遵义县",id:"520321"},{name:"桐梓县",id:"520322"},{name:"绥阳县",id:"520323"},{name:"正安县",id:"520324"},{name:"道真仡佬族苗族自治县",id:"520325"},{name:"务川仡佬族苗族自治县",id:"520326"},{name:"凤冈县",id:"520327"},{name:"湄潭县",id:"520328"},{name:"余庆县",id:"520329"},{name:"习水县",id:"520330"},{name:"赤水市",id:"520381"},{name:"仁怀市",id:"520382"}]},{name:"安顺市",area:[{name:"西秀区",id:"520402"},{name:"平坝区",id:"520421"},{name:"普定县",id:"520422"},{name:"镇宁布依族苗族自治县",id:"520423"},{name:"关岭布依族苗族自治县",id:"520424"},{name:"紫云苗族布依族自治县",id:"520425"}]},{name:"毕节市",area:[{name:"七星关区",id:"520502"},{name:"大方县",id:"520521"},{name:"黔西县",id:"520522"},{name:"金沙县",id:"520523"},{name:"织金县",id:"520524"},{name:"纳雍县",id:"520525"},{name:"威宁彝族回族苗族自治县",id:"520526"},{name:"赫章县",id:"520527"}]},{name:"铜仁市",area:[{name:"碧江区",id:"520602"},{name:"万山区",id:"520603"},{name:"江口县",id:"520621"},{name:"玉屏侗族自治县",id:"520622"},{name:"石阡县",id:"520623"},{name:"思南县",id:"520624"},{name:"印江土家族苗族自治县",id:"520625"},{name:"德江县",id:"520626"},{name:"沿河土家族自治县",id:"520627"},{name:"松桃苗族自治县",id:"520628"}]},{name:"黔西南布依族苗族自治州",area:[{name:"兴义市 ",id:"522301"},{name:"兴仁县",id:"522322"},{name:"普安县",id:"522323"},{name:"晴隆县",id:"522324"},{name:"贞丰县",id:"522325"},{name:"望谟县",id:"522326"},{name:"册亨县",id:"522327"},{name:"安龙县",id:"522328"}]},{name:"黔东南苗族侗族自治州",area:[{name:"凯里市",id:"522601"},{name:"黄平县",id:"522622"},{name:"施秉县",id:"522623"},{name:"三穗县",id:"522624"},{name:"镇远县",id:"522625"},{name:"岑巩县",id:"522626"},{name:"天柱县",id:"522627"},{name:"锦屏县",id:"522628"},{name:"剑河县",id:"522629"},{name:"台江县",id:"522630"},{name:"黎平县",id:"522631"},{name:"榕江县",id:"522632"},{name:"从江县",id:"522633"},{name:"雷山县",id:"522634"},{name:"麻江县",id:"522635"},{name:"丹寨县",id:"522636"}]},{name:"黔南布依族苗族自治州",area:[{name:"都匀市",id:"522701"},{name:"福泉市",id:"522702"},{name:"荔波县",id:"522722"},{name:"贵定县",id:"522723"},{name:"瓮安县",id:"522725"},{name:"独山县",id:"522726"},{name:"平塘县",id:"522727"},{name:"罗甸县",id:"522728"},{name:"长顺县",id:"522729"},{name:"龙里县",id:"522730"},{name:"惠水县",id:"522731"},{name:"三都水族自治县",id:"522732"}]}]},{name:"云南省",city:[{name:"昆明市",area:[{name:"五华区",id:"530102"},{name:"盘龙区",id:"530103"},{name:"官渡区",id:"530111"},{name:"西山区",id:"530112"},{name:"东川区",id:"530113"},{name:"呈贡区",id:"530114"},{name:"晋宁县",id:"530122"},{name:"富民县",id:"530124"},{name:"宜良县",id:"530125"},{name:"石林彝族自治县",id:"530126"},{name:"嵩明县",id:"530127"},{name:"禄劝彝族苗族自治县",id:"530128"},{name:"寻甸回族彝族自治县 ",id:"530129"},{name:"安宁市",id:"530181"}]},{name:"曲靖市",area:[{name:"麒麟区",id:"530302"},{name:"马龙县",id:"530321"},{name:"陆良县",id:"530322"},{name:"师宗县",id:"530323"},{name:"罗平县",id:"530324"},{name:"富源县",id:"530325"},{name:"会泽县",id:"530326"},{name:"沾益县",id:"530328"},{name:"宣威市",id:"530381"}]},{name:"玉溪市",area:[{name:"红塔区",id:"530402"},{name:"江川县",id:"530421"},{name:"澄江县",id:"530422"},{name:"通海县",id:"530423"},{name:"华宁县",id:"530424"},{name:"易门县",id:"530425"},{name:"峨山彝族自治县",id:"530426"},{name:"新平彝族傣族自治县",id:"530427"},{name:"元江哈尼族彝族傣族自治县",id:"530428"}]},{name:"保山市",area:[{name:"隆阳区",id:"530502"},{name:"施甸县",id:"530521"},{name:"腾冲县",id:"530522"},{name:"龙陵县",id:"530523"},{name:"昌宁县",id:"530524"}]},{name:"昭通市",area:[{name:"昭阳区",id:"530602"},{name:"鲁甸县",id:"530621"},{name:"巧家县",id:"530622"},{name:"盐津县",id:"530623"},{name:"大关县",id:"530624"},{name:"永善县",id:"530625"},{name:"绥江县",id:"530626"},{name:"镇雄县",id:"530627"},{name:"彝良县",id:"530628"},{name:"威信县",id:"530629"},{name:"水富县",id:"530630"}]},{name:"丽江市",area:[{name:"古城区",id:"530702"},{name:"玉龙纳西族自治县",id:"530721"},{name:"永胜县",id:"530722"},{name:"华坪县",id:"530723"},{name:"宁蒗彝族自治县",id:"530724"}]},{name:"普洱市",area:[{name:"思茅区",id:"530802"},{name:"宁洱哈尼族彝族自治县",id:"530821"},{name:"墨江哈尼族自治县",id:"530822"},{name:"景东彝族自治县",id:"530823"},{name:"景谷傣族彝族自治县",id:"530824"},{name:"镇沅彝族哈尼族拉祜族自治县",id:"530825"},{name:"江城哈尼族彝族自治县",id:"530826"},{name:"孟连傣族拉祜族佤族自治县",id:"530827"},{name:"澜沧拉祜族自治县",id:"530828"},{name:"西盟佤族自治县",id:"530829"}]},{name:"临沧市",area:[{name:"临翔区",id:"530902"},{name:"凤庆县",id:"530921"},{name:"云县",id:"530922"},{name:"永德县",id:"530923"},{name:"镇康县",id:"530924"},{name:"双江拉祜族佤族布朗族傣族自治县",id:"530925"},{name:"耿马傣族佤族自治县",id:"530926"},{name:"沧源佤族自治县",id:"530927"}]},{name:"楚雄彝族自治州",area:[{name:"楚雄市",id:"532301"},{name:"双柏县",id:"532322"},{name:"牟定县",id:"532323"},{name:"南华县",id:"532324"},{name:"姚安县",id:"532325"},{name:"大姚县",id:"532326"},{name:"永仁县",id:"532327"},{name:"元谋县",id:"532328"},{name:"武定县",id:"532329"},{name:"禄丰县",id:"532331"}]},{name:"红河哈尼族彝族自治州",area:[{name:"个旧市",id:"532501"},{name:"开远市",id:"532502"},{name:"蒙自市",id:"532503"},{name:"弥勒市",id:"532504"},{name:"屏边苗族自治县",id:"532523"},{name:"建水县",id:"532524"},{name:"石屏县",id:"532525"},{name:"泸西县",id:"532527"},{name:"元阳县",id:"532528"},{name:"红河县",id:"532529"},{name:"金平苗族瑶族傣族自治县",id:"532530"},{name:"绿春县",id:"532531"},{name:"河口瑶族自治县",id:"532532"}]},{name:"文山壮族苗族自治州",area:[{name:"文山市",id:"532601"},{name:"砚山县",id:"532622"},{name:"西畴县",id:"532623"},{name:"麻栗坡县",id:"532624"},{name:"马关县",id:"532625"},{name:"丘北县",id:"532626"},{name:"广南县",id:"532627"},{name:"富宁县",id:"532628"}]},{name:"西双版纳傣族自治州",area:[{name:"景洪市",id:"532801"},{name:"勐海县",id:"532822"},{name:"勐腊县",id:"532823"}]},{name:"大理白族自治州",area:[{name:"大理市",id:"532901"},{name:"漾濞彝族自治县",id:"532922"},{name:"祥云县",id:"532923"},{name:"宾川县",id:"532924"},{name:"弥渡县",id:"532925"},{name:"南涧彝族自治县",id:"532926"},{name:"巍山彝族回族自治县",id:"532927"},{name:"永平县",id:"532928"},{name:"云龙县",id:"532929"},{name:"洱源县",id:"532930"},{name:"剑川县",id:"532931"},{name:"鹤庆县",id:"532932"}]},{name:"德宏傣族景颇族自治州",area:[{name:"瑞丽市",id:"533102"},{name:"芒市",id:"533103"},{name:"梁河县",id:"533122"},{name:"盈江县",id:"533123"},{name:"陇川县",id:"533124"}]},{name:"怒江傈僳族自治州",area:[{name:"泸水县",id:"533321"},{name:"福贡县",id:"533323"},{name:"贡山独龙族怒族自治县",id:"533324"},{name:"兰坪白族普米族自治县",id:"533325"}]},{name:"迪庆藏族自治州",area:[{name:"香格里拉市",id:"533421"},{name:"德钦县",id:"533422"},{name:"维西傈僳族自治县",id:"533423"}]}]},{name:"西藏自治区",city:[{name:"拉萨市",area:[{name:"城关区",id:"540102"},{name:"林周县",id:"540121"},{name:"当雄县",id:"540122"},{name:"尼木县",id:"540123"},{name:"曲水县",id:"540124"},{name:"堆龙德庆县",id:"540125"},{name:"达孜县",id:"540126"},{name:"墨竹工卡县",id:"540127"}]},{name:"日喀则市",area:[{name:"桑珠孜区",id:"540202"},{name:"南木林县",id:"540221"},{name:"江孜县",id:"540222"},{name:"定日县",id:"540223"},{name:"萨迦县",id:"540224"},{name:"拉孜县",id:"540225"},{name:"昂仁县",id:"540226"},{name:"谢通门县",id:"540227"},{name:"白朗县",id:"540228"},{name:"仁布县",id:"540229"},{name:"康马县",id:"540230"},{name:"定结县",id:"540231"},{name:"仲巴县",id:"540232"},{name:"亚东县",id:"540233"},{name:"吉隆县",id:"540234"},{name:"聂拉木县",id:"540235"},{name:"萨嘎县",id:"540236"},{name:"岗巴县",id:"540237"}]},{name:"昌都市",area:[{name:"卡若区",id:"540302"},{name:"江达县",id:"540321"},{name:"贡觉县",id:"540322"},{name:"类乌齐县",id:"540323"},{name:"丁青县",id:"540324"},{name:"察雅县",id:"540325"},{name:"八宿县",id:"540326"},{name:"左贡县",id:"540327"},{name:"芒康县",id:"540328"},{name:"洛隆县",id:"540329"},{name:"边坝县",id:"540330"}]},{name:"山南地区",area:[{name:"乃东县",id:"542221"},{name:"扎囊县",id:"542222"},{name:"贡嘎县",id:"542223"},{name:"桑日县",id:"542224"},{name:"琼结县",id:"542225"},{name:"曲松县",id:"542226"},{name:"措美县",id:"542227"},{name:"洛扎县",id:"542228"},{name:"加查县",id:"542229"},{name:"隆子县",id:"542231"},{name:"错那县",id:"542232"},{name:"浪卡子县",id:"542233"}]},{name:"那曲地区",area:[{name:"那曲县",id:"542421"},{name:"嘉黎县",id:"542422"},{name:"比如县",id:"542423"},{name:"聂荣县",id:"542424"},{name:"安多县",id:"542425"},{name:"申扎县",id:"542426"},{name:"索县",id:"542427"},{name:"班戈县",id:"542428"},{name:"巴青县",id:"542429"},{name:"尼玛县",id:"542430"},{name:"双湖县",id:"542431"}]},{name:"阿里地区",area:[{name:"普兰县",id:"542521"},{name:"札达县",id:"542522"},{name:"噶尔县",id:"542523"},{name:"日土县",id:"542524"},{name:"革吉县",id:"542525"},{name:"改则县",id:"542526"},{name:"措勤县",id:"542527"}]},{name:"林芝地区",area:[{name:"林芝县",id:"542621"},{name:"工布江达县",id:"542622"},{name:"米林县",id:"542623"},{name:"墨脱县",id:"542624"},{name:"波密县",id:"542625"},{name:"察隅县",id:"542626"},{name:"朗县",id:"542627"}]}]},{name:"陕西省",city:[{name:"西安市",area:[{name:"新城区",id:"610102"},{name:"碑林区",id:"610103"},{name:"莲湖区",id:"610104"},{name:"灞桥区",id:"610111"},{name:"未央区",id:"610112"},{name:"雁塔区",id:"610113"},{name:"阎良区",id:"610114"},{name:"临潼区",id:"610115"},{name:"长安区",id:"610116"},{name:"蓝田县",id:"610122"},{name:"周至县",id:"610124"},{name:"户县",id:"610125"},{name:"高陵区",id:"610126"}]},{name:"铜川市",area:[{name:"王益区",id:"610202"},{name:"印台区",id:"610203"},{name:"耀州区",id:"610204"},{name:"宜君县",id:"610222"}]},{name:"宝鸡市",area:[{name:"渭滨区",id:"610302"},{name:"金台区",id:"610303"},{name:"陈仓区",id:"610304"},{name:"凤翔县",id:"610322"},{name:"岐山县",id:"610323"},{name:"扶风县",id:"610324"},{name:"眉县",id:"610326"},{name:"陇县",id:"610327"},{name:"千阳县",id:"610328"},{name:"麟游县",id:"610329"},{name:"凤县",id:"610330"},{name:"太白县",id:"610331"}]},{name:"咸阳市",area:[{name:"秦都区",id:"610402"},{name:"杨陵区",id:"610403"},{name:"渭城区",id:"610404"},{name:"三原县",id:"610422"},{name:"泾阳县",id:"610423"},{name:"乾县",id:"610424"},{name:"礼泉县",id:"610425"},{name:"永寿县",id:"610426"},{name:"彬县",id:"610427"},{name:"长武县",id:"610428"},{name:"旬邑县",id:"610429"},{name:"淳化县",id:"610430"},{name:"武功县",id:"610431"},{name:"兴平市",id:"610481"}]},{name:"渭南市",area:[{name:"临渭区",id:"610502"},{name:"华县",id:"610521"},{name:"潼关县",id:"610522"},{name:"大荔县",id:"610523"},{name:"合阳县",id:"610524"},{name:"澄城县",id:"610525"},{name:"蒲城县",id:"610526"},{name:"白水县",id:"610527"},{name:"富平县",id:"610528"},{name:"韩城市",id:"610581"},{name:"华阴市",id:"610582"}]},{name:"延安市",area:[{name:"宝塔区",id:"610602"},{name:"延长县",id:"610621"},{name:"延川县",id:"610622"},{name:"子长县",id:"610623"},{name:"安塞县",id:"610624"},{name:"志丹县",id:"610625"},{name:"吴起县",id:"610626"},{name:"甘泉县",id:"610627"},{name:"富县",id:"610628"},{name:"洛川县",id:"610629"},{name:"宜川县",id:"610630"},{name:"黄龙县",id:"610631"},{name:"黄陵县",id:"610632"}]},{name:"汉中市",area:[{name:"汉台区",id:"610702"},{name:"南郑县",id:"610721"},{name:"城固县",id:"610722"},{name:"洋县",id:"610723"},{name:"西乡县",id:"610724"},{name:"勉县",id:"610725"},{name:"宁强县",id:"610726"},{name:"略阳县",id:"610727"},{name:"镇巴县",id:"610728"},{name:"留坝县",id:"610729"},{name:"佛坪县",id:"610730"}]},{name:"榆林市",area:[{name:"榆阳区",id:"610802"},{name:"神木县",id:"610821"},{name:"府谷县",id:"610822"},{name:"横山县",id:"610823"},{name:"靖边县",id:"610824"},{name:"定边县",id:"610825"},{name:"绥德县",id:"610826"},{name:"米脂县",id:"610827"},{name:"佳县",id:"610828"},{name:"吴堡县",id:"610829"},{name:"清涧县",id:"610830"},{name:"子洲县",id:"610831"}]},{name:"安康市",area:[{name:"汉滨区",id:"610902"},{name:"汉阴县",id:"610921"},{name:"石泉县",id:"610922"},{name:"宁陕县",id:"610923"},{name:"紫阳县",id:"610924"},{name:"岚皋县",id:"610925"},{name:"平利县",id:"610926"},{name:"镇坪县",id:"610927"},{name:"旬阳县",id:"610928"},{name:"白河县",id:"610929"}]},{name:"商洛市",area:[{name:"商州区",id:"611002"},{name:"洛南县",id:"611021"},{name:"丹凤县",id:"611022"},{name:"商南县",id:"611023"},{name:"山阳县",id:"611024"},{name:"镇安县",id:"611025"},{name:"柞水县",id:"611026"}]},{name:"西咸新区",area:[{name:"空港新城",id:"611101"},{name:"沣东新城",id:"611102"},{name:"秦汉新城",id:"611103"},{name:"沣西新城",id:"611104"},{name:"泾河新城",id:"611105"}]}]},{name:"甘肃省",city:[{name:"兰州市",area:[{name:"城关区",id:"620102"},{name:"七里河区",id:"620103"},{name:"西固区",id:"620104"},{name:"安宁区",id:"620105"},{name:"红古区",id:"620111"},{name:"永登县",id:"620121"},{name:"皋兰县",id:"620122"},{name:"榆中县",id:"620123"}]},{name:"嘉峪关市",area:[{name:"雄关区",id:"620201"},{name:"长城区",id:"620202"},{name:"镜铁区",id:"620203"}]},{name:"金昌市",area:[{name:"金川区",id:"620302"},{name:"永昌县",id:"620321"}]},{name:"白银市",area:[{name:"白银区",id:"620402"},{name:"平川区",id:"620403"},{name:"靖远县",id:"620421"},{name:"会宁县",id:"620422"},{name:"景泰县",id:"620423"}]},{name:"天水市",area:[{name:"秦州区",id:"620502"},{name:"麦积区",id:"620503"},{name:"清水县",id:"620521"},{name:"秦安县",id:"620522"},{name:"甘谷县",id:"620523"},{name:"武山县",id:"620524"},{name:"张家川回族自治县",id:"620525"}]},{name:"武威市",area:[{name:"凉州区",id:"620602"},{name:"民勤县",id:"620621"},{name:"古浪县",id:"620622"},{name:"天祝藏族自治县",id:"620623"}]},{name:"张掖市",area:[{name:"甘州区",id:"620702"},{name:"肃南裕固族自治县",id:"620721"},{name:"民乐县",id:"620722"},{name:"临泽县",id:"620723"},{name:"高台县",id:"620724"},{name:"山丹县",id:"620725"}]},{name:"平凉市",area:[{name:"崆峒区",id:"620802"},{name:"泾川县",id:"620821"},{name:"灵台县",id:"620822"},{name:"崇信县",id:"620823"},{name:"华亭县",id:"620824"},{name:"庄浪县",id:"620825"},{name:"静宁县",id:"620826"}]},{name:"酒泉市",area:[{name:"肃州区",id:"620902"},{name:"金塔县",id:"620921"},{name:"瓜州县",id:"620922"},{name:"肃北蒙古族自治县",id:"620923"},{name:"阿克塞哈萨克族自治县",id:"620924"},{name:"玉门市",id:"620981"},{name:"敦煌市",id:"620982"}]},{name:"庆阳市",area:[{name:"西峰区",id:"621002"},{name:"庆城县",id:"621021"},{name:"环县",id:"621022"},{name:"华池县",id:"621023"},{name:"合水县",id:"621024"},{name:"正宁县",id:"621025"},{name:"宁县",id:"621026"},{name:"镇原县",id:"621027"}]},{name:"定西市",area:[{name:"安定区",id:"621102"},{name:"通渭县",id:"621121"},{name:"陇西县",id:"621122"},{name:"渭源县",id:"621123"},{name:"临洮县",id:"621124"},{name:"漳县",id:"621125"},{name:"岷县",id:"621126"}]},{name:"陇南市",area:[{name:"武都区",id:"621202"},{name:"成县",id:"621221"},{name:"文县",id:"621222"},{name:"宕昌县",id:"621223"},{name:"康县",id:"621224"},{name:"西和县",id:"621225"},{name:"礼县",id:"621226"},{name:"徽县",id:"621227"},{name:"两当县",id:"621228"}]},{name:"临夏回族自治州",area:[{name:"临夏市",id:"622901"},{name:"临夏县",id:"622921"},{name:"康乐县",id:"622922"},{name:"永靖县",id:"622923"},{name:"广河县",id:"622924"},{name:"和政县",id:"622925"},{name:"东乡族自治县",id:"622926"},{name:"积石山保安族东乡族撒拉族自治县",id:"622927"}]},{name:"甘南藏族自治州",area:[{name:"合作市",id:"623001"},{name:"临潭县",id:"623021"},{name:"卓尼县",id:"623022"},{name:"舟曲县",id:"623023"},{name:"迭部县",id:"623024"},{name:"玛曲县",id:"623025"},{name:"碌曲县",id:"623026"},{name:"夏河县",id:"623027"}]}]},{name:"青海省",city:[{name:"西宁市",area:[{name:"城东区",id:"630102"},{name:"城中区",id:"630103"},{name:"城西区",id:"630104"},{name:"城北区",id:"630105"},{name:"大通回族土族自治县",id:"630121"},{name:"湟中县",id:"630122"},{name:"湟源县",id:"630123"}]},{name:"海东市",area:[{name:"乐都区",id:"630202"},{name:"平安县",id:"630221"},{name:"民和回族土族自治县",id:"630222"},{name:"互助土族自治县",id:"630223"},{name:"化隆回族自治县",id:"630224"},{name:"循化撒拉族自治县",id:"630225"}]},{name:"海北藏族自治州",area:[{name:"门源回族自治县",id:"632221"},{name:"祁连县",id:"632222"},{name:"海晏县",id:"632223"},{name:"刚察县",id:"632224"}]},{name:"黄南藏族自治州",area:[{name:"同仁县",id:"632321"},{name:"尖扎县",id:"632322"},{name:"泽库县",id:"632323"},{name:"河南蒙古族自治县",id:"632324"}]},{name:"海南藏族自治州",area:[{name:"共和县",id:"632521"},{name:"同德县",id:"632522"},{name:"贵德县",id:"632523"},{name:"兴海县",id:"632524"},{name:"贵南县",id:"632525"}]},{name:"果洛藏族自治州",area:[{name:"玛沁县",id:"632621"},{name:"班玛县",id:"632622"},{name:"甘德县",id:"632623"},{name:"达日县",id:"632624"},{name:"久治县",id:"632625"},{name:"玛多县",id:"632626"}]},{name:"玉树藏族自治州",area:[{name:"玉树市",id:"632701"},{name:"杂多县",id:"632722"},{name:"称多县",id:"632723"},{name:"治多县",id:"632724"},{name:"囊谦县",id:"632725"},{name:"曲麻莱县",id:"632726"}]},{name:"海西蒙古族藏族自治州",area:[{name:"格尔木市",id:"632801"},{name:"德令哈市",id:"632802"},{name:"乌兰县",id:"632821"},{name:"都兰县",id:"632822"},{name:"天峻县",id:"632823"}]}]},{name:"宁夏回族自治区",city:[{name:"银川市",area:[{name:"兴庆区",id:"640104"},{name:"西夏区",id:"640105"},{name:"金凤区",id:"640106"},{name:"永宁县",id:"640121"},{name:"贺兰县",id:"640122"},{name:"灵武市",id:"640181"}]},{name:"石嘴山市",area:[{name:"大武口区",id:"640202"},{name:"惠农区",id:"640205"},{name:"平罗县",id:"640221"}]},{name:"吴忠市",area:[{name:"利通区",id:"640302"},{name:"红寺堡区",id:"640303"},{name:"盐池县",id:"640323"},{name:"同心县",id:"640324"},{name:"青铜峡市",id:"640381"}]},{name:"固原市",area:[{name:"原州区",id:"640402"},{name:"西吉县",id:"640422"},{name:"隆德县",id:"640423"},{name:"泾源县",id:"640424"},{name:"彭阳县",id:"640425"}]},{name:"中卫市",area:[{name:"沙坡头区",id:"640502"},{name:"中宁县",id:"640521"},{name:"海原县",id:"640522"}]}]},{name:"新疆维吾尔自治区",city:[{name:"乌鲁木齐市",area:[{name:"天山区",id:"650102"},{name:"沙依巴克区",id:"650103"},{name:"新市区",id:"650104"},{name:"水磨沟区",id:"650105"},{name:"头屯河区",id:"650106"},{name:"达坂城区",id:"650107"},{name:"米东区",id:"650109"},{name:"乌鲁木齐县",id:"650121"}]},{name:"克拉玛依市",area:[{name:"独山子区",id:"650202"},{name:"克拉玛依区",id:"650203"},{name:"白碱滩区",id:"650204"},{name:"乌尔禾区",id:"650205"}]},{name:"吐鲁番地区",area:[{name:"吐鲁番市",id:"652101"},{name:"鄯善县",id:"652122"},{name:"托克逊县",id:"652123"}]},{name:"哈密地区",area:[{name:"哈密市",id:"652201"},{name:"巴里坤哈萨克自治县",id:"652222"},{name:"伊吾县",id:"652223"}]},{name:"昌吉回族自治州",area:[{name:"昌吉市",id:"652301"},{name:"阜康市",id:"652302"},{name:"呼图壁县",id:"652323"},{name:"玛纳斯县",id:"652324"},{name:"奇台县",id:"652325"},{name:"吉木萨尔县",id:"652327"},{name:"木垒哈萨克自治县",id:"652328"}]},{name:"博尔塔拉蒙古自治州",area:[{name:"博乐市",id:"652701"},{name:"阿拉山口市",id:"652702"},{name:"精河县",id:"652722"},{name:"温泉县",id:"652723"}]},{name:"巴音郭楞蒙古自治州",area:[{name:"库尔勒市",id:"652801"},{name:"轮台县",id:"652822"},{name:"尉犁县",id:"652823"},{name:"若羌县",id:"652824"},{name:"且末县",id:"652825"},{name:"焉耆回族自治县",id:"652826"},{name:"和静县",id:"652827"},{name:"和硕县",id:"652828"},{name:"博湖县",id:"652829"}]},{name:"阿克苏地区",area:[{name:"阿克苏市",id:"652901"},{name:"温宿县",id:"652922"},{name:"库车县",id:"652923"},{name:"沙雅县",id:"652924"},{name:"新和县",id:"652925"},{name:"拜城县",id:"652926"},{name:"乌什县",id:"652927"},{name:"阿瓦提县",id:"652928"},{name:"柯坪县",id:"652929"}]},{name:"克孜勒苏柯尔克孜自治州",area:[{name:"阿图什市",id:"653001"},{name:"阿克陶县",id:"653022"},{name:"阿合奇县",id:"653023"},{name:"乌恰县",id:"653024"}]},{name:"喀什地区",area:[{name:"喀什市",id:"653101"},{name:"疏附县",id:"653121"},{name:"疏勒县",id:"653122"},{name:"英吉沙县",id:"653123"},{name:"泽普县",id:"653124"},{name:"莎车县",id:"653125"},{name:"叶城县",id:"653126"},{name:"麦盖提县",id:"653127"},{name:"岳普湖县",id:"653128"},{name:"伽师县",id:"653129"},{name:"巴楚县",id:"653130"},{name:"塔什库尔干塔吉克自治县",id:"653131"}]},{name:"和田地区",area:[{name:"和田市",id:"653201"},{name:"和田县",id:"653221"},{name:"墨玉县",id:"653222"},{name:"皮山县",id:"653223"},{name:"洛浦县",id:"653224"},{name:"策勒县",id:"653225"},{name:"于田县",id:"653226"},{name:"民丰县",id:"653227"}]},{name:"伊犁哈萨克自治州",area:[{name:"伊宁市",id:"654002"},{name:"奎屯市",id:"654003"},{name:"霍尔果斯市",id:"654004"},{name:"伊宁县",id:"654021"},{name:"察布查尔锡伯自治县",id:"654022"},{name:"霍城县",id:"654023"},{name:"巩留县",id:"654024"},{name:"新源县",id:"654025"},{name:"昭苏县",id:"654026"},{name:"特克斯县",id:"654027"},{name:"尼勒克县",id:"654028"}]},{name:"塔城地区",area:[{name:"塔城市",id:"654201"},{name:"乌苏市",id:"654202"},{name:"额敏县",id:"654221"},{name:"沙湾县",id:"654223"},{name:"托里县",id:"654224"},{name:"裕民县",id:"654225"},{name:"和布克赛尔蒙古自治县",id:"654226"}]},{name:"阿勒泰地区",area:[{name:"阿勒泰市",id:"654301"},{name:"布尔津县",id:"654321"},{name:"富蕴县",id:"654322"},{name:"福海县",id:"654323"},{name:"哈巴河县",id:"654324"},{name:"青河县",id:"654325"},{name:"吉木乃县",id:"654326"}]},{name:"直辖县级",area:[{name:"石河子市",id:"659001"},{name:"阿拉尔市",id:"659002"},{name:"图木舒克市",id:"659003"},{name:"五家渠市",id:"659004"},{name:"北屯市",id:"659005"},{name:"铁门关市",id:"659006"},{name:"双河市",id:"659007"}]}]},{name:"台湾",city:[{name:"台北市",area:[{name:"松山区",id:"710101"},{name:"信义区",id:"710102"},{name:"大安区",id:"710103"},{name:"中山区",id:"710104"},{name:"中正区",id:"710105"},{name:"大同区",id:"710106"},{name:"万华区",id:"710107"},{name:"文山区",id:"710108"},{name:"南港区",id:"710109"},{name:"内湖区",id:"710110"},{name:"士林区",id:"710111"},{name:"北投区",id:"710112"}]},{name:"高雄市",area:[{name:"盐埕区",id:"710201"},{name:"鼓山区",id:"710202"},{name:"左营区",id:"710203"},{name:"楠梓区",id:"710204"},{name:"三民区",id:"710205"},{name:"新兴区",id:"710206"},{name:"前金区",id:"710207"},{name:"苓雅区",id:"710208"},{name:"前镇区",id:"710209"},{name:"旗津区",id:"710210"},{name:"小港区",id:"710211"},{name:"凤山区",id:"710212"},{name:"林园区",id:"710213"},{name:"大寮区",id:"710214"},{name:"大树区",id:"710215"},{name:"大社区",id:"710216"},{name:"仁武区",id:"710217"},{name:"鸟松区",id:"710218"},{name:"冈山区",id:"710219"},{name:"桥头区",id:"710220"},{name:"燕巢区",id:"710221"},{name:"田寮区",id:"710222"},{name:"阿莲区",id:"710223"},{name:"路竹区",id:"710224"},{name:"湖内区",id:"710225"},{name:"茄萣区",id:"710226"},{name:"永安区",id:"710227"},{name:"弥陀区",id:"710228"},{name:"梓官区",id:"710229"},{name:"旗山区",id:"710230"},{name:"美浓区",id:"710231"},{name:"六龟区",id:"710232"},{name:"甲仙区",id:"710233"},{name:"杉林区",id:"710234"},{name:"内门区",id:"710235"},{name:"茂林区",id:"710236"},{name:"桃源区",id:"710237"},{name:"那玛夏区",id:"710238"}]},{name:"基隆市",area:[{name:"中正区",id:"710301"},{name:"七堵区",id:"710302"},{name:"暖暖区",id:"710303"},{name:"仁爱区",id:"710304"},{name:"中山区",id:"710305"},{name:"安乐区",id:"710306"},{name:"信义区",id:"710307"}]},{name:"台中市",area:[{name:"中区",id:"710401"},{name:"东区",id:"710402"},{name:"南区",id:"710403"},{name:"西区",id:"710404"},{name:"北区",id:"710405"},{name:"西屯区",id:"710406"},{name:"南屯区",id:"710407"},{name:"北屯区",id:"710408"},{name:"丰原区",id:"710409"},{name:"东势区",id:"710410"},{name:"大甲区",id:"710411"},{name:"清水区",id:"710412"},{name:"沙鹿区",id:"710413"},{name:"梧栖区",id:"710414"},{name:"后里区",id:"710415"},{name:"神冈区",id:"710416"},{name:"潭子区",id:"710417"},{name:"大雅区",id:"710418"},{name:"新社区",id:"710419"},{name:"石冈区",id:"710420"},{name:"外埔区",id:"710421"},{name:"大安区",id:"710422"},{name:"乌日区",id:"710423"},{name:"大肚区",id:"710424"},{name:"龙井区",id:"710425"},{name:"雾峰区",id:"710426"},{name:"太平区",id:"710427"},{name:"大里区",id:"710428"},{name:"和平区",id:"710429"}]},{name:"台南市",area:[{name:"东区",id:"710501"},{name:"南区",id:"710502"},{name:"北区",id:"710504"},{name:"安南区",id:"710506"},{name:"安平区",id:"710507"},{name:"中西区",id:"710508"},{name:"新营区",id:"710509"},{name:"盐水区",id:"710510"},{name:"白河区",id:"710511"},{name:"柳营区",id:"710512"},{name:"后壁区",id:"710513"},{name:"东山区",id:"710514"},{name:"麻豆区",id:"710515"},{name:"下营区",id:"710516"},{name:"六甲区",id:"710517"},{name:"官田区",id:"710518"},{name:"大内区",id:"710519"},{name:"佳里区",id:"710520"},{name:"学甲区",id:"710521"},{name:"西港区",id:"710522"},{name:"七股区",id:"710523"},{name:"将军区",id:"710524"},{name:"北门区",id:"710525"},{name:"新化区",id:"710526"},{name:"善化区",id:"710527"},{name:"新市区",id:"710528"},{name:"安定区",id:"710529"},{name:"山上区",id:"710530"},{name:"玉井区",id:"710531"},{name:"楠西区",id:"710532"},{name:"南化区",id:"710533"},{name:"左镇区",id:"710534"},{name:"仁德区",id:"710535"},{name:"归仁区",id:"710536"},{name:"关庙区",id:"710537"},{name:"龙崎区",id:"710538"},{name:"永康区",id:"710539"}]},{name:"新竹市",area:[{name:"东区",id:"710601"},{name:"北区",id:"710602"},{name:"香山区",id:"710603"}]},{name:"嘉义市",area:[{name:"东区",id:"710701"},{name:"西区",id:"710702"}]},{name:"新北市",area:[{name:"板桥区",id:"710801"},{name:"三重区",id:"710802"},{name:"中和区",id:"710803"},{name:"永和区",id:"710804"},{name:"新庄区",id:"710805"},{name:"新店区",id:"710806"},{name:"树林区",id:"710807"},{name:"莺歌区",id:"710808"},{name:"三峡区",id:"710809"},{name:"淡水区",id:"710810"},{name:"汐止区",id:"710811"},{name:"瑞芳区",id:"710812"},{name:"土城区",id:"710813"},{name:"芦洲区",id:"710814"},{name:"五股区",id:"710815"},{name:"泰山区",id:"710816"},{name:"林口区",id:"710817"},{name:"深坑区",id:"710818"},{name:"石碇区",id:"710819"},{name:"坪林区",id:"710820"},{name:"三芝区",id:"710821"},{name:"石门区",id:"710822"},{name:"八里区",id:"710823"},{name:"平溪区",id:"710824"},{name:"双溪区",id:"710825"},{name:"贡寮区",id:"710826"},{name:"金山区",id:"710827"},{name:"万里区",id:"710828"},{name:"乌来区",id:"710829"}]},{name:"宜兰县",area:[{name:"宜兰市",id:"712201"},{name:"罗东镇",id:"712221"},{name:"苏澳镇",id:"712222"},{name:"头城镇",id:"712223"},{name:"礁溪乡",id:"712224"},{name:"壮围乡",id:"712225"},{name:"员山乡",id:"712226"},{name:"冬山乡",id:"712227"},{name:"五结乡",id:"712228"},{name:"三星乡",id:"712229"},{name:"大同乡",id:"712230"},{name:"南澳乡",id:"712231"}]},{name:"桃园县",area:[{name:"桃园市",id:"712301"},{name:"中坜市",id:"712302"},{name:"平镇市",id:"712303"},{name:"八德市",id:"712304"},{name:"杨梅市",id:"712305"},{name:"芦竹市",id:"712306"},{name:"大溪镇",id:"712321"},{name:"大园乡",id:"712324"},{name:"龟山乡",id:"712325"},{name:"龙潭乡",id:"712327"},{name:"新屋乡",id:"712329"},{name:"观音乡",id:"712330"},{name:"复兴乡",id:"712331"}]},{name:"新竹县",area:[{name:"竹北市",id:"712401"},{name:"竹东镇",id:"712421"},{name:"新埔镇",id:"712422"},{name:"关西镇",id:"712423"},{name:"湖口乡",id:"712424"},{name:"新丰乡",id:"712425"},{name:"芎林乡",id:"712426"},{name:"横山乡",id:"712427"},{name:"北埔乡",id:"712428"},{name:"宝山乡",id:"712429"},{name:"峨眉乡",id:"712430"},{name:"尖石乡",id:"712431"},{name:"五峰乡",id:"712432"}]},{name:"苗栗县",area:[{name:"苗栗市",id:"712501"},{name:"苑里镇",id:"712521"},{name:"通霄镇",id:"712522"},{name:"竹南镇",id:"712523"},{name:"头份镇",id:"712524"},{name:"后龙镇",id:"712525"},{name:"卓兰镇",id:"712526"},{name:"大湖乡",id:"712527"},{name:"公馆乡",id:"712528"},{name:"铜锣乡",id:"712529"},{name:"南庄乡",id:"712530"},{name:"头屋乡",id:"712531"},{name:"三义乡",id:"712532"},{name:"西湖乡",id:"712533"},{name:"造桥乡",id:"712534"},{name:"三湾乡",id:"712535"},{name:"狮潭乡",id:"712536"},{name:"泰安乡",id:"712537"}]},{name:"彰化县",area:[{name:"彰化市",id:"712701"},{name:"鹿港镇",id:"712721"},{name:"和美镇",id:"712722"},{name:"线西乡",id:"712723"},{name:"伸港乡",id:"712724"},{name:"福兴乡",id:"712725"},{name:"秀水乡",id:"712726"},{name:"花坛乡",id:"712727"},{name:"芬园乡",id:"712728"},{name:"员林镇",id:"712729"},{name:"溪湖镇",id:"712730"},{name:"田中镇",id:"712731"},{name:"大村乡",id:"712732"},{name:"埔盐乡",id:"712733"},{name:"埔心乡",id:"712734"},{name:"永靖乡",id:"712735"},{name:"社头乡",id:"712736"},{name:"二水乡",id:"712737"},{name:"北斗镇",id:"712738"},{name:"二林镇",id:"712739"},{name:"田尾乡",id:"712740"},{name:"埤头乡",id:"712741"},{name:"芳苑乡",id:"712742"},{name:"大城乡",id:"712743"},{name:"竹塘乡",id:"712744"},{name:"溪州乡",id:"712745"}]},{name:"南投县",area:[{name:"南投市",id:"712801"},{name:"埔里镇",id:"712821"},{name:"草屯镇",id:"712822"},{name:"竹山镇",id:"712823"},{name:"集集镇",id:"712824"},{name:"名间乡",id:"712825"},{name:"鹿谷乡",id:"712826"},{name:"中寮乡",id:"712827"},{name:"鱼池乡",id:"712828"},{name:"国姓乡",id:"712829"},{name:"水里乡",id:"712830"},{name:"信义乡",id:"712831"},{name:"仁爱乡",id:"712832"}]},{name:"云林县",area:[{name:"斗六市",id:"712901"},{name:"斗南镇",id:"712921"},{name:"虎尾镇",id:"712922"},{name:"西螺镇",id:"712923"},{name:"土库镇",id:"712924"},{name:"北港镇",id:"712925"},{name:"古坑乡",id:"712926"},{name:"大埤乡",id:"712927"},{name:"莿桐乡",id:"712928"},{name:"林内乡",id:"712929"},{name:"二仑乡",id:"712930"},{name:"仑背乡",id:"712931"},{name:"麦寮乡",id:"712932"},{name:"东势乡",id:"712933"},{name:"褒忠乡",id:"712934"},{name:"台西乡",id:"712935"},{name:"元长乡",id:"712936"},{name:"四湖乡",id:"712937"},{name:"口湖乡",id:"712938"},{name:"水林乡",id:"712939"}]},{name:"嘉义县",area:[{name:"太保市",id:"713001"},{name:"朴子市",id:"713002"},{name:"布袋镇",id:"713023"},{name:"大林镇",id:"713024"},{name:"民雄乡",id:"713025"},{name:"溪口乡",id:"713026"},{name:"新港乡",id:"713027"},{name:"六脚乡",id:"713028"},{name:"东石乡",id:"713029"},{name:"义竹乡",id:"713030"},{name:"鹿草乡",id:"713031"},{name:"水上乡",id:"713032"},{name:"中埔乡",id:"713033"},{name:"竹崎乡",id:"713034"},{name:"梅山乡",id:"713035"},{name:"番路乡",id:"713036"},{name:"大埔乡",id:"713037"},{name:"阿里山乡",id:"713038"}]},{name:"屏东县",area:[{name:"屏东市",id:"713301"},{name:"潮州镇",id:"713321"},{name:"东港镇",id:"713322"},{name:"恒春镇",id:"713323"},{name:"万丹乡",id:"713324"},{name:"长治乡",id:"713325"},{name:"麟洛乡",id:"713326"},{name:"九如乡",id:"713327"},{name:"里港乡",id:"713328"},{name:"盐埔乡",id:"713329"},{name:"高树乡",id:"713330"},{name:"万峦乡",id:"713331"},{name:"内埔乡",id:"713332"},{name:"竹田乡",id:"713333"},{name:"新埤乡",id:"713334"},{name:"枋寮乡",id:"713335"},{name:"新园乡",id:"713336"},{name:"崁顶乡",id:"713337"},{name:"林边乡",id:"713338"},{name:"南州乡",id:"713339"},{name:"佳冬乡",id:"713340"},{name:"琉球乡",id:"713341"},{name:"车城乡",id:"713342"},{name:"满州乡",id:"713343"},{name:"枋山乡",id:"713344"},{name:"三地门乡",id:"713345"},{name:"雾台乡",id:"713346"},{name:"玛家乡",id:"713347"},{name:"泰武乡",id:"713348"},{name:"来义乡",id:"713349"},{name:"春日乡",id:"713350"},{name:"狮子乡",id:"713351"},{name:"牡丹乡",id:"713352"}]},{name:"台东县",area:[{name:"台东市",id:"713401"},{name:"成功镇",id:"713421"},{name:"关山镇",id:"713422"},{name:"卑南乡",id:"713423"},{name:"鹿野乡",id:"713424"},{name:"池上乡",id:"713425"},{name:"东河乡",id:"713426"},{name:"长滨乡",id:"713427"},{name:"太麻里乡",id:"713428"},{name:"大武乡",id:"713429"},{name:"绿岛乡",id:"713430"},{name:"海端乡",id:"713431"},{name:"延平乡",id:"713432"},{name:"金峰乡",id:"713433"},{name:"达仁乡",id:"713434"},{name:"兰屿乡",id:"713435"}]},{name:"花莲县",area:[{name:"花莲市",id:"713501"},{name:"凤林镇",id:"713521"},{name:"玉里镇",id:"713522"},{name:"新城乡",id:"713523"},{name:"吉安乡",id:"713524"},{name:"寿丰乡",id:"713525"},{name:"光复乡",id:"713526"},{name:"丰滨乡",id:"713527"},{name:"瑞穗乡",id:"713528"},{name:"富里乡",id:"713529"},{name:"秀林乡",id:"713530"},{name:"万荣乡",id:"713531"},{name:"卓溪乡",id:"713532"}]},{name:"澎湖县",area:[{name:"马公市",id:"713601"},{name:"湖西乡",id:"713621"},{name:"白沙乡",id:"713622"},{name:"西屿乡",id:"713623"},{name:"望安乡",id:"713624"},{name:"七美乡",id:"713625"}]},{name:"金门县",area:[{name:"金城镇",id:"713701"},{name:"金湖镇",id:"713702"},{name:"金沙镇",id:"713703"},{name:"金宁乡",id:"713704"},{name:"烈屿乡",id:"713705"},{name:"乌丘乡",id:"713706"}]},{name:"连江县",area:[{name:"南竿乡",id:"713801"},{name:"北竿乡",id:"713802"},{name:"莒光乡",id:"713803"},{name:"东引乡",id:"713804"}]}]},{name:"香港特别行政区",city:[{name:"香港岛",area:[{name:"中西区",id:"810101"},{name:"湾仔区",id:"810102"},{name:"东区",id:"810103"},{name:"南区",id:"810104"}]},{name:"九龙",area:[{name:"油尖旺区",id:"810201"},{name:"深水埗区",id:"810202"},{name:"九龙城区",id:"810203"},{name:"黄大仙区",id:"810204"},{name:"观塘区",id:"810205"}]},{name:"新界",area:[{name:"荃湾区",id:"810301"},{name:"屯门区",id:"810302"},{name:"元朗区",id:"810303"},{name:"北区",id:"810304"},{name:"大埔区",id:"810305"},{name:"西贡区",id:"810306"},{name:"沙田区",id:"810307"},{name:"葵青区",id:"810308"},{name:"离岛区",id:"810309"}]}]},{name:"澳门特别行政区",city:[{name:"澳门半岛",area:[{name:"花地玛堂区",id:"820101"},{name:"圣安多尼堂区",id:"820102"},{name:"大堂区",id:"820103"},{name:"望德堂区",id:"820104"},{name:"风顺堂区",id:"820105"}]},{name:"氹仔岛",area:[{name:"嘉模堂区",id:"820201"}]},{name:"路环岛",area:[{name:"圣方济各堂区",id:"820301"}]}]}];function Jc(){for(var e=[],t=0;t<jc.length;t++)e.push(jc[t].name);return e}function Xc(e){for(var t=[],n=0;n<jc[e].city.length;n++)t.push(jc[e].city[n].name);return t}function Kc(e,t){for(var n=[],a=0;a<jc[e].city[t].area.length;a++)n.push(jc[e].city[t].area[a].name);return n}function zc(e,t,n){return jc[e].city[t].area[n].id}let Wc=[0,0,0],Qc=Jc();Xc(Wc[0]),Xc(Wc[0],Wc[1]);const $c={mixins:[{methods:{setData:function(e,t){let n=this;Object.keys(e).forEach((function(t){let a,o,i=e[t],s=(t=t.replace(/\]/g,"").replace(/\[/g,".")).lastIndexOf(".");var r,c,l;-1!=s?(o=t.slice(s+1),r=n,c=t.slice(0,s),l=o,(c=c.split(".")).forEach((e=>{if(null===r[e]||void 0===r[e]){let t=/^[0-9]+$/;r[e]=t.test(l)?[]:{},r=r[e]}else r=r[e]})),a=r):(o=t,a=n),a.$data&&void 0===a.$data[o]?(Object.defineProperty(a,o,{get:()=>a.$data[o],set(e){a.$data[o]=e,n.$forceUpdate()},enumerable:!0,configurable:!0}),Reflect.set(a,o,i)):Reflect.set(a,o,i)})),"function"==typeof t&&this.$nextTick(t)}}}],data:()=>({provinces:Jc(),citys:Xc(Wc[0]),areas:Kc(Wc[0],Wc[1]),value:[0,0,0]}),components:{},props:{province:{type:String,default:""},city:{type:String,default:""},area:{type:String,default:""},show:{type:Boolean,default:!1},maskShow:{type:Boolean,default:!0}},watch:{province(){this.init()},city(){this.init()},area(){this.init()}},mounted(){this.init()},methods:{init(){let e=this.provinces.indexOf(this.province);this.citys=Xc(e);let t=this.citys.indexOf(this.city);this.areas=Kc(e,t);let n=this.areas.indexOf(this.area);this.value=[e,t,n],zc(e,t,n)},handleNYZAreaChange:function(e){var t=this,n=e.detail.value;if(Wc[0]!=n[0]){Wc=[n[0],0,0];let e=Xc(Wc[0]),a=Kc(Wc[0],0);t.setData({citys:e,areas:a,value:[Wc[0],0,0]});let o=zc(Wc[0],Wc[1],Wc[2]);t.$emit("changeClick",Qc[Wc[0]],e[Wc[1]],a[Wc[2]],o)}else if(Wc[1]!=n[1]){Wc=[n[0],n[1],0];let e=Xc(Wc[0]),a=Kc(Wc[0],n[1]);t.setData({citys:e,areas:a,value:[Wc[0],Wc[1],0]});let o=zc(Wc[0],Wc[1],Wc[2]);t.$emit("changeClick",Qc[Wc[0]],e[Wc[1]],a[Wc[2]],o)}else if(Wc[2]!=n[2]){Wc=[n[0],n[1],n[2]];let e=Xc(Wc[0]),a=Kc(Wc[0],n[1]);t.setData({citys:e,areas:a,value:[Wc[0],Wc[1],Wc[2]]});let o=zc(Wc[0],Wc[1],Wc[2]);t.$emit("changeClick",Qc[Wc[0]],e[Wc[1]],a[Wc[2]],o)}},handleNYZAreaSelect:function(e){var t=e;this.$emit("sureSelectArea",{detail:t},{}),Wc=[0,0,0]},handleNYZAreaCancle:function(e){this.$emit("hideShow",{detail:!1}),Wc=[0,0,0]}}};const el=w($c,[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",null,[e.withDirectives(e.createElementVNode("view",{class:"cc_area_mask"},null,512),[[e.vShow,1==a.show]]),e.createElementVNode("view",{class:e.normalizeClass("cc_area_view "+(a.show?"show":"hide"))},[e.createElementVNode("view",{class:"cc_area_view_btns"},[e.createElementVNode("text",{class:"cc_area_view_btn_cancle",onClick:n[0]||(n[0]=(...e)=>s.handleNYZAreaCancle&&s.handleNYZAreaCancle(...e))},"取消"),e.createElementVNode("text",{class:"cc_area_view_btn_sure",onClick:n[1]||(n[1]=(...e)=>s.handleNYZAreaSelect&&s.handleNYZAreaSelect(...e)),"data-province":a.province,"data-city":a.city,"data-area":a.area},"确定",8,["data-province","data-city","data-area"])]),e.createElementVNode("picker-view",{class:"cc_area_pick_view","indicator-style":"height: 35px;",onChange:n[2]||(n[2]=(...e)=>s.handleNYZAreaChange&&s.handleNYZAreaChange(...e)),value:i.value},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.provinces,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,class:"cc_area_colum_view"},e.toDisplayString(t),1)))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.citys,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,class:"cc_area_colum_view"},e.toDisplayString(t),1)))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.areas,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,class:"cc_area_colum_view"},e.toDisplayString(t),1)))),128))])],40,["value"])],2)])}],["__scopeId","data-v-525e022a"]]),tl={__name:"index",setup(t){e.getCurrentInstance();const n=e.ref(!1),a=()=>{n.value=!0},o=(e,t,n,a)=>{g("log","at pages/mine/delivery-address/index.vue:87","地址选择器 = "+e+t+n+a)},i=e=>{g("log","at pages/mine/delivery-address/index.vue:91","===================================="),g("log","at pages/mine/delivery-address/index.vue:92",e),g("log","at pages/mine/delivery-address/index.vue:93","===================================="),n.value=!1},s=e.reactive({recipientName:void 0,phoneNumber:void 0,district:void 0,postalCode:void 0,city:void 0,province:void 0,addressDetail:void 0}),r=()=>{uni.navigateTo({url:"/pages/mine/address-add"})};function c(){(s.recipientName?s.phoneNumber&&/^1[3-9]\d{9}$/.test(s.phoneNumber)||(uni.showToast({title:"请输入正确的手机号",icon:"none"}),0):(uni.showToast({title:"请输入收货人",icon:"none"}),0))&&g("log","at pages/mine/delivery-address/index.vue:138","保存地址:",s)}const l=e.ref([{name:"上官婉儿",phone:"13800138000",address:"北京市海淀区中关村软件园",isDefault:!1,isCompany:!0,id:Math.random().toString(36).substring(2,9)},{name:"司空震",phone:"13800138000",address:"江西省吉安市吉水县东山中央首府11栋",isDefault:!0,isHome:!0,id:Math.random().toString(36).substring(2,9)},{name:"苏烈",phone:"13800138000",address:"广东省深圳市南山区粤海街道109号6楼601",isDefault:!1,id:Math.random().toString(36).substring(2,9)}]);function u(){this.$refs.addressPopup.open()}return(t,d)=>{const m=f(e.resolveDynamicComponent("uni-tag"),ia),p=f(e.resolveDynamicComponent("uni-icons"),D),h=f(e.resolveDynamicComponent("uni-forms-item"),pa),g=f(e.resolveDynamicComponent("uni-easyinput"),ma),v=f(e.resolveDynamicComponent("uni-forms"),ba);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"app"},[e.createElementVNode("view",{class:"page-wrapper oh"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(n=>(e.openBlock(),e.createElementBlock("view",{key:n.id,class:e.normalizeClass(["address-item mb20 ptb20 plr20 bfff",{active:n.isDefault}]),onClick:e=>t.emit("choose",n)},[e.createElementVNode("view",{class:"top-area"},[e.createElementVNode("text",{class:"name"},e.toDisplayString(n.name),1),e.createElementVNode("text",{class:"phone"},e.toDisplayString(n.phone),1)]),e.createElementVNode("view",{class:"address-text"},e.toDisplayString(n.address),1),e.createElementVNode("view",{class:"bottom-area mt20"},[e.createElementVNode("label",null,[e.createElementVNode("checkbox",{onClick:e.withModifiers((e=>t.emit("setDefault",n)),["stop"]),color:"#f60",disabled:"",style:{transform:"scale(0.8)"},class:e.normalizeClass([n.isDefault&&"isDefault"]),checked:n.isDefault},null,10,["onClick","checked"]),e.createElementVNode("text",{onClick:e.withModifiers((e=>t.emit("setDefault",n)),["stop"]),class:"set-def-text"},"设为默认",8,["onClick"])]),e.createElementVNode("view",{class:"operation-btns"},[e.createVNode(m,{class:"mlr10",onClick:e.withModifiers((e=>t.emit("edit",n)),["stop"]),inverted:!0,text:"复制",type:"warning",size:"small"},null,8,["onClick"]),e.createVNode(m,{class:"mlr1",onClick:e.withModifiers((e=>{return t=n,void uni.setClipboardData({data:t.address,success:()=>{uni.showToast({title:"复制成功",icon:"success"})},fail:()=>{uni.showToast({title:"复制失败",icon:"none"})}});var t}),["stop"]),inverted:!0,text:"修改",type:"warning",size:"small"},null,8,["onClick"])])]),e.createVNode(p,{class:"delete",type:"closeempty",color:"#999",onClick:e.withModifiers((e=>t.emit("delete",n)),["stop"])},null,8,["onClick"])],10,["onClick"])))),128))]),e.createElementVNode("view",{class:"footer plr30 shadow bfff"},[e.createElementVNode("view",{class:"btn lg primary",onClick:u},"添加地址")])]),e.createVNode(e.unref(La),{ref:"addressPopup",title:"添加收货地址",type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"p25"},[e.createVNode(v,{modelValue:s},{default:e.withCtx((()=>[e.createVNode(h,{label:"收货人",name:"recipientName"},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":d[0]||(d[0]=e=>s.recipientName=e),placeholder:"请输入姓名"},null,512),[[e.vModelText,s.recipientName]])])),_:1}),e.createVNode(h,{label:"手机号",name:"phoneNumber"},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":d[1]||(d[1]=e=>s.phoneNumber=e),placeholder:"请输入手机号"},null,512),[[e.vModelText,s.phoneNumber]])])),_:1}),e.createVNode(h,{label:"邮编",name:"postalCode"},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":d[2]||(d[2]=e=>s.postalCode=e),placeholder:"请输入邮编"},null,512),[[e.vModelText,s.postalCode]])])),_:1}),e.createVNode(h,{label:"地区",name:"areas"},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{onClick:a,type:"text","onUpdate:modelValue":d[3]||(d[3]=e=>s.areas=e),placeholder:"请输入地区"},null,512),[[e.vModelText,s.areas]])])),_:1}),e.createVNode(h,{label:"详细地址",name:"addressDetail"},{default:e.withCtx((()=>[e.createVNode(g,{type:"textarea",autoHeight:"",modelValue:s.addressDetail,"onUpdate:modelValue":d[4]||(d[4]=e=>s.addressDetail=e),placeholder:"如街道,门牌号,小区,乡镇,村等"},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue"]),e.createVNode(e.unref(el),{province:r.province,city:r.city,area:r.area,show:n.value,onChangeClick:o,onSureSelectArea:i,onHideShow:a},null,8,["province","city","area","show"]),e.createElementVNode("button",{class:"add-address-btn",onClick:c},"保存")])])),_:1},512)],64)}}},nl=w(tl,[["__scopeId","data-v-ca28bbae"]]),al="/static/userMenu.png",ol="/static/lock.png",il=w({__name:"collectAdd",setup(t,{expose:n}){const{proxy:a}=e.getCurrentInstance();class o{constructor(){__publicField(this,"collectName",""),__publicField(this,"isPrivate",0),__publicField(this,"pic",""),__publicField(this,"collectId","")}}const i=e.reactive(new o),s=e.ref(0);function r(){a.$refs.addCollectRef.close()}function c(){Me.upload_image({value:i.pic,type:1,success:e=>{i.pic=e.value}})}function l(){i.isPrivate=0==i.isPrivate?1:0}function u(){const e={...i};if(!i.collectName)return void Me.alert("请输入收藏夹名称");if(!i.pic)return void Me.alert("请上传封面图");e.pic=Me.replace_url(e.pic);let t="saveCollectList";i.collectId&&(t="updateCollectList"),Te.video[t]({query:e}).then((e=>{if(200==e.code)return uni.$emit("collectsVideo"),r(),void Object.assign(i,new o);Me.alert({content:e.msg,showCancel:!1})}))}return e.onMounted((()=>{uni.onKeyboardHeightChange((e=>{s.value=e.height}))})),e.onBeforeUnmount((()=>{uni.offKeyboardHeightChange((e=>{g("log","at components/index/collectAdd.vue:46","rs",e)}))})),n({open:function(e){e&&(i.collectName=e.collectName,i.isPrivate=e.isPrivate,i.collectId=e.id,i.pic=e.formatPic),a.$refs.addCollectRef.open()},close:r}),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D),o=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createBlock(o,{ref:"addCollectRef",type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"addCollect popBot ptb20 plr20 bfff"},[e.createElementVNode("view",{class:"header fdr rows"},[e.createElementVNode("view",{class:"w120"},[e.createVNode(a,{type:"closeempty",onClick:r})]),e.createElementVNode("view",{class:"title"},[e.createElementVNode("text",{class:"c333 f28"},"编辑收藏夹")]),e.createElementVNode("view",{class:"w120 tar"},[e.createElementVNode("text",{class:"cFF9B27 f24",onClick:u},"确认")])]),e.createElementVNode("view",{class:"rows fdr mtb30"},[e.createElementVNode("view",{class:"pic fmid wh80 beee br10",onClick:c},[i.pic?(e.openBlock(),e.createElementBlock("image",{key:0,class:"wh80 br10",src:i.pic,mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createBlock(a,{key:1,type:"plusempty",size:"40rpx"}))]),e.createElementVNode("view",{class:"edit f1 ml20"},[e.withDirectives(e.createElementVNode("input",{type:"text","adjust-position":!1,"onUpdate:modelValue":n[0]||(n[0]=e=>i.collectName=e),placeholder:"输入收藏夹名称"},null,512),[[e.vModelText,i.collectName]])])]),e.createElementVNode("view",{class:"rows fdr mtb30"},[e.createElementVNode("view",{class:"df fdr aic"},[e.createElementVNode("text",null,"是否公开收藏夹"),e.createElementVNode("image",{src:ol,mode:"aspectFit",class:"wh24 ml10"})]),e.createElementVNode("switch",{class:"switch",checked:0==i.isPrivate,color:"#F85050",onChange:l},null,40,["checked"])]),e.createElementVNode("view",{style:e.normalizeStyle({height:s.value+"px"})},null,4)])])),_:1},512)}}},[["__scopeId","data-v-761bc24b"]]),sl=w({__name:"collectList",emits:["handleItem"],setup(t,{expose:n,emit:a}){const{proxy:o}=e.getCurrentInstance(),i=e.ref(!0),s=e.reactive({data:[],pageSize:10,pageNum:1,total:0}),r=[{text:"删除",style:{backgroundColor:"#F85050"}},{text:"编辑",style:{backgroundColor:"#00ADEE"}}],c=a;function l(){s.pageNum=1,u()}function u(){Te.video.getCollectList({query:{pageNum:s.pageNum,pageSize:s.pageSize}}).then((e=>{if(200===e.code){const t=e.rows;return 1==s.pageNum&&(s.data.length=0),s.data.push(...t.map((e=>(e.formatPic=Me.format_url(e.pic,"img"),e)))),void(s.total=e.total)}Me.alert(e.msg)})).finally((()=>{i.value=!1}))}function d(e,t){const n=e.index,a=s.data[t];switch(n){case 0:Me.alert({content:"确认删除收藏夹?"}).then((e=>{e.confirm&&function(e,t){Te.video.deleteCollect({query:{jyCollectId:e.id}}).then((e=>{if(200===e.code)return s.total--,void s.data.splice(t,1);Me.alert({content:e.msg,showCancel:!1})}))}(a,t)}));break;case 1:o.$refs.collectAddRef.open(a)}o.$refs.swipeActionRef.closeAll()}return e.onMounted((()=>{uni.$on("collectsVideo",(()=>{l()})),uni.$on("login",(()=>{l()})),Me.isLogin().then((()=>{setTimeout((()=>{u()}),1e3)}))})),n({getList:u,getMoreList:function(){s.total<=s.data.length||(s.pageNum++,u())},refrshList:l}),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D),o=f(e.resolveDynamicComponent("uni-swipe-action-item"),lc),l=f(e.resolveDynamicComponent("uni-swipe-action"),uc);return e.openBlock(),e.createElementBlock(e.Fragment,null,[i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"showLoad fmid ptb30"},[e.createVNode(a,{type:"spinner-cycle"}),e.createElementVNode("text",{class:"c666 f28"},"加载中...")])):(e.openBlock(),e.createBlock(l,{key:1,ref:"swipeActionRef"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"collect"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.data,((t,n)=>(e.openBlock(),e.createBlock(o,{"right-options":r,key:n,onClick:e=>d(e,n)},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"item rows fdr mlr20 ptb20",onClick:e.withModifiers((e=>function(e){c("handleItem",e)}(t)),["stop"])},[e.createElementVNode("view",{class:"poster"},[e.createElementVNode("image",{class:"wh80 br20",src:t.formatPic,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"oh pl20"},[e.createElementVNode("text",{class:"c333 f28"},e.toDisplayString(t.collectName),1)]),1==t.isPrivate?(e.openBlock(),e.createElementBlock("image",{key:0,class:"wh24 ml10",src:ol,mode:"aspectFit"})):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"f1"})],8,["onClick"])])),_:2},1032,["onClick"])))),128)),e.createElementVNode("view",{class:"nomore mtb20"},[e.createElementVNode("text",{class:"nomore"},"暂无更多")])])])),_:1},512)),e.createVNode(il,{ref:"collectAddRef"},null,512)],64)}}},[["__scopeId","data-v-680abe26"]]),rl=w({__name:"videoMenu",props:e.mergeModels({list:{type:Array},mode:{type:String,default:"list"},limit:{type:Number,default:0},isMine:{type:[String,Number],default:0}},{ids:{},idsModifiers:{}}),emits:e.mergeModels(["item"],["update:ids"]),setup(t,{expose:n,emit:a}){const o=t,i=a,s=e.useModel(t,"ids"),r=e.ref(null),c=e.ref("");function l(){r.value.pause()}function u(e){e.detail.fullScreen?r.value.play():l()}return e.onMounted((()=>{r.value=uni.createVideoContext("video")})),n({videoContext:r,pause:l,requestFullScreen:function(){r.value.requestFullScreen()}}),(n,a)=>{const r=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",null,[e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((n,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item pr",key:a,onClick:e=>function(e){if("list"==o.mode)uni.navigateTo({url:Me.setUrl("/pages/index/videoDetail",{videoId:e.videoId,isMine:o.isMine})});else if("menu"==o.mode)c.value=e.format_videoUrl,i("item",e);else if("checkbox"==o.mode){const t=s.value.findIndex((t=>t==e.videoId));if(t>=0)s.value.splice(t,1);else{if(0!=o.limit&&o.limit<=s.value.length)return;s.value.push(e.videoId)}}}(n)},[e.createElementVNode("image",{src:n.format_imageUrl,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"window pfull"}),"checkbox"==t.mode?(e.openBlock(),e.createElementBlock("view",{key:0,class:"amount pa r0 t0 df ptb10 plr10"},[s.value.includes(n.videoId)?(e.openBlock(),e.createBlock(r,{key:0,type:"circle-filled",size:"50rpx",color:"#20D200"})):(e.openBlock(),e.createBlock(r,{key:1,type:"circle",color:"#fff",size:"50rpx"}))])):e.createCommentVNode("",!0),n.play?(e.openBlock(),e.createElementBlock("view",{key:1,class:"amount pa l0 r0 b0 df ptb10 plr10"},[e.createElementVNode("image",{class:"wh24",src:"/static/amount.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"txt f1 ml10 cfff f20"},e.toDisplayString(n.play),1)])):e.createCommentVNode("",!0)],8,["onClick"])))),128))]),t.list[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomore mtb50"},"暂无视频")),e.createElementVNode("video",{class:"videoContext",src:c.value,id:"video",onFullscreenchange:u},null,40,["src"])])}}},[["__scopeId","data-v-fc72b933"]]),cl=w({__name:"product",setup(t,{expose:n}){const a=e.reactive({data:[],pageSize:10,pageNum:1,total:0});function o(){Te.video.myVideoList({query:{pageSize:a.pageSize,pageNum:a.pageNum}}).then((e=>{if(200==e.code)return 1==a.pageNum&&(a.data.length=[]),a.data.push(...e.rows.map((e=>(e.format_videoUrl=Me.format_url(e.videoUrl,"video"),e.format_imageUrl=Me.format_url(e.imageUrl,"img"),e)))),void(a.total=e.total);Me.alert({content:e.msg,showCancel:!1})}))}return e.onMounted((()=>{o(),uni.$on("deleteVideo",(e=>{const t=a.data.findIndex((t=>t.videoId==e));t>0&&a.data.splice(t,1)}))})),n({getList:o,getMoreList:function(){a.data.length>=a.total||(a.pageNum++,o())},refreshList:function(){a.pageNum=1,a.total=0,o()}}),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createVNode(rl,{list:a.data,isMine:"1"},null,8,["list"])]))}},[["__scopeId","data-v-2351fbda"]]),ll=w({__name:"like",setup(t,{expose:n}){const a=e.reactive({data:[],pageSize:10,pageNum:1,total:0}),o=O(),i=e.computed((()=>o.state.userinfo));function s(){Te.video.myLikeVideoList({query:{userId:i.value.userId,pageSize:a.pageSize,pageNum:a.pageNum}}).then((e=>{if(200==e.code)return 1==a.pageNum&&(a.data.length=[]),a.data.push(...e.rows.map((e=>(e.format_videoUrl=Me.format_url(e.videoUrl,"video"),e.format_imageUrl=Me.format_url(e.imageUrl,"img"),e)))),void(a.total=e.total);Me.alert({content:e.msg,showCancel:!1})}))}return e.onMounted((()=>{s()})),n({getList:s,getMoreList:function(){a.data.length>=a.total||(a.pageNum++,s())},refreshList:function(){a.pageNum=1,a.total=0,s()}}),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createVNode(rl,{list:a.data},null,8,["list"])]))}},[["__scopeId","data-v-a9f82b4d"]]),ul={__name:"homepage",setup(t){const{proxy:n}=e.getCurrentInstance(),a=O(),o=e.ref(!1),i=e.reactive([{name:"作品",ref:"productRef"},{name:"喜欢",ref:"likeRef"},{name:"收藏",ref:"collectRef"},{name:"历史浏览"},{name:"投流历史"}]),s=e.ref(0),r=e.computed((()=>i[s.value])),c=e.computed((()=>a.state.userinfo||{}));function l(e){uni.navigateTo({url:Me.setUrl("/pages/mine/collectsVideo",{collectId:e.id,collectName:e.collectName})})}function u(){Me.scan()}function d(e){uni.navigateTo({url:e})}function m(){Me.alert({content:"确认退出登录吗?"}).then((e=>{e.confirm&&(n.$refs.menuRef.close(),Me.logout((()=>{plus.runtime.restart()})))}))}return E((()=>{uni.$on("focusUser",(()=>{Me.getUserinfo()}))})),C((()=>{})),k((()=>{uni.$off("focusUser")})),I((e=>{o.value=e.scrollTop>44})),S((()=>{n.$refs[r.value.ref].getMoreList()})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D),r=f(e.resolveDynamicComponent("footerMenu"),Vn),p=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[(c.value.id,e.openBlock(),e.createElementBlock("view",{key:1,class:"appbw"},[e.createElementVNode("view",{class:e.normalizeClass(["apex pr",{active:o.value}])},[e.createElementVNode("view",{class:"bg pfull"},[e.createElementVNode("image",{src:c.value.background,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"window pfull"})]),e.createVNode(qr),e.createElementVNode("view",{class:"head"}),e.createElementVNode("view",{class:"header pf t0 l0 r0"},[e.createVNode(qr),e.createElementVNode("view",{class:"head rows plr30 f40"},[e.createElementVNode("view",{class:"back",onClick:u},[e.createVNode(a,{type:"scan",size:"50rpx",color:"#fff"})]),e.createElementVNode("view",{class:"name f32"},e.toDisplayString(c.value.userNickname),1),e.createElementVNode("view",{class:"menuIcon plr5",onClick:n[0]||(n[0]=e=>t.$refs.menuRef.open())},[e.createVNode(a,{type:"bars",size:"50rpx",color:"#fff"})])])]),e.createElementVNode("view",{class:"userinfo rows pr pt20 plr30 pb60 cfff"},[e.createElementVNode("navigator",{url:"/pages/mine/userinfo",class:"avatar pr cir"},[e.createElementVNode("image",{class:"wh200 cir",src:c.value.avatar,mode:"aspectFill"},null,8,["src"]),1==c.value.isShop?(e.openBlock(),e.createElementBlock("image",{key:0,class:"wh55 pa r0 b0",src:"/static/shop.png",mode:"aspectFit"})):e.createCommentVNode("",!0)]),e.createElementVNode("navigator",{url:"/pages/mine/userinfo",class:"user f1 ml20"},[e.createElementVNode("view",{class:"f36 b"},e.toDisplayString(c.value.userNickname),1),e.createElementVNode("view",{class:"f24"},"账号:"+e.toDisplayString(c.value.userAccount),1)]),1==c.value.isShop?(e.openBlock(),e.createElementBlock("view",{key:0,class:"tac"},[e.createVNode(a,{type:"shop",color:"",size:"60rpx"}),e.createElementVNode("view",{class:"f24"},"我的产品")])):e.createCommentVNode("",!0)])],2),e.createElementVNode("view",{class:"container oh pr plr30 c333 bfff"},[e.createElementVNode("view",{class:"number mtb30 tac f1"},[e.createElementVNode("view",{class:"option"},[e.createElementVNode("view",{class:"value fmid f36 br10"},e.toDisplayString(c.value.publicPraised),1),e.createElementVNode("view",{class:"key ml10 c666 f24"},"公开赞")]),e.createElementVNode("view",{class:"option"},[e.createElementVNode("view",{class:"value fmid f36 br10"},e.toDisplayString(c.value.privacyPraised),1),e.createElementVNode("view",{class:"key ml10 c666 f24"},"隐私赞")]),e.createElementVNode("view",{class:"option",onClick:n[1]||(n[1]=e=>d("/pages/news/newAttention"))},[e.createElementVNode("view",{class:"value fmid f36 br10"},e.toDisplayString(c.value.userAttention),1),e.createElementVNode("view",{class:"key ml10 c666 f24"},"关注")]),e.createElementVNode("view",{class:"option",onClick:n[2]||(n[2]=e=>d("/pages/news/newFans"))},[e.createElementVNode("view",{class:"value fmid f36 br10"},e.toDisplayString(c.value.userFans),1),e.createElementVNode("view",{class:"key ml10 c666 f24"},"粉丝")])]),e.createElementVNode("view",{class:"rows mt30"},[e.createElementVNode("view",{class:"desc f1 c333 f28"},e.toDisplayString(c.value.personalSignature||"暂无个签~"),1),e.createElementVNode("view",{class:"option",onClick:n[3]||(n[3]=e=>d("/pages/mine/myComment"))},[e.createElementVNode("view",{class:"value fmid f36 br10"},[e.createVNode(a,{type:"chat",size:"40rpx"})]),e.createElementVNode("view",{class:"key ml10 c666 f24"},"我的评论")])])]),e.createElementVNode("view",{class:"product mt30"},[e.createElementVNode("view",{class:"tab"},[e.createElementVNode("scroll-view",{"scroll-x":"true",class:"scroll"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item tac",{active:s.value==n}]),key:n,onClick:e=>function(e){s.value!==e&&(s.value=e)}(n)},[e.createElementVNode("view",{class:"txt ptb10 plr35"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"line"})],10,["onClick"])))),128))])]),e.withDirectives(e.createElementVNode("view",null,[e.createVNode(cl,{ref:"productRef"},null,512)],512),[[e.vShow,0===s.value]]),e.withDirectives(e.createElementVNode("view",{class:"like"},[e.createVNode(ll,{ref:"likeRef"},null,512)],512),[[e.vShow,1===s.value]]),e.withDirectives(e.createElementVNode("view",{class:"collect"},[e.createElementVNode("view",{class:"btn bd1s fmid mtb20 mlr20 c333 f32",onClick:n[4]||(n[4]=e=>t.$refs.collectAddRef.open())},[e.createVNode(a,{type:"plus",size:"30rpx"}),e.createElementVNode("view",null,"添加收藏")]),e.createVNode(sl,{ref:"collectRef",onHandleItem:l},null,512)],512),[[e.vShow,2===s.value]]),e.createCommentVNode("",!0)])])),e.createVNode(r,{ref:"footerMneuRef",page:"homepage"},null,512),e.createVNode(il,{ref:"collectAddRef"},null,512),e.createVNode(p,{ref:"menuRef",type:"right"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"menuAlt df fdc ptb50 plr40 bfff"},[e.createElementVNode("view",{class:"f1"},[e.createVNode(qr),e.createElementVNode("view",{class:"head rows"},[e.createVNode(a,{type:"left",size:"40rpx",onClick:n[5]||(n[5]=e=>t.$refs.menuRef.close())})]),e.createElementVNode("view",{class:"list mt30 c000 f32"},[e.createElementVNode("navigator",{url:"/pages/mine/setting/setting"},[e.createElementVNode("view",{class:"item rows ptb20"},[e.createElementVNode("image",{class:"wh50",src:al,mode:"aspectFit"}),e.createElementVNode("view",{class:"txt ml20 f1"},"账户与安全")])]),e.createElementVNode("navigator",{url:"/pages/index/wallet"},[e.createElementVNode("view",{class:"item rows ptb20"},[e.createElementVNode("image",{class:"wh50",src:al,mode:"aspectFit"}),e.createElementVNode("view",{class:"txt ml20 f1"},"我的钱包")])]),e.createElementVNode("view",{onClick:n[6]||(n[6]=e=>{return t="/pages/index/myQrCode",void Me.isAuth({success(){uni.navigateTo({url:t})}});var t})},[e.createElementVNode("view",{class:"item rows ptb20"},[e.createElementVNode("image",{class:"wh50",src:al,mode:"aspectFit"}),e.createElementVNode("view",{class:"txt ml20 f1"},"我的分享")])]),e.createElementVNode("navigator",{url:"/pages/mine/userinfo"},[e.createElementVNode("view",{class:"item rows ptb20"},[e.createElementVNode("image",{class:"wh50",src:al,mode:"aspectFit"}),e.createElementVNode("view",{class:"txt ml20 f1"},"个人资料")])])])]),e.createElementVNode("view",{class:"btn cancel",onClick:m},"退出登录")])])),_:1},512)],64)}}},dl={__name:"video",setup(t){e.getCurrentInstance();const n=e.reactive(new class{constructor(){__publicField(this,"videoId",""),__publicField(this,"videoUrl",""),__publicField(this,"coverUrl",""),__publicField(this,"title",""),__publicField(this,"description",""),__publicField(this,"tags",""),__publicField(this,"subscriber",""),__publicField(this,"videoSize",""),__publicField(this,"videoDuration",""),__publicField(this,"status","")}});let a=e.reactive({pageNum:1,pageSize:10,list:[]});const o=e.ref(""),i=e.reactive([]),s=e.reactive({data:[],pageNum:1,pageSize:20,total:0}),r=e.reactive([]),c=e.ref("");function l(){Me.upload_image({value:n.coverUrl,type:1,success:e=>{n.coverUrl=e.value}})}function u(){Me.upload_video({success:e=>{n.videoSize=e.size,n.breadth=e.width,n.height=e.height,n.videoDuration=e.duration,n.videoUrl=e.value}})}function d(){a.pageNum=0,a.total=0,p()}function m(){a.total<=a.list.length||(a.pageNum++,p())}function p(){return new Promise(((e,t)=>{Te.video.getLabel({query:{pageNum:a.pageNum,pageSize:a.pageSize,tagName:o.value}}).then((t=>{if(200==t.code){const n=t.rows;return 1==a.pageNum&&(a.list.length=0),a.list.push(...n),a.total=t.total,e(a.list),void(!n[0]&&o.value&&Me.alert({content:`当前没有${o.value}的话题,是否添加?`}).then((e=>{e.confirm&&Te.video.setLabel({query:{tagName:o.value}}).then((e=>{if(200==e.code)return a.list.length=0,a.list.push(...e.data),void(a.total=1);Me.alert({content:e.msg,showCancel:!1})}))})))}Me.alert({content:t.msg,showCancel:!1})}))}))}function h(e,t){i.splice(t,1)}function v(){s.data.length>=s.total||(s.pageNum++,_())}function _(){return new Promise(((e,t)=>{Te.video.searchFriendByName({path:[c.value],query:{pageNum:s.pageNum,pageSize:s.pageSize}}).then((t=>{if(200==t.code)return s.pageNum&&(s.data.length=0),s.data.push(...t.rows),s.total=t.total,void e(s.data);Me.alert({content:t.msg,showCancel:!1})}))}))}function y(e){const t={...n};if(t.status=e||0,g("log","at pages/release/video.vue:323","data",t),t.videoUrl)if(t.coverUrl){if(1==t.status){if(!t.title)return void Me.alert("标题不能为空");if(!t.description)return void Me.alert("正文不能为空")}i[0]&&(t.tags=i.map((e=>e.tagId)).join(",")),Te.video.publishVideo({data:t}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):Me.alert({content:1==t.isDraft?"视频发布成功,请等待后台审核":"保存草稿成功",showCancel:!1,confirmText:"我知道了"}).then((e=>{uni.navigateBack()}))}))}else Me.alert("封面不能为空");else Me.alert("视频不能为空")}return E((e=>{e.videoId?(n.videoId=e.videoId,Promise.all([new Promise(((e,t)=>{Te.video.getVideoById({query:{videoId:n.videoId}}).then((t=>{200!=t.code?Me.alert({content:t.msg,showCancel:!1}):e(t.data)}))})),p()]).then((e=>{const t=e[0];e[1],e[2],g("log","at pages/release/video.vue:78","release getDetail",t),n.videoUrl=Me.format_url(t.videoUrl,"video"),n.imageUrl=Me.format_url(t.imageUrl,"img"),n.title=t.title,n.content=t.content,n.isDraft=t.isDraft,t.subscriber=t.subscriber.split(","),t.subscriberId.split(",").forEach(((e,n)=>{r.push({userId:e,userNickname:t.subscriber[n]})}))}))):p()})),(t,p)=>{const g=f(e.resolveDynamicComponent("uni-icons"),D),E=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"form mtb30 mlr30 c666 f32"},[e.createElementVNode("view",{class:"line mtb20"},[e.createElementVNode("view",{class:"key"},"上传封面"),e.createElementVNode("view",{class:"value mt20 imgList"},[n.coverUrl?(e.openBlock(),e.createElementBlock("view",{key:0,class:"imgs wh200 br10"},[e.createElementVNode("image",{src:n.coverUrl,class:"br10",mode:"aspectFill"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"imgs wh200 upload fmid bfff br10",onClick:l},[e.createVNode(g,{type:"plusempty",color:"#E8E8E8",size:"50rpx"})]))])]),e.createElementVNode("view",{class:"line mtb20"},[e.createElementVNode("view",{class:"key"},"上传视频"),e.createElementVNode("view",{class:"value mt20 imgList"},[n.videoUrl?(e.openBlock(),e.createElementBlock("view",{key:0,class:"imgs wh200 br10"},[e.createElementVNode("video",{src:n.videoUrl,class:"br10"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"imgs wh200 upload fmid bfff br10",onClick:u},[e.createVNode(g,{type:"plusempty",color:"#E8E8E8",size:"50rpx"})]))])]),e.createElementVNode("view",{class:"main mtb20 plr20 br20"},[e.createElementVNode("view",{class:"title ptb20"},[e.withDirectives(e.createElementVNode("input",{type:"text",class:"f32",placeholder:"填写标题会有更多曝光率哦~","placeholder-class":"placeholderStyle","onUpdate:modelValue":p[0]||(p[0]=e=>n.title=e)},null,512),[[e.vModelText,n.title]])]),e.createElementVNode("view",{class:"content ptb10"},[e.withDirectives(e.createElementVNode("textarea",{class:"textarea f32","onUpdate:modelValue":p[1]||(p[1]=e=>n.description=e),placeholder:"添加正文"},null,512),[[e.vModelText,n.description]])])]),i[0]?(e.openBlock(),e.createElementBlock("view",{key:0,class:"labels items mt20 df fww c333 f28"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item fmid mr20 mb20 plr20 bar",key:n},[e.createElementVNode("view",{class:"mr10"},"#"+e.toDisplayString(t.tagName),1),e.createVNode(g,{type:"closeempty",size:"28rpx",onClick:e=>h(0,n)},null,8,["onClick"])])))),128))])):e.createCommentVNode("",!0),r[0]?(e.openBlock(),e.createElementBlock("view",{key:1,class:"labels items mt20 df fww c333 f28"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item fmid mr20 mb20 plr20 bar",key:n},[e.createElementVNode("view",{class:"mr10"},"@"+e.toDisplayString(t.userNickname),1),e.createVNode(g,{type:"closeempty",size:"28rpx",onClick:e=>h(0,n)},null,8,["onClick"])])))),128))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"menu df fww f28"},[e.createElementVNode("view",{class:"item mr20 ptb5 plr20 bar",onClick:p[2]||(p[2]=e=>t.$refs.labelRef.open())},"#话题"),e.createElementVNode("view",{class:"item mr20 ptb5 plr20 bar",onClick:p[3]||(p[3]=e=>t.$refs.userRef.open())},"@用户"),e.createCommentVNode("",!0)]),e.createCommentVNode("",!0),e.createElementVNode("view",{class:"fill",style:{height:"150rpx"}}),e.createElementVNode("view",{class:"footer rows plr30 bfff shadow"},[e.createElementVNode("view",{class:"btn bar lg disabled w180",onClick:p[4]||(p[4]=e=>y(0))},"存草稿"),e.createElementVNode("view",{class:"btn bar lg colourful f1 ml30",onClick:p[5]||(p[5]=e=>y(1))},"发布作品")])]),e.createVNode(E,{ref:"labelRef",type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"selectionBox ptb20 plr20 bfff c999 f28"},[e.createElementVNode("view",{class:"title c333 f34 tac"},"话题列表"),e.createElementVNode("view",{class:"mt20"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll",onScrolltolower:m},[e.createElementVNode("view",{class:"selection"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["option df aic",{active:i.map((e=>e.tagId)).includes(t.tagId)}]),key:n,onClick:e=>{return n=t,void(i.findIndex((e=>e.tagId==n.tagId))<0&&i.push(n));var n}},[e.createElementVNode("text",{class:"thd f1"},"#"+e.toDisplayString(t.tagName),1)],10,["onClick"])))),128))])],32)]),i[0]?(e.openBlock(),e.createElementBlock("view",{key:0,class:"reult items mt20 df fww c333 f28"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item fmid mr20 mb20 plr20 bar",key:n},[e.createElementVNode("view",{class:"mr10"},"#"+e.toDisplayString(t.tagName),1),e.createVNode(g,{type:"closeempty",size:"28rpx",onClick:e=>h(0,n)},null,8,["onClick"])])))),128))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"editBox rows mt20 ptb10 plr20 br20"},[e.createElementVNode("view",{class:"c333 f28"},"#"),e.withDirectives(e.createElementVNode("input",{class:"f1",type:"text","onUpdate:modelValue":p[6]||(p[6]=e=>o.value=e),placeholder:"输入你想选择的话题"},null,512),[[e.vModelText,o.value]]),e.createElementVNode("view",{class:"",onClick:d},"搜索")])])])),_:1},512),e.createVNode(E,{ref:"userRef",type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"selectionBox ptb20 plr20 bfff c999 f28"},[e.createElementVNode("view",{class:"title c333 f34 tac"},"@用户列表"),e.createElementVNode("view",{class:"mt20"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll",onScrolltolower:v},[e.createElementVNode("view",{class:"selection"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["option df aic",{active:r.map((e=>e.userId)).includes(t.userId)}]),key:n,onClick:e=>{return n=t,void(r.findIndex((e=>e.id==n.id))<0&&r.push(n));var n}},[e.createElementVNode("text",{class:"thd f1"},"@"+e.toDisplayString(t.userNickname),1)],10,["onClick"])))),128))])],32)]),r[0]?(e.openBlock(),e.createElementBlock("view",{key:0,class:"reult items mt20 df fww c333 f28"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item fmid mr20 mb20 plr20 bar",key:n},[e.createElementVNode("view",{class:"mr10"},"@"+e.toDisplayString(t.userNickname),1),e.createVNode(g,{type:"closeempty",size:"28rpx",onClick:e=>function(e,t){r.splice(t,1)}(0,n)},null,8,["onClick"])])))),128))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"editBox rows mt20 ptb10 plr20 br20"},[e.createElementVNode("view",{class:"c333 f28"},"@"),e.withDirectives(e.createElementVNode("input",{class:"f1",type:"text","onUpdate:modelValue":p[7]||(p[7]=e=>c.value=e),placeholder:"输入你想选择的用户"},null,512),[[e.vModelText,c.value]]),e.createElementVNode("view",{class:"",onClick:_},"搜索")])])])),_:1},512)])}}},ml=w({__name:"wallet",setup(t){e.getCurrentInstance();const n=O();e.reactive({data:[],pageNum:1,pageSize:30,total:0}),e.computed((()=>n.state.userinfo||{}));const a=e.ref({}),o=e.ref([]);function i(e){uni.navigateTo({url:e})}return E((()=>{Te.mine.releasedList({}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):o.value=e.data})),Te.mine.selectPurse({}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):a.value=e.data}))})),(t,n)=>{const s=f(e.resolveDynamicComponent("uni-icons"),D),r=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock("view",{class:"app plr60"},[e.createElementVNode("view",{class:"board mt60 ptb25 plr30 c111 f28 br25"},[e.createElementVNode("view",{class:""},"总资产(余额)"),e.createElementVNode("view",{class:"balance rows"},[e.createElementVNode("view",{class:"price dib mtb10 ptb10 plr15 c333 f48 bfff br15"},[e.createElementVNode("text",null,e.toDisplayString(a.value.balance||0),1)]),e.createElementVNode("view",{class:""},[e.createElementVNode("navigator",{url:"/pages/index/wallet/topUp","hover-class":"none"},[e.createElementVNode("view",{class:"btn sm bar black plr20"},"充值")]),e.createElementVNode("navigator",{url:"/pages/index/wallet/get","hover-class":"none"},[e.createElementVNode("view",{class:"btn sm bar black mt20 plr20"},"提现")])])]),e.createElementVNode("view",{class:"mtb10"},"可用积分 "+e.toDisplayString(a.value.score||0),1)]),e.createElementVNode("view",{class:"rows mtb30 ptb20 plr30 cfff f34 b000 br10",onClick:n[0]||(n[0]=e=>t.$refs.released.open())},[e.createElementVNode("text",null,"待入账列表"),e.createVNode(s,{type:"right",color:""})]),e.createElementVNode("view",{class:"rows mtb30 ptb20 plr30 cfff f34 b000 br10",onClick:n[1]||(n[1]=e=>i("/pages/index/wallet/bill"))},[e.createElementVNode("text",null,"我的账单"),e.createVNode(s,{type:"right",color:""})]),e.createElementVNode("view",{class:"rows mtb30 ptb20 plr30 cfff f34 b000 br10",onClick:n[2]||(n[2]=e=>i("/pages/index/wallet/merchantBill"))},[e.createElementVNode("text",null,"商家账单"),e.createVNode(s,{type:"right",color:""})]),e.createVNode(r,{ref:"released",type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"releasedAlt oh popMid bfff br20"},[e.createElementVNode("view",{class:"header rows ptb20 plr20 c333 f34 b"},[e.createElementVNode("view",{class:"title"},"待释放列表"),e.createVNode(s,{type:"closeempty",onClick:n[3]||(n[3]=e=>t.$refs.released.close())})]),e.createElementVNode("view",{class:"main mtb20 plr30"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list c333 f30",key:n},[e.createElementVNode("view",{class:"item mtb30"},[e.createElementVNode("text",null,"待释放"+e.toDisplayString(t.mount),1),0===t.type?(e.openBlock(),e.createElementBlock("text",{key:0},"积分")):1===t.type?(e.openBlock(),e.createElementBlock("text",{key:1},"榴莲果")):2===t.type?(e.openBlock(),e.createElementBlock("text",{key:2},"积分")):e.createCommentVNode("",!0)])])))),128)),o.value[0]?(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomore"})):e.createCommentVNode("",!0)])])])])),_:1},512)])}}},[["__scopeId","data-v-30fc16e5"]]),pl={__name:"myTeam",setup(t){const n=O();e.computed((()=>n.state.userinfo));const a=e.ref(""),o=e.ref({}),i=e.ref(!1);function s(e){e.showSecond=!e.showSecond}return E((()=>{Te.intergral.myQrcode({}).then((e=>{a.value=`data:image/png;base64, ${uni.arrayBufferToBase64(e)}`})),Te.team.myTeam({}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):o.value=e.data}))})),(t,n)=>{const r=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"appbw plr50 c333 f36"},[e.createElementVNode("view",{class:"qrBox ver"},[e.createElementVNode("image",{class:"qr",src:a.value,mode:"aspectFill"},null,8,["src"])]),o.value.referrerUser?(e.openBlock(),e.createElementBlock("view",{key:0,class:"log mtb60 f28"},[e.createElementVNode("view",{class:"title tac f32"},"上级推荐人"),e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"item rows mtb20"},[e.createElementVNode("view",{class:"f1"},[e.createElementVNode("view",null,"账户昵称")]),e.createElementVNode("view",{class:""},e.toDisplayString(o.value.referrerUser.userNickname),1)])])])):e.createCommentVNode("",!0),o.value.referrerReferrerUser?(e.openBlock(),e.createElementBlock("view",{key:1,class:"log mtb60 f28"},[e.createElementVNode("view",{class:"title tac f32"},"我的推荐人"),e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"item rows mtb20"},[e.createElementVNode("view",{class:"f1"},[e.createElementVNode("view",null,"账户昵称")]),e.createElementVNode("view",{class:""},e.toDisplayString(o.value.referrerReferrerUser.userNickname),1)])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"myTeam mtb60"},[e.createElementVNode("view",{class:"title tac"},"我的团队"),e.createElementVNode("view",{class:"secTitle rows mt30"},[e.createElementVNode("view",{class:"f1"},[e.createElementVNode("text",null,"当前团队基数"),o.value.count?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(o.value.count)+"人",1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:e.normalizeClass(["arrow",{active:i.value}]),onClick:n[0]||(n[0]=e=>i.value=!i.value)},[e.createVNode(r,{type:"right"})],2)]),i.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"team oh mt20 plr30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.sonUser,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"li mtb30",key:t.id},[e.createElementVNode("view",{class:"menber df aic"},[e.createElementVNode("view",{class:"c333 f32"},e.toDisplayString(t.userNickname),1),t.sonList[0]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.showSecond?(e.openBlock(),e.createBlock(r,{key:0,onClick:e=>s(t),type:"up",color:"#A45EFF",size:"28rpx"},null,8,["onClick"])):(e.openBlock(),e.createBlock(r,{key:1,onClick:e=>s(t),type:"plusempty",color:"#A45EFF",size:"28rpx"},null,8,["onClick"]))],64)):e.createCommentVNode("",!0)]),t.showSecond?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.sonList,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"secLi df",key:t.id},[e.createElementVNode("view",{class:"vertical df fdc"},[e.createElementVNode("view",{class:"top"}),e.createElementVNode("view",{class:"bottom"})]),e.createElementVNode("view",{class:"content df aic f1 ptb10"},[e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:e.normalizeClass(["ml10 df aic c999 f28",{style1:1==t.isShop}])},[e.createElementVNode("view",{class:"count mr20 plr10 cfff br10"},"商"),e.createElementVNode("view",{class:"name"},e.toDisplayString(t.userNickname),1),e.createElementVNode("view",{class:"label ml10"},e.toDisplayString(t.count),1)],2)])])))),128))])):e.createCommentVNode("",!0)])))),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"fill"})])}}},hl="/static/indexLike1.png",gl={__name:"search",setup(t){e.getCurrentInstance();const n=e.ref(!1),a=e.reactive([]),o=e.reactive([]),i=e.reactive([{name:"视频",getList:()=>m(),getMoreList:()=>function(){if(c.data.length>=c.total)return;c.pageNum++,m()}(),refreshList:()=>(c.pageNum=1,c.total=0,void m())},{name:"用户",getList:()=>p(),getMoreList:()=>function(){if(l.data.length>=l.total)return;l.pageNum++,p()}(),refreshList:()=>(l.pageNum=1,l.total=0,void p())}]),s=e.ref(0),r=e.ref(""),c=e.reactive({data:[],pageNum:1,pageSize:10,total:0}),l=e.reactive({data:[],pageNum:1,pageSize:10,total:0});function u(e){uni.navigateTo({url:Me.setUrl("/pages/index/videoHome",{userId:e.userId})})}function d(){r.value?(n.value=!0,i[s.value].getList()):n.value=!1}function m(){Te.video.videoSearch({query:{search:r.value,pageNum:c.pageNum,pageSize:c.pageSize}}).then((e=>{if(g("log","at pages/index/search.vue:173","videoSearch",e),200==e.code)return c.pageNum&&(c.data.length=0),c.data.push(...e.rows.map((e=>(e.format_videoUrl=Me.format_url(e.videoUrl,"video"),e.format_header=Me.format_url(e.header,"img"),e.format_imageUrl=Me.format_url(e.imageUrl,"img"),e)))),c.total=e.total,void g("log","at pages/index/search.vue:185","videoList",c.data);Me.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))}function p(){Te.video.searchFriendByName({path:[r.value],query:{pageNum:l.pageNum,pageSize:l.pageSize}}).then((e=>{if(g("log","at pages/index/search.vue:220",e),200==e.code)return l.pageNum&&(l.data.length=0),l.data.push(...e.rows.map((e=>(e.format_userPortrait=Me.format_url(e.userPortrait,"img"),e)))),void(l.total=e.total);Me.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))}function h(e,t){r.value=e[t],d()}return E((()=>{Te.video.videoSearchLog().then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):a.push(...e.data)})),Te.video.hotVideos().then((e=>{200!=e.code?Me.alert({contuent:e.msg,showCancel:!1}):o.push(...e.data)}))})),S((()=>{n.value&&i[s.value].getMoreList()})),T((()=>{n.value?i[s.value].refreshList():uni.stopPullDownRefresh()})),(t,m)=>{const p=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"ghost"},[e.createVNode(qr),e.createElementVNode("view",{class:"head"})]),e.createElementVNode("view",{class:"apex"},[e.createVNode(qr),e.createElementVNode("view",{class:"header head df aic plr30"},[e.createElementVNode("navigator",{"open-type":"navigateBack",class:"back b"},[e.createVNode(p,{type:"left",size:"48rpx",color:"#333"})]),e.createElementVNode("view",{class:"search df aic ml20 f1 ptb5 plr15 bar"},[e.createVNode(p,{type:"search",size:"32rpx",color:"#aaa"}),e.withDirectives(e.createElementVNode("input",{class:"ml20 f32","onUpdate:modelValue":m[0]||(m[0]=e=>r.value=e),placeholder:"请输入关键字"},null,512),[[e.vModelText,r.value]]),e.createElementVNode("view",{class:"btn bar sm colourful w120",onClick:d},"搜索")])])]),n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"tabList df plr15"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item df fdc aic plr20",{active:n===s.value}]),key:n,onClick:e=>function(e){s.value!==e&&(s.value=e,i[s.value].refreshList())}(n)},[e.createElementVNode("view",{class:"txt"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"line"})],10,["onClick"])))),128))]),e.createElementVNode("view",{class:"listBox ptb15 plr15"},[0===s.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"videoList"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item oh mb25 plr30 c333 bfff br20",key:n,onClick:e=>function(e){g("log","at pages/index/search.vue:255","handleVideo",e),uni.navigateTo({url:Me.setUrl("/pages/index/videoDetail",{videoId:e.videoId})})}(t)},[e.createElementVNode("view",{class:"userinfo df aic mtb25"},[e.createElementVNode("view",{class:"avatar",onClick:e.withModifiers((e=>u(t)),["stop"])},[e.createElementVNode("image",{class:"wh70 cir",src:t.format_header,mode:"aspectFill"},null,8,["src"])],8,["onClick"]),e.createElementVNode("view",{class:"user ml15 f1"},[e.createElementVNode("view",{class:"nickname f32"},e.toDisplayString(t.userName),1),e.createElementVNode("view",{class:"date mt10 c999 f24"},e.toDisplayString(t.createTime),1)])]),e.createElementVNode("view",{class:"desc mtb20 f28"},e.toDisplayString(t.title),1),e.createElementVNode("view",{class:"coverImg mtb20"},[e.createElementVNode("image",{src:t.format_imageUrl,mode:"aspectFill",class:"br25"},null,8,["src"])]),e.createElementVNode("view",{class:"menu df mtb20 c333 f28"},[e.createElementVNode("view",{class:"option f1 fmid"},[0==t.isLike?(e.openBlock(),e.createElementBlock("image",{key:0,class:"wh30",src:"/static/indexLike.png",mode:"aspectFit"})):(e.openBlock(),e.createElementBlock("image",{key:1,class:"wh30",src:hl,mode:"aspectFit"})),e.createElementVNode("view",{class:"number ml10"},e.toDisplayString(t.likes),1)]),e.createElementVNode("view",{class:"option f1 fmid"},[e.createElementVNode("image",{class:"wh30",src:"/static/indexMsg.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"number ml10"},e.toDisplayString(t.comment),1)]),e.createElementVNode("view",{class:"option f1 fmid"},[e.createElementVNode("image",{class:"wh30",src:"/static/indexCollect.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"number ml10"},e.toDisplayString(t.collect),1)]),e.createCommentVNode("",!0)]),e.createCommentVNode("",!0)],8,["onClick"])))),128))])):e.createCommentVNode("",!0),1===s.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"userList"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item df aic mtb40 plr10",key:n,onClick:e=>u(t)},[e.createElementVNode("view",{class:"avatar fs0"},[e.createElementVNode("image",{class:"wh110 cir",src:t.format_userPortrait,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"user oh f1 mlr25"},[e.createElementVNode("view",{class:"nickname c333 f32"},e.toDisplayString(t.userNickname),1),e.createElementVNode("view",{class:"fans c999 f24"},"粉丝:"+e.toDisplayString(t.userFans),1)]),e.createElementVNode("view",{class:"button fs0"},[t.isAttention?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn cancel w150"},"取消关注")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"btn focus w150"},"关注"))])],8,["onClick"])))),128))])):e.createCommentVNode("",!0)])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"searchList mtb30 mlr30"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"title c333 f28 b"},"历史记录")]),e.createElementVNode("view",{class:"list mt20 c333 f24"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item dib mtb10 mlr10 ptb10 plr20 bar",key:n,onClick:e=>h(t,"search")},e.toDisplayString(t.search),9,["onClick"])))),128)),a[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomore mtb20"},"暂无搜索记录"))])]),e.createCommentVNode("",!0),e.createElementVNode("view",{class:"hotList mtb30 mlr30 c333"},[e.createElementVNode("view",{class:"title f28 b"},"热门搜索"),e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item df aic jcsb ptb20",key:n,onClick:e=>h(t,"title")},[e.createElementVNode("view",{class:"rank c666 f32 b"},e.toDisplayString(n+1),1),e.createElementVNode("view",{class:"content df aic f1 mlr15 f24"},[e.createElementVNode("text",null,e.toDisplayString(t.title),1),e.createCommentVNode("",!0),e.createElementVNode("view",{class:"f1"})]),e.createElementVNode("view",{class:"number f22"},"热度"+e.toDisplayString(t.play),1),e.createCommentVNode("",!0)],8,["onClick"])))),128))])])],64))])}}},fl="/static/copy.png",vl={__name:"videoHome",setup(t){const{proxy:n}=e.getCurrentInstance(),a=O(),o=e.ref(!1),i=e.ref(""),s=e.reactive({}),r=e.reactive({data:[],pageSize:9,pageNum:1,total:0});let c=e.computed((()=>a.state.userinfo));function l(){Te.video.getUserInfo({query:{userId:i.value}}).then((e=>{if(200==e.code){g("log","at pages/index/videoHome.vue:89","userinfo",e);const t=e.data;return t.userPortrait=Me.format_url(t.userPortrait,"img"),t.background=Me.format_url(t.background,"img"),void Object.assign(s,t)}Me.alert({content:e.msg,showCancel:!1})}))}function u(){Te.video.myVideoList({query:{isDraft:0,userId:i.value,pageSize:r.pageSize,pageNum:r.pageNum}}).then((e=>{if(200==e.code)return 1==r.pageNum&&(r.data.length=0),r.data.push(...e.rows.map((e=>(e.format_videoUrl=Me.format_url(e.videoUrl,"video"),e.format_imageUrl=Me.format_url(e.imageUrl,"img"),e)))),void(r.total=e.total);Me.alert({content:e.msg,showCancel:!1})}))}function d(){n.$refs.menuRef.close(),uni.showActionSheet({itemList:["举报"]}).then((e=>{0==e.tapIndex&&uni.navigateTo({url:"/pages/index/report"})}))}function m(){uni.setClipboardData({data:s.userAccount,showToast:!1,success:e=>{Me.alert("复制成功")}})}function p(){Te.video.attention({path:[s.isAttention?0:1],data:{userId:c.value.userId,attentionId:s.userId,attentionSource:1}}).then((e=>{if(200==e.code)return s.isAttention=!s.isAttention,l(),void uni.$emit("focusUser",{userId:s.userId,result:s.isAttention});Me.alert({content:e.msg,showCancel:!1})}))}function h(){s.isBlock=!s.isBlock,Te.video.videoBlock({query:{type:s.isBlock?0:1,userId:s.userId}}).then((e=>{200!=e.code&&(s.isBlock=!s.isBlock,Me.alert({content:e.msg,showCancel:!1}))}))}function v(){Me.toChat({name:s.userNickname,msgId:s.userId,type:"C2C"})}return E((e=>{e.userId&&(i.value=e.userId),l(),u()})),y((()=>{n.$refs.videoMenuRef.pause()})),I((e=>{o.value=e.scrollTop>44})),S((()=>{!function(){if(r.total<=r.data.length)return;r.pageNum++,u()}()})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D),i=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"appbw"},[e.createElementVNode("view",{class:"apex pr"},[e.createElementVNode("view",{class:"bg pfull"},[e.createElementVNode("image",{src:s.background,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"window pfull"})]),e.createVNode(tc,{bgColor:o.value?"#fff":"#fff0",color:o.value?"#333":"#fff"},e.createSlots({right:e.withCtx((()=>[e.createElementVNode("view",{class:"menuIcon plr5",onClick:n[0]||(n[0]=e=>t.$refs.menuRef.open())},[e.createVNode(a,{type:"bars",size:"50rpx",color:o.value?"#333":"#fff"},null,8,["color"])])])),_:2},[o.value?{name:"content",fn:e.withCtx((()=>[e.createElementVNode("view",{class:""},e.toDisplayString(s.userNickname),1)])),key:"0"}:void 0]),1032,["bgColor","color"]),e.createElementVNode("view",{class:"userinfo df aic pr pt20 plr30 pb60"},[e.createElementVNode("view",{class:"avatar cir"},[e.createElementVNode("image",{class:"wh200 cir",src:s.userPortrait,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"user f1 ml20 cfff"},[e.createElementVNode("view",{class:"f36 b"},e.toDisplayString(s.userNickname),1),e.createElementVNode("view",{class:"f24"},"账号:"+e.toDisplayString(s.userAccount),1)])])]),e.createElementVNode("view",{class:"container pr ptb30 plr30 c333"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"number df"},[e.createCommentVNode("",!0),e.createElementVNode("view",{class:"option mr40"},[e.createElementVNode("text",{class:"value f36"},e.toDisplayString(s.userFans),1),e.createElementVNode("text",{class:"key ml10 c666 f24"},"粉丝")]),e.createElementVNode("view",{class:"option mr40"},[e.createElementVNode("text",{class:"value f36"},e.toDisplayString(s.userAttention),1),e.createElementVNode("text",{class:"key ml10 c666 f24"},"关注")])]),e.createElementVNode("view",{class:""},"他的评论")]),e.createElementVNode("view",{class:"desc mtb20 c333 f28"},e.toDisplayString(s.userBrief),1),(s.isShop,e.createCommentVNode("",!0)),e.createElementVNode("view",{class:"btns df"},[s.isAttention?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"btn lg cancel f1",onClick:p},"已关注"),e.createElementVNode("view",{class:"btn lg cancel f1 ml20",onClick:v},"私信")],64)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"btn lg focus f1",onClick:p},"关注"))])]),e.createElementVNode("view",{class:"product mt30"},[e.createElementVNode("view",{class:"title plr30 c333 f32"},[e.createElementVNode("text",null,"作品"),e.createElementVNode("text",{class:"ml10"},e.toDisplayString(r.total),1)]),e.createElementVNode("view",{class:"list mt20"},[e.createVNode(rl,{ref:"videoMenuRef",list:r.data},null,8,["list"])])])]),e.createVNode(i,{ref:"menuRef",type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"menuAlt ptb50 plr40"},[e.createElementVNode("view",{class:"header df"},[e.createElementVNode("view",{class:"user f1 c111"},[e.createElementVNode("view",{class:"nickname f28"},e.toDisplayString(s.userNickname),1),e.createElementVNode("view",{class:"df aic mt10"},[e.createElementVNode("text",{class:"f20"},"账号:"+e.toDisplayString(s.userAccount),1),e.createElementVNode("image",{class:"wh30 ml10",src:fl,mode:"aspectFit",onClick:m}),e.createElementVNode("view",{class:"f1"})])]),e.createElementVNode("view",{onClick:n[1]||(n[1]=e=>t.$refs.menuRef.close())},[e.createVNode(a,{type:"close",size:"40rpx"})])]),e.createElementVNode("view",{class:"select mt20 mb10"},[e.createElementVNode("view",{class:"option ver jcc bfff br10"},[e.createElementVNode("image",{class:"wh50",src:"/static/email.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"txt mt20 c111 f20"},"私信Ta")]),e.createElementVNode("view",{class:"option ver jcc bfff br10",onClick:d},[e.createElementVNode("image",{class:"wh50",src:"/static/report.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"txt mt20 c111 f20"},"举报")]),e.createElementVNode("view",{class:"option ver jcc bfff br10",onClick:n[2]||(n[2]=(...e)=>t.handleBlack&&t.handleBlack(...e))},[e.createElementVNode("image",{class:"wh50",src:"/static/blackList.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"txt mt20 c111 f20"},[e.createElementVNode("text",null,"拉黑")])])]),e.createElementVNode("view",{class:"list mtb20 plr20 c111 f24 bfff br10"},[e.createCommentVNode("",!0),e.createElementVNode("view",{class:"item rows ptb25"},[e.createElementVNode("view",{class:"key"},"不让 Ta 看作品"),e.createElementVNode("view",null,[e.createElementVNode("switch",{color:"#FF0F2E",checked:s.isBlock,style:{transform:"scale(.7)"},onChange:h},null,40,["checked"])])])])])])),_:1},512)],64)}}},_l={__name:"report",setup(t){e.getCurrentInstance();const n=e.reactive([{name:"发布不正当的内容或信息"},{name:"传播涩情资源"},{name:"冒充他人"},{name:"涉嫌诈骗"},{name:"侵犯权益"},{name:"其他"}]),a=e.ref(""),o=e.reactive({userId:"",videoId:[],reason:"",context:"",pic:[]}),i=e.reactive({data:[],pageSize:10,pageNum:1,total:0}),s=e.computed((()=>o.videoId.map((e=>i.data.find((t=>t.videoId==e))||{}))));function r(e){const t=e.detail.value;a.value!==t&&(a.value=t)}function c(){i.pageNum=1,i.total=0,l()}function l(){Te.video.myVideoList({query:{isDraft:0,userId:o.userId,pageSize:i.pageSize,pageNum:i.pageNum}}).then((e=>{if(200==e.code)return 1==i.pageNum&&(i.data.length=[]),i.data.push(...e.rows.map((e=>(e.format_videoUrl=Me.format_url(e.videoUrl,"video"),e.format_imageUrl=Me.format_url(e.imageUrl,"img"),e)))),void(i.total=e.total);Me.alert({content:e.msg,showCancel:!1})}))}function u(){Me.upload_image({value:o.pic})}function d(e,t){Me.alert({content:"确认要删除吗?"}).then((n=>{n.confirm&&o[t].splice(e,1)}))}function m(){const e={...o};""!=a?e.context?e.context.length>100?Me.alert("详细描述自述超过100"):e.pic[0]?e.videoId[0]?(e.reason=n[a.value].name,e.pic=e.pic.map((e=>Me.replace_url("node"))).join(","),e.videoId=e.videoId.join(","),Te.video.reportVideo({data:e}).then((e=>{if(200==e.code)return Me.alert("举报成功,请等待后台审核"),void setTimeout((()=>{uni.navigateBack()}),500);Me.alert({content:e.msg,showCancel:!1})}))):Me.alert("请选择举报视频"):Me.alert("请上传举报图片"):Me.alert("详细描述不能为空"):Me.alert("请选择举报理由")}return E((e=>{e.userId&&(o.userId=e.userId),l()})),(t,l)=>{const p=f(e.resolveDynamicComponent("uni-icons"),D),h=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"form plr50 c333 f28"},[e.createElementVNode("view",{class:"line df aic mtb20"},[e.createElementVNode("view",{class:"key mr20"},"举报理由"),e.createElementVNode("picker",{class:"f1",range:n,rangeKey:"name",onChange:r},[e.createElementVNode("view",{class:"inputBox ptb10 plr10"},[n[a.value]?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(n[a.value].name),1)):(e.openBlock(),e.createElementBlock("text",{key:1,class:"placeholderStyle"},"请选择举报理由"))])],40,["range"])]),e.createElementVNode("view",{class:"line mtb50"},[e.createElementVNode("view",{class:"key"},"详细描述"),e.createElementVNode("view",{class:"inputBox mt20 ptb15 plr15"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=e=>o.context=e),placeholder:"请详细填写,以提高举报成功率。"},null,512),[[e.vModelText,o.context]])]),e.createElementVNode("view",{class:"hint mt10 tar f20"},e.toDisplayString(o.context.length)+"/100",1)]),e.createElementVNode("view",{class:"line mtb50 uploadBox"},[e.createElementVNode("view",{class:"key"},"上传照片"),e.createElementVNode("view",{class:"uploads pr"},[e.createElementVNode("view",{class:"cartoon pa"},[e.createElementVNode("image",{src:"/static/uploadCartoon.png",mode:"aspectFit"})]),e.createElementVNode("view",{class:"imgList images mt20"},[e.createElementVNode("view",{class:"item upload fmid pr mr20 br10",onClick:u},[e.createVNode(p,{type:"plusempty",color:"#D8D8D8",size:"100rpx"})]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pic,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"imgs item mr20 br10",key:n},[e.createElementVNode("image",{class:"br10",src:t,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"close"},[e.createVNode(p,{type:"clear",size:"30rpx",color:"red",onClick:e=>d(n,"pic")},null,8,["onClick"])])])))),128))])])]),e.createElementVNode("view",{class:"line mtb50 uploadBox"},[e.createElementVNode("view",{class:"key"},"选择视频"),e.createElementVNode("view",{class:"list pr mt20"},[e.createElementVNode("view",{class:"item fmid oh br10",onClick:l[1]||(l[1]=e=>t.$refs.select.open())},[e.createVNode(p,{type:"plusempty",color:"#D8D8D8",size:"100rpx"})]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item pr br10",key:n},[e.createElementVNode("image",{src:t.format_imageUrl,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"close"},[e.createVNode(p,{type:"clear",size:"30rpx",color:"red",onClick:e=>d(n,"videoId")},null,8,["onClick"])])])))),128))])])]),e.createElementVNode("view",{class:"fill",style:{height:"180rpx"}}),e.createElementVNode("view",{class:"footer plr30 bfff shadow"},[e.createElementVNode("view",{class:"btn lg focus",onClick:m},"举报")]),e.createVNode(h,{ref:"select",type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"selectAlt popBot"},[e.createElementVNode("view",{class:"product mt30 bfff"},[e.createElementVNode("view",{class:"header rows ptb20 plr20"},[e.createElementVNode("view",{class:"title plr30 c333 f34"},[e.createElementVNode("text",null,"作品"),e.createElementVNode("text",{class:"ml10"},e.toDisplayString(i.total),1)]),e.createElementVNode("view",{class:"fmid c999 f28",onClick:c},[e.createVNode(p,{type:"refreshempty",color:""}),e.createElementVNode("text",null,"刷新")])]),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll"},[e.createVNode(rl,{list:i.data,ids:o.videoId,"onUpdate:ids":l[2]||(l[2]=e=>o.videoId=e),mode:"checkbox"},null,8,["list","ids"])])])])])),_:1},512)])}}},yl={__name:"collectsVideo",setup(t){const n=e.ref(""),a=e.reactive([]),o=e.ref(""),i=e.reactive({data:[],pageSize:12,pageNum:1,total:0});function s(){Te.video.getCollectVideoList({query:{collectId:a.value,userId:n.value||"",pageSize:i.pageSize,pageNum:i.pageNum}}).then((e=>{if(200==e.code)return 1==i.pageNum&&(i.data.length=[]),i.data.push(...e.rows.map((e=>(e.format_videoUrl=Me.format_url(e.videoUrl,"video"),e.format_imageUrl=Me.format_url(e.imageUrl,"img"),e)))),void(i.total=e.total);Me.alert({content:e.msg,showCancel:!1})}))}return E((e=>{e.userId&&(n.value=e.userId),e.collectId&&(a.value=e.collectId),e.collectName&&(o.value=e.collectName,uni.setNavigationBarTitle({title:o.value})),s()})),T((()=>{i.pageNum=1,i.total=0,s()})),S((()=>{!function(){if(i.data.length>=i.rows)return;i.pageNum++,s()}()})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"product mt30"},[e.createElementVNode("view",{class:"title plr30 c333 f32"},[e.createElementVNode("text",null,"作品"),e.createElementVNode("text",{class:"ml10"},e.toDisplayString(i.total),1)]),e.createElementVNode("view",{class:"main mt20"},[e.createVNode(rl,{list:i.data},null,8,["list"])])])]))}},El={__name:"promotion",setup(t){const n=e.ref(""),a=e.reactive([]),o=e.reactive({data:[],pageSize:10,pageNum:1,total:0});function i(){Te.video.myVideoList({query:{isDraft:0,userId:16,pageSize:o.pageSize,pageNum:o.pageNum}}).then((e=>{if(200==e.code)return 1==o.pageNum&&(o.data.length=[]),o.data.push(...e.rows.map((e=>(e.format_videoUrl=Me.format_url(e.videoUrl,"video"),e.format_imageUrl=Me.format_url(e.imageUrl,"img"),e)))),void(o.total=e.total);Me.alert({content:e.msg,showCancel:!1})}))}function s(){g("log","at pages/index/promotion.vue:95",a)}return E((e=>{e.userId&&(n.value=e.userId),e.videoIds&&(a.value=e.videoIds.split(",")),i()})),T((()=>{o.pageNum=1,o.total=0,i()})),S((()=>{!function(){if(o.data.length>=o.rows)return;o.pageNum++,i()}()})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"product mt30"},[e.createElementVNode("view",{class:"title plr30 c333 f32"},[e.createElementVNode("text",null,"作品"),e.createElementVNode("text",{class:"ml10"},e.toDisplayString(o.total),1)]),e.createElementVNode("view",{class:"title plr70 c333 f32"},[e.createElementVNode("text",{onClick:s},"确认")]),e.createVNode(rl,{list:o.data,ids:a,"onUpdate:ids":n[0]||(n[0]=e=>a=e),mode:"checkbox"},null,8,["list","ids"])])]))}},Cl={__name:"myQrCode",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo)),o=e.ref("");return E((()=>{Te.intergral.myQrcode({}).then((e=>{o.value=`data:image/png;base64, ${uni.arrayBufferToBase64(e)}`}))})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw df fdc aic"},[e.createElementVNode("view",{class:"qrBox pr"},[e.createElementVNode("image",{src:"/static/myShare.png",mode:"aspectFill"}),e.createElementVNode("image",{class:"qr pmid",src:o.value,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"button btn lg colourful mt60"},"推荐码: "+e.toDisplayString(a.value.userRecommend),1)]))}},kl={durianList:e=>Me.request({url:"/coreplay/duriantreeinfo/tree-list",method:"GET",query:e.query}),buyDurianList:e=>Me.request({url:"/coreplay/duriantreeinfo/boughtListByUser",method:"GET",query:e.query}),DurianChange:e=>Me.request({url:"/home/getMyFruitLog",method:"post",query:e.query}),exchange:e=>Me.request({url:"/coreplay/duriantreeinfo/exchange",method:"POST",data:e.data,load:!0}),getOrderList:e=>Me.request({url:"/home/getOrderList",method:"post",query:e.query,load:!0}),orderSale:e=>Me.request({url:"/home/orderSale",method:"post",query:e.query,load:!0}),transfer:e=>Me.request({url:"/home/transfer",method:"post",query:e.query}),fruitForSale:e=>Me.request({url:"/home/fruitForSale",method:"post",query:e.query,load:!0}),cancelSale:e=>Me.request({url:"/home/cancelSale",method:"post",query:e.query,load:1}),shopApply:e=>Me.request({url:"/home/shopApply",method:"post",query:e.query,data:e.data}),getMyFruitLog:e=>Me.request({url:"/duriantreeinfo",method:"GET",path:e.path,query:e.query})},Il={__name:"deal",setup(t){const n=O();e.getCurrentInstance();const a=e.reactive([{name:"全部"},{name:"交易中"},{name:"已完成"},{name:"已取消"}]),o=e.ref(0),i=e.reactive({data:[],pageNum:1,pageSize:10,total:0}),s=e.computed((()=>n.state.userinfo));function r(){i.pageNum=1,i.total=0,c()}function c(){kl.getOrderList({query:{userId:s.value.userId,status:o.value,pageSize:i.pageSize,pageNum:i.pageNum}}).then((e=>{if(200==e.code)return 1==i.pageNum&&(i.data.length=0),i.data.push(...e.rows),void(i.total=e.total);util.alert({content:e.msg,showCancel:!1})}))}return E((()=>{c()})),T((()=>{r()})),S((()=>{!function(){if(i.data.length>=i.total)return;i.pageNum++,c()}()})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createVNode(e.unref(tc),{title:"我的交易"},{right:e.withCtx((()=>[e.createElementVNode("navigator",{url:"/pages/index/trade","hover-class":"none","open-type":"redirect"},[e.createElementVNode("view",{class:"w150 tar"},"交易市场")])])),_:1}),e.createElementVNode("view",{class:"list plr30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item mtb20 ptb20 plr30 bfff br10",key:n},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:""},"数量:"+e.toDisplayString(t.sellNum),1),e.createElementVNode("view",{class:""},[1==t.type?(e.openBlock(),e.createElementBlock("text",{key:0},"挂买")):(e.openBlock(),e.createElementBlock("text",{key:1},"挂卖"))])]),e.createElementVNode("view",{class:"rows mt20"},[e.createElementVNode("view",{class:""},"金额:"+e.toDisplayString(t.totalPrice),1),3==t.status?(e.openBlock(),e.createElementBlock("text",{key:0,class:"c999 f28"},"已取消")):e.createCommentVNode("",!0),2==t.status?(e.openBlock(),e.createElementBlock("text",{key:1,class:"c999 f28"},"已完成")):1==t.status?(e.openBlock(),e.createElementBlock("view",{key:2,class:"btn sm black w180",onClick:e=>function(e){kl.cancelSale({query:{orderId:e.id}}).then((e=>{if(200===e.code)return util.alert("操作成功"),util.getUserinfo(),void r();util.alert({content:e.msg,showCancel:!1})}))}(t)},"取消",8,["onClick"])):e.createCommentVNode("",!0)]),2==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"fmid mt10",onClick:e=>{return n=t.orderNo,void util.copyText(n);var n}},[e.createElementVNode("view",{class:"c333 f28"},"交易哈希:"+e.toDisplayString(t.orderNo),1),e.createElementVNode("image",{class:"wh24 ml10",src:fl,mode:"aspectFit"})],8,["onClick"])):e.createCommentVNode("",!0)])))),128)),e.createElementVNode("view",{class:"nomore mtb30"},"暂无更多~")]),e.createElementVNode("view",{class:"fill",style:{height:"120rpx"}}),e.createElementVNode("view",{class:"footer footerMenu df bfff shadow"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["option f1 ver",{active:n===o.value}]),key:n,onClick:e=>function(e){o.value!==e&&(o.value=e,i.data.length=0,r())}(n)},[e.createElementVNode("view",{class:""},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"line"})],10,["onClick"])))),128))])]))}},Sl="/static/sapling.png",Tl="/static/tree.png",Ml="/static/fruit.png",Nl=w({__name:"task",setup(t){O();const n=e.ref({seconds:0,scrollFlag:!1,treeFlag:!1}),a=e.computed((()=>{let e=n.value.scrollFlag||n.value.treeFlag;return e&&Number(n.value.seconds)>300&&(e=!1),e})),o=e.computed((()=>{let e=n.value.seconds;return e=Number(e)%300/300*100,e}));return e.onMounted((()=>{Me.isLogin((()=>{Se.viewingTasks({}).then((e=>{200==e.code&&e.data&&(n.value=e.data)}))}))})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"task pr mtb30 ptb20 plr40 f28 bFFFBF3 br20"},[a.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"title c333 f36"},"任务读秒")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"title c333 f36"},"有效读秒")),e.createElementVNode("view",{class:"progressBox oh bar mt60"},[e.createElementVNode("view",{class:"progress bar",style:e.normalizeStyle({width:o.value+"%"})},null,4)]),a.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"label pa t0 r0 ptb5 plr20 cfff"},"优先")):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-2d6cb8cf"]]),wl={__name:"durian",setup(t){const n=O(),a=e.ref({seconds:0}),o=e.ref(0),i=e.ref(0),s=e.ref(0),r=e.ref(0),c=e.computed((()=>n.state.userinfo));e.computed((()=>{let e=a.value.seconds;return e=Math.min(Number(e),100),e}));const{proxy:l}=e.getCurrentInstance(),u=e.reactive({account:"",sellNum:""});function d(){kl.transfer({query:{account:u.account,sellNum:u.sellNum}}).then((e=>{if(200===e.code)return Me.alert("操作成功"),void Me.getUserinfo();Me.alert({content:e.msg,showCancel:!1})}))}function m(){l.$refs.dealRef.open()}function p(e){uni.navigateTo({url:e})}return C((()=>{})),E((()=>{Me.isLogin((()=>{Se.buyScrollList({query:{status:0}}).then((e=>{var t=0,n=0;e.data.forEach((e=>{t+=e.release,n+=e.score})),o.value=t,i.value=n})),kl.buyDurianList({query:{userId:c.value.userId}}).then((e=>{if(200==e.code){var t=0,n=0;return e.data.forEach((e=>{t+=e.release,n+=e.fruit})),s.value=t,void(r.value=n)}Me.alert({value:e.msg,showCancel:!1})}))}))})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[c.value.id?(e.openBlock(),e.createElementBlock("view",{key:1,class:"appbw plr30"},[e.createElementVNode("view",{class:"task mtb30"},[e.createVNode(e.unref(Nl))]),e.createElementVNode("view",{class:"sapling bgColor mtb30 ptb15 plr30"},[e.createElementVNode("view",{class:"df"},[e.createElementVNode("view",{class:"f1 fmid"},[e.createElementVNode("image",{class:"wh110",src:Sl,mode:"aspectFit"})]),e.createElementVNode("view",{class:"f1 fmid"},[e.createElementVNode("view",{class:"f38 b wsn"},"* "+e.toDisplayString(c.value.seed),1)])])]),e.createElementVNode("view",{class:"explain ptb30 plr30 bgColor"},[e.createElementVNode("view",{class:"df"},[e.createElementVNode("view",{class:"list f1 fmid"},[e.createElementVNode("view",{class:"item ver f1"},[e.createElementVNode("image",{class:"wh300",src:Tl,mode:"aspectFit"})])]),e.createElementVNode("view",{class:"df fdc jcsa f1"},[e.createElementVNode("view",{class:"button btn colourful plr30",onClick:n[0]||(n[0]=e=>p("/pages/index/orchard"))},"置换"),e.createElementVNode("view",{class:"button btn colourful plr30 fmid",onClick:n[1]||(n[1]=e=>p("/pages/index/durainActivation"))},[e.createElementVNode("view",{class:""},"我的榴莲果树")])])])]),e.createElementVNode("view",{class:"durianSection bgColor mtb30 ptb30 plr30"},[e.createElementVNode("view",{class:"df mlr30"},[e.createElementVNode("view",{class:"ver f1"},[e.createElementVNode("navigator",{url:"/pages/index/durianLog","hover-class":"none"},[e.createElementVNode("image",{class:"fruit wh150",src:Ml,mode:"aspectFit"}),e.createElementVNode("view",{class:"mt30 f20"},[e.createElementVNode("view",{class:"f1 b"},"可用: "+e.toDisplayString(c.value.fruit),1),e.createElementVNode("view",{class:"cFF4242 f1 mt10"},"待释放: 105.53")])])]),e.createElementVNode("view",{class:"notice df fdc jcsa aic f1"},[e.createElementVNode("view",{class:"item ver f1",onClick:m},[e.createElementVNode("view",{class:"key fmid c333 f24"},"互转")]),e.createElementVNode("view",{class:"item ver f1 mt30",onClick:n[2]||(n[2]=e=>p("/pages/index/trade"))},[e.createElementVNode("view",{class:"key fmid c333 f24"},"交易")])])]),e.createElementVNode("view",{class:"btn plus black mt60 mlr60",onClick:n[3]||(n[3]=e=>p("/pages/index/extend"))},"置换流量")]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"page"},[e.createVNode(oc,{class:"f1"})])),e.createVNode(a,{ref:"dealRef",type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"dealAlt popMid ptb40 plr60 bfff br30"},[e.createElementVNode("view",{class:"title tac c333 f28"},"榴莲果互转"),e.createElementVNode("view",{class:"content rows mtb10"},[e.createElementVNode("image",{class:"wh140",src:Ml,mode:"aspectFit"}),e.createElementVNode("image",{class:"wh70",src:"/static/dealMid.png",mode:"aspectFit"}),e.createElementVNode("image",{class:"wh140",src:"/static/dealUser.png",mode:"aspectFit"})]),e.createElementVNode("view",{class:"inputBox mtb20 plr30"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[4]||(n[4]=e=>u.account=e),type:"text",placeholder:"输入对方账号"},null,512),[[e.vModelText,u.account]])]),e.createElementVNode("view",{class:"inputBox mtb20 plr30"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[5]||(n[5]=e=>u.sellNum=e),type:"number",placeholder:"输入数量"},null,512),[[e.vModelText,u.sellNum]])]),e.createElementVNode("view",{class:"hint mtb30 tac f20"},[e.createElementVNode("view",null,"销毁15%"),e.createElementVNode("view",null,"(最低x起转)")]),e.createElementVNode("view",{class:"button btn lg bar black",onClick:d},"转移")])])),_:1},512)],64)}}},Dl={__name:"durainActivation",setup(t){const n=e.ref([]),a=O();return e.computed((()=>a.state.userinfo)),E((()=>{kl.buyDurianList({}).then((e=>{200!=e.code?util.alert({content:e.msg,showCancel:!1}):n.value=e.data.dataList}))})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"list mlr40"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item rows mtb25 br15",key:n},[e.createElementVNode("image",{class:"wh180",src:Tl,mode:"aspectFit"}),e.createElementVNode("view",{class:"col f1 ml30 c333 f26"},[e.createElementVNode("view",{class:"txt"},"每日可释放:"+e.toDisplayString(t.release),1),e.createElementVNode("view",{class:"txt"},"当前级别:"+e.toDisplayString(t.treeName),1)])])))),128))]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})]))}},bl={__name:"trade",setup(t){const n=O(),{proxy:a}=e.getCurrentInstance(),o=e.reactive([{name:"全部"},{name:"挂买"},{name:"挂卖"}]),i=e.ref(0),s=e.reactive({data:[],pageNum:1,pageSize:10,total:0}),r=e.reactive([{id:1,name:"挂买"},{id:2,name:"挂卖"}]),c=e.ref(0);class l{constructor(){__publicField(this,"sellNum",""),__publicField(this,"totalPrice","")}}const u=e.reactive({sellNum:"",totalPrice:""}),d=e.reactive([{name:"积分"},{name:"余额"}]),m=e.computed((()=>n.state.userinfo)),p=e.computed((()=>{let e=u.sellNum||0;return e=Math.floor(1e3*e*.7)/1e3,e}));function h(){s.pageNum=1,s.total=0,g()}function g(){kl.getOrderList({query:{type:i.value,status:1,pageSize:s.pageSize,pageNum:s.pageNum}}).then((e=>{if(200==e.code)return 1==s.pageNum&&(s.data.length=0),s.data.push(...e.rows),void(s.total=e.total);Me.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))}function v(e){const t=e.detail.value;c.value!==t&&(c.value=t)}function _(){kl.fruitForSale({query:{totalPrice:u.totalPrice,sellNum:u.sellNum,type:r[c.value].id}}).then((e=>{200===e.code?(a.$refs.saleRef.close(),setTimeout((()=>{Object.assign(u,new l)}),500),Me.getUserinfo(),g()):Me.alert({content:e.msg,showCancel:!1})}))}return E((()=>{g()})),C((()=>{a.$refs.orderDetail.open()})),T((()=>{h()})),S((()=>{!function(){if(s.data.length>=s.total)return;s.pageNum++,g()}()})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D),l=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"app"},[e.createVNode(e.unref(tc),{title:"交易市场"},{right:e.withCtx((()=>[e.createElementVNode("view",{class:"wsn f22 c666"},"昨日均价1.00")])),_:1}),e.createElementVNode("view",{class:"apex rows bfff"},[e.createElementVNode("view",{class:"tab df f1 c333"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item ver f1",{active:n===i.value}]),key:n,onClick:e=>function(e){i.value!==e&&(i.value=e,s.data.length=0,h())}(n)},[e.createElementVNode("view",{class:"txt ptb15"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"line"})],10,["onClick"])))),128))]),e.createElementVNode("view",{class:"menu mlr30"},[e.createElementVNode("navigator",{url:"/pages/index/deal","hover-class":"none","open-type":"redirect"},[e.createElementVNode("view",{class:"ver"},[e.createVNode(a,{type:"person-filled",size:"36rpx"}),e.createElementVNode("view",{class:"f24"},"我的订单")])])])]),e.createElementVNode("view",{class:"list plr30 c333 f36"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.data,((o,i)=>(e.openBlock(),e.createElementBlock("view",{class:"item df oh pr mtb30 br20",key:i},[e.createElementVNode("view",{class:"fmid ptb20"},[e.createElementVNode("view",{class:"mlr20"},[e.createElementVNode("image",{class:"wh110",src:Ml,mode:"aspectFit"})])]),e.createElementVNode("view",{class:"f1 mlr20 c333 f28"},[e.createElementVNode("view",{class:"tac c999",onClick:n[0]||(n[0]=e=>t.$refs.orderDetail.open())},[e.createElementVNode("text",null,"交易中详情"),e.createVNode(a,{type:"right",color:"#999"})]),e.createElementVNode("view",{class:"oh mt10 mb20"},[e.createElementVNode("view",{class:"mtb10"},"交易价格:"+e.toDisplayString(o.totalPrice),1),e.createElementVNode("view",{class:"mtb10"},"交易数量:"+e.toDisplayString(o.sellNum),1)])]),1==o.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"fn"},[e.createElementVNode("view",{class:"button btn black w150 mt70",onClick:e=>function(e){e.userId!=m.value.userId?kl.orderSale({query:{orderId:e.id}}).then((e=>{if(200===e.code)return Me.alert("交易成功"),Me.getUserinfo(),void h();Me.alert({content:e.msg,showCancel:!1})})):Me.alert("您不能和自己交易")}(o)},"交易",8,["onClick"])])):e.createCommentVNode("",!0),1==o.type?(e.openBlock(),e.createElementBlock("view",{key:1,class:"label style1"},"挂买")):(e.openBlock(),e.createElementBlock("view",{key:2,class:"label style2"},"挂卖"))])))),128)),e.createElementVNode("view",{class:"nomore mtb30"},"暂无更多~")])]),e.createElementVNode("view",{class:"fixed cfff f24",onClick:n[1]||(n[1]=e=>t.$refs.saleRef.open())},[e.createElementVNode("view",{class:""},"挂卖买")]),e.createElementVNode("view",{class:"fill",style:{height:"100rpx"}}),e.createElementVNode("view",{class:"footer rows plr30 shadow bfff"},[e.createElementVNode("view",{class:"f28"},"我的资产"),e.createElementVNode("view",{class:"f28 c666"},[e.createElementVNode("text",{class:"wsn"},"积分:"+e.toDisplayString(m.value.score),1),e.createElementVNode("text",{class:"wsn ml40"},"榴莲果:"+e.toDisplayString(m.value.fruit),1)])]),e.createVNode(l,{ref:"saleRef",type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"saleAlt popMid ver pt30 pb50 bfff"},[e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("picker",{class:"value tar f1",range:r,"range-key":"name",onChange:v},[e.createElementVNode("text",null,e.toDisplayString(r[c.value].name),1)],40,["range"]),e.createVNode(a,{type:"right",color:"#999"})]),e.createElementVNode("view",{class:"image wh150"},[e.createElementVNode("image",{src:Ml,class:"wh150",mode:"aspectFit"})]),e.createElementVNode("view",{class:"inputBox mtb10 plr30"},[e.withDirectives(e.createElementVNode("input",{class:"ptb10","onUpdate:modelValue":n[2]||(n[2]=e=>u.sellNum=e),type:"number",placeholder:"输入挂买卖数量","placeholder-class":"placeholderStyle"},null,512),[[e.vModelText,u.sellNum]])]),e.createElementVNode("view",{class:"inputBox mtb10 plr30"},[e.withDirectives(e.createElementVNode("input",{class:"ptb10","onUpdate:modelValue":n[3]||(n[3]=e=>u.totalPrice=e),type:"number",placeholder:"输入总价","placeholder-class":"placeholderStyle"},null,512),[[e.vModelText,u.totalPrice]])]),e.createElementVNode("view",{class:"inputBox rows mtb10 ptb10 plr30"},[e.createElementVNode("view",{class:"key"},"支付方式"),e.createElementVNode("view",{class:"f1 tar"},[e.createElementVNode("picker",{range:d,"range-key":"name"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"f1"},"积分"),e.createVNode(a,{type:"right"})])],8,["range"])])]),e.createElementVNode("view",{class:"hint mtb30 tac c999 f28"},[e.createElementVNode("view",{class:""},"交易销毁30%"),u.sellNum?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mt10"},[2==r[c.value].id?(e.openBlock(),e.createElementBlock("text",{key:0},"买方")):e.createCommentVNode("",!0),e.createElementVNode("text",null,"实际到账"),e.createElementVNode("text",{class:"c000 ml5"},e.toDisplayString(p.value),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"button btn bar black",onClick:_},"确定")])])),_:1},512),e.createVNode(l,{ref:"orderDetail",type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"orderAlt popBot plr30 c333 bfff"},[e.createElementVNode("view",{class:"header rows ptb30 f40"},[e.createElementVNode("view",{class:"f38 b"},"挂买订单"),e.createVNode(a,{type:"closeempty"})]),e.createElementVNode("view",{class:"user c666 mtb30"},[e.createElementVNode("view",{class:"title f34"},"发布人信息"),e.createElementVNode("view",{class:"rows mt20"},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{class:"wh80",src:zr,mode:"aspectFill"})]),e.createElementVNode("view",{class:"name f1 ml10 f32"},"发布人昵称")])]),e.createElementVNode("view",{class:"info c666 f28"},[e.createElementVNode("view",{class:"title f34"},"订单详情"),e.createElementVNode("view",{class:"line rows mtb30"},[e.createElementVNode("view",{class:"key"},"哈希号"),e.createElementVNode("view",{class:"f1 df jcr aic tar"},[e.createElementVNode("view",{class:"f1"},"xxxx-xxxxx-xxxx"),e.createElementVNode("image",{class:"wh24 ml10",src:fl,mode:"aspectFit"})])]),e.createElementVNode("view",{class:"line rows mtb30"},[e.createElementVNode("view",{class:"key"},"总价"),e.createElementVNode("view",{class:"f1 tar"},"300")]),e.createElementVNode("view",{class:"line rows mtb30"},[e.createElementVNode("view",{class:"key"},"数量"),e.createElementVNode("view",{class:"f1 tar"},"300")]),e.createElementVNode("view",{class:"line rows mtb30"},[e.createElementVNode("view",{class:"key"},"销毁"),e.createElementVNode("view",{class:"f1 tar"},"90")]),e.createElementVNode("view",{class:"line rows mtb30"},[e.createElementVNode("view",{class:"key"},"实际到账"),e.createElementVNode("view",{class:"f1 tar"},"90")]),e.createElementVNode("view",{class:"line rows mtb30"},[e.createElementVNode("view",{class:"key"},"支付方式"),e.createElementVNode("view",{class:"f1 tar"},[e.createElementVNode("picker",{range:d,"range-key":"name"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"f1"},"积分"),e.createVNode(a,{type:"right"})])],8,["range"])])])]),e.createElementVNode("view",{class:"btn lg black mt60 mlr30 mb30"},"确认交易")])])),_:1},512)],64)}}},Ll={__name:"orchard",setup(t){const{proxy:n}=e.getCurrentInstance(),a=O(),o=e.ref([]),i=e.ref({}),s=e.reactive({}),r=e.computed((()=>a.state.userinfo));function c(e){const t={1:{price:i.value.fruitNeed,name:"榴莲果"},2:{price:i.value.seedNeed,name:"种子"}}[e];Me.alert({content:`确认消耗${t.price}${t.name}购买榴莲果`}).then((t=>{t.confirm&&kl.exchange({data:{durianConfigId:i.value.durianConfigInfoId,type:e}}).then((e=>{if(200===e.code)return Me.alert("置换成功"),n.$refs.typeRef.close(),void Me.getUserinfo();Me.alert({content:e.msg,showCancel:!1})}))}))}function l(){n.$refs.ruleRef.open()}return E((()=>{kl.durianList({}).then((e=>{o.value=e.data}))})),C((()=>{})),(t,a)=>{const u=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"appbw"},[e.createVNode(tc,{title:"榴莲果园"},{right:e.withCtx((()=>[e.createElementVNode("view",{class:"rule fmid mr10 wh80 cfff f20 cir",onClick:l},"规则")])),_:1}),e.createElementVNode("view",{class:"has navs mtb40 plr50 c333 f28"},[e.createElementVNode("view",{class:"item df"},[e.createElementVNode("image",{class:"wh150",src:Sl,mode:"aspectFit"}),e.createElementVNode("text",null,"×"+e.toDisplayString(r.value.seed),1)]),e.createElementVNode("view",{class:"item df"},[e.createElementVNode("image",{class:"wh150",src:Ml,mode:"aspectFit"}),e.createElementVNode("text",null,"×"+e.toDisplayString(r.value.fruit),1)])]),e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item rows mtb30 mlr25 br15",key:a},[e.createElementVNode("image",{class:"wh180",src:Tl,mode:"aspectFit"}),e.createElementVNode("view",{class:"content f1 mlr30 c333 f28"},[e.createElementVNode("text",null,"需要"+e.toDisplayString(t.seedNeed)+"种子或"+e.toDisplayString(t.fruitNeed)+"榴莲果",1),e.createElementVNode("text",null,"置换1颗"+e.toDisplayString(t.durianName),1)]),e.createElementVNode("view",{class:"button fmid mlr40 wh110 c333 f24 bfff cir",onClick:e=>function(e){i.value=e,n.$refs.typeRef.open()}(t)},"置换",8,["onClick"])])))),128))]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})]),e.createVNode(u,{ref:"typeRef",type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"typeAlt popMid ver bfff"},[e.createElementVNode("image",{class:"wh350",src:Tl,mode:"aspectFit"}),e.createElementVNode("view",{class:"title c333 f48"},"请选择置换方式"),e.createElementVNode("view",{class:"btns fmid mtb40"},[e.createElementVNode("view",{class:"btn lg black w200",onClick:a[0]||(a[0]=e=>c("2"))},"种子置换"),e.createElementVNode("view",{class:"btn lg black w200",onClick:a[1]||(a[1]=e=>c("1"))},"榴莲果置换")])])])),_:1},512),e.createVNode(u,{ref:"ruleRef",type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"ruleAlt popMid bfff"},[e.createElementVNode("view",{class:"title tac ptb15 c333 f36 b"},"规则说明"),e.createElementVNode("view",{class:"content mtb20 mlr25"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll"},[e.createElementVNode("rich-text",{nodes:s.context},null,8,["nodes"])])])])])),_:1},512)],64)}}},Pl={__name:"durianLog",setup(t){const n=O(),a=e.reactive({data:[],pageNum:1,pageSize:30,total:0}),o=e.ref(""),i=e.computed((()=>n.state.userinfo));function s(){kl.getMyFruitLog({query:{pageNum:a.pageNum,pageSize:a.pageSize,userId:i.value.userId}}).then((e=>{if(200==e.code)return 1==a.pageNum&&(a.data.length=0),a.data.push(...e.rows),void(a.total=e.total);Me.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))}return E((e=>{e.id&&(o.value=e.id),s()})),T((()=>{a.homePageSize=1,s()})),S((()=>{!function(){if(a.total<=a.data.length)return;a.pageNum++,s()}()})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"li",key:n},[e.createElementVNode("view",{class:"item rows ptb30 plr20 bfff"},[e.createElementVNode("view",{class:"col oh f1"},[e.createElementVNode("view",{class:"c333 f36"},e.toDisplayString(t.context),1),e.createElementVNode("view",{class:"mt20 c666 f28"},e.toDisplayString(t.createTime),1)]),0!=Number(t.scroll)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"change fs0 c333 f36"},[Number(t.scroll)>0?(e.openBlock(),e.createElementBlock("text",{key:0},"+")):e.createCommentVNode("",!0),e.createElementVNode("text",null,e.toDisplayString(t.scroll),1)])):e.createCommentVNode("",!0)])])))),128))])]))}},Al=w({__name:"push",setup(t){const{proxy:n}=e.getCurrentInstance(),a=O(),o=e.computed((()=>a.state.userinfo)),i=e.reactive({data:[],pageSize:10,pageNum:1,total:0}),s=e.reactive({userId:o.value.userId,videoId:[],reason:"",context:"",pic:[]}),r=e.reactive({author:"",mobile:"",mail:"",address:""}),c=e.reactive([]),l=e.computed((()=>c.map((e=>e.videoId)))),u=e.reactive([]),d=e.computed((()=>u.map((e=>i.data.find((t=>t.videoId==e))||{})))),m=e.computed((()=>[...u,...l.value]));function p(){i.pageNum=1,i.total=0,g()}function h(){i.data.length>=i.total||(i.pageNum++,g())}function g(){Te.video.myVideoList({query:{isDraft:0,userId:s.userId,pageSize:i.pageSize,pageNum:i.pageNum}}).then((e=>{if(200==e.code)return 1==i.pageNum&&(i.data.length=[]),i.data.push(...e.rows.map((e=>(e.format_videoUrl=Me.format_url(e.videoUrl,"video"),e.format_imageUrl=Me.format_url(e.imageUrl,"img"),e)))),void(i.total=e.total);Me.alert({content:e.msg,showCancel:!1})}))}function v(){m.value.length<1?Me.alert({content:"请选择投流视频",showCancel:!1}):o.value.fruit<=10*m.value.length?Me.alert({content:"榴莲果不足",showCancel:!1}):Ie.pushVideo({query:{ids:m.value.join(",")}}).then((e=>{if(200===e.code)return n.$refs.applyRef.close(),Me.alert("申请成功,请等待后台审核"),void Me.getUserinfo();Me.alert({content:e.msg,showCancel:!1})}))}function _(){m.value.length<1?Me.alert({content:"请选择投流视频",showCancel:!1}):o.value.fruit<=10*m.value.length?Me.alert({content:"榴莲果不足",showCancel:!1}):Ie.applyVideo({data:{videoIds:m.value.join(","),author:r.author,mobile:r.mobile,address:r.address,mail:r.mail}}).then((e=>{if(200===e.code)return n.$refs.applyRef.close(),Me.alert("申请成功,请等待后台审核"),void Me.getUserinfo();Me.alert({content:e.msg,showCancel:!1})}))}function y(){uni.navigateTo({url:Me.setUrl("/pages/index/dataCenter/pushVideoCollects",{ids:l.value.join(",")})})}return E((()=>{g(),uni.$on("selectPushCollectVideo",(e=>{let t=c.findIndex((t=>t.videoId==e.videoId));t<0?c.push(e):c.splice(t,1)}))})),k((()=>{uni.$off("selectPushCollectVideo")})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D),s=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"app"},[e.createVNode(tc,{title:"投流推广"},{right:e.withCtx((()=>[e.createElementVNode("view",{class:"c333 f28",onClick:n[0]||(n[0]=e=>{return t="/pages/index/dataCenter/pushHistory",void uni.navigateTo({url:t});var t})},"历史推流")])),_:1}),e.createElementVNode("view",{class:"first oh mtb40 mlr20 plr20 bfff br10"},[e.createElementVNode("view",{class:"rows mtb30 c333 f36"},[e.createElementVNode("view",{class:"col"},[e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("view",{class:""},"我想投流的视频"),e.createVNode(a,{type:"bottom"})]),e.createElementVNode("view",{class:"hint mt10 f28"},"点击选择视频,已选择"+e.toDisplayString(d.value.length)+"个",1)]),e.createElementVNode("view",{class:"line uploadBox"},[e.createElementVNode("view",{class:"key",onClick:n[1]||(n[1]=e=>t.$refs.select.open())},"选择视频")])]),d.value[0]?(e.openBlock(),e.createElementBlock("view",{key:0,class:"listBox mtb30"},[e.createElementVNode("scroll-view",{"scroll-x":"true",class:"scroll"},[e.createElementVNode("view",{class:"list df"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item oh pr fs0 mr20 br20",key:n},[e.createElementVNode("image",{class:"poster br20",src:t.format_imageUrl,mode:"aspectFill"},null,8,["src"])])))),128))])])])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"second oh mtb20 ml20 plr20 c333 f36 br10 bfff"},[e.createElementVNode("view",{class:"title mtb20"},"我想要"),e.createElementVNode("view",{class:"list mtb20"},[e.createElementVNode("view",{class:"item fmid br10"},[e.createElementVNode("view",{class:"",onClick:v},"展示播放量")]),e.createElementVNode("view",{class:"item fmid fdc br10"},[e.createElementVNode("view",null,"完播播放量"),e.createElementVNode("view",{class:"mtb10 c666 f20"},"需申请平台审核"),e.createElementVNode("view",{class:"button btn black",onClick:n[2]||(n[2]=e=>t.$refs.applyRef.open())},"申请")])])]),e.createElementVNode("view",{class:"second oh mtb20 mlr20 ptb25 plr30 c333 f36 br10 bfff",onClick:y},[e.createElementVNode("view",{class:"fmid"},[e.createElementVNode("view",null,"我想投流Ta的视频"),e.createVNode(a,{type:"right",color:"#666",size:"28rpx"}),e.createElementVNode("view",{class:"c666 f28"},"我的收藏")]),c[0]?(e.openBlock(),e.createElementBlock("view",{key:0,class:"collectList"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item df mtb30",key:t.id},[e.createElementVNode("view",{class:"poster pr fs0 mr20 br20"},[e.createElementVNode("image",{class:"image br20",src:t.format_imageUrl,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"window pfull"})]),e.createElementVNode("view",{class:"f1 df jcsb fdc"},[e.createElementVNode("view",{class:"f1"},[e.createElementVNode("view",{class:"f38 b"},e.toDisplayString(t.title),1),e.createElementVNode("view",{class:"mt20 c666 f28"},e.toDisplayString(t.userName),1)]),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"btn bar black w200",onClick:e=>function(e,t){Me.alert({content:`确认取消投流${e.title}`}).then((e=>{e.confirm&&c.splice(t,1)}))}(t,n)},"取消",8,["onClick"])])])])))),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"fill",style:{height:"210rpx"}}),e.createElementVNode("view",{class:"footerBar footer bfff shadow"},[e.createElementVNode("view",{class:"hint ptb10 plr30 c333"},"消耗"+e.toDisplayString(m.value.length)+"*10 榴莲果可提升 "+e.toDisplayString(m.value.length)+"*10+ 展示量",1),e.createElementVNode("view",{class:"content rows pt30 plr30"},[e.createElementVNode("view",{class:"f1 c333 f48"},"当前拥有"+e.toDisplayString(o.value.fruit)+"榴莲果",1)])])]),e.createVNode(s,{ref:"applyRef",type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"applyAlt popMid plr60 c333 f36 bfff"},[e.createElementVNode("view",{class:"title mt50 mb30 tac"},[e.createElementVNode("view",null,"完播播放量"),e.createElementVNode("view",{class:""},"消耗10颗榴莲果")]),e.createElementVNode("view",{class:"form f28"},[e.createElementVNode("view",{class:"row rows mtb20"},[e.createElementVNode("view",{class:"key"},"视频作者:"),e.createElementVNode("view",{class:"value inputBox f1 plr20"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[3]||(n[3]=e=>r.author=e),type:"text",placeholder:"请输入视频作者"},null,512),[[e.vModelText,r.author]])])]),e.createElementVNode("view",{class:"row rows mtb20"},[e.createElementVNode("view",{class:"key"},"手机号:"),e.createElementVNode("view",{class:"value inputBox f1 plr20"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[4]||(n[4]=e=>r.mobile=e),type:"text",placeholder:"请输入手机号"},null,512),[[e.vModelText,r.mobile]])])]),e.createElementVNode("view",{class:"row rows mtb20"},[e.createElementVNode("view",{class:"key"},"邮箱号:"),e.createElementVNode("view",{class:"value inputBox f1 plr20"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[5]||(n[5]=e=>r.mail=e),type:"text",placeholder:"请输入邮箱号"},null,512),[[e.vModelText,r.mail]])])]),e.createElementVNode("view",{class:"row rows mtb20"},[e.createElementVNode("view",{class:"key"},"地址:"),e.createElementVNode("view",{class:"value inputBox f1 plr20"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[6]||(n[6]=e=>r.address=e),type:"text",placeholder:"请输入地址"},null,512),[[e.vModelText,r.address]])])])]),e.createElementVNode("view",{class:"notice mt30 f20"},"不论是否申请成功,榴莲果直接销毁"),e.createElementVNode("view",{class:"btn lg black mt10 mb40",onClick:_},"提交申请")])])),_:1},512),e.createVNode(s,{ref:"select",type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"selectAlt popBot df fdc bfff"},[e.createElementVNode("view",{class:"header rows ptb20 plr20"},[e.createElementVNode("view",{class:"title plr30 c333 f34"},[e.createElementVNode("text",null,"作品"),e.createElementVNode("text",{class:"ml10"},e.toDisplayString(i.total),1)]),e.createElementVNode("view",{class:"fmid c999 f28",onClick:p},[e.createVNode(a,{type:"refreshempty",color:""}),e.createElementVNode("text",null,"刷新")])]),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll",onScrolltolower:h},[e.createVNode(rl,{list:i.data,ids:u,"onUpdate:ids":n[7]||(n[7]=e=>u=e),mode:"checkbox"},null,8,["list","ids"])],32)])])),_:1},512)],64)}}},[["__scopeId","data-v-32becaa8"]]),Rl=w({__name:"pushVideoCollects",setup(t){const{proxy:n}=e.getCurrentInstance(),a=e.ref({}),o=e.reactive([]),i=e.reactive({data:[],pageSize:10,pageNum:1,total:0});function s(e){a.value=e,r()}function r(){i.pageNum=1,i.total=0,l()}function c(){i.data.length>=i.total||(i.pageNum++,l())}function l(){Te.video.getCollectVideoList({query:{collectId:a.value.id}}).then((e=>{if(200==e.code)return 1==i.pageNum&&(i.data.length=[]),i.data.push(...e.rows.map((e=>(e.format_videoUrl=Me.format_url(e.videoUrl,"video"),e.format_imageUrl=Me.format_url(e.imageUrl,"img"),e)))),i.total=e.total,void n.$refs.select.open();Me.alert({content:e.msg,showCancel:!1})}))}function u(e){uni.$emit("selectPushCollectVideo",e)}return E((e=>{e.ids&&o.push(...e.ids.split(","))})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D),l=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",null,[e.createVNode(sl,{pageSize:20,ref:"collectListRef",onHandleItem:s},null,512)]),e.createVNode(l,{ref:"select",type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"selectAlt popBot df fdc bfff"},[e.createElementVNode("view",{class:"header rows ptb20 plr20"},[e.createElementVNode("view",{class:"title plr30 c333 f34"},[e.createElementVNode("text",null,"作品"),e.createElementVNode("text",{class:"ml10"},e.toDisplayString(i.total),1)]),e.createElementVNode("view",{class:"fmid c999 f28",onClick:r},[e.createVNode(a,{type:"refreshempty",color:""}),e.createElementVNode("text",null,"刷新")])]),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll",onScrolltolower:c},[e.createVNode(rl,{list:i.data,ids:o,"onUpdate:ids":n[0]||(n[0]=e=>o=e),mode:"checkbox",onItem:u},null,8,["list","ids"])],32)])])),_:1},512)])}}},[["__scopeId","data-v-38f41256"]]),Ol={__name:"register",setup(t){const n=e.ref(!1),a=e.reactive({phoneNumber:"",password:"",invitationCode:"",verifyCode:""}),o=e.ref(!1);function i(){const e={...a};if(e.phoneNumber)if(e.verifyCode)if(e.password)if(e.invitationCode)if(o.value){if(e.password=Tn.MD5(e.password).toString(),!e.userImei){const t=uni.getSystemInfoSync();e.userImei=t.deviceId}Te.login.userRegister({data:e}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):Me.finalLogin(e)}))}else Me.alert("请阅读并勾选服务协议》和《隐私政策》");else Me.alert("请输入推荐码");else Me.alert("请输入密码");else Me.alert("请输入验证码");else Me.alert("请输入手机号")}return(t,s)=>{const r=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"logo mauto"},[e.createElementVNode("image",{class:"logo br10",src:De,mode:"aspectFit"})]),e.createElementVNode("view",{class:"form mt60 mlr60 mb30"},[e.createElementVNode("view",{class:"title mtb30"},"新用户注册"),e.createElementVNode("view",{class:"inputBox mtb30 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>a.phoneNumber=e),placeholder:"请输入手机号"},null,512),[[e.vModelText,a.phoneNumber]])]),e.createElementVNode("view",{class:"rows mtb30"},[e.createElementVNode("view",{class:"inputBox f1 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[1]||(s[1]=e=>a.verifyCode=e),placeholder:"请输入验证码",class:"f1"},null,512),[[e.vModelText,a.verifyCode]])]),e.createElementVNode("view",{class:"getCode btn sm ml20 plr20"},[e.createVNode(be,{phone:a.phoneNumber},null,8,["phone"])])]),e.createElementVNode("view",{class:"inputBox rows mtb20 ptb10 plr30"},[n.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":s[2]||(s[2]=e=>a.password=e),placeholder:"请输入密码"},null,512)),[[e.vModelText,a.password]]):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,password:!0,"onUpdate:modelValue":s[3]||(s[3]=e=>a.password=e),placeholder:"请输入密码"},null,512)),[[e.vModelText,a.password]]),e.createVNode(r,{type:n.value?"eye":"eye-slash",color:"#999",size:"40rpx",onClick:s[4]||(s[4]=e=>n.value=!n.value)},null,8,["type"])]),e.createElementVNode("view",{class:"rows mtb30"},[e.createElementVNode("view",{class:"inputBox f1 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[5]||(s[5]=e=>a.invitationCode=e),placeholder:"请输入推荐码"},null,512),[[e.vModelText,a.invitationCode]])]),e.createElementVNode("view",{class:"f1"})]),e.createElementVNode("view",{class:"rows c333 f24"},[e.createElementVNode("navigator",{url:"/pages/login/loginPhone","open-type":"redirect"},"已有账号,去登录"),e.createElementVNode("navigator",{url:"/pages/login/forget","open-type":"redirect"},"忘记密码")]),e.createElementVNode("view",{class:"btn lg bar black mtb30",onClick:i},"登录")])]),e.createElementVNode("view",{class:"footer"},[e.createVNode(e.unref(Ne),{class:"mb60",value:o.value,"onUpdate:value":s[6]||(s[6]=e=>o.value=e)},null,8,["value"])])])}}},Vl={__name:"forget",setup(t){const n=e.reactive({userImei:"",userPhone:"",userPassword:""}),a=e.ref(""),o=e.ref("");function i(){if(n.userPhone)if(o.value)if(n.userPassword)if(n.userPassword===a.value){if(!n.userImei){const e=uni.getSystemInfoSync();n.userImei=e.deviceId}Te.login.resetPassword({data:n,path:[o.value]}).then((e=>{if(200==e.code)return Me.alert({content:e.msg,showCancel:!1}),void setTimeout((()=>{uni.redirectTo({url:"/pages/login/loginPhone"})}),500);Me.alert({content:e.msg,showCancel:!1})}))}else Me.alert("两次输入密码不一致");else Me.alert("请输入密码");else Me.alert("请输入验证码");else Me.alert("请输入手机号")}return e.ref(!1),(t,s)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"logo mauto"},[e.createElementVNode("image",{class:"logo br10",src:De,mode:"aspectFit"})]),e.createElementVNode("view",{class:"form mt60 mlr60 mb30"},[e.createElementVNode("view",{class:"title mtb30"},"忘记密码"),e.createElementVNode("view",{class:"inputBox mtb30 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>n.userPhone=e),placeholder:"请输入手机号"},null,512),[[e.vModelText,n.userPhone]])]),e.createElementVNode("view",{class:"inputBox rows mtb30 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[1]||(s[1]=e=>o.value=e),placeholder:"请输入验证码",class:"f1"},null,512),[[e.vModelText,o.value]]),e.createElementVNode("view",{class:"getCode btn sm plr20"},[e.createVNode(be,{event:"reset_password",phone:n.userPhone},null,8,["phone"])])]),e.createElementVNode("view",{class:"inputBox mtb30 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[2]||(s[2]=e=>n.userPassword=e),placeholder:"请输入密码"},null,512),[[e.vModelText,n.userPassword]])]),e.createElementVNode("view",{class:"inputBox mtb30 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[3]||(s[3]=e=>a.value=e),placeholder:"请输入确认密码"},null,512),[[e.vModelText,a.value]])]),e.createElementVNode("view",{class:"rows c333 f24"},[e.createElementVNode("navigator",{url:"/pages/login/loginPhone","open-type":"redirect"},"已有账号,去登录"),e.createElementVNode("navigator",{url:"/pages/login/retrieve","open-type":"redirect"},"通过实名找回账号")]),e.createElementVNode("view",{class:"btn lg bar black mtb30",onClick:i},"确认")])]),e.createElementVNode("view",{class:"footer"})]))}},Bl={__name:"retrieve",setup(t){const n=e.reactive({userImei:"",userPhone:"",userPassword:"",userSuperRecommend:""}),a=e.ref(""),o=e.ref("");function i(){uni.getSystemInfo({success:e=>{n.userImei=e.deviceId}}),Te.login.userRegister({data:n,path:[o.value]}).then((e=>{200!=e.code&&util.alert({content:e.msg,showCancel:!1})}))}return(t,s)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"logo mauto"},[e.createElementVNode("image",{class:"logo br10",src:De,mode:"aspectFit"})]),e.createElementVNode("view",{class:"form mt60 mlr60 mb30"},[e.createElementVNode("view",{class:"title mtb30"},"实名找回账户"),e.createElementVNode("view",{class:"inputBox mtb20 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>n.userPhone=e),placeholder:"请输入真实姓名"},null,512),[[e.vModelText,n.userPhone]])]),e.createElementVNode("view",{class:"inputBox mtb20 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[1]||(s[1]=e=>o.value=e),placeholder:"请输入身份证号码",class:"f1"},null,512),[[e.vModelText,o.value]])]),e.createElementVNode("view",{class:"inputBox mtb20 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[2]||(s[2]=e=>n.userPassword=e),placeholder:"请输入密码"},null,512),[[e.vModelText,n.userPassword]])]),e.createElementVNode("view",{class:"inputBox mtb20 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[3]||(s[3]=e=>a.value=e),placeholder:"请输入确认密码"},null,512),[[e.vModelText,a.value]])]),e.createElementVNode("view",{class:"rows c333 f24"},[e.createElementVNode("navigator",{url:"/pages/login/loginPhone","open-type":"redirect"},"已有账号,去登录"),e.createElementVNode("navigator",{url:"/pages/login/forget","open-type":"redirect"},"通过手机号找回账号")]),e.createElementVNode("view",{class:"btn lg bar black mtb30",onClick:i},"人脸认证")])]),e.createElementVNode("view",{class:"footer"},[e.createVNode(e.unref(Ne),{class:"mb60"})])]))}},xl={__name:"settle",setup(t){const n=e.reactive({shopHeader:"",shopName:"",contact:"",productLocation:"",productCategory:"",customer:"",idcard:"",idcard2:"",businessLicense:[],status:3}),a=e.ref("notice"),o=e.ref("<p>会员可选择从九亿平台入驻申请成为商家</p><br><p>1. 押金,在成为商家前需要先缴纳押金才可以申请成为商家,如果不想成为商家,可以选择退回押金取消商家分身,如果作为商家并且有进行中的订单,则需要等待订单完成才可以进行退回押金。</p><br><p>2. 申请,填写商家身份信息,商家头像,名称,联系方式,发货地点,商品分类,负责人身份信息作为材料申请,需经过九亿平台审核,才可以选择成为商家。</p><br><p>3. 审核,为保护平台公平性竞争,创造美好合作共赢的平台,九亿有权对您提交的店铺信息,发布的商品信息做审核,驳回,下架等行为,并且会及时通知到会员。</p><p>会员通过审核成为商家后,仍可以对自己的店铺信息做修改,并且平台会重新审核您的店铺信息,不得允许虚假等不良行为出现。</p><br><p>4. 商品,成为商家后,会员可以选在在平台发布自己的商品,可以发布视频对自己的商品做链接并进行投流推广,别人浏览到您的视频,可以选择点赞,评论等行为,增加您的视频热度,也可以通过收藏您的视频,对您的视频进行投流推广,让您的商品和视频可以受到更多人的关注,请会员尽情发挥想法,让自己的视频内容更受欢迎</p><br><p>5. 钱包,商家的商品产生订单后,其他会员付款会产生待入账的资金和榴莲果到您的钱包,当订单取消或平台申诉退款等行为,您的待入账的资产会原路退回到该订单用户中,当您的订单结束,已完成且无售后问题,您订单对应的待入账的信息将会进入到进的钱包中</p><br><p>6. 客服,您可以选择联系九亿平台咨询您想了解的任何问题,也可以通过消息联系用户通过店铺发起的订单咨询,以便于您更好的了解平台以及和其他会员的联系。</p><br><p>7. 运营,为保证平台公平、公正、公开,平台会不定期的复查,审核您的商户信息,请会员完善正确的信息,不得出现虚假,欺骗,等不良行为对平台或其他会员造成损失,否则平台有权对您的行为做出对应的行为。</p><p>平台会不定期更新商户的规则,请会员及时阅读。</p><br><p>平台祝每一位会员生活美满~</p>");function i(e,t){Me.upload_image({value:n[e],type:t||1,success:a=>{2!=t&&(n[e]=a.value)}})}function s(){const e={...n};e.shopHeader?e.shopName?e.contact?e.productLocation?e.productCategory?e.customer?e.businessLicense[0]?e.idcard?e.idcard2?(e.shopHeader=Me.replace_url(e.shopHeader),e.businessLicense=e.businessLicense.map((e=>Me.replace_url(e))).join(","),e.idcard=Me.replace_url(e.idcard),e.idcard2=Me.replace_url(e.idcard2),kl.shopApply({data:{shopHeader:e.shopHeader,shopName:e.shopName,contact:e.contact,productLocation:e.productLocation,productCategory:e.productCategory,customer:e.customer,idcard:e.idcard,idcard2:e.idcard2,businessLicense:e.businessLicense,status:3}}).then((e=>{200===e.code?Me.alert({content:"资料已申请,请等待后台审核",showCancel:!1}).then((e=>{uni.navigateBack()})):Me.alert({content:e.msg,showCancel:!1})}))):Me.alert("身份证反面不能为空"):Me.alert("身份证正面不能为空"):Me.alert("营业执照不能为空"):Me.alert("客服电话不能为空"):Me.alert("产品类别不能为空"):Me.alert("产品所在地不能为空"):Me.alert("联系方式不能为空"):Me.alert("商家名称不能为空"):Me.alert("商家头像不能为空")}return(t,r)=>{const c=f(e.resolveDynamicComponent("uni-icons"),D);return"notice"==a.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"app"},[e.createElementVNode("view",{class:"notice oh mtb30 mlr30 plr30 ptb20 bfff br20"},[e.createElementVNode("view",{class:"title tac f34 c333 b"},"商家入驻须知"),e.createElementVNode("view",{class:"content mtb50"},[e.createElementVNode("rich-text",{nodes:o.value},null,8,["nodes"])])]),e.createElementVNode("view",{class:"tac c666 f28"},"继续即代表同意《商家入驻须知》"),e.createElementVNode("view",{class:"fill",style:{height:"160rpx"}}),e.createElementVNode("view",{class:"footer plr30 bfff shadow"},[(e.openBlock(),e.createElementBlock("view",{key:1,class:"rows"},[e.createElementVNode("view",{class:"btn cancel plr30"},"退回押金"),e.createElementVNode("view",{class:"btn colourful f1",onClick:r[0]||(r[0]=e=>a.value="form")},"申请入驻")]))])])):"wait"==a.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"app"},[e.createElementVNode("view",{class:"result ver"},[e.createVNode(c,{type:"checkbox-filled",color:"#20D200",size:"160rpx"}),e.createElementVNode("view",{class:"title mtb30 f34"},"申请中"),e.createElementVNode("view",{class:"value f30"},[e.createElementVNode("text",{class:"c333"},"提交成功,请等待后台审核")])]),e.createElementVNode("view",{class:"fill",style:{height:"160rpx"}}),e.createElementVNode("view",{class:"footer rows plr30 bfff shadow"},[e.createElementVNode("view",{class:"btn cancel f1"},"取消申请并退回押金")])])):"fail"==a.value?(e.openBlock(),e.createElementBlock("view",{key:2,class:"app"},[e.createElementVNode("view",{class:"result ver"},[e.createVNode(c,{type:"clear",color:"#ff0000",size:"160rpx"}),e.createElementVNode("view",{class:"title mtb30 f34"},"审核驳回"),e.createElementVNode("view",{class:"value f30"},[e.createElementVNode("text",{class:"c666"},"驳回原因:"),e.createElementVNode("text",{class:"c333"},"身份证照片不清晰")]),e.createElementVNode("view",{class:"reject mtb30 c666 f28"},[e.createElementVNode("view",null,"驳回结果异议? 可在个人中心-设置里面联系我们")])]),e.createElementVNode("view",{class:"fill",style:{height:"160rpx"}}),e.createElementVNode("view",{class:"footer rows plr30 bfff shadow"},[e.createElementVNode("view",{class:"btn cancel plr30"},"退回押金"),e.createElementVNode("view",{class:"btn colourful f1",onClick:r[1]||(r[1]=e=>a.value="form")},"修改信息")])])):"success"==a.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"app"},[e.createElementVNode("view",{class:"result ver"},[e.createVNode(c,{type:"checkbox-filled",color:"#20D200",size:"160rpx"}),e.createElementVNode("view",{class:"title mtb30 f34"},"恭喜您,您已成为商家")])])):"form"==a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("view",{class:"appbw plr30"},[e.createElementVNode("view",{class:"avatarBox ver mt50"},[e.createElementVNode("view",{class:"avatar oh pr wh220 br20",onClick:r[2]||(r[2]=e=>i("shopHeader"))},[n.shopHeader?(e.openBlock(),e.createElementBlock("image",{key:0,class:"img br20",src:n.shopHeader,mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"pfull fmid"},[e.createVNode(c,{type:"plusempty",color:"#999",size:"80rpx"})]))]),e.createElementVNode("view",{class:"name mt20 c666 f24"},"店铺头像")]),e.createElementVNode("view",{class:"form mt60 c333 f32"},[e.createElementVNode("view",{class:"title f36"},"我的资料"),e.createElementVNode("view",{class:"item rows ptb20"},[e.createElementVNode("view",{class:"key c666"},"店铺名称"),e.createElementVNode("view",{class:"value f1 ml20 tar"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[3]||(r[3]=e=>n.shopName=e),type:"text",placeholder:"请输入店铺名称"},null,512),[[e.vModelText,n.shopName]])])]),e.createElementVNode("view",{class:"item rows ptb20"},[e.createElementVNode("view",{class:"key c666"},"联系方式"),e.createElementVNode("view",{class:"value f1 ml20 tar"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[4]||(r[4]=e=>n.contact=e),type:"text",placeholder:"请输入联系方式"},null,512),[[e.vModelText,n.contact]])])]),e.createElementVNode("view",{class:"item rows ptb20"},[e.createElementVNode("view",{class:"key c666"},"产品所在地"),e.createElementVNode("view",{class:"value f1 ml20 tar"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[5]||(r[5]=e=>n.productLocation=e),type:"text",placeholder:"请选择产品所在地"},null,512),[[e.vModelText,n.productLocation]])])]),e.createElementVNode("view",{class:"item rows ptb20"},[e.createElementVNode("view",{class:"key c666"},"产品类别"),e.createElementVNode("view",{class:"value f1 ml20 tar"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[6]||(r[6]=e=>n.productCategory=e),type:"text",placeholder:"请选择产品类别"},null,512),[[e.vModelText,n.productCategory]])])]),e.createElementVNode("view",{class:"item rows ptb20"},[e.createElementVNode("view",{class:"key c666"},"客服联系电话"),e.createElementVNode("view",{class:"value f1 ml20 tar"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[7]||(r[7]=e=>n.customer=e),type:"text",placeholder:"请输入客服联系电话"},null,512),[[e.vModelText,n.customer]])])]),e.createElementVNode("view",{class:"item ptb20"},[e.createElementVNode("view",{class:"key c666"},"营业执照"),e.createElementVNode("view",{class:"value imgList f1 mt20 tar"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.businessLicense,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"imgs wh200",key:a},[e.createElementVNode("image",{class:"img br10",src:t,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"close",onClick:e=>function(e,t){Me.alert({content:"确认删除?"}).then((a=>{a.confirm&&n[t].splice(e,1)}))}(a,"businessLicense")},[e.createVNode(c,{type:"clear",size:"50rpx",color:"#f00"})],8,["onClick"])])))),128)),e.createElementVNode("view",{class:"upload imgs fmid wh200 br10",onClick:r[8]||(r[8]=e=>i("businessLicense",2))},[e.createVNode(c,{type:"plusempty",color:"#E8E8E8",size:"80rpx"})])])]),e.createElementVNode("view",{class:"item ptb20"},[e.createElementVNode("view",{class:"key c666"},"身份证正面"),e.createElementVNode("view",{class:"value imgList f1 mt20 tar"},[n.idcard?(e.openBlock(),e.createElementBlock("view",{key:0,class:"imgs wh200",onClick:r[9]||(r[9]=e=>i("idcard",1))},[e.createElementVNode("image",{class:"img br10",src:n.idcard,mode:"aspectFill"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"upload imgs fmid wh200 br10",onClick:r[10]||(r[10]=e=>i("idcard",1))},[e.createVNode(c,{type:"plusempty",color:"#E8E8E8",size:"80rpx"})]))])]),e.createElementVNode("view",{class:"item ptb20"},[e.createElementVNode("view",{class:"key c666"},"身份证反面"),e.createElementVNode("view",{class:"value imgList f1 mt20 tar"},[n.idcard2?(e.openBlock(),e.createElementBlock("view",{key:0,class:"imgs wh200",onClick:r[11]||(r[11]=e=>i("idcard2"))},[e.createElementVNode("image",{class:"img br10",src:n.idcard2,mode:"aspectFill"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"upload imgs fmid wh200 br10",onClick:r[12]||(r[12]=e=>i("idcard2"))},[e.createVNode(c,{type:"plusempty",color:"#E8E8E8",size:"80rpx"})]))])])]),e.createElementVNode("view",{class:"fill",style:{height:"150rpx"}})]),e.createElementVNode("view",{class:"footer plr30 bfff shadow"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"btn cancel plr30"},"退回押金"),e.createElementVNode("view",{class:"btn colourful f1",onClick:s},"申请入驻")])])],64)):e.createCommentVNode("",!0)}}},Ul="/static/integral.png",Gl="/static/copy2.png",Fl={__name:"integralLog",props:{list:{type:Array}},setup:t=>(n,a)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:t.id},[e.createElementVNode("view",{class:"list df mt30"},[e.createElementVNode("view",{class:"f1"},[e.createElementVNode("view",null,["RELEASE"==t.releaseType?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(t.coreScrollInfoName)+" 释放",1)):"SPEED"==t.releaseType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},["DIRECT"==t.referencedType?(e.openBlock(),e.createElementBlock("text",{key:0},"直推")):"INDIRECT"==t.referencedType?(e.openBlock(),e.createElementBlock("text",{key:1},"间推")):e.createCommentVNode("",!0),e.createElementVNode("text",null,e.toDisplayString(t.referencedNickname),1),e.createElementVNode("text",null,"加速释放")],64)):"BURN"==t.releaseType?(e.openBlock(),e.createElementBlock("text",{key:2},"烧伤偏差值")):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"f20"},e.toDisplayString(t.createTime),1)]),e.createElementVNode("view",{class:"fs0"},e.toDisplayString(t.releaseCount),1)])])))),128))},Yl={__name:"integral",setup(t){const n=O(),a=e.ref([]),o=e.ref({seconds:0}),i=e.ref([]),s=e.ref(0);e.computed((()=>n.state.userinfo));const r=e.computed((()=>{let e=o.value.seconds;return e=Math.min(Number(e),100),e}));return E((()=>{Te.intergral.buyScrollList({}).then((e=>{if(200==e.code){const t=e.data;return s.value=t.total,void(a.value=t.dataList.map((e=>(e.formatHash=e.scrollHash.replace(/(\d{4})\d*(\d{4})/,"$1****$2"),e))))}})),Te.intergral.getDetailInfoByDate({query:{pageNum:1,pageSize:10}}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):i.value=e.rows}))})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"score rows mtb30 mlr30 ptb20 plr30 cfff f34 br20"},[e.createElementVNode("view",{class:"title"},"可释放总积分"),e.createElementVNode("view",{class:"value mt5 ptb5 plr20 tac br10"},e.toDisplayString(s.value),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:t.id,onClick:e=>function(e){uni.navigateTo({url:Me.setUrl("/pages/index/integralDetail",{id:e.coreScrollInfoId})})}(t)},[e.createElementVNode("view",{class:"board pr oh mtb30 mlr30 ptb20 plr20 cfff f30 br20"},[e.createElementVNode("view",{class:"df"},[e.createElementVNode("view",{class:"left f1 mr40"},[e.createElementVNode("view",{class:"key mt20 f32"},"卷轴可释放"),e.createElementVNode("view",{class:"value mt5 ptb5 tac bfff br20"},e.toDisplayString(t.scrollRemainPoints),1)]),e.createElementVNode("view",{class:"right f1"},[e.createElementVNode("view",{class:"f36"},e.toDisplayString(t.scrollName),1)]),e.createElementVNode("image",{class:"image pa",src:Ul,mode:"aspectFit"})]),e.createElementVNode("view",{class:"mt20 df aic f28"},[e.createElementVNode("view",null,"卷轴哈希: "+e.toDisplayString(t.formatHash),1),e.createElementVNode("view",{class:"wh30 ml15",onClick:e=>function(e){Me.copyText(e.scrollHash)}(t)},[e.createElementVNode("image",{src:Gl,mode:"aspectFit",class:"wh24"})],8,["onClick"])])])],8,["onClick"])))),128)),e.createElementVNode("view",{class:"task pr mtb30 mlr30 ptb20 plr40 f28 bFFFBF3 br20"},[e.createElementVNode("view",{class:"title c333 f36"},"任务读秒"),e.createElementVNode("view",{class:"progressBox oh bar mt60"},[e.createElementVNode("view",{class:"progress bar",style:e.normalizeStyle({width:r.value+"%"})},null,4)]),e.createElementVNode("view",{class:"label pa t0 r0 ptb5 plr20 cfff"},"优先")]),e.createElementVNode("view",{class:"log mtb30 mlr30 ptb20 plr40 c666 f28 bFFFBF3 br20"},[e.createElementVNode("view",{class:"line rows"},[e.createElementVNode("view",{class:"title c333 f36"},"当日明细"),e.createElementVNode("view",{class:"",onClick:n[0]||(n[0]=e=>{return t="/pages/index/integralLog",void uni.navigateTo({url:t});var t})},"全部")]),e.createVNode(e.unref(Fl),{list:i.value},null,8,["list"])]),e.createElementVNode("view",{class:"fill",style:{height:"30rpx"}})]))}},Hl={__name:"integralLog",setup(t){const n=e.reactive({data:[],pageNum:1,pageSize:30,total:0});function a(){Te.intergral.getDetailInfoByUserId({query:{pageNum:n.pageNum,pageSize:n.pageSize}}).then((e=>{if(200==e.code)return 1==n.pageNum&&(n.data.length=0),n.data.push(...e.rows),void(n.total=e.total);Me.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))}return E((()=>{a()})),T((()=>{n.homePageSize=1,a()})),S((()=>{!function(){if(n.total<=n.data.length)return;n.pageNum++,a()}()})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"list plr30"},[e.createVNode(e.unref(Fl),{list:n.data},null,8,["list"])])]))}},Zl={__name:"integralMall",setup(t){const n=O(),a=e.ref([]);return e.computed((()=>n.state.userinfo)),E((()=>{Te.intergral.scrollList({}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):a.value=e.data}))})),(t,n)=>{const o=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("navigator",{url:"/pages/index/integral"},[e.createElementVNode("view",{class:"board rows oh mt20 mlr30 plr30 cfff f32 br20"},[e.createElementVNode("image",{class:"image",src:Ul,mode:"aspectFit"}),e.createElementVNode("view",{class:"f1"},"我的卷轴"),e.createVNode(o,{type:"right",color:"#fff",size:"40rpx"})])]),e.createElementVNode("view",{class:"container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list mtb20 mlr30 ptb50 plr40 br20 c333 f24",key:t.id},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"c333 f36"},e.toDisplayString(t.scrollName),1),e.createElementVNode("view",{class:""},"最多持有量: "+e.toDisplayString(t.scrollLimit),1)]),e.createElementVNode("view",{class:"rows mt40"},[e.createElementVNode("view",{class:"f44"},e.toDisplayString(t.scrollSeedMoney)+"积分",1),e.createElementVNode("view",{class:"btn black f1 ml45",onClick:e=>function(e){Me.alert({content:"确认购买卷轴"}).then((t=>{Te.intergral.buyScroll({data:{scrollConfigId:e.scrollConfigInfoId,payType:1}}).then((e=>{200!==e.code?Me.alert({content:e.msg,showCancel:!1}):Me.alert("购买成功")}))}))}(t)},e.toDisplayString(t.price)+"购买",9,["onClick"])])])))),128))]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})])}}},ql={__name:"appeal",setup(t){const n=[{name:"发布不正当理由"},{name:"传播色情资源"},{name:"冒充他人"},{name:"涉嫌诈骗"},{name:"侵犯权益"},{name:"其他"}],a=e.ref(!1),o=e.ref(0);return(t,i)=>{const s=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"item oh pr mtb30 mlr30 br20 bFFFBF3"},[e.createElementVNode("view",{class:"df"},[e.createElementVNode("view",{class:"fmid ptb20"},[e.createElementVNode("view",{class:"wh110 mlr20"},[e.createElementVNode("image",{src:Ml,mode:"aspectFit"})])]),e.createElementVNode("view",{class:"f1 df fdc jcc mlr20 c333 f28"},[e.createElementVNode("view",{class:""},"交易价格13.61"),e.createElementVNode("view",{class:""},"交易数量60.00")]),e.createElementVNode("view",{class:"label style1"},"已完成")]),e.createElementVNode("view",{class:"fmid mb30"},[e.createElementVNode("view",{class:"c333 f28"},"交易哈希000000000000000000000"),e.createElementVNode("image",{class:"wh24 ml10",src:fl,mode:"aspectFit"})])]),e.createElementVNode("view",{class:"select mtb30 mlr30 br20"},[e.createElementVNode("view",{class:"ptb10 fmid c333 f28",onClick:i[0]||(i[0]=e=>a.value=!a.value)},[e.createElementVNode("view",null,"选择理由"),e.createVNode(s,{type:"right",color:"#999",size:"28rpx"})]),e.createElementVNode("view",{class:e.normalizeClass(["reasonList",{active:a.value}])},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,((t,n)=>e.createElementVNode("view",{class:"item oh df plr60",key:n,onClick:e=>function(e){a.value=!1,o.value!==e&&(o.value=e)}(n)},[e.createElementVNode("view",{class:"f1 c333 f28"},e.toDisplayString(t.name),1),e.createVNode(s,{type:"right"})],8,["onClick"]))),64))],2)]),e.withDirectives(e.createElementVNode("view",{class:"other mt30 mlr30"},[e.createElementVNode("view",{class:"title c333 f28"},"其他"),e.createElementVNode("view",{class:"textarea mt10 ptb20 plr20 br20"},[e.createElementVNode("textarea",{placeholder:"请输入其他的理由"})])],512),[[e.vShow,"其他"==n[o.value].name]]),e.createElementVNode("view",{class:"fns mtb30 mlr30"},[e.createElementVNode("view",{class:"appeal btn mauto cfff"},"撤销交易"),e.createElementVNode("view",{class:"rows mtb30"},[e.createElementVNode("view",{class:"btn disabled f1"},"联系交易人"),e.createElementVNode("view",{class:"btn focus f1 ml30"},"申请客服介入")]),e.createElementVNode("view",{class:"mt30 tac"},"售后进度查询:申请客服介入")])])}}},jl={__name:"beInvited",setup(t){const n=e.ref({header:"",userId:"",userNickname:""});function a(e){Se.nickname({query:{hide:e}}).then((e=>{Me.alert({content:e.msg,showCancel:!1}),uni.navigateBack({delta:1})}))}return E((e=>{null!==e&&(n.value=e,n.value.header=Me.format_url(n.value.header,"img"))})),(t,o)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw tac"},[e.createElementVNode("view",{class:"avatar mauto"},[e.createElementVNode("image",{class:"cir",src:n.value.header,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"name mt20 tac c000 f32"},e.toDisplayString(n.value.userNickname),1),e.createElementVNode("view",{class:"title mt90 tac c000 f36 b"},"受邀成功,选择是否隐藏个人账号昵称"),e.createElementVNode("view",{class:"btns fmid mt60 mlr30"},[e.createElementVNode("view",{class:"button btn lg cancel f1",onClick:o[0]||(o[0]=e=>a(1))},"隐藏"),e.createElementVNode("view",{class:"button btn lg colourful f1 ml40",onClick:o[1]||(o[1]=e=>a(0))},"公开")])]))}},Jl={__name:"newFriend",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo)),o=e.reactive({data:[],pageNum:1,pageSize:10,total:0});function i(){uni.$chat.getFriendApplicationList().then((e=>{if(0===e.code){g("log","at pages/news/newFriend.vue:98","rs",e);const t=e.data;o.data=t.friendApplicationList}})).finally((()=>{uni.stopPullDownRefresh()}))}return e.ref(""),E((()=>{i()})),T((()=>{i()})),(t,n)=>{const i=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"searchBox ptb20 bfff"},[e.createElementVNode("navigator",{url:"/pages/news/addFriend","hover-class":"none"},[e.createElementVNode("view",{class:"search rows mlr20 ptb10 plr30 bar"},[e.createVNode(i,{type:"search"}),e.createElementVNode("view",{class:"placeholderStyle f1 plr15"},"添加朋友"),e.createElementVNode("view",{class:"btn bar sm colourful w120"},"搜索")])])]),e.createElementVNode("view",{class:"ptb20 plr25 c666 f28"},"最近添加"),e.createElementVNode("view",{class:"listArea plr30 bfff"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item rows ptb30 c333 f32",key:n,onClick:e=>function(e){uni.navigateTo({url:Me.setUrl("/pages/index/videoHome",{userId:e.userId})})}(t)},[e.createElementVNode("view",{class:"avatar fs0"},[e.createElementVNode("image",{class:"wh100 cir",src:t.avatar,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"content f1 mlr20"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"time c999 f22"},e.toDisplayString(t.createTime),1)]),1==t.friendState?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btns rows fs0"},[e.createElementVNode("view",{class:"btn black plr20",onClick:e.withModifiers((e=>function(e){Te.video.agreeFriend({path:[a.value.userId,e.userId],query:{}}).then((e=>{200===e.code?uni.showToast({title:"同意成功",icon:"success",duration:1500}):uni.showToast({title:e.msg,icon:"error",duration:1500})})).finally((()=>{}))}(t)),["stop"])},"同意",8,["onClick"]),e.createElementVNode("view",{class:"btn cancel plr20 ml20",onClick:e.withModifiers((e=>function(e){Te.video.refuseFriend({path:[a.value.userId,e.userId]}).then((e=>{200===e.code?uni.showToast({title:"拒绝成功",icon:"success",duration:1500}):uni.showToast({title:e.msg,icon:"error",duration:1500})}))}(t)),["stop"])},"拒绝",8,["onClick"])])):2==t.friendState?(e.openBlock(),e.createElementBlock("view",{key:1,class:"result fs0 c999"},"已拒绝")):3==t.friendState?(e.openBlock(),e.createElementBlock("view",{key:2,class:"result fs0 c999"},"已同意")):e.createCommentVNode("",!0)],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})])}}},Xl={__name:"newAttention",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo)),o=e.reactive({data:[],pageNum:1,pageSize:10,total:0});return E((()=>{Te.video.getAttentionList({path:[a.value.id],query:{pageNum:o.pageNum,pageSize:o.pageSize}}).then((e=>{if(g("log","at pages/news/newAttention.vue:60",e),200==e.code)return o.pageNum&&(o.data.length=0),o.data.push(...e.rows.map((e=>e))),g("log","at pages/news/newAttention.vue:66",o.data),void(o.total=e.total);Me.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"listArea plr30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item rows ptb30 c333 f32",key:n,onClick:e=>function(e){uni.navigateTo({url:Me.setUrl("/pages/index/videoHome",{userId:e.id})})}(t)},[e.createElementVNode("view",{class:"avatar fs0"},[e.createElementVNode("image",{class:"wh100 cir",src:t.avatar,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"content f1 mlr20"},[e.createElementVNode("view",{class:"name b"},e.toDisplayString(t.userNickname),1),e.createElementVNode("view",{class:"time mt10 c999 f22"},e.toDisplayString(t.createTime)+" 关注了ta",1)]),e.createElementVNode("view",{class:"fs0"},[e.createVNode(a,{type:"right",color:"#999",size:"32rpx"})])],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})])}}},Kl={__name:"newFans",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo)),o=e.reactive({data:[],pageNum:1,pageSize:10,total:0});return E((()=>{Te.video.getFansList({path:[a.value.id],query:{pageNum:o.pageNum,pageSize:o.pageSize}}).then((e=>{if(g("log","at pages/news/newFans.vue:60",e),200==e.code)return o.pageNum&&(o.data.length=0),o.data.push(...e.rows.map((e=>e))),g("log","at pages/news/newFans.vue:66",o.data),void(o.total=e.total);Me.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"listArea plr30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item rows ptb30 c333 f32",key:n,onClick:e=>function(e){uni.navigateTo({url:Me.setUrl("/pages/index/videoHome",{userId:e.id})})}(t)},[e.createElementVNode("view",{class:"avatar fs0"},[e.createElementVNode("image",{class:"wh100 cir",src:t.avatar,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"content f1 mlr20"},[e.createElementVNode("view",{class:"name b"},e.toDisplayString(t.userNickname),1),e.createElementVNode("view",{class:"time mt10 c999 f22"},e.toDisplayString(t.createTime)+" 关注了你",1)]),e.createElementVNode("view",{class:"fs0"},[e.createVNode(a,{type:"right",color:"#999",size:"32rpx"})])],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})])}}},zl={__name:"message",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"listArea plr30"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(15,((t,n)=>e.createElementVNode("view",{class:"item rows ptb30 c333 f32",key:n,onClick:e=>function(e){uni.navigateTo({url:Me.setUrl("/pages/index/videoHome",{userId:e.userId})})}(t)},[e.createElementVNode("view",{class:"avatar fs0"},[e.createElementVNode("image",{class:"wh100 cir",src:zr,mode:"aspectFill"})]),e.createElementVNode("view",{class:"content f1 mlr20"},[e.createElementVNode("view",{class:"name"},"用户昵称"),e.createElementVNode("view",{class:"action mt5 c999 f24"},"赞了你的视频")]),e.createElementVNode("view",{class:"time fs0 c999 f22"},"2024-10-01 10:00")],8,["onClick"]))),64))]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})]))},Wl={__name:"article",setup(t){const n=e.reactive({}),a=e.ref("");return E((e=>{e.id&&(a.value=e.id),Te.getArticle({query:{id:a.value}}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):Object.assign(n,e.data)}))})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"title mt30 tac c333 f40"},e.toDisplayString(n.name),1),e.createElementVNode("view",{class:"main mt30 mlr30"},[e.createElementVNode("rich-text",{nodes:n.context},null,8,["nodes"])]),e.createElementVNode("view",{class:"fill",style:{height:"30rpx"}})])]))}},Ql={__name:"topUp",setup(t){const n=e.reactive({amount:""});function a(){g("log","at pages/index/wallet/topUp.vue:19","handleSubmit"),Me.isAuth({success:e=>{!function(){const e={...n};if(!e.amount)return void Me.alert("金额不正确");Te.mine.pay({query:e}).then((e=>{200!==e.code?Me.alert({content:e.msg,showCancel:!1}):uni.requestPayment({provider:"alipay",orderInfo:e.data,success:e=>{g("log","at pages/index/wallet/topUp.vue:47","requestPayment",e),Me.getUserinfo(),uni.navigateBack()}})}))}()}})}return(t,o)=>{const i=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"form mtb30 mlr30"},[e.createElementVNode("view",{class:"line ptb20"},[e.createElementVNode("view",{class:"key f36"},"充值金额"),e.createElementVNode("view",{class:"value mt10"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"c333 f40 b"},"¥"),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>n.amount=e),placeholder:"输入金额"},null,512),[[e.vModelText,n.amount]])])])]),e.createElementVNode("view",{class:"line ptb20"},[e.createElementVNode("view",{class:"key f36"},"充值方式"),e.createElementVNode("view",{class:"value payment mt10"},[e.createElementVNode("view",{class:"list rows"},[e.createElementVNode("image",{class:"wh60",src:"/static/shop-alipay-payment.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"f1 mlr20 c333 f30"},"支付宝"),e.createVNode(i,{type:"circle-filled",color:"#20D200",size:"40rpx"})])])])]),e.createElementVNode("view",{class:"footer plr30 shadow bfff"},[e.createElementVNode("view",{class:"btn lg colourful",onClick:a},"充值")])])}}},$l=w({__name:"addFriend",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo)),o=e.reactive({data:[],pageNum:1,pageSize:10,total:0}),i=e.ref("");function s(){i.value?Te.news.searchFriendByName({path:[i.value],query:{pageNum:o.pageNum,pageSize:o.pageSize}}).then((e=>{if(200==e.code)return o.pageNum&&(o.data.length=0),o.data.push(...e.rows.map((e=>(e.format_userPortrait=Me.format_url(e.userPortrait,"img"),e)))),void(o.total=e.total);Me.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()})):Me.alert("请输入你想搜索的内容")}function r(){o.pageNum=1,o.total=0,s()}return S((()=>{!function(){if(o.data.length>=o.total)return;o.pageNum++,s()}()})),T((()=>{r()})),(t,n)=>{const s=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"searchBox ptb20 bfff"},[e.createElementVNode("view",{class:"search rows mlr20 ptb10 plr30 bar"},[e.createVNode(s,{type:"search"}),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>i.value=e),placeholder:"用户名",class:"f1 ml10","confirm-type":"search"},null,512),[[e.vModelText,i.value]]),e.createElementVNode("view",{class:"btn bar sm colourful w120",onClick:r},"搜索")])]),e.createElementVNode("view",{class:"listArea plr30 bfff"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item rows ptb30 c333 f32",key:n,onClick:e=>function(e){uni.navigateTo({url:Me.setUrl("/pages/index/videoHome",{userId:e.userId})})}(t)},[e.createElementVNode("view",{class:"avatar fs0"},[e.createElementVNode("image",{class:"wh100 cir",src:t.format_userPortrait,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"content f1 mlr20"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(t.userNickname),1),e.createElementVNode("view",{class:"time c999 f22"},e.toDisplayString(t.createTime),1)]),(e.openBlock(),e.createElementBlock("view",{key:1,class:"btn black plr20",onClick:e.withModifiers((e=>function(e){Te.news.addFriend({path:[a.value.userId,e.userId]}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):Me.alert("已发送好友申请,请等待对方同意")}))}(t)),["stop"])},"添加好友",8,["onClick"]))],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})])}}},[["__scopeId","data-v-be84e68f"]]),eu=w({__name:"redPacket",setup(t){const n=O(),a=e.reactive({status:0}),o=e.reactive([{id:1,name:"积分红包"},{id:2,name:"余额红包"}]),i=e.ref(""),s=e.ref("恭喜发财,大吉大利"),r=e.ref(""),c=e.ref(0),l=e.computed((()=>o[c.value])),u=e.computed((()=>{let e=Number(i.value||0);return e=e.toFixed(2),e})),d=e.computed((()=>n.state.userinfo));function m(){uni.$chat.isReady()||!d.value.userId?uni.$chat.getGroupProfile({groupID:a.roomId}).then((e=>{if(0==e.code){const t=e.data.group;r.value=t.memberCount}})):setTimeout((function(){m()}),200)}function p(e){const t=e.detail.value;t!==c.value&&(c.value=t)}function h(){a.num>r.value&&(a.num=r.value)}function v(){const e={...a};2!=e.sendType||e.num?i.value?(e[{1:"score",2:"balance"}[l.value.id]]=i.value,e.name||(e.name=s.value),e.type=l.value.id,e.userId=d.value.userId,g("log","at pages/news/redPacket.vue:130","data",e),Te.news.sendRedBag({data:e}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):uni.navigateBack()}))):Me.alert("总金额不能为空"):Me.alert("数量不能为空")}return E((e=>{const t=e.sendType;t&&(a.sendType=t,a[{1:"sendId",2:"roomId"}[t]]=e.msgId,2==t&&m())})),(t,n)=>{const c=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("picker",{mode:"selector",range:o,"range-key":"name",onChange:p},[e.createElementVNode("view",{class:"form-group rows mtb30 ptb25 bfff"},[e.createElementVNode("view",null,"红包类型:"),e.createElementVNode("view",{class:"f1 tar mr10"},e.toDisplayString(l.value.name),1),e.createVNode(c,{type:"right"})])],40,["range"]),e.createElementVNode("view",{class:"form-group rows mtb30 bfff"},[e.createElementVNode("text",null,"总金额:"),e.createElementVNode("view",{class:"easyinput f1 tar"},[e.withDirectives(e.createElementVNode("input",{class:"f34",type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>i.value=e),placeholder:"0.00"},null,512),[[e.vModelText,i.value]])])]),2==a.sendType?(e.openBlock(),e.createElementBlock("view",{key:0,class:"mtb30"},[e.createElementVNode("view",{class:"form-group rows bfff"},[e.createElementVNode("text",null,"数量:"),e.createElementVNode("view",{class:"easyinput f1 tar"},[e.withDirectives(e.createElementVNode("input",{class:"f34",type:"text","onUpdate:modelValue":n[1]||(n[1]=e=>a.num=e),placeholder:"填写个数",onBlur:h},null,544),[[e.vModelText,a.num]])]),e.createElementVNode("view",{class:"ml10"},"个")]),r.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"hint mt10 ml20 f24 c999"},"本群"+e.toDisplayString(r.value)+"共人",1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"form-group rows mtb30 bfff"},[e.createElementVNode("text",null,"祝福语:"),e.createElementVNode("view",{class:"f1 tar"},[e.withDirectives(e.createElementVNode("input",{class:"f34",type:"text","onUpdate:modelValue":n[2]||(n[2]=e=>a.name=e),placeholder:s.value},null,8,["placeholder"]),[[e.vModelText,a.name]])])]),e.createElementVNode("view",{class:"total df jcc mt30 ptb50"},[e.createElementVNode("text",null,"¥"),e.createElementVNode("text",null,e.toDisplayString(u.value),1)]),e.createElementVNode("view",{class:"btn-primary btn plus mauto",onClick:v},"发送红包")])])}}},[["__scopeId","data-v-7d18dcc6"]]),tu={__name:"integralDetail",setup(t){const n=e.ref({}),a=e.reactive({data:[],pageNum:1,pageSize:30,total:0}),o=e.ref("");function i(){Me.copyText(n.value.scrollHash)}return E((e=>{e.id&&(o.value=e.id),Te.intergral.scrollinfo({path:[o.value]}).then((e=>{if(200==e.code){const t=e.data;return t.formatHash=t.scrollHash.replace(/(\d{4})\d*(\d{4})/,"$1****$2"),void(n.value=t)}})),Te.intergral.getDetailInfoByScrollId({path:[o.value],query:{pageNum:a.pageNum,pageSize:a.pageSize}}).then((e=>{if(200==e.code)return 1==a.pageNum&&(a.data.length=0),a.data.push(...e.rows),void(a.total=e.total);Me.alert({content:e.msg,showCancel:!1})}))})),T((()=>{a.homePageSize=1,getList()})),S((()=>{!function(){if(a.total<=a.data.length)return;a.pageNum++,getList()}()})),(t,o)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"board pr oh mtb30 mlr30 ptb20 plr20 cfff f30 br20"},[e.createElementVNode("view",{class:"df"},[e.createElementVNode("view",{class:"left f1 mr40"},[e.createElementVNode("view",{class:"key mt20 f32"},"卷轴可释放"),e.createElementVNode("view",{class:"value mt5 ptb5 tac bfff br20"},e.toDisplayString(n.value.scrollRemainPoints),1)]),e.createElementVNode("view",{class:"right f1"},[e.createElementVNode("view",{class:"f36"},e.toDisplayString(n.value.scrollName),1)]),e.createElementVNode("image",{class:"image pa",src:Ul,mode:"aspectFit"})]),e.createElementVNode("view",{class:"mt20 df aic f28"},[e.createElementVNode("view",null,"卷轴哈希: "+e.toDisplayString(n.value.formatHash),1),e.createElementVNode("view",{class:"wh30 ml15",onClick:i},[e.createElementVNode("image",{src:Gl,mode:"aspectFit",class:"wh24"})])])]),e.createElementVNode("view",{class:"log mtb30 mlr30 ptb20 plr40 c666 f28 bFFFBF3 br20"},[e.createElementVNode("view",{class:"line rows"},[e.createElementVNode("view",{class:"title c333 f36"},"当前卷轴明细")]),e.createVNode(e.unref(Fl),{list:a.data},null,8,["list"])]),e.createElementVNode("view",{class:"fill",style:{height:"30rpx"}})]))}},nu={__name:"videoStatistics",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"title"},"公开赞总数"),e.createElementVNode("view",{class:""})])]))},au=w({__name:"myComment",setup(t){const n=O(),a=e.reactive({data:[],pageSize:20,pageNum:1,total:0}),o=e.computed((()=>n.state.userinfo));return E((()=>{Te.mine.myComment({query:{userId:o.value.id,pageNum:a.pageNum,pageSize:a.pageSize}}).then((e=>{if(200==e.code)return a.pageNum&&(a.data.length=0),a.data.push(...e.rows.map((e=>e))),a.total=e.total,void g("log","at pages/mine/myComment.vue:73","list",a.data);Me.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"listBox plr30"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,((t,n)=>e.createElementVNode("view",{class:"list ptb30 plr10",key:n},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"message"},[e.createElementVNode("view",{class:"title f32 c333"},"评论了 视频"),e.createElementVNode("view",{class:"content t2hd mtb15 c333 f32"},"你的视频我很喜欢,关注你了,赶快出续集"),e.createElementVNode("view",{class:"time mt15 f28 c999"},"2024.12.08 18:00")]),e.createElementVNode("view",{class:"image ml20"},[e.createElementVNode("image",{class:"wh120 br10",src:M,mode:"aspectFill"})])]),e.createElementVNode("view",{class:""})]))),64))])]))}},[["__scopeId","data-v-72f979f5"]]),ou={__name:"secondpwd",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"}))},iu=w({__name:"bill",setup:t=>(E((()=>{})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"listBox mtb30 mlr30"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("view",{class:"list oh mtb30 plr30 bfff br20",key:n},[e.createElementVNode("view",{class:"line tac"},[e.createElementVNode("view",{class:"title mtb30"},"使用积分支付"),e.createElementVNode("view",{class:"price mtb30 c111"},[e.createElementVNode("text",{class:"unit"},"¥"),e.createElementVNode("text",{class:"numer b"},"1000")]),e.createElementVNode("view",{class:"time mtb30 c999 f28"},"2024.12.07 17:00")]),e.createElementVNode("view",{class:"line rows"},[e.createElementVNode("view",{class:"key"},"查看详情"),e.createVNode(a,{type:"right"})])]))),64))]),e.createElementVNode("view",{class:"fill"})])})},[["__scopeId","data-v-baf8989c"]]),su={__name:"billDetail",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:""})])]))};const ru=w({components:{Loading1:w({name:"loading1",data:()=>({})},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"container loading1"},[e.createElementVNode("view",{class:"shape shape1"}),e.createElementVNode("view",{class:"shape shape2"}),e.createElementVNode("view",{class:"shape shape3"}),e.createElementVNode("view",{class:"shape shape4"})])}],["__scopeId","data-v-a16ea79e"]]),Loading2:w({name:"loading2",data:()=>({})},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"container loading2"},[e.createElementVNode("view",{class:"shape shape1"}),e.createElementVNode("view",{class:"shape shape2"}),e.createElementVNode("view",{class:"shape shape3"}),e.createElementVNode("view",{class:"shape shape4"})])}],["__scopeId","data-v-51d40d8b"]]),Loading3:w({name:"loading3",data:()=>({})},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"container loading3"},[e.createElementVNode("view",{class:"shape shape1"}),e.createElementVNode("view",{class:"shape shape2"}),e.createElementVNode("view",{class:"shape shape3"}),e.createElementVNode("view",{class:"shape shape4"})])}],["__scopeId","data-v-47408335"]]),Loading4:w({name:"loading5",data:()=>({})},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"container loading5"},[e.createElementVNode("view",{class:"shape shape1"}),e.createElementVNode("view",{class:"shape shape2"}),e.createElementVNode("view",{class:"shape shape3"}),e.createElementVNode("view",{class:"shape shape4"})])}],["__scopeId","data-v-49a6258a"]]),Loading5:w({name:"loading6",data:()=>({})},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"container loading6"},[e.createElementVNode("view",{class:"shape shape1"}),e.createElementVNode("view",{class:"shape shape2"}),e.createElementVNode("view",{class:"shape shape3"}),e.createElementVNode("view",{class:"shape shape4"})])}],["__scopeId","data-v-08a06125"]])},name:"qiun-loading",props:{loadingType:{type:Number,default:2}},data:()=>({})},[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("Loading1"),c=e.resolveComponent("Loading2"),l=e.resolveComponent("Loading3"),u=e.resolveComponent("Loading4"),d=e.resolveComponent("Loading5");return e.openBlock(),e.createElementBlock("view",null,[1==a.loadingType?(e.openBlock(),e.createBlock(r,{key:0})):e.createCommentVNode("",!0),2==a.loadingType?(e.openBlock(),e.createBlock(c,{key:1})):e.createCommentVNode("",!0),3==a.loadingType?(e.openBlock(),e.createBlock(l,{key:2})):e.createCommentVNode("",!0),4==a.loadingType?(e.openBlock(),e.createBlock(u,{key:3})):e.createCommentVNode("",!0),5==a.loadingType?(e.openBlock(),e.createBlock(d,{key:4})):e.createCommentVNode("",!0)])}]]);const cu=w({name:"qiun-error",props:{errorMessage:{type:String,default:null}},data:()=>({})},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"chartsview"},[e.createElementVNode("view",{class:"charts-error"}),e.createElementVNode("view",{class:"charts-font"},e.toDisplayString(null==a.errorMessage?"请点击重试":a.errorMessage),1)])}],["__scopeId","data-v-af32de60"]]),lu=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],uu={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","mount","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["饼状图","圆环图","玫瑰图","词云图","漏斗图","地图","圆弧进度条","折线图","柱状图","山峰图","条状图","区域图","雷达图","仪表盘","K线图","混合图","时间轴折线","时间轴区域","散点图","气泡图","自定义类型"],categories:["line","column","mount","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(e,t,n){return e+"元"},yAxisDemo2:function(e,t,n){return e.toFixed(2)},xAxisDemo1:function(e,t,n){return e+"年"},xAxisDemo2:function(e,t,n){return((e,t)=>{var n=new Date;n.setTime(1e3*e);var a=n.getFullYear(),o=n.getMonth()+1;o=o<10?"0"+o:o;var i=n.getDate();i=i<10?"0"+i:i;var s=n.getHours();s=s<10?"0"+s:s;var r=n.getMinutes(),c=n.getSeconds();return r=r<10?"0"+r:r,c=c<10?"0"+c:c,"full"==t?a+"-"+o+"-"+i+" "+s+":"+r+":"+c:"y-m-d"==t?a+"-"+o+"-"+i:"h:m"==t?s+":"+r:"h:m:s"==t?s+":"+r+":"+c:[a,o,i,s,r,c]})(e,"h:m")},seriesDemo1:function(e,t,n,a){return e+"元"},tooltipDemo1:function(e,t,n,a){return 0==n?"随便用"+e.data+"年":"其他我没改"+e.data+"天"},pieDemo:function(e,t,n,a){if(void 0!==t)return n[t].name+""+n[t].data+"元"}},demotype:{type:"line",color:lu,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:lu,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:lu,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"收益率",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:lu,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:lu,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:lu,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:lu,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:lu,title:{name:"百分比",fontSize:25,color:"#00FF00"},subtitle:{name:"默认标题",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:lu,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2,activeType:"hollow"}}},tline:{type:"line",color:lu,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2,activeType:"hollow"}}},tarea:{type:"area",color:lu,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0,activeType:"hollow"}}},column:{type:"column",color:lu,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,activeBgColor:"#000000",activeBgOpacity:.08}}},mount:{type:"mount",color:lu,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{mount:{type:"mount",widthRatio:1.5}}},bar:{type:"bar",color:lu,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:lu,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1,activeType:"hollow"}}},radar:{type:"radar",color:lu,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200,labelShow:!0}}},gauge:{type:"gauge",color:lu,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"实时速度",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:lu,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:lu,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:lu,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:lu,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},du=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],mu={type:["pie","ring","rose","funnel","line","column","area","radar","gauge","candle","demotype"],categories:["line","column","area","radar","gauge","candle","demotype"],instance:{},option:{},formatter:{tooltipDemo1:function(e){let t="";for(let n in e){0==n&&(t+=e[n].axisValueLabel+"年销售额");let a="--";null!==e[n].data&&(a=e[n].data),t+="<br/>"+e[n].marker+e[n].seriesName+""+a+" 万元"}return t},legendFormat:function(e){return"自定义图例+"+e},yAxisFormatDemo:function(e,t){return e+"元"},seriesFormatDemo:function(e){return e.name+"年"+e.value+"元"}},demotype:{color:du},column:{color:du,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"bar",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},line:{color:du,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},area:{color:du,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],areaStyle:{},label:{show:!0,color:"#666666",position:"top"}}},pie:{color:du,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:"50%",label:{show:!0,color:"#666666",position:"top"}}},ring:{color:du,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!0,color:"#666666",position:"top"},labelLine:{show:!0}}},rose:{color:du,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],roseType:"area"}},funnel:{color:du,title:{text:""},tooltip:{trigger:"item",formatter:"{b} : {c}%"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{bordercolor:"#fff",borderwidth:1},emphasis:{label:{fontSize:20}},data:[]}},gauge:{color:du,tooltip:{formatter:"{a} <br/>{b} : {c}%"},seriesTemplate:{name:"业务指标",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"完成率"}]}},candle:{xAxis:{data:[]},yAxis:{},color:du,title:{text:""},dataZoom:[{type:"inside",xAxisIndex:[0,1],start:10,end:100},{show:!0,xAxisIndex:[0,1],type:"slider",bottom:10,start:10,end:100}],seriesTemplate:{name:"",type:"k",data:[]}}},pu=e=>{(e.$renderjs||(e.$renderjs=[])).push("rdcharts"),(e.$renderjsModules||(e.$renderjsModules={})).rdcharts="f9cb76fc"};function hu(e={},...t){for(let n in t)for(let a in t[n])t[n].hasOwnProperty(a)&&(e[a]=t[n][a]&&"object"==typeof t[n][a]?hu(Array.isArray(t[n][a])?[]:{},e[a],t[n][a]):t[n][a]);return e}function gu(e,t){for(let n in e)e.hasOwnProperty(n)&&null!==e[n]&&"object"==typeof e[n]?gu(e[n],t):"format"===n&&"string"==typeof e[n]&&(e.formatter=t[e[n]]?t[e[n]]:void 0);return e}const fu={name:"qiun-data-charts",mixins:[Mr.mixinDatacom],props:{type:{type:String,default:null},canvasId:{type:String,default:"uchartsid"},canvas2d:{type:Boolean,default:!1},background:{type:String,default:"rgba(0,0,0,0)"},animation:{type:Boolean,default:!0},chartData:{type:Object,default:()=>({categories:[],series:[]})},opts:{type:Object,default:()=>({})},eopts:{type:Object,default:()=>({})},loadingType:{type:Number,default:2},errorShow:{type:Boolean,default:!0},errorReload:{type:Boolean,default:!0},errorMessage:{type:String,default:null},inScrollView:{type:Boolean,default:!1},reshow:{type:Boolean,default:!1},reload:{type:Boolean,default:!1},disableScroll:{type:Boolean,default:!1},optsWatch:{type:Boolean,default:!0},onzoom:{type:Boolean,default:!1},ontap:{type:Boolean,default:!0},ontouch:{type:Boolean,default:!1},onmouse:{type:Boolean,default:!0},onmovetip:{type:Boolean,default:!1},echartsH5:{type:Boolean,default:!1},echartsApp:{type:Boolean,default:!1},tooltipShow:{type:Boolean,default:!0},tooltipFormat:{type:String,default:void 0},tooltipCustom:{type:Object,default:void 0},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},textEnum:{type:Array,default:()=>[]},groupEnum:{type:Array,default:()=>[]},pageScrollTop:{type:Number,default:0},directory:{type:String,default:"/"},tapLegend:{type:Boolean,default:!0},menus:{type:Array,default:()=>[]}},data:()=>({cid:"uchartsid",inWx:!1,inAli:!1,inTt:!1,inBd:!1,inH5:!1,inApp:!1,inWin:!1,type2d:!0,disScroll:!1,openmouse:!1,pixel:1,cWidth:375,cHeight:250,showchart:!1,echarts:!1,echartsResize:{state:!1},uchartsOpts:{},echartsOpts:{},drawData:{},lastDrawTime:null}),created(){if(this.cid=this.canvasId,"uchartsid"==this.canvasId||""==this.canvasId){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",t=e.length,n="";for(let a=0;a<32;a++)n+=e.charAt(Math.floor(Math.random()*t));this.cid=n}const e=uni.getSystemInfoSync();"windows"!==e.platform&&"mac"!==e.platform||(this.inWin=!0),this.type2d=!1,this.disScroll=this.disableScroll},mounted(){this.inApp=!0,!0===this.echartsApp&&(this.echarts=!0,this.openmouse=!1),this.$nextTick((()=>{this.beforeInit()}))},destroyed(){!0===this.echarts?(delete mu.option[this.cid],delete mu.instance[this.cid]):(delete uu.option[this.cid],delete uu.instance[this.cid]),uni.offWindowResize((()=>{}))},watch:{chartDataProps:{handler(e,t){"object"==typeof e?JSON.stringify(e)!==JSON.stringify(t)&&(this._clearChart(),e.series&&e.series.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this.showchart=!1,this.mixinDatacomErrorMessage=null)):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="参数错误chartData数据类型错误")},immediate:!1,deep:!0},localdata:{handler(e,t){JSON.stringify(e)!==JSON.stringify(t)&&(e.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage=null))},immediate:!1,deep:!0},optsProps:{handler(e,t){"object"==typeof e?JSON.stringify(e)!==JSON.stringify(t)&&!1===this.echarts&&1==this.optsWatch&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="参数错误opts数据类型错误")},immediate:!1,deep:!0},eoptsProps:{handler(e,t){"object"==typeof e?JSON.stringify(e)!==JSON.stringify(t)&&!0===this.echarts&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="参数错误eopts数据类型错误")},immediate:!1,deep:!0},reshow(e,t){!0===e&&!1===this.mixinDatacomLoading&&setTimeout((()=>{this.mixinDatacomErrorMessage=null,this.echartsResize.state=!this.echartsResize.state,this.checkData(this.drawData)}),200)},reload(e,t){!0===e&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())},mixinDatacomErrorMessage(e,t){e&&(this.emitMsg({name:"error",params:{type:"error",errorShow:this.errorShow,msg:e,id:this.cid}}),this.errorShow&&g("log","at uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue:611","[秋云图表组件]"+e))},errorMessage(e,t){e&&this.errorShow&&null!==e&&"null"!==e&&""!==e?(this.showchart=!1,this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e):(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())}},computed:{optsProps(){return JSON.parse(JSON.stringify(this.opts))},eoptsProps(){return JSON.parse(JSON.stringify(this.eopts))},chartDataProps(){return JSON.parse(JSON.stringify(this.chartData))}},methods:{beforeInit(){this.mixinDatacomErrorMessage=null,"object"==typeof this.chartData&&null!=this.chartData&&void 0!==this.chartData.series&&this.chartData.series.length>0?(this.drawData=hu({},this.chartData),this.mixinDatacomLoading=!1,this.showchart=!0,this.checkData(this.chartData)):this.localdata.length>0?(this.mixinDatacomLoading=!1,this.showchart=!0,this.localdataInit(this.localdata)):""!==this.collection?(this.mixinDatacomLoading=!1,this.getCloudData()):this.mixinDatacomLoading=!0},localdataInit(e){if(this.groupEnum.length>0)for(let u=0;u<e.length;u++)for(let t=0;t<this.groupEnum.length;t++)e[u].group===this.groupEnum[t].value&&(e[u].group=this.groupEnum[t].text);if(this.textEnum.length>0)for(let u=0;u<e.length;u++)for(let t=0;t<this.textEnum.length;t++)e[u].text===this.textEnum[t].value&&(e[u].text=this.textEnum[t].text);let t=!1,n={categories:[],series:[]},a=[],o=[];if(t=!0===this.echarts?mu.categories.includes(this.type):uu.categories.includes(this.type),!0===t){if(this.chartData&&this.chartData.categories&&this.chartData.categories.length>0)a=this.chartData.categories;else if(this.startDate&&this.endDate){let e=new Date(this.startDate),t=new Date(this.endDate);for(;e<=t;)a.push((s=void 0,r=void 0,c=void 0,s=(i=e).getFullYear(),r=i.getMonth()+1,c=i.getDate(),r>=1&&r<=9&&(r="0"+r),c>=0&&c<=9&&(c="0"+c),s+"-"+r+"-"+c)),e=e.setDate(e.getDate()+1),e=new Date(e)}else{let t={};e.map((function(e,n){null==e.text||t[e.text]||(a.push(e.text),t[e.text]=!0)}))}n.categories=a}var i,s,r,c;let l={};if(e.map((function(e,t){null==e.group||l[e.group]||(o.push({name:e.group,data:[]}),l[e.group]=!0)})),0==o.length)if(o=[{name:"默认分组",data:[]}],!0===t)for(let u=0;u<a.length;u++){let t=0;for(let n=0;n<e.length;n++)e[n].text==a[u]&&(t=e[n].value);o[0].data.push(t)}else for(let u=0;u<e.length;u++)o[0].data.push({name:e[u].text,value:e[u].value});else for(let u=0;u<o.length;u++)if(a.length>0)for(let t=0;t<a.length;t++){let n=0;for(let i=0;i<e.length;i++)o[u].name==e[i].group&&e[i].text==a[t]&&(n=e[i].value);o[u].data.push(n)}else for(let t=0;t<e.length;t++)o[u].name==e[t].group&&o[u].data.push(e[t].value);n.series=o,this.drawData=hu({},n),this.checkData(n)},reloading(){!1!==this.errorReload&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,""!==this.collection?(this.mixinDatacomLoading=!1,this.onMixinDatacomPropsChange(!0)):this.beforeInit())},checkData(e){let t=this.cid;!0===this.echarts?(mu.option[t]=hu({},this.eopts),mu.option[t].id=t,mu.option[t].type=this.type):this.type&&uu.type.includes(this.type)?(uu.option[t]=hu({},uu[this.type],this.opts),uu.option[t].canvasId=t):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="参数错误props参数中type类型不正确");let n=hu({},e);void 0!==n.series&&n.series.length>0&&(this.mixinDatacomErrorMessage=null,!0===this.echarts?(mu.option[t].chartData=n,this.$nextTick((()=>{this.init()}))):(uu.option[t].categories=n.categories,uu.option[t].series=n.series,this.$nextTick((()=>{this.init()}))))},resizeHandler(){let e=Date.now();e-(this.lastDrawTime?this.lastDrawTime:e-3e3)<1e3||uni.createSelectorQuery().in(this).select("#ChartBoxId"+this.cid).boundingClientRect((e=>{this.showchart=!0,e.width>0&&e.height>0&&(e.width===this.cWidth&&e.height===this.cHeight||this.checkData(this.drawData))})).exec()},getCloudData(){1!=this.mixinDatacomLoading&&(this.mixinDatacomLoading=!0,this.mixinDatacomGet().then((e=>{this.mixinDatacomResData=e.result.data,this.localdataInit(this.mixinDatacomResData)})).catch((e=>{this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="请求错误:"+e})))},onMixinDatacomPropsChange(e,t){1==e&&""!==this.collection&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this._clearChart(),this.getCloudData())},_clearChart(){let e=this.cid;if(!0!==this.echarts&&uu.option[e]&&uu.option[e].context){const t=uu.option[e].context;"object"!=typeof t||uu.option[e].update||(t.clearRect(0,0,this.cWidth*this.pixel,this.cHeight*this.pixel),t.draw())}},init(){let e=this.cid;uni.createSelectorQuery().in(this).select("#ChartBoxId"+e).boundingClientRect((t=>{t.width>0&&t.height>0?(this.mixinDatacomLoading=!1,this.showchart=!0,this.lastDrawTime=Date.now(),this.cWidth=t.width,this.cHeight=t.height,!0!==this.echarts&&(uu.option[e].background="rgba(0,0,0,0)"==this.background?"#FFFFFF":this.background,uu.option[e].canvas2d=this.type2d,uu.option[e].pixelRatio=this.pixel,uu.option[e].animation=this.animation,uu.option[e].width=t.width*this.pixel,uu.option[e].height=t.height*this.pixel,uu.option[e].onzoom=this.onzoom,uu.option[e].ontap=this.ontap,uu.option[e].ontouch=this.ontouch,uu.option[e].onmouse=this.openmouse,uu.option[e].onmovetip=this.onmovetip,uu.option[e].tooltipShow=this.tooltipShow,uu.option[e].tooltipFormat=this.tooltipFormat,uu.option[e].tooltipCustom=this.tooltipCustom,uu.option[e].inScrollView=this.inScrollView,uu.option[e].lastDrawTime=this.lastDrawTime,uu.option[e].tapLegend=this.tapLegend),this.inH5||this.inApp?1==this.echarts?(mu.option[e].ontap=this.ontap,mu.option[e].onmouse=this.openmouse,mu.option[e].tooltipShow=this.tooltipShow,mu.option[e].tooltipFormat=this.tooltipFormat,mu.option[e].tooltipCustom=this.tooltipCustom,mu.option[e].lastDrawTime=this.lastDrawTime,this.echartsOpts=hu({},mu.option[e])):(uu.option[e].rotateLock=uu.option[e].rotate,this.uchartsOpts=hu({},uu.option[e])):(uu.option[e]=gu(uu.option[e],uu.formatter),this.mixinDatacomErrorMessage=null,this.mixinDatacomLoading=!1,this.showchart=!0,this.$nextTick((()=>{if(!0===this.type2d){uni.createSelectorQuery().in(this).select("#"+e).fields({node:!0,size:!0}).exec((n=>{if(n[0]){const a=n[0].node,o=a.getContext("2d");uu.option[e].context=o,uu.option[e].rotateLock=uu.option[e].rotate,uu.instance[e]&&uu.option[e]&&!0===uu.option[e].update?this._updataUChart(e):(a.width=t.width*this.pixel,a.height=t.height*this.pixel,a._width=t.width*this.pixel,a._height=t.height*this.pixel,setTimeout((()=>{uu.option[e].context.restore(),uu.option[e].context.save(),this._newChart(e)}),100))}else this.showchart=!1,this.mixinDatacomErrorMessage="参数错误开启2d模式后未获取到dom节点canvas-id:"+e}))}else this.inAli&&(uu.option[e].rotateLock=uu.option[e].rotate),uu.option[e].context=uni.createCanvasContext(e,this),uu.instance[e]&&uu.option[e]&&!0===uu.option[e].update?this._updataUChart(e):setTimeout((()=>{uu.option[e].context.restore(),uu.option[e].context.save(),this._newChart(e)}),100)})))):(this.mixinDatacomLoading=!1,this.showchart=!1,1==this.reshow&&(this.mixinDatacomErrorMessage="布局错误未获取到父元素宽高尺寸canvas-id:"+e))})).exec()},saveImage(){uni.canvasToTempFilePath({canvasId:this.cid,success:e=>{uni.saveImageToPhotosAlbum({filePath:e.tempFilePath,success:function(){uni.showToast({title:"保存成功",duration:2e3})}})}},this)},getImage(){if(0==this.type2d)uni.canvasToTempFilePath({canvasId:this.cid,success:e=>{this.emitMsg({name:"getImage",params:{type:"getImage",base64:e.tempFilePath}})}},this);else{uni.createSelectorQuery().in(this).select("#"+this.cid).fields({node:!0,size:!0}).exec((e=>{if(e[0]){const t=e[0].node;this.emitMsg({name:"getImage",params:{type:"getImage",base64:t.toDataURL("image/png")}})}}))}},_error(e){this.mixinDatacomErrorMessage=e.detail.errMsg},emitMsg(e){this.$emit(e.name,e.params)},getRenderType(){!0===this.echarts&&!1===this.mixinDatacomLoading&&this.beforeInit()},toJSON(){return this}}};pu(fu);const vu=w(fu,[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("qiun-loading"),ru),c=f(e.resolveDynamicComponent("qiun-error"),cu);return e.openBlock(),e.createElementBlock("view",{class:"chartsview",id:"ChartBoxId"+i.cid},[t.mixinDatacomLoading?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createVNode(r,{loadingType:a.loadingType},null,8,["loadingType"])])):e.createCommentVNode("",!0),t.mixinDatacomErrorMessage&&a.errorShow?(e.openBlock(),e.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...e)=>s.reloading&&s.reloading(...e))},[e.createVNode(c,{errorMessage:a.errorMessage},null,8,["errorMessage"])])):e.createCommentVNode("",!0),i.echarts?e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:2,style:e.normalizeStyle([{background:a.background},{width:"100%",height:"100%"}]),"data-directory":a.directory,id:"EC"+i.cid,prop:e.wp(i.echartsOpts),"change:prop":t.rdcharts.ecinit,resize:e.wp(i.echartsResize),"change:resize":t.rdcharts.ecresize},null,12,["data-directory","id","prop","change:prop","resize","change:resize"])),[[e.vShow,i.showchart]]):(e.openBlock(),e.createElementBlock("view",{key:3,onClick:n[2]||(n[2]=(...e)=>t.rdcharts.tap&&t.rdcharts.tap(...e)),onMousemove:n[3]||(n[3]=(...e)=>t.rdcharts.mouseMove&&t.rdcharts.mouseMove(...e)),onMousedown:n[4]||(n[4]=(...e)=>t.rdcharts.mouseDown&&t.rdcharts.mouseDown(...e)),onMouseup:n[5]||(n[5]=(...e)=>t.rdcharts.mouseUp&&t.rdcharts.mouseUp(...e)),onTouchstart:n[6]||(n[6]=(...e)=>t.rdcharts.touchStart&&t.rdcharts.touchStart(...e)),onTouchmove:n[7]||(n[7]=(...e)=>t.rdcharts.touchMove&&t.rdcharts.touchMove(...e)),onTouchend:n[8]||(n[8]=(...e)=>t.rdcharts.touchEnd&&t.rdcharts.touchEnd(...e)),id:"UC"+i.cid,prop:e.wp(i.uchartsOpts),"change:prop":t.rdcharts.ucinit},[e.withDirectives(e.createElementVNode("canvas",{id:i.cid,canvasId:i.cid,style:e.normalizeStyle({width:i.cWidth+"px",height:i.cHeight+"px",background:a.background}),"disable-scroll":a.disableScroll,onError:n[1]||(n[1]=(...e)=>s._error&&s._error(...e))},null,44,["id","canvasId","disable-scroll"]),[[e.vShow,i.showchart]])],40,["id","prop","change:prop"]))],8,["id"])}],["__scopeId","data-v-3e273927"]]),_u=w({__name:"dataCenter",setup(t){const n=e.reactive({categories:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20"],series:[{name:"自己",data:[11,6,31,33,13,34]},{name:"浏览推流",data:[15,14,50,37,17,38]},{name:"陌生人",data:[17,10,23,26,8,30]},{name:"已关注",data:[11,6,31,33,13,34]}]}),a=e.reactive({color:["#D8D8D8","#C2ECFF","#FFD2D2","#C2FFCC","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],padding:[0,35,0,0],touchMoveLimit:24,enableScroll:!0,legend:{padding:20,margin:30,position:"top",backgroundColor:"rgb(0,0,0)",fontColor:"#fff",itemGap:10},xAxis:{titleFontSize:16,disableGrid:!0,scrollShow:!0,itemCount:10,showTitle:!0,title:"秒数"},yAxis:{data:[{min:0,titleFontSize:16,title:"人数"}],showTitle:!0},extra:{column:{type:"group",width:5,activeBgColor:"#000000",activeBgOpacity:.08}}});function o(e){uni.navigateTo({url:e})}return(t,i)=>{const s=f(e.resolveDynamicComponent("qiun-data-charts"),vu);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createVNode(tc,{title:"数据中心"},{right:e.withCtx((()=>[e.createElementVNode("view",{class:"rows c999 f24",onClick:i[0]||(i[0]=e=>o("/pages/index/dataCenter/like"))},[e.createElementVNode("view",{class:"ver mr10"},[e.createElementVNode("image",{class:"wh26",src:hl,mode:"aspectFit"}),e.createElementVNode("view",null,"公开赞")]),e.createElementVNode("view",{class:"ver mr10"},[e.createElementVNode("image",{class:"wh26",src:"/static/privateLike.png",mode:"aspectFit"}),e.createElementVNode("view",null,"隐私赞")])])])),_:1}),e.createElementVNode("view",{class:"apex ptb30 plr30 bfff"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"title c333 f36 b"},"统计中心")]),e.createElementVNode("view",{class:"line mt20 c999 f26"},"统计时间2024.12.08 18:00")]),e.createElementVNode("view",{class:"video df mtb20 ptb20 plr30 bfff"},[e.createElementVNode("image",{class:"poster br10",src:M,mode:""}),e.createElementVNode("view",{class:"info df fdc jcsb f1 ml30"},[e.createElementVNode("view",{class:"title t2hd f34 c111"},"我上传了一个视频,这里是视频标题"),e.createElementVNode("view",{class:"desc t2hd f28 c666"},"视频简介"),e.createElementVNode("view",{class:"time f26 c999"},"2024年11月20日")])]),e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"title"},"流量统计"),e.createElementVNode("view",{class:e.normalizeClass(["lock rows ptb5 plr20 bar cfff f28",{active:1}])},[e.createElementVNode("image",{class:"lockImg wh30",src:"/static/dataLock.png",mode:"aspectFit"}),e.createElementVNode("image",{class:"unlockImg wh30",src:"/static/dataUnlock.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"ml5"},[(e.openBlock(),e.createElementBlock("text",{key:1},"已")),e.createElementVNode("text",null,"解锁")])])]),(e.openBlock(),e.createElementBlock("view",{key:0,class:"charts"},[e.createVNode(s,{type:"column",opts:a,chartData:n,ontouch:!0},null,8,["opts","chartData"])]))]),e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"title"},"数据统计"),e.createElementVNode("view",{class:"dataList"},[e.createElementVNode("view",{class:"main"},[e.createElementVNode("view",{class:"item tac"},[e.createElementVNode("view",{class:"key"},"展播量推流"),e.createElementVNode("view",{class:"value"},"10")]),e.createElementVNode("view",{class:"item tac"},[e.createElementVNode("view",{class:"key"},"完播量推流"),e.createElementVNode("view",{class:"value"},"2")]),e.createElementVNode("view",{class:"item tac"},[e.createElementVNode("view",{class:"key"},"评论"),e.createElementVNode("view",{class:"value"},"40")]),e.createElementVNode("view",{class:"item tac"},[e.createElementVNode("view",{class:"key"},"收藏"),e.createElementVNode("view",{class:"value"},"3")])]),e.createElementVNode("view",{class:"item tac mt20",onClick:i[1]||(i[1]=e=>o("/pages/index/dataCenter/otherPush"))},[e.createElementVNode("view",{class:"key"},"他人推广"),e.createElementVNode("view",{class:"value"},"10")]),e.createElementVNode("view",{class:"item tac mt20"},[e.createElementVNode("view",{class:"key"},"下单数量"),e.createElementVNode("view",{class:"value"},"10")])])]),e.createElementVNode("view",{class:"fill",style:{height:"30rpx"}})])}}},[["__scopeId","data-v-87fa9e20"]]),yu=w({__name:"like",setup(t){const n=e.reactive([{img:"/static/indexLike1.png",count:1e3,name:"公开赞"},{img:"/static/privateLike.png",count:20,name:"隐私赞"}]),a=e.ref(0),o=e.computed((()=>n[a.value]));return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createVNode(tc,{title:"点赞统计"},{right:e.withCtx((()=>[e.createElementVNode("view",{class:"typeList rows f26"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item ver mr10",{active:n===a.value}]),key:n,onClick:e=>function(e){a.value!==e&&(a.value=e)}(n)},[e.createElementVNode("image",{class:"wh26",src:t.img,mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"name"},e.toDisplayString(t.name),1)],10,["onClick"])))),128))])])),_:1}),e.createElementVNode("view",{class:"count rows mtb30 mlr30 ptb20 plr30 f32 br20"},[e.createElementVNode("view",{class:"key"},e.toDisplayString(o.value.name),1),e.createElementVNode("view",{class:"value b"},e.toDisplayString(o.value.count),1)]),e.createElementVNode("view",{class:"listBox mtb30 plr30"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,((t,n)=>e.createElementVNode("view",{class:"item df ptb20 plr10",key:n},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{class:"wh100",src:zr,mode:"aspectFill"})]),e.createElementVNode("view",{class:"info f1 ml20"},[e.createElementVNode("view",{class:"nickname thd f30 c111"},"A**** "+e.toDisplayString(o.value.name)+"了你",1),e.createElementVNode("view",{class:"time mt10 c999 f28"},"2024.12.08 20:00")])]))),64))]),e.createElementVNode("view",{class:"nomore"},"暂无更多~"),e.createElementVNode("view",{class:"fill",style:{height:"30rpx"}})]))}},[["__scopeId","data-v-47d7f8ec"]]),Eu=w({__name:"otherPush",setup(t){const n=e.reactive([{img:"/static/indexLike1.png",count:1e3,name:"展播量"},{img:"/static/privateLike.png",count:20,name:"完播量"}]),a=e.ref(0),o=e.computed((()=>n[a.value]));return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"typeList rows f34"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item tac f1",{active:n===a.value}]),key:n,onClick:e=>function(e){a.value!==e&&(a.value=e)}(n)},[e.createElementVNode("view",{class:"name ptb10"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"line"})],10,["onClick"])))),128))]),e.createElementVNode("view",{class:"count rows mtb30 mlr30 ptb20 plr30 f32 br20"},[e.createElementVNode("view",{class:"key"},e.toDisplayString(o.value.name),1),e.createElementVNode("view",{class:"value b"},e.toDisplayString(o.value.count),1)]),e.createElementVNode("view",{class:"listBox mtb30 plr30"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,((t,n)=>e.createElementVNode("view",{class:"item rows ptb20 plr10",key:n,onClick:e=>{uni.navigateTo({url:Me.setUrl("/pages/index/dataCenter/pushDetail",{})})}},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{class:"wh100",src:zr,mode:"aspectFill"})]),e.createElementVNode("view",{class:"info f1 ml20 f28"},[e.createElementVNode("view",{class:"nickname t2hd c111"},"A**** 消耗榴莲果300兑换"+e.toDisplayString(o.value.name),1),e.createElementVNode("view",{class:"time mt10 c999"},"2024.12.08 20:00")])],8,["onClick"]))),64))]),e.createElementVNode("view",{class:"nomore"},"暂无更多~"),e.createElementVNode("view",{class:"fill",style:{height:"30rpx"}})]))}},[["__scopeId","data-v-b480dd98"]]),Cu=w({__name:"pushDetail",setup(t){const n=e.reactive({categories:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20"],series:[{name:"浏览推流",data:[15,14,50,37,17,38]}]}),a=e.reactive({color:["#C2ECFF","#FFD2D2","#C2FFCC","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],padding:[0,35,0,0],touchMoveLimit:24,enableScroll:!0,legend:{padding:20,margin:30,position:"top",backgroundColor:"rgb(0,0,0)",fontColor:"#fff",itemGap:10},xAxis:{titleFontSize:16,disableGrid:!0,scrollShow:!0,itemCount:10,showTitle:!0,title:"秒数"},yAxis:{data:[{min:0,titleFontSize:16,title:"人数"}],showTitle:!0},extra:{column:{type:"group",width:5,activeBgColor:"#000000",activeBgOpacity:.08}}});return(t,o)=>{const i=f(e.resolveDynamicComponent("qiun-data-charts"),vu),s=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"apex ptb30 plr30 bfff"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"title c333 f36 b"},"统计中心")]),e.createElementVNode("view",{class:"line mt20 c999 f26"},"统计时间2024.12.08 18:00")]),e.createElementVNode("view",{class:"video df mtb20 ptb20 plr30 bfff"},[e.createElementVNode("image",{class:"poster br10",src:M,mode:""}),e.createElementVNode("view",{class:"info df fdc jcsb f1 ml30"},[e.createElementVNode("view",{class:"title t2hd f34 c111"},"我上传了一个视频,这里是视频标题"),e.createElementVNode("view",{class:"desc t2hd f28 c666"},"视频简介"),e.createElementVNode("view",{class:"time f26 c999"},"2024年11月20日")])]),e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"title"},"流量统计")]),e.createElementVNode("view",{class:"charts"},[e.createVNode(i,{type:"column",opts:a,chartData:n,ontouch:!0},null,8,["opts","chartData"])])]),e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"title"},"数据统计"),e.createElementVNode("view",{class:"dataList"},[e.createElementVNode("view",{class:"main"},[e.createElementVNode("view",{class:"item tac"},[e.createElementVNode("view",{class:"key"},"推流消耗榴莲果"),e.createElementVNode("view",{class:"value"},"10")]),e.createElementVNode("view",{class:"item tac"},[e.createElementVNode("view",{class:"key"},"产生订单数量"),e.createElementVNode("view",{class:"value"},"10")]),e.createElementVNode("view",{class:"item tac"},[e.createElementVNode("view",{class:"key"},"商家推广返利"),e.createElementVNode("view",{class:"value"},"10")])])])]),e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"main rows",onClick:o[0]||(o[0]=e=>{return t="/pages/index/dataCenter/pushDetailUser",void uni.navigateTo({url:t});var t})},[e.createElementVNode("view",{class:"key"},"推流的用户"),e.createVNode(s,{type:"right"})])]),e.createElementVNode("view",{class:"fill",style:{height:"30rpx"}})])}}},[["__scopeId","data-v-7e203ddd"]]),ku={__name:"pushHistory",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"listBox"},[e.createVNode(rl,{list:t.list.data,mode:"menu",onItem:t.handleVideo},null,8,["list","onItem"])])]))},Iu={__name:"pushDetailUser",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"listBox ptb30 plr30"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,((t,n)=>e.createElementVNode("view",{class:"list rows ptb30 plr10",key:n},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{class:"wh100",src:zr,mode:"aspectFill"})]),e.createElementVNode("view",{class:"f1 ml20"},[e.createElementVNode("view",{class:"name t2hd c333 f32"},"周** 查看了你推广的内容"),e.createElementVNode("view",{class:"time mt10 c999 f28"},"2024.12.08 18:00")])]))),64))])]))},Su={__name:"evaluate",setup(t){e.getCurrentInstance(),O().state;const n=e.ref([{text:"全部",icon:null,value:1},{text:"最新",icon:"/static/picture.png",value:2},{text:"图/视频",icon:"/static/time.png",value:3}]),a=e.ref(0),o=e.reactive([{id:0,userId:1,ks:123,isLike:1,userName:"明月天涯",portrait:"https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg",time:"2023年10月30日 14:20",content:"明月天涯明月天涯明月天涯明月天涯明月天涯明月天涯明月天涯",imageList:["https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg"],child:[{nickname:"用户a",content:"这款产品怎么样?"},{nickname:"用户b",content:"这款产品怎么样?"}]},{id:0,userId:1,isLike:0,ks:123,userName:"明月天涯",portrait:"https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg",time:"2023年10月30日 14:20",content:"明月天涯明月天涯明月天涯明月天涯明月天涯明月天涯明月天涯",imageList:["https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg","https://mp-bcaa355d-ec14-4cb2-a10e-482127e7cb48.cdn.bspapp.com/VKCEYUGU-bcaa355d-ec14-4cb2-a10e-482127e7cb48/00412594-656b-4379-a49e-0b381d5f6652.jpg"],child:[]}]);return(t,i)=>{const s=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"typeList df ptb20 pl20 bfff f30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item df fdr aic mr20 ptb5 plr20 br4",{active:n===a.value}]),key:n,onClick:e=>function(e){a.value!==e&&(a.value=e)}(n)},[e.createElementVNode("text",{class:""},e.toDisplayString(t.text),1)],10,["onClick"])))),128))]),e.createElementVNode("view",{class:"listBox f28"},[o[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"nomore"},"暂无评论~")),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list df fdc",key:n},[e.createElementVNode("view",{class:"userinfo rows mtb20 mlr20"},[e.createElementVNode("image",{class:"wh80 cir",src:t.portrait,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"name f1 mlr20 c333 f34"},e.toDisplayString(t.userName),1),e.createVNode(s,{type:"more-filled",color:"#999"})]),e.createElementVNode("view",{class:"content ml40 plr20 bfff br20"},[e.createElementVNode("view",{class:"rows mtb20 c999"},[e.createElementVNode("view",{class:""},"款式:"+e.toDisplayString(t.ks),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.time),1)]),e.createElementVNode("view",{class:"content mtb20 f30"},e.toDisplayString(t.content),1),t.imageList[0]?(e.openBlock(),e.createElementBlock("view",{key:0,class:"images mtb20"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.imageList,((n,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item pr",onClick:e=>{return n=t.imageList,o=a,void uni.previewImage({urls:n,current:o});var n,o},key:a},[e.createElementVNode("image",{class:"img pa br10",src:n,mode:"aspectFill"},null,8,["src"])],8,["onClick"])))),128))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"fn df jcr aic mtb20 c999"},[e.createElementVNode("view",{class:"ec-item df aic mr20"},[1==t.isLike?(e.openBlock(),e.createBlock(s,{key:0,type:"hand-up-filled",color:"#FF0000"})):(e.openBlock(),e.createBlock(s,{key:1,type:"hand-up",color:"#999"})),e.createElementVNode("view",{class:"ml10"},"0")]),e.createElementVNode("view",{class:"ec-item df aic mr20"},[e.createVNode(s,{type:"chat",color:"#999"}),e.createElementVNode("view",{class:"ml10"},e.toDisplayString(t.child.length),1)])]),e.createElementVNode("view",{class:"child oh mtb20 plr20 br10"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.child,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"msg mtb10",key:n},[e.createElementVNode("text",{class:"c666"},e.toDisplayString(t.nickname)+"",1),e.createElementVNode("text",{class:"c333 ml5"},e.toDisplayString(t.content),1)])))),128))])])])))),128)),e.createElementVNode("view",{class:"nomore mtb30"},"暂无更多评论~")])])}}},Tu={__name:"homepage",setup(t){const n=O();e.computed((()=>n.state.userinfo||{}));const a=e.ref(!1);function o(e){uni.navigateTo({url:e})}return I((e=>{e.scrollTop>44?a.value=!0:a.value=!1})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-rate"),Zr);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createVNode(e.unref(tc),{title:"家纺专营店",bgColor:"#ffffff00"}),e.createElementVNode("view",{class:"shopHeaderBg"}),e.createElementVNode("view",{class:"header pr mtb30 mlr20"},[e.createVNode(e.unref(qr)),e.createElementVNode("view",{class:"userinfo rows"},[e.createElementVNode("image",{class:"avatar wh130 br20",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"info f1 mlr30"},[e.createElementVNode("view",{class:"nickname f32"},"家纺专营店"),e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("view",{class:"f24 c666 df aic"},[e.createVNode(a,{class:"mr10",value:4.5,size:12,activeColor:"#FF9B27",readonly:"true"}),e.createElementVNode("text",null,"4.5")]),e.createElementVNode("view",{class:"ml10 c666 f24"},"0关注")])])])]),e.createElementVNode("view",{class:"menu pr mtb30 mlr30 ptb20 f24 br20 bfff"},[e.createElementVNode("view",{class:"item ver",onClick:n[0]||(n[0]=e=>o("/pages/shop/settle"))},[e.createElementVNode("image",{src:Vc,mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"店铺管理")]),e.createElementVNode("view",{class:"item ver",onClick:n[1]||(n[1]=e=>o("/pages/merchant/business-operator/index"))},[e.createElementVNode("image",{src:Bc,mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"商品管理")]),e.createElementVNode("view",{class:"item ver",onClick:n[2]||(n[2]=e=>o("pages/merchant/order/index"))},[e.createElementVNode("image",{src:xc,mode:"aspectFit",class:"wh50"}),e.createElementVNode("text",{class:"txt mt10 wsn"},"订单管理")])])])}}},Mu={__name:"logistics",setup(t){function n(e){uni.navigateTo({url:"/pages/shop/order/logistics"})}return(t,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"detail rows oh ptb20 plr30 bfff",onClick:n},[e.createElementVNode("image",{class:"wh100 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"col f1 ml20 f28"},[e.createElementVNode("view",{class:"c999"},"2024.12.10 18:00"),e.createElementVNode("view",{class:"mt10 f30"},"你的快递正在路上,请耐心等待")]),e.createVNode(o,{type:"right",color:"#999",size:"30rpx"})])}}},Nu={__name:"detail",setup(t){const n=e.ref({status:1,statusText:"待发货"});return(t,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"detail"},[e.createVNode(e.unref(Mu))]),e.createElementVNode("view",{class:"address rows mtb20 ptb15 plr30 bfff"},[e.createElementVNode("image",{class:"wh30 oh fs0",src:la,mode:"aspectFill"}),e.createElementVNode("view",{class:"f1 mlr20"},[e.createElementVNode("view",{class:"f30"},"山东省济南市槐荫区绿地新城商务大厦"),e.createElementVNode("view",{class:"mt10 c999 f26"},[e.createElementVNode("text",null,"海棠的秋"),e.createElementVNode("text",{class:"ml10"},"15666006592")])]),e.createElementVNode("view",{class:"btn ti warmHollow plr10 bs0"},"修改地址")]),e.createElementVNode("view",{class:"product oh plr30 bfff br20"},[e.createElementVNode("view",{class:"header line rows ptb20 f28"},[e.createElementVNode("view",{class:"store df aic thd f1"},[e.createElementVNode("image",{class:"wh50 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"name ml10 c333"},"家纺专营店")])]),e.createElementVNode("view",{class:"product line df ptb20"},[e.createElementVNode("view",{class:"poster wh160"},[e.createElementVNode("image",{class:"wh160 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"})]),e.createElementVNode("view",{class:"info mlr20 f1"},[e.createElementVNode("view",{class:"name c333 f28"},"靠枕 纯棉靠枕 车载居家 纯棉100% 卡通靠枕 人体工学"),e.createElementVNode("view",{class:"spec mt10 c999 f26"},"款式:普通款 小熊")]),e.createElementVNode("view",{class:"tar"},[e.createElementVNode("view",{class:"price c666"},[e.createElementVNode("text",{class:"f20"},"¥"),e.createElementVNode("text",{class:"f26"},"89")]),e.createElementVNode("view",{class:"number f24 c999"},"x 1")])]),e.createElementVNode("view",{class:"order mt30 f26 c999"},[e.createElementVNode("view",{class:"line mtb20 rows"},[e.createElementVNode("text",null,"订单编号251547812138"),e.createElementVNode("view",{class:"btn ti closeHollow plr20"},"复制")]),e.createElementVNode("view",{class:"line mtb20"},[e.createElementVNode("text",null,"支付方式:微信支付")]),e.createElementVNode("view",{class:"line mtb20"},[e.createElementVNode("text",null,"物流公司:普通快递")]),e.createElementVNode("view",{class:"line mtb20 rows"},[e.createElementVNode("view",{class:"f1"},"快递单号251547812138"),e.createElementVNode("view",{class:"btn ti closeHollow plr20"},"复制")]),e.createElementVNode("view",{class:"line mtb20"},[e.createElementVNode("text",null,"下单时间2024-12-10 12:00")]),e.createElementVNode("view",{class:"line mtb20"},[e.createElementVNode("text",null,"发货时间2024-12-10 18:00")]),e.createElementVNode("view",{class:"line mtb20"},[e.createElementVNode("text",null,"收货时间2024-12-15 17:00")]),e.createElementVNode("view",{class:"mtb30 fmid"},[(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("text",null,"收起"),e.createVNode(o,{type:"top",color:""})],64))])])]),e.createElementVNode("view",{class:"productList mtb30 mlr20"},[e.createVNode(e.unref(Bn),{choicenessTitle:"true"})]),e.createElementVNode("view",{class:"fill"}),e.createElementVNode("view",{class:"footer df jcr plr30 bfff shadow"},[1==n.value.status?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"取消订单"),e.createElementVNode("view",{class:"btn bar warmHollow plr30"},"继续付款")],64)):e.createCommentVNode("",!0),2==n.value.status?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"申请退款"),e.createElementVNode("view",{class:"btn bar warmHollow plr30"},"催发货")],64)):e.createCommentVNode("",!0),3==n.value.status?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"申请退款"),e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"查看物流"),e.createElementVNode("view",{class:"btn bar warmHollow plr30"},"确认收货")],64)):e.createCommentVNode("",!0),4==n.value.status?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"申请退款"),e.createElementVNode("view",{class:"btn bar warmHollow plr30"},"评价")],64)):e.createCommentVNode("",!0),6==n.value.status?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"取消售后"),e.createElementVNode("view",{class:"btn bar closeHollow plr30"},"钱款去向"),e.createElementVNode("view",{class:"btn bar warmHollow plr30"},"平台介入")],64)):e.createCommentVNode("",!0)])])}}},wu=w({__name:"refundStar",setup(t){const n=e.ref("select"),a=e.reactive([{name:"我要退款(无需退货)",text:"未收到货,活鱼商家协商之后申请"},{name:"已收到货,我要退货退款",text:"已收到货,需要退还已收到的货物"}]),o=e.ref(""),i=e.reactive([{name:"不想要了"},{name:"买错了"}]),s=e.ref("");function r(e){o.value!==e&&(o.value=e,n.value="form",uni.setNavigationBarTitle({title:"申请售后"}))}return(t,c)=>{const l=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},["select"===n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"detail"},[e.createVNode(e.unref(Mu))]),e.createElementVNode("view",{class:"typeList plr20"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list rows mtb30 ptb30 plr20 bfff br10",key:n,onClick:e=>r(n)},[e.createElementVNode("image",{class:"wh45",src:"/static/shop-sales.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"col f1 ml30"},[e.createElementVNode("view",{class:"c333 f32"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"txt mt10 c999 f28"},e.toDisplayString(t.text),1)])],8,["onClick"])))),128))])],64)):"form"===n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"product df ptb20 plr20 bfff"},[e.createElementVNode("view",{class:"poster wh160"},[e.createElementVNode("image",{class:"wh160 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"})]),e.createElementVNode("view",{class:"info mlr20 f1"},[e.createElementVNode("view",{class:"name c333 f28"},"靠枕 纯棉靠枕 车载居家 纯棉100% 卡通靠枕 人体工学"),e.createElementVNode("view",{class:"spec mt10 c999 f26"},"款式:普通款 小熊")]),e.createElementVNode("view",{class:"tar"},[e.createElementVNode("view",{class:"price c666"},[e.createElementVNode("text",{class:"f20"},"¥"),e.createElementVNode("text",{class:"f26"},"89")]),e.createElementVNode("view",{class:"number f24 c999"},"x 1")])]),e.createElementVNode("view",{class:"apply container"},[e.createElementVNode("view",{class:"line ptb20"},[e.createElementVNode("picker",{range:a,value:o.value,"range-key":"name",onChange:r},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"key"},"申请类型"),e.createElementVNode("view",{class:"value f1 mlr20"},e.toDisplayString(a[o.value].name),1),e.createVNode(l,{type:"right",color:"#999"})])],40,["range","value"])]),e.createElementVNode("view",{class:"line ptb20"},[e.createElementVNode("picker",{range:i,"range-key":"name",onChange:r},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("view",{class:"key"},"申请原因"),e.createElementVNode("view",{class:"value f1 mlr20"},[""!==s.value?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(i[s.value].name),1)):(e.openBlock(),e.createElementBlock("text",{key:1,class:"placeholderStyle"},"点击选择申请原因"))]),e.createVNode(l,{type:"right",color:"#999"})])],40,["range"])])]),e.createElementVNode("view",{class:"price container ptb30"},[e.createElementVNode("view",{class:"title f30"},"申请金额"),e.createElementVNode("view",{class:"value df mt10 c333 f60"},[e.createElementVNode("text",null,"¥"),e.createElementVNode("input",{type:"text",class:"input f1 c333 f60",value:89})])]),e.createElementVNode("view",{class:"form container"},[e.createElementVNode("view",{class:"title mtb20 f30"},"申请说明"),e.createElementVNode("textarea",{type:"text",class:"input mtb20 c333 f30",placeholder:"必填,请您详细填写申请说明","placeholder-class":"placeholderStyle","auto-height":"true"}),e.createElementVNode("view",{class:"imgList df fww"},[e.createElementVNode("view",{class:"imgs upload wh140"},[e.createElementVNode("image",{class:"wh140",src:Vr,mode:"aspectFill"})])])]),e.createElementVNode("view",{class:"other container"},[e.createElementVNode("view",{class:"line df mtb30"},[e.createElementVNode("view",{class:"key w200"},"联系电话"),e.createElementVNode("view",{class:"value f1"},"13979897890")])]),e.createElementVNode("view",{class:"fill",style:{height:"120rpx"}}),e.createElementVNode("view",{class:"footer plr30 bfff shadow"},[e.createElementVNode("view",{class:"btn lg primary"},"提交申请")])],64)):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-88b995de"]]),Du=w({__name:"logistics",setup(t){const n=e.reactive([{content:"您的宝贝正在运输中"},{content:"您的快递正在由普通快递运送,预计三日后到达"},{content:"您的宝贝已被普通快递捡收"},{content:"您的宝贝已出仓"}]),a=e.ref(!1),o=e.computed((()=>{let e=[...n];return a.value||(e.length=Math.min(n.length,2)),e}));return(t,n)=>{const i=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"address rows ptb15 plr30 bfff"},[e.createElementVNode("image",{class:"wh30 oh fs0",src:la,mode:"aspectFill"}),e.createElementVNode("view",{class:"f1 mlr20"},[e.createElementVNode("view",{class:"f30"},"山东省济南市槐荫区绿地新城商务大厦"),e.createElementVNode("view",{class:"mt10 c999 f26"},[e.createElementVNode("text",null,"海棠的秋"),e.createElementVNode("text",{class:"ml10"},"15666006592")])])]),e.createElementVNode("view",{class:"container rows ptb20 f28"},[e.createElementVNode("image",{class:"wh70",src:"/static/shop-logistics.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"value f1 mlr20"},"快递公司:普通快递"),e.createElementVNode("view",{class:"btn sm closeHollow plr20"},"复制")]),e.createElementVNode("view",{class:"container rows ptb20 f28"},[e.createElementVNode("image",{class:"wh70",src:"/static/shop-document.png",mode:"aspectFit"}),e.createElementVNode("view",{class:"value f1 mlr20"},"订单编号kd11111111111"),e.createElementVNode("view",{class:"btn sm closeHollow plr20"},"复制")]),e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"flow mtb30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item df",key:n},[e.createElementVNode("view",{class:"rank ver"},[e.createElementVNode("view",{class:"line first"}),e.createElementVNode("view",{class:"circle cir"}),e.createElementVNode("view",{class:"line f1"})]),e.createElementVNode("view",{class:"content f1 ml20 pb20"},[e.createElementVNode("view",{class:"f30"},e.toDisplayString(t.content),1),e.createElementVNode("view",{class:"mt10 f28"},"2024-03-05 13:24:00")])])))),128))]),e.createElementVNode("view",{class:"mtb30 fmid c999",onClick:n[0]||(n[0]=e=>a.value=!a.value)},[a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("text",null,"收起"),e.createVNode(i,{type:"top",color:""})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("text",null,"查看更多订单信息"),e.createVNode(i,{type:"bottom",color:""})],64))])]),e.createElementVNode("view",{class:"productList mtb30 mlr30"},[e.createVNode(Bn,{choicenessTitle:"true"})])])}}},[["__scopeId","data-v-3d5b835d"]]),bu=w({__name:"evaluate",setup(t){const n=e.reactive(["","非常差","差","一般","好","非常好"]),a=e.reactive({rate1:0,rate2:0,rate3:0});return e.watch(a,(e=>{g("log","at pages/shop/order/evaluate.vue:18","form",e)}),{deep:!0}),(t,o)=>{const i=f(e.resolveDynamicComponent("uni-rate"),Zr);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"container oh ptb30 imgList df fww"},[e.createElementVNode("view",{class:"imgs upload wh140"},[e.createElementVNode("image",{class:"wh140",src:Vr,mode:"aspectFill"})])]),e.createElementVNode("view",{class:"message container"},[e.createElementVNode("textarea",{class:"txtplus mtb20 plr20",placeholder:"展开说说对商品的想法吧","placeholder-class":"placeholderStyle"})]),e.createElementVNode("view",{class:"stars container"},[e.createElementVNode("view",{class:"item df aic mtb20"},[e.createElementVNode("view",{class:"key w200"},"描述相符"),e.createElementVNode("view",{class:"value mlr20"},[e.createVNode(i,{modelValue:a.rate1,"onUpdate:modelValue":o[0]||(o[0]=e=>a.rate1=e),max:5,color:"#d8d8d8",activeColor:"#FF9B27"},null,8,["modelValue"])]),e.createElementVNode("view",{class:"c999 f28"},e.toDisplayString(n[a.rate1]),1)]),e.createElementVNode("view",{class:"item df aic mtb20"},[e.createElementVNode("view",{class:"key w200"},"物流服务"),e.createElementVNode("view",{class:"value mlr20"},[e.createVNode(i,{modelValue:a.rate2,"onUpdate:modelValue":o[1]||(o[1]=e=>a.rate2=e),color:"#d8d8d8",activeColor:"#FF9B27"},null,8,["modelValue"])]),e.createElementVNode("view",{class:"c999 f28"},e.toDisplayString(n[a.rate2]),1)]),e.createElementVNode("view",{class:"item df aic mtb20"},[e.createElementVNode("view",{class:"key w200"},"服务态度"),e.createElementVNode("view",{class:"value mlr20"},[e.createVNode(i,{modelValue:a.rate3,"onUpdate:modelValue":o[2]||(o[2]=e=>a.rate3=e),color:"#d8d8d8",activeColor:"#FF9B27"},null,8,["modelValue"])]),e.createElementVNode("view",{class:"c999 f28"},e.toDisplayString(n[a.rate3]),1)])]),e.createElementVNode("view",{class:"fill",style:{height:"120rpx"}}),e.createElementVNode("view",{class:"footer plr30 bfff shadow"},[e.createElementVNode("view",{class:"btn lg primary"},"发布评论")])])}}},[["__scopeId","data-v-4f848a38"]]),Lu=w({__name:"afterSales",setup(t){const n=e.reactive([{name:"同意退款"},{name:"平台处理中"},{name:"到账成功"}]);return(t,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"statusText mtb30 f48"},"退款成功"),e.createElementVNode("view",{class:"result mtb30"},[e.createElementVNode("view",{class:"refundPrice"},[e.createElementVNode("text",{class:"f48"},"¥"),e.createElementVNode("text",{class:"value"},"2")]),e.createElementVNode("view",{class:"c37B111"},"已退回至九亿钱包")]),e.createElementVNode("view",{class:"flow mtb30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item f1",key:a},[e.createElementVNode("view",{class:"side"},[e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"circle mlr10 cir"},[a==n.length-1?(e.openBlock(),e.createElementBlock("view",{key:0,class:"wh24 fmid"},[e.createVNode(o,{type:"checkmarkempty",color:"#fff"})])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"line"})]),e.createElementVNode("view",{class:"main mt20 tac c999 f26"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"time mt10"},"10-10 15:27")])])))),128))])]),e.createElementVNode("view",{class:"container info c999 f28"},[e.createElementVNode("view",{class:"title mtb20 c333 f32"},"钱款去向"),e.createElementVNode("view",{class:"line rows mtb20"},[e.createElementVNode("view",{class:"key"},"九亿账号"),e.createElementVNode("view",{class:""},"12345665")]),e.createElementVNode("view",{class:"line rows mtb20"},[e.createElementVNode("view",{class:"key"},"支付方式"),e.createElementVNode("view",{class:""},"余额")]),e.createElementVNode("view",{class:"line rows mtb20"},[e.createElementVNode("view",{class:"key"},"退款账户"),e.createElementVNode("view",{class:""},"12345665")])]),e.createElementVNode("view",{class:"product container"},[e.createElementVNode("view",{class:"header line rows ptb20 f28"},[e.createElementVNode("view",{class:"store df aic thd f1"},[e.createElementVNode("image",{class:"wh50 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"name ml10 c333"},"家纺专营店")])]),e.createElementVNode("view",{class:"product line df ptb20"},[e.createElementVNode("view",{class:"poster wh160"},[e.createElementVNode("image",{class:"wh160 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"})]),e.createElementVNode("view",{class:"info mlr20 f1"},[e.createElementVNode("view",{class:"name c333 f28"},"靠枕 纯棉靠枕 车载居家 纯棉100% 卡通靠枕 人体工学"),e.createElementVNode("view",{class:"spec mt10 c999 f26"},"款式:普通款 小熊")]),e.createElementVNode("view",{class:"tar"},[e.createElementVNode("view",{class:"price c666"},[e.createElementVNode("text",{class:"f20"},"¥"),e.createElementVNode("text",{class:"f26"},"89")]),e.createElementVNode("view",{class:"number f24 c999"},"x 1")])]),e.createElementVNode("view",{class:"order mt30 f26 c999"},[e.createElementVNode("view",{class:"line mtb20 rows"},[e.createElementVNode("text",null,"订单编号251547812138"),e.createElementVNode("view",{class:"btn ti closeHollow plr20"},"复制")]),e.createElementVNode("view",{class:"line mtb20"},[e.createElementVNode("text",null,"申请金额¥2")]),e.createElementVNode("view",{class:"line mtb20"},[e.createElementVNode("text",null,"退款原因:其他原因")]),e.createElementVNode("view",{class:"line mtb20"},[e.createElementVNode("text",null,"收货状态:已收货")]),e.createElementVNode("view",{class:"line mtb20"},[e.createElementVNode("text",null,"申请时间2024-12-15 17:00")])])]),e.createElementVNode("view",{class:"fill",style:{height:"150rpx"}}),e.createElementVNode("view",{class:"footer df jcr plr30 bfff shadow"},[e.createElementVNode("view",{class:"btn sm bar closeHollow plr20"},"联系商家")])])}}},[["__scopeId","data-v-eb6d8178"]]),Pu=w({__name:"collect",setup(t){const n=e.ref(!1);return(t,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createVNode(e.unref(tc),{title:"商品收藏"},{right:e.withCtx((()=>[e.createElementVNode("view",{class:"f26",onClick:a[0]||(a[0]=e=>n.value=!n.value)},[n.value?(e.openBlock(),e.createElementBlock("text",{key:0},"完成")):(e.openBlock(),e.createElementBlock("text",{key:1},"管理"))])])),_:1}),e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,((t,n)=>e.createElementVNode("view",{class:"item oh mb20 plr30 bfff",key:n},[e.createElementVNode("view",{class:"store line df aic ptb20 thd f1 f28"},[e.createElementVNode("image",{class:"wh50 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"name ml10 c333"},"家纺专营店")]),e.createElementVNode("view",{class:"product line df ptb20"},[e.createElementVNode("view",{class:"fmid mr10"},[0==n?(e.openBlock(),e.createBlock(o,{key:0,type:"circle",size:"40rpx",color:"#aaa"})):(e.openBlock(),e.createBlock(o,{key:1,type:"checkbox-filled",size:"40rpx",color:"#F8BA4D"}))]),e.createElementVNode("view",{class:"poster wh160"},[e.createElementVNode("image",{class:"wh160 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"})]),e.createElementVNode("view",{class:"info df fdc jcsb f1 ml20"},[e.createElementVNode("view",{class:"name c333 f28"},"靠枕 纯棉靠枕 车载居家 纯棉100% 卡通靠枕 人体工学"),e.createElementVNode("view",{class:"other df aic"},[e.createElementVNode("view",{class:"price c333"},[e.createElementVNode("text",{class:"f20"},"¥"),e.createElementVNode("text",{class:"f30"},"89")]),e.createElementVNode("view",{class:"count ml20 fs0 c999 f24"},"销量0")])])]),e.createElementVNode("view",{class:"spec line df ptb20 df aic c666 f24"},[e.createElementVNode("text",null,"已选规格: 升级款/小熊")])]))),64))]),e.createElementVNode("view",{class:"fill",style:{height:"180rpx"}}),e.createElementVNode("view",{class:"footer rows plr30 bfff shadow"},[e.createElementVNode("view",{class:"c999 f26"},"已选择9款"),e.createElementVNode("view",{class:"col df aic"},[n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"total mr20"},[e.createElementVNode("text",{class:"c333 f20"},"合计"),e.createElementVNode("text",{class:"cFF9B27 f20"},"¥"),e.createElementVNode("text",{class:"cFF9B27 f46"},"98")])),e.createElementVNode("view",{class:"btn primary w200"},"去结算")])])])}}},[["__scopeId","data-v-267efdaf"]]),Au=w({__name:"focusStore",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"list mtb20 plr20 bfff"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(15,((t,n)=>e.createElementVNode("view",{class:"item line df aic ptb25 thd f1 f32",key:n},[e.createElementVNode("image",{class:"wh90 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"}),e.createElementVNode("view",{class:"name mlr20 c333 f1"},"家纺专营店"),e.createElementVNode("view",{class:"btn sm warmHollow plr20"},"取消关注")]))),64))])]))},[["__scopeId","data-v-cea20373"]]),Ru=w({__name:"history",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("view",{class:"item mtb20 bfff",key:n},[e.createElementVNode("view",{class:"date ptb20 plr20 c333 f28"},"今天"),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,a)=>e.createElementVNode("view",{class:"product line df ptb20 plr20",key:n},[e.createElementVNode("view",{class:"poster wh160"},[e.createElementVNode("image",{class:"wh160 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"})]),e.createElementVNode("view",{class:"info df fdc jcsb f1 ml20"},[e.createElementVNode("view",{class:"name c333 f28"},"靠枕 纯棉靠枕 车载居家 纯棉100% 卡通靠枕 人体工学"),e.createElementVNode("view",{class:"other rows"},[e.createElementVNode("view",{class:"col c333"},[e.createElementVNode("text",{class:"f20"},"¥"),e.createElementVNode("text",{class:"f30"},"89"),e.createElementVNode("text",{class:"count ml20 fs0 c999 f24"},"销量0")]),e.createElementVNode("view",{class:"btn ti warmHollow plr20"},"去购买")])])]))),64))]))),64))])]))},[["__scopeId","data-v-9faff707"]]),Ou=w({__name:"coupon",setup:t=>(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"list plr20"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,((o,i)=>e.createElementVNode("view",{class:"item mtb20 bfff br20",key:i},[e.createElementVNode("view",{class:"main rows ptb25 plr25"},[e.createElementVNode("view",{class:"col"},[e.createElementVNode("view",{class:"name c333 f32"},"平台限时活动三花聚顶优惠券"),e.createElementVNode("view",{class:"time mt15 c999 f24"},"有效期至2024.08.06")]),e.createElementVNode("view",{class:"info tac"},[e.createElementVNode("view",{class:"price df aife"},[e.createElementVNode("text",{class:"f40 cFF9B27"},"¥"),e.createElementVNode("text",{class:"f72 cFF9B27"},"10")]),e.createElementVNode("view",{class:"type f28 cFF9B27"},"无门槛")])]),e.createElementVNode("view",{class:"dividing-line"}),e.createElementVNode("view",{class:"bottom rows ptb25 plr25"},[e.createElementVNode("view",{class:"info oh f1 rows"},[e.createElementVNode("view",{class:e.normalizeClass("thd")},"优惠卷介绍优惠卷介绍优惠卷介绍优惠卷..."),e.createVNode(a,{type:"down",color:"#ccc"})]),e.createElementVNode("view",{class:"btn primary fs0 plr30 ml30",onClick:n[0]||(n[0]=e=>t.useCoupon(t.coupon))},"去使用")])]))),64))]),e.createElementVNode("view",{class:"fill",style:{height:"30rpx"}})])}},[["__scopeId","data-v-7f8ebdf2"]]),Vu={__name:"commodities",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createVNode(tc,{title:"商品管理"},{right:e.withCtx((()=>[e.createElementVNode("view",{class:"f24"},"添加")])),_:1}),e.createElementVNode("view",{class:"listBox oh"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,((t,n)=>e.createElementVNode("view",{class:"item oh mtb20 mlr20 plr20 bfff br20",key:n},[e.createElementVNode("view",{class:"product line df ptb20"},[e.createElementVNode("view",{class:"poster wh160"},[e.createElementVNode("image",{class:"wh160 br10",src:"https://img13.360buyimg.com/n1/jfs/t1/117234/35/34799/82687/6449f2b4Fd6e2eef9/a754c5e178c9e9be.jpg.avif",mode:"aspectFill"})]),e.createElementVNode("view",{class:"info df fdc jcsb f1 ml20"},[e.createElementVNode("view",{class:"name t2hd c333 f28"},"靠枕 纯棉靠枕 车载居家 纯棉100% 卡通靠枕 人体工学"),e.createElementVNode("view",{class:"count fs0 c999 f24"},"销量0"),e.createElementVNode("view",{class:"other df aic"},[e.createElementVNode("view",{class:"price f1 cFF9B27"},[e.createElementVNode("text",{class:"f30"},"价格:"),e.createElementVNode("text",{class:"f20"},"¥"),e.createElementVNode("text",{class:"f30"},"89")]),e.createElementVNode("view",{class:"f1 c999 f24"},"库存×1")])])]),e.createElementVNode("view",{class:"menu ptb20 df jcr"},[e.createElementVNode("view",{class:"btn sm bar closeHollow plr30"},"下架"),e.createElementVNode("view",{class:"btn sm bar closeHollow plr30"},"改价"),e.createElementVNode("view",{class:"btn sm bar warmHollow plr30"},"编辑")])]))),64))])]))},Bu={__name:"commodity",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"main area"},[e.createElementVNode("view",{class:"title mtb20"},"商品图片"),e.createElementVNode("view",{class:"imgList mt20"},[e.createElementVNode("view",{class:"imgs"},[e.createElementVNode("image",{class:"wh120",src:Vr,mode:"aspectFit"})])])]),e.createElementVNode("view",{class:"main area"},[e.createElementVNode("view",{class:"title mtb20"},"商品标题"),e.createElementVNode("textarea",{class:"textarea mtb20",placeholder:"最多输入60字符30个汉字"})]),e.createElementVNode("view",{class:"main area"},[e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"title w150"},"类目"),e.createElementVNode("view",{class:"col f1"},[e.createElementVNode("text",{class:"placeholderStyle"},"点击选择")])]),e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"title w150"},"规格"),e.createElementVNode("view",{class:"col f1"},[e.createElementVNode("input",{type:"text",placeholder:"输入规格","placeholder-class":"placeholderStyle"})])]),e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"title w150"},"价格"),e.createElementVNode("view",{class:"col f1"},[e.createElementVNode("input",{type:"text",placeholder:"输入价格","placeholder-class":"placeholderStyle"})])]),e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"title w150"},"库存"),e.createElementVNode("view",{class:"col f1"},[e.createElementVNode("input",{type:"text",placeholder:"输入库存","placeholder-class":"placeholderStyle"})])])]),e.createElementVNode("view",{class:"main area"},[e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"title w150"},"发货时间"),e.createElementVNode("view",{class:"col f1"},[e.createElementVNode("input",{type:"text",placeholder:"输入时间","placeholder-class":"placeholderStyle"})])]),e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"title w150"},"运费"),e.createElementVNode("view",{class:"col f1"},[e.createElementVNode("input",{type:"text",placeholder:"输入价格","placeholder-class":"placeholderStyle"})])]),e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"title w150"},"所在地"),e.createElementVNode("view",{class:"col f1"},[e.createElementVNode("input",{type:"text",placeholder:"输入所在地","placeholder-class":"placeholderStyle"})])])]),e.createElementVNode("view",{class:"main area"},[e.createElementVNode("view",{class:"line rows ptb20"},[e.createElementVNode("view",{class:"title w150"},"代金券"),e.createElementVNode("view",{class:"col f1"},[e.createElementVNode("text",{class:"placeholderStyle"},"点击选择")])])]),e.createElementVNode("view",{class:"main area"},[e.createElementVNode("view",{class:"title rows mtb20"},[e.createElementVNode("image",{src:Br,mode:"aspectFit",class:"wh45"}),e.createElementVNode("view",{class:"f1 ml20"},"添加链接到视频")]),e.createElementVNode("view",{class:"rows mtb20"},[e.createElementVNode("view",{class:"mr10 f28"},"再第几秒展示"),e.createElementVNode("input",{type:"text",placeholder:"输入秒数","placeholder-class":"placeholderStyle"})])])]),e.createElementVNode("view",{class:"fill",style:{height:"210rpx"}}),e.createElementVNode("view",{class:"footer plr30 bfff shadow"},[e.createElementVNode("view",{class:"btn lg primary"},"立即上架")])]))},xu={__name:"feedback",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"}))},Uu={__name:"safeCenter",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"title"},"账号挂失"),e.createElementVNode("view",{class:"content"},"申诉找回九亿账号")]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"title"},"账号冻结"),e.createElementVNode("view",{class:"content"},"主动冻结账号保护账号资产")]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"title"},"解冻账号"),e.createElementVNode("view",{class:"content"},"风险解除后,可选择解除冻结")]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"title"},"账号注销"),e.createElementVNode("view",{class:"content"},"提交申请,清空当前账号")])])]))},Gu={__name:"bankCard",setup:t=>(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("view",{class:"card item",key:n},[e.createElementVNode("view",{class:"name"},"很行银行"),e.createElementVNode("view",{class:"type"},"储蓄卡"),e.createElementVNode("view",{class:"number"},"**** **** **** 0896")]))),64)),e.createElementVNode("view",{class:"item add rows",onClick:n[0]||(n[0]=e=>{return t="/pages/mine/setting/bankCardAdd",void uni.navigateTo({url:t});var t})},[e.createElementVNode("view",null,"添加银行卡"),e.createVNode(a,{type:"right",color:"#999"})])])])}},Fu=w({__name:"bankCardAdd",setup(t){const n=e.reactive([{name:"银行卡1"},{name:"银行卡2"},{name:"银行卡3"}]);return(t,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"form mtb30 mlr40"},[e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"title"},"银行卡类型"),e.createElementVNode("view",{class:"inputBox"},[e.createElementVNode("picker",{range:n,"range-key":"name"},[e.createElementVNode("view",{class:"rows"},[e.createElementVNode("input",{class:"input",disabled:"",type:"text",placeholder:"请选择银行卡类型"}),e.createVNode(o,{type:"bottom"})])],8,["range"])])]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"title"},"银行卡卡号"),e.createElementVNode("view",{class:"inputBox"},[e.createElementVNode("input",{class:"input",type:"text",placeholder:"请输入银行卡卡号"})])]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"title"},"姓名"),e.createElementVNode("view",{class:"inputBox"},[e.createElementVNode("input",{class:"input",type:"text",placeholder:"请输入姓名"})])]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"title"},"身份证号"),e.createElementVNode("view",{class:"inputBox"},[e.createElementVNode("input",{class:"input",type:"text",placeholder:"请输入身份证号"})])]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"title"},"手机号(银行绑定的手机号)"),e.createElementVNode("view",{class:"inputBox rows"},[e.createElementVNode("input",{class:"input",type:"text",placeholder:"请输入手机号"}),e.createElementVNode("view",{class:"getCode btn black plr30"},[e.createVNode(e.unref(be))])])]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"title"},"验证码"),e.createElementVNode("view",{class:"inputBox"},[e.createElementVNode("input",{class:"input",type:"text",placeholder:"请输入验证码"})])]),e.createElementVNode("view",{class:"btn lg black mt50"},"绑定")]),e.createElementVNode("view",{class:"fill"})])}}},[["__scopeId","data-v-67da2639"]]),Yu={__name:"get",setup(t){const n=e.reactive({amount:""}),a=e.reactive([{key:"bank",name:"银行卡"},{key:"wechat",name:"微信"},{key:"alipay",name:"支付宝"}]),o=e.ref(0);function i(e){const t=e.detail.value;o.value!==t&&(o.value=t)}function s(){}return(t,r)=>{const c=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"form mtb30 mlr30 f32"},[e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"key"},"提现金额"),e.createElementVNode("view",{class:"value inputBox df aic"},[e.createElementVNode("view",{class:"c333 f40 b"},"¥"),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[0]||(r[0]=e=>n.amount=e),placeholder:"输入金额"},null,512),[[e.vModelText,n.amount]])])]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"key rows"},[e.createElementVNode("view",null,"选择提现方式"),e.createElementVNode("view",{class:"c999 f26",onClick:s},"快速选择")]),e.createElementVNode("picker",{range:a,"range-key":"name",onChange:i},[e.createElementVNode("view",{class:"value inputBox rows"},[e.createElementVNode("view",{class:""},e.toDisplayString(a[o.value].name),1),e.createVNode(c,{type:"bottom"})])],40,["range"])]),"bank"===a[o.value].key?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"key"},"银行名称"),e.createElementVNode("view",{class:"value inputBox"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[1]||(r[1]=e=>n.bank=e),placeholder:"输入金额"},null,512),[[e.vModelText,n.bank]])])]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"key"},"银行卡号"),e.createElementVNode("view",{class:"value inputBox"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[2]||(r[2]=e=>n.account=e),placeholder:"输入金额"},null,512),[[e.vModelText,n.account]])])])],64)):e.createCommentVNode("",!0),"wechat"===a[o.value].key?(e.openBlock(),e.createElementBlock("view",{key:1,class:"line"},[e.createElementVNode("view",{class:"key"},"微信号"),e.createElementVNode("view",{class:"value inputBox"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[3]||(r[3]=e=>n.wecaht=e),placeholder:"输入金额"},null,512),[[e.vModelText,n.wecaht]])])])):e.createCommentVNode("",!0),"alipay"===a[o.value].key?(e.openBlock(),e.createElementBlock("view",{key:2,class:"line"},[e.createElementVNode("view",{class:"key"},"支付宝账号"),e.createElementVNode("view",{class:"value inputBox"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[4]||(r[4]=e=>n.alipay=e),placeholder:"输入金额"},null,512),[[e.vModelText,n.alipay]])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"line notice ptb20 plr30 br20"},[e.createElementVNode("view",{class:"key"},"温馨提示"),e.createElementVNode("view",{class:"content mt15 c333 f28"},"为保证账户资金安全,请仔细核对好填写信息,在申请提现")]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"btn pro black"},"提现")])]),e.createElementVNode("view",{class:"fill"})])}}},Hu={__name:"merchantBill",setup(t){const n=e.reactive({data:[],pageNum:1,pageSize:30,total:0});return E((()=>{})),T((()=>{n.homePageSize=1})),S((()=>{!function(){if(n.total<=n.data.length)return;n.pageNum++}()})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"list plr30"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,((t,n)=>e.createElementVNode("view",{key:t.id},[e.createElementVNode("view",{class:"list mt30"},[e.createElementVNode("view",null,"xxx用户消费购买了抱枕100"),e.createElementVNode("view",{class:"time mt10 f20 c999"},"2024.10.10 09:55")])]))),64))])]))}},Zu={__name:"teen",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo));function o(){Te.mine.updateUserInfo({data:{youth:1}}).then((e=>{200!=e.code?Me.alert({content:e.msg,showCancel:!1}):function(){let e=(new Date).getTime();e=Me.strtotime("+40 minute",e);const t=(new Date).setHours(20,0,0).valueOf();e=Me.formatTime("yyyy-MM-dd HH:mm:ss",Math.min(new Date(e).valueOf(),t)),Te.video.setAlarm({query:{endTime:e,type:3}}).then((t=>{if(200==t.code)return Me.alert("设置成功"),void Me.setAlarm({userId:a.value.userId,endTime:e,type:3});Me.alert({content:t.msg,showCancel:!1})}))}()}))}return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"container pr"},[e.createElementVNode("image",{class:"background",src:"/static/teen.png",mode:"widthFix"}),e.createElementVNode("view",{class:"notice pa c333 f28"},[e.createElementVNode("view",{class:"mtb30"},"开启青少年模式后将自动为您开启时间锁单日使用时间不超过40分钟晚上10点至早上6点无法使用九亿"),e.createElementVNode("view",{class:"mtb30"},"青少年模式开启后,如果到了使用时间需要输入密码解锁关闭青少年模式")])]),1==a.value.youth?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn pro black mtb30 mlr60"},"已开启青少年模式")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"btn pro black mtb30 mlr60",onClick:o},"开启青少年模式")),e.createElementVNode("view",{class:"fill",style:{height:"30rpx"}})]))}},qu={__name:"binding",setup(t){const{proxy:n}=e.getCurrentInstance(),a=O(),o=e.ref({});e.computed((()=>a.state.userinfo));const i=e.computed((()=>[{img:"/static/wx.png",name:"微信号",value:""},{img:"/static/shop-alipay-payment.png",name:"支付宝号",vlaue:""}]));return C((()=>{})),(t,a)=>{const s=f(e.resolveDynamicComponent("uni-popup"),On);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"line rows mtb30 mlr30 ptb40 plr30 bfff br20",key:a,onClick:e=>function(e){o.value=e,n.$refs.bind.open()}(t)},[e.createElementVNode("image",{class:"wh80",src:t.img,mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"f1 ml20"},[e.createElementVNode("view",{class:"key f32"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"content mt10 c999 f26"},[t.value?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(t.value),1)):(e.openBlock(),e.createElementBlock("text",{key:1},"未绑定"))])])],8,["onClick"])))),128))]),e.createVNode(s,{ref:"bind",type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"bindAlt popBot plr30 bfff"},[e.createElementVNode("view",{class:"header rows mtb30"},[e.createElementVNode("view",{class:""},"绑定"+e.toDisplayString(o.value.name),1)]),e.createElementVNode("view",{class:"inputBox mtb30 ptb10 plr20"},[e.createElementVNode("input",{type:"text",placeholder:"请输入"})]),e.createElementVNode("view",{class:"hint mtb30 c999 f26"},"请核对信息后进行绑定,因信息错误产生的问题后果自负"),e.createElementVNode("view",{class:"btn bar black mtb30"},"添加")])])),_:1},512)])}}},ju=w({__name:"feedback",setup:t=>(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"form mtb30 mlr30 ptb20 plr30 bfff br20"},[e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"key f36"},"请输入您遇到的问题标题"),e.createElementVNode("view",{class:"value inputBox"},[e.createElementVNode("input",{type:"text",placeholder:"请输入描述问题标题"})])]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"key f36"},"请输入您遇到的问题详情"),e.createElementVNode("view",{class:"value inputBox"},[e.createElementVNode("textarea",{class:"textarea",type:"text",placeholder:"请输入描述问题详情"})])]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"key f36"},"请输入您遇到的问题"),e.createElementVNode("view",{class:"imgList mt30"},[e.createElementVNode("view",{class:"imgs upload fmid wh180 br20"},[e.createVNode(a,{type:"plusempty",size:"80rpx",color:"#aaa"})])])]),e.createElementVNode("view",{class:"line"},[e.createElementVNode("view",{class:"key f36"},"请输入您的联系方式"),e.createElementVNode("view",{class:"value inputBox"},[e.createElementVNode("input",{type:"text",placeholder:"请输入联系方式"})])]),e.createElementVNode("view",{class:"btn lg bar black mt60 mb30"},"提交")]),e.createElementVNode("view",{class:"fill"})])}},[["__scopeId","data-v-f8a28fe4"]]),Ju=w({__name:"search",setup(t){const n=e.ref("result");return(t,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"page"},[e.createElementVNode("view",{class:"apexBox pr"},[e.createVNode(e.unref(tc),{mode:"flex",bgColor:"#ffffff00"},{content:e.withCtx((()=>[e.createElementVNode("view",{class:"searchBox rows f1 ml20 ptb10 plr20 bfff br20"},[e.createVNode(o,{type:"search",size:"40rpx",color:"#999"}),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>t.keyword=e),class:"f1 mlr20",placeholder:"请输入关键字",onBlur:a[1]||(a[1]=(...e)=>t.handleSearch&&t.handleSearch(...e))},null,544),[[e.vModelText,t.keyword]]),e.createVNode(o,{type:"camera",size:"40rpx",color:"#999"}),e.createElementVNode("view",{class:"btn bar sm primary ml20 plr20"},"搜索")])])),_:1}),e.createElementVNode("view",{class:"shopHeaderBg pfull"})]),e.createElementVNode("view",{class:"container f1 pr"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll"},[e.createElementVNode("view",{class:"main oh"},["search"===n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"searchList"},[e.createElementVNode("view",{class:"header rows"},[e.createElementVNode("view",{class:"title"},"历史搜索"),e.createVNode(o,{type:"trash",size:"30rpx",color:"#999"})]),e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("view",{class:"item",key:n},"袖子"))),64))])]),e.createElementVNode("view",{class:"searchList"},[e.createElementVNode("view",{class:"header rows"},[e.createElementVNode("view",{class:"title"},"搜索发现"),e.createElementVNode("view",{class:"rows"},[e.createVNode(o,{type:"refreshempty",size:"30rpx",color:"#999"}),e.createElementVNode("view",{class:"ml10 f24 c999"},"换一批")])]),e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,((t,n)=>e.createElementVNode("view",{class:"item",key:n},"笔记本电脑"))),64))])])],64)):e.createCommentVNode("",!0),"result"==n.value?(e.openBlock(),e.createElementBlock("view",{key:1,class:"product oh"},[e.createElementVNode("view",{class:"screen rows bfff"},[e.createElementVNode("view",{class:"item fmid f1"},[e.createElementVNode("view",null,"综合"),e.createVNode(o,{type:"bottom",size:"30rpx",color:"#999"})]),e.createElementVNode("view",{class:"item fmid f1"},[e.createElementVNode("view",null,"销量"),e.createVNode(o,{type:"bottom",size:"30rpx",color:"#999"})]),e.createElementVNode("view",{class:"item fmid f1"},[e.createElementVNode("view",null,"价格"),e.createVNode(o,{type:"bottom",size:"30rpx",color:"#999"})]),e.createElementVNode("view",{class:"item fmid f1"},[e.createElementVNode("view",null,"筛选"),e.createVNode(o,{type:"bars",size:"30rpx",color:"#999"})])]),e.createElementVNode("view",{class:"list mtb30 mlr30"},[e.createVNode(e.unref(Bn))])])):e.createCommentVNode("",!0)])])])])}}},[["__scopeId","data-v-d0ea9d8e"]]);const Xu=w({},[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-icons"),D);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"searchBox rows mtb30 mlr30 ptb10 bfff br20"},[e.createVNode(r,{class:"ml20",type:"search",size:"40rpx"}),e.createElementVNode("input",{class:"mlr20",placeholder:"请输入哈希号"}),e.createElementVNode("view",{class:"btn sm black mlr20 plr20"},"搜索")]),e.createElementVNode("view",{class:"listBox"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("view",{class:"item",key:n}))),64))])])}],["__scopeId","data-v-2564ba18"]]);var Ku={exports:{}};!function(e){e.exports=function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function t(t){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach((function(e){s(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n,a,o={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=void 0!==Le?Le:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},l="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),u="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),d="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),m="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),p="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),h="undefined"!=typeof uni&&"undefined"==typeof window&&!0,f=h&&"ios"===uni.getDeviceInfo().platform.toLocaleLowerCase(),v=(h&&uni.getDeviceInfo().platform.toLocaleLowerCase(),l||u||d||m||p||h),_=void 0!==c&&(void 0!==c.nativeModuleProxy||void 0!==c.ReactNative),y=u?qq:d?tt:m?swan:p?my:l?wx:h?uni:{},E=function(e){if("object"!==n(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var a=t;null!==Object.getPrototypeOf(a);)a=Object.getPrototypeOf(a);return t===a};function C(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(E(e)){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}return!1}var k=function(){function e(){a(this,e),this._n="WebRequest"}return i(e,[{key:"request",value:function(e,n){var a=this,o="".concat(this._n,".request"),i=e.downloadUrl||"",s=(e.method||"PUT").toUpperCase(),r=e.url;if(g("log","at node_modules/tim-upload-plugin/index.js:1","%c tim-upload-plugin %c","background:#0abf5b; padding:1px; border-radius:3px; color: #fff","background:transparent","".concat(o," URL:").concat(r)),e.qs){var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"=";return C(e)?"":E(e)?Object.keys(e).map((function(a){var o=encodeURIComponent(a)+n;return Array.isArray(e[a])?e[a].map((function(e){return o+encodeURIComponent(e)})).join(t):o+encodeURIComponent(e[a])})).filter(Boolean).join(t):void 0}(e.qs);c&&(r+="".concat(-1===r.indexOf("?")?"?":"&").concat(c))}var l=new XMLHttpRequest;l.open(s,r,!0),l.responseType=e.dataType||"text";var u=e.headers||{};if(e.uploadByIP&&(u=t(t({},u),{},{host:e.uploadIP})),!C(u))for(var d in u)u.hasOwnProperty(d)&&"content-length"!==d.toLowerCase()&&"user-agent"!==d.toLowerCase()&&"origin"!==d.toLowerCase()&&"host"!==d.toLowerCase()&&l.setRequestHeader(d,u[d]);return l.onload=function(){if(200===l.status)n(null,a._xhrRes(l,a._xhrBody(l,i,e.uploadByIP&&e.uploadIP),u));else{if(e.uploadIP&&-1===e.url.indexOf(e.uploadIP))return e.url=(o=e.url,s=e.uploadIP,o.replace(/^http(s)?:\/\/(.*?)\//,"https://".concat(s,"/"))),e.uploadByIP=!0,a.request(e,n);var t={code:l.status,message:JSON.stringify(l.responseText)};n(t,a._xhrRes(l,a._xhrBody(l,i,e.uploadByIP&&e.uploadIP),u))}var o,s},l.onerror=function(t){var o=a._xhrBody(l,i,e.uploadByIP&&e.uploadIP),s={code:l.status,message:JSON.stringify(l.responseText)};o||l.statusText||0!==l.status||(t.message="CORS blocked or network error"),n(s,a._xhrRes(l,o)),s=null},e.onProgress&&l.upload&&(l.upload.onprogress=function(t){var n=t.total,a=t.loaded,o=Math.floor(100*a/n);e.onProgress({total:n,loaded:a,percent:(o>=100?100:o)/100})}),l.send(e.resources),l}},{key:"_xhrRes",value:function(e,t){var n={};return e.getAllResponseHeaders().trim().split("\n").forEach((function(e){if(e){var t=e.indexOf(":"),a=e.substr(0,t).trim().toLowerCase(),o=e.substr(t+1).trim();n[a]=o}})),{statusCode:e.status,statusMessage:e.statusText,headers:n,data:t}}},{key:"_xhrBody",value:function(e,t,n){return 200===e.status&&t?{location:t,uploadIP:n}:{response:e.responseText,uploadIP:n}}}]),e}(),I=["unknown","image","video","audio","log"],S=["name"],T=function(){function e(){a(this,e)}return i(e,[{key:"request",value:function(e,n){var a=this,o=e.resources,i=void 0===o?"":o,s=e.headers,c=void 0===s?{}:s,l=e.url,u=e.downloadUrl,d=void 0===u?"":u,m=l,h=null,g=d.match(/^(https?:\/\/[^/]+\/)([^/]*\/?)(.*)$/),v=decodeURIComponent(g[3]),_=v.indexOf("?")>-1?v.split("?")[0]:v,E={key:e.fileKey?e.fileKey:_,success_action_status:200,"Content-Type":""},C={};if(f){var k=l.split("?sign=");if(k.length>1){var T=k[1];m="".concat(k[0],"?sign=").concat(encodeURIComponent("".concat(T))),C.sign=decodeURIComponent(T),C.signature=decodeURIComponent(T)}}var M={url:m,header:c,name:"file",filePath:i,formData:t(t({},E),C),timeout:e.timeout||3e5};if(p){var N=M;N.name,M=t(t({},r(N,S)),{},{fileName:"file",fileType:I[e.fileType]})}return(h=y.uploadFile(t(t({},M),{},{success:function(e){a._handleResponse({response:e,downloadUrl:d,callback:n})},fail:function(e){a._handleResponse({response:e,downloadUrl:d,callback:n})}}))).onProgressUpdate&&h.onProgressUpdate((function(t){e.onProgress&&e.onProgress({total:t.totalBytesExpectedToSend,loaded:t.totalBytesSent,percent:Math.floor(t.progress)/100})})),h}},{key:"_handleResponse",value:function(e){var n=e.downloadUrl,a=e.response,o=e.callback,i=a.header,s={};if(i)for(var r in i)i.hasOwnProperty(r)&&(s[r.toLowerCase()]=i[r]);var c=+a.statusCode;200===c?o(null,{statusCode:c,headers:s,data:t(t({},a.data),{},{location:n})}):o({code:c,message:JSON.stringify(a.data)},{statusCode:c,headers:s,data:void 0})}}]),e}(),M=function(){function e(){a(this,e)}return i(e,[{key:"request",value:function(e,t){var n=this,a=e.resources,o=void 0===a?"":a,i=e.fileKey,s=void 0===i?"":i,r=e.url,c=e.downloadUrl,l=void 0===c?"":c,u=new FormData;u.append("key",s),u.append("success_action_status",200),u.append("file",{uri:o,type:"application/octet-stream",name:"uploaded_file"}),fetch(r,{method:"POST",headers:{"Content-Type":"multipart/form-data"},body:u}).then((function(e){n._handleResponse({response:e,downloadUrl:l,callback:t})})).catch((function(e){n._handleResponse({response:e,downloadUrl:l,callback:t})}))}},{key:"_handleResponse",value:function(e){var t=e.downloadUrl,n=e.response,a=e.callback,o=n.headers,i=n.status,s=o&&o.map||{};200===i?a(null,{statusCode:200,headers:s,data:{location:t}}):a({code:i,message:JSON.stringify(n)},{statusCode:i,headers:s,data:void 0})}}]),e}();return function(){function e(){a(this,e),this.retry=1,this.tryCount=0,this.systemClockOffset=0,this.httpRequest=v?new T:_?new M:new k,g("log","at node_modules/tim-upload-plugin/index.js:1","TIMUploadPlugin.VERSION: ".concat("1.4.1"))}return i(e,[{key:"uploadFile",value:function(e,t){var n=this;return this.httpRequest.request(e,(function(a,o){a&&n.tryCount<n.retry&&n.allowRetry(a)?(n.tryCount++,n.uploadFile(e,t)):(n.tryCount=0,t(a,o))}))}},{key:"allowRetry",value:function(e){var t=!1,n=!1;if(e){var a=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var o=e.error&&e.error.Code,i=e.error&&e.error.Message;("RequestTimeTooSkewed"===o||"AccessDenied"===o&&"Request has expired"===i)&&(n=!0)}catch(c){}if(n&&a){var s=Date.now(),r=Date.parse(a);Math.abs(s+this.systemClockOffset-r)>=3e4&&(this.systemClockOffset=r-s,t=!0)}else 5===Math.floor(e.statusCode/100)&&(t=!0)}return t}}],[{key:"getVersion",value:function(){return"1.4.1"}}]),e}()}()}(Ku);const zu=Pe(Ku.exports);var Wu={exports:{}};!function(e){e.exports=function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(o=void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a.key,"string"))?o:String(o)),a)}var o}function n(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,o,i,s,r=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(r.push(a.value),r.length!==t);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return r}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){c=!0,s=e},f:function(){try{r||null==n.return||n.return()}finally{if(c)throw s}}}}var c,l,u=function(){for(var e=" \t\r\n~!@#$%^&*()_+-=【】、{}|;':\",。、《》?αβγδεζηθικλμνξοπρστυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ。,、;:?!…—·ˉ¨‘’“”々~‖∶"'`|〃〔〕〈〉《》「」『』.〖〗【】()[]{}ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩①②③④⑤⑥⑦⑧⑨⑩⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇≈≡≠=≤≥<>≮≯∷±+-×÷/∫∮∝∞∧∨∑∏∪∩∈∵∴⊥∥∠⌒⊙≌∽√§№☆★○●◎◇◆□℃‰€■△▲※→←↑↓〓¤°#&@\︿_ ̄―♂♀┌┍┎┐┑┒┓─┄┈├┝┞┟┠┡┢┣│┆┊┬┭┮┯┰┱┲┳┼┽┾┿╀╁╂╃└┕┖┗┘┙┚┛━┅┉┤┥┦┧┨┩┪┫┃┇┋┴┵┶┷┸┹┺┻╋╊╉╈╇╆╅╄",t=new Map,n=0,a=e.length;n<a;n++)t.set(e.charCodeAt(0),!0);return t}(),d=function(){function t(n){e(this,t);var a,i=n.input,s=n.isArray,r=n.isMap;this._trieTree={},s(i)?a=i:r(i)&&(a=o(i.keys()),this._map=i);for(var c=0,l=a.length;c<l;c++)if(a[c]){for(var u=this._trieTree,d=a[c],m=0,p=d.length;m<p;m++)u[d[m]]||(u[d[m]]={}),u=u[d[m]];u.isEnd=!0}}return n(t,[{key:"filter",value:function(e){var t=e.text,n=e.replacingEnabled;if(0===Object.keys(this._trieTree).length)return{isMatched:!1,modifiedText:t};for(var a=this._trieTree,o=t.toLowerCase(),i="",s=!1,r=o.length,c=0;c<r;c++)if(!0!==u.get(o.charCodeAt(c))){for(var l=0,d="",m=!1,p=c;p<r;p++){if(!a[o[p]]){a=this._trieTree;break}if(d+=o[p],a[o[p]].isEnd){m=!0,l=p-c,a=this._trieTree;break}a=a[o[p]]}if(l>1&&(c+=l),m){if(s=!0,!n)break;var h=this._map.get(d)||"*";i=t.replace(new RegExp(d,"gi"),h)}}return{isMatched:s,modifiedText:i}}},{key:"reset",value:function(){this._trieTree={},this._map=null}}]),t}(),m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==Le?Le:"undefined"!=typeof self?self:{},p={},h=(c=function(e,t){var n,a,o,i,s,r,c,l,u,d,h,g,f;e.exports=(r=r||function(e){var t;if("undefined"!=typeof window&&Ve&&(t=Ve),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==m&&m.crypto&&(t=m.crypto),!t)try{t=p}catch(f){}var n=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(f){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(f){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},i=o.lib={},s=i.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},r=i.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,a=this.sigBytes,o=e.sigBytes;if(this.clamp(),a%4)for(var i=0;i<o;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[a+i>>>2]|=s<<24-(a+i)%4*8}else for(i=0;i<o;i+=4)t[a+i>>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],a=0;a<e;a+=4)t.push(n());return new r.init(t,e)}}),c=o.enc={},l=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;a.push((i>>>4).toString(16)),a.push((15&i).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a+=2)n[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new r.init(n,t/2)}},u=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new r.init(n,t)}},d=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,a=this._data,o=a.words,i=a.sigBytes,s=this.blockSize,c=i/(4*s),l=(c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*s,u=e.min(4*l,i);if(l){for(var d=0;d<l;d+=s)this._doProcessBlock(o,d);n=o.splice(0,l),a.sigBytes-=u}return new r.init(n,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(i.Hasher=h.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}}),o.algo={});return o}(Math),s=(i=r).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,a=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,r=0;r<4&&i+.75*r<n;r++)o.push(a.charAt(s>>>6*(3-r)&63));var c=a.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<n.length;o++)a[n.charCodeAt(o)]=o}var i=n.charAt(64);if(i){var r=e.indexOf(i);-1!==r&&(t=r)}return function(e,t,n){for(var a=[],o=0,i=0;i<t;i++)if(i%4){var r=n[e.charCodeAt(i-1)]<<i%4*2|n[e.charCodeAt(i)]>>>6-i%4*2;a[o>>>2]|=r<<24-o%4*8,o++}return s.create(a,o)}(e,t,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){var t=r,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=i.MD5=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,o=e[a];e[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,r=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],g=e[t+4],f=e[t+5],v=e[t+6],_=e[t+7],y=e[t+8],E=e[t+9],C=e[t+10],k=e[t+11],I=e[t+12],S=e[t+13],T=e[t+14],M=e[t+15],N=i[0],w=i[1],D=i[2],b=i[3];N=l(N,w,D,b,r,7,s[0]),b=l(b,N,w,D,c,12,s[1]),D=l(D,b,N,w,p,17,s[2]),w=l(w,D,b,N,h,22,s[3]),N=l(N,w,D,b,g,7,s[4]),b=l(b,N,w,D,f,12,s[5]),D=l(D,b,N,w,v,17,s[6]),w=l(w,D,b,N,_,22,s[7]),N=l(N,w,D,b,y,7,s[8]),b=l(b,N,w,D,E,12,s[9]),D=l(D,b,N,w,C,17,s[10]),w=l(w,D,b,N,k,22,s[11]),N=l(N,w,D,b,I,7,s[12]),b=l(b,N,w,D,S,12,s[13]),D=l(D,b,N,w,T,17,s[14]),N=u(N,w=l(w,D,b,N,M,22,s[15]),D,b,c,5,s[16]),b=u(b,N,w,D,v,9,s[17]),D=u(D,b,N,w,k,14,s[18]),w=u(w,D,b,N,r,20,s[19]),N=u(N,w,D,b,f,5,s[20]),b=u(b,N,w,D,C,9,s[21]),D=u(D,b,N,w,M,14,s[22]),w=u(w,D,b,N,g,20,s[23]),N=u(N,w,D,b,E,5,s[24]),b=u(b,N,w,D,T,9,s[25]),D=u(D,b,N,w,h,14,s[26]),w=u(w,D,b,N,y,20,s[27]),N=u(N,w,D,b,S,5,s[28]),b=u(b,N,w,D,p,9,s[29]),D=u(D,b,N,w,_,14,s[30]),N=d(N,w=u(w,D,b,N,I,20,s[31]),D,b,f,4,s[32]),b=d(b,N,w,D,y,11,s[33]),D=d(D,b,N,w,k,16,s[34]),w=d(w,D,b,N,T,23,s[35]),N=d(N,w,D,b,c,4,s[36]),b=d(b,N,w,D,g,11,s[37]),D=d(D,b,N,w,_,16,s[38]),w=d(w,D,b,N,C,23,s[39]),N=d(N,w,D,b,S,4,s[40]),b=d(b,N,w,D,r,11,s[41]),D=d(D,b,N,w,h,16,s[42]),w=d(w,D,b,N,v,23,s[43]),N=d(N,w,D,b,E,4,s[44]),b=d(b,N,w,D,I,11,s[45]),D=d(D,b,N,w,M,16,s[46]),N=m(N,w=d(w,D,b,N,p,23,s[47]),D,b,r,6,s[48]),b=m(b,N,w,D,_,10,s[49]),D=m(D,b,N,w,T,15,s[50]),w=m(w,D,b,N,f,21,s[51]),N=m(N,w,D,b,I,6,s[52]),b=m(b,N,w,D,h,10,s[53]),D=m(D,b,N,w,C,15,s[54]),w=m(w,D,b,N,c,21,s[55]),N=m(N,w,D,b,y,6,s[56]),b=m(b,N,w,D,M,10,s[57]),D=m(D,b,N,w,v,15,s[58]),w=m(w,D,b,N,S,21,s[59]),N=m(N,w,D,b,g,6,s[60]),b=m(b,N,w,D,k,10,s[61]),D=m(D,b,N,w,p,15,s[62]),w=m(w,D,b,N,E,21,s[63]),i[0]=i[0]+N|0,i[1]=i[1]+w|0,i[2]=i[2]+D|0,i[3]=i[3]+b|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(a/4294967296),s=a;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var r=this._hash,c=r.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return r},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,a,o,i,s){var r=e+(t&n|~t&a)+o+s;return(r<<i|r>>>32-i)+t}function u(e,t,n,a,o,i,s){var r=e+(t&a|n&~a)+o+s;return(r<<i|r>>>32-i)+t}function d(e,t,n,a,o,i,s){var r=e+(t^n^a)+o+s;return(r<<i|r>>>32-i)+t}function m(e,t,n,a,o,i,s){var r=e+(n^(t|~a))+o+s;return(r<<i|r>>>32-i)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),l=(c=r).lib,u=l.WordArray,d=l.Hasher,h=c.algo,g=[],f=h.SHA1=d.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],o=n[1],i=n[2],s=n[3],r=n[4],c=0;c<80;c++){if(c<16)g[c]=0|e[t+c];else{var l=g[c-3]^g[c-8]^g[c-14]^g[c-16];g[c]=l<<1|l>>>31}var u=(a<<5|a>>>27)+r+g[c];u+=c<20?1518500249+(o&i|~o&s):c<40?1859775393+(o^i^s):c<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,r=s,s=i,i=o<<30|o>>>2,o=a,a=u}n[0]=n[0]+a|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+r|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(a+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=d.clone.call(this);return e._hash=this._hash.clone(),e}}),c.SHA1=d._createHelper(f),c.HmacSHA1=d._createHmacHelper(f),function(e){var t=r,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),a=2;a<=n;a++)if(!(t%a))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var a=2,o=0;o<64;)t(a)&&(o<8&&(s[o]=n(e.pow(a,.5))),c[o]=n(e.pow(a,1/3)),o++),a++}();var l=[],u=i.SHA256=o.extend({_doReset:function(){this._hash=new a.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],o=n[1],i=n[2],s=n[3],r=n[4],u=n[5],d=n[6],m=n[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var h=l[p-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,f=l[p-2],v=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;l[p]=g+l[p-7]+v+l[p-16]}var _=a&o^a&i^o&i,y=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),E=m+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&u^~r&d)+c[p]+l[p];m=d,d=u,u=r,r=s+E|0,s=i,i=o,o=a,a=E+(y+_)|0}n[0]=n[0]+a|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+r|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+m|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(a/4294967296),n[15+(o+64>>>9<<4)]=a,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),function(){var e=r,t=e.lib.WordArray,n=e.enc;function a(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var n=e.length,a=[],o=0;o<n;o++)a[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return t.create(a,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],i=0;i<n;i+=2){var s=a(t[i>>>2]>>>16-i%4*8&65535);o.push(String.fromCharCode(s))}return o.join("")},parse:function(e){for(var n=e.length,o=[],i=0;i<n;i++)o[i>>>1]|=a(e.charCodeAt(i)<<16-i%2*16);return t.create(o,2*n)}}}(),function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,a=[],o=0;o<n;o++)a[o>>>2]|=e[o]<<24-o%4*8;t.call(this,a,n)}else t.apply(this,arguments)}).prototype=e}}(),
/** @preserve
(c) 2012 by C<><43>dric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function(){var e=r,t=e.lib,n=t.WordArray,a=t.Hasher,o=e.algo,i=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),m=o.RIPEMD160=a.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,o=e[a];e[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var r,m,y,E,C,k,I,S,T,M,N,w=this._hash.words,D=u.words,b=d.words,L=i.words,P=s.words,A=c.words,R=l.words;for(k=r=w[0],I=m=w[1],S=y=w[2],T=E=w[3],M=C=w[4],n=0;n<80;n+=1)N=r+e[t+L[n]]|0,N+=n<16?p(m,y,E)+D[0]:n<32?h(m,y,E)+D[1]:n<48?g(m,y,E)+D[2]:n<64?f(m,y,E)+D[3]:v(m,y,E)+D[4],N=(N=_(N|=0,A[n]))+C|0,r=C,C=E,E=_(y,10),y=m,m=N,N=k+e[t+P[n]]|0,N+=n<16?v(I,S,T)+b[0]:n<32?f(I,S,T)+b[1]:n<48?g(I,S,T)+b[2]:n<64?h(I,S,T)+b[3]:p(I,S,T)+b[4],N=(N=_(N|=0,R[n]))+M|0,k=M,M=T,T=_(S,10),S=I,I=N;N=w[1]+y+T|0,w[1]=w[2]+E+M|0,w[2]=w[3]+C+k|0,w[3]=w[4]+r+I|0,w[4]=w[0]+m+S|0,w[0]=N},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var r=i[s];i[s]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}return o},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function f(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function _(e,t){return e<<t|e>>>32-t}e.RIPEMD160=a._createHelper(m),e.HmacRIPEMD160=a._createHmacHelper(m)}(),function(){var e=r,t=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var a=e.blockSize,o=4*a;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),r=i.words,c=s.words,l=0;l<a;l++)r[l]^=1549556828,c[l]^=909522486;i.sigBytes=s.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}(),function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,o=e.algo,i=o.SHA1,s=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=s.create(n.hasher,e),i=a.create(),r=a.create([1]),c=i.words,l=r.words,u=n.keySize,d=n.iterations;c.length<u;){var m=o.update(t).finalize(r);o.reset();for(var p=m.words,h=p.length,g=m,f=1;f<d;f++){g=o.finalize(g),o.reset();for(var v=g.words,_=0;_<h;_++)p[_]^=v[_]}i.concat(m),l[0]++}return i.sigBytes=4*u,i}});e.PBKDF2=function(e,t,n){return c.create(n).compute(e,t)}}(),function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,o=e.algo,i=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,i=o.hasher.create(),s=a.create(),r=s.words,c=o.keySize,l=o.iterations;r.length<c;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<l;u++)n=i.finalize(n),i.reset();s.concat(n)}return s.sigBytes=4*c,s}});e.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),function(){var e=r,t=e.lib.WordArray,n=e.algo,a=n.SHA256,o=n.SHA224=a.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=a._createHelper(o),e.HmacSHA224=a._createHmacHelper(o)}(),function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,o=e.x64={};o.Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=n.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],o=0;o<t;o++){var i=e[o];n.push(i.high),n.push(i.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),a=t.length,o=0;o<a;o++)t[o]=t[o].clone();return e}})}(),function(e){var t=r,n=t.lib,a=n.WordArray,o=n.Hasher,i=t.x64.Word,s=t.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var a=(2*e+3*t)%5;e=t%5,t=a}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,s=0;s<24;s++){for(var r=0,d=0,m=0;m<7;m++){if(1&o){var p=(1<<m)-1;p<32?d^=1<<p:r^=1<<p-32}128&o?o=o<<1^113:o<<=1}u[s]=i.create(r,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=i.create()}();var m=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,a=this.blockSize/2,o=0;o<a;o++){var i=e[t+2*o],s=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(w=n[o]).high^=s,w.low^=i}for(var r=0;r<24;r++){for(var m=0;m<5;m++){for(var p=0,h=0,g=0;g<5;g++)p^=(w=n[m+5*g]).high,h^=w.low;var f=d[m];f.high=p,f.low=h}for(m=0;m<5;m++){var v=d[(m+4)%5],_=d[(m+1)%5],y=_.high,E=_.low;for(p=v.high^(y<<1|E>>>31),h=v.low^(E<<1|y>>>31),g=0;g<5;g++)(w=n[m+5*g]).high^=p,w.low^=h}for(var C=1;C<25;C++){var k=(w=n[C]).high,I=w.low,S=c[C];S<32?(p=k<<S|I>>>32-S,h=I<<S|k>>>32-S):(p=I<<S-32|k>>>64-S,h=k<<S-32|I>>>64-S);var T=d[l[C]];T.high=p,T.low=h}var M=d[0],N=n[0];for(M.high=N.high,M.low=N.low,m=0;m<5;m++)for(g=0;g<5;g++){var w=n[C=m+5*g],D=d[C],b=d[(m+1)%5+5*g],L=d[(m+2)%5+5*g];w.high=D.high^~b.high&L.high,w.low=D.low^~b.low&L.low}w=n[0];var P=u[r];w.high^=P.high,w.low^=P.low}},_doFinalize:function(){var t=this._data,n=t.words,o=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;n[o>>>5]|=1<<24-o%32,n[(e.ceil((o+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var s=this._state,r=this.cfg.outputLength/8,c=r/8,l=[],u=0;u<c;u++){var d=s[u],m=d.high,p=d.low;m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),l.push(p),l.push(m)}return new a.init(l,r)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=o._createHelper(m),t.HmacSHA3=o._createHmacHelper(m)}(Math),function(){var e=r,t=e.lib.Hasher,n=e.x64,a=n.Word,o=n.WordArray,i=e.algo;function s(){return a.create.apply(a,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=s()}();var u=i.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],o=n[1],i=n[2],s=n[3],r=n[4],u=n[5],d=n[6],m=n[7],p=a.high,h=a.low,g=o.high,f=o.low,v=i.high,_=i.low,y=s.high,E=s.low,C=r.high,k=r.low,I=u.high,S=u.low,T=d.high,M=d.low,N=m.high,w=m.low,D=p,b=h,L=g,P=f,A=v,R=_,O=y,V=E,B=C,x=k,U=I,G=S,F=T,Y=M,H=N,Z=w,q=0;q<80;q++){var j,J,X=l[q];if(q<16)J=X.high=0|e[t+2*q],j=X.low=0|e[t+2*q+1];else{var K=l[q-15],z=K.high,W=K.low,Q=(z>>>1|W<<31)^(z>>>8|W<<24)^z>>>7,$=(W>>>1|z<<31)^(W>>>8|z<<24)^(W>>>7|z<<25),ee=l[q-2],te=ee.high,ne=ee.low,ae=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=l[q-7],se=ie.high,re=ie.low,ce=l[q-16],le=ce.high,ue=ce.low;J=(J=(J=Q+se+((j=$+re)>>>0<$>>>0?1:0))+ae+((j+=oe)>>>0<oe>>>0?1:0))+le+((j+=ue)>>>0<ue>>>0?1:0),X.high=J,X.low=j}var de,me=B&U^~B&F,pe=x&G^~x&Y,he=D&L^D&A^L&A,ge=b&P^b&R^P&R,fe=(D>>>28|b<<4)^(D<<30|b>>>2)^(D<<25|b>>>7),ve=(b>>>28|D<<4)^(b<<30|D>>>2)^(b<<25|D>>>7),_e=(B>>>14|x<<18)^(B>>>18|x<<14)^(B<<23|x>>>9),ye=(x>>>14|B<<18)^(x>>>18|B<<14)^(x<<23|B>>>9),Ee=c[q],Ce=Ee.high,ke=Ee.low,Ie=H+_e+((de=Z+ye)>>>0<Z>>>0?1:0),Se=ve+ge;H=F,Z=Y,F=U,Y=G,U=B,G=x,B=O+(Ie=(Ie=(Ie=Ie+me+((de+=pe)>>>0<pe>>>0?1:0))+Ce+((de+=ke)>>>0<ke>>>0?1:0))+J+((de+=j)>>>0<j>>>0?1:0))+((x=V+de|0)>>>0<V>>>0?1:0)|0,O=A,V=R,A=L,R=P,L=D,P=b,D=Ie+(fe+he+(Se>>>0<ve>>>0?1:0))+((b=de+Se|0)>>>0<de>>>0?1:0)|0}h=a.low=h+b,a.high=p+D+(h>>>0<b>>>0?1:0),f=o.low=f+P,o.high=g+L+(f>>>0<P>>>0?1:0),_=i.low=_+R,i.high=v+A+(_>>>0<R>>>0?1:0),E=s.low=E+V,s.high=y+O+(E>>>0<V>>>0?1:0),k=r.low=k+x,r.high=C+B+(k>>>0<x>>>0?1:0),S=u.low=S+G,u.high=I+U+(S>>>0<G>>>0?1:0),M=d.low=M+Y,d.high=T+F+(M>>>0<Y>>>0?1:0),w=m.low=w+Z,m.high=N+H+(w>>>0<Z>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[30+(a+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(a+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),function(){var e=r,t=e.x64,n=t.Word,a=t.WordArray,o=e.algo,i=o.SHA512,s=o.SHA384=i.extend({_doReset:function(){this._hash=new a.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=i._createHelper(s),e.HmacSHA384=i._createHmacHelper(s)}(),r.lib.Cipher||function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,o=t.BufferedBlockAlgorithm,i=e.enc,s=(i.Utf8,i.Base64),c=e.algo.EvpKDF,l=t.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?_:f}return function(t){return{encrypt:function(n,a,o){return e(a).encrypt(t,n,a,o)},decrypt:function(n,a,o){return e(a).decrypt(t,n,a,o)}}}}()}),u=(t.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),e.mode={}),d=t.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),m=u.CBC=function(){var e=d.extend();function t(e,t,n){var a,o=this._iv;o?(a=o,this._iv=void 0):a=this._prevBlock;for(var i=0;i<n;i++)e[t+i]^=a[i]}return e.Encryptor=e.extend({processBlock:function(e,n){var a=this._cipher,o=a.blockSize;t.call(this,e,n,o),a.encryptBlock(e,n),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var a=this._cipher,o=a.blockSize,i=e.slice(n,n+o);a.decryptBlock(e,n),t.call(this,e,n,o),this._prevBlock=i}}),e}(),p=(e.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,o=n-e.sigBytes%n,i=o<<24|o<<16|o<<8|o,s=[],r=0;r<o;r+=4)s.push(i);var c=a.create(s,o);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},h=(t.BlockCipher=l.extend({cfg:l.cfg.extend({mode:m,padding:p}),reset:function(){var e;l.reset.call(this);var t=this.cfg,n=t.iv,a=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=a.createEncryptor:(e=a.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(a,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),t.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),g=(e.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(t):t).toString(s)},parse:function(e){var t,n=s.parse(e),o=n.words;return 1398893684==o[0]&&1701076831==o[1]&&(t=a.create(o.slice(2,4)),o.splice(0,4),n.sigBytes-=16),h.create({ciphertext:n,salt:t})}},f=t.SerializableCipher=n.extend({cfg:n.extend({format:g}),encrypt:function(e,t,n,a){a=this.cfg.extend(a);var o=e.createEncryptor(n,a),i=o.finalize(t),s=o.cfg;return h.create({ciphertext:i,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:a.format})},decrypt:function(e,t,n,a){return a=this.cfg.extend(a),t=this._parse(t,a.format),e.createDecryptor(n,a).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(e.kdf={}).OpenSSL={execute:function(e,t,n,o){o||(o=a.random(8));var i=c.create({keySize:t+n}).compute(e,o),s=a.create(i.words.slice(t),4*n);return i.sigBytes=4*t,h.create({key:i,iv:s,salt:o})}},_=t.PasswordBasedCipher=f.extend({cfg:f.cfg.extend({kdf:v}),encrypt:function(e,t,n,a){var o=(a=this.cfg.extend(a)).kdf.execute(n,e.keySize,e.ivSize);a.iv=o.iv;var i=f.encrypt.call(this,e,t,o.key,a);return i.mixIn(o),i},decrypt:function(e,t,n,a){a=this.cfg.extend(a),t=this._parse(t,a.format);var o=a.kdf.execute(n,e.keySize,e.ivSize,t.salt);return a.iv=o.iv,f.decrypt.call(this,e,t,o.key,a)}})}(),r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();function t(e,t,n,a){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,a.encryptBlock(o,0);for(var s=0;s<n;s++)e[t+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(e,n){var a=this._cipher,o=a.blockSize;t.call(this,e,n,o,a),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var a=this._cipher,o=a.blockSize,i=e.slice(n,n+o);t.call(this,e,n,o,a),this._prevBlock=i}}),e}(),r.mode.ECB=((o=r.lib.BlockCipherMode.extend()).Encryptor=o.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),o.Decryptor=o.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),o),r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=4*t,o=a-n%a,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126={pad:function(e,t){var n=4*t,a=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.mode.OFB=(a=(n=r.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var s=0;s<a;s++)e[t+s]^=i[s]}}),n.Decryptor=a,n),r.pad.NoPadding={pad:function(){},unpad:function(){}},function(){var e=r,t=e.lib.CipherParams,n=e.enc.Hex;e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var a=n.parse(e);return t.create({ciphertext:a})}}}(),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,a=[],o=[],i=[],s=[],c=[],l=[],u=[],d=[],m=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,a[n]=h,o[h]=n;var g=e[n],f=e[g],v=e[f],_=257*e[h]^16843008*h;i[n]=_<<24|_>>>8,s[n]=_<<16|_>>>16,c[n]=_<<8|_>>>24,l[n]=_,_=16843009*v^65537*f^257*g^16843008*n,u[h]=_<<24|_>>>8,d[h]=_<<16|_>>>16,m[h]=_<<8|_>>>24,p[h]=_,n?(n=g^e[e[e[v^g]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,o=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],s=0;s<o;s++)s<n?i[s]=t[s]:(l=i[s-1],s%n?n>6&&s%n==4&&(l=a[l>>>24]<<24|a[l>>>16&255]<<16|a[l>>>8&255]<<8|a[255&l]):(l=a[(l=l<<8|l>>>24)>>>24]<<24|a[l>>>16&255]<<16|a[l>>>8&255]<<8|a[255&l],l^=h[s/n|0]<<24),i[s]=i[s-n]^l);for(var r=this._invKeySchedule=[],c=0;c<o;c++){if(s=o-c,c%4)var l=i[s];else l=i[s-4];r[c]=c<4||s<=4?l:u[a[l>>>24]]^d[a[l>>>16&255]]^m[a[l>>>8&255]]^p[a[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,i,s,c,l,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,m,p,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,a,o,i,s,r){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],m=e[t+3]^n[3],p=4,h=1;h<c;h++){var g=a[l>>>24]^o[u>>>16&255]^i[d>>>8&255]^s[255&m]^n[p++],f=a[u>>>24]^o[d>>>16&255]^i[m>>>8&255]^s[255&l]^n[p++],v=a[d>>>24]^o[m>>>16&255]^i[l>>>8&255]^s[255&u]^n[p++],_=a[m>>>24]^o[l>>>16&255]^i[u>>>8&255]^s[255&d]^n[p++];l=g,u=f,d=v,m=_}g=(r[l>>>24]<<24|r[u>>>16&255]<<16|r[d>>>8&255]<<8|r[255&m])^n[p++],f=(r[u>>>24]<<24|r[d>>>16&255]<<16|r[m>>>8&255]<<8|r[255&l])^n[p++],v=(r[d>>>24]<<24|r[m>>>16&255]<<16|r[l>>>8&255]<<8|r[255&u])^n[p++],_=(r[m>>>24]<<24|r[l>>>16&255]<<16|r[u>>>8&255]<<8|r[255&d])^n[p++],e[t]=g,e[t+1]=f,e[t+2]=v,e[t+3]=_},keySize:8});e.AES=t._createHelper(g)}(),function(){var e=r,t=e.lib,n=t.WordArray,a=t.BlockCipher,o=e.algo,i=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var a=i[n]-1;t[n]=e[a>>>5]>>>31-a%32&1}for(var o=this._subKeys=[],r=0;r<16;r++){var l=o[r]=[],u=c[r];for(n=0;n<24;n++)l[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],m.call(this,4,252645135),m.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),m.call(this,1,1431655765);for(var a=0;a<16;a++){for(var o=n[a],i=this._lBlock,s=this._rBlock,r=0,c=0;c<8;c++)r|=l[c][((s^o[c])&u[c])>>>0];this._lBlock=s,this._rBlock=i^r}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,m.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function m(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=a._createHelper(d);var h=o.TripleDES=a.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),a=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(a)),this._des3=d.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=a._createHelper(h)}(),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,a=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,a=this._S=[],o=0;o<256;o++)a[o]=o;o=0;for(var i=0;o<256;o++){var s=o%n,r=t[s>>>2]>>>24-s%4*8&255;i=(i+a[o]+r)%256;var c=a[o];a[o]=a[i],a[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,a=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,a|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,a}e.RC4=t._createHelper(a);var i=n.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(i)}(),
/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/
r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,a=255&e;255===t?(t=0,255===n?(n=0,255===a?a=0:++a):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=a}return e}var n=e.Encryptor=e.extend({processBlock:function(e,n){var a,o=this._cipher,i=o.blockSize,s=this._iv,r=this._counter;s&&(r=this._counter=s.slice(0),this._iv=void 0),0===((a=r)[0]=t(a[0]))&&(a[1]=t(a[1]));var c=r.slice(0);o.encryptBlock(c,0);for(var l=0;l<i;l++)e[n+l]^=c[l]}});return e.Decryptor=n,e}(),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,a=[],o=[],i=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)o[n]^=a[n+4&7];if(t){var i=t.words,s=i[0],r=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),d=l>>>16|4294901760&u,m=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=m,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=m,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[t+o]^=a[o]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var a=e[n]+t[n],s=65535&a,r=a>>>16,c=((s*s>>>17)+s*r>>>15)+r*r,l=((4294901760&a)*a|0)+((65535&a)*a|0);i[n]=c^l}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}e.Rabbit=t._createHelper(s)}(),r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var s=i.slice(0);n.encryptBlock(s,0),i[a-1]=i[a-1]+1|0;for(var r=0;r<a;r++)e[t+r]^=s[r]}});return e.Decryptor=t,e}(),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,a=[],o=[],i=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)a[o]^=n[o+4&7];if(t){var i=t.words,s=i[0],r=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),d=l>>>16|4294901760&u,m=u<<16|65535&l;for(a[0]^=l,a[1]^=d,a[2]^=u,a[3]^=m,a[4]^=l,a[5]^=d,a[6]^=u,a[7]^=m,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[t+o]^=a[o]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var a=e[n]+t[n],s=65535&a,r=a>>>16,c=((s*s>>>17)+s*r>>>15)+r*r,l=((4294901760&a)*a|0)+((65535&a)*a|0);i[n]=c^l}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}e.RabbitLegacy=t._createHelper(s)}(),r.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},r)},c(l={exports:{}},l.exports),l.exports);return function(){function t(n){e(this,t);var a=n.isArray,o=n.isMap,i=n.isDevMode;this._isArray=a,this._isMap=o,this._isDevMode=i,this._interceptProfanityList=[],this._interceptFilter=null,this._interceptRegExpList=[],this._replacingProfanityMap=new Map,this._replacingFilter=null,this._replacingRegExpMap=new Map,this._key="",this._iv="",this._decryptOptions=void 0,this._n="TIMProfanityFilterPlugin",!0===i&&g("log","at node_modules/tim-profanity-filter-plugin/index.js:15","".concat(this._n,".VERSION:").concat("1.1.0"))}return n(t,[{key:"onToken",value:function(e){this._key=h.enc.Utf8.parse(e.slice(0,32)),this._iv=this._key,this._decryptOptions={iv:this._iv,mode:h.mode.CBC,padding:h.pad.Pkcs7}}},{key:"onLexiconSliced",value:function(e){if(this._isArray(e)&&0!==e.length){var t,n,a,o=r(e);try{for(o.s();!(a=o.n()).done;){var i=a.value,s=i.filterType,c=i.profanityType,l=i.profanity,u=i.replacement;t=this._getDecryptedString(l),n=this._getDecryptedString(u),1===s?1===c?this._interceptProfanityList.push(t):2===c&&this._interceptRegExpList.push(t):2===s&&(1===c?this._replacingProfanityMap.set(t,n):2===c&&this._replacingRegExpMap.set(t,n))}}catch(d){o.e(d)}finally{o.f()}}}},{key:"_getDecryptedString",value:function(e){var t=h.AES.decrypt(e,this._key,this._decryptOptions);return h.enc.Utf8.stringify(t).toLowerCase()}},{key:"onLexiconCompleted",value:function(e){this.onLexiconSliced(e),this._interceptFilter=new d({input:this._interceptProfanityList,isArray:this._isArray,isMap:this._isMap}),this._replacingFilter=new d({input:this._replacingProfanityMap,isArray:this._isArray,isMap:this._isMap}),!0===this._isDevMode&&(g("log","at node_modules/tim-profanity-filter-plugin/index.js:15","".concat(this._n," _interceptProfanityList ->"),this._interceptProfanityList),g("log","at node_modules/tim-profanity-filter-plugin/index.js:15","".concat(this._n," _interceptRegExpList ->"),this._interceptRegExpList),g("log","at node_modules/tim-profanity-filter-plugin/index.js:15","".concat(this._n," _replacingProfanityMap ->"),this._replacingProfanityMap),g("log","at node_modules/tim-profanity-filter-plugin/index.js:15","".concat(this._n," _replacingRegExpMap ->"),this._replacingRegExpMap))}},{key:"filter",value:function(e){var t={type:0,modifiedText:e};if("string"!=typeof e)return!0===this._isDevMode&&g("warn","at node_modules/tim-profanity-filter-plugin/index.js:15","".concat(this._n,".filter invalid params, string required!")),t;if(!0===this._interceptFilter.filter({text:e,replacingEnabled:!1}).isMatched)return t.type=1,t;for(var n=!1,o=0,i=this._interceptRegExpList.length;o<i;o++)if(new RegExp(this._interceptRegExpList[o],"gi").test(e.toLowerCase())){n=!0;break}if(n)return t.type=1,t;var s=this._replacingFilter.filter({text:e,replacingEnabled:!0});!0===s.isMatched&&(t.type=2,t.modifiedText=s.modifiedText);var c,l=t.modifiedText,u=null,d=r(this._replacingRegExpMap);try{for(d.s();!(c=d.n()).done;){var m=a(c.value,2),p=m[0],h=m[1];u=new RegExp(p,"gi"),l=l.replace(u,h)}}catch(f){d.e(f)}finally{d.f()}return l!==e&&(t.type=2,t.modifiedText=l),t}},{key:"reset",value:function(){this._isArray=null,this._isMap=null,this._interceptProfanityList.length=0,this._interceptRegExpList.length=0,this._replacingProfanityMap.clear(),this._replacingRegExpMap.clear(),this._key="",this._iv="",this._decryptOptions={},this._interceptFilter&&this._interceptFilter.reset(),this._replacingFilter&&this._replacingFilter.reset()}}]),t}()}()}(Wu);const Qu=Pe(Wu.exports);function $u(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}function ed(e,t,n,a){return new(n||(n=Promise))((function(o,i){function s(e){try{c(a.next(e))}catch(t){i(t)}}function r(e){try{c(a.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,r)}c((a=a.apply(e,t||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;let td=class e{constructor(t){return e.instance||(e.instance=this,this.engine=t,this.events={},this.bindIMEvents()),e.instance}addEvent(e,t){this.events[e]||(this.events[e]=new Map),this.events[e].set(t,1)}removeEvents(){Object.keys(this.events).forEach((e=>{this.events[e].clear()})),this.events={}}dispatch(e,t){if(this.events[e])for(const n of this.events[e].keys())n.call(this,t)}bindIMEvents(){this.engine.chat.on(this.engine.EVENT.SDK_READY,this.onSDKReady,this),this.engine.chat.on(this.engine.EVENT.SDK_NOT_READY,this.onSDKNotReady,this),this.engine.chat.on(this.engine.EVENT.KICKED_OUT,this.onKickedOut,this),this.engine.chat.on(this.engine.EVENT.NET_STATE_CHANGE,this.onNetStateChange,this),this.engine.chat.on(this.engine.EVENT.MESSAGE_RECEIVED,this.onReceiveMessage,this),this.engine.chat.on(this.engine.EVENT.MESSAGE_MODIFIED,this.onMessageModified,this),this.engine.chat.on(this.engine.EVENT.MESSAGE_REVOKED,this.onMessageRevoked,this),this.engine.chat.on(this.engine.EVENT.MESSAGE_READ_BY_PEER,this.onMessageReadByPeer,this),this.engine.chat.on(this.engine.EVENT.MESSAGE_READ_RECEIPT_RECEIVED,this.onMessageReadReceiptReceived,this),this.engine.chat.on(this.engine.EVENT.MESSAGE_REACTIONS_UPDATED,this.onMessageReactionsUpdated,this),this.engine.chat.on(this.engine.EVENT.CONVERSATION_LIST_UPDATED,this.onConversationListUpdated,this),this.engine.chat.on(this.engine.EVENT.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED,this.onTotalMessageCountUpdated,this),this.engine.chat.on(this.engine.EVENT.PROFILE_UPDATED,this.onProfileUpdated,this),this.engine.chat.on(this.engine.EVENT.BLACKLIST_UPDATED,this.onBlacklistUpdated,this),this.engine.chat.on(this.engine.EVENT.USER_STATUS_UPDATED,this.onUserStatusUpdated,this),this.engine.chat.on(this.engine.EVENT.GROUP_LIST_UPDATED,this.onGroupListUpdated,this),this.engine.chat.on(this.engine.EVENT.GROUP_ATTRIBUTES_UPDATED,this.onGroupAttributesUpdated,this),this.engine.chat.on(this.engine.EVENT.GROUP_COUNTER_UPDATED,this.onGroupCounterUpdated,this),this.engine.chat.on(this.engine.EVENT.FRIEND_LIST_UPDATED,this.onFriendListUpdated,this),this.engine.chat.on(this.engine.EVENT.FRIEND_APPLICATION_LIST_UPDATED,this.onFriendApplicationListUpdated,this)}unbindIMEvents(){this.engine.chat.off(this.engine.EVENT.SDK_READY,this.onSDKReady,this),this.engine.chat.off(this.engine.EVENT.SDK_NOT_READY,this.onSDKNotReady,this),this.engine.chat.off(this.engine.EVENT.KICKED_OUT,this.onKickedOut,this),this.engine.chat.off(this.engine.EVENT.NET_STATE_CHANGE,this.onNetStateChange,this),this.engine.chat.off(this.engine.EVENT.MESSAGE_RECEIVED,this.onReceiveMessage,this),this.engine.chat.off(this.engine.EVENT.MESSAGE_MODIFIED,this.onMessageModified,this),this.engine.chat.off(this.engine.EVENT.MESSAGE_REVOKED,this.onMessageRevoked,this),this.engine.chat.off(this.engine.EVENT.MESSAGE_READ_BY_PEER,this.onMessageReadByPeer,this),this.engine.chat.off(this.engine.EVENT.MESSAGE_READ_RECEIPT_RECEIVED,this.onMessageReadReceiptReceived,this),this.engine.chat.off(this.engine.EVENT.MESSAGE_REACTIONS_UPDATED,this.onMessageReactionsUpdated,this),this.engine.chat.off(this.engine.EVENT.CONVERSATION_LIST_UPDATED,this.onConversationListUpdated,this),this.engine.chat.off(this.engine.EVENT.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED,this.onTotalMessageCountUpdated,this),this.engine.chat.off(this.engine.EVENT.PROFILE_UPDATED,this.onProfileUpdated,this),this.engine.chat.off(this.engine.EVENT.BLACKLIST_UPDATED,this.onBlacklistUpdated,this),this.engine.chat.off(this.engine.EVENT.USER_STATUS_UPDATED,this.onUserStatusUpdated,this),this.engine.chat.off(this.engine.EVENT.GROUP_LIST_UPDATED,this.onGroupListUpdated,this),this.engine.chat.off(this.engine.EVENT.GROUP_ATTRIBUTES_UPDATED,this.onGroupAttributesUpdated,this),this.engine.chat.off(this.engine.EVENT.GROUP_COUNTER_UPDATED,this.onGroupCounterUpdated,this),this.engine.chat.off(this.engine.EVENT.FRIEND_LIST_UPDATED,this.onFriendListUpdated,this),this.engine.chat.off(this.engine.EVENT.FRIEND_APPLICATION_LIST_UPDATED,this.onFriendApplicationListUpdated,this)}onSDKReady(e){this.dispatch(this.engine.EVENT.SDK_READY,e.data)}onSDKNotReady(e){this.dispatch(this.engine.EVENT.SDK_NOT_READY,e.data)}onKickedOut(e){this.dispatch(this.engine.EVENT.KICKED_OUT,e.data)}onNetStateChange(e){this.dispatch(this.engine.EVENT.NET_STATE_CHANGE,e.data)}onReceiveMessage(e){this.dispatch(this.engine.EVENT.MESSAGE_RECEIVED,e.data)}onMessageModified(e){this.dispatch(this.engine.EVENT.MESSAGE_MODIFIED,e.data)}onMessageRevoked(e){this.dispatch(this.engine.EVENT.MESSAGE_REVOKED,e.data)}onMessageReadByPeer(e){this.dispatch(this.engine.EVENT.MESSAGE_READ_BY_PEER,e.data)}onMessageReadReceiptReceived(e){this.dispatch(this.engine.EVENT.MESSAGE_READ_RECEIPT_RECEIVED,e.data)}onMessageReactionsUpdated(e){this.dispatch(this.engine.EVENT.MESSAGE_REACTIONS_UPDATED,e.data)}onConversationListUpdated(e){this.dispatch(this.engine.EVENT.CONVERSATION_LIST_UPDATED,e.data)}onTotalMessageCountUpdated(e){this.dispatch(this.engine.EVENT.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED,e.data)}onProfileUpdated(e){this.dispatch(this.engine.EVENT.PROFILE_UPDATED,e.data)}onBlacklistUpdated(e){this.dispatch(this.engine.EVENT.BLACKLIST_UPDATED,e.data)}onUserStatusUpdated(e){this.dispatch(this.engine.EVENT.USER_STATUS_UPDATED,e.data)}onGroupListUpdated(e){this.dispatch(this.engine.EVENT.GROUP_LIST_UPDATED,e.data)}onGroupAttributesUpdated(e){this.dispatch(this.engine.EVENT.GROUP_ATTRIBUTES_UPDATED,e.data)}onGroupCounterUpdated(e){this.dispatch(this.engine.EVENT.GROUP_COUNTER_UPDATED,e.data)}onFriendListUpdated(e){this.dispatch(this.engine.EVENT.FRIEND_LIST_UPDATED,e.data)}onFriendApplicationListUpdated(e){this.dispatch(this.engine.EVENT.FRIEND_APPLICATION_LIST_UPDATED,e.data)}};var nd,ad,od,id,sd,rd,cd,ld,ud;!function(e){e.TUIStore="TUIStore",e.TUITranslate="TUITranslate",e.TUIConversation="TUIConversation",e.TUIChat="TUIChat",e.TUIGroup="TUIGroup",e.TUIUser="TUIUser",e.TUIFriend="TUIFriend"}(nd||(nd={})),function(e){e.APP="application",e.CONV="conversation",e.CHAT="chat",e.GRP="group",e.USER="user",e.FRIEND="friend",e.SEARCH="search",e.CUSTOM="custom"}(ad||(ad={})),function(e){e[e.UNSUB_USER=-1]="UNSUB_USER"}(od||(od={})),function(e){e.BUSINESS_ID="user_typing_status",e[e.STATUS_START=1]="STATUS_START",e[e.STATUS_END=0]="STATUS_END",e[e.VERSION=1]="VERSION",e[e.ACTION_START_ID=14]="ACTION_START_ID",e[e.ACTION_END_ID=0]="ACTION_END_ID",e.ACTION_START="EIMAMSG_InputStatus_Ing",e.ACTION_END="EIMAMSG_InputStatus_End",e[e.NEED_TYPING=1]="NEED_TYPING"}(id||(id={})),function(e){e.ADD="add",e.REMOVE="remove"}(sd||(sd={})),function(e){e[e.MSG_MODIFY_CONFLICT=2480]="MSG_MODIFY_CONFLICT",e[e.MSG_MODIFY_DISABLED_IN_AVCHATROOM=2481]="MSG_MODIFY_DISABLED_IN_AVCHATROOM",e[e.MODIFY_MESSAGE_NOT_EXIST=20026]="MODIFY_MESSAGE_NOT_EXIST"}(rd||(rd={})),function(e){e[e.NOT_INIT=-1e5]="NOT_INIT",e[e.INVALID_CONV_ID=-100001]="INVALID_CONV_ID",e[e.CONV_ID_SAME=-100002]="CONV_ID_SAME",e[e.CONV_NOT_EXIST=-100003]="CONV_NOT_EXIST",e[e.GET_MSG_LIST_ERROR=-100004]="GET_MSG_LIST_ERROR",e[e.MISMATCH_TYPE_AND_PAYLOAD=-100005]="MISMATCH_TYPE_AND_PAYLOAD"}(cd||(cd={})),function(e){e.MSG_MODIFY_CONFLICT="MODIFY_MESSAGE_ERROR,修改消息发生冲突, data.message 是最新的消息",e.MSG_MODIFY_DISABLED_IN_AVCHATROOM="MODIFY_MESSAGE_ERROR,不支持修改直播群消息.",e.MODIFY_MESSAGE_NOT_EXIST="MODIFY_MESSAGE_ERROR,消息不存在."}(ld||(ld={})),function(e){e.NOT_INIT="TUIChatEngine 初始化未完成,请确认 TUIChatEngine.login 接口调用是否正常。",e.INVALID_CONV_ID="会话 ID 无效",e.CONV_ID_SAME="您切换的是同一个会话 ID",e.CONV_NOT_EXIST="会话不存在",e.GET_MSG_LIST_ERROR="Chat SDK is not ready.",e.MISMATCH_TYPE_AND_PAYLOAD="type 与 payload 不匹配."}(ud||(ud={}));const dd=function(e){return void 0===e},md=function(e){return e.startsWith("_")},pd=function(e){return/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e)},hd=function(e){return e&&function(e){if("string"==typeof e)try{return!!JSON.parse(e)}catch(t){return!1}return!1}(e)?JSON.parse(e):e},gd=function(e){let t="";return t=e>=1048576?`${(e/1048576).toFixed(2)} Mb`:e>=1024?`${(e/1024).toFixed(2)} Kb`:`${e.toFixed(2)}B`,t},fd={"[TUIEmoji_Expect]":"emoji_0@2x.png","[TUIEmoji_Blink]":"emoji_1@2x.png","[TUIEmoji_Guffaw]":"emoji_2@2x.png","[TUIEmoji_KindSmile]":"emoji_3@2x.png","[TUIEmoji_Haha]":"emoji_4@2x.png","[TUIEmoji_Cheerful]":"emoji_5@2x.png","[TUIEmoji_Smile]":"emoji_6@2x.png","[TUIEmoji_Sorrow]":"emoji_7@2x.png","[TUIEmoji_Speechless]":"emoji_8@2x.png","[TUIEmoji_Amazed]":"emoji_9@2x.png","[TUIEmoji_Complacent]":"emoji_10@2x.png","[TUIEmoji_Lustful]":"emoji_11@2x.png","[TUIEmoji_Stareyes]":"emoji_12@2x.png","[TUIEmoji_Giggle]":"emoji_13@2x.png","[TUIEmoji_Daemon]":"emoji_14@2x.png","[TUIEmoji_Rage]":"emoji_15@2x.png","[TUIEmoji_Yawn]":"emoji_16@2x.png","[TUIEmoji_TearsLaugh]":"emoji_17@2x.png","[TUIEmoji_Silly]":"emoji_18@2x.png","[TUIEmoji_Wail]":"emoji_19@2x.png","[TUIEmoji_Kiss]":"emoji_20@2x.png","[TUIEmoji_Trapped]":"emoji_21@2x.png","[TUIEmoji_Fear]":"emoji_22@2x.png","[TUIEmoji_BareTeeth]":"emoji_23@2x.png","[TUIEmoji_FlareUp]":"emoji_24@2x.png","[TUIEmoji_Tact]":"emoji_25@2x.png","[TUIEmoji_Shit]":"emoji_26@2x.png","[TUIEmoji_ShutUp]":"emoji_27@2x.png","[TUIEmoji_Sigh]":"emoji_28@2x.png","[TUIEmoji_Hehe]":"emoji_29@2x.png","[TUIEmoji_Silent]":"emoji_30@2x.png","[TUIEmoji_Skull]":"emoji_31@2x.png","[TUIEmoji_Mask]":"emoji_32@2x.png","[TUIEmoji_Beer]":"emoji_33@2x.png","[TUIEmoji_Cake]":"emoji_34@2x.png","[TUIEmoji_RedPacket]":"emoji_35@2x.png","[TUIEmoji_Bombs]":"emoji_36@2x.png","[TUIEmoji_Ai]":"emoji_37@2x.png","[TUIEmoji_Celebrate]":"emoji_38@2x.png","[TUIEmoji_Bless]":"emoji_39@2x.png","[TUIEmoji_Flower]":"emoji_40@2x.png","[TUIEmoji_Watermelon]":"emoji_41@2x.png","[TUIEmoji_Cow]":"emoji_42@2x.png","[TUIEmoji_Fool]":"emoji_43@2x.png","[TUIEmoji_Surprised]":"emoji_44@2x.png","[TUIEmoji_Askance]":"emoji_45@2x.png","[TUIEmoji_Monster]":"emoji_46@2x.png","[TUIEmoji_Pig]":"emoji_47@2x.png","[TUIEmoji_Coffee]":"emoji_48@2x.png","[TUIEmoji_Ok]":"emoji_49@2x.png","[TUIEmoji_Heart]":"emoji_50@2x.png","[TUIEmoji_Sun]":"emoji_51@2x.png","[TUIEmoji_Moon]":"emoji_52@2x.png","[TUIEmoji_Star]":"emoji_53@2x.png","[TUIEmoji_Rich]":"emoji_54@2x.png","[TUIEmoji_Fortune]":"emoji_55@2x.png","[TUIEmoji_857]":"emoji_56@2x.png","[TUIEmoji_666]":"emoji_57@2x.png","[TUIEmoji_Prohibit]":"emoji_58@2x.png","[TUIEmoji_Convinced]":"emoji_59@2x.png","[TUIEmoji_Knife]":"emoji_60@2x.png","[TUIEmoji_Like]":"emoji_61@2x.png"},vd={"[TUIEmoji_Smile]":"[微笑]","[TUIEmoji_Expect]":"[期待]","[TUIEmoji_Blink]":"[眨眼]","[TUIEmoji_Guffaw]":"[大笑]","[TUIEmoji_KindSmile]":"[姨母笑]","[TUIEmoji_Haha]":"[哈哈哈]","[TUIEmoji_Cheerful]":"[愉快]","[TUIEmoji_Speechless]":"[无语]","[TUIEmoji_Amazed]":"[惊讶]","[TUIEmoji_Sorrow]":"[悲伤]","[TUIEmoji_Complacent]":"[得意]","[TUIEmoji_Silly]":"[傻了]","[TUIEmoji_Lustful]":"[色]","[TUIEmoji_Giggle]":"[憨笑]","[TUIEmoji_Kiss]":"[亲亲]","[TUIEmoji_Wail]":"[大哭]","[TUIEmoji_TearsLaugh]":"[哭笑]","[TUIEmoji_Trapped]":"[困]","[TUIEmoji_Mask]":"[口罩]","[TUIEmoji_Fear]":"[恐惧]","[TUIEmoji_BareTeeth]":"[龇牙]","[TUIEmoji_FlareUp]":"[发怒]","[TUIEmoji_Yawn]":"[打哈欠]","[TUIEmoji_Tact]":"[机智]","[TUIEmoji_Stareyes]":"[星星眼]","[TUIEmoji_ShutUp]":"[闭嘴]","[TUIEmoji_Sigh]":"[叹气]","[TUIEmoji_Hehe]":"[呵呵]","[TUIEmoji_Silent]":"[收声]","[TUIEmoji_Surprised]":"[惊喜]","[TUIEmoji_Askance]":"[白眼]","[TUIEmoji_Ok]":"[OK]","[TUIEmoji_Shit]":"[便便]","[TUIEmoji_Monster]":"[怪兽]","[TUIEmoji_Daemon]":"[恶魔]","[TUIEmoji_Rage]":"[恶魔怒]","[TUIEmoji_Fool]":"[衰]","[TUIEmoji_Pig]":"[猪]","[TUIEmoji_Cow]":"[牛]","[TUIEmoji_Ai]":"[AI]","[TUIEmoji_Skull]":"[骷髅]","[TUIEmoji_Bombs]":"[炸弹]","[TUIEmoji_Coffee]":"[咖啡]","[TUIEmoji_Cake]":"[蛋糕]","[TUIEmoji_Beer]":"[啤酒]","[TUIEmoji_Flower]":"[花]","[TUIEmoji_Watermelon]":"[瓜]","[TUIEmoji_Rich]":"[壕]","[TUIEmoji_Heart]":"[爱心]","[TUIEmoji_Moon]":"[月亮]","[TUIEmoji_Sun]":"[太阳]","[TUIEmoji_Star]":"[星星]","[TUIEmoji_RedPacket]":"[红包]","[TUIEmoji_Celebrate]":"[庆祝]","[TUIEmoji_Bless]":"[福]","[TUIEmoji_Fortune]":"[发]","[TUIEmoji_Convinced]":"[服]","[TUIEmoji_Prohibit]":"[禁]","[TUIEmoji_666]":"[666]","[TUIEmoji_857]":"[857]","[TUIEmoji_Knife]":"[刀]","[TUIEmoji_Like]":"[赞]"},_d={enabledMessageReadReceipt:Math.pow(2,5),enabledEmojiPlugin:Math.pow(2,48),enabledOnlineStatus:Math.pow(2,7),enabledCustomerServicePlugin:Math.pow(2,40),enabledTranslationPlugin:Math.pow(2,38),enabledVoiceToText:Math.pow(2,39)},yd=["messageList","conversationList","newMessageList"],Ed=["translateTextInfo","voiceToTextInfo"],Cd="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),kd="undefined"!=typeof uni&&"undefined"==typeof window,Id=Cd||kd,Sd="undefined"!=typeof uni,Td=("undefined"!=typeof uni||"undefined"!=typeof window)&&!Id,Md=Cd?wx:Sd?uni:window,Nd=Td&&window&&window.navigator&&window.navigator.userAgent||"",wd=/Android/i.test(Nd),Dd=/(?:Windows Phone)/.test(Nd),bd=/(?:SymbianOS)/.test(Nd),Ld=/iPad/i.test(Nd)||/iPhone/i.test(Nd)||/iPod/i.test(Nd),Pd=wd||Dd||bd||Ld,Ad=Td&&!Pd;class Rd{constructor(){this.global=Md,this.isOfficial=!1}static getInstance(){return Rd.instance||(Rd.instance=new Rd),Rd.instance}initOfficial(e){this.isOfficial=e}getPlatform(){let e="";return Ad?e="pc":Pd?e="h5":Cd?e="wechat":kd&&!Cd&&(e="app"),e}}class Od{constructor(){this.EVENT=mc.EVENT,this.TYPES=mc.TYPES,this.loginStatusPromise=new Map,this.userID="",this.isInited=!1}static getInstance(){return Od.instance||(Od.instance=new Od),Od.instance}mount(e,t){this[e]=t}login(e){const{chat:t,SDKAppID:n,userID:a}=e,o=1400187352===n||1400188366===n;return this.createChat(e),this.userID=a,Rd.getInstance().initOfficial(o),this.TUIStore.update(ad.APP,"isOfficial",o),this.TUIStore.update(ad.APP,"SDKVersion",mc.VERSION),this.eventCenter=new td(this),this.eventCenter.removeEvents(),this.initStore(),this.initService(),t&&t.isReady()?(g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","TUIChatEngine.login ok, from TUICore."),this.TUIUser.getUserProfile(),this.checkCommercialAbility(),Promise.resolve({})):(this.registerPlugin(e),this.eventCenter.addEvent(this.EVENT.SDK_READY,(()=>{this.onSDKReady()})),this.eventCenter.addEvent(this.EVENT.SDK_NOT_READY,(()=>{this.onSDKNotReady()})),this.loginChat(e))}logout(){return this.userID="",this.isInited=!1,this.chat.logout()}isReady(){var e;return(null===(e=this.chat)||void 0===e?void 0:e.isReady())||!1}setLogLevel(e){if(this.chat)return this.chat.setLogLevel(e);g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","TUIChatEngine 初始化未完成,请确认 TUIChatEngine.login 接口调用是否正常。")}destroy(){return this.eventCenter.unbindIMEvents(),this.isInited=!1,this.chat.destroy()}getMyUserID(){return this.userID}initStore(){this.TUIStore.reset(ad.CHAT),this.TUIStore.reset(ad.CONV),this.TUIStore.reset(ad.GRP),this.TUIStore.reset(ad.USER),this.TUIStore.reset(ad.SEARCH),g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","TUIChatEngine.initStore ok.")}initService(){this.TUIChat.init(),this.TUIConversation.init(),this.TUIUser.init(),this.initOptionalServices(),this.isInited=!0,g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","TUIChatEngine.initService ok.")}initOptionalServices(){const e=mc.VERSION.split(".");e[0]>3||3===e[0]&&e[1]>=3&&e[2]>0?(!0===this.chat.callExperimentalAPI("canIUseModule",["group-module"])&&this.TUIGroup.init(),!0===this.chat.callExperimentalAPI("canIUseModule",["relationship-module"])&&this.TUIFriend.init()):(this.TUIGroup.init(),this.TUIFriend.init())}createChat(e){const{chat:t}=e,n=$u(e,["chat"]);dd(t)?this.chat=mc.create(Object.assign(Object.assign({},n),{scene:"chat-uikit-engine"})):this.chat=t}loginChat(e){const{userID:t,userSig:n}=e;return new Promise(((e,a)=>{this.chat.login({userID:t,userSig:n}).then((t=>{g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","TUIChatEngine.loginChat ok."),this.checkCommercialAbility(),t.data.repeatLogin&&this.chat.isReady()&&e(t),this.loginStatusPromise.set("login",{resolve:e,reject:a,imResponse:t})})).catch((e=>{a(e)}))}))}registerPlugin(e){const{useUploadPlugin:t=!1,useProfanityFilterPlugin:n=!1,TIMPush:a,pushConfig:o,TUIOfflinePush:i,offlinePushConfig:s}=e;!0===t&&this.chat.registerPlugin({"tim-upload-plugin":zu}),!0===n&&this.chat.registerPlugin({"tim-profanity-filter-plugin":Qu}),!kd||Cd||dd(a)||dd(o)||this.chat.registerPlugin({"tim-push":a,pushConfig:o}),!kd||Cd||dd(i)||dd(s)||this.chat.registerPlugin({"tim-offline-push-plugin":i,offlinePushConfig:s})}onSDKReady(){if(this.loginStatusPromise.has("login")){const e=this.loginStatusPromise.get("login");e.resolve(e.imResponse),this.TUIUser.getUserProfile()}this.loginStatusPromise.delete("login")}onSDKNotReady(){this.loginStatusPromise.has("login")&&this.loginStatusPromise.get("login").reject(new Error("sdk not ready")),this.loginStatusPromise.delete("login")}checkCommercialAbility(){Object.keys(_d).forEach((e=>{const t=_d[e];this.chat.callExperimentalAPI("isCommercialAbilityEnabled",t).then((t=>{const{enabled:n=!1}=t.data;this.TUIStore.update(ad.APP,e,n)}))}))}}class Vd{constructor(){this.defaultStore={enabledMessageReadReceipt:!1,enabledEmojiPlugin:!1,enabledOnlineStatus:!1,enabledCustomerServicePlugin:!1,enabledTranslationPlugin:!1,enabledVoiceToText:!1,enableTyping:!0,enableConversationDraft:!0,isOfficial:!1,SDKVersion:"3.0.0",tasks:{sendMessage:!1,revokeMessage:!1,modifyNickName:!1,groupChat:!1,muteGroup:!1,dismissGroup:!1,call:!1,searchCloudMessage:!1,customerService:!1,translateTextMessage:!1}},this.store={enabledEmojiPlugin:!1,enabledMessageReadReceipt:!1,enabledOnlineStatus:!1,enabledCustomerServicePlugin:!1,enabledTranslationPlugin:!1,enabledVoiceToText:!1,enableTyping:!0,enableConversationDraft:!0,isOfficial:!1,SDKVersion:"3.0.0",tasks:{sendMessage:!1,revokeMessage:!1,modifyNickName:!1,groupChat:!1,muteGroup:!1,dismissGroup:!1,call:!1,searchCloudMessage:!1,customerService:!1,translateTextMessage:!1}}}update(e,t){this.store[e]=t}getData(e){return this.store[e]}reset(e=[]){this.store=Object.assign(Object.assign(Object.assign({},this.defaultStore),this.store),e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:this.defaultStore[t]})),{}))}}class Bd{constructor(){this.defaultStore={userProfile:{},displayOnlineStatus:!1,displayMessageReadReceipt:!0,userStatusList:new Map,kickedOut:"",netStateChange:"",userBlacklist:[],targetLanguage:"zh"},this.store={userProfile:{},displayOnlineStatus:!1,displayMessageReadReceipt:!0,userStatusList:new Map,kickedOut:"",netStateChange:"",userBlacklist:[],targetLanguage:"zh"}}update(e,t){"userStatusList"===e?this.updateUserStatusList(t):this.store[e]=t}getData(e){return this.store[e]}reset(e=[]){this.store=Object.assign(Object.assign(Object.assign({},this.defaultStore),this.store),e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:this.defaultStore[t]})),{}))}updateUserStatusList(e){0!==e.length?e.forEach((e=>{const{userID:t,statusType:n=0,customStatus:a=""}=e;n===od.UNSUB_USER?this.store.userStatusList.delete(t):this.store.userStatusList.set(t,{statusType:n,customStatus:a})})):this.store.userStatusList.clear()}}class xd{getEngine(){return Od.getInstance()}}const Ud=function(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(function(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}(e)){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}return!1},Gd=["[图片]","[语音]","[视频]","[文件]","[位置]","[地理位置]","[动画表情]","[自定义消息]","[群提示消息]","[聊天记录]"];class Fd extends xd{constructor(e){super(),this.initProxy(e),this.isMuted=this.messageRemindType===this.getEngine().TYPES.MSG_REMIND_ACPT_NOT_NOTE||this.messageRemindType===this.getEngine().TYPES.MSG_REMIND_DISCARD,this.operationType=0,this._conversation=e}initProxy(e){Object.keys(e).forEach((t=>{md(t)||(this[t]=e[t])}))}updateProperties(e){Object.keys(e).forEach((t=>{md(t)||(this[t]=e[t])}))}updateOperationType(e){this.operationType=e}getConversation(){return this._conversation}deleteConversation(){return this.getEngine().TUIConversation.deleteConversation(this.conversationID)}pinConversation(){return this.getEngine().TUIConversation.pinConversation({conversationID:this.conversationID,isPinned:!this.isPinned})}muteConversation(){const e=this.getEngine(),t={messageRemindType:!0===this.isMuted?e.TYPES.MSG_REMIND_ACPT_AND_NOTE:e.TYPES.MSG_REMIND_ACPT_NOT_NOTE};if(this.type===e.TYPES.CONV_C2C){const n=this.conversationID.replace(e.TYPES.CONV_C2C,"");t.userIDList=[n]}else if(this.type===e.TYPES.CONV_GROUP){const n=this.conversationID.replace(e.TYPES.CONV_GROUP,"");t.groupID=n}return e.TUIConversation.muteConversation(t)}getAvatar(){var e,t,n,a,o,i;const s=this.getEngine();let r="";switch(this.type){case s.TYPES.CONV_C2C:r=pd(null===(e=this.userProfile)||void 0===e?void 0:e.avatar)?null===(t=this.userProfile)||void 0===t?void 0:t.avatar:"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png";break;case s.TYPES.CONV_GROUP:r=pd(null===(n=this.groupProfile)||void 0===n?void 0:n.avatar)?null===(a=this.groupProfile)||void 0===a?void 0:a.avatar:"https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg";break;case s.TYPES.CONV_SYSTEM:r=pd(null===(o=this.groupProfile)||void 0===o?void 0:o.avatar)?null===(i=this.groupProfile)||void 0===i?void 0:i.avatar:"https://web.sdk.qcloud.com/component/TUIKit/assets/group_avatar.png"}return r}getShowName(){var e,t,n,a;const o=this.getEngine();let i="";switch(this.type){case o.TYPES.CONV_C2C:i=this.remark||(null===(e=this.userProfile)||void 0===e?void 0:e.nick)||(null===(t=this.userProfile)||void 0===t?void 0:t.userID)||"";break;case o.TYPES.CONV_GROUP:i=(null===(n=this.groupProfile)||void 0===n?void 0:n.name)||(null===(a=this.groupProfile)||void 0===a?void 0:a.groupID)||"";break;case o.TYPES.CONV_SYSTEM:i=o.TUITranslate.t("系统通知")}return i}getGroupAtInfo(){const e=this.getEngine(),t=e.TUITranslate.t.bind(e.TUITranslate),n=[`[${t("TUIConversation.有人@我")}]`,`[${t("TUIConversation.@所有人")}]`,`[${t("TUIConversation.@所有人")}][${t("TUIConversation.有人@我")}]`];let a="";for(let o=0;o<this.groupAtInfoList.length;o++)this.groupAtInfoList[o].atTypeArray[0]&&this.unreadCount>0&&(a=n[this.groupAtInfoList[o].atTypeArray[0]-1]);return a}getLastMessage(e){return"time"===e?this.getLastMessageTime():"text"===e?this.getLastMessageText():(g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`ConversationModel.getLastMessage key:${e} is invalid.`),null)}getLastMessageTime(){var e;const t=this.getEngine();let n="";return(null===(e=this.lastMessage)||void 0===e?void 0:e.lastTime)>0&&(n=function(e,t){const n=36e5,a=24*n,o=7*a,i=(new Date).getTime()-e;let s="";if(i<0)return s;const r=i/6e4,c=i/n,l=i/a,u=i/o;if(u>=1&&u<=4)s=` ${parseInt(`${u}`,10)} ${t("time.周")}${t("time.前")}`;else if(l>=1&&l<=6)s=` ${parseInt(`${l}`,10)} ${t("time.天")}${t("time.前")}`;else if(c>=1&&c<=23)s=` ${parseInt(`${c}`,10)} ${t("time.小时")}${t("time.前")}`;else if(r>=1&&r<=59)s=` ${parseInt(`${r}`,10)} ${t("time.分钟")}${t("time.前")}`;else if(i>=0&&i<=6e4)s=`${t("time.刚刚")}`;else{const t=new Date;t.setTime(e),s=`${t.getFullYear()}-${t.getMonth()+1<10?`0${t.getMonth()+1}`:t.getMonth()+1}-${t.getDate()<10?`0${t.getDate()}`:t.getDate()}`}return s}(1e3*this.lastMessage.lastTime,t.TUITranslate.t.bind(t.TUITranslate))),n}getLastMessageText(){var e;if(this.draftText)return hd(this.draftText).abstract;const t=this.getEngine(),n=t.TUITranslate.t.bind(t.TUITranslate);if(4===this.operationType)return n("TUIConversation.您已被群管理员移出群聊");if(5===this.operationType)return n("TUIConversation.该群聊已被解散");if(8===this.operationType)return n("TUIConversation.您已退出该群聊");const a=this._conversation,o=this.lastMessage;let i="",s="";const r=a.unreadCount>0&&a.messageRemindType===t.TYPES.MSG_REMIND_ACPT_NOT_NOTE?`[${a.unreadCount>99?"99+":a.unreadCount}${n("TUIConversation.条")}]`:"";if(a.type===t.TYPES.CONV_GROUP)if(o.fromAccount===t.getMyUserID())i=n("TUIConversation.我");else{const e=o.fromAccount;i=t.TUIFriend.getFriendRemark([e])[e]||o.nameCard||o.nick||e}if(o.type===t.TYPES.MSG_TEXT)s=this.decodeTextMessage(o.payload.text);else if(o.type===t.TYPES.MSG_CUSTOM){const a=hd(null===(e=null==o?void 0:o.payload)||void 0===e?void 0:e.data);if(1===(null==a?void 0:a.businessID))return s=t.TUIChat.messageHandler.handleCallKitSignaling(o),s;s=Gd.includes(o.messageForShow)?n(`TUIChat.${o.messageForShow}`):o.messageForShow}else s=Gd.includes(o.messageForShow)?n(`TUIChat.${o.messageForShow}`):o.messageForShow;return o.isRevoked&&(s=n("TUIChat.撤回了一条消息")),a.type===t.TYPES.CONV_GROUP&&o.type===t.TYPES.MSG_GRP_TIP?s:`${r}${i?`${i}:`:""}${s}`}decodeTextMessage(e){if(Ud(e))return e;const t=/(\[.+?\])/g;let n=e;if(t.test(e)){const a=this.getEngine(),o=a.TUITranslate.t.bind(a.TUITranslate);n=e.replace(t,(e=>{const t=o(`Emoji.${e}`);return Cd||!t||t.startsWith("Emoji.")?vd[e]||e:t}))}return n}}class Yd{constructor(){this.defaultStore={currentConversationID:"",totalUnreadCount:0,conversationList:[],currentConversation:null,operationTypeMap:new Map},this.store={currentConversationID:"",totalUnreadCount:0,conversationList:[],currentConversation:null,operationTypeMap:new Map}}update(e,t){switch(e){case"conversationList":this.updateConversationList(t);break;case"operationTypeMap":this.updateOperationTypeMap(t);break;default:this.store[e]=t}}getData(e){return this.store[e]}getModel(e){return this.store.conversationList.find((t=>t.conversationID===e))}reset(e=[]){this.store=Object.assign(Object.assign(Object.assign({},this.defaultStore),this.store),e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:this.defaultStore[t]})),{}))}updateConversationList(e){const t=[];e.forEach((e=>{let n=e;e instanceof Fd?n.updateProperties(e):n=new Fd(e);const a=this.getOperationType(e);n.updateOperationType(a),t.push(n)})),this.store.conversationList=t}updateOperationTypeMap(e){const{conversationID:t,operationType:n=0}=e;this.store.operationTypeMap.set(t,n)}getOperationType(e){const{conversationID:t}=e;return this.store.operationTypeMap.get(t)||0}}class Hd extends xd{constructor(e){super(),this.messageHandlers={[this.getEngine().TYPES.MSG_TEXT]:e=>this.getEngine().TUIChat.messageHandler.handleTextMessage(e),[this.getEngine().TYPES.MSG_FACE]:e=>this.getEngine().TUIChat.messageHandler.handleFaceMessage(e),[this.getEngine().TYPES.MSG_LOCATION]:e=>this.getEngine().TUIChat.messageHandler.handleLocationMessage(e),[this.getEngine().TYPES.MSG_IMAGE]:e=>this.getEngine().TUIChat.messageHandler.handleImageMessage(e),[this.getEngine().TYPES.MSG_AUDIO]:e=>this.getEngine().TUIChat.messageHandler.handleAudioMessage(e),[this.getEngine().TYPES.MSG_VIDEO]:e=>this.getEngine().TUIChat.messageHandler.handleVideoMessage(e),[this.getEngine().TYPES.MSG_FILE]:e=>this.getEngine().TUIChat.messageHandler.handleFileMessage(e),[this.getEngine().TYPES.MSG_CUSTOM]:e=>this.getEngine().TUIChat.messageHandler.handleCustomMessage(e),[this.getEngine().TYPES.MSG_MERGER]:e=>this.getEngine().TUIChat.messageHandler.handleMergeMessage(e),[this.getEngine().TYPES.MSG_GRP_TIP]:e=>this.getEngine().TUIChat.messageHandler.handleGroupTipsMessage(e)},this._message=e,this._signalingInfo=void 0,this.progress=0,this.reactionList=[],this.initProperties(e)}initProperties(e){Object.keys(e).forEach((t=>{md(t)||(this[t]=e[t])}))}updateProperties(e){this._message=e,Object.keys(e).forEach((t=>{md(t)||(this[t]=e[t])}))}getMessage(){return this._message}modifyMessage(e){return e.type&&this._message.type!==e.type&&!e.payload?Promise.reject({code:cd.MISMATCH_TYPE_AND_PAYLOAD,message:ud.MISMATCH_TYPE_AND_PAYLOAD}):(this._message.type=e.type||this._message.type,this._message.payload=e.payload||this._message.payload,this._message.cloudCustomData=e.cloudCustomData||this._message.cloudCustomData,this.getEngine().TUIChat.modifyMessage(this._message))}revokeMessage(){return this.getEngine().TUIChat.revokeMessage(this._message)}resendMessage(){return this.getEngine().TUIChat.resendMessage(this._message)}deleteMessage(){return this.getEngine().TUIChat.deleteMessage([this._message])}quoteMessage(){return this.getEngine().TUIChat.quoteMessage(this._message)}replyMessage(){return this.getEngine().TUIChat.replyMessage(this._message)}setMessageExtensions(e){return this.getEngine().TUIChat.setMessageExtensions(this._message,e)}getMessageExtensions(){return this.getEngine().TUIChat.getMessageExtensions(this._message)}deleteMessageExtensions(e){return this.getEngine().TUIChat.deleteMessageExtensions(this._message,e)}getSignalingInfo(){return this.type!==this.getEngine().TYPES.MSG_CUSTOM?null:dd(this._signalingInfo)?(this._signalingInfo=this.getEngine().chat.getSignalingInfo(this._message),this._signalingInfo):this._signalingInfo}getMessageContent(){const e=this.messageHandlers[this.type];if(dd(e))return{};if(this.type===this.getEngine().TYPES.MSG_GRP_TIP)return e(this._message);const t=this.getEngine().TUIFriend.getFriendRemark([this.from]);return Object.assign(Object.assign({},e(this._message)),{showName:t[this.from]||this.nameCard||this.nick||this.from})}sendForwardMessage(e){return this.getEngine().TUIChat.sendForwardMessage(e,[this._message])}}class Zd{constructor(){this.defaultStore={messageList:[],isCompleted:!1,nextReqMessageID:"",quoteMessage:{},newMessageList:[],typingStatus:!1,messageSource:void 0,translateTextInfo:void 0,voiceToTextInfo:void 0,userInfo:{}},this.store={messageList:[],isCompleted:!1,nextReqMessageID:"",quoteMessage:{},newMessageList:[],typingStatus:!1,messageSource:void 0,translateTextInfo:void 0,voiceToTextInfo:void 0,userInfo:{}}}update(e,t){switch(e){case"messageList":this.updateMessageList(t);break;case"translateTextInfo":this.updateTranslateTextInfo(t);break;case"voiceToTextInfo":this.updateVoiceToTextInfo(t);break;default:this.store[e]=t}}getData(e){return this.store[e]}getModel(e){return this.store.messageList.find((t=>t.ID===e))}reset(e=[]){const t=e.filter((e=>!Ed.includes(e)));this.store=Object.assign(Object.assign(Object.assign({},this.defaultStore),this.store),null==t?void 0:t.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:this.defaultStore[t]})),{}))}updateMessageList(e){const t=[];e.forEach((e=>{let n=e;e instanceof Hd||(n=this.getModel(e.ID),n?n.updateProperties(e):n=new Hd(e)),t.push(n)})),this.store.messageList=t}updateTranslateTextInfo(e){this.updateBykey("translateTextInfo",e)}updateVoiceToTextInfo(e){this.updateBykey("voiceToTextInfo",e)}updateBykey(e,t){const{conversationID:n,messageID:a,visible:o=!1}=t;this.store[e]||(this.store[e]=new Map),this.store[e].has(n)||this.store[e].set(n,[]);const i=this.store[e].get(n)||[];let s=!0;for(let r=0;r<i.length;r++)if(i[r].messageID===a){i[r].visible=o,s=!1;break}s&&i.push({messageID:a,visible:o}),this.store[e].set(n,i)}}class qd{constructor(e){this.groupAttributes={},this.groupCounters={},this.initProxy(e)}initProxy(e){Object.keys(e).forEach((t=>{md(t)||(this[t]=e[t])}))}}class Jd{constructor(){this.defaultStore={currentGroupID:"",currentGroup:{},currentGroupAttributes:{},currentGroupCounters:{},currentGroupMemberList:[],groupList:[],groupSystemNoticeList:[]},this.store={currentGroupID:"",currentGroup:void 0,currentGroupAttributes:{},currentGroupCounters:{},currentGroupMemberList:[],groupList:[],groupSystemNoticeList:[]}}update(e,t){switch(e){case"groupList":this.updateGroupList(t);break;case"currentGroup":this.store.currentGroup=t instanceof qd?t:new qd(t);break;default:this.store[e]=t}}getData(e){if("groupSystemNoticeList"===e){const e=[...this.store.groupSystemNoticeList];return this.store.groupSystemNoticeList.length=0,e}return this.store[e]}reset(e=[]){this.store=Object.assign(Object.assign(Object.assign({},this.defaultStore),this.store),e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:this.defaultStore[t]})),{}))}updateGroupList(e){this.store.groupList=e.map((e=>e instanceof qd?e:new qd(e)))}}class Xd{constructor(){this.store={}}update(e,t){this.store[e]=t}getData(e){return this.store[e]}reset(e=[]){0===e.length&&(this.store={}),this.store=Object.assign(Object.assign({},this.store),e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:void 0})),{}))}}class Kd{constructor(){this.defaultStore={friendList:[],friendApplicationList:[],friendApplicationUnreadCount:0},this.store={friendList:[],friendApplicationList:[],friendApplicationUnreadCount:0}}update(e,t){this.store[e]=t}getData(e){return this.store[e]}reset(e=[]){this.store=Object.assign(Object.assign(Object.assign({},this.defaultStore),this.store),e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:this.defaultStore[t]})),{}))}}class zd{constructor(){this.defaultStore={currentSearchInputValue:{value:"",searchType:"global"},currentSearchMessageType:{value:{key:"",label:"",value:""},searchType:"global"},currentSearchMessageTime:{value:{key:"",label:"",value:{timePosition:0,timePeriod:0}},searchType:"global"},currentSearchingStatus:{isSearching:!1,searchType:"global"},isShowInConversationSearch:!1},this.store={currentSearchInputValue:{value:"",searchType:"global"},currentSearchMessageType:{value:{key:"",label:"",value:""},searchType:"global"},currentSearchMessageTime:{value:{key:"",label:"",value:{timePosition:0,timePeriod:0}},searchType:"global"},currentSearchingStatus:{isSearching:!1,searchType:"global"},isShowInConversationSearch:!1}}update(e,t){this.store[e]=t}getData(e){return this.store[e]}reset(e=[]){this.store=Object.assign(Object.assign(Object.assign({},this.defaultStore),this.store),null==e?void 0:e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:this.defaultStore[t]})),{}))}}class Wd{constructor(){this.storeMap={[ad.APP]:new Vd,[ad.USER]:new Bd,[ad.CONV]:new Yd,[ad.CHAT]:new Zd,[ad.GRP]:new Jd,[ad.FRIEND]:new Kd,[ad.SEARCH]:new zd},this.task={}}static getInstance(){return Wd.instance||(Wd.instance=new Wd),Wd.instance}watch(e,t){this.task[e]||(this.task[e]={});const n=this.task[e];Object.keys(t).forEach((a=>{const o=t[a];n[a]||(n[a]=new Map),n[a].set(o,1),this.notifyOnWatch(e,a,o)}))}unwatch(e,t){if(!this.task[e])return;const n=this.task[e];Object.keys(t).forEach((e=>{var a;null===(a=n[e])||void 0===a||a.delete(t[e])}))}update(e,t,n){var a;e!==ad.CUSTOM||this.storeMap[e]||(this.storeMap[e]=new Xd),null===(a=this.storeMap[e])||void 0===a||a.update(t,n),this.notify(e,t)}getData(e,t){var n;return e!==ad.CUSTOM||this.storeMap[e]||(this.storeMap[e]=new Xd),null===(n=this.storeMap[e])||void 0===n?void 0:n.getData(t)}getConversationModel(e){var t;return null===(t=this.storeMap[ad.CONV])||void 0===t?void 0:t.getModel(e)}getMessageModel(e){var t;return null===(t=this.storeMap[ad.CHAT])||void 0===t?void 0:t.getModel(e)}reset(e,t=[],n=!1){if(e in this.storeMap){const a=this.storeMap[e];0===t.length&&(t=Object.keys(null==a?void 0:a.store)),a.reset(t),n&&t.forEach((t=>{this.notify(e,t)}))}}notifyOnWatch(e,t,n){const a=this.getData(e,t);yd.indexOf(t)>-1&&0===a.length||n&&n.call(this,a)}notify(e,t){if(!this.task[e])return;const n=this.task[e];if(n[t]){const a=n[t],o=this.getData(e,t);for(const[e]of a.entries())e.call(this,o)}}}function Qd(e){return(Qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function em(e){var t=function(e){if("object"!=Qd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qd(t)?t:t+""}function tm(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,em(a.key),a)}}function nm(e,t,n){return t&&tm(e.prototype,t),n&&tm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function am(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function om(e,t){return(om=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function im(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&om(e,t)}function sm(e,t){if(t&&("object"==Qd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return am(e)}function rm(e){return(rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cm(e,t,n){return(t=em(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function dm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?um(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):um(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mm={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},pm=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$d(this,e),this.init(t,n)}return nm(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||mm,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,a){return a&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,dm(dm({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),hm=function(){function e(){$d(this,e),this.observers={}}return nm(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function gm(){var e,t,n=new Promise((function(n,a){e=n,t=a}));return n.resolve=e,n.reject=t,n}function fm(e){return null==e?"":""+e}function vm(e,t,n){function a(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var s=a(i.shift());!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return o()?{}:{obj:e,k:a(i.shift())}}function _m(e,t,n){var a=vm(e,t,Object);a.obj[a.k]=n}function ym(e,t){var n=vm(e,t),a=n.obj,o=n.k;if(a)return a[o]}function Em(e,t,n){for(var a in t)"__proto__"!==a&&"constructor"!==a&&(a in e?"string"==typeof e[a]||e[a]instanceof String||"string"==typeof t[a]||t[a]instanceof String?n&&(e[a]=t[a]):Em(e[a],t[a],n):e[a]=t[a]);return e}function Cm(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var km={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Im(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return km[e]})):e}var Sm="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Tm=[" ",",","?","!",";"];function Mm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var a=t.split(n),o=e,i=0;i<a.length;++i){if(!o)return;if("string"==typeof o[a[i]]&&i+1<a.length)return;if(void 0===o[a[i]]){for(var s=2,r=a.slice(i,i+s).join(n),c=o[r];void 0===c&&a.length>i+s;)s++,c=o[r=a.slice(i,i+s).join(n)];if(void 0===c)return;if(null===c)return null;if(t.endsWith(r)){if("string"==typeof c)return c;if(r&&"string"==typeof c[r])return c[r]}var l=a.slice(i+s).join(n);return l?Mm(c,l,n):void 0}o=o[a[i]]}return o}}function Nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nm(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dm=function(){im(t,hm);var e=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=rm(e);if(t){var o=rm(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return sm(this,n)}}(t);function t(n){var a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return $d(this,t),a=e.call(this),Sm&&hm.call(am(a)),a.data=n||{},a.options=o,void 0===a.options.keySeparator&&(a.options.keySeparator="."),void 0===a.options.ignoreJSONStructure&&(a.options.ignoreJSONStructure=!0),a}return nm(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,i=void 0!==a.ignoreJSONStructure?a.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[e,t];n&&"string"!=typeof n&&(s=s.concat(n)),n&&"string"==typeof n&&(s=s.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(s=e.split("."));var r=ym(this.data,s);return r||!i||"string"!=typeof n?r:Mm(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,s=[e,t];n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=t,t=(s=e.split("."))[1]),this.addNamespaces(t),_m(this.data,s,a),o.silent||this.emit("added",e,t,n,a)}},{key:"addResources",value:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});a.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,a,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(a=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var r=ym(this.data,s)||{};a?Em(r,n,o):r=wm(wm({},r),n),_m(this.data,s,r),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?wm(wm({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),t}(),bm={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,a,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,a,o))})),t}};function Lm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Pm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lm(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Am={},Rm=function(){im(t,hm);var e=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=rm(e);if(t){var o=rm(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return sm(this,n)}}(t);function t(n){var a,o,i,s,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $d(this,t),a=e.call(this),Sm&&hm.call(am(a)),o=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i=n,s=am(a),o.forEach((function(e){i[e]&&(s[e]=i[e])})),a.options=r,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=pm.create("translator"),a}return nm(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var a=Tm.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===a.length)return!0;var o=new RegExp("(".concat(a.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i}(e,n,a));if(i&&!s){var r=e.match(this.interpolator.nestingRegexp);if(r&&r.length>0)return{key:e,namespaces:o};var c=e.split(n);(n!==a||n===a&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),e=c.join(a)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,a){var o=this;if("object"!==Qd(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"===Qd(n)&&(n=Pm({},n)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,r=this.extractFromKey(e[e.length-1],n),c=r.key,l=r.namespaces,u=l[l.length-1],d=n.lng||this.language,m=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(m){var p=n.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(u).concat(p).concat(c),usedKey:c,exactUsedKey:c,usedLng:d,usedNS:u}:"".concat(u).concat(p).concat(c)}return i?{res:c,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:u}:c}var h=this.resolve(e,n),g=h&&h.res,f=h&&h.usedKey||c,v=h&&h.exactUsedKey||c,_=Object.prototype.toString.apply(g),y=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject;if(E&&g&&"string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g&&["[object Number]","[object Function]","[object RegExp]"].indexOf(_)<0&&("string"!=typeof y||"[object Array]"!==_)){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var C=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,g,Pm(Pm({},n),{},{ns:l})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return i?(h.res=C,h):C}if(s){var k="[object Array]"===_,I=k?[]:{},S=k?v:f;for(var T in g)if(Object.prototype.hasOwnProperty.call(g,T)){var M="".concat(S).concat(s).concat(T);I[T]=this.translate(M,Pm(Pm({},n),{joinArrays:!1,ns:l})),I[T]===M&&(I[T]=g[T])}g=I}}else if(E&&"string"==typeof y&&"[object Array]"===_)(g=g.join(y))&&(g=this.extendTranslation(g,e,n,a));else{var N=!1,w=!1,D=void 0!==n.count&&"string"!=typeof n.count,b=t.hasDefaultValue(n),L=D?this.pluralResolver.getSuffix(d,n.count,n):"",P=n["defaultValue".concat(L)]||n.defaultValue;!this.isValidLookup(g)&&b&&(N=!0,g=P),this.isValidLookup(g)||(w=!0,g=c);var A=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:g,R=b&&P!==g&&this.options.updateMissing;if(w||N||R){if(this.logger.log(R?"updateKey":"missingKey",d,u,c,R?P:g),s){var O=this.resolve(c,Pm(Pm({},n),{},{keySeparator:!1}));O&&O.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var V=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var x=0;x<B.length;x++)V.push(B[x]);else"all"===this.options.saveMissingTo?V=this.languageUtils.toResolveHierarchy(n.lng||this.language):V.push(n.lng||this.language);var U=function(e,t,a){var i=b&&a!==g?a:A;o.options.missingKeyHandler?o.options.missingKeyHandler(e,u,t,i,R,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,u,t,i,R,n),o.emit("missingKey",e,u,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?V.forEach((function(e){o.pluralResolver.getSuffixes(e,n).forEach((function(t){U([e],c+t,n["defaultValue".concat(t)]||P)}))})):U(V,c,P))}g=this.extendTranslation(g,e,n,h,a),w&&g===c&&this.options.appendNamespaceToMissingKey&&(g="".concat(u,":").concat(c)),(w||N)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(c):c,N?g:void 0):this.options.parseMissingKeyHandler(g))}return i?(h.res=g,h):g}},{key:"extendTranslation",value:function(e,t,n,a,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Pm(Pm({},this.options.interpolation.defaultVariables),n),a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Pm(Pm({},n),{interpolation:Pm(Pm({},this.options.interpolation),n.interpolation)}));var s,r="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(r){var c=e.match(this.interpolator.nestingRegexp);s=c&&c.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=Pm(Pm({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),r){var u=e.match(this.interpolator.nestingRegexp);s<(u&&u.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&a&&a.res&&(n.lng=a.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];return o&&o[0]===a[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(a[0]," in key: ").concat(t[0])),null):i.translate.apply(i,a.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,m="string"==typeof d?[d]:d;return null!=e&&m&&m.length&&!1!==n.applyPostProcessor&&(e=bm.handle(m,e,t,this.options&&this.options.postProcessPassResolved?Pm({i18nResolved:a},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,a,o,i,s=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!s.isValidLookup(t)){var c=s.extractFromKey(e,r),l=c.key;n=l;var u=c.namespaces;s.options.fallbackNS&&(u=u.concat(s.options.fallbackNS));var d=void 0!==r.count&&"string"!=typeof r.count,m=d&&!r.ordinal&&0===r.count&&s.pluralResolver.shouldUseIntlApi(),p=void 0!==r.context&&("string"==typeof r.context||"number"==typeof r.context)&&""!==r.context,h=r.lngs?r.lngs:s.languageUtils.toResolveHierarchy(r.lng||s.language,r.fallbackLng);u.forEach((function(e){s.isValidLookup(t)||(i=e,!Am["".concat(h[0],"-").concat(e)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(i)&&(Am["".concat(h[0],"-").concat(e)]=!0,s.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!s.isValidLookup(t)){o=n;var i,c=[l];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(c,l,n,e,r);else{var u;d&&(u=s.pluralResolver.getSuffix(n,r.count,r));var h="".concat(s.options.pluralSeparator,"zero");if(d&&(c.push(l+u),m&&c.push(l+h)),p){var g="".concat(l).concat(s.options.contextSeparator).concat(r.context);c.push(g),d&&(c.push(g+u),m&&c.push(g+h))}}for(;i=c.pop();)s.isValidLookup(t)||(a=i,t=s.getResource(n,e,i,r))}})))}))}})),{res:t,usedKey:n,exactUsedKey:a,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,a):this.resourceStore.getResource(e,t,n,a)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),t}();function Om(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Vm=function(){function e(t){$d(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pm.create("languageUtils")}return nm(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Om(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Om(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Om(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var a=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(a)||(t=a)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var a=n.getLanguagePartFromCode(e);if(n.isSupportedCode(a))return t=a;t=n.options.supportedLngs.find((function(e){return e===a?e:e.indexOf("-")<0&&a.indexOf("-")<0?void 0:0===e.indexOf(a)?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,a=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),a.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),Bm=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],xm={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Um=["v1","v2","v3"],Gm={zero:0,one:1,two:2,few:3,many:4,other:5},Fm=function(){function e(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$d(this,e),this.languageUtils=t,this.options=a,this.logger=pm.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},Bm.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:xm[e.fc]}}))})),n)}return nm(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.getRule(e,n);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort((function(e,t){return Gm[e]-Gm[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):a.numbers.map((function(a){return t.getSuffix(e,a,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this.getRule(e,n);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(t)):this.getSuffixRetroCompatible(a,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,a=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[a];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!Um.includes(this.options.compatibilityJSON)}}]),e}();function Ym(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Hm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ym(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ym(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zm(e,t,n){var a,o,i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],c=(a=t,void 0!==(i=ym(e,o=n))?i:ym(a,o));return!c&&r&&"string"==typeof n&&void 0===(c=Mm(e,n,s))&&(c=Mm(t,n,s)),c}var qm=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};$d(this,e),this.logger=pm.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return nm(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Im,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Cm(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Cm(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Cm(t.nestingPrefix):t.nestingPrefixEscaped||Cm("$t("),this.nestingSuffix=t.nestingSuffix?Cm(t.nestingSuffix):t.nestingSuffixEscaped||Cm(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,a){var o,i,s,r=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(r.formatSeparator)<0){var o=Zm(t,c,e,r.options.keySeparator,r.options.ignoreJSONStructure);return r.alwaysFormat?r.format(o,void 0,n,Hm(Hm(Hm({},a),t),{},{interpolationkey:e})):o}var i=e.split(r.formatSeparator),s=i.shift().trim(),l=i.join(r.formatSeparator).trim();return r.format(Zm(t,c,s,r.options.keySeparator,r.options.ignoreJSONStructure),l,n,Hm(Hm(Hm({},a),t),{},{interpolationkey:s}))};this.resetRegExp();var d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,m=a&&a.interpolation&&void 0!==a.interpolation.skipOnVariables?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return r.escapeValue?l(r.escape(e)):l(e)}}].forEach((function(t){for(s=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(i=u(n)))if("function"==typeof d){var c=d(e,o,a);i="string"==typeof c?c:""}else if(a&&Object.prototype.hasOwnProperty.call(a,n))i="";else{if(m){i=o[0];continue}r.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i=""}else"string"==typeof i||r.useRawValueToEscape||(i=fm(i));var l=t.safeValue(i);if(e=e.replace(o[0],l),m?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++s>=r.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,a,o,i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function r(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var a=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(a[1]);e=a[0];var s=(i=this.interpolate(i,o)).match(/'/g),r=i.match(/"/g);(s&&s.length%2==0&&!r||r.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o=Hm(Hm({},t),o))}catch(c){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),c),"".concat(e).concat(n).concat(i)}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var c=[];(o=(o=Hm({},s)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),c=u,l=!0}if((a=t(r.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof a)return a;"string"!=typeof a&&(a=fm(a)),a||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),a=""),l&&(a=c.reduce((function(e,t){return i.format(e,t,s.lng,Hm(Hm({},s),{},{interpolationkey:n[1].trim()}))}),a.trim())),e=e.replace(n[0],a),this.regexp.lastIndex=0}return e}}]),e}();function jm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Jm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jm(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xm(e){var t={};return function(n,a,o){var i=a+JSON.stringify(o),s=t[i];return s||(s=e(a,o),t[i]=s),s(n)}}var Km=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};$d(this,e),this.logger=pm.create("formatter"),this.options=t,this.formats={number:Xm((function(e,t){var n=new Intl.NumberFormat(e,Jm({},t));return function(e){return n.format(e)}})),currency:Xm((function(e,t){var n=new Intl.NumberFormat(e,Jm(Jm({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:Xm((function(e,t){var n=new Intl.DateTimeFormat(e,Jm({},t));return function(e){return n.format(e)}})),relativetime:Xm((function(e,t){var n=new Intl.RelativeTimeFormat(e,Jm({},t));return function(e){return n.format(e,t.range||"day")}})),list:Xm((function(e,t){var n=new Intl.ListFormat(e,Jm({},t));return function(e){return n.format(e)}}))},this.init(t)}return nm(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=Xm(t)}},{key:"format",value:function(e,t,n){var a=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((function(e,t){var i=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var a=e.split("(");t=a[0].toLowerCase().trim();var o=a[1].substring(0,a[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((function(e){if(e){var t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lm(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.split(":")),a=t[0],o=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=o),"false"===o&&(n[a.trim()]=!1),"true"===o&&(n[a.trim()]=!0),isNaN(o)||(n[a.trim()]=parseInt(o,10))}}))}return{formatName:t,formatOptions:n}}(t),s=i.formatName,r=i.formatOptions;if(a.formats[s]){var c=e;try{var l=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},u=l.locale||l.lng||o.locale||o.lng||n;c=a.formats[s](e,u,Jm(Jm(Jm({},r),o),l))}catch(d){a.logger.warn(d)}return c}return a.logger.warn("there was no format function for ".concat(s)),e}),e)}}]),e}();function zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zm(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qm=function(){im(t,hm);var e=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=rm(e);if(t){var o=rm(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return sm(this,n)}}(t);function t(n,a,o){var i,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return $d(this,t),i=e.call(this),Sm&&hm.call(am(i)),i.backend=n,i.store=a,i.services=o,i.languageUtils=o.languageUtils,i.options=s,i.logger=pm.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=s.maxParallelReads||10,i.readingCalls=0,i.maxRetries=s.maxRetries>=0?s.maxRetries:5,i.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,s.backend,s),i}return nm(t,[{key:"queueLoad",value:function(e,t,n,a){var o=this,i={},s={},r={},c={};return e.forEach((function(e){var a=!0;t.forEach((function(t){var r="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[r]=2:o.state[r]<0||(1===o.state[r]?void 0===s[r]&&(s[r]=!0):(o.state[r]=1,a=!1,void 0===s[r]&&(s[r]=!0),void 0===i[r]&&(i[r]=!0),void 0===c[t]&&(c[t]=!0)))})),a||(r[e]=!0)})),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(e,t,n){var a=e.split("|"),o=a[0],i=a[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var s={};this.queue.forEach((function(n){var a,r,c,l,u,d,m;a=n.loaded,r=i,(l=(c=vm(a,[o],Object)).obj)[u=c.k]=l[u]||[],l[u].push(r),m=e,void 0!==(d=n).pending[m]&&(delete d.pending[m],d.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){s[e]||(s[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===s[e][t]&&(s[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var a=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:i,callback:s});else{this.readingCalls++;var r=function(r,c){if(a.readingCalls--,a.waitingReads.length>0){var l=a.waitingReads.shift();a.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}r&&c&&o<a.maxRetries?setTimeout((function(){a.read.call(a,e,t,n,o+1,2*i,s)}),i):s(r,c)},c=this.backend[n].bind(this.backend);if(2!==c.length)return c(e,t,r);try{var l=c(e,t);l&&"function"==typeof l.then?l.then((function(e){return r(null,e)})).catch(r):r(null,l)}catch(u){r(u)}}}},{key:"prepareLoading",value:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,a,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e.split("|"),o=a[0],i=a[1];this.read(o,i,"read",void 0,void 0,(function(a,s){a&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),a),!a&&s&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),s),t.loaded(e,a,s)}))}},{key:"saveMissing",value:function(e,t,n,a,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){var r=Wm(Wm({},i),{},{isUpdate:o}),c=this.backend.create.bind(this.backend);if(c.length<6)try{var l;(l=5===c.length?c(e,t,n,a,r):c(e,t,n,a))&&"function"==typeof l.then?l.then((function(e){return s(null,e)})).catch(s):s(null,l)}catch(u){s(u)}else c(e,t,n,a,s,r)}e&&e[0]&&this.store.addResource(e[0],t,n,a)}}}]),t}();function $m(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Qd(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Qd(e[2])||"object"===Qd(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,a){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ep(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function np(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tp(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ap(){}var op=function(){im(t,hm);var e=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=rm(e);if(t){var o=rm(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return sm(this,n)}}(t);function t(){var n,a,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if($d(this,t),n=e.call(this),Sm&&hm.call(am(n)),n.options=ep(o),n.services={},n.logger=pm,n.modules={external:[]},a=am(n),Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach((function(e){"function"==typeof a[e]&&(a[e]=a[e].bind(a))})),i&&!n.isInitialized&&!o.isClone){if(!n.options.initImmediate)return n.init(o,i),sm(n,am(n));setTimeout((function(){n.init(o,i)}),0)}return n}return nm(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var a=$m();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=np(np(np({},a),this.options),ep(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=np(np({},a.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?pm.init(o(this.modules.logger),this.options):pm.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=Km);var s=new Vm(this.options);this.store=new Dm(this.options.resources,this.options);var r=this.services;r.logger=pm,r.resourceStore=this.store,r.languageUtils=s,r.pluralResolver=new Fm(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format||(r.formatter=o(i),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new qm(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new Qm(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];e.emit.apply(e,[t].concat(a))})),this.modules.languageDetector&&(r.languageDetector=o(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=o(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new Rm(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];e.emit.apply(e,[t].concat(a))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=ap),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=gm(),u=function(){var t=function(t,a){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(a),n(t,a)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ap,a="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)}))}else n(null)}},{key:"reloadResources",value:function(e,t,n){var a=gm();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ap),this.services.backendConnector.reload(e,t,(function(e){a.resolve(),n(e)})),a}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&bm.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var a=gm();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(i){e||i||!n.services.languageDetector||(i=[]);var s="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);s&&(n.language||o(s),n.translator.language||n.translator.changeLanguage(s),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(s)),n.loadResources(s,(function(e){var i,r;i=e,(r=s)?(o(r),n.translator.changeLanguage(r),n.isLanguageChangingTo=void 0,n.emit("languageChanged",r),n.logger.log("languageChanged",r)):n.isLanguageChangingTo=void 0,a.resolve((function(){return n.t.apply(n,arguments)})),t&&t(i,(function(){return n.t.apply(n,arguments)}))}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),a}},{key:"getFixedT",value:function(e,t,n){var a=this,o=function e(t,o){var i;if("object"!==Qd(o)){for(var s=arguments.length,r=new Array(s>2?s-2:0),c=2;c<s;c++)r[c-2]=arguments[c];i=a.options.overloadTranslationOptionHandler([t,o].concat(r))}else i=np({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||n||e.keyPrefix;var l,u=a.options.keySeparator||".";return l=i.keyPrefix&&Array.isArray(t)?t.map((function(e){return"".concat(i.keyPrefix).concat(u).concat(e)})):i.keyPrefix?"".concat(i.keyPrefix).concat(u).concat(t):t,a.t(l,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var a=n.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===a.toLowerCase())return!0;var s=function(e,n){var a=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===a||2===a};if(n.precheck){var r=n.precheck(this,s);if(void 0!==r)return r}return!(!this.hasResourceBundle(a,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!s(a,e)||o&&!s(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,a=gm();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){a.resolve(),t&&t(e)})),a):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=gm();"string"==typeof e&&(e=[e]);var a=this.options.preload||[],o=e.filter((function(e){return a.indexOf(e)<0}));return o.length?(this.options.preload=a.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new Vm($m());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ap,o=np(np(np({},this.options),n),{isClone:!0}),i=new t(o);return void 0===n.debug&&void 0===n.prefix||(i.logger=i.logger.clone(n)),["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=np({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Rm(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];i.emit.apply(i,[e].concat(n))})),i.init(o,a),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),t}();cm(op,"createInstance",(function(){return new op(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var ip=op.createInstance();ip.createInstance=op.createInstance,ip.createInstance,ip.dir,ip.init,ip.loadResources,ip.reloadResources,ip.use,ip.changeLanguage,ip.getFixedT,ip.t,ip.exists,ip.setDefaultNamespace,ip.hasLoadedNamespace,ip.loadNamespaces,ip.loadLanguages;class sp extends xd{constructor(){super(),this.languages=null}static getInstance(){return sp.instance||(sp.instance=new sp),sp.instance}provideLanguages(e){Cd||(this.languages=e,g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","TUITranslateService.provideLanguages ok."))}useI18n(e){if(Cd)return;if(!this.languages)return void g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","TUITranslateService.useI18next not have messages.");const t={};for(const[n,a]of Object.entries(this.languages))t["zh_cn"===n?"zh":n]={translation:a};ip.init({compatibilityJSON:"v3",lng:e||"zh",fallbackLng:"zh",detection:{order:["querystring","navigator"],caches:["localStorage","cookie"]},resources:t})}changeLanguage(e){return ip.changeLanguage(e)}t(e){if(!this.languages){let t=e;return!dd(e)&&e.indexOf(".")>-1&&(t=e.split(".").pop()||""),t}return ip.t(e)}}class rp extends xd{constructor(){super(),this.serv="TUIConversationService"}static getInstance(){return rp.instance||(rp.instance=new rp),rp.instance}init(){const e=this.getEngine();e.eventCenter.addEvent(e.EVENT.CONVERSATION_LIST_UPDATED,this.onConversationListUpdated.bind(this)),e.eventCenter.addEvent(e.EVENT.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED,this.onTotalUnreadCountUpdated.bind(this)),e.eventCenter.addEvent(e.EVENT.MESSAGE_RECEIVED,this.onMessageReceived.bind(this)),this.getConversationInitData()}onConversationListUpdated(e){const t=this.filterSystemConversation(e);this.getEngine().TUIStore.update(ad.CONV,"conversationList",t),this.updateCurrentConversation()}onTotalUnreadCountUpdated(e){this.getEngine().TUIStore.update(ad.CONV,"totalUnreadCount",e)}onMessageReceived(e){const t=this.getEngine(),n=this.getEngine().TUIStore.getData(ad.CONV,"conversationList");let a=!1;for(let o=0;o<e.length;o++){if(e[o].type!==t.TYPES.MSG_GRP_SYS_NOTICE)continue;const{operationType:i}=e[o].payload,s=`GROUP${e[o].to}`,r=4===i||5===i||8===i,c=2===i||6===i||7===i;if(r||c)for(let e=0;e<n.length;e++)if(n[e].type!==t.TYPES.CONV_C2C&&n[e].conversationID===s){if(r){this.getEngine().TUIStore.update(ad.CONV,"operationTypeMap",{conversationID:s,operationType:i}),a=!0;break}if(c&&n[e].operationType>0){this.getEngine().TUIStore.update(ad.CONV,"operationTypeMap",{conversationID:s,operationType:0}),a=!0;break}}}if(a){this.getEngine().TUIStore.update(ad.CONV,"conversationList",n);const e=this.getEngine().TUIStore.getData(ad.CONV,"currentConversationID")||"",t=this.findConversation(e);t&&this.getEngine().TUIStore.update(ad.CONV,"currentConversation",t)}}getConversationInitData(){const e=this.getEngine();e.chat.isReady()&&e.chat.getConversationList().then((t=>{const{conversationList:n,isSyncCompleted:a}=t.data;if(g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`${this.serv}.init, getConversationList count:${n.length} isSyncCompleted:${a}`),n.length>0){this.onConversationListUpdated(n);const t=e.chat.getTotalUnreadMessageCount();this.onTotalUnreadCountUpdated(t)}}))}switchConversation(e){return ed(this,void 0,void 0,(function*(){const t=`${this.serv}.switchConversation`,n=this.getEngine();if(!e)return n.TUIStore.reset(ad.CHAT,["messageList","isCompleted","nextReqMessageID"]),n.TUIStore.update(ad.CONV,"currentConversationID",""),n.TUIStore.update(ad.CONV,"currentConversation",null),g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`${t} conversationID is empty, conversationID:${e}`),Promise.resolve({});if(!e.startsWith(n.TYPES.CONV_C2C)&&!e.startsWith(n.TYPES.CONV_GROUP))return g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`${t} conversationID is invalid, conversationID:${e}`),Promise.reject({code:cd.INVALID_CONV_ID,message:ud.INVALID_CONV_ID});const a=n.TUIStore.getData(ad.CONV,"currentConversationID");if(a&&a===e)return this.setMessageRead(a),g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`${t} please check conversationID, conversationID:${e}`),Promise.resolve({code:cd.CONV_ID_SAME,message:ud.CONV_ID_SAME});const o=yield this.getConversationModel(e);return dd(o)?(g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`${t} target conversation is not exist, conversationID:${e}`),Promise.reject({code:cd.CONV_NOT_EXIST,message:ud.CONV_NOT_EXIST})):(a&&this.setMessageRead(a),e&&this.setMessageRead(e),n.TUIStore.reset(ad.CHAT,["messageList","isCompleted","nextReqMessageID"]),n.TUIStore.update(ad.CONV,"currentConversationID",e),n.TUIStore.update(ad.CONV,"currentConversation",o),Promise.resolve(o))}))}getConversationModel(e){return ed(this,void 0,void 0,(function*(){let t=this.findConversation(e);if(dd(t))try{const n=yield this.getConversationProfile(e);n.data&&n.data.conversation&&(t=new Fd(n.data.conversation))}catch(n){t=void 0}return t}))}findConversation(e){let t;const n=this.getEngine().TUIStore.getData(ad.CONV,"conversationList");for(let a=0;a<n.length;a++)if(n[a].conversationID===e){t=n[a];break}return t}updateCurrentConversation(){const e=this.getEngine(),t=e.TUIStore.getData(ad.CONV,"currentConversationID"),n=this.findConversation(t);n&&e.TUIStore.update(ad.CONV,"currentConversation",n)}getConversationList(){return this.getEngine().chat.getConversationList()}getConversationProfile(e){return this.getEngine().chat.getConversationProfile(e)}deleteConversation(e){return this.getEngine().chat.deleteConversation(e).then((t=>{const n=this.getEngine().TUIStore.getData(ad.CONV,"currentConversationID");return g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`${this.serv}.deleteConversation conversationID:${e} currentConversationID:${n}`),e===n&&(this.getEngine().TUIStore.update(ad.CONV,"currentConversationID",""),this.getEngine().TUIStore.update(ad.CONV,"currentConversation",null)),t}))}pinConversation(e){return this.getEngine().chat.pinConversation(e)}muteConversation(e){return this.getEngine().chat.setMessageRemindType(e)}clearHistoryMessage(e){return this.getEngine().chat.clearHistoryMessage(e).then((e=>(this.getEngine().TUIStore.update(ad.CHAT,"messageList",[]),this.getEngine().TUIStore.update(ad.CHAT,"nextReqMessageID",""),this.getEngine().TUIStore.update(ad.CHAT,"isCompleted",!0),e)))}setMessageRead(e){return this.getEngine().chat.setMessageRead({conversationID:e})}setConversationDraft(e){const{conversationID:t,draftInfo:n}=e;let a="";return n&&(a=JSON.stringify(n)),this.getEngine().chat.setConversationDraft({conversationID:t,draftText:a}).then((e=>{const{conversation:t}=e.data;this.updateConversation(t)}))}updateConversation(e){let t=!1;const n=this.getEngine().TUIStore.getData(ad.CONV,"conversationList");for(let a=0;a<n.length;a++)if(n[a].conversationID===e.conversationID){n[a]=e,t=!0;break}t&&this.getEngine().TUIStore.update(ad.CONV,"conversationList",n)}filterSystemConversation(e){return e.filter((e=>e.type!==this.getEngine().TYPES.CONV_SYSTEM))}}class cp{constructor(e){this.TUIUserService=e}getEngine(){return this.TUIUserService.getEngine()}init(){this.getEngine().eventCenter.addEvent(this.getEngine().EVENT.PROFILE_UPDATED,this.onProfileUpdated.bind(this)),this.getEngine().eventCenter.addEvent(this.getEngine().EVENT.BLACKLIST_UPDATED,this.onBlacklistUpdated.bind(this)),this.getUserProfileInitData()}onProfileUpdated(e){const t=this.getEngine(),n=t.TUIStore.getData(ad.USER,"userProfile");e.forEach((e=>{e.userID===n.userID&&t.TUIStore.update(ad.USER,"userProfile",e)}))}onBlacklistUpdated(e){const t=this.getEngine();this.getBlacklistProfile(e).then((e=>{t.TUIStore.update(ad.USER,"userBlacklist",e)}))}getUserProfileInitData(){const e=this.getEngine();e.chat.isReady()&&e.chat.getBlacklist().then((e=>{const t=e.data||[];g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`TUIUserProfileHandler.init, getBlacklist count:${t.length}`),t.length>0&&this.onBlacklistUpdated(t)}))}getBlacklistProfile(e){const t=[];let n=0;for(;n<e.length;)t.push(e.slice(n,n+=100));const a=[];t.forEach((e=>{a.push(this.TUIUserService.getUserProfile({userIDList:e}))}));const o=[];return Promise.all(a).then((e=>(e.forEach((e=>{const t=e.data.map((e=>{const{userID:t,nick:n,avatar:a}=e;return{userID:t,nick:n,avatar:a}}));o.push(...t)})),o)))}getUserProfile(e){const t=this.getEngine();return dd(e)?t.chat.getMyProfile().then((e=>(t.TUIStore.update(ad.USER,"userProfile",e.data),e))).catch((e=>Promise.reject(e))):t.chat.getUserProfile(e)}updateMyProfile(e){return this.getEngine().chat.updateMyProfile(e)}addToBlacklist(e){return this.getEngine().chat.addToBlacklist(e)}removeFromBlacklist(e){return this.getEngine().chat.removeFromBlacklist(e)}}function lp(e,t,n=!0){var a,o;a=n?dp(e):e,o=t,Id?Md.setStorageSync(a,o):mp()&&localStorage.setItem(a,JSON.stringify(o))}function up(e,t=!0){try{return function(e){if(Id)return Md.getStorageSync(e);if(mp()){const t=localStorage.getItem(e);if("undefined"!==t)return JSON.parse(t)}}(t?dp(e):e)}catch(n){return void g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","Storage.getStorageItem error:",n)}}function dp(e){return`chat_engine_${e}`}function mp(){return navigator&&navigator.cookieEnabled&&localStorage}class pp{constructor(e){this.TUIUserService=e}getEngine(){return this.TUIUserService.getEngine()}init(){const e=this.getEngine(),t=up("displayOnlineStatus")||!1;e.TUIStore.update(ad.USER,"displayOnlineStatus",t),e.eventCenter.addEvent(e.EVENT.USER_STATUS_UPDATED,this.onUserStatusUpdated.bind(this)),this.onConversationListUpdated()}onConversationListUpdated(){const e=this.getEngine();e.TUIStore.watch(ad.CONV,{conversationList:()=>{const t=e.TUIStore.getData(ad.APP,"enabledOnlineStatus"),n=e.TUIStore.getData(ad.USER,"displayOnlineStatus");t&&n&&this.startToSubscribe()}})}onUserStatusUpdated(e){this.getEngine().TUIStore.update(ad.USER,"userStatusList",e)}switchUserStatus(e){const t=this.getEngine(),{displayOnlineStatus:n=!1}=e;t.TUIStore.update(ad.USER,"displayOnlineStatus",n),lp("displayOnlineStatus",n);const a=t.TUIStore.getData(ad.APP,"enabledOnlineStatus");a?!0===n?this.startToSubscribe():this.unsubscribeUserStatus():g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`UserStatusHandler.switchUserStatus enabledOnlineStatus:${a} displayOnlineStatus:${n}`)}getUserStatus(e){const t=this.getEngine();return t.chat.getUserStatus(e).then((e=>{const{successUserList:n}=e.data;return n.length>0&&t.TUIStore.update(ad.USER,"userStatusList",n),e})).catch((e=>Promise.reject(e)))}subscribeUserStatus(e){var t;const n=(null===(t=null==e?void 0:e.userIDList)||void 0===t?void 0:t.length)||0;return 0===n?(g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`UserStatusHandler.subscribeUserStatus userID count:${n}`),Promise.resolve()):this.getEngine().chat.subscribeUserStatus(e)}unsubscribeUserStatus(e){const t=this.getEngine(),{userIDList:n=[]}=e||{};return t.chat.unsubscribeUserStatus({userIDList:n}).then((e=>{const{failureUserList:a}=e.data,o=[];return n.forEach((e=>{a.includes(e)||o.push({userID:e,statusType:od.UNSUB_USER})})),t.TUIStore.update(ad.USER,"userStatusList",o),e})).catch((e=>Promise.reject(e)))}startToSubscribe(){const e=this.getEngine(),t=e.TUIStore.getData(ad.CONV,"conversationList"),n=e.TUIStore.getData(ad.USER,"userStatusList"),a=[];t.forEach((t=>{if(t.type===e.TYPES.CONV_C2C){const o=t.conversationID.replace(e.TYPES.CONV_C2C,"");n.has(o)||a.push(o)}})),0!==a.length&&e.chat.isReady()&&(this.subscribeUserStatus({userIDList:a}),this.getUserStatus({userIDList:a}))}}class hp extends xd{constructor(){super(),this.userProfileHandler=new cp(this),this.userStatusHandler=new pp(this)}static getInstance(){return hp.instance||(hp.instance=new hp),hp.instance}init(){const e=this.getEngine();e.eventCenter.addEvent(e.EVENT.KICKED_OUT,this.onKickedOut.bind(this)),e.eventCenter.addEvent(e.EVENT.NET_STATE_CHANGE,this.onNetStateChange.bind(this)),this.userProfileHandler.init(),this.userStatusHandler.init(),this.initMessageReadReceipt()}onKickedOut(e){this.getEngine().TUIStore.update(ad.USER,"kickedOut",e.type)}onNetStateChange(e){this.getEngine().TUIStore.update(ad.USER,"netStateChange",e.state)}initMessageReadReceipt(){const e=up("displayMessageReadReceipt")||!0;this.getEngine().TUIStore.update(ad.USER,"displayMessageReadReceipt",e)}switchUserStatus(e){return this.userStatusHandler.switchUserStatus(e)}switchMessageReadStatus(e){this.getEngine().TUIStore.update(ad.USER,"displayMessageReadReceipt",e),lp("displayMessageReadReceipt",e)}getUserProfile(e){return this.userProfileHandler.getUserProfile(e)}updateMyProfile(e){return this.userProfileHandler.updateMyProfile(e)}addToBlacklist(e){return this.userProfileHandler.addToBlacklist(e)}removeFromBlacklist(e){return this.userProfileHandler.removeFromBlacklist(e)}getUserStatus(e){return this.userStatusHandler.getUserStatus(e)}subscribeUserStatus(e){return this.userStatusHandler.subscribeUserStatus(e)}unsubscribeUserStatus(e){return this.userStatusHandler.unsubscribeUserStatus(e)}}class gp{constructor(e){this.TUIChatService=e,this.userShowNameMap=new Map,this.requestedUserMap=new Map}getEngine(){return this.TUIChatService.getEngine()}t(e){return this.getEngine().TUITranslate.t(e)}handleTextMessage(e){return{text:this.decodeText(e.payload)}}handleFaceMessage(e){const t={name:"",url:"",type:""};return e.payload.data.indexOf("@custom")>-1?(t.name=e.payload.data,t.type="custom",t):(t.name=e.payload.data.indexOf("@2x")<0?`${e.payload.data}@2x`:e.payload.data,t.url=`https://web.sdk.qcloud.com/im/assets/face-elem/${t.name}.png`,t)}handleLocationMessage(e){const t={lon:"",lat:"",href:"",url:"",description:""};return t.lon=e.payload.longitude.toFixed(6),t.lat=e.payload.latitude.toFixed(6),t.href=`https://map.qq.com/?type=marker&isopeninfowin=1&markertype=1&pointx=${t.lon}&pointy=${t.lat}&name=${e.payload.description}`,t.url=`https://apis.map.qq.com/ws/staticmap/v2/?center=${t.lat},${t.lon}&zoom=10&size=300*150&maptype=roadmap&markers=size:large|color:0xFFCCFF|label:k|${t.lat},${t.lon}&key=UBNBZ-PTP3P-TE7DB-LHRTI-Y4YLE-VWBBD`,t.description=e.payload.description,t}handleImageMessage(e){return{url:e.payload.imageInfoArray[0].url,width:e.payload.imageInfoArray[0].width,height:e.payload.imageInfoArray[0].height}}handleAudioMessage(e){return{url:e.payload.url,second:e.payload.second}}handleVideoMessage(e){return{url:e.payload.videoUrl,snapshotUrl:e.payload.snapshotUrl,snapshotWidth:e.payload.snapshotWidth,snapshotHeight:e.payload.snapshotHeight}}handleFileMessage(e){return{url:e.payload.fileUrl,name:e.payload.fileName,size:gd(e.payload.fileSize)}}handleCustomMessage(e){var t;const n=this.handleCreateGroupCustomMessage(e);return{custom:this.handleCallKitSignaling(e)||n||(null===(t=null==e?void 0:e.payload)||void 0===t?void 0:t.extension)||`[${this.t("message.custom.自定义消息")}]`,businessID:n?"group_create":""}}handleMergeMessage(e){return Object.assign({},e.payload)}handleGroupTipsMessage(e){var t,n,a,o,i,s;const r=this.getEngine(),c={text:""};let l=(null==e?void 0:e.nick)||(null===(n=null===(t=null==e?void 0:e.payload)||void 0===t?void 0:t.userIDList)||void 0===n?void 0:n.join(","));switch((null===(o=null===(a=null==e?void 0:e.payload)||void 0===a?void 0:a.memberList)||void 0===o?void 0:o.length)>0&&(l="",null===(s=null===(i=null==e?void 0:e.payload)||void 0===i?void 0:i.memberList)||void 0===s||s.map((e=>{const t=(null==e?void 0:e.nick)||(null==e?void 0:e.userID);l+=`${this.substringByLength(t)},`})),l=null==l?void 0:l.slice(0,-1)),e.payload.operationType){case r.TYPES.GRP_TIP_MBR_JOIN:c.text=`${l} ${this.t("message.tip.加入群组")}`;break;case r.TYPES.GRP_TIP_MBR_QUIT:c.text=`${this.t("message.tip.群成员")}${l} ${this.t("message.tip.退出群组")}`;break;case r.TYPES.GRP_TIP_MBR_KICKED_OUT:c.text=`${this.t("message.tip.群成员")}${l} ${this.t("message.tip.被")}${this.t("message.tip.踢出群组")}`;break;case r.TYPES.GRP_TIP_MBR_SET_ADMIN:c.text=`${this.t("message.tip.群成员")}${l} ${this.t("message.tip.成为管理员")}`;break;case r.TYPES.GRP_TIP_MBR_CANCELED_ADMIN:c.text=`${this.t("message.tip.群成员")}${l} ${this.t("message.tip.被撤销管理员")}`;break;case r.TYPES.GRP_TIP_GRP_PROFILE_UPDATED:c.text=this.handleGroupProfileUpdated(e);break;case r.TYPES.GRP_TIP_MBR_PROFILE_UPDATED:for(const t of e.payload.memberList)t.muteTime>0?c.text=`${this.t("message.tip.群成员")}${l} ${this.t("message.tip.被禁言")}`:c.text=`${this.t("message.tip.群成员")}${l} ${this.t("message.tip.被取消禁言")}`;break;default:c.text=`[${this.t("message.tip.群提示消息")}]`}return c}handleGroupSystemMessage(e){const t=e.payload.groupProfile.name||e.payload.groupProfile.groupID,n={text:""};switch(e.payload.operationType){case 1:n.text=`${e.payload.operatorID} ${this.t("message.tip.申请加入群组")}${t}`;break;case 2:n.text=`${this.t("message.tip.成功加入群组")}${t}`;break;case 3:n.text=`${this.t("message.tip.申请加入群组")}${t} ${this.t("message.tip.被拒绝")}`;break;case 4:n.text=`${this.t("message.tip.你被管理员")}${e.payload.operatorID} ${this.t("message.tip.踢出群组")}${t}`;break;case 5:n.text=`${this.t("message.tip.群")}${t} ${this.t("message.tip.被")} ${e.payload.operatorID} ${this.t("message.tip.解散")}`;break;case 6:n.text=`${e.payload.operatorID} ${this.t("message.tip.创建群")}${t}`;break;case 7:case 12:n.text=`${e.payload.operatorID} ${this.t("message.tip.邀请你加群")}${t}`;break;case 8:n.text=`${this.t("message.tip.你退出群组")}${t}`;break;case 9:n.text=`${this.t("message.tip.你被")}${e.payload.operatorID} ${this.t("message.tip.设置为群")}${t} ${this.t("message.tip.的管理员")}`;break;case 10:n.text=`${this.t("message.tip.你被")}${e.payload.operatorID} ${this.t("message.tip.撤销群")}${t} ${this.t("message.tip.的管理员身份")}`;break;case 13:n.text=`${e.payload.operatorID} ${this.t("message.tip.同意加群")}${t}`;break;case 14:n.text=`${e.payload.operatorID} ${this.t("message.tip.拒接加群")}${t}`;break;case 255:n.text=`${this.t("message.tip.自定义群系统通知")}: ${e.payload.userDefinedField}`;break;default:n.text="未解析的群系统通知"}return n}handleCallKitSignaling(e){var t,n,a,o,i,s,r,c,l,u;const d=hd(e.payload.data);if(1!==(null==d?void 0:d.businessID))return"";const m=hd(null==d?void 0:d.data),p=e.fromAccount||e.from,h=this.getEngine().TUIFriend.getFriendRemark([p]),g=this.getEngine().getMyUserID();let f=h[p]||e.nameCard||e.nick||p;switch(f=this.substringByLength(f),null==d?void 0:d.actionType){case 1:return"audioCall"!==(null===(t=null==m?void 0:m.data)||void 0===t?void 0:t.cmd)&&"videoCall"!==(null===(n=null==m?void 0:m.data)||void 0===n?void 0:n.cmd)||!(null==d?void 0:d.groupID)?"hangup"===(null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.cmd)?(null==d?void 0:d.groupID)?`${this.t("message.custom.通话结束")}`:`${this.t("message.custom.通话时长")}${function(e){const t=e;let n,a,o,i="";return t>=3600?(n=parseInt(""+t/3600,10)<10?`0${parseInt(""+t/3600,10)}`:parseInt(""+t/3600,10),a=parseInt(""+t%60/60,10)<10?`0${parseInt(""+t%60/60,10)}`:parseInt(""+t%60/60,10),o=t%3600<10?"0"+t%3600:t%3600,o>60&&(a=parseInt(""+o/60,10)<10?`0${parseInt(""+o/60,10)}`:parseInt(""+o/60,10),o=o%60<10?"0"+o%60:o%60),i=`${n}:${a}:${o}`):t>=60&&t<3600?(a=parseInt(""+t/60,10)<10?`0${parseInt(""+t/60,10)}`:parseInt(""+t/60,10),o=t%60<10?"0"+t%60:t%60,i=`00:${a}:${o}`):t<60&&(o=t<10?`0${t}`:t,i=`00:00:${o}`),i}(null==m?void 0:m.call_end)}`:"switchToAudio"===(null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.cmd)?`${this.t("message.custom.切换语音通话")}`:"switchToVideo"===(null===(i=null==m?void 0:m.data)||void 0===i?void 0:i.cmd)?`${this.t("message.custom.切换视频通话")}`:`${this.t("message.custom.发起通话")}`:`${f} ${this.t("message.custom.发起通话")}`;case 2:return(null==d?void 0:d.groupID)?`${f} ${this.t("message.custom.取消通话")}`:this.isOldUIKit("message.custom.已取消")?this.t("message.custom.取消通话"):(null==d?void 0:d.inviter)===g?this.t("message.custom.已取消"):this.t("message.custom.对方已取消");case 3:return"switchToAudio"===(null===(s=null==m?void 0:m.data)||void 0===s?void 0:s.cmd)?`${this.t("message.custom.切换语音通话")}`:"switchToVideo"===(null===(r=null==m?void 0:m.data)||void 0===r?void 0:r.cmd)?`${this.t("message.custom.切换视频通话")}`:(null==d?void 0:d.groupID)?`${f} ${this.t("message.custom.已接听")}`:this.t("message.custom.已接听");case 4:return(null==d?void 0:d.groupID)?`${f} ${this.t("message.custom.拒绝通话")}`:this.isOldUIKit("message.custom.已拒绝")?this.t("message.custom.拒绝通话"):"line_busy"===(null==m?void 0:m.line_busy)||"lineBusy"===(null==m?void 0:m.data.message)?(null==d?void 0:d.inviter)===g?this.t("message.custom.对方忙线中"):this.t("message.custom.忙线未接听"):(null==d?void 0:d.inviter)===g?this.t("message.custom.对方已拒绝"):this.t("message.custom.已拒绝");case 5:if("switchToAudio"===(null===(c=null==m?void 0:m.data)||void 0===c?void 0:c.cmd))return`${this.t("message.custom.切换语音通话")}`;if("switchToVideo"===(null===(l=null==m?void 0:m.data)||void 0===l?void 0:l.cmd))return`${this.t("message.custom.切换视频通话")}`;if(null==d?void 0:d.groupID){if(p===(null==d?void 0:d.inviter)){this.handleCallkitTimeoutSignaling(d.inviteeList);let e="";return null===(u=d.inviteeList)||void 0===u||u.forEach((t=>{const n=this.userShowNameMap.get(t)||t;e+=`${this.substringByLength(n)}、`})),e=e.substring(0,e.lastIndexOf("、")),`${e} ${this.t("message.custom.无应答")}`}return`${f} ${this.t("message.custom.无应答")}`}return this.isOldUIKit("message.custom.对方无应答")?this.t("message.custom.无应答"):(null==d?void 0:d.inviter)===g?this.t("message.custom.对方无应答"):this.t("message.custom.超时无应答");default:return""}}handleCreateGroupCustomMessage(e){let t;const n=hd(e.payload.data);return"group_create"===(null==n?void 0:n.businessID)&&(t=`${n.opUser} ${n.content}`),t}decodeText(e){const t=[];let n=e.text,a=-1,o=-1;for(;""!==n;)switch(a=n.indexOf("["),o=n.indexOf("]"),a){case 0:if(-1===o)t.push({name:"text",text:n}),n="";else{const e=n.slice(0,o+1);e.indexOf("@custom")>-1?(t.push({name:"img",src:"",type:"custom",emojiKey:e}),n=n.substring(o+1)):fd[e]?(t.push({name:"img",src:"https://web.sdk.qcloud.com/im/assets/emoji-plugin/"+fd[e],emojiKey:e}),n=n.substring(o+1)):(t.push({name:"text",text:"["}),n=n.slice(1))}break;case-1:t.push({name:"text",text:n}),n="";break;default:t.push({name:"text",text:n.slice(0,a)}),n=n.substring(a)}return t}handleGroupProfileUpdated(e){const{nick:t,payload:n}=e,{newGroupProfile:a,memberList:o,operatorID:i}=n;let s="";const r=t||i,c=Object.keys(a)[0];switch(c){case"muteAllMembers":s=a[c]?`${this.t("message.tip.管理员")} ${r} ${this.t("message.tip.开启全员禁言")}`:`${this.t("message.tip.管理员")} ${r} ${this.t("message.tip.取消全员禁言")}`;break;case"ownerID":s=`${o[0].nick||o[0].userID} ${this.t("message.tip.成为新的群主")}`;break;case"groupName":s=`${r} ${this.t("message.tip.修改群名为")} ${a[c]}`;break;case"notification":s=this.isOldUIKit("message.tip.把群公告修改为")?`${r} ${this.t("message.tip.发布新公告")}`:`${r} ${this.t("message.tip.把群公告修改为")} "${a[c]}"`}return s}handleCallkitTimeoutSignaling(e=[]){if(0===e.length)return;const t=this.getEngine().TUIFriend.getFriendRemark(e),n=[];e.forEach((e=>{const a=t[e];a?this.userShowNameMap.set(e,a):this.requestedUserMap.has(e)||(n.push(e),this.requestedUserMap.set(e,1))})),n.length>0&&this.getEngine().TUIUser.getUserProfile({userIDList:n}).then((e=>{(e.data||[]).forEach((e=>{const{userID:t,nick:n}=e,a=n||t;this.userShowNameMap.set(t,a)}))})).catch((e=>{}))}substringByLength(e,t=12){return e.length>t?`${e.slice(0,t)}...`:e}isOldUIKit(e){var t;const n=e.lastIndexOf("."),a=e.slice(0,n+1);return null===(t=this.t(e))||void 0===t?void 0:t.startsWith(a)}}class fp{constructor(e){this.TUIChatService=e,this.typingTo="",this.timer=null}getEngine(){return this.TUIChatService.getEngine()}clearTypingStatus(){this.getEngine().TUIStore.getData(ad.CHAT,"typingStatus")&&this.getEngine().TUIStore.update(ad.CHAT,"typingStatus",!1),this.timer&&clearTimeout(this.timer),this.timer=null}handleLastMessage(e){const t=this.getEngine(),n=t.TUIStore.getData(ad.CHAT,"typingStatus");if(e.type===this.getEngine().TYPES.MSG_CUSTOM&&"in"===e.flow){const a=hd(e.payload.data);if(a.businessID===id.BUSINESS_ID){const{typingStatus:e,userAction:o}=a;if(e===id.STATUS_START||o===id.ACTION_START_ID)return n?(this.timer&&clearTimeout(this.timer),this.timer=null):t.TUIStore.update(ad.CHAT,"typingStatus",!0),this.timer=setTimeout((()=>{this.clearTypingStatus()}),3e4),t.TUIStore.getData(ad.CHAT,"typingStatus");e!==id.STATUS_END&&o!==id.ACTION_END_ID||this.clearTypingStatus()}}}filterTypingMessage(e=[]){return 0===e.length?[]:(this.getEngine().TUIStore.getData(ad.APP,"enableTyping")&&this.handleLastMessage(e[e.length-1]),e.filter((e=>e.type!==this.getEngine().TYPES.MSG_CUSTOM||hd(e.payload.data).businessID!==id.BUSINESS_ID)))}createTypingMessage(e=id.STATUS_END,t=""){const{BUSINESS_ID:n,STATUS_START:a,VERSION:o,ACTION_START_ID:i,ACTION_END_ID:s,ACTION_START:r,ACTION_END:c,NEED_TYPING:l}=id;return{to:t,conversationType:this.getEngine().TYPES.CONV_C2C,payload:{data:JSON.stringify({businessID:n,typingStatus:e,version:o,userAction:e===a?i:s,actionParam:e===a?r:c}),description:"",extension:""},cloudCustomData:JSON.stringify({messageFeature:{needTyping:l,version:o}})}}sendTyping(e=!1,t=""){if(e){this.typingTo=t;const e=this.createTypingMessage(id.STATUS_START,t);this.getEngine().TUIChat.sendCustomMessage(e,{onlineUserOnly:!0})}else this.sendTypingEnd()}sendTypingEnd(){if(this.typingTo){const e=this.createTypingMessage(id.STATUS_END,this.typingTo);this.getEngine().TUIChat.sendCustomMessage(e,{onlineUserOnly:!0})}this.typingTo=""}}class vp{constructor(e){this.TUIChatService=e}getEngine(){return this.TUIChatService.getEngine()}init(){const e=this.getEngine();e.eventCenter.addEvent(e.EVENT.MESSAGE_READ_RECEIPT_RECEIVED,this.onMessageReadReceiptReceived.bind(this))}onMessageReadReceiptReceived(e){const t=this.getEngine(),n=t.TUIStore.getData(ad.CONV,"currentConversationID"),a=[];e.forEach((e=>{const{messageID:o}=e,i=t.chat.findMessage(o);i&&n===i.conversationID&&a.push(i)})),a.length>0&&t.TUIChat.updateMessageList(a,"edit")}sendMessageReadReceipt(e){const t=[];return e.forEach((e=>{const n=e.getMessage();t.push(n)})),this.getEngine().chat.sendMessageReadReceipt(t)}getGroupMessageReadMemberList(e){const t=e.message.getMessage(),n=Object.assign(Object.assign({},e),{message:t});return this.getEngine().chat.getGroupMessageReadMemberList(n)}getMessageReadReceiptList(e){const t=this.getEngine(),n=t.TUIStore.getData(ad.APP,"enabledMessageReadReceipt"),a=t.TUIStore.getData(ad.USER,"displayMessageReadReceipt");!n||!a||0===e.length||e[0].conversationType!==t.TYPES.CONV_GROUP||t.chat.getMessageReadReceiptList(e).then((e=>{const{messageList:t}=e.data;this.TUIChatService.updateMessageList(t,"edit")})).catch((e=>{g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`ReadReceiptHandler.getMessageReadReceiptList error:${e.message}`)}))}}class _p extends xd{constructor(){super(),this.serv="TUIChatService",this.messageHandler=new gp(this),this.typingHandler=new fp(this),this.readReceiptHandler=new vp(this),this.isSwitching=!0,this.delayGetHoppingFunction=void 0,this.hoppingConfigMap=new Map}static getInstance(){return _p.instance||(_p.instance=new _p),_p.instance}init(){const e=this.getEngine();e.eventCenter.addEvent(e.EVENT.MESSAGE_RECEIVED,this.onMessageReceived.bind(this)),e.eventCenter.addEvent(e.EVENT.MESSAGE_MODIFIED,this.onMessageModified.bind(this)),e.eventCenter.addEvent(e.EVENT.MESSAGE_REVOKED,this.onMessageRevoked.bind(this)),e.eventCenter.addEvent(e.EVENT.MESSAGE_READ_BY_PEER,this.onMessageReadByPeer.bind(this)),e.eventCenter.addEvent(e.EVENT.MESSAGE_REACTIONS_UPDATED,this.onMessageReactionsUpdated.bind(this)),this.onCurrentConversationIDUpdated(),this.onMessageSource(),this.readReceiptHandler.init()}onMessageReceived(e){this.updateMessageList(e,"push"),this.getEngine().TUIStore.update(ad.CHAT,"newMessageList",e)}onMessageModified(e){this.updateMessageList(e,"edit")}onMessageRevoked(e){this.updateMessageList(e,"edit")}onMessageReadByPeer(e){this.updateMessageList(e,"edit")}onMessageReactionsUpdated(e){this.updateMessageReactionList([e])}onCurrentConversationIDUpdated(){const e=this.getEngine();e.TUIStore.watch(ad.CONV,{currentConversationID:t=>{this.isSwitching=!0,this.delayGetHoppingFunction=void 0,this.hoppingConfigMap.clear(),e.TUIStore.reset(ad.CHAT),this.typingHandler.clearTypingStatus(),this.typingHandler.sendTypingEnd(),Ud(t)||this.getMessageList().finally((()=>{this.isSwitching=!1,this.delayGetHoppingFunction&&this.delayGetHoppingFunction()}))}})}onMessageSource(){const e=this.getEngine();e.TUIStore.watch(ad.CHAT,{messageSource:t=>{const n=this.getStoreData(ad.CONV,"currentConversationID");if(!n||t&&t.conversationID!==n)return;if(dd(t))return this.hoppingConfigMap.clear(),e.TUIStore.update(ad.CHAT,"messageList",[]),e.TUIStore.update(ad.CHAT,"nextReqMessageID",""),e.TUIStore.update(ad.CHAT,"isCompleted",!1),void this.getMessageList();const a=this.getStoreData(ad.CHAT,"messageList");a&&a.find((e=>t&&e.ID===t.ID))||(this.isSwitching?this.delayGetHoppingFunction=this.getMessageListHoppingForDown:this.getMessageListHoppingForDown())}})}getMessageListHoppingForDown(){const e=this.getStoreData(ad.CHAT,"messageList"),{conversationID:t,sequence:n,time:a,ID:o}=this.getStoreData(ad.CHAT,"messageSource");if(e&&e.find((e=>o&&e.ID===o)))return;const i=this.getEngine();i.TUIStore.update(ad.CHAT,"messageList",[]),i.TUIStore.update(ad.CHAT,"nextReqMessageID",""),i.TUIStore.update(ad.CHAT,"isCompleted",!1),this.getMessageListHopping({conversationID:t,sequence:n,time:a,direction:1})}getStoreData(e,t){return this.getEngine().TUIStore.getData(e,t)}sendMessage(e,t){this.updateMessageList([e],"send");const n=this.getEngine().chat.sendMessage(e,t);return this.getResponse(n)}getResponse(e,t=!0,n=!0){return e.then((e=>{const n=e.data.messageList?e.data.messageList:[e.data.message];return t&&this.updateMessageList(n,"edit"),e})).catch((e=>{var t;return n&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.message)&&this.updateMessageList([e.data.message],"edit"),Promise.reject(e)}))}updateMessageList(e,t=""){if(this.getStoreData(ad.CHAT,"messageSource")&&"unshift"!==t&&"edit"!==t)return;const n=this.getStoreData(ad.CHAT,"messageList"),a=this.updateTargetMessageList(e,n,t);this.getEngine().TUIStore.update(ad.CHAT,"messageList",a)}updateTargetMessageList(e,t,n=""){const a=this.getStoreData(ad.CONV,"currentConversationID");let o=e.filter((e=>e.conversationID===a));if(o=this.handleC2CCallSignaling(o),!n||0===o.length)return t;const i=t||[];let s=[];if("send"===n||"push"===n){const e=this.getStoreData(ad.CHAT,"userInfo");Object.keys(e).length>0&&this.updateLocalMessage(o,e)}switch(n){case"edit":for(const e of t){const t=o.find((t=>t.ID===e.ID));s.push(t||e)}break;case"resend":s=i.filter((e=>e.ID!==o[0].ID)).concat(o);break;case"send":s=i.concat(this.typingHandler.filterTypingMessage(o));break;case"push":s=i.concat(this.typingHandler.filterTypingMessage(o)),this.getEngine().chat.setMessageRead({conversationID:a});break;case"unshift":s=o.filter((e=>0===i.length||!i.find((t=>t.ID===e.ID)))),s.push(...i)}return s}enterTypingState(){this.getStoreData(ad.APP,"enableTyping")&&this.sendTyping(!0)}leaveTypingState(){this.getStoreData(ad.APP,"enableTyping")&&this.sendTyping(!1)}sendTyping(e){const t=this.getEngine(),n=this.getStoreData(ad.CONV,"currentConversationID");if(!n.startsWith(t.TYPES.CONV_C2C))return;const a=n.replace(t.TYPES.CONV_C2C,"");if(e){const e=this.getStoreData(ad.CHAT,"messageList").filter((e=>"in"===e.flow));if(0===e.length)return;const t=1e3*e[e.length-1].time;if((new Date).getTime()-t>3e4)return}this.typingHandler.sendTyping(e,a)}quoteMessage(e){return this.getEngine().TUIStore.update(ad.CHAT,"quoteMessage",{message:e,type:"quote"}),e}replyMessage(e){return this.getEngine().TUIStore.update(ad.CHAT,"quoteMessage",{message:e,type:"reply"}),e}getCurrentConvInfo(){const{conversationID:e="",type:t}=this.getStoreData(ad.CONV,"currentConversation")||{};return{to:e.replace(t,""),conversationType:t}}t(e){return this.getEngine().TUITranslate.t(e)||e}getMessageAbstractAndType(e){var t,n;const a=this.getEngine(),o={abstract:"",type:0};switch(e.type){case a.TYPES.MSG_TEXT:o.abstract=null===(t=null==e?void 0:e.payload)||void 0===t?void 0:t.text,o.type=1;break;case a.TYPES.MSG_CUSTOM:o.abstract="[自定义消息]",o.type=2;break;case a.TYPES.MSG_IMAGE:o.abstract="[图片]",o.type=3;break;case a.TYPES.MSG_AUDIO:o.abstract="[语音]",o.type=4;break;case a.TYPES.MSG_VIDEO:o.abstract="[视频]",o.type=5;break;case a.TYPES.MSG_FILE:o.abstract="[文件]",o.type=6;break;case a.TYPES.MSG_LOCATION:o.type=7;break;case a.TYPES.MSG_FACE:o.abstract="[表情]",o.type=8;break;case a.TYPES.MSG_GRP_TIP:o.type=9;break;case a.TYPES.MSG_MERGER:o.abstract=null===(n=null==e?void 0:e.payload)||void 0===n?void 0:n.title,o.type=10}return o}genMessageReply(e,t){if("reply"!==t&&"quote"!==t)return{};const{abstract:n,type:a}=this.getMessageAbstractAndType(e),o={messageAbstract:n,messageSender:e.nick||e.from,messageID:e.ID},i=Object.assign(Object.assign({},o),{messageType:a,messageTime:null==e?void 0:e.time,messageSequence:null==e?void 0:e.sequence,version:1});if("reply"===t&&(i.messageRootID=e.ID,e.cloudCustomData)){const t=hd(e.cloudCustomData);t.messageReply&&t.messageReply.messageRootID&&(i.messageRootID=t.messageReply.messageRootID)}return{messageReply:i,messageReplyRoot:o}}getMessageInfo(e,t,n){const{messageReply:a,messageReplyRoot:o}=this.genMessageReply(t,n),i=e.cloudCustomData?hd(e.cloudCustomData):{};let s;if(i.messageReply?i.messageReply=Object.assign(Object.assign({},a),i.messageReply):i.messageReply=a,"reply"===n){const{messageRootID:e}=a;s=this.getEngine().chat.findMessage(e);const t=(null==s?void 0:s.cloudCustomData)?hd(s.cloudCustomData):{};t.messageReplies||(t.messageReplies={}),r=t.messageReplies.replies,("function"==typeof Array.isArray?Array.isArray(r):"array"===Object.prototype.toString.call(r).match(/^\[object (.*)\]$/)[1].toLowerCase())||(t.messageReplies.replies=[]),t.messageReplies.replies.push(o),s.cloudCustomData=JSON.stringify(t)}var r;return{cloudCustomData:JSON.stringify(i),rootMessage:s}}sendTextMessage(e,t){const n=this.getEngine(),{message:a,type:o}=this.getStoreData(ad.CHAT,"quoteMessage");let i={cloudCustomData:e.cloudCustomData||"",rootMessage:void 0};a&&(i=this.getMessageInfo(e,a,o));const s=n.chat.createTextMessage(Object.assign(Object.assign(Object.assign({},this.getCurrentConvInfo()),e),{cloudCustomData:i.cloudCustomData}));return this.sendMessage(s,t).then((e=>(i.rootMessage&&this.modifyMessage(i.rootMessage),n.TUIStore.reset(ad.CHAT,["quoteMessage"],!0),e)))}sendTextAtMessage(e,t){const n=this.getEngine(),{message:a,type:o}=this.getStoreData(ad.CHAT,"quoteMessage");let i={cloudCustomData:e.cloudCustomData||"",rootMessage:void 0};a&&(i=this.getMessageInfo(e,a,o));const s=n.chat.createTextAtMessage(Object.assign(Object.assign(Object.assign({},this.getCurrentConvInfo()),e),{cloudCustomData:i.cloudCustomData}));return this.sendMessage(s,t).then((e=>(i.rootMessage&&this.modifyMessage(i.rootMessage),n.TUIStore.reset(ad.CHAT,["quoteMessage"],!0),e)))}sendImageMessage(e,t){const n=this.getEngine().chat.createImageMessage(Object.assign(Object.assign(Object.assign({},this.getCurrentConvInfo()),e),{onProgress:e=>{this.onProgress(n.ID,e)}}));return this.sendMessage(n,t)}sendAudioMessage(e,t){const n=this.getEngine().chat.createAudioMessage(Object.assign(Object.assign(Object.assign({},this.getCurrentConvInfo()),e),{onProgress:e=>{this.onProgress(n.ID,e)}}));return this.sendMessage(n,t)}sendVideoMessage(e,t){const n=this.getEngine().chat.createVideoMessage(Object.assign(Object.assign(Object.assign({},this.getCurrentConvInfo()),e),{onProgress:e=>{this.onProgress(n.ID,e)}}));return this.sendMessage(n,t)}sendCustomMessage(e,t){const n=this.getEngine().chat.createCustomMessage(Object.assign(Object.assign({},this.getCurrentConvInfo()),e));return this.sendMessage(n,t)}sendFaceMessage(e,t){const n=this.getEngine().chat.createFaceMessage(Object.assign(Object.assign({},this.getCurrentConvInfo()),e));return this.sendMessage(n,t)}sendFileMessage(e,t){const n=this.getEngine().chat.createFileMessage(Object.assign(Object.assign(Object.assign({},this.getCurrentConvInfo()),e),{onProgress:e=>{this.onProgress(n.ID,e)}}));return this.sendMessage(n,t)}sendLocationMessage(e,t){const n=this.getEngine().chat.createLocationMessage(Object.assign(Object.assign({},this.getCurrentConvInfo()),e));return this.sendMessage(n,t)}onProgress(e,t){const n=this.getEngine().TUIStore.getMessageModel(e);n&&(t-n.progress>=.1||1===t)&&(n.progress=t,this.updateMessageList([n],"edit"))}setAbstractList(e){const t=this.getEngine(),n=e.nick||e.from;let a="";switch(e.type){case t.TYPES.MSG_TEXT:a=e.payload.text||"",a.length>20&&(a=a.slice(0,20));break;case t.TYPES.MSG_MERGER:a=`${this.t("TUIChat.[聊天记录]")}`;break;case t.TYPES.MSG_IMAGE:a=`${this.t("TUIChat.[图片]")}`;break;case t.TYPES.MSG_AUDIO:a=`${this.t("TUIChat.[音频]")}`;break;case t.TYPES.MSG_VIDEO:a=`${this.t("TUIChat.[视频]")}`;break;case t.TYPES.MSG_CUSTOM:a=`${this.t("TUIChat.[自定义消息]")}`;break;case t.TYPES.MSG_FILE:a=`${this.t("TUIChat.[文件]")}`;break;case t.TYPES.MSG_FACE:a=`${this.t("TUIChat.[动画表情]")}`}return`${n}: ${a}`}genMergerForwardPayload(e,t){const{abstractList:n=[],compatibleText:a="",title:o}=t;return 0===n.length&&e.forEach((e=>{n.push(this.setAbstractList(e))})),{messageList:e,title:o,abstractList:n,compatibleText:a||this.t("TUIChat.请升级IMSDK到v2.10.1或更高版本查看此消息")}}genSendMergerForwardMessage(e){const{conversationList:t,messageList:n,params:a,mergeInfo:o,sendMessageOptions:i}=e,s=[];for(let r=0;r<t.length;r++){const{conversationID:e,type:c}=t[r],l=Object.assign({to:e.replace(`${c}`,""),conversationType:c,payload:this.genMergerForwardPayload(n,o)},a),u=this.getEngine().chat.createMergerMessage(l);s.push(this.sendMessage(u,i))}return s}genTitle(e,t){const{nick:n,from:a,to:o}=e;return`${n||a} ${this.t("TUIChat.和")} ${t||o} ${this.t("TUIChat.的聊天记录")}`}genMergeInfo(e){var t;return ed(this,void 0,void 0,(function*(){const{messageList:n,mergeInfo:a}=e;if(a.title)return a;if(n[0].conversationType===this.getEngine().TYPES.CONV_GROUP)return a.title=this.t("TUIChat.群聊的聊天记录"),a;try{const{data:e=[]}=yield this.getEngine().TUIUser.getUserProfile({userIDList:[n[0].to]});a.title=this.genTitle(n[0],null===(t=e[0])||void 0===t?void 0:t.nick)}catch(o){a.title=this.genTitle(n[0])}return a}))}sendMergerForwardMessage(e){return ed(this,void 0,void 0,(function*(){return e.mergeInfo=yield this.genMergeInfo(e),Promise.all(this.genSendMergerForwardMessage(e))}))}getOriginMessageList(e){return e.map((e=>e instanceof Hd?e.getMessage():e))}sendForwardMessage(e,t,n){t=this.getOriginMessageList(t);const a=n||{},{needMerge:o=!1,params:i={},mergeInfo:s={}}=a,r=$u(a,["needMerge","params","mergeInfo"]);if(o)return this.sendMergerForwardMessage({conversationList:e,messageList:t,params:i,mergeInfo:s,sendMessageOptions:r});const c=[];for(let l=0;l<e.length;l++){const{conversationID:n,type:a}=e[l],o=Object.assign({to:n.replace(`${a}`,""),conversationType:a},i),s=r[n]||r;for(let e=0;e<t.length;e++){Reflect.set(o,"payload",t[e]);const n=this.getEngine().chat.createForwardMessage(o);c.push(this.sendMessage(n,s))}}return Promise.all(c)}revokeMessage(e){const t=this.getEngine().chat.revokeMessage(e);return this.getResponse(t,!0,!1)}resendMessage(e){e.status="unSend",this.updateMessageList([e],"resend");const t=this.getEngine().chat.resendMessage(e);return this.getResponse(t,!0,!0)}deleteMessage(e){const t=this.getEngine().chat.deleteMessage(e);return this.getResponse(t,!0,!1)}setMessageExtensions(e,t){return this.getEngine().chat.setMessageExtensions(e,t)}getMessageExtensions(e){return this.getEngine().chat.getMessageExtensions(e)}deleteMessageExtensions(e,t){return this.getEngine().chat.deleteMessageExtensions(e,t)}modifyMessage(e){const t=this.getEngine().chat.modifyMessage(e);return this.getResponse(t,!0,!1).catch((e=>{const{code:t=0,data:n={}}=e.code;throw t===rd.MSG_MODIFY_CONFLICT?g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`${ld.MSG_MODIFY_CONFLICT} data.message: ${null==n?void 0:n.message}`):t===rd.MSG_MODIFY_DISABLED_IN_AVCHATROOM?g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",ld.MSG_MODIFY_DISABLED_IN_AVCHATROOM):t===rd.MODIFY_MESSAGE_NOT_EXIST&&g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",ld.MODIFY_MESSAGE_NOT_EXIST),e}))}getMessageList(e={conversationID:this.getStoreData(ad.CONV,"currentConversationID"),nextReqMessageID:this.getStoreData(ad.CHAT,"nextReqMessageID")}){const t=this.getEngine();if(!t.chat.isReady())return Promise.reject({code:cd.GET_MSG_LIST_ERROR,message:ud.GET_MSG_LIST_ERROR});if(this.getStoreData(ad.CHAT,"isCompleted"))return Promise.resolve({data:{messageList:[],nextReqMessageID:"",isCompleted:!0}});const n=this.getStoreData(ad.CHAT,"messageSource"),a=this.hoppingConfigMap.get("nextMessageSeq"),o=this.hoppingConfigMap.get("nextMessageTime"),i=a||o;return n&&n.conversationID===e.conversationID&&i?this.getMessageListHopping():t.chat.getMessageList(e).then((e=>{var n;const{messageList:a,nextReqMessageID:o,isCompleted:i}=e.data,s=this.getStoreData(ad.CHAT,"userInfo");Object.keys(s).length>0&&this.updateLocalMessage(a,s),this.updateMessageList(a,"unshift"),t.TUIStore.update(ad.CHAT,"nextReqMessageID",o),t.TUIStore.update(ad.CHAT,"isCompleted",i);const r=null===(n=a[0])||void 0===n?void 0:n.conversationID,{operationType:c=0}=this.getEngine().TUIStore.getConversationModel(r)||{};return 0===c&&(this.getMessageReactions({messageList:a}),this.readReceiptHandler.getMessageReadReceiptList(a)),e})).catch((e=>Promise.reject(e)))}getMessageListHopping(e){var t;void 0===e&&(e={conversationID:null===(t=this.getStoreData(ad.CHAT,"messageSource"))||void 0===t?void 0:t.conversationID,sequence:this.hoppingConfigMap.get("nextMessageSeq"),time:this.hoppingConfigMap.get("nextMessageTime")});const n=this.getEngine();return n.chat.getMessageListHopping(e).then((t=>{const{messageList:a,nextMessageSeq:o,nextMessageTime:i,isCompleted:s}=t.data,r=1===e.direction?e.sequence:o,c=1===e.direction?e.time:i;return this.updateMessageList(a,"unshift"),this.delayGetHoppingFunction=void 0,this.hoppingConfigMap.set("nextMessageSeq",r),this.hoppingConfigMap.set("nextMessageTime",c),n.TUIStore.update(ad.CHAT,"isCompleted",s),t})).catch((e=>Promise.reject(e)))}sendMessageReadReceipt(e){return this.readReceiptHandler.sendMessageReadReceipt(e)}getGroupMessageReadMemberList(e){return this.readReceiptHandler.getGroupMessageReadMemberList(e).then((e=>{const{isCompleted:t,cursor:n,messageID:a,unreadUserIDList:o,readUserIDList:i}=e.data,s={code:0,data:{cursor:n,isCompleted:t,messageID:a,unreadUserInfoList:[],readUserInfoList:[]}},r=[...o,...i];return 0===r.length?s:this.getEngine().TUIUser.getUserProfile({userIDList:r}).then((e=>(o.length>0?e.data.forEach((e=>{const{userID:t,nick:n="",avatar:a=""}=e;s.data.unreadUserInfoList.push({userID:t,nick:n,avatar:a})})):e.data.forEach((e=>{const{userID:t,nick:n="",avatar:a=""}=e;s.data.readUserInfoList.push({userID:t,nick:n,avatar:a})})),s)))}))}downloadMergedMessages(e){return this.getEngine().chat.downloadMergerMessage(e)}setTranslationLanguage(e){this.getEngine().TUIStore.update(ad.USER,"targetLanguage",e)}translateText(e){const t=this.getStoreData(ad.USER,"targetLanguage"),n=Object.assign({targetLanguage:t,sourceLanguage:"auto"},e);return this.getEngine().chat.translateText(n)}searchCloudMessages(e){const t=this.getStoreData(ad.CONV,"conversationList");return this.getEngine().chat.searchCloudMessages(e).then((e=>{const{searchResultList:n}=e.data;return e.data.searchResultList=n.map((e=>{const{messageList:n,conversationID:a}=e,o=$u(e,["messageList","conversationID"]),i=n.map((e=>new Hd(e))),s=t.find((e=>e.conversationID===a));return Object.assign(Object.assign({},o),{messageList:i.sort(((e,t)=>t.time-e.time)),conversation:s})})),e}))}addMessageReaction(e,t){return this.getEngine().chat.addMessageReaction(e.getMessage(),t)}removeMessageReaction(e,t){return this.getEngine().chat.removeMessageReaction(e.getMessage(),t)}getMessageReactions(e){const{messageList:t=[]}=e,n=this.getStoreData(ad.APP,"enabledEmojiPlugin");g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`TUIChatService.getMessageReactions enabledEmojiPlugin:${n} messageList length:${t.length}`),n&&t.length>0&&this.getEngine().chat.getMessageReactions(e).then((e=>{const t=e.data.resultList||e.data;this.updateMessageReactionList(t)})).catch((e=>{}))}getAllUserListOfMessageReaction(e){var t;return this.getEngine().chat.getAllUserListOfMessageReaction(Object.assign(Object.assign({},e),{message:null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.getMessage()}))}updateMessageReactionList(e){const t=[];e.forEach((e=>{const{messageID:n,reactionList:a}=e,o=this.getEngine().TUIStore.getMessageModel(n);if(o){const e=[];for(let t=0;t<a.length;t++){let n=!0;for(let e=0;e<o.reactionList.length;e++)if(a[t].reactionID===o.reactionList[e].reactionID){o.reactionList[e]=a[t],n=!1;break}n&&e.push(a[t])}o.reactionList.push(...e),e.length=0,t.push(o)}})),t.length>0&&this.updateMessageList(t,"edit")}convertVoiceToText(e){const{message:t,language:n="zh"}=e,a=t.getMessage();return this.getEngine().chat.convertVoiceToText({message:a,language:n})}updateMessageInfo(e){const t=this.getStoreData(ad.CHAT,"userInfo");this.getEngine().TUIStore.update(ad.CHAT,"userInfo",Object.assign(t,e));const n=this.getStoreData(ad.CHAT,"messageList");n.length>0&&this.updateLocalMessage(n,e)&&this.getEngine().TUIStore.update(ad.CHAT,"messageList",n)}updateLocalMessage(e,t){let n=!1;return e.forEach((e=>{if(t[e.from]){const{nick:a,nameCard:o,avatar:i}=t[e.from];a&&(e.nick=a,n=!0),o&&(e.nameCard=o,n=!0),i&&(e.avatar=i,n=!0)}})),n}handleC2CCallSignaling(e){const t=this.getEngine(),n=t.getMyUserID();return e.filter((e=>{var a,o,i,s,r;const{conversationType:c,type:l,payload:u}=e;let d=!0;if(c===t.TYPES.CONV_C2C&&l===t.TYPES.MSG_CUSTOM&&t.chat.getSignalingInfo(e)){const t=hd(u.data);if(1===(null==t?void 0:t.businessID)){const c=hd(t.data);if(d=!(e._isExcludedFromUnreadCount&&e._isExcludedFromLastMessage),d&&!0!==(null===(a=null==c?void 0:c.data)||void 0===a?void 0:a.consumed)){let a=null===(o=null==c?void 0:c.data)||void 0===o?void 0:o.inviter;"line_busy"!==(null==c?void 0:c.line_busy)&&"lineBusy"!==(null===(i=null==c?void 0:c.data)||void 0===i?void 0:i.message)||(a=t.inviter);const{from:l,to:u}=e;if(a!==n&&e.from===n){const t=this.getStoreData(ad.CONV,"currentConversation");e.from=u,e.to=l,e.flow="in",e.avatar=(null===(s=null==t?void 0:t.userProfile)||void 0===s?void 0:s.avatar)||""}if(a===n&&e.from!==n){const t=this.getStoreData(ad.USER,"userProfile");e.from=u,e.to=l,e.flow="out",e.avatar=null==t?void 0:t.avatar}g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`${this.serv}.handleC2CCallSignaling myUserID:${n} callSignaling.inviter:${t.inviter} customData.data.inviter:${null===(r=null==c?void 0:c.data)||void 0===r?void 0:r.inviter}`)}}}return d}))}}class yp extends xd{constructor(){super(),this.groupMap=new Map}static getInstance(){return yp.instance||(yp.instance=new yp),yp.instance}init(){const e=this.getEngine();e.eventCenter.addEvent(e.EVENT.GROUP_LIST_UPDATED,this.onGroupListUpdated.bind(this)),e.eventCenter.addEvent(e.EVENT.GROUP_ATTRIBUTES_UPDATED,this.onGroupAttributesUpdated.bind(this)),e.eventCenter.addEvent(e.EVENT.GROUP_COUNTER_UPDATED,this.onGroupCounterUpdated.bind(this)),e.eventCenter.addEvent(e.EVENT.MESSAGE_RECEIVED,this.onMessageReceived.bind(this)),this.getGroupInitData()}onGroupListUpdated(e){const t=this.getEngine();t.TUIStore.update(ad.GRP,"groupList",e);const n=t.TUIStore.getData(ad.GRP,"currentGroupID");e.forEach((e=>{e.groupID===n&&t.TUIStore.update(ad.GRP,"currentGroup",e)}))}onGroupAttributesUpdated(e){const t=this.getEngine(),n=t.TUIStore.getData(ad.GRP,"currentGroupID");let a=t.TUIStore.getData(ad.GRP,"groupList");const{groupID:o,groupAttributes:i}=e;n===o&&t.TUIStore.update(ad.GRP,"currentGroupAttributes",i),a=a.map((e=>(e.groupID===o&&(e.groupAttributes=i),e))),t.TUIStore.update(ad.GRP,"groupList",a)}onGroupCounterUpdated(e){const t=this.getEngine(),n=t.TUIStore.getData(ad.GRP,"currentGroupID"),a=t.TUIStore.getData(ad.GRP,"currentGroupCounters")||{};let o=t.TUIStore.getData(ad.GRP,"groupList");const{groupID:i,key:s,value:r}=e;n===i&&(a[s]=r,t.TUIStore.update(ad.GRP,"currentGroupCounters",a)),o=o.map((e=>(e.groupID===i&&(e.groupCounters=Object.assign(Object.assign({},e.groupCounters),{[s]:r})),e))),t.TUIStore.update(ad.GRP,"groupList",o)}onMessageReceived(e){const t=this.getEngine(),n=[];e.forEach((e=>{if(e.type===t.TYPES.MSG_GRP_TIP){const{payload:n}=e,{operationType:a,userIDList:o}=n,i=t.TUIStore.getData(ad.GRP,"currentGroupID");switch(a){case t.TYPES.GRP_TIP_MBR_JOIN:this.addMemberList(o);break;case t.TYPES.GRP_TIP_MBR_QUIT:case t.TYPES.GRP_TIP_MBR_KICKED_OUT:this.removeMemberList(o);break;case t.TYPES.GRP_TIP_MBR_SET_ADMIN:case t.TYPES.GRP_TIP_MBR_CANCELED_ADMIN:this.updateGroupMember(o);break;case t.TYPES.GRP_TIP_GRP_PROFILE_UPDATED:this.getGroupProfile({groupID:i});break;case t.TYPES.GRP_TIP_MBR_PROFILE_UPDATED:case t.TYPES.GRP_TIP_BAN_AVCHATROOM_MEMBER:case t.TYPES.GRP_TIP_UNBAN_AVCHATROOM_MEMBER:this.updateGroupMember(o)}}e.type===t.TYPES.MSG_GRP_SYS_NOTICE&&n.push(e)})),n.length>0&&t.TUIStore.update(ad.GRP,"groupSystemNoticeList",n)}getGroupInitData(){const e=this.getEngine();e.chat.isReady()&&e.chat.getGroupList().then((e=>{const{groupList:t=[]}=e.data;g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`TUIGroupService.init, getGroupList count:${t.length}`),t.length>0&&this.onGroupListUpdated(t)}))}updateGroupMember(e){return ed(this,void 0,void 0,(function*(){const t=this.getEngine().TUIStore.getData(ad.GRP,"currentGroupID");if(t){const n=yield this.getGroupMemberProfile({groupID:t,userIDList:e}),{memberList:a}=n.data;this.updateMemberList(a)}}))}resetCurrentStore(){this.getEngine().TUIStore.reset(ad.GRP,["currentGroupID","currentGroup","currentGroupAttributes","currentGroupCounters","currentGroupMemberList"],!0)}switchGroup(e){return ed(this,void 0,void 0,(function*(){const t=this.getEngine(),n=t.TUIStore.getConversationModel(`GROUP${e}`);if((null==n?void 0:n.operationType)>0){const e=t.TUIStore.getData(ad.GRP,"currentGroup");return Promise.resolve(e)}const a=t.TUIStore.getData(ad.GRP,"currentGroupID");if(!e)return this.resetCurrentStore(),Promise.resolve({});if(a===e){const e=t.TUIStore.getData(ad.GRP,"currentGroup");return Promise.resolve(e)}this.resetCurrentStore(),t.TUIStore.update(ad.GRP,"currentGroupID",e);try{yield this.getGroupInfo(e)}catch(s){Promise.reject(s)}const o=setTimeout((()=>{this.groupMap.delete(e),clearTimeout(o)}),5e3),i=t.TUIStore.getData(ad.GRP,"currentGroup");return Promise.resolve(i)}))}getGroupInfo(e){return ed(this,void 0,void 0,(function*(){const t=this.getEngine(),n=this.groupMap.get(e);if(n)return this.updateMemberList((null==n?void 0:n.memberList)||[]),t.TUIStore.update(ad.GRP,"currentGroup",n.group),t.TUIStore.update(ad.GRP,"currentGroupAttributes",n.groupAttributes||{}),void t.TUIStore.update(ad.GRP,"currentGroupCounters",n.counters||{});const a={group:{},memberList:[],groupAttributes:void 0,counters:void 0},{data:{group:o}}=yield this.getGroupProfile({groupID:e});a.group=o;const{data:{memberList:i}}=yield this.getGroupMemberList({groupID:e});a.memberList=i;const s=yield this.getGroupAttributes({groupID:e,keyList:[]}),{groupAttributes:r}=s.data;a.groupAttributes=r,t.TUIStore.update(ad.GRP,"currentGroupAttributes",r);try{const n=yield this.getGroupCounters({groupID:e,keyList:[]}),{counters:o}=n.data;a.counters=o,t.TUIStore.update(ad.GRP,"currentGroupCounters",o)}catch(c){g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",null==c?void 0:c.message)}this.groupMap.set(e,a)}))}getGroupProfile(e){const t=this.getEngine();return t.chat.getGroupProfile(e).then((n=>ed(this,void 0,void 0,(function*(){if(t.TUIStore.getData(ad.GRP,"currentGroupID")===e.groupID){const{group:e}=n.data;t.TUIStore.update(ad.GRP,"currentGroup",e)}return n}))))}updateGroupProfile(e){return this.getEngine().chat.updateGroupProfile(e)}createGroup(e){return this.getEngine().chat.createGroup(e)}dismissGroup(e){return this.getEngine().chat.dismissGroup(e)}searchGroupByID(e){const t=this.getEngine();return t.chat.searchGroupByID(e).then((e=>{const{group:n}=e.data,a=t.TUIStore.getData(ad.GRP,"groupList");return e.data.group.isJoinedGroup=a.some((e=>e.groupID===n.groupID)),e}))}joinGroup(e){return this.getEngine().chat.joinGroup(e)}quitGroup(e){return this.getEngine().chat.quitGroup(e)}getGroupApplicationList(){return this.getEngine().chat.getGroupApplicationList()}handleGroupApplication(e){return this.getEngine().chat.handleGroupApplication(e)}getGroupOnlineMemberCount(e){return this.getEngine().chat.getGroupOnlineMemberCount(e)}changeGroupOwner(e){return this.getEngine().chat.changeGroupOwner(e)}initGroupAttributes(e){return this.getEngine().chat.initGroupAttributes(e)}setGroupAttributes(e){return this.getEngine().chat.setGroupAttributes(e)}deleteGroupAttributes(e){return this.getEngine().chat.deleteGroupAttributes(e)}getGroupAttributes(e){return this.getEngine().chat.getGroupAttributes(e)}setGroupCounters(e){return this.getEngine().chat.setGroupCounters(e)}increaseGroupCounter(e){return this.getEngine().chat.increaseGroupCounter(e)}decreaseGroupCounter(e){return this.getEngine().chat.decreaseGroupCounter(e)}getGroupCounters(e){return this.getEngine().chat.getGroupCounters(e)}updateMemberList(e){const t=this.getEngine(),n=[...(t.TUIStore.getData(ad.GRP,"currentGroupMemberList")||[]).filter((t=>!e.find((e=>e.userID===t.userID)))),...e];t.TUIStore.update(ad.GRP,"currentGroupMemberList",n)}addMemberList(e){return ed(this,void 0,void 0,(function*(){const t=this.getEngine().TUIStore.getData(ad.GRP,"currentGroupID");if(t)try{const n=yield this.getGroupMemberProfile({groupID:t,userIDList:e}),{memberList:a}=n.data;this.updateMemberList(a)}catch(n){const t=e.map((e=>({userID:e,avatar:"",nick:"",role:"",joinTime:0,nameCard:"",muteUntil:0,memberCustomField:[]})));this.updateMemberList(t)}}))}removeMemberList(e){const t=this.getEngine(),n=t.TUIStore.getData(ad.GRP,"currentGroupMemberList").filter((t=>-1===e.indexOf(t.userID)));t.TUIStore.update(ad.GRP,"currentGroupMemberList",n)}getGroupMemberList(e){const t=this.getEngine();return t.chat.getGroupMemberList(e).then((n=>{if(t.TUIStore.getData(ad.GRP,"currentGroupID")===e.groupID){const{memberList:e}=n.data;this.updateMemberList(e)}return n}))}getGroupMemberProfile(e){return this.getEngine().chat.getGroupMemberProfile(e)}addGroupMember(e){const t=this.getEngine();return t.chat.addGroupMember(e).then((n=>ed(this,void 0,void 0,(function*(){if(t.TUIStore.getData(ad.GRP,"currentGroupID")===e.groupID){const{successUserIDList:e,group:a}=n.data;t.TUIStore.update(ad.GRP,"currentGroup",a),this.addMemberList(e)}return n}))))}deleteGroupMember(e){const t=this.getEngine();return t.chat.deleteGroupMember(e).then((n=>{if(t.TUIStore.getData(ad.GRP,"currentGroupID")===e.groupID){const{userIDList:e,group:a}=n.data;this.removeMemberList(e),t.TUIStore.update(ad.GRP,"currentGroup",a)}return n}))}setGroupMemberMuteTime(e){return this.getEngine().chat.setGroupMemberMuteTime(e)}setGroupMemberRole(e){return this.getEngine().chat.setGroupMemberRole(e)}setGroupMemberNameCard(e){return this.getEngine().chat.setGroupMemberNameCard(e)}setGroupMemberCustomField(e){return this.getEngine().chat.setGroupMemberCustomField(e)}markGroupMemberList(e){return this.getEngine().chat.markGroupMemberList(e)}}class Ep extends xd{constructor(){super()}static getInstance(){return Ep.instance||(Ep.instance=new Ep),Ep.instance}init(){const e=this.getEngine();e.eventCenter.addEvent(e.EVENT.FRIEND_LIST_UPDATED,this.onFriendListUpdated.bind(this)),e.eventCenter.addEvent(e.EVENT.FRIEND_APPLICATION_LIST_UPDATED,this.onFriendApplicationListUpdated.bind(this)),this.getFriendInitData()}onFriendListUpdated(e){this.getEngine().TUIStore.update(ad.FRIEND,"friendList",e)}onFriendApplicationListUpdated(e){const{friendApplicationList:t,unreadCount:n=0}=e,a=this.getEngine();a.TUIStore.update(ad.FRIEND,"friendApplicationList",t),a.TUIStore.update(ad.FRIEND,"friendApplicationUnreadCount",n)}getFriendInitData(){const e=this.getEngine();e.chat.isReady()&&(e.chat.getFriendList().then((e=>{const t=e.data||[];g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`TUIFriendService.init, getFriendList count:${t.length}`),t.length>0&&this.onFriendListUpdated(t)})),e.chat.getFriendApplicationList().then((e=>{this.onFriendApplicationListUpdated(e.data)})))}getFriendList(){return this.getEngine().chat.getFriendList()}getFriendRemark(e){const t=this.getEngine().TUIStore.getData(ad.FRIEND,"friendList"),n={};return e.forEach((e=>{for(let a=0;a<t.length;a++)t[a].userID!==e||(n[e]=t[a].remark)})),n}addFriend(e){return this.getEngine().chat.addFriend(e)}deleteFriend(e){return this.getEngine().chat.deleteFriend(e)}checkFriend(e){return this.getEngine().chat.checkFriend(e)}getFriendProfile(e){return this.getEngine().chat.getFriendProfile(e)}updateFriend(e){return this.getEngine().chat.updateFriend(e)}acceptFriendApplication(e){return this.getEngine().chat.acceptFriendApplication(e)}refuseFriendApplication(e){return this.getEngine().chat.refuseFriendApplication({userID:e})}deleteFriendApplication(e){return this.getEngine().chat.deleteFriendApplication(e)}setFriendApplicationRead(){return this.getEngine().chat.setFriendApplicationRead()}}class Cp{constructor(){this.cache=[],this.middlewares=[],this.options=null}use(e){return"function"!=typeof e&&g("error","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","middleware must be a function"),this.cache.push(e),this}next(){if(this.middlewares&&this.middlewares.length>0)return this.middlewares.shift().call(this,this.options,this.next.bind(this))}run(e){return this.middlewares=this.cache.map((function(e){return e})),this.options=e,this.next()}}function kp(e,t,n){const a=Object.create(null);Object.keys(n).forEach((n=>{if(!t[n])return;a[n]=t[n];const o=new Cp;t[n]=function(){const i=Array.from(arguments);return o.use((function(t,a){return e.isInited?a():Promise.reject({code:cd.NOT_INIT,message:`${n} | ${ud.NOT_INIT}`})})).use((function(e,o){return a[n].apply(t,e)})),o.run(i)}}))}g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","TUIChatEngine.VERSION:2.2.9");const Ip=Od.getInstance();Rd.getInstance();const Sp=Wd.getInstance(),Tp=sp.getInstance(),Mp=rp.getInstance(),Np=hp.getInstance(),wp=_p.getInstance(),Dp=yp.getInstance(),bp=Ep.getInstance();Ip.mount(nd.TUIStore,Sp),Ip.mount(nd.TUITranslate,Tp),Ip.mount(nd.TUIConversation,Mp),Ip.mount(nd.TUIUser,Np),Ip.mount(nd.TUIChat,wp),Ip.mount(nd.TUIGroup,Dp),Ip.mount(nd.TUIFriend,bp),kp(Ip,Ip,{logout:1,destroy:1}),kp(Ip,Mp,{deleteConversation:1,pinConversation:1,muteConversation:1,switchConversation:1,getConversationProfile:1,clearHistoryMessage:1}),kp(Ip,wp,{modifyMessage:1,revokeMessage:1,resendMessage:1,deleteMessage:1,quoteMessage:1,replyMessage:1,setMessageExtensions:1,deleteMessageExtensions:1,getMessageExtensions:1,sendTextMessage:1,sendTextAtMessage:1,sendImageMessage:1,sendAudioMessage:1,sendVideoMessage:1,sendFileMessage:1,sendCustomMessage:1,sendFaceMessage:1,sendLocationMessage:1,sendForwardMessage:1,enterTypingState:1,leaveTypingState:1,sendMessageReadReceipt:1,getGroupMessageReadMemberList:1,getMessageList:1,downloadMergedMessages:1,setTranslationLanguage:1,translateText:1,searchCloudMessages:1,addMessageReaction:1,removeMessageReaction:1,getMessageReactions:1,getAllUserListOfMessageReaction:1}),kp(Ip,Dp,{switchGroup:1,getGroupProfile:1,updateGroupProfile:1,createGroup:1,dismissGroup:1,searchGroupByID:1,joinGroup:1,quitGroup:1,getGroupApplicationList:1,handleGroupApplication:1,getGroupOnlineMemberCount:1,changeGroupOwner:1,initGroupAttributes:1,setGroupAttributes:1,deleteGroupAttributes:1,getGroupAttributes:1,setGroupCounters:1,increaseGroupCounter:1,decreaseGroupCounter:1,getGroupCounters:1,getGroupMemberList:1,getGroupMemberProfile:1,addGroupMember:1,deleteGroupMember:1,setGroupMemberMuteTime:1,setGroupMemberRole:1,setGroupMemberNameCard:1,setGroupMemberCustomField:1,markGroupMemberList:1}),kp(Ip,Np,{switchUserStatus:1,switchMessageReadStatus:1,getUserProfile:1,updateMyProfile:1,addToBlacklist:1,removeFromBlacklist:1}),kp(Ip,bp,{getFriendList:1,addFriend:1,deleteFriend:1,checkFriend:1,getFriendProfile:1,updateFriend:1,acceptFriendApplication:1,refuseFriendApplication:1,deleteFriendApplication:1,setFriendApplicationRead:1});const Lp="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),Pp="undefined"!=typeof uni&&"undefined"==typeof window,Ap="undefined"!=typeof uni,Rp=("undefined"!=typeof uni||"undefined"!=typeof window)&&!(Lp||Pp),Op=Lp?wx:Ap?uni:"undefined"!=typeof window?window:{},Vp=Rp&&window&&window.navigator&&window.navigator.userAgent||"",Bp=/Android/i.test(Vp),xp=/(?:Windows Phone)/.test(Vp),Up=/(?:SymbianOS)/.test(Vp),Gp=Rp&&("ontouchstart"in window||navigator.maxTouchPoints>0)&&!!Rp&&(!!/Tablet|Pad/i.test(Vp)||(window.matchMedia("(orientation: portrait)").matches?window.innerWidth>=768&&window.innerHeight>=1024:window.innerWidth>=1024&&window.innerHeight>=768)),Fp=/iPhone/i.test(Vp)||/iPod/i.test(Vp),Yp=Lp,Hp=Bp||xp||Up||Fp||Gp,Zp=Rp&&!Hp,qp=Pp&&!Lp;function jp(){let e="";return Zp?e="pc":Hp?e="h5":Yp?e="wechat":qp&&(e="app"),e}const Jp=new Map;function Xp(e,t){if(!e)return Promise.reject(new Error(`getBoundingClientRect get error selector ${typeof e}.`));if(window||document){const t="object"==typeof e?e:document.querySelector(e);if(!t)return Promise.reject(new Error(`getBoundingClientRect can't find ${e} dom.`));const n=t.getBoundingClientRect();return Promise.resolve({id:t.id,top:n.top,left:n.left,right:n.right,bottom:n.bottom,width:n.width,height:n.height,x:n.x,y:n.y})}if(Ap){if(!t)return Promise.reject(new Error("getBoundingClientRect need instanceName in params."));const n=uni.createSelectorQuery().in(Jp.get(t));return new Promise(((t,a)=>{n.select(e).boundingClientRect((e=>{e&&t(e)})).exec(),setTimeout((()=>a(new Error(`getBoundingClientRect ${e} timeout.`))),500)}))}return Promise.reject(new Error("getBoundingClientRect occur error"))}function Kp(e,t){if(!e)return Promise.reject(new Error(`getScrollInfo get error selector ${typeof e}.`));if(!Ap&&window){const t="object"==typeof e?e:document.querySelector(e);return t?Promise.resolve({id:t.id,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight}):Promise.reject(new Error(`getScrollInfo can't find ${e} dom.`))}if(Ap){if(!t)return Promise.reject(new Error("getScrollInfo need instanceName in params."));const n=uni.createSelectorQuery().in(Jp.get(t));return new Promise(((t,a)=>{n.select(e).scrollOffset((e=>{e&&t(e)})).exec(),setTimeout((()=>a(new Error(`getScrollInfo ${e} timeout.`))),500)}))}return Promise.reject(new Error("getScrollInfo occur error"))}g("log","at node_modules/@tencentcloud/universal-api/index.js:1","UniversalAPI.VERSION:2.2.9");const zp=new class e{constructor(){if(e.instance)return e.instance;e.instance=this,this.eventCallback=null,this.listener=null,this.button=0,this.init()}init(){Rp&&(this.eventCallback=e=>{this.listener&&this.listener(e)},document.addEventListener("mousedown",this.eventCallback))}listen(e){if(Rp){const{domRefs:t,ignoreDomRefs:n,handler:a,button:o=0}=e;this.button=o,this.listener=e=>{const o=Array.isArray(n)?n:[n];for(const t of o)if(t&&t.contains(e.target))return;const i=Array.isArray(t)?t:[t];for(const t of i)if(t&&t.contains(e.target)&&this.button===e.button)return;a(e),this.remove()}}}remove(){this.listener=null,this.button=-1}};let Wp;Wp=3,g("warn","at TUIKit/adapter-vue.ts:13","[adapter-vue]: vue version is 3");const Qp="pc"===jp(),$p="h5"===jp(),eh="wechat"===jp(),th="app"===jp(),nh="undefined"!=typeof uni,ah=$p||eh||th,oh=e.defineComponent({__name:"Icon",props:{file:{default:""},size:{},width:{default:"20px"},height:{default:"20px"},hotAreaSize:{}},emits:["onClick"],setup(t,{emit:n}){const a=n,o=t,i=e.computed((()=>{if(o.hotAreaSize)return isNaN(Number(o.hotAreaSize))?String(o.hotAreaSize):`${o.hotAreaSize}px`})),s=e.computed((()=>o.size?o.size:o.width)),r=e.computed((()=>o.size?o.size:o.height)),c=e=>{a("onClick",e)};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["common-icon-container",!e.unref(Qp)&&"common-icon-container-mobile"]),style:e.normalizeStyle({padding:e.unref(i)}),onClick:c},[e.unref(th)?(e.openBlock(),e.createElementBlock("image",{key:0,class:"common-icon",src:o.file,style:e.normalizeStyle({width:e.unref(s),height:e.unref(r)})},null,12,["src"])):(e.openBlock(),e.createElementBlock("img",{key:1,class:"common-icon",src:o.file,style:e.normalizeStyle({width:e.unref(s),height:e.unref(r)})},null,12,["src"]))],6))}}),ih=w(oh,[["__scopeId","data-v-fea828e0"]]),sh="/assets/search.980f6827.svg",rh="/assets/input-close.0b5e85b2.svg",ch=w(e.defineComponent({__name:"index",props:{placeholder:{type:String,default:()=>Tp.t("TUISearch.搜索")},searchType:{type:String,default:"global",validator:e=>["global","conversation"].includes(e)}},setup(t){const n=t,a=e.ref(""),o=e.ref(""),i=e.ref(!1);function s(e){(null==e?void 0:e.searchType)===(null==n?void 0:n.searchType)&&(o.value=null==e?void 0:e.value,a.value=null==e?void 0:e.value)}function r(e){(null==e?void 0:e.searchType)===(null==n?void 0:n.searchType)&&(i.value=null==e?void 0:e.isSearching)}e.onMounted((()=>{Sp.watch(ad.SEARCH,{currentSearchInputValue:s,currentSearchingStatus:r})})),e.onUnmounted((()=>{Sp.unwatch(ad.SEARCH,{currentSearchInputValue:s,currentSearchingStatus:r})}));const c=()=>{a.value!==o.value&&Sp.update(ad.SEARCH,"currentSearchInputValue",{value:a.value,searchType:n.searchType})},l=()=>{i.value=!1,Sp.update(ad.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:n.searchType}),Sp.update(ad.SEARCH,"currentSearchInputValue",{value:"",searchType:n.searchType})},u=()=>{Sp.update(ad.SEARCH,"currentSearchingStatus",{isSearching:!0,searchType:n.searchType})},d=()=>{var e;null==(e=null==Op?void 0:Op.hideKeyboard)||e.call(Op)};return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tui-search-input-container",!e.unref(Qp)&&"tui-search-input-container-h5","global"===n.searchType?"tui-search-input-container-global":"tui-search-input-container-conversation"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-search-input",!e.unref(Qp)&&"tui-search-input-h5"])},[e.createElementVNode("div",{class:"tui-search-input-left"},[e.createVNode(ih,{class:"icon",file:e.unref(sh),width:"14px",height:"14px"},null,8,["file"])]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=t=>e.isRef(a)?a.value=t:null),class:"tui-search-input-main",type:"text",placeholder:n.placeholder,focus:!1,enterkeyhint:"search",onBlur:d,onKeyup:e.withKeys(c,["enter"]),onConfirm:c,onClick:e.withModifiers(u,["stop","prevent"])},null,40,["placeholder"]),[[e.vModelText,e.unref(a)]]),e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tui-search-input-right",onClick:l},[e.createVNode(ih,{class:"icon",file:e.unref(rh),width:"14px",height:"14px"},null,8,["file"])])):e.createCommentVNode("",!0)],2),!e.unref(Qp)&&e.unref(i)&&"global"===n.searchType?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-search-input-cancel",!e.unref(Qp)&&"tui-search-input-h5-cancel"]),onClick:l},e.toDisplayString(e.unref(Tp).t("TUISearch.取消")),3)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-6d9c2069"]]),lh={allMessage:{key:"allMessage",label:"全部",value:[Ip.TYPES.MSG_TEXT,Ip.TYPES.MSG_FILE,Ip.TYPES.MSG_IMAGE,Ip.TYPES.MSG_VIDEO,Ip.TYPES.MSG_AUDIO,Ip.TYPES.MSG_LOCATION,Ip.TYPES.MSG_CUSTOM,Ip.TYPES.MSG_MERGER]},textMessage:{key:"textMessage",label:"文本",value:[Ip.TYPES.MSG_TEXT]},fileMessage:{key:"fileMessage",label:"文件",value:[Ip.TYPES.MSG_FILE]},imageMessage:{key:"imageMessage",label:"图片/视频",value:[Ip.TYPES.MSG_IMAGE,Ip.TYPES.MSG_VIDEO]},otherMessage:{key:"otherMessage",label:"其他",value:[Ip.TYPES.MSG_AUDIO,Ip.TYPES.MSG_LOCATION,Ip.TYPES.MSG_CUSTOM,Ip.TYPES.MSG_MERGER]}};Object.keys(lh).filter((e=>"all"!==e));const uh={global:lh.allMessage,conversation:lh.textMessage},dh=["allMessage","textMessage","fileMessage","otherMessage"],mh=Object.keys(lh).filter((e=>null==dh?void 0:dh.includes(e))).reduce(((e,t)=>(e[t]=lh[t],e)),{}),ph=["textMessage","fileMessage","imageMessage","otherMessage"],hh=Object.keys(lh).filter((e=>null==ph?void 0:ph.includes(e))).reduce(((e,t)=>(e[t]=lh[t],e)),{}),gh=86400,fh={all:{key:"all",label:"全部",value:{timePosition:0,timePeriod:0}},oneDay:{key:"today",label:"今天",value:{timePosition:0,timePeriod:gh}},threeDay:{key:"threeDays",label:"近三天",value:{timePosition:0,timePeriod:259200}},sevenDay:{key:"sevenDays",label:"近七天",value:{timePosition:0,timePeriod:604800}}},vh=fh.all;var _h={exports:{}};!function(e){e.exports=function(){var e=1e3,t=6e4,n=36e5,a="millisecond",o="second",i="minute",s="hour",r="day",c="week",l="month",u="quarter",d="year",m="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(n)+e},_={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),a=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(a,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var a=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(a,l),i=n-o<0,s=t.clone().add(a+(i?-1:1),l);return+(-(a+(n-o)/(i?o-s:s-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:r,D:m,h:s,m:i,s:o,ms:a,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",E={};E[y]=f;var C="$isDayjsObject",k=function(e){return e instanceof M||!(!e||!e[C])},I=function e(t,n,a){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();E[i]&&(o=i),n&&(E[i]=n,o=i);var s=t.split("-");if(!o&&s.length>1)return e(s[0])}else{var r=t.name;E[r]=t,o=r}return!a&&o&&(y=o),o||!a&&y},S=function(e,t){if(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new M(n)},T=_;T.l=I,T.i=k,T.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function f(e){this.$L=I(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var v=f.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(h);if(a){var o=a[2]-1||0,i=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return T},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,a=!!T.u(t)||t,u=T.p(e),p=function(e,t){var o=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return a?o:o.endOf(r)},h=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,f=this.$M,v=this.$D,_="set"+(this.$u?"UTC":"");switch(u){case d:return a?p(1,0):p(31,11);case l:return a?p(1,f):p(0,f+1);case c:var y=this.$locale().weekStart||0,E=(g<y?g+7:g)-y;return p(a?v-E:v+(6-E),f);case r:case m:return h(_+"Hours",0);case s:return h(_+"Minutes",1);case i:return h(_+"Seconds",2);case o:return h(_+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,c=T.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[r]=u+"Date",n[m]=u+"Date",n[l]=u+"Month",n[d]=u+"FullYear",n[s]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[a]=u+"Milliseconds",n)[c],h=c===r?this.$D+(t-this.$W):t;if(c===l||c===d){var g=this.clone().set(m,1);g.$d[p](h),g.init(),this.$d=g.set(m,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[T.p(e)]()},v.add=function(a,u){var m,p=this;a=Number(a);var h=T.p(u),g=function(e){var t=S(p);return T.w(t.date(t.date()+Math.round(e*a)),p)};if(h===l)return this.set(l,this.$M+a);if(h===d)return this.set(d,this.$y+a);if(h===r)return g(1);if(h===c)return g(7);var f=(m={},m[i]=t,m[s]=n,m[o]=e,m)[h]||1,v=this.$d.getTime()+a*f;return T.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var a=e||"YYYY-MM-DDTHH:mm:ssZ",o=T.z(this),i=this.$H,s=this.$m,r=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,a))||o[n].slice(0,i)},m=function(e){return T.s(i%12||12,e,"0")},h=u||function(e,t,n){var a=e<12?"AM":"PM";return n?a.toLowerCase():a};return a.replace(g,(function(e,a){return a||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return r+1;case"MM":return T.s(r+1,2,"0");case"MMM":return d(n.monthsShort,r,l,3);case"MMMM":return d(l,r);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return T.s(i,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return h(i,s,!0);case"A":return h(i,s,!1);case"m":return String(s);case"mm":return T.s(s,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(a,m,p){var h,g=this,f=T.p(m),v=S(a),_=(v.utcOffset()-this.utcOffset())*t,y=this-v,E=function(){return T.m(g,v)};switch(f){case d:h=E()/12;break;case l:h=E();break;case u:h=E()/3;break;case c:h=(y-_)/6048e5;break;case r:h=(y-_)/864e5;break;case s:h=y/n;break;case i:h=y/t;break;case o:h=y/e;break;default:h=y}return p?h:T.a(h)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return E[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),a=I(e,t,!0);return a&&(n.$L=a),n},v.clone=function(){return T.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},f}(),N=M.prototype;return S.prototype=N,[["$ms",a],["$s",o],["$m",i],["$H",s],["$W",r],["$M",l],["$y",d],["$D",m]].forEach((function(e){N[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,M,S),e.$i=!0),S},S.locale=I,S.isDayjs=k,S.unix=function(e){return S(1e3*e)},S.en=E[y],S.Ls=E,S.p={},S}()}(_h);var yh=_h.exports;const Eh=Pe(yh);var Ch={exports:{}};!function(e){e.exports=function(e,t,n){var a=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,a,i){var s=e.name?e:e.$locale(),r=o(s[t]),c=o(s[n]),l=r||c.map((function(e){return e.slice(0,a)}));if(!i)return l;var u=s.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},s=function(){return n.Ls[n.locale()]},r=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return r(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return r(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(s(),"months")},n.monthsShort=function(){return i(s(),"monthsShort","months",3)},n.weekdays=function(e){return i(s(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(s(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(s(),"weekdaysMin","weekdays",2,e)}}}(Ch);const kh=Pe(Ch.exports);var Ih={exports:{}};!function(e){e.exports=function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}(Ih);const Sh=Pe(Ih.exports);var Th={exports:{}};!function(e){e.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}(Th);const Mh=Pe(Th.exports);!function(e){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return n.default.locale(a,null,!0),a}(yh)}({exports:{}});const Nh=w(e.defineComponent({__name:"date-table",props:{type:{type:String,default:"range"},currentPanelDate:{type:yh.Dayjs,default:()=>Eh()},date:{type:yh.Dayjs,default:null},startDate:{type:yh.Dayjs,default:null},endDate:{type:yh.Dayjs,default:null}},emits:["pick"],setup(t,{emit:n}){const a=t,o=n,i=e.getCurrentInstance(),s=e.ref([[],[],[],[],[],[]]),r=e.ref(Eh(a.currentPanelDate||null)),c=e.ref(Eh(a.date||null)),l=e.ref(Eh(a.startDate||null)),u=e.ref(Eh(a.endDate||null)),d=e.computed((()=>Eh.weekdaysShort())),m=e.computed((()=>d.value.map((e=>e.substring(1))))),p=e.computed((()=>{var e;const t=null==(e=r.value)?void 0:e.startOf("month");return null==t?void 0:t.subtract((null==t?void 0:t.day())||7,"day")})),h=e.computed((()=>{var e,t,n,o,i;const d=s.value,h=m.value.length,g=null==(e=r.value)?void 0:e.startOf("month"),f=(null==g?void 0:g.day())||7,v=null==g?void 0:g.daysInMonth();let _=1;for(let r=0;r<s.value.length;r++)for(let e=0;e<h;e++){const s=null==(t=p.value)?void 0:t.add(_,"day"),m=null==s?void 0:s.date(),h="single"===a.type&&(null==s?void 0:s.format("YYYY-MM-DD"))===(null==(n=c.value)?void 0:n.format("YYYY-MM-DD")),g="range"===a.type&&(null==s?void 0:s.format("YYYY-MM-DD"))===(null==(o=l.value)?void 0:o.format("YYYY-MM-DD")),y="range"===a.type&&(null==s?void 0:s.format("YYYY-MM-DD"))===(null==(i=u.value)?void 0:i.format("YYYY-MM-DD")),E=(null==s?void 0:s.isSameOrBefore(u.value,"day"))&&(null==s?void 0:s.isSameOrAfter(l.value,"day"));let C="normal";_<f?C="prev-month":_-f>=v&&(C="next-month"),d[r][e]={type:C,date:s,text:m,isSelected:h||g||y,isSelectedStart:g,isSelectedEnd:y,isInRange:E},_++}return d}));return e.watch((()=>[a.currentPanelDate,a.date,a.startDate,a.endDate]),(()=>{r.value=Eh(a.currentPanelDate||null),c.value=Eh(a.date||null),l.value=Eh(a.startDate||null),u.value=Eh(a.endDate||null),e.nextTick((()=>{var e;null==(e=null==i?void 0:i.proxy)||e.$forceUpdate()}))}),{deep:!0,immediate:!0}),(t,n)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass(["tui-date-table",!e.unref(Qp)&&"tui-date-table-h5"]),cellspacing:"0",cellpadding:"0",role:"grid"},[e.createElementVNode("tbody",{class:"tui-date-table-body"},[e.createElementVNode("tr",{class:"tui-date-table-body-weeks"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(t=>(e.openBlock(),e.createElementBlock("th",{key:t,class:"tui-date-table-body-weeks-item","aria-label":t+"",scope:"col"},e.toDisplayString(e.unref(Tp).t(`time.${t}`)),9,["aria-label"])))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),((t,n)=>(e.openBlock(),e.createElementBlock("tr",{key:n,class:"tui-date-table-body-days"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,((t,n)=>(e.openBlock(),e.createElementBlock("td",{key:n,class:e.normalizeClass(["tui-date-table-body-days-item",t.type])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-date-table-body-days-item-cell",t.isSelected&&"selected",t.isSelectedStart&&"selected-start",t.isSelectedEnd&&"selected-end",t.isInRange&&"range"]),onClick:e=>{var n;"normal"===(null==(n=t)?void 0:n.type)&&o("pick",n)}},[e.createElementVNode("span",{class:"tui-date-table-body-days-item-cell-text"},e.toDisplayString(t.text),1)],10,["onClick"])],2)))),128))])))),128))])],2))}}),[["__scopeId","data-v-f07c449d"]]),wh=w(e.defineComponent({__name:"date-picker-panel",props:{type:{type:String,default:"range"},date:{type:yh.Dayjs,default:()=>Eh()},startDate:{type:yh.Dayjs,default:null},endDate:{type:yh.Dayjs,default:null},rangeType:{type:String,default:""},currentOtherPanelValue:{type:yh.Dayjs,default:null}},emits:["pick","change"],setup(t,{emit:n}){const a=t,o=n,i=e=>e?["tui-date-picker-panel-"+e,!Qp&&"tui-date-picker-panel-h5-"+e]:["tui-date-picker-panel",!Qp&&"tui-date-picker-panel-h5"],s=e.ref(),r=e.computed((()=>{var e;return null==(e=s.value)?void 0:e.get("year")})),c=e.computed((()=>{var e;return null==(e=s.value)?void 0:e.format("MMMM")})),l=e.computed((()=>{var e,t,n;const o=(null==(e=a.currentOtherPanelValue)?void 0:e.year())-1,i=null==(t=a.currentOtherPanelValue)?void 0:t.year(o);return"right"===a.rangeType||(null==(n=s.value)?void 0:n.isBefore(i,"year"))})),u=e.computed((()=>{var e,t,n;const o=(null==(e=a.currentOtherPanelValue)?void 0:e.month())-1,i=null==(t=a.currentOtherPanelValue)?void 0:t.month(o);return"right"===a.rangeType||(null==(n=s.value)?void 0:n.isBefore(i,"month"))})),d=e.computed((()=>{var e,t,n;const o=(null==(e=a.currentOtherPanelValue)?void 0:e.year())+1,i=null==(t=a.currentOtherPanelValue)?void 0:t.year(o);return"left"===a.rangeType||(null==(n=s.value)?void 0:n.isAfter(i,"year"))})),m=e.computed((()=>{var e,t,n;const o=(null==(e=a.currentOtherPanelValue)?void 0:e.month())+1,i=null==(t=a.currentOtherPanelValue)?void 0:t.month(o);return"left"===a.rangeType||(null==(n=s.value)?void 0:n.isAfter(i,"month"))}));function p(e){o("pick",e)}function h(e,t){s.value=Eh(s.value.toDate()).add(t,e),o("change",s.value)}return e.onBeforeMount((()=>{switch(a.type){case"single":s.value=(a.date&&(null==(e=Eh(a.date))?void 0:e.isValid())?{date:null==a?void 0:a.date}:{date:Eh()}).date,o("change",s.value);break;case"range":s.value=(()=>{var e;switch(a.rangeType){case"left":return a.startDate&&Eh.isDayjs(a.startDate)?{date:null==a?void 0:a.startDate}:{date:Eh()};case"right":if(a.endDate&&Eh.isDayjs(a.endDate)&&(null==(e=null==a?void 0:a.endDate)?void 0:e.isAfter(a.startDate,"month")))return{date:null==a?void 0:a.endDate};{const e=(a.startDate||Eh()).month();return{date:(a.startDate||Eh()).month(e+1)}}default:return{date:Eh()}}})().date,o("change",s.value)}var e})),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([i("")]),onMouseup:n[4]||(n[4]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("div",{class:e.normalizeClass([i("body")])},[e.createElementVNode("div",{class:e.normalizeClass([i("body-header")])},[e.createElementVNode("div",{class:e.normalizeClass([i("body-header-prev")])},[e.unref(d)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([i("icon")]),onClick:n[0]||(n[0]=e=>h("year",-1))},[e.createVNode(ih,{file:e.unref("/assets/d-left-arrow.9b5f8cc0.svg"),width:"12px",height:"12px"},null,8,["file"])],2)):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([i("icon")]),onClick:n[1]||(n[1]=e=>h("month",-1))},[e.createVNode(ih,{file:e.unref("/assets/left-arrow.be72449a.svg"),width:"10px",height:"10px"},null,8,["file"])],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass([i("body-header-label")])},[e.createElementVNode("div",{class:e.normalizeClass([i("body-header-label-item")])},e.toDisplayString(e.unref(r)),3),e.createElementVNode("div",{class:e.normalizeClass([i("body-header-label-item")])},e.toDisplayString(e.unref(Tp).t(`time.${e.unref(c)}`)),3)],2),e.createElementVNode("div",{class:e.normalizeClass([i("body-header-next")])},[e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([i("icon")]),onClick:n[2]||(n[2]=e=>h("month",1))},[e.createVNode(ih,{file:e.unref("/assets/right-arrow.0c0041ad.svg"),width:"10px",height:"10px"},null,8,["file"])],2)):e.createCommentVNode("",!0),e.unref(l)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([i("icon")]),onClick:n[3]||(n[3]=e=>h("year",1))},[e.createVNode(ih,{file:e.unref("/assets/d-right-arrow.7ab4b4ba.svg"),width:"12px",height:"12px"},null,8,["file"])],2)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass([i("body-content")])},[e.createVNode(Nh,{type:a.type,date:a.date,startDate:a.startDate,endDate:a.endDate,currentPanelDate:e.unref(s),onPick:p},null,8,["type","date","startDate","endDate","currentPanelDate"])],2)],2)],34))}}),[["__scopeId","data-v-4ecd5d3b"]]),Dh=w(e.defineComponent({__name:"index",props:{type:{type:String,default:"range"},rangeTableType:{type:String,default:"one"},startPlaceholder:{type:String,default:()=>Tp.t("开始时间")},endPlaceholder:{type:String,default:()=>Tp.t("开始时间")},popupPosition:{type:String,default:"bottom"},defaultSingleDate:{type:yh.Dayjs,default:null,required:!1}},emits:["pick","change"],setup(t,{emit:n}){Eh.extend(kh),Eh.extend(Sh),Eh.extend(Mh),Eh.locale("zh-cn");const a=n,o=t,i=e.ref(!1),s=e.ref("single"===o.type?null==o?void 0:o.defaultSingleDate:null),r=e.ref("single"===o.type?null==o?void 0:o.defaultSingleDate:null),c=e.ref("single"===o.type?null==o?void 0:o.defaultSingleDate:null),l=e.computed((()=>{var e;return null==(e=null==r?void 0:r.value)?void 0:e.format("YYYY/MM/DD")})),u=e.computed((()=>{var e;return null==(e=null==c?void 0:c.value)?void 0:e.format("YYYY/MM/DD")})),d=o.startPlaceholder,m=o.endPlaceholder,p=e.ref(),h=e.ref(),g=e=>{i.value=e},f=e=>{const t=[];return e.forEach((e=>{e?(t.push("tui-date-picker-"+e),!Qp&&t.push("tui-date-picker-h5-"+e)):(t.push("tui-date-picker"),!Qp&&t.push("tui-date-picker-h5"))})),t},v=e=>{var t,n,i;switch(o.type){case"single":r.value=e.date,c.value=e.date,s.value=e.date,a("change",e),a("pick",s.value),setTimeout((()=>{g(!1)}),300);break;case"range":(null==r?void 0:r.value)?(null==c?void 0:c.value)?(r.value=e.date,c.value=null):((null==(t=null==r?void 0:r.value)?void 0:t.isSameOrBefore(e.date,"day"))?c.value=e.date:(c.value=r.value,r.value=e.date),a("pick",{startDate:null==(n=null==r?void 0:r.value)?void 0:n.startOf("date"),endDate:null==(i=null==c?void 0:c.value)?void 0:i.endOf("date")}),setTimeout((()=>{g(!1)}),200)):r.value=e.date,a("change",{startDate:r.value,endDate:c.value,leftCurrentPanel:p.value,rightCurrentPanel:p.value})}},_=e=>{p.value=e,a("change",{startDate:r.value,endDate:c.value,leftCurrentPanel:p.value,rightCurrentPanel:p.value})},y=e=>{h.value=e,a("change",{startDate:r.value,endDate:c.value,leftCurrentPanel:p.value,rightCurrentPanel:p.value})};return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([f([""])])},[e.createElementVNode("div",{class:e.normalizeClass([f(["input"]),e.unref(i)&&f(["input-active"])]),onClick:a[2]||(a[2]=t=>g(!e.unref(i)))},[e.renderSlot(n.$slots,"start-icon",{},void 0,!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=t=>e.isRef(l)?l.value=t:null),placeholder:e.unref(d),class:e.normalizeClass([f(["input-start"])]),style:{"pointer-events":"none"},type:"text",readonly:!0,disabled:e.unref(nh),autocomplete:"false"},null,10,["placeholder","disabled"]),[[e.vModelText,e.unref(l)]]),"single"!==t.type?(e.openBlock(),e.createElementBlock("span",{key:0},"-")):e.createCommentVNode("",!0),"single"!==t.type?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":a[1]||(a[1]=t=>e.isRef(u)?u.value=t:null),placeholder:e.unref(m),class:e.normalizeClass([f(["input-end"])]),style:{"pointer-events":"none"},type:"text",readonly:!0,disabled:e.unref(nh),autocomplete:"false"},null,10,["placeholder","disabled"])),[[e.vModelText,e.unref(u)]]):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"end-icon",{},void 0,!0)],2),e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([f(["dialog"])])},[e.createElementVNode("div",{class:e.normalizeClass([f(["dialog-container","dialog-container-"+t.rangeTableType,"dialog-container-"+t.popupPosition])])},[e.createVNode(wh,{type:o.type,rangeType:"left",date:e.unref(s),startDate:e.unref(r),endDate:e.unref(c),currentOtherPanelValue:e.unref(h),onPick:v,onChange:_},null,8,["type","date","startDate","endDate","currentOtherPanelValue"]),"range"===o.type&&e.unref(Qp)&&"two"===t.rangeTableType?(e.openBlock(),e.createBlock(wh,{key:0,type:o.type,rangeType:"right",date:e.unref(s),startDate:e.unref(r),endDate:e.unref(c),currentOtherPanelValue:e.unref(p),onPick:v,onChange:y},null,8,["type","date","startDate","endDate","currentOtherPanelValue"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-b0775539"]]),bh="/assets/down-icon.50c12418.svg",Lh="/assets/close-dark.c1b1ccca.svg",Ph=w(e.defineComponent({__name:"index",props:{popupPosition:{type:String,default:"bottom"},searchType:{type:String,default:"global",validator:e=>["global","conversation"].includes(e)}},emits:["searchConfigChange","closeInConversationSearch"],setup(t,{emit:n}){const a=t,o=n,i=e.computed((()=>"conversation"===(null==a?void 0:a.searchType)?hh:mh)),s=e.ref(uh[null==a?void 0:a.searchType]),r=e.ref(vh),c=e.computed((()=>"contact"!==s.value.key&&"group"!==s.value.key)),l=e.computed((()=>Qp&&"global"===a.searchType&&!nh?"two":"one")),u=e.ref(!1);function d(e){(null==e?void 0:e.searchType)===(null==a?void 0:a.searchType)&&(s.value=(null==e?void 0:e.value)||uh[null==a?void 0:a.searchType])}function m(e){(null==e?void 0:e.searchType)===(null==a?void 0:a.searchType)&&(r.value=(null==e?void 0:e.value)||vh)}e.onMounted((()=>{Sp.watch(ad.SEARCH,{currentSearchMessageType:d,currentSearchMessageTime:m})})),e.onUnmounted((()=>{Sp.unwatch(ad.SEARCH,{currentSearchMessageType:d,currentSearchMessageTime:m})}));const p=()=>{var e;"all"!==(null==(e=r.value)?void 0:e.key)?Sp.update(ad.SEARCH,"currentSearchMessageTime",{value:vh,searchType:a.searchType}):u.value=!0},h=e=>{var t,n,o;if("all"===(null==(t=r.value)?void 0:t.key)){const{startDate:t,endDate:i}=e,s=Number(((null==(n=null==i?void 0:i.toDate())?void 0:n.getTime())/1e3).toFixed(0)),c=s-Number(((null==(o=null==t?void 0:t.toDate())?void 0:o.getTime())/1e3).toFixed(0)),l={key:r.value.key,label:r.value.label,value:{timePosition:s,timePeriod:c}};Sp.update(ad.SEARCH,"currentSearchMessageTime",{value:l,searchType:a.searchType})}},g=()=>{var e;u.value=!1,"all"===(null==(e=r.value)?void 0:e.key)&&Sp.update(ad.SEARCH,"currentSearchMessageTime",{value:vh,searchType:a.searchType})},f=()=>{o("closeInConversationSearch")};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tui-search-container",!e.unref(Qp)&&"tui-search-container-h5",e.unref(Qp)&&`container-${a.popupPosition}`,`container-${a.searchType}`])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(Qp)&&`tui-search-container-${a.popupPosition}`,!e.unref(Qp)&&"tui-search-container-h5-main"])},["conversation"!==a.searchType||e.unref(nh)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"tui-search-header"},[e.createElementVNode("div",{class:"tui-search-header-title"},e.toDisplayString(e.unref(Tp).t("TUISearch.搜索会话内容")),1),e.createElementVNode("div",{class:"tui-search-header-close",onClick:f},[e.createVNode(ih,{file:e.unref(Lh),width:"14px",height:"14px"},null,8,["file"])])])),e.createElementVNode("div",{class:"tui-search-tabs"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),((t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["tui-search-tabs-item",e.unref(s).key===t.key&&"tui-search-tabs-item-selected"]),onClick:e=>{return n=t,void Sp.update(ad.SEARCH,"currentSearchMessageType",{value:n,searchType:a.searchType});var n}},e.toDisplayString(e.unref(Tp).t(`TUISearch.${t.label}`)),11,["onClick"])))),128))]),e.renderSlot(t.$slots,"input",{},void 0,!0),e.unref(c)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"tui-search-time"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(fh),((t,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["tui-search-time-item",e.unref(r).key===t.key&&"tui-search-time-item-selected"]),onClick:e=>{return n=t,void(u.value&&"all"===n.key?u.value=!1:(u.value=!1,Sp.update(ad.SEARCH,"currentSearchMessageTime",{value:n,searchType:a.searchType})));var n}},["all"===t.key?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tui-search-time-item-picker"},[e.unref(u)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"tui-search-time-item-all",onClick:e.withModifiers(p,["stop"])},[e.createTextVNode(e.toDisplayString(e.unref(Tp).t("TUISearch.选择时间")+": "+e.unref(Tp).t("TUISearch.全部"))+" ",1),e.createVNode(ih,{file:e.unref(bh),width:"14px",height:"14px"},null,8,["file"])])),e.createElementVNode("div",{onClick:n[0]||(n[0]=e.withModifiers((()=>{}),["stop"]))},[e.unref(u)?(e.openBlock(),e.createBlock(Dh,{key:0,type:"range",rangeTableType:e.unref(l),onPick:h},null,8,["rangeTableType"])):e.createCommentVNode("",!0)]),e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"tui-search-time-item-close",onClick:g},[e.createVNode(ih,{class:"icon",file:e.unref(rh),width:"14px",height:"14px"},null,8,["file"])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1},e.toDisplayString(e.unref(Tp).t(`TUISearch.${t.label}`)),1))],10,["onClick"])))),128))])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"result",{},void 0,!0)],2)],2))}}),[["__scopeId","data-v-440f7fd2"]]),Ah={"[TUIEmoji_Smile]":"[微笑]","[TUIEmoji_Expect]":"[期待]","[TUIEmoji_Blink]":"[眨眼]","[TUIEmoji_Guffaw]":"[大笑]","[TUIEmoji_KindSmile]":"[姨母笑]","[TUIEmoji_Haha]":"[哈哈哈]","[TUIEmoji_Cheerful]":"[愉快]","[TUIEmoji_Speechless]":"[无语]","[TUIEmoji_Amazed]":"[惊讶]","[TUIEmoji_Sorrow]":"[悲伤]","[TUIEmoji_Complacent]":"[得意]","[TUIEmoji_Silly]":"[傻了]","[TUIEmoji_Lustful]":"[色]","[TUIEmoji_Giggle]":"[憨笑]","[TUIEmoji_Kiss]":"[亲亲]","[TUIEmoji_Wail]":"[大哭]","[TUIEmoji_TearsLaugh]":"[哭笑]","[TUIEmoji_Trapped]":"[困]","[TUIEmoji_Mask]":"[口罩]","[TUIEmoji_Fear]":"[恐惧]","[TUIEmoji_BareTeeth]":"[龇牙]","[TUIEmoji_FlareUp]":"[发怒]","[TUIEmoji_Yawn]":"[打哈欠]","[TUIEmoji_Tact]":"[机智]","[TUIEmoji_Stareyes]":"[星星眼]","[TUIEmoji_ShutUp]":"[闭嘴]","[TUIEmoji_Sigh]":"[叹气]","[TUIEmoji_Hehe]":"[呵呵]","[TUIEmoji_Silent]":"[收声]","[TUIEmoji_Surprised]":"[惊喜]","[TUIEmoji_Askance]":"[白眼]","[TUIEmoji_Ok]":"[OK]","[TUIEmoji_Shit]":"[便便]","[TUIEmoji_Monster]":"[怪兽]","[TUIEmoji_Daemon]":"[恶魔]","[TUIEmoji_Rage]":"[恶魔怒]","[TUIEmoji_Fool]":"[衰]","[TUIEmoji_Pig]":"[猪]","[TUIEmoji_Cow]":"[牛]","[TUIEmoji_Ai]":"[AI]","[TUIEmoji_Skull]":"[骷髅]","[TUIEmoji_Bombs]":"[炸弹]","[TUIEmoji_Coffee]":"[咖啡]","[TUIEmoji_Cake]":"[蛋糕]","[TUIEmoji_Beer]":"[啤酒]","[TUIEmoji_Flower]":"[花]","[TUIEmoji_Watermelon]":"[瓜]","[TUIEmoji_Rich]":"[壕]","[TUIEmoji_Heart]":"[爱心]","[TUIEmoji_Moon]":"[月亮]","[TUIEmoji_Sun]":"[太阳]","[TUIEmoji_Star]":"[星星]","[TUIEmoji_RedPacket]":"[红包]","[TUIEmoji_Celebrate]":"[庆祝]","[TUIEmoji_Bless]":"[福]","[TUIEmoji_Fortune]":"[发]","[TUIEmoji_Convinced]":"[服]","[TUIEmoji_Prohibit]":"[禁]","[TUIEmoji_666]":"[666]","[TUIEmoji_857]":"[857]","[TUIEmoji_Knife]":"[刀]","[TUIEmoji_Like]":"[赞]"},Rh={DELETE:"delete",ISPINNED:"ispinned",DISPINNED:"dispinned",MUTE:"mute",NOTMUTE:"notmute"},Oh="isC2C",Vh="isGroup",Bh={SERVICE:"consultion",EVALUATE:"evaluation",LINK:"text_link",CALL:1,ORDER:"order"},xh={BASIC:"basic",BIG:"big",CUSTOM:"CUSTOM"},Uh={LEFT:"left",TOP:"top"},Gh={INPUT:"input",TEXTAREA:"textarea",SWITCH:"switch"},Fh={SUBMIT:"submit",CANCEL:"cancel"},Yh="https://web.sdk.qcloud.com/im/assets/face-elem/",Hh=[{emojiGroupID:1,type:xh.BIG,url:Yh,list:["yz00","yz01","yz02","yz03","yz04","yz05","yz06","yz07","yz08","yz09","yz10","yz11","yz12","yz13","yz14","yz15","yz16","yz17"]},{emojiGroupID:2,type:xh.BIG,url:Yh,list:["ys00","ys01","ys02","ys03","ys04","ys05","ys06","ys07","ys08","ys09","ys10","ys11","ys12","ys13","ys14","ys15"]},{emojiGroupID:3,type:xh.BIG,url:Yh,list:["gcs00","gcs01","gcs02","gcs03","gcs04","gcs05","gcs06","gcs07","gcs08","gcs09","gcs10","gcs11","gcs12","gcs13","gcs14","gcs15","gcs16"]}],Zh={...Object.fromEntries(null==(t=Object.entries(Ah))?void 0:t.map((([e,t])=>[t,e]))),...Object.fromEntries(null==(n=Object.entries({"[TUIEmoji_Smile]":"[Smile]","[TUIEmoji_Expect]":"[Expect]","[TUIEmoji_Blink]":"[Blink]","[TUIEmoji_Guffaw]":"[Guffaw]","[TUIEmoji_KindSmile]":"[KindSmile]","[TUIEmoji_Haha]":"[Haha]","[TUIEmoji_Cheerful]":"[Cheerful]","[TUIEmoji_Speechless]":"[Speechless]","[TUIEmoji_Amazed]":"[Amazed]","[TUIEmoji_Sorrow]":"[Sorrow]","[TUIEmoji_Complacent]":"[Complacent]","[TUIEmoji_Silly]":"[Silly]","[TUIEmoji_Lustful]":"[Lustful]","[TUIEmoji_Giggle]":"[Giggle]","[TUIEmoji_Kiss]":"[Kiss]","[TUIEmoji_Wail]":"[Wail]","[TUIEmoji_TearsLaugh]":"[TearsLaugh]","[TUIEmoji_Trapped]":"[Trapped]","[TUIEmoji_Mask]":"[Mask]","[TUIEmoji_Fear]":"[Fear]","[TUIEmoji_BareTeeth]":"[BareTeeth]","[TUIEmoji_FlareUp]":"[FlareUp]","[TUIEmoji_Yawn]":"[Yawn]","[TUIEmoji_Tact]":"[Tact]","[TUIEmoji_Stareyes]":"[StarEyes]","[TUIEmoji_ShutUp]":"[ShutUp]","[TUIEmoji_Sigh]":"[Sigh]","[TUIEmoji_Hehe]":"[Hehe]","[TUIEmoji_Silent]":"[Silent]","[TUIEmoji_Surprised]":"[Surprised]","[TUIEmoji_Askance]":"[Askance]]","[TUIEmoji_Ok]":"[OK]","[TUIEmoji_Shit]":"[Shit]","[TUIEmoji_Monster]":"[Monster]","[TUIEmoji_Daemon]":"[Daemon]","[TUIEmoji_Rage]":"[Rage]","[TUIEmoji_Fool]":"[Fool]","[TUIEmoji_Pig]":"[Pig]","[TUIEmoji_Cow]":"[Cow]","[TUIEmoji_Ai]":"[AI]","[TUIEmoji_Skull]":"[Skull]","[TUIEmoji_Bombs]":"[Bombs]","[TUIEmoji_Coffee]":"[Coffee]","[TUIEmoji_Cake]":"[Cake]","[TUIEmoji_Beer]":"[Beer]","[TUIEmoji_Flower]":"[Flower]","[TUIEmoji_Watermelon]":"[Watermelon]","[TUIEmoji_Rich]":"[Rich]","[TUIEmoji_Heart]":"[Heart]","[TUIEmoji_Moon]":"[Moon]","[TUIEmoji_Sun]":"[Sun]","[TUIEmoji_Star]":"[Star]","[TUIEmoji_RedPacket]":"[RedPacket]","[TUIEmoji_Celebrate]":"[Celebrate]","[TUIEmoji_Bless]":"[Bless]","[TUIEmoji_Fortune]":"[Fortune]","[TUIEmoji_Convinced]":"[Convinced]","[TUIEmoji_Prohibit]":"[Prohibit]","[TUIEmoji_666]":"[666]","[TUIEmoji_857]":"[857]","[TUIEmoji_Knife]":"[Knife]","[TUIEmoji_Like]":"[Like]"}))?void 0:n.map((([e,t])=>[t,e])))},qh="https://web.sdk.qcloud.com/im/assets/emoji-plugin/",jh={"[TUIEmoji_Expect]":"emoji_0@2x.png","[TUIEmoji_Blink]":"emoji_1@2x.png","[TUIEmoji_Guffaw]":"emoji_2@2x.png","[TUIEmoji_KindSmile]":"emoji_3@2x.png","[TUIEmoji_Haha]":"emoji_4@2x.png","[TUIEmoji_Cheerful]":"emoji_5@2x.png","[TUIEmoji_Smile]":"emoji_6@2x.png","[TUIEmoji_Sorrow]":"emoji_7@2x.png","[TUIEmoji_Speechless]":"emoji_8@2x.png","[TUIEmoji_Amazed]":"emoji_9@2x.png","[TUIEmoji_Complacent]":"emoji_10@2x.png","[TUIEmoji_Lustful]":"emoji_11@2x.png","[TUIEmoji_Stareyes]":"emoji_12@2x.png","[TUIEmoji_Giggle]":"emoji_13@2x.png","[TUIEmoji_Daemon]":"emoji_14@2x.png","[TUIEmoji_Rage]":"emoji_15@2x.png","[TUIEmoji_Yawn]":"emoji_16@2x.png","[TUIEmoji_TearsLaugh]":"emoji_17@2x.png","[TUIEmoji_Silly]":"emoji_18@2x.png","[TUIEmoji_Wail]":"emoji_19@2x.png","[TUIEmoji_Kiss]":"emoji_20@2x.png","[TUIEmoji_Trapped]":"emoji_21@2x.png","[TUIEmoji_Fear]":"emoji_22@2x.png","[TUIEmoji_BareTeeth]":"emoji_23@2x.png","[TUIEmoji_FlareUp]":"emoji_24@2x.png","[TUIEmoji_Tact]":"emoji_25@2x.png","[TUIEmoji_Shit]":"emoji_26@2x.png","[TUIEmoji_ShutUp]":"emoji_27@2x.png","[TUIEmoji_Sigh]":"emoji_28@2x.png","[TUIEmoji_Hehe]":"emoji_29@2x.png","[TUIEmoji_Silent]":"emoji_30@2x.png","[TUIEmoji_Skull]":"emoji_31@2x.png","[TUIEmoji_Mask]":"emoji_32@2x.png","[TUIEmoji_Beer]":"emoji_33@2x.png","[TUIEmoji_Cake]":"emoji_34@2x.png","[TUIEmoji_RedPacket]":"emoji_35@2x.png","[TUIEmoji_Bombs]":"emoji_36@2x.png","[TUIEmoji_Ai]":"emoji_37@2x.png","[TUIEmoji_Celebrate]":"emoji_38@2x.png","[TUIEmoji_Bless]":"emoji_39@2x.png","[TUIEmoji_Flower]":"emoji_40@2x.png","[TUIEmoji_Watermelon]":"emoji_41@2x.png","[TUIEmoji_Cow]":"emoji_42@2x.png","[TUIEmoji_Fool]":"emoji_43@2x.png","[TUIEmoji_Surprised]":"emoji_44@2x.png","[TUIEmoji_Askance]":"emoji_45@2x.png","[TUIEmoji_Monster]":"emoji_46@2x.png","[TUIEmoji_Pig]":"emoji_47@2x.png","[TUIEmoji_Coffee]":"emoji_48@2x.png","[TUIEmoji_Ok]":"emoji_49@2x.png","[TUIEmoji_Heart]":"emoji_50@2x.png","[TUIEmoji_Sun]":"emoji_51@2x.png","[TUIEmoji_Moon]":"emoji_52@2x.png","[TUIEmoji_Star]":"emoji_53@2x.png","[TUIEmoji_Rich]":"emoji_54@2x.png","[TUIEmoji_Fortune]":"emoji_55@2x.png","[TUIEmoji_857]":"emoji_56@2x.png","[TUIEmoji_666]":"emoji_57@2x.png","[TUIEmoji_Prohibit]":"emoji_58@2x.png","[TUIEmoji_Convinced]":"emoji_59@2x.png","[TUIEmoji_Knife]":"emoji_60@2x.png","[TUIEmoji_Like]":"emoji_61@2x.png"},Jh=[{emojiGroupID:0,type:xh.BASIC,url:qh,list:Object.keys(jh)},...Hh],Xh=e=>eh?Ah[e]:Tp.t(`Emoji.${e}`),Kh=e=>{if(!e)return"";const t=/(\[.+?\])/g;let n=e;return t.test(e)&&(n=e.replace(t,(e=>jh[e]?Xh(e):e))),n},zh=e=>{const t=/\[([^\]]+)\]/g,n=[];let a,o=0;for(;null!==(a=t.exec(e));){const i=a.index,s=t.lastIndex,r=a[0];i>o&&n.push({type:"text",content:e.substring(o,i)});const c=qh+jh[r];c?n.push({type:"image",content:c,emojiKey:r}):n.push({type:"text",content:r}),o=s,t.lastIndex=o}return o<e.length&&n.push({type:"text",content:e.substring(o)}),n},Wh=w(e.defineComponent({__name:"message-abstract-text",props:{content:{default:()=>[]},highlightType:{default:"font"},displayType:{default:"info"}},setup(t){const n=t,a=e.ref(n.content);return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["message-abstract-text",`message-abstract-text-${t.highlightType}`,`message-abstract-text-${t.displayType}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),((t,n)=>(e.openBlock(),e.createElementBlock("span",{key:n,class:e.normalizeClass([t&&t.isHighlight?"highlight":"normal"])},e.toDisplayString(e.unref(Kh)(t.text)),3)))),128))],2))}}),[["__scopeId","data-v-ae182fbb"]]),Qh=w(e.defineComponent({__name:"message-abstract-file",props:{contentText:{default:()=>[]},messageContent:{default:()=>({})},displayType:{default:"bubble"}},setup(t){const n=t,a=e.ref(n.contentText),o=e.computed((()=>{var e;const t=null==(e=null==n?void 0:n.messageContent)?void 0:e.url,a=null==t?void 0:t.lastIndexOf("."),o=null==t?void 0:t.substring(a+1);return s(o)})),i=e.computed((()=>{var e;return null==(e=null==n?void 0:n.messageContent)?void 0:e.size})),s=e=>{const t="https://web.sdk.qcloud.com/component/TUIKit/assets/file-",n=["image","pdf","text","ppt","presentation","sheet","zip","word","video","unknown"];let a="",o="";return null==n||n.forEach((n=>{(null==e?void 0:e.includes(n))&&(a=t+n+".svg",o=n)})),{iconSrc:a||t+"unknown.svg",iconType:o||"unknown"}};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["message-abstract-file",`message-abstract-file-${t.displayType}`])},[e.createElementVNode("div",{class:e.normalizeClass(["message-abstract-file-left"])},[e.createElementVNode("img",{class:e.normalizeClass(["message-abstract-file-left-icon"]),src:e.unref(o).iconSrc},null,8,["src"])]),e.createElementVNode("div",{class:e.normalizeClass(["message-abstract-file-main"])},[e.createElementVNode("div",{class:e.normalizeClass(["message-abstract-file-main-name"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),((t,n)=>(e.openBlock(),e.createElementBlock("span",{key:n,class:e.normalizeClass([t&&t.isHighlight?"highlight":"normal"])},e.toDisplayString(t.text),3)))),128))]),e.createElementVNode("div",{class:e.normalizeClass(["message-abstract-file-main-size"])},e.toDisplayString(e.unref(i)),1)])],2))}}),[["__scopeId","data-v-5d509f53"]]),$h=e=>/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e),eg=e=>e&&(e=>{if("string"==typeof e)try{return!!JSON.parse(e)}catch(t){return!1}return!1})(e)?JSON.parse(e):e,tg="/assets/star-light.d9a7aedf.png",ng=w(e.defineComponent({__name:"message-abstract-custom",props:{contentText:{default:()=>[]},message:{default:()=>({})},messageContent:{default:()=>({})}},setup(t){var n,a;const o=t,i=e.ref(null==(n=null==o?void 0:o.message)?void 0:n.payload),s=e.computed((()=>{var e,t;return(null==(e=null==i?void 0:i.value)?void 0:e.data)?eg(i.value.data):null==(t=null==i?void 0:i.value)?void 0:t.data})),r=e.computed((()=>{var e;return null==(e=null==s?void 0:s.value)?void 0:e.businessID})),c=e.ref(null==o?void 0:o.contentText),l=e.ref((null==(a=null==o?void 0:o.messageContent)?void 0:a.custom)||"[自定义消息]");return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["message-abstract-custom"]),onClickCapture:n[0]||(n[0]=e.withModifiers((()=>{}),["stop"]))},[e.unref(r)===e.unref(Bh).SERVICE?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["service"])},[e.createElementVNode("h1",{class:e.normalizeClass(["service-header"])},[e.createElementVNode("label",{class:e.normalizeClass(["service-header-title"])},e.toDisplayString(e.unref(s).title),1),e.unref(s).hyperlinks_text?(e.openBlock(),e.createElementBlock("a",{key:0,class:e.normalizeClass(["service-header-link","link"]),href:e.unref(s).hyperlinks_text.value,target:"view_window"},e.toDisplayString(e.unref(s).hyperlinks_text.key),9,["href"])):e.createCommentVNode("",!0)]),e.unref(s).item&&e.unref(s).item.length>0?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass(["service-list"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s).item,((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:e.normalizeClass(["service-list-item"])},[e.unref($h)(t.value)?(e.openBlock(),e.createElementBlock("a",{key:0,class:e.normalizeClass(["service-list-item-link","link"]),href:t.value,target:"view_window"},e.toDisplayString(t.key),9,["href"])):(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["service-list-item-key"])},e.toDisplayString(t.key),1))])))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["service-description","description"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),((t,n)=>(e.openBlock(),e.createElementBlock("span",{key:n,class:e.normalizeClass([t&&t.isHighlight?"highlight":"normal"])},e.toDisplayString(t.text),3)))),128))])])):e.unref(r)===e.unref(Bh).EVALUATE?(e.openBlock(),e.createElementBlock("div",{key:1,class:"evaluate"},[e.createElementVNode("div",{class:e.normalizeClass(["evaluate-description","description"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),((t,n)=>(e.openBlock(),e.createElementBlock("span",{key:n,class:e.normalizeClass([t&&t.isHighlight?"highlight":"normal"])},e.toDisplayString(t.text),3)))),128))]),e.unref(s).score?(e.openBlock(),e.createElementBlock("ul",{key:0,class:"evaluate-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Math.max(e.unref(s).score,0),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"evaluate-list-item"},[e.createVNode(ih,{file:e.unref(tg),class:"file-icon"},null,8,["file"])])))),128))])):e.createCommentVNode("",!0),e.createElementVNode("article",null,e.toDisplayString(e.unref(s).comment),1)])):e.unref(r)===e.unref(Bh).ORDER?(e.openBlock(),e.createElementBlock("div",{key:2,class:"order"},[e.createElementVNode("img",{class:"order-image",src:e.unref(s).imageUrl,alt:""},null,8,["src"]),e.createElementVNode("main",{class:"order-main"},[e.createElementVNode("h1",{class:"order-main-title"},e.toDisplayString(e.unref(s).title),1),e.createElementVNode("div",{class:e.normalizeClass(["order-main-description","description"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),((t,n)=>(e.openBlock(),e.createElementBlock("span",{key:n,class:e.normalizeClass([t&&t.isHighlight?"highlight":"normal"])},e.toDisplayString(t.text),3)))),128))]),e.createElementVNode("span",{class:"order-main-price"},e.toDisplayString(e.unref(s).price),1)])])):e.unref(r)===e.unref(Bh).LINK?(e.openBlock(),e.createElementBlock("div",{key:3,class:"text-link"},[e.createElementVNode("div",{class:e.normalizeClass(["text-link-description","description"])},[e.createElementVNode("p",null,e.toDisplayString(e.unref(s).text),1)]),e.createElementVNode("a",{class:e.normalizeClass(["link"]),href:e.unref(s).link,target:"view_window"},e.toDisplayString(e.unref(Tp).t("message.custom.查看详情>>")),9,["href"])])):(e.openBlock(),e.createElementBlock("span",{key:4},e.toDisplayString(e.unref(l)),1))],32))}}),[["__scopeId","data-v-b32422fa"]]),ag=w(e.defineComponent({__name:"message-abstract-image",props:{messageContent:{default:()=>({})}},setup(t){const n=t,a=e.computed((()=>n.messageContent.url||""));return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["message-abstract-image-container"])},[e.createElementVNode("img",{class:e.normalizeClass(["message-abstract-image"]),src:e.unref(a)},null,8,["src"])]))}}),[["__scopeId","data-v-a6a350bc"]]),og="/assets/video-play.58b451c9.png",ig=w(e.defineComponent({__name:"message-abstract-video",props:{messageContent:{default:()=>({})}},setup(t){const n=t,a=e.computed((()=>n.messageContent.snapshotUrl||n.messageContent.url));return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["message-abstract-video"])},[e.createElementVNode("div",{class:"message-abstract-video-box"},[e.createElementVNode("img",{src:e.unref(a),class:e.normalizeClass(["video-snapshot"])},null,8,["src"]),e.createVNode(ih,{file:e.unref(og),class:"video-play"},null,8,["file"])])]))}}),[["__scopeId","data-v-1a98d7b0"]]),sg="success",rg="warning",cg="error",lg="normal",ug=e=>{Op.showToast({title:e.message||"Toast",duration:e.duration||1500,icon:dg(e.type)})},dg=e=>{if(!e)return"none";switch(e){case cg:case rg:return"none";case sg:return"success";default:return"none"}},mg={[Ip.TYPES.MSG_TEXT]:"[文本]",[Ip.TYPES.MSG_IMAGE]:"[图片]",[Ip.TYPES.MSG_AUDIO]:"[语音]",[Ip.TYPES.MSG_VIDEO]:"[视频]",[Ip.TYPES.MSG_FILE]:"[文件]",[Ip.TYPES.MSG_CUSTOM]:"[自定义消息]",[Ip.TYPES.MSG_SYSTEM]:"[系统消息]",[Ip.TYPES.MSG_MERGER]:"[合并消息]",[Ip.TYPES.MSG_LOCATION]:"[位置消息]"},pg=e=>{const t=(null==e?void 0:e.conversationID)||((null==e?void 0:e.groupID)?`GROUP${null==e?void 0:e.groupID}`:`C2C${null==e?void 0:e.userID}`);Mp.switchConversation(t).then((()=>{Sp.update(ad.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:"global"}),Sp.update(ad.SEARCH,"currentSearchInputValue",{value:"",searchType:"global"}),nh&&(null==Op||Op.navigateTo({url:"/TUIKit/components/TUIChat/index"}))})).catch((e=>{g("warn","at TUIKit/components/TUISearch/utils.ts:110","switch conversation failed:",null==e?void 0:e.message),ug({message:Tp.t("TUISearch.进入会话失败"),type:cg,duration:1e3})}))},hg=(e,t)=>{var n;if(!e||!t||!t.length)return[{text:e||"",isHighlight:!1}];const a=[];for(let c=0;c<t.length;c++){const o=null==(n=t[c])?void 0:n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=new RegExp(o,"gi");let s;for(;null!==(s=i.exec(e));){const e=s.index,t=s.index+s[0].length-1;a.push([e,t])}}const o=[a[0]];if(a.length>1){a.sort(((e,t)=>e[0]-t[0]));for(let e=1;e<a.length;e++){const t=a[e],n=o[o.length-1];t[0]-1<=n[1]?n[1]=Math.max(n[1],t[1]):o.push(t)}}if(!o[0])return[{text:e,isHighlight:!1}];const i=[];let s=0;for(let c=0;c<o.length;c++){const t=e.substring(s,o[c][0]);t&&i.push({text:t,isHighlight:!1});const n=e.substring(o[c][0],o[c][1]+1);n&&i.push({text:n,isHighlight:!0}),s=o[c][1]+1}const r=e.substring(s);return r&&i.push({text:r,isHighlight:!1}),i},gg=e=>{const t=new Date(1e3*e);return`${t.getFullYear()}-${("0"+(t.getMonth()+1)).slice(-2)}-${("0"+t.getDate()).slice(-2)}`},fg=w(e.defineComponent({__name:"index",props:{listItem:{default:()=>({})},listItemContent:{default:()=>({})},type:{default:"allMessage"},displayType:{default:"info"},keywordList:{default:()=>[]}},emits:["showResultDetail","navigateToChatPosition"],setup(t,{emit:n}){const a=t,o=n,i=e.ref(Ip.TYPES),s=e.ref(""),r=e.ref(""),c=e.ref([]),l=e.ref(""),u=e.ref(!1);e.watchEffect((()=>{var e,t;s.value=(e=>{var t,n,a,o;return e?e.ID?e.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png":e.groupID?e.avatar||`https://web.sdk.qcloud.com/im/assets/images/${null==e?void 0:e.type}.svg`:e.userID?e.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png":(null==(t=null==e?void 0:e.conversation)?void 0:t.conversationID)?"function"==typeof e.conversation.getAvatar?null==(n=e.conversation)?void 0:n.getAvatar():null==(o=null==(a=Sp.getConversationModel(e.conversation.conversationID))?void 0:a.getAvatar)?void 0:o.call(a):"":""})(a.listItem),r.value=((e,t)=>{var n,a,o;return e?e.ID?null==t?void 0:t.showName:e.groupID?e.name||e.groupID:e.userID?e.remark||e.nick||e.userID||"":(null==(n=e.conversation)?void 0:n.conversationID)?"function"==typeof e.conversation.getShowName?e.conversation.getShowName():(null==(o=null==(a=Sp.getConversationModel(e.conversation.conversationID))?void 0:a.getShowName)?void 0:o.call(a))||e.conversation.conversationID:"":""})(a.listItem,null==a?void 0:a.listItemContent),c.value=((e,t,n,a=!0)=>{var o,i,s,r;if(null==e?void 0:e.groupID)return[{text:"groupID: ",isHighlight:!1},{text:e.groupID,isHighlight:!0}];if(null==e?void 0:e.userID)return[{text:"userID: ",isHighlight:!1},{text:e.userID,isHighlight:!0}];if((null==e?void 0:e.conversation)||(null==e?void 0:e.flow)){if(1===(null==e?void 0:e.messageCount)||(null==e?void 0:e.flow)){const t=(null==e?void 0:e.flow)?e:null==e?void 0:e.messageList[0],r=(null==(o=null==t?void 0:t.payload)?void 0:o.text)||(null==(i=null==t?void 0:t.payload)?void 0:i.fileName)||(null==(s=null==t?void 0:t.payload)?void 0:s.description),c=[];return(null==t?void 0:t.type)&&a&&t.type!==Ip.TYPES.MSG_TEXT&&c.push({text:Tp.t(`TUISearch.${mg[t.type]}`),isHighlight:!1}),c.push(...hg(r,n)),c}return[{text:`${null==e?void 0:e.messageCount}${Tp.t("TUISearch.条相关")}${Tp.t(`TUISearch.${"allMessage"===t?"结果":null==(r=lh[t])?void 0:r.label}`)}`,isHighlight:!1}]}return[]})(a.listItem,a.type,a.keywordList,"info"===(null==a?void 0:a.displayType)),l.value=(null==(e=a.listItem)?void 0:e.time)?(e=>{const t=(new Date).setHours(0,0,0,0),n=new Date((new Date).getFullYear(),0,1,0,0,0,0).getTime(),a=new Date(e),o=864e5,i=t-a.getTime();function s(e){return e<10?"0"+e:e.toString()}if(i<=0)return`${s(a.getHours())}:${s(a.getMinutes())}`;if(i<=o)return`${Tp.t("time.昨天")} ${s(a.getHours())}:${s(a.getMinutes())}`;if(i<=5184e5){const e=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a.getDay()];return`${Tp.t("time."+e)} ${s(a.getHours())}:${s(a.getMinutes())}`}return a.getTime()>=n?`${a.getMonth()+1}/${a.getDate()} ${s(a.getHours())}:${s(a.getMinutes())}`:`${a.getFullYear()}/${a.getMonth()+1}/${a.getDate()} ${s(a.getHours())}:${s(a.getMinutes())}`})(1e3*(null==(t=a.listItem)?void 0:t.time)):""}));const d=()=>{var e;"contact"===a.type||"group"===a.type?pg(a.listItem):"info"!==a.displayType||(null==(e=a.listItem)?void 0:e.ID)?p():o("showResultDetail",!0,a.type,a.listItem)},m=e=>{u.value=e},p=()=>{o("navigateToChatPosition",a.listItem)};return(t,n)=>{return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["search-result-list-item",!e.unref(Qp)&&"search-result-list-item-h5","search-result-list-item-"+t.displayType,e.unref(u)&&"hover-"+t.displayType]),onClick:d,onMouseenter:n[0]||(n[0]=e=>m(!0)),onMouseleave:n[1]||(n[1]=e=>m(!1))},["info"===t.displayType||"bubble"===t.displayType?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.displayType])},[e.createElementVNode("div",{class:e.normalizeClass(t.displayType+"-left")},[e.createElementVNode("img",{class:e.normalizeClass(t.displayType+"-left-avatar"),src:e.unref(s)||"",onerror:"this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,10,["src"])],2),e.createElementVNode("div",{class:e.normalizeClass([t.displayType+"-main"])},[e.createElementVNode("div",{class:e.normalizeClass([t.displayType+"-main-name"])},e.toDisplayString(e.unref(r)),3),e.createElementVNode("div",{class:e.normalizeClass([t.displayType+"-main-content"])},["info"===t.displayType||t.listItem.type===e.unref(i).MSG_TEXT?(e.openBlock(),e.createBlock(Wh,{key:0,content:e.unref(c),highlightType:"info"===t.displayType?"font":"background",displayType:t.displayType},null,8,["content","highlightType","displayType"])):t.listItem.type===e.unref(i).MSG_FILE?(e.openBlock(),e.createBlock(Qh,{key:1,contentText:e.unref(c),messageContent:t.listItemContent,displayType:t.displayType},null,8,["contentText","messageContent","displayType"])):t.listItem.type===e.unref(i).MSG_IMAGE?(e.openBlock(),e.createElementBlock("div",{key:2})):t.listItem.type===e.unref(i).MSG_VIDEO?(e.openBlock(),e.createElementBlock("div",{key:3})):t.listItem.type===e.unref(i).MSG_CUSTOM?(e.openBlock(),e.createBlock(ng,{key:4,contentText:e.unref(c),message:t.listItem,messageContent:t.listItemContent},null,8,["contentText","message","messageContent"])):(e.openBlock(),e.createElementBlock("div",{key:5},e.toDisplayString((a=t.listItem,(null==a?void 0:a.type)?Tp.t(`TUISearch.${mg[a.type]}`):Tp.t("TUISearch.[合并消息]"))),1))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.displayType+"-right")},[e.createElementVNode("div",{class:e.normalizeClass(t.displayType+"-right-time")},e.toDisplayString(e.unref(l)),3),"bubble"===t.displayType&&e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.displayType+"-right-to"),onClick:e.withModifiers(p,["stop"])},e.toDisplayString(e.unref(Tp).t("TUISearch.定位到聊天位置")),3)):e.createCommentVNode("",!0)],2)],2)):"file"===t.displayType?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([t.displayType])},[e.createElementVNode("div",{class:e.normalizeClass([t.displayType+"-header"])},[e.createElementVNode("img",{class:e.normalizeClass(t.displayType+"-header-avatar"),src:e.unref(s),onerror:"this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,10,["src"]),e.createElementVNode("div",{class:e.normalizeClass([t.displayType+"-header-name"])},e.toDisplayString(e.unref(r)),3),e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.displayType+"-header-to"),onClick:e.withModifiers(p,["stop"])},e.toDisplayString(e.unref(Tp).t("TUISearch.定位到聊天位置")),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.displayType+"-header-time")},e.toDisplayString(e.unref(l)),3)],2),e.createElementVNode("div",{class:e.normalizeClass([t.displayType+"-main-content"])},[e.createVNode(Qh,{contentText:e.unref(c),messageContent:t.listItemContent,displayType:"bubble"},null,8,["contentText","messageContent"])],2)],2)):"image"===t.displayType?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([t.displayType])},[e.createElementVNode("div",{class:"image-container",onClick:e.withModifiers(p,["stop"])},[t.listItem.type===e.unref(i).MSG_IMAGE?(e.openBlock(),e.createBlock(ag,{key:0,messageContent:t.listItemContent},null,8,["messageContent"])):t.listItem.type===e.unref(i).MSG_VIDEO?(e.openBlock(),e.createBlock(ig,{key:1,messageContent:t.listItemContent},null,8,["messageContent"])):e.createCommentVNode("",!0),e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:2,class:"image-container-hover"},[e.createElementVNode("div",{class:"image-container-hover-text"},e.toDisplayString(e.unref(Tp).t("TUISearch.定位到聊天位置")),1)])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],34);var a}}}),[["__scopeId","data-v-4eb143e0"]]),vg=w(e.defineComponent({__name:"index",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["search-result-default",!e.unref(Qp)&&"search-result-default-h5"])},[e.createElementVNode("div",{class:"search-result-default-main"},[e.createVNode(ih,{file:e.unref("/assets/search-default.4e6b7fca.svg"),width:"88px",height:"75px"},null,8,["file"]),e.createElementVNode("div",{class:"default-text"},e.toDisplayString(e.unref(Tp).t("TUISearch.暂无搜索结果")),1)])],2))}),[["__scopeId","data-v-727e3884"]]),_g=w(e.defineComponent({__name:"index",props:{width:{type:String,default:"30px"},height:{type:String,default:"30px"},color:{type:String,default:"#D9D9D9"}},setup(t){const n=t;return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"tui-loading",style:e.normalizeStyle({width:n.width,height:n.height,border:`2px solid ${n.color}`,borderTopColor:"transparent"})},null,4))}}),[["__scopeId","data-v-0f42b926"]]),yg=w(e.defineComponent({__name:"index",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["search-result-loading",!e.unref(Qp)&&"search-result-loading-h5"])},[e.createVNode(_g,{width:"40px",height:"40px"})],2))}),[["__scopeId","data-v-36180e9c"]]),Eg="/assets/right-icon.b206bd3e.svg";function Cg(e){const t=Sp.getData(ad.APP,"tasks");e in t&&!t[e]&&(t[e]=!0,Sp.update(ad.APP,"tasks",t))}const kg=w(e.defineComponent({__name:"index",props:{searchType:{type:String,default:"global",validator:e=>["global","conversation"].includes(e)}},setup(t){var n,a;const o=t,i=e.ref([]),s=e.ref(null==(n=uh[o.searchType])?void 0:n.value),r=e.ref(0),c=e.ref(0),l=e.ref("and"),u=e.ref(null==(a=uh[o.searchType])?void 0:a.key),d=e.ref({}),m=e.ref([]),p=e.ref(0),h=e.ref(""),g=e.ref(),f=e.ref([]),v=e.ref(),_=e.ref([]),y=e.ref(!1),E=e.ref(!1),C=e.ref(!1),k=e.computed((()=>{var e,t,n;return!E.value&&("global"===o.searchType?!(!(null==(e=null==i?void 0:i.value)?void 0:e.length)||(null==(t=null==Object?void 0:Object.keys(d.value))?void 0:t.length)):!(null==(n=null==f?void 0:f.value)?void 0:n.length))}));function I(e){"conversation"===o.searchType&&(h.value=e)}function S(e){(null==e?void 0:e.searchType)===(null==o?void 0:o.searchType)&&(i.value=(null==e?void 0:e.value)?e.value.trim().split(/\s+/):[])}function T(e){var t,n,a,i;(null==e?void 0:e.searchType)===(null==o?void 0:o.searchType)&&(u.value=(null==(t=null==e?void 0:e.value)?void 0:t.key)||(null==(n=uh[o.searchType])?void 0:n.key),s.value=(null==(a=null==e?void 0:e.value)?void 0:a.value)||(null==(i=uh[o.searchType])?void 0:i.value))}function M(e){var t,n,a,i;(null==e?void 0:e.searchType)===(null==o?void 0:o.searchType)&&(r.value=null==(n=null==(t=null==e?void 0:e.value)?void 0:t.value)?void 0:n.timePosition,c.value=null==(i=null==(a=null==e?void 0:e.value)?void 0:a.value)?void 0:i.timePeriod)}e.onMounted((()=>{Sp.watch(ad.CONV,{currentConversationID:I}),Sp.watch(ad.SEARCH,{currentSearchInputValue:S,currentSearchMessageType:T,currentSearchMessageTime:M})})),e.onUnmounted((()=>{Sp.unwatch(ad.CONV,{currentConversationID:I}),Sp.unwatch(ad.SEARCH,{currentSearchInputValue:S,currentSearchMessageType:T,currentSearchMessageTime:M})}));const N=e=>{var t,n;(n={keywordList:(null==(t=null==i?void 0:i.value)?void 0:t.length)?i.value:void 0,messageTypeList:"string"==typeof s.value?[s.value]:s.value,timePosition:r.value,timePeriod:c.value,conversationID:(null==e?void 0:e.conversationID)||void 0,cursor:(null==e?void 0:e.cursor)||void 0,keywordListMatchType:l.value},wp.searchCloudMessages(n).then((e=>e)).catch((e=>(ug({message:Tp.t("TUISearch.消息云端搜索失败:")+(null==e?void 0:e.message),type:cg,duration:3e3}),null)))).then((t=>{var n,a,i,s,r,c,l,h,y,k;if(Cg("searchCloudMessage"),null==e?void 0:e.conversationID)g.value=null==t?void 0:t.data,(null==e?void 0:e.cursor)?f.value=[...f.value,...null==(l=null==(c=null==t?void 0:t.data)?void 0:c.searchResultList[0])?void 0:l.messageList]:f.value=null==(y=null==(h=null==t?void 0:t.data)?void 0:h.searchResultList[0])?void 0:y.messageList,v.value=null==(k=null==t?void 0:t.data)?void 0:k.totalCount,"conversation"!==(null==o?void 0:o.searchType)||"fileMessage"!==u.value&&"imageMessage"!==u.value?_.value=[]:_.value=R(f.value);else{(null==e?void 0:e.cursor)?m.value=[...m.value,...t.data.searchResultList]:m.value=null==(n=null==t?void 0:t.data)?void 0:n.searchResultList,p.value=null==(a=null==t?void 0:t.data)?void 0:a.totalCount;const o="all"===u.value?"allMessage":u.value;(null==(i=null==m?void 0:m.value)?void 0:i.length)&&"contact"!==u.value&&"group"!==u.value?d.value=Object.assign({},d.value,{[o]:{key:o,label:lh[o].label,list:"all"===u.value?null==(s=null==m?void 0:m.value)?void 0:s.slice(0,3):null==m?void 0:m.value,cursor:(null==(r=null==t?void 0:t.data)?void 0:r.cursor)||null}}):null==d||delete d.value[o]}E.value=!1,C.value=!1}))},w=((e,t)=>{let n=null;return(...a)=>{null!==n&&(clearTimeout(n),n=null),n=setTimeout((()=>e(...a)),t)}})(N,500),D=()=>{d.value={},g.value={},f.value=[],_.value=[]};e.watch((()=>[i.value,u.value,r.value,c.value]),((e,t)=>{var n,a,s;if(e!==t)if((null==(n=null==i?void 0:i.value)?void 0:n.length)||"global"!==(null==o?void 0:o.searchType))if(E.value=!0,"conversation"===o.searchType)D(),N({conversationID:h.value});else{if(t&&"all"===t[1]&&e&&"allMessage"===e[1])return(null==(a=null==d?void 0:d.value.allMessage)?void 0:a.list)&&(d.value.allMessage.list=null==m?void 0:m.value),null==(s=null==Object?void 0:Object.keys(null==d?void 0:d.value))||s.forEach((e=>{"allMessage"!==e&&(null==d||delete d.value[e])})),void(E.value=!1);y.value=!1,D(),w()}else D()}),{immediate:!0});const b=()=>{var e;N({cursor:null==(e=null==g?void 0:g.value)?void 0:e.cursor,conversationID:null==h?void 0:h.value})},L=(e,t,n)=>{var a;y.value=e,t&&Sp.update(ad.SEARCH,"currentSearchMessageType",{value:lh[t],searchType:o.searchType}),h.value=(null==(a=null==n?void 0:n.conversation)?void 0:a.conversationID)||"",v.value=null==n?void 0:n.messageCount,n&&(C.value=!0,w({conversationID:h.value}))},P=e=>{var t;return h.value===(null==(t=null==e?void 0:e.conversation)?void 0:t.conversationID)?["list-item","list-item-selected"]:["list-item"]},A=()=>"conversation"===o.searchType&&"fileMessage"===u.value?"file":"conversation"===o.searchType&&"imageMessage"===u.value?"image":Qp?"bubble":"info",R=e=>{var t,n,a,o;const i=[];if(!(null==e?void 0:e.length))return i;if(1===(null==e?void 0:e.length))return i.push({date:gg(null==(t=e[0])?void 0:t.time),list:e}),i;let s="",r="";for(let c=0;c<(null==e?void 0:e.length);c++)r=gg(null==(n=e[c])?void 0:n.time),s!==r?i.push({date:r,list:[e[c]]}):null==(o=null==(a=i[(null==i?void 0:i.length)-1])?void 0:a.list)||o.push(e[c]),s=r;return i},O=e=>{"global"===o.searchType?(Sp.update(ad.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:o.searchType}),Mp.switchConversation(null==e?void 0:e.conversationID).then((()=>{Sp.update(ad.CHAT,"messageSource",e),nh&&(null==Op||Op.navigateTo({url:"/TUIKit/components/TUIChat/index"}))}))):"conversation"===o.searchType&&(Sp.update(ad.SEARCH,"isShowInConversationSearch",!1),Sp.update(ad.CHAT,"messageSource",e),nh&&(null==Op||Op.navigateBack()))},V=e=>`${u}-${e}`;return(t,n)=>e.unref(E)?(e.openBlock(),e.createBlock(yg,{key:0,class:e.normalizeClass(["search-result-loading",!e.unref(Qp)&&"search-result-loading-h5"])},null,8,["class"])):e.unref(k)?(e.openBlock(),e.createBlock(vg,{key:1,class:e.normalizeClass(["search-result-default",!e.unref(Qp)&&"search-result-default-h5"])},null,8,["class"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["tui-search-result",!e.unref(Qp)&&"tui-search-result-h5",e.unref(Qp)&&e.unref(y)&&"tui-search-result-with-border"])},["conversation"===o.searchType||!e.unref(Qp)&&e.unref(y)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"tui-search-result-main"},[e.createElementVNode("div",{class:"tui-search-result-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:"tui-search-result-list-item"},["global"===o.searchType?(e.openBlock(),e.createElementBlock("div",{key:0,class:"header"},e.toDisplayString(e.unref(Tp).t(`TUISearch.${t.label}`)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(n=>(e.openBlock(),e.createElementBlock("div",{key:n.conversation.conversationID,class:e.normalizeClass([P(n)])},["contact"===t.key||"group"===t.key||n.conversation?(e.openBlock(),e.createBlock(fg,{key:0,listItem:n,type:t.key,displayType:"info",keywordList:e.unref(i),onShowResultDetail:L,onNavigateToChatPosition:O},null,8,["listItem","type","keywordList"])):e.createCommentVNode("",!0)],2)))),128))]),"all"===e.unref(u)||t.cursor?(e.openBlock(),e.createElementBlock("div",{key:1,class:"more",onClick:e=>(e=>{"all"===u.value?Sp.update(ad.SEARCH,"currentSearchMessageType",{value:lh[e.key],searchType:o.searchType}):N({cursor:(null==e?void 0:e.cursor)||void 0})})(t)},[e.createVNode(ih,{class:"more-icon",file:e.unref(sh),width:"12px",height:"12px"},null,8,["file"]),e.createElementVNode("div",{class:"more-text"},[e.createElementVNode("span",null,e.toDisplayString(e.unref(Tp).t("TUISearch.查看更多")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(Tp).t(`TUISearch.${t.label}`)),1)])],8,["onClick"])):e.createCommentVNode("",!0)])))),128))])])),e.unref(y)||"conversation"===o.searchType?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["tui-search-result-detail","conversation"===o.searchType&&"tui-search-result-in-conversation"])},[e.unref(C)?(e.openBlock(),e.createBlock(yg,{key:0,class:e.normalizeClass(["search-result-loading",!e.unref(Qp)&&"search-result-loading-h5"])},null,8,["class"])):e.createCommentVNode("",!0),!e.unref(C)&&e.unref(y)&&"conversation"!==o.searchType?(e.openBlock(),e.createElementBlock("div",{key:1,class:"tui-search-message-header"},[e.createElementVNode("div",{class:"header-content"},[e.createElementVNode("div",{class:"header-content-count normal"},[e.createElementVNode("span",null,e.toDisplayString(e.unref(v)),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(Tp).t("TUISearch.条与")),1)]),e.createElementVNode("div",{class:"header-content-keyword"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),((t,n)=>(e.openBlock(),e.createElementBlock("span",{key:n},[e.createElementVNode("span",{class:"normal"},'"'),e.createElementVNode("span",{class:"highlight"},e.toDisplayString(t),1),e.createElementVNode("span",{class:"normal"},'"')])))),128))]),e.createElementVNode("div",{class:"header-content-type normal"},[e.createElementVNode("span",null,e.toDisplayString(e.unref(Tp).t("TUISearch.相关的")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(Tp).t(`TUISearch.${"allMessage"===e.unref(u)?"结果":e.unref(lh)[e.unref(u)].label}`)),1)])]),e.createElementVNode("div",{class:"header-enter",onClick:n[0]||(n[0]=t=>e.unref(pg)({conversationID:e.unref(h)}))},[e.createElementVNode("span",null,e.toDisplayString(e.unref(Tp).t("TUISearch.进入聊天")),1),e.createVNode(ih,{class:"enter-icon",file:e.unref(Eg),width:"14px",height:"14px"},null,8,["file"])])])):e.createCommentVNode("",!0),!e.unref(C)&&e.unref(f)&&e.unref(f)[0]?(e.openBlock(),e.createElementBlock("div",{key:2,class:"tui-search-message-list"},["global"===o.searchType||"imageMessage"!==e.unref(u)&&"fileMessage"!==e.unref(u)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(f),(t=>(e.openBlock(),e.createElementBlock("div",{key:V(t.ID),class:e.normalizeClass(["list-item"])},[e.createVNode(fg,{listItem:t,listItemContent:t.getMessageContent(),type:e.unref(u),displayType:A(),keywordList:e.unref(i),onShowResultDetail:L,onNavigateToChatPosition:O},null,8,["listItem","listItemContent","type","displayType","keywordList"])])))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(_),(t=>(e.openBlock(),e.createElementBlock("div",{key:V(t.date),class:e.normalizeClass(["list-group","fileMessage"===e.unref(u)?"list-group-file":"list-group-image"])},[e.createElementVNode("div",{class:e.normalizeClass(["list-group-date"])},e.toDisplayString(t.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(t=>(e.openBlock(),e.createElementBlock("div",{key:V(t.ID),class:e.normalizeClass(["list-group-item"])},[e.createVNode(fg,{listItem:t,listItemContent:t.getMessageContent(),type:e.unref(u),displayType:A(),keywordList:e.unref(i),onShowResultDetail:L,onNavigateToChatPosition:O},null,8,["listItem","listItemContent","type","displayType","keywordList"])])))),128))],2)))),128)),e.unref(g)&&e.unref(g).cursor?(e.openBlock(),e.createElementBlock("div",{key:2,class:"more",onClick:b},[e.createVNode(ih,{class:"more-icon",file:e.unref(sh),width:"12px",height:"12px"},null,8,["file"]),e.createElementVNode("div",{class:"more-text"},e.toDisplayString(e.unref(Tp).t("TUISearch.查看更多历史记录")),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-5a557b27"]]);class Ig{constructor(){this.serviceMap=new Map}registerService(e,t){this.serviceMap.has(e)||(g("log","at node_modules/@tencentcloud/tui-core/index.js:1",`TUIServiceManager.registerService serviceName:${e}`),this.serviceMap.set(e,t))}unregisterService(e){this.serviceMap.has(e)&&(g("log","at node_modules/@tencentcloud/tui-core/index.js:1",`TUIServiceManager.unregisterService serviceName:${e}`),this.serviceMap.delete(e))}getService(e){return this.serviceMap.get(e)}callService(e){const{serviceName:t,method:n,params:a,callback:o}=e,i=this.getService(t);if(g("log","at node_modules/@tencentcloud/tui-core/index.js:1",`TUIServiceManager.callService serviceName:${t}, service:`,i),i)return i.onCall(n,a,o)}}class Sg{constructor(){this.extensionMap=new Map}registerExtension(e,t){if(g("log","at node_modules/@tencentcloud/tui-core/index.js:1",`TUIExtensionManager.registerExtension extensionID:${e}`),!this.extensionMap.has(e)){const t=[];this.extensionMap.set(e,t)}const n=this.extensionMap.get(e);-1===n.indexOf(t)&&n.push(t)}unregisterExtension(e,t){if(g("log","at node_modules/@tencentcloud/tui-core/index.js:1",`TUIExtensionManager.unregisterExtension extensionID:${e}`),this.extensionMap.has(e)){const n=this.extensionMap.get(e),a=n.indexOf(t);a>-1&&n.splice(a,1)}}getExtensionList(e,t){g("log","at node_modules/@tencentcloud/tui-core/index.js:1",`TUIExtensionManager.getExtensionList extensionID:${e} ${t?`params:${JSON.stringify(t)}`:""}`);let n=[],a=[];if(this.extensionMap.has(e)){n=this.extensionMap.get(e);for(let o=0;o<n.length;o++){const i=n[o].onGetExtension(e,t);a=a.concat(i)}}return a}}const Tg=["vue2","vue3"],Mg={TUILogin:{EVENT:{LOGIN_STATE_CHANGED:"loginStateChanged"},EVENT_SUB_KEY:{USER_LOGIN_SUCCESS:"userLoginSuccess",USER_LOGOUT_SUCCESS:"userLogoutSuccess",USER_KICKED_OFFLINE:"userKickedOffline",USER_SIG_EXPIRED:"userSigExpired"}},TUIConversation:{SERVICE:{NAME:"TUIConversationService",METHOD:{CREATE_CONVERSATION:"createConversation",HIDE_CONVERSATION_HEADER:"hideConversationHeader"}},EXTENSION:{CONV_POP_MENU:{EXT_ID:"conversationPopMenu"},CONV_GROUP:{EXT_ID:"conversationGroup"}}},TUIChat:{SERVICE:{NAME:"TUIChatService",METHOD:{UPDATE_MESSAGE_LIST:"updateMessageList",CLOSE_MESSAGE_POP_MENU:"closeMessagePopMenu",SEND_CUSTOM_MESSAGE:"sendCustomMessage",SEND_TEXT_MESSAGE:"sendTextMessage",SET_CHAT_TYPE:"setChatType",UPDATE_MESSAGE_INFO:"updateMessageInfo"}},EXTENSION:{INPUT_MORE:{EXT_ID:"inputToolBarMore"},MSG_POP_MENU:{EXT_ID:"messagePopMenu"},CHAT_HEADER:{EXT_ID:"chatHeader"}},TYPE:{C2C:"C2C",GROUP:"GROUP",CUSTOMER_SERVICE:"customerService",ROOM:"room"},EVENT:{CHAT_STATE_CHANGED:"chatStateChanged",CHAT_TYPE_CHANGED:"chatTypeChanged"},EVENT_SUB_KEY:{CHAT_OPENED:"chatOpened",CHANGE_SUCCESS:"changeSuccess"},FEATURE:{DownloadFile:"DownloadFile",CopyMessage:"CopyMessage",DeleteMessage:"DeleteMessage",RevokeMessage:"RevokeMessage",QuoteMessage:"QuoteMessage",ForwardMessage:"ForwardMessage",TranslateMessage:"TranslateMessage",VoiceToText:"VoiceToText",MultiSelection:"MultiSelection",EmojiReaction:"EmojiReaction",InputEmoji:"InputEmoji",InputStickers:"InputStickers",InputImage:"InputImage",InputVoice:"InputVoice",InputVideo:"InputVideo",InputFile:"InputFile",InputEvaluation:"InputEvaluation",InputQuickReplies:"InputQuickReplies",InputMention:"InputMention",MessageSearch:"MessageSearch",ReadStatus:"ReadStatus"}},TUIGroup:{SERVICE:{NAME:"TUIGroupService",METHOD:{CREATE_GROUP:"createGroup",OPEN_GROUP_MANAGEMENT:"openGroupManagement",SELECT_GROUP_MEMBER:"selectGroupMember"}}},TUIContact:{SERVICE:{NAME:"TUIContactService",METHOD:{SELECT_FRIEND:"selectFriend"}},EXTENSION:{CONTACT_LIST:{EXT_ID:"contactList"}}},TUISearch:{SERVICE:{NAME:"TUISearchService",METHOD:{SEARCH_GROUP:"searchGroup",SEARCH_USER:"searchUser",SEARCH_FRIEND:"searchFriend",SEARCH_GROUP_MEMBER:"searchGroupMember"}},EXTENSION:{SEARCH_MORE:{EXT_ID:"searchMore"}}},TUICalling:{SERVICE:{NAME:"TUICallingService",METHOD:{START_CALL:"startCall"}}},TUIRoom:{SERVICE:{NAME:"TUIRoomService"}},TUIEmojiPlugin:{SERVICE:{NAME:"TUIEmojiPluginService",METHOD:{CLOSE_EMOJI_DETAIL:"closeEmojiDetail"}}},TUITranslate:{EVENT:{LANGUAGE_CHANGED:"languageChanged"},EVENT_SUB_KEY:{CHANGE_SUCCESS:"changeSuccess"}},TUITranslatePlugin:{SERVICE:{NAME:"TUITranslatePluginService"}},TUIVoiceToTextPlugin:{SERVICE:{NAME:"TUIVoiceToTextPluginService"}},TUICustomerServicePlugin:{SERVICE:{NAME:"TUICustomerServicePlugin",METHOD:{ACTIVE_CONVERSATION:"activeConversation",FILTER_MESSAGE:"filterMessage"}},EXTENSION:{}},TUIPushPlugin:{SERVICE:{NAME:"TUIPushPluginService"}},TUIChatbotPlugin:{SERVICE:{NAME:"TUIChatbotPluginService"}},TUITheme:{EVENT:{THEME_CHANGED:"themeChanged"},EVENT_SUB_KEY:{CHANGE_SUCCESS:"changeSuccess"}}},Ng="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),wg="undefined"!=typeof uni&&"undefined"==typeof window,Dg="undefined"!=typeof uni,bg=("undefined"!=typeof uni||"undefined"!=typeof window)&&!(Ng||wg);Ng?wx:Dg?uni:window;const Lg=bg&&window&&window.navigator&&window.navigator.userAgent||"",Pg=/Android/i.test(Lg),Ag=/(?:Windows Phone)/.test(Lg),Rg=/(?:SymbianOS)/.test(Lg),Og=/iPad/i.test(Lg)||/iPhone/i.test(Lg)||/iPod/i.test(Lg),Vg=Pg||Ag||Rg||Og,Bg=bg&&!Vg,xg=wg&&!Ng,Ug={[Mg.TUITranslatePlugin.SERVICE.NAME]:Math.pow(2,38),[Mg.TUIVoiceToTextPlugin.SERVICE.NAME]:Math.pow(2,39),[Mg.TUICustomerServicePlugin.SERVICE.NAME]:Math.pow(2,40),[Mg.TUIPushPlugin.SERVICE.NAME]:Math.pow(2,41),[Mg.TUIChatbotPlugin.SERVICE.NAME]:Math.pow(2,42),[Mg.TUIEmojiPlugin.SERVICE.NAME]:Math.pow(2,48)};let Gg=class e{constructor(e){this.loginStatusPromise=new Map,this.SDKAppID=0,this.userID="",this.userSig="",this.TUICore=e,this.isOnChatEvent=!1}static getInstance(t){return!e.instance&&t&&(e.instance=new e(t)),e.instance}login(e){const{SDKAppID:t,userID:n,userSig:a,framework:o}=e;return this.chat=mc.create(Object.assign(Object.assign({},e),{scene:this.getStatScene(o)})),this.EVENT=mc.EVENT,this.TYPES=mc.TYPES,this.SDKAppID=t,this.userID=n,this.userSig=a,this.offChatEvent(),this.onChatEvent(),this.registerPlugin(e),this.loginChat(e)}logout(){return this.chat.logout().then((e=>(this.userID="",this.userSig="",this.TUICore.notifyEvent(Mg.TUILogin.EVENT.LOGIN_STATE_CHANGED,Mg.TUILogin.EVENT_SUB_KEY.USER_LOGOUT_SUCCESS),Promise.resolve(e))))}destroy(){return this.chat.destroy().then((e=>(this.userID="",this.userSig="",this.TUICore.notifyEvent(Mg.TUILogin.EVENT.LOGIN_STATE_CHANGED,Mg.TUILogin.EVENT_SUB_KEY.USER_LOGOUT_SUCCESS),Promise.resolve(e))))}setLogLevel(e){return this.chat.setLogLevel(e)}getContext(){return{chat:this.chat,SDKAppID:this.SDKAppID,userID:this.userID,userSig:this.userSig}}reportPlugin(){var e;for(const t in Ug)this.TUICore.getService(t)&&(null===(e=this.chat.callExperimentalAPI("isFeatureEnabledForStat",Ug[t]))||void 0===e||e.catch((e=>{})))}loginChat(e){const{userID:t,userSig:n}=e;return new Promise(((e,a)=>{this.chat.login({userID:t,userSig:n}).then((t=>{t.data.repeatLogin&&this.chat.isReady()&&e(t),this.reportPlugin(),this.loginStatusPromise.set("login",{resolve:e,reject:a,imResponse:t})})).catch((e=>{a(e)}))}))}onChatEvent(){this.chat.on(this.EVENT.SDK_READY,this.onSDKReady,this),this.chat.on(this.EVENT.SDK_NOT_READY,this.onSDKNotReady,this),this.chat.on(this.EVENT.KICKED_OUT,this.onUserKicked,this),this.isOnChatEvent=!0}offChatEvent(){this.isOnChatEvent&&(this.chat.off(this.EVENT.SDK_READY,this.onSDKReady,this),this.chat.off(this.EVENT.SDK_NOT_READY,this.onSDKNotReady,this),this.chat.off(this.EVENT.KICKED_OUT,this.onUserKicked,this),this.isOnChatEvent=!1)}onSDKReady(){if(this.loginStatusPromise.has("login")){this.TUICore.notifyEvent(Mg.TUILogin.EVENT.LOGIN_STATE_CHANGED,Mg.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS);const e=setTimeout((()=>{const t=this.loginStatusPromise.get("login");t.resolve(t.imResponse),clearTimeout(e),this.loginStatusPromise.delete("login")}),500)}}onSDKNotReady(){this.loginStatusPromise.has("login")&&this.loginStatusPromise.get("login").reject(new Error("sdk not ready")),this.loginStatusPromise.delete("login")}onUserKicked(e){e.data.type!==this.TYPES.KICKED_OUT_USERSIG_EXPIRED?this.TUICore.notifyEvent(Mg.TUILogin.EVENT.LOGIN_STATE_CHANGED,Mg.TUILogin.EVENT_SUB_KEY.USER_KICKED_OFFLINE):this.TUICore.notifyEvent(Mg.TUILogin.EVENT.LOGIN_STATE_CHANGED,Mg.TUILogin.EVENT_SUB_KEY.USER_SIG_EXPIRED)}registerPlugin(e){const{useUploadPlugin:t=!1,useProfanityFilterPlugin:n=!1,TUIOfflinePush:a,offlinePushConfig:o,TIMPush:i,pushConfig:s}=e;!0===t&&this.chat.registerPlugin({"tim-upload-plugin":zu}),!0===n&&this.chat.registerPlugin({"tim-profanity-filter-plugin":Qu}),xg&&i&&s&&this.chat.registerPlugin({"tim-push":i,pushConfig:s}),xg&&a&&o&&this.chat.registerPlugin({"tim-offline-push-plugin":a,offlinePushConfig:o})}getStatScene(e){let t;return e&&Tg.indexOf(e)>-1&&(t=this.genStatScene(e)),t}genStatScene(e){let t="";return Dg?(Bg&&(t=`k-${e}-pc-uni`),Vg&&(t=`k-${e}-h5-uni`),xg&&(t=`k-${e}-app-uni`),Ng&&(t=`k-${e}-mp-uni`),t):(Bg&&(t=`k-${e}-pc`),Vg&&(t=`k-${e}-h5`),t)}};class Fg{constructor(){this.eventMap=new Map}registerEvent(e,t,n){const a=this.getKey(e,t);if(g("log","at node_modules/@tencentcloud/tui-core/index.js:1",`TUIEventManager.registerEvent eventName:${e} subKey:${t}`),!this.eventMap.has(a)){const e=[];this.eventMap.set(a,e)}const o=this.eventMap.get(a);-1===o.indexOf(n)&&(o.push(n),this.renotify(e,t,n))}unregisterEvent(e,t,n){g("log","at node_modules/@tencentcloud/tui-core/index.js:1",`TUIEventManager.unregisterEvent eventName:${e} subKey:${t}`);const a=this.getKey(e,t);if(this.eventMap.has(a)){const e=this.eventMap.get(a),t=e.indexOf(n);t>-1&&e.splice(t,1)}}notifyEvent(e,t,n){const a=this.getKey(e,t),o=n?`params:${JSON.stringify(n)}`:"";g("log","at node_modules/@tencentcloud/tui-core/index.js:1",`TUIEventManager.notifyEvent eventName:${e} subKey:${t} ${o}`),this.eventMap.has(a)&&this.eventMap.get(a).forEach((a=>{a.onNotifyEvent(e,t,n)}))}getKey(e,t){let n=e;return t&&(n=`${e}-${n}`),n}renotify(e,t,n){if(e===Mg.TUILogin.EVENT.LOGIN_STATE_CHANGED&&t===Mg.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS){const{chat:e}=Gg.getInstance().getContext();e&&e.isReady()&&(n.onNotifyEvent(Mg.TUILogin.EVENT.LOGIN_STATE_CHANGED,Mg.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS),g("log","at node_modules/@tencentcloud/tui-core/index.js:1","TUIEventManager.renotify success."))}}}g("log","at node_modules/@tencentcloud/tui-core/index.js:1","TUICore.VERSION:2.2.9");const Yg=class e{constructor(){this.serviceManager=new Ig,this.extensionManager=new Sg,this.eventManager=new Fg}static getInstance(){return e.instance||(g("log","at node_modules/@tencentcloud/tui-core/index.js:1","TUICore.getInstance ok."),e.instance=new e),e.instance}registerService(e,t){return this.serviceManager.registerService(e,t)}unregisterService(e){return this.serviceManager.unregisterService(e)}getService(e){return this.serviceManager.getService(e)}callService(e){return this.serviceManager.callService(e)}registerExtension(e,t){return this.extensionManager.registerExtension(e,t)}unregisterExtension(e,t){return this.extensionManager.unregisterExtension(e,t)}getExtensionList(e,t){return this.extensionManager.getExtensionList(e,t)}registerEvent(e,t,n){return this.eventManager.registerEvent(e,t,n)}unregisterEvent(e,t,n){return this.eventManager.unregisterEvent(e,t,n)}notifyEvent(e,t,n){return this.eventManager.notifyEvent(e,t,n)}}.getInstance(),Hg=Gg.getInstance(Yg),Zg=w(e.defineComponent({__name:"index",props:{searchType:{type:String,default:"global",validator:e=>["global","conversation"].includes(e)}},setup(t){const n=t,a=e.ref(),o=e.ref(!1),i=()=>{o.value=!o.value,!nh&&o.value&&zp.listen({domRefs:a.value,handler:r})},s=e.ref([]),r=()=>{o.value=!1};return e.onMounted((()=>{s.value=[...Yg.getExtensionList(Mg.TUISearch.EXTENSION.SEARCH_MORE.EXT_ID)],Yg.callService({serviceName:Mg.TUIConversation.SERVICE.NAME,method:Mg.TUIConversation.SERVICE.METHOD.HIDE_CONVERSATION_HEADER,params:{}})})),e.watch((()=>o.value),(()=>{o.value&&Sp.update(ad.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:n.searchType})})),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"searchMoreRef",ref:a,class:e.normalizeClass(["tui-search-more",!e.unref(Qp)&&"tui-search-more-h5"])},[e.createElementVNode("div",{class:"more",onClick:n[0]||(n[0]=e=>i())},[e.createVNode(ih,{class:"more-icon",file:e.unref("/assets/search-more.751b65f1.svg"),width:e.unref(Qp)?"28px":"34px",height:e.unref(Qp)?"28px":"34px"},null,8,["file","width","height"])]),e.unref(o)?(e.openBlock(),e.createElementBlock("ul",{key:0,class:"tui-search-more-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"list-item",onClick:e=>(e=>{var t;const{listener:n={onClicked:()=>{}}}=e;null==(t=null==n?void 0:n.onClicked)||t.call(n,e),i()})(t)},[t.icon?(e.openBlock(),e.createBlock(ih,{key:0,class:"list-item-icon",file:t.icon},null,8,["file"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"list-item-title"},e.toDisplayString(t.text),1)],8,["onClick"])))),128))])):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-2dda292a"]]),qg=w(e.defineComponent({__name:"index",props:{searchType:{default:()=>nh?"conversation":"global"}},setup(t){const n=t,a=e.ref(),o=e.ref(""),i=e.ref(!1),s=e.ref(nh),r=e.computed((()=>!Qp&&("global"===n.searchType&&i.value||"conversation"===n.searchType&&s.value))),c=e=>{Sp.update(ad.SEARCH,"currentSearchInputValue",{value:"",searchType:e}),Sp.update(ad.SEARCH,"currentSearchMessageType",{value:uh[e],searchType:e}),Sp.update(ad.SEARCH,"currentSearchMessageTime",{value:vh,searchType:e})};function l(e){nh||o.value===e||p(),o.value=e}function u(e){var t,o;(null==e?void 0:e.searchType)===n.searchType&&(i.value=null==e?void 0:e.isSearching,"global"===(null==e?void 0:e.searchType)&&a.value&&Qp&&e.isSearching&&zp.listen({domRefs:a.value,handler:m}),"global"===(null==e?void 0:e.searchType)&&nh&&(e.isSearching?null==(t=null==Op?void 0:Op.hideTabBar())||t.catch((()=>{})):null==(o=null==Op?void 0:Op.showTabBar())||o.catch((()=>{}))))}function d(e){s.value=!!e,s.value&&c(n.searchType)}function m(){Sp.update(ad.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:n.searchType})}function p(){Sp.update(ad.SEARCH,"isShowInConversationSearch",!1)}return e.onMounted((()=>{["global","conversation"].forEach((e=>{c(e)})),Sp.watch(ad.CONV,{currentConversationID:l}),Sp.watch(ad.SEARCH,{currentSearchingStatus:u,isShowInConversationSearch:d})})),e.onUnmounted((()=>{Sp.unwatch(ad.CONV,{currentConversationID:l}),Sp.unwatch(ad.SEARCH,{currentSearchingStatus:u,isShowInConversationSearch:d})})),(t,n)=>"global"===t.searchType||("conversation"===t.searchType||!t.searchType&&e.unref(nh))&&e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-search",!e.unref(Qp)&&"tui-search-h5",`tui-search-main-${t.searchType?t.searchType:"conversation"}`,e.unref(r)&&"tui-search-h5-full-screen"])},["global"===t.searchType?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"globalSearchRef",ref:a,class:e.normalizeClass(["tui-search-global",!e.unref(Qp)&&"tui-search-h5-global"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-search-global-header",!e.unref(Qp)&&"tui-search-h5-global-header"])},[e.createVNode(ch,{class:"search-input",searchType:t.searchType},null,8,["searchType"]),e.unref(Qp)||!e.unref(i)?(e.openBlock(),e.createBlock(Zg,{key:0,class:"search-more",searchType:t.searchType},null,8,["searchType"])):e.createCommentVNode("",!0)],2),e.unref(i)?(e.openBlock(),e.createBlock(Ph,{key:0,class:"search-container",popupPosition:"bottom",searchType:t.searchType},{result:e.withCtx((()=>[e.createVNode(kg,{class:"search-result",searchType:t.searchType},null,8,["searchType"])])),_:1},8,["searchType"])):e.createCommentVNode("",!0)],2)):"conversation"===t.searchType&&e.unref(s)||e.unref(nh)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["tui-search-conversation",!e.unref(Qp)&&"tui-search-h5-conversation"])},[e.createVNode(Ph,{class:"search-container",popupPosition:"aside",searchType:t.searchType?t.searchType:"conversation",onCloseInConversationSearch:p},{input:e.withCtx((()=>[e.createVNode(ch,{searchType:t.searchType?t.searchType:"conversation"},null,8,["searchType"])])),result:e.withCtx((()=>[e.createVNode(kg,{class:"search-result",searchType:t.searchType?t.searchType:"conversation"},null,8,["searchType"])])),_:1},8,["searchType"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-18dff187"]]),jg=e.defineComponent({__name:"index",props:{url:{default:"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png"},size:{default:"36px"},borderRadius:{default:"5px"},useSkeletonAnimation:{type:Boolean,default:!1}},emits:["onLoad","onError"],setup(t,{emit:n}){const a=e.ref("https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png"),o=n,i=t,{size:s,url:r,borderRadius:c,useSkeletonAnimation:l}=e.toRefs(i);let u=0;const d=e.ref(!1),m=e.ref(!1);function p(e){d.value=!0,o("onLoad",e)}function h(e){u+=1,u>3||(nh?m.value=!0:e.currentTarget.src=a.value,o("onError",e))}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"avatar-container",style:e.normalizeStyle({width:e.unref(s),height:e.unref(s),borderRadius:e.unref(c)})},[e.unref(nh)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(m)?(e.openBlock(),e.createElementBlock("image",{key:1,class:"avatar-image",src:e.unref(a),onLoad:p,onError:h},null,40,["src"])):(e.openBlock(),e.createElementBlock("image",{key:0,class:"avatar-image",src:e.unref(r)||e.unref(a),onLoad:p,onError:h},null,40,["src"]))],64)):(e.openBlock(),e.createElementBlock("img",{key:1,class:"avatar-image",src:e.unref(r)||e.unref(a),onLoad:p,onError:h},null,40,["src"])),e.unref(l)&&!e.unref(d)?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({placeholder:!0,hidden:e.unref(d),"skeleton-animation":e.unref(l)})},null,2)):e.createCommentVNode("",!0)],4))}}),Jg=w(jg,[["__scopeId","data-v-35b53489"]]),Xg=w(e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!0},zIndex:{default:9999},useMask:{type:Boolean,default:!0},maskColor:{default:"rgba(0, 0, 0, 0.6)"},isFullScreen:{type:Boolean,default:!0},width:{default:"auto"},height:{default:"auto"}},emits:["onOverlayClick"],setup(t,{expose:n,emit:a}){const o=a,i=t,s=e.ref(),r=e.ref(i.visible);function c(){o("onOverlayClick")}return e.watch((()=>i.visible),(e=>{e?r.value=!0:setTimeout((()=>{r.value=!1}),150)}),{immediate:!0}),n({overlayDomRef:s}),(t,n)=>e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"overlayDomRef",ref:s,class:"overlay-container",style:e.normalizeStyle({position:i.isFullScreen?"fixed":"absolute",zIndex:i.zIndex})},[i.useMask?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({"overlay-mask":!0,"fade-in":i.visible}),style:e.normalizeStyle({backgroundColor:i.maskColor}),onClick:c,onTouchstart:e.withModifiers(c,["prevent","stop"])},null,38)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({"overlay-content":!0,"full-screen":i.isFullScreen})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)],4)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-318f09d3"]]),Kg=w(e.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1},isHeaderShow:{type:Boolean,default:!0},isFooterShow:{type:Boolean,default:!0},background:{type:Boolean,default:!0},title:{type:String,default:""},center:{type:Boolean,default:!1}},emits:["update:show","submit"],setup(t,{emit:n}){const a="outside",o="inside",i=t,s=e.ref(!1),r=e.ref(!0),c=e.ref(!0),l=e.ref(!0),u=e.ref("");e.watchEffect((()=>{s.value=i.show,u.value=i.title,r.value=i.isHeaderShow,c.value=i.isFooterShow,l.value=i.background}));const d=n,m=e=>{e===a&&p()},p=()=>{s.value=!s.value,d("update:show",s.value)},h=()=>{d("submit"),p()};return(n,i)=>e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dialog",[e.unref(Qp)?"":"dialog-h5",t.center?"center":""]]),onClick:i[1]||(i[1]=e.withModifiers((e=>m(a)),["stop","prevent"]))},[e.createElementVNode("main",{class:e.normalizeClass(["dialog-main",[e.unref(l)?"":"dialog-main-back"]]),onClick:i[0]||(i[0]=e.withModifiers((e=>m(o)),["stop","prevent"]))},[e.unref(r)?(e.openBlock(),e.createElementBlock("header",{key:0,class:"dialog-main-header"},[e.createElementVNode("h1",{class:"dialog-main-title"},e.toDisplayString(e.unref(u)),1),e.createElementVNode("i",{class:"icon icon-close",onClick:p})])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["dialog-main-content",[e.unref(nh)&&e.unref($p)?"dialog-main-content-uniapp":""]])},[e.renderSlot(n.$slots,"default",{},void 0,!0)],2),e.unref(c)?(e.openBlock(),e.createElementBlock("footer",{key:1,class:"dialog-main-footer"},[e.createElementVNode("button",{class:"btn btn-cancel",onClick:p},e.toDisplayString(e.unref(Tp).t("component.取消")),1),e.createElementVNode("button",{class:"btn btn-default",onClick:h},e.toDisplayString(e.unref(Tp).t("component.确定")),1)])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-07925a1b"]]),zg=w(e.defineComponent({__name:"index",props:{actionsMenuPosition:{},selectedConversation:{},selectedConversationDomRect:{}},emits:["closeConversationActionMenu"],setup(t,{emit:n}){var a,o;const i=n,s=t,r=(null==(a=e.getCurrentInstance())?void 0:a.proxy)||e.getCurrentInstance(),c=e.ref(),l=e.ref(!0),u=e.ref(!1),d=Sp.getConversationModel((null==(o=s.selectedConversation)?void 0:o.conversationID)||""),m=e.ref(s.actionsMenuPosition);e.onMounted((()=>{e.nextTick((()=>{var e;if(nh)(null==Op?void 0:Op.createSelectorQuery().in(r)).select("#conversation-actions-menu").boundingClientRect((e=>{var t;e&&(e.bottom>(null==(t=null==Op?void 0:Op.getWindowInfo)?void 0:t.call(Op).windowHeight)&&(m.value={...s.actionsMenuPosition,top:s.actionsMenuPosition.top-(s.actionsMenuPosition.conversationHeight||0)-e.height}),m.value.left+e.width+5>Op.getWindowInfo().windowWidth&&(m.value.left=Op.getWindowInfo().windowWidth-e.width-5)),l.value=!1})).exec();else{const t=null==(e=c.value)?void 0:e.getBoundingClientRect();Qp&&void 0!==s.actionsMenuPosition.left&&(m.value.left=s.actionsMenuPosition.left),t&&t.bottom>window.innerHeight&&(m.value.top=s.actionsMenuPosition.top-(s.actionsMenuPosition.conversationHeight||0)-t.height),l.value=!1}}))}));const p=e.computed((()=>{var e,t;return(null==(e=s.selectedConversation)?void 0:e.type)===Ip.TYPES.CONV_C2C?"TUIConversation.删除后,将清空该聊天的消息记录":(null==(t=s.selectedConversation)?void 0:t.type)===Ip.TYPES.CONV_GROUP?"TUIConversation.删除后,将清空该群聊的消息记录":""}));const h=e=>{const{name:t}=e,n=d;if(t&&n&&n.conversationID){switch(t){case Rh.DELETE:null==n||n.deleteConversation();break;case Rh.ISPINNED:case Rh.DISPINNED:null==n||n.pinConversation();break;case Rh.MUTE:case Rh.NOTMUTE:null==n||n.muteConversation()}i("closeConversationActionMenu")}},g=e=>{e||i("closeConversationActionMenu"),u.value=e};return(t,n)=>(e.openBlock(),e.createBlock(Xg,{maskColor:"transparent",onOnOverlayClick:n[6]||(n[6]=()=>i("closeConversationActionMenu"))},{default:e.withCtx((()=>[e.createElementVNode("div",{id:"conversation-actions-menu",ref_key:"actionsMenuDomRef",ref:c,class:e.normalizeClass([e.unref(Qp)&&"actions-menu-pc","actions-menu",!e.unref(l)&&"cancel-hidden"]),style:e.normalizeStyle({top:`${e.unref(m).top}px`,left:`${e.unref(m).left}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["actions-menu-item"]),onClick:n[0]||(n[0]=e.withModifiers((e=>{u.value=!0}),["stop"]))},e.toDisplayString(e.unref(Tp).t("TUIConversation.删除会话")),1),s.selectedConversation&&s.selectedConversation.isPinned?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["actions-menu-item"]),onClick:n[1]||(n[1]=e.withModifiers((t=>h({name:e.unref(Rh).ISPINNED})),["stop"]))},e.toDisplayString(e.unref(Tp).t("TUIConversation.置顶会话")),1)),s.selectedConversation&&s.selectedConversation.isPinned?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["actions-menu-item"]),onClick:n[2]||(n[2]=e.withModifiers((t=>h({name:e.unref(Rh).DISPINNED})),["stop"]))},e.toDisplayString(e.unref(Tp).t("TUIConversation.取消置顶")),1)):e.createCommentVNode("",!0),s.selectedConversation&&s.selectedConversation.isMuted?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["actions-menu-item"]),onClick:n[3]||(n[3]=e.withModifiers((t=>h({name:e.unref(Rh).MUTE})),["stop"]))},e.toDisplayString(e.unref(Tp).t("TUIConversation.消息免打扰")),1)),s.selectedConversation&&s.selectedConversation.isMuted?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["actions-menu-item"]),onClick:n[4]||(n[4]=e.withModifiers((t=>h({name:e.unref(Rh).NOTMUTE})),["stop"]))},e.toDisplayString(e.unref(Tp).t("TUIConversation.取消免打扰")),1)):e.createCommentVNode("",!0)],6),e.createVNode(Kg,{show:e.unref(u),center:!0,isHeaderShow:e.unref(Qp),onSubmit:n[5]||(n[5]=t=>h({name:e.unref(Rh).DELETE})),"onUpdate:show":g},{default:e.withCtx((()=>[e.createElementVNode("p",{class:"delDialog-title"},e.toDisplayString(e.unref(Tp).t(e.unref(p))),1)])),_:1},8,["show","isHeaderShow"])])),_:1}))}}),[["__scopeId","data-v-bded2c14"]]),Wg=e.defineComponent({__name:"index",emits:["handleSwitchConversation","getPassingRef"],setup(t,{expose:n,emit:a}){const o=a,i=e.ref(),s=e.ref(),r=e.ref(),c=e.ref(!1),l=e.ref([]),u=e.ref(),d=e.ref(),m=e.ref({top:0,left:void 0,conversationHeight:void 0}),p=e.ref(!1),h=e.ref();let g=null;e.onMounted((()=>{Sp.watch(ad.CONV,{currentConversationID:k,conversationList:C,currentConversation:E}),Sp.watch(ad.USER,{displayOnlineStatus:I,userStatusList:S}),nh||!Fp||Qp||function(){if(!d.value)return;!function(e){const{element:t,onLongPress:n,options:a={}}=e;if(!t||!n)throw new Error("addLongPressEventListener missing arguments");const{duration:o=800,eventDelegation:i}=a;let s;function r(){clearTimeout(s),l()}function c(){clearTimeout(s),l()}function l(){t.removeEventListener("pointerup",r),t.removeEventListener("pointermove",c)}t.addEventListener("pointerdown",(e=>{const a=e.target,l=(null==i?void 0:i.subSelector)?a.closest(i.subSelector)||void 0:a,u=e.currentTarget;s=setTimeout((()=>n(e,l,u)),o),t.addEventListener("pointerup",r),t.addEventListener("pointermove",c)}))}({element:d.value,onLongPress:(e,t)=>{const n=Array.from(d.value.children).indexOf(t);v(e,l.value[n],n)},options:{eventDelegation:{subSelector:".tui-conversation-content"}}})}()})),e.onUnmounted((()=>{Sp.unwatch(ad.CONV,{currentConversationID:k,conversationList:C,currentConversation:E}),Sp.unwatch(ad.USER,{displayOnlineStatus:I,userStatusList:S})}));const f=e=>p.value&&e.type===Ip.TYPES.CONV_C2C,v=(e,t,n,a)=>{a&&(e.preventDefault(),nh)||(i.value=t,g=Date.now(),y(e,n))},_=()=>{g&&Date.now()-g>300&&(i.value=void 0,c.value=!1)},y=(e,t)=>{var n;if(nh){void 0===u.value&&o("getPassingRef",u);(null==Op?void 0:Op.createSelectorQuery().in(u.value)).select(`#convlistitem-${t}`).boundingClientRect((t=>{t&&(m.value={top:t.bottom+($p?44:0),left:e.touches[0].pageX,conversationHeight:t.height},c.value=!0)})).exec()}else{const t=(null==(n=e.currentTarget||e.target)?void 0:n.getBoundingClientRect())||{};t&&(m.value={top:t.bottom,left:Qp?e.clientX:void 0,conversationHeight:t.height}),c.value=!0}};function E(e){i.value=e}function C(e){l.value=e}function k(e){s.value=e}function I(e){p.value=e}function S(e){0!==e.size&&(h.value=[...e.entries()].reduce(((e,[t,n])=>(e[t]=n,e)),{}))}return n({closeChildren:_}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"conversationListInnerDomRef",ref:d,class:"tui-conversation-list"},[e.unref(c)?(e.openBlock(),e.createBlock(zg,{key:0,selectedConversation:e.unref(i),actionsMenuPosition:e.unref(m),selectedConversationDomRect:e.unref(r),onCloseConversationActionMenu:_},null,8,["selectedConversation","actionsMenuPosition","selectedConversationDomRect"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),((t,n)=>(e.openBlock(),e.createElementBlock("div",{id:`convlistitem-${n}`,key:n,class:e.normalizeClass(["tui-conversation-content",e.unref(ah)&&"tui-conversation-content-h5 disable-select"])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(Qp)&&"isPC","tui-conversation-item",e.unref(s)===t.conversationID&&"tui-conversation-item-selected",t.isPinned&&"tui-conversation-item-pinned"]),onClick:e=>{return n=t.conversationID,o("handleSwitchConversation",n),void Mp.switchConversation(n);var n},onLongpress:e=>v(e,t,n),onContextmenu:e=>v(e,t,n,!0)},[e.createElementVNode("aside",{class:"left"},[e.createVNode(Jg,{useSkeletonAnimation:"",url:t.getAvatar(),size:"30px"},null,8,["url"]),e.unref(h)&&f(t)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["online-status",Object.keys(e.unref(h)).length>0&&Object.keys(e.unref(h)).includes(t.userProfile.userID)&&1===e.unref(h)[t.userProfile.userID].statusType?"online-status-online":"online-status-offline"])},null,2)):e.createCommentVNode("",!0),t.unreadCount>0&&!t.isMuted?(e.openBlock(),e.createElementBlock("span",{key:1,class:"num"},e.toDisplayString(t.unreadCount>99?"99+":t.unreadCount),1)):e.createCommentVNode("",!0),t.unreadCount>0&&t.isMuted?(e.openBlock(),e.createElementBlock("span",{key:2,class:"num-notify"})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"content"},[e.createElementVNode("div",{class:"content-header"},[e.createElementVNode("label",{class:"content-header-label"},[e.createElementVNode("p",{class:"name"},e.toDisplayString(t.getShowName()),1)]),e.createElementVNode("div",{class:"middle-box"},[t.draftText&&t.conversationID!==e.unref(s)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"middle-box-draft"},e.toDisplayString(e.unref(Tp).t("TUIChat.[草稿]")),1)):"GROUP"===t.type&&t.groupAtInfoList&&t.groupAtInfoList.length>0?(e.openBlock(),e.createElementBlock("span",{key:1,class:"middle-box-at"},e.toDisplayString(t.getGroupAtInfo()),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"middle-box-content"},e.toDisplayString(t.getLastMessage("text")),1)])]),e.createElementVNode("div",{class:"content-footer"},[e.createElementVNode("span",{class:"time"},e.toDisplayString(t.getLastMessage("time")),1),t.isMuted?(e.openBlock(),e.createBlock(ih,{key:0,file:e.unref("/assets/mute.81a6d6d5.svg")},null,8,["file"])):e.createCommentVNode("",!0)])])],42,["onClick","onLongpress","onContextmenu"])],10,["id"])))),128))],512))}}),Qg=w(Wg,[["__scopeId","data-v-55e2625d"]]);class $g{static getInstance(){return $g.instance||($g.instance=new $g),$g.instance}getMenu(){const e=this.generateMenuList();return!Qp&&e.length>0?[{text:Tp.t("TUIConversation.发起会话"),data:{name:"all",children:e}}]:e}generateMenuList(){return[{icon:"/assets/icon-c2c.6e2af86f.svg",text:Tp.t("TUIConversation.发起单聊"),data:{name:Oh},listener:{onClicked:this.createConversation.bind(this)}},{icon:"/assets/start-group.5f1c641f.svg",text:Tp.t("TUIConversation.发起群聊"),data:{name:Vh},listener:{onClicked:this.createConversation.bind(this)}}]}createConversation(e){Yg.callService({serviceName:Mg.TUIConversation.SERVICE.NAME,method:Mg.TUIConversation.SERVICE.METHOD.CREATE_CONVERSATION,params:e})}}const ef=w(e.defineComponent({__name:"index",setup(t,{expose:n}){const a=e.ref([]),o=e.ref(),i=e.computed((()=>$g.getInstance().getMenu()));e.onMounted((()=>{a.value=[]}));const s=e=>{const{data:{children:t},listener:n={onClicked:()=>{}}}=e;t?a.value=a.value.length>0?[]:t:(n.onClicked(e),r())},r=()=>{a.value=[]};return n({closeChildren:r}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref:e.unref(o),class:"tui-conversation-header"},[e.unref(i).length>0?(e.openBlock(),e.createElementBlock("ul",{key:0,class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"list-item"},[e.createElementVNode("main",{class:"tui-conversation-header-item",onClick:e.withModifiers((e=>s(t)),["stop"])},[t.icon&&!t.data.children?(e.openBlock(),e.createBlock(ih,{key:0,class:"tui-conversation-header-item-icon",file:t.icon},null,8,["file"])):(e.openBlock(),e.createElementBlock("i",{key:1,class:"plus"})),e.createElementVNode("h1",{class:"tui-conversation-header-item-title"},e.toDisplayString(t.text),1)],8,["onClick"])])))),128))])):e.createCommentVNode("",!0),e.unref(a).length>0?(e.openBlock(),e.createElementBlock("ul",{key:1,class:"tui-conversation-header-children list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"list-item"},[e.createElementVNode("main",{class:"tui-conversation-header-item",onClick:e=>s(t)},[t.icon?(e.openBlock(),e.createBlock(ih,{key:0,class:"tui-conversation-header-item-icon",file:t.icon},null,8,["file"])):e.createCommentVNode("",!0),e.createElementVNode("h1",{class:"tui-conversation-header-item-title"},e.toDisplayString(t.text),1)],8,["onClick"])])))),128))])):e.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-4401d0ac"]]),tf=w(e.defineComponent({__name:"index",setup(t){const n=e.ref(!1);return Sp.watch(ad.USER,{netStateChange:e=>{n.value=e===Ip.TYPES.NET_STATE_DISCONNECTED}}),(t,a)=>e.unref(n)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"network"},[e.createElementVNode("i",{class:"icon icon-error"},"!"),e.createElementVNode("p",{class:"network-content"},e.toDisplayString(e.unref(Tp).t("TUIConversation.网络异常,请您检查网络设置")),1)])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c92e96e1"]]),nf=e.defineComponent({__name:"index",emits:["handleSwitchConversation"],setup(t,{emit:n}){const a=n,o=e.ref(0),i=e.ref(),s=e.ref(),r=e.ref(0),c=e.ref(0),l=e.ref(!0);Sp.watch(ad.CONV,{totalUnreadCount:e=>{o.value=e}}),Sp.watch(ad.CUSTOM,{isShowConversationHeader:e=>{l.value=!1!==e}});const u=e=>{null==Op||Op.navigateTo({url:"/TUIKit/components/TUIChat/index"}),a("handleSwitchConversation",e)},d=()=>{var e,t;null==(e=null==i?void 0:i.value)||e.closeChildren(),null==(t=null==s?void 0:s.value)||t.closeChildren()},m=()=>{d()};y(d);const p=e=>{r.value=e.changedTouches[0].clientX,c.value=e.changedTouches[0].clientY},h=e=>{const t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;let a="";t-r.value>50&&Math.abs(n-c.value)<50?a="right":t-r.value<-50&&Math.abs(n-c.value)<50&&(a="left"),n-c.value>50&&Math.abs(t-r.value)<50?a="down":n-c.value<-50&&Math.abs(t-r.value)<50&&(a="up"),"down"!==a&&"up"!==a||d()},g=e=>{e.value=s.value};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"tui-conversation",onClick:m,onTouchstart:p,onTouchend:h},[e.createVNode(qg,{searchType:"global"}),e.unref(l)?(e.openBlock(),e.createBlock(ef,{key:0,ref_key:"headerRef",ref:i},null,512)):e.createCommentVNode("",!0),e.createVNode(tf),e.createVNode(Qg,{ref_key:"conversationListDomRef",ref:s,class:"tui-conversation-list",onHandleSwitchConversation:u,onGetPassingRef:g},null,512)],32))}}),af=w(nf,[["__scopeId","data-v-eb168bf4"]]),of=e.defineComponent({__name:"index",setup(t){const n=e.ref(),a=e.ref(!1),o=e=>{null==Op||Op.setNavigationBarTitle({title:e||"云通信 IM"})};function i(e){var t;n.value=e,a.value||o(null==(t=null==n?void 0:n.value)?void 0:t.getShowName())}function s(e){var t;a.value=e,a.value?o(Tp.t("TUIChat.对方正在输入")):o(null==(t=n.value)?void 0:t.getShowName())}return e.onMounted((()=>{Sp.watch(ad.CONV,{currentConversation:i}),Sp.watch(ad.CHAT,{typingStatus:s})})),e.onUnmounted((()=>{Sp.unwatch(ad.CONV,{currentConversation:i}),Sp.unwatch(ad.CHAT,{typingStatus:s})})),E((()=>{var e;o(null==(e=n.value)?void 0:e.getShowName())})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{style:{display:"none"}}))}}),sf={product:{label:"产品文档",url:"https://cloud.tencent.com/document/product/269/1499#.E7.BE.A4.E7.BB.84.E5.8A.9F.E8.83.BD"},customMessage:{label:"自定义消息",url:"https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#createCustomMessage"},complaint:{label:"点此投诉",url:"https://cloud.tencent.com/apply/p/xc3oaubi98g"},implement:{label:"集成TUICallKit",url:"https://cloud.tencent.com/document/product/269/79861"},purchase:{label:"开通腾讯实时音视频服务",url:"https://cloud.tencent.com/document/product/1640/79968"}},rf="/assets/back.b82bef7a.svg";function cf(e,t=new WeakMap){if("object"!=typeof e||null==e)return e;if(t.has(e))return t.get(e);const n=Object.create(Object.getPrototypeOf(e));return Object.keys(e).forEach((a=>{const o=e[a];"object"!=typeof o||null===o?n[a]=o:Array.isArray(o)?n[a]=[...o]:o instanceof Set?n[a]=new Set([...o]):o instanceof Map?n[a]=new Map([...o]):(t.set(e,e),n[a]=cf(o,t))})),n}const lf=e=>{var t;return e.type===Ip.TYPES.MSG_CUSTOM&&"group_create"===(null==(t=null==e?void 0:e.getMessageContent())?void 0:t.businessID)};function uf(){return Sp.getData(ad.USER,"displayMessageReadReceipt")&&Sp.getData(ad.APP,"enabledMessageReadReceipt")}function df(e){return Object.assign({},e)}function mf(e){const t=(new Date).setHours(0,0,0,0),n=new Date((new Date).getFullYear(),0,1,0,0,0,0).getTime(),a=new Date(e),o=864e5,i=t-a.getTime();function s(e){return e<10?"0"+e:e.toString()}if(i<=0)return`${s(a.getHours())}:${s(a.getMinutes())}`;if(i<=o)return`${Tp.t("time.昨天")} ${s(a.getHours())}:${s(a.getMinutes())}`;if(i<=5184e5){const e=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a.getDay()];return`${Tp.t("time."+e)} ${s(a.getHours())}:${s(a.getMinutes())}`}return a.getTime()>=n?`${a.getMonth()+1}/${a.getDate()} ${s(a.getHours())}:${s(a.getMinutes())}`:`${a.getFullYear()}/${a.getMonth()+1}/${a.getDate()} ${s(a.getHours())}:${s(a.getMinutes())}`}const pf=w(e.defineComponent({__name:"message-container",props:{sender:{default:""},avatar:{default:""},type:{},time:{}},setup(t){const n=t,a=Ip.TYPES,o=e.computed((()=>[a.MSG_IMAGE,a.MSG_VIDEO,a.MSG_MERGER].includes(n.type)));return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"simple-message-container"},[e.createElementVNode("div",{class:"simple-message-avatar"},[e.createVNode(Jg,{url:n.avatar},null,8,["url"])]),e.createElementVNode("div",null,[e.createElementVNode("div",{class:"simple-message-sender"},e.toDisplayString(n.sender),1),e.createElementVNode("div",{class:"simple-message-body"},[e.createElementVNode("div",{class:e.normalizeClass({"simple-message-content":!0,"no-padding":e.unref(o)})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2),e.createElementVNode("div",{class:"timestamp"},e.toDisplayString(e.unref(mf)(1e3*n.time)),1)])])]))}}),[["__scopeId","data-v-4fbcde0e"]]),hf=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!0},popDirection:{default:"bottom"},useMask:{type:Boolean,default:!0},isFullScreen:{type:Boolean,default:!0},overlayColor:{},drawerStyle:{default:()=>({})}},emits:["onOverlayClick"],setup(t,{expose:n,emit:a}){var o;const i=a,s=t,r=e.ref(),c=e.ref(),l=e.ref(!1),u=e.ref(s.drawerStyle[s.popDirection]||{});function d(e){i("onOverlayClick",e)}return e.watch((()=>s.visible),(e=>{e?l.value=!0:setTimeout((()=>{l.value=!1}),150)}),{immediate:!0}),n({drawerDomRef:r,overlayDomRef:null==(o=c.value)?void 0:o.overlayDomRef}),(t,n)=>(e.openBlock(),e.createBlock(Xg,{ref_key:"overlayDomInstanceRef",ref:c,visible:s.visible,useMask:s.useMask,maskColor:s.overlayColor,isFullScreen:s.isFullScreen,onOnOverlayClick:d},{default:e.withCtx((()=>[e.unref(l)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"drawerDomRef",ref:r,class:e.normalizeClass({drawer:!0,"origin-bottom":"bottom"===s.popDirection,"origin-right":"right"===s.popDirection,"slide-bottom":t.visible&&"bottom"===s.popDirection,"slide-right":t.visible&&"right"===s.popDirection}),style:e.normalizeStyle({minHeight:e.unref(u).minHeight,maxHeight:e.unref(u).maxHeight,borderRadius:e.unref(u).borderRadius,boxShadow:e.unref(u).boxShadow,width:e.unref(u).width})},[e.createElementVNode("div",{class:"drawer-container"},[e.renderSlot(t.$slots,"default",{},void 0,!0)])],6)):e.createCommentVNode("",!0)])),_:3},8,["visible","useMask","maskColor","isFullScreen"]))}}),gf=w(hf,[["__scopeId","data-v-edaf0f9f"]]),ff=w(e.defineComponent({__name:"index",props:{renderData:{},disabled:{type:Boolean,default:!1},messageItem:{default:()=>({})}},emits:["assignMessageIDInUniapp"],setup(t,{emit:n}){const a=n,o=t,i=e.ref(!1);function s(){o.disabled||(nh?a("assignMessageIDInUniapp",o.messageItem.ID):i.value=!0)}function r(){i.value=!1}return(t,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:"message-record-container",onClick:s},[e.createElementVNode("div",{class:"record-title"},e.toDisplayString(o.renderData.title),1),e.createElementVNode("div",{class:"record-abstract-container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.renderData.abstractList.slice(0,7),((t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"record-abstract-item"},e.toDisplayString(e.unref(Kh)(t)),1)))),128))]),e.createElementVNode("div",{class:"record-footer"},e.toDisplayString(e.unref(Tp).t("TUIChat.聊天记录")),1)]),!o.disabled&&e.unref(Qp)?(e.openBlock(),e.createBlock(Xg,{key:0,visible:e.unref(i),onOnOverlayClick:n[0]||(n[0]=e=>i.value=!1)},{default:e.withCtx((()=>[e.createVNode(_f,{isMounted:e.unref(i),renderData:o.renderData,messageID:o.messageItem.ID,onCloseOverlay:r},null,8,["isMounted","renderData","messageID"])])),_:1},8,["visible"])):o.disabled||!e.unref($p)||e.unref(nh)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(gf,{key:1,visible:e.unref(i),isFullScreen:!0,overlayColor:"transparent",popDirection:"right"},{default:e.withCtx((()=>[e.createVNode(_f,{isMounted:e.unref(i),renderData:o.renderData,messageID:o.messageItem.ID,onCloseOverlay:r},null,8,["isMounted","renderData","messageID"])])),_:1},8,["visible"]))]))}}),[["__scopeId","data-v-1a0f406f"]]),vf=e.defineComponent({__name:"index",props:{messageID:{default:""},isMounted:{type:Boolean,default:!1}},emits:["closeOverlay"],setup(t,{emit:n}){const a=n,o=t,i=Ip.TYPES,s=e.ref(!1),r=e.ref([]),c=e.ref({title:"",messageList:[]}),l=e.ref();e.watch((()=>r.value.length),(async e=>{if(s.value=!1,e<1)return;const t=r.value[r.value.length-1];if(t.downloadKey&&0===t.messageList.length)try{const e=await wp.downloadMergedMessages({payload:t,type:Ip.TYPES.MSG_MERGER});r.value[r.value.length-1]=e.payload}catch(n){s.value=!0}c.value=r.value[r.value.length-1]})),e.watch((()=>o.isMounted),(e=>{if(e){if(!o.messageID)throw new Error("messageID is required when first render of simple-message-list.");const e=Sp.getMessageModel(o.messageID).getMessage().payload;r.value=[e]}else r.value=[]}),{immediate:!0});const u=e.computed((()=>r.value.length>1)),d=e.computed((()=>{var e;return!!(null==(e=c.value)?void 0:e.messageList)&&c.value.messageList.length>0}));function m(){r.value.pop(),r.value.length<1&&a("closeOverlay")}function p(e){let t="";return e.indexOf("@custom")>-1?t=""+e:(t=Yh+e,-1===t.indexOf("@2x")?t+="@2x.png":t+=".png"),t}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"simple-message-list-container":!0,"simple-message-list-container-mobile":e.unref(ah)})},[e.createElementVNode("div",{class:"header-container"},[e.createElementVNode("span",{class:"back",onClick:m},[e.createVNode(ih,{class:"close-icon",file:e.unref(rf),size:"18px"},null,8,["file"]),e.unref(u)?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(e.unref(Tp).t("TUIChat.返回")),1)):(e.openBlock(),e.createElementBlock("span",{key:1},e.toDisplayString(e.unref(Tp).t("TUIChat.关闭")),1))]),e.createElementVNode("span",{class:"title"},e.toDisplayString(e.unref(c).title),1)]),e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0}," Load Merge Message Error ")):e.unref(d)?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"simpleMessageListRef",ref:l,class:"message-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c).messageList,(t=>(e.openBlock(),e.createElementBlock("div",{key:t.ID,class:e.normalizeClass({"message-item":!0})},[e.createVNode(pf,{sender:t.nick,avatar:t.avatar,type:t.messageBody[0].type,time:t.time},{default:e.withCtx((()=>[t.messageBody[0].type===e.unref(i).MSG_TEXT?(e.openBlock(),e.createElementBlock("div",{key:0,class:"message-text"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(zh)(t.messageBody[0].payload.text),((t,n)=>(e.openBlock(),e.createElementBlock("span",{key:n,class:"message-text-container"},["text"===t.type?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text"},e.toDisplayString(t.content),1)):(e.openBlock(),e.createElementBlock("img",{key:1,class:"simple-emoji",src:t.content,alt:"small-face"},null,8,["src"]))])))),128))])):t.messageBody[0].type===e.unref(i).MSG_IMAGE?(e.openBlock(),e.createElementBlock("div",{key:1,class:"message-image"},[e.createElementVNode("img",{class:"image",src:t.messageBody[0].payload.imageInfoArray[2].url,mode:"widthFix",alt:"image"},null,8,["src"])])):t.messageBody[0].type===e.unref(i).MSG_VIDEO?(e.openBlock(),e.createElementBlock("div",{key:2,class:"message-video"},[e.unref(nh)?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e=>function(e){if(nh){const t=encodeURIComponent(e);uni.navigateTo({url:`/TUIKit/components/TUIChat/video-play?videoUrl=${t}`})}}(t.messageBody[0].payload.remoteVideoUrl)},[e.createElementVNode("image",{class:"image",src:t.messageBody[0].payload.thumbUrl,mode:"widthFix",alt:"image"},null,8,["src"]),e.createVNode(ih,{class:"video-play-icon",file:e.unref(og)},null,8,["file"])],8,["onClick"])):(e.openBlock(),e.createElementBlock("video",{key:1,class:"video",controls:"",poster:t.messageBody[0].payload.thumbUrl},[e.createElementVNode("source",{src:t.messageBody[0].payload.remoteVideoUrl,type:"video/mp4"},null,8,["src"])],8,["poster"]))])):t.messageBody[0].type===e.unref(i).MSG_AUDIO?(e.openBlock(),e.createElementBlock("div",{key:3,class:"message-audio"},[e.createElementVNode("span",null,e.toDisplayString(e.unref(Tp).t("TUIChat.语音"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(t.messageBody[0].payload.second)+"s",1)])):t.messageBody[0].type===e.unref(i).MSG_FACE?(e.openBlock(),e.createElementBlock("div",{key:4,class:"message-face"},[e.createElementVNode("img",{class:"image",src:p(t.messageBody[0].payload.data),alt:"face"},null,8,["src"])])):t.messageBody[0].type===e.unref(i).MSG_FILE?(e.openBlock(),e.createElementBlock("div",{key:5,class:"message-file"},e.toDisplayString(e.unref(Tp).t("TUIChat.[文件]")),1)):t.messageBody[0].type===e.unref(i).MSG_LOCATION?(e.openBlock(),e.createElementBlock("div",{key:6},e.toDisplayString(e.unref(Tp).t("TUIChat.[地理位置]")),1)):t.messageBody[0].type===e.unref(i).MSG_MERGER?(e.openBlock(),e.createElementBlock("div",{key:7,class:"message-merger",onClickCapture:e=>function(e,t){r.value.push(t.messageBody[0].payload),e.stopPropagation()}(e,t)},[e.createVNode(ff,{disabled:"",renderData:t.messageBody[0].payload},null,8,["renderData"])],40,["onClickCapture"])):t.messageBody[0].type===e.unref(i).MSG_CUSTOM?(e.openBlock(),e.createElementBlock("div",{key:8},e.toDisplayString(e.unref(Tp).t("TUIChat.[自定义消息]")),1)):e.createCommentVNode("",!0)])),_:2},1032,["sender","avatar","type","time"])])))),128))],512)):e.createCommentVNode("",!0)],2))}}),_f=w(vf,[["__scopeId","data-v-d0eeb120"]]),yf=w(e.defineComponent({__name:"index",props:{groupID:{default:""}},setup(t){const n=t,a=e.ref(),o=e.ref(0),i=e.ref(!1),s=e.ref([]);async function r(){return(await Dp.getGroupApplicationList()).data.applicationList.filter((e=>e.groupID===n.groupID))}function c(){i.value=!i.value}async function l(){const e=await r();if(0===e.length)return[];const t=e.map((e=>0===e.applicationType?e.applicant:e.userID)),{data:n}=await Np.getUserProfile({userIDList:t}),a={};n.forEach((e=>{a[e.userID]=e}));return e.map((e=>{const t=a[0===e.applicationType?e.applicant:e.userID];return{nick:t.nick||t.userID||"anonymous",avatar:t.avatar||"",isRemoved:!1,application:e}}))}function u(e,t,n){Dp.handleGroupApplication({handleAction:t,application:e.application}).then((()=>{s.value[n].isRemoved=!0,setTimeout((()=>{s.value.splice(n,1),o.value-=1}),150)})).catch((()=>{}))}function d(){l().then((e=>{s.value=e,o.value=e.length}))}return e.watch(i,(e=>{e&&l().then((e=>{s.value=e,o.value=e.length}))})),e.watch((()=>s.value.length),((e,t)=>{t>0&&0===e&&(i.value=!1)})),e.onMounted((()=>{r().then((e=>{o.value=e.length})),Sp.watch(ad.GRP,{groupSystemNoticeList:d})})),e.onUnmounted((()=>{Sp.unwatch(ad.GRP,{groupSystemNoticeList:d})})),(t,n)=>(e.openBlock(),e.createElementBlock("div",null,[e.unref(o)>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"application-tips"},[e.createElementVNode("div",null,e.toDisplayString(e.unref(o))+e.toDisplayString(e.unref(Tp).t("TUIChat.条入群申请")),1),e.createElementVNode("div",{class:"application-tips-btn",onClick:c},e.toDisplayString(e.unref(Tp).t("TUIChat.点击处理")),1)])):e.createCommentVNode("",!0),e.createVNode(gf,{ref_key:"drawerDomInstanceRef",ref:a,visible:e.unref(i),zIndex:998,popDirection:e.unref(ah)?"bottom":"right",isFullScreen:e.unref(ah),overlayColor:e.unref(ah)?void 0:"transparent",drawerStyle:{bottom:{minHeight:"60vh",maxHeight:"80vh",borderRadius:"12px 12px 0 0"},right:{width:"360px",borderRadius:"12px 0 0 12px",boxShadow:"0 0 10px 0 #d0d0d0"}},onOnOverlayClick:c},{default:e.withCtx((()=>[e.createElementVNode("div",{class:e.normalizeClass({"application-contaienr":!0})},[e.createElementVNode("header",{class:"application-header"},[e.createElementVNode("div",{onClick:c},[e.unref(Qp)?(e.openBlock(),e.createBlock(ih,{key:0,file:e.unref(Lh),size:"16px"},null,8,["file"])):(e.openBlock(),e.createElementBlock("div",{key:1},e.toDisplayString(e.unref(Tp).t("关闭")),1))])]),e.createElementVNode("main",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),((t,n)=>(e.openBlock(),e.createElementBlock("div",{key:t.nick,class:e.normalizeClass({"application-item":!0,removed:t.isRemoved})},[e.createVNode(Jg,{style:{flex:"0 0 auto"},url:t.avatar,useSkeletonAnimation:!0},null,8,["url"]),e.createElementVNode("div",{class:"application-item-info"},[e.createElementVNode("div",{class:"application-item-nick"},e.toDisplayString(t.nick),1),e.createElementVNode("div",{class:"application-item-note"},e.toDisplayString(e.unref(Tp).t("TUIChat.申请加入")),1)]),e.createElementVNode("div",{class:"application-item-operation"},[e.createElementVNode("div",{class:"agree",onClick:e=>u(t,"Agree",n)},e.toDisplayString(e.unref(Tp).t("TUIChat.同意")),9,["onClick"]),e.createElementVNode("div",{class:"reject",onClick:e=>u(t,"Reject",n)},e.toDisplayString(e.unref(Tp).t("TUIChat.拒绝")),9,["onClick"])])],2)))),128))])])])),_:1},8,["visible","popDirection","isFullScreen","overlayColor"])]))}}),[["__scopeId","data-v-50f8ddf9"]]),Ef=w(e.defineComponent({__name:"message-text",props:{content:{default:()=>({})}},setup(t){const n=t,a=e.ref();return e.watchEffect((()=>{var e;a.value=n.content,null==(e=a.value.text)||e.forEach((e=>{"img"===e.name&&"custom"===(null==e?void 0:e.type)&&g("warn","at TUIKit/components/TUIChat/message-list/message-elements/message-text.vue:37","CUSTOM_BASIC_EMOJI_URL is required for custom emoji, please check your CUSTOM_BASIC_EMOJI_URL.")}))})),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["message-text-container",e.unref(Qp)&&"text-select"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).text,((t,n)=>(e.openBlock(),e.createElementBlock("span",{key:n},["text"===t.name?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text"},e.toDisplayString(t.text),1)):(e.openBlock(),e.createElementBlock("img",{key:1,class:"emoji",src:t.src,alt:t.emojiKey},null,8,["src","alt"]))])))),128))],2))}}),[["__scopeId","data-v-86c14b12"]]),Cf=155,kf=w(e.defineComponent({__name:"message-image",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},emits:["previewImage"],setup(t,{emit:n}){const a=n,o=t,i=e.ref({width:"auto",height:"auto"}),s=e=>{const{width:t,height:n}=e;if(0===t||0===n)return;let a=0,o=0;t>=n?(a=Cf,o=Cf*n/t):(a=Cf*t/n,o=Cf),i.value.width=a+"px",i.value.height=o+"px"};e.watchEffect((()=>{s(o.content)}));const r=e=>{s(e.detail)},c=()=>{var e;"success"!==(null==(e=o.messageItem)?void 0:e.status)&&1!==o.messageItem.progress||a("previewImage")};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"image-container",onClick:c},[e.createElementVNode("image",{class:"message-image",mode:"aspectFit",src:o.content.url,style:e.normalizeStyle({width:e.unref(i).width,height:e.unref(i).height}),onLoad:r},null,44,["src"])]))}}),[["__scopeId","data-v-b011a1d6"]]),If=w(e.defineComponent({__name:"message-audio",props:{broadcastNewAudioSrc:{},messageItem:{default:()=>({})},content:{default:()=>({})}},emits:["getGlobalAudioContext","setAudioPlayed"],setup(t,{emit:n}){const a=n,o=t,i=new Map,s=e.ref(!1);function r(){if(a("getGlobalAudioContext",i,{newAudioSrc:o.content.url}),o.messageItem.hasRiskContent||!o.content.url)return void ug({message:"暂不支持播放"});p()||(i.set("audio",uni.createInnerAudioContext()),function(){const e=p();if(!e)return;e.src=o.content.url,s.value=!1,e.onPlay(l),e.onStop(u),e.onEnded(d),e.onError(m)}()),s.value?c():function(){const e=p();e&&(e.play(),"in"===o.messageItem.flow&&a("setAudioPlayed",o.messageItem.ID))}()}function c(){const e=p();if(e)try{e.stop()}catch{}}function l(){s.value=!0}function u(){s.value=!1}function d(){s.value=!1}function m(){g("warn","at TUIKit/components/TUIChat/message-list/message-elements/message-audio.vue:156","audio played error")}function p(){return i.get("audio")}return e.onUnmounted((()=>{var e;const t=p();s.value&&c(),null==(e=null==t?void 0:t.destroy)||e.call(t),i.delete("audio")})),e.watch((()=>o.broadcastNewAudioSrc),(e=>{e!==o.content.url&&s.value&&(c(),s.value=!1)})),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"message-audio":!0,reserve:"out"===o.messageItem.flow}),onClick:r},[e.createElementVNode("div",{class:"audio-icon-container"},[e.createElementVNode("div",{class:e.normalizeClass({mask:!0,play:e.unref(s)})},null,2),e.createVNode(ih,{class:"icon",width:"15px",height:"20px",file:e.unref("/assets/msg-audio.ac2cd1c9.svg")},null,8,["file"])]),e.createElementVNode("div",{class:"time",style:e.normalizeStyle({width:5*o.content.second+"px"})},e.toDisplayString(o.content.second||1)+' " ',5)],2))}}),[["__scopeId","data-v-6a6c8d42"]]),Sf=w(e.defineComponent({__name:"message-file",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},setup(t){const n=t,a=()=>{if(n.messageItem.hasRiskContent)return;const e={mode:"cors",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"})};if(null==window?void 0:window.fetch)fetch(n.content.url,e).then((e=>e.blob())).then((e=>{const t=document.createElement("a"),a=window.URL.createObjectURL(e);t.href=a,t.download=n.content.name,t.click()}));else{const e=document.createElement("a");e.href=n.content.url,e.target="_blank",e.download=n.content.name,e.click()}};return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"file-message-montainer",title:e.unref(Tp).t("TUIChat.单击下载"),onClick:a},[e.createVNode(ih,{file:e.unref("/assets/file-light.565ad764.svg"),class:"file-icon"},null,8,["file"]),e.createElementVNode("div",null,[e.createElementVNode("div",null,e.toDisplayString(n.content.name),1),e.createElementVNode("div",null,e.toDisplayString(n.content.size),1)])],8,["title"]))}}),[["__scopeId","data-v-e7e6191d"]]),Tf=w(e.defineComponent({__name:"message-face",props:{content:{type:Object,default:()=>({})}},setup(t){const n=t,a=e.ref(n.content.url);return e.onMounted((()=>{"custom"===n.content.type&&g("warn","at TUIKit/components/TUIChat/message-list/message-elements/message-face.vue:29","CUSTOM_BIG_EMOJI_URL is required for custom emoji, please check your CUSTOM_BIG_EMOJI_URL.")})),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"message-image"},[e.createElementVNode("img",{mode:"aspectFit",class:"message-image",src:e.unref(a)},null,8,["src"])]))}}),[["__scopeId","data-v-3a12c261"]]),Mf=w(e.defineComponent({__name:"message-custom",props:{messageItem:{default:void 0},content:{default:void 0}},setup(t){const n=t,a=e.ref(),o=e.ref(),i=e.ref(),s=e.ref({businessID:""});e.watchEffect((()=>{a.value=n.content,o.value=n.messageItem;const{payload:e}=n.messageItem;s.value=e.data||"",s.value=eg(e.data),e.data===Bh.SERVICE&&(i.value=eg(e.extension))}));return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"custom"},[e.unref(s).businessID===e.unref(Bh).SERVICE?(e.openBlock(),e.createElementBlock("div",{key:0},[e.createElementVNode("h1",null,[e.createElementVNode("label",null,e.toDisplayString(e.unref(i).title),1),e.unref(i).hyperlinks_text?(e.openBlock(),e.createElementBlock("a",{key:0,href:e.unref(i).hyperlinks_text.value,target:"view_window"},e.toDisplayString(e.unref(i).hyperlinks_text.key),9,["href"])):e.createCommentVNode("",!0)]),e.unref(i).item&&e.unref(i).item.length>0?(e.openBlock(),e.createElementBlock("ul",{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).item,((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n},[e.unref($h)(t.value)?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.value,target:"view_window"},e.toDisplayString(t.key),9,["href"])):(e.openBlock(),e.createElementBlock("p",{key:1},e.toDisplayString(t.key),1))])))),128))])):e.createCommentVNode("",!0),e.createElementVNode("article",null,e.toDisplayString(e.unref(i).description),1)])):e.unref(s).businessID===e.unref(Bh).EVALUATE?(e.openBlock(),e.createElementBlock("div",{key:1,class:"evaluate"},[e.createElementVNode("h1",null,e.toDisplayString(e.unref(Tp).t("message.custom.对本次服务评价")),1),e.createElementVNode("ul",{class:"evaluate-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Math.max(e.unref(s).score,0),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"evaluate-list-item"},[e.createVNode(ih,{file:e.unref(tg),class:"file-icon"},null,8,["file"])])))),128))]),e.createElementVNode("article",null,e.toDisplayString(e.unref(s).comment),1)])):e.unref(s).businessID===e.unref(Bh).ORDER?(e.openBlock(),e.createElementBlock("div",{key:2,class:"order",onClick:n[0]||(n[0]=t=>{return n=e.unref(s).link,void window.open(n);var n})},[e.createElementVNode("img",{src:e.unref(s).imageUrl},null,8,["src"]),e.createElementVNode("main",null,[e.createElementVNode("h1",null,e.toDisplayString(e.unref(s).title),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(s).description),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(s).price),1)])])):e.unref(s).businessID===e.unref(Bh).LINK?(e.openBlock(),e.createElementBlock("div",{key:3,class:"textLink"},[e.createElementVNode("p",null,e.toDisplayString(e.unref(s).text),1),e.createElementVNode("a",{href:e.unref(s).link,target:"view_window"},e.toDisplayString(e.unref(Tp).t("message.custom.查看详情>>")),9,["href"])])):(e.openBlock(),e.createElementBlock("span",{key:4,innerHTML:t.content.custom},null,8,["innerHTML"]))]))}}),[["__scopeId","data-v-bddf38f5"]]),Nf=w(e.defineComponent({__name:"message-tip",props:{content:{type:Object,default:()=>({})}},setup(t){const n=t,a=e.computed((()=>{var e,t;return(null==(e=n.content)?void 0:e.text)||(null==(t=n.content)?void 0:t.custom)||""}));return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"message-tip"},[e.createElementVNode("span",null,e.toDisplayString(e.unref(a)),1)]))}}),[["__scopeId","data-v-a6439730"]]);class wf{constructor(){this.chatType="",this.features={DownloadFile:!0,CopyMessage:!0,DeleteMessage:!0,RevokeMessage:!0,QuoteMessage:!0,ForwardMessage:!0,TranslateMessage:!0,VoiceToText:!0,MultiSelection:!0,EmojiReaction:!0,InputEmoji:!0,InputStickers:!0,InputImage:!0,InputVoice:!0,InputVideo:!0,InputFile:!0,InputEvaluation:!0,InputQuickReplies:!0,InputMention:!0,MessageSearch:!0,ReadStatus:!0},this.theme="light"}static getInstance(){return wf.instance||(wf.instance=new wf),wf.instance}setChatType(e){this.chatType=e}getChatType(){return this.chatType}hideTUIChatFeatures(e){e&&e.forEach((e=>{this.features[e]&&(this.features[e]=!1)}))}getFeatureConfig(e){return e?this.features[e]:this.features}setTheme(e){this.theme=e}getTheme(){return this.theme}}const Df=wf.getInstance();Df.hideTUIChatFeatures.bind(Df);const bf=w(e.defineComponent({__name:"index",props:{message:{default:()=>({})}},emits:["openReadUserPanel"],setup(t,{emit:n}){const a=n,o=t,i=Df.getFeatureConfig("ReadStatus"),s=Ip.TYPES,r=e.ref(Sp.getData(ad.USER,"displayMessageReadReceipt"));e.onMounted((()=>{Sp.watch(ad.USER,{displayMessageReadReceipt:h})})),e.onUnmounted((()=>{Sp.unwatch(ad.USER,{displayMessageReadReceipt:h})}));const c=e.computed((()=>{if(!i)return!1;if(!r.value)return!1;const{ID:e,type:t,flow:n,status:a,hasRiskContent:c,conversationID:l,conversationType:u,needReadReceipt:d=!1}=o.message;if(c)return!1;const{groupProfile:m}=Sp.getConversationModel(l)||{};if((null==m?void 0:m.type)===s.GRP_AVCHATROOM||(null==m?void 0:m.type)===s.GRP_COMMUNITY)return!1;if(t===s.MSG_CUSTOM){const t=Sp.getMessageModel(e);if(null!==(null==t?void 0:t.getSignalingInfo()))return!1}return"out"===n&&"success"===a&&("GROUP"===u?d:"C2C"===u)})),l=e.computed((()=>{const{conversationType:e,needReadReceipt:t=!1,isPeerRead:n=!1}=o.message,{readCount:a=0,unreadCount:i=0,isPeerRead:s=!1}=o.message.readReceiptInfo;return"C2C"===e?t?s?0:1:n?0:1:"GROUP"===e?t?0===a?1:0===i?2:4:3:1})),u=e.computed((()=>{const{readCount:e=0}=o.message.readReceiptInfo;switch(l.value){case 0:return Tp.t("TUIChat.已读");case 1:return Tp.t("TUIChat.未读");case 2:return Tp.t("TUIChat.全部已读");case 4:return`${e}${Tp.t("TUIChat.人已读")}`;default:return""}})),d=e.computed((()=>{const{conversationType:e}=o.message;return"C2C"===e?0!==l.value:"GROUP"===e&&2!==l.value})),m=e.computed((()=>o.message.needReadReceipt&&"GROUP"===o.message.conversationType&&(4===l.value||1===l.value)));function p(){m.value&&a("openReadUserPanel")}function h(e){r.value=e}return(t,n)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"message-label":!0,unread:e.unref(d),"finger-point":e.unref(m)}),onClick:p},[e.createElementVNode("span",null,e.toDisplayString(e.unref(u)),1)],2)),[[e.vShow,e.unref(c)]])}}),[["__scopeId","data-v-3007312d"]]);var Lf=(e=>(e[e.TYPE_NONE=0]="TYPE_NONE",e[e.TYPE_TEXT=1]="TYPE_TEXT",e[e.TYPE_CUSTOM=2]="TYPE_CUSTOM",e[e.TYPE_IMAGE=3]="TYPE_IMAGE",e[e.TYPE_SOUND=4]="TYPE_SOUND",e[e.TYPE_VIDEO=5]="TYPE_VIDEO",e[e.TYPE_FILE=6]="TYPE_FILE",e[e.TYPE_LOCATION=7]="TYPE_LOCATION",e[e.TYPE_FACE=8]="TYPE_FACE",e[e.TYPE_GROUP_TIPS=9]="TYPE_GROUP_TIPS",e[e.TYPE_MERGER=10]="TYPE_MERGER",e))(Lf||{});const Pf=w(e.defineComponent({__name:"index",props:{message:{default:()=>({})}},emits:["scrollTo","blinkMessage"],setup(t,{emit:n}){const a=n,o=t;let i=0;const s=e.ref(""),r=e.ref(!1),c=e.ref({}),l=e.computed((()=>{var e;try{const t=JSON.parse((null==(e=o.message)?void 0:e.cloudCustomData)||"{}"),n=Sp.getMessageModel(t.messageReply.messageID);return null==n?void 0:n.isRevoked}catch(t){return!0}}));async function u(){var e;if(l.value)return;const t=null==(e=c.value)?void 0:e.messageID,n=Sp.getData(ad.CHAT,"messageList").some((e=>e.ID===t));if(t&&n)try{const e=await Xp("#messageScrollList","messageList"),n=await Xp("#tui-"+t,"messageList"),{scrollTop:o}=await Kp("#messageScrollList","messageList"),s=n.top+o-e.top-i++%2,r=n.top<e.top;if(!nh&&window){const e=document.getElementById("messageScrollList");r&&e&&(e.scrollTop=s)}else nh&&r&&a("scrollTo",s);a("blinkMessage",t)}catch(o){g("error","at TUIKit/components/TUIChat/message-list/message-elements/message-quote/index.vue:154",o)}else ug({message:Tp.t("TUIChat.无法定位到原消息"),type:rg})}return e.onMounted((()=>{var e;try{const t=JSON.parse((null==(e=o.message)?void 0:e.cloudCustomData)||"{}");r.value=Boolean(t.messageReply),r.value&&(c.value=t.messageReply,s.value=function(e){let t="",n="";switch(e.messageType){case Lf.TYPE_TEXT:t="[文本]";break;case Lf.TYPE_CUSTOM:t="[自定义消息]";break;case Lf.TYPE_IMAGE:t="[图片]";break;case Lf.TYPE_SOUND:t="[音频]";break;case Lf.TYPE_VIDEO:t="[视频]";break;case Lf.TYPE_FILE:t="[文件]";break;case Lf.TYPE_LOCATION:t="[地理位置]";break;case Lf.TYPE_FACE:t="[动画表情]";break;case Lf.TYPE_GROUP_TIPS:t="[群提示]";break;case Lf.TYPE_MERGER:t="[聊天记录]";break;default:t="[消息]"}[Lf.TYPE_TEXT,Lf.TYPE_MERGER].includes(e.messageType)&&(n=e.messageAbstract);return n||Tp.t(`TUIChat.${t}`)}(c.value))}catch(t){r.value=!1}})),(t,n)=>e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({"reference-content":!0,reverse:"out"===t.message.flow}),onClick:u},[e.unref(l)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"revoked-text"},e.toDisplayString(e.unref(Tp).t("TUIChat.引用内容已撤回")),1)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"max-double-line"},e.toDisplayString(e.unref(c).messageSender)+": "+e.toDisplayString(e.unref(Kh)(e.unref(s))),1))],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-5258ce60"]]),Af=class e{constructor(){this.isUseCache=!0,this.translationCache=new Map}static getInstance(){return e.instance||(e.instance=new e),e.instance}async get(e){if(this.isUseCache){const t=this.translationCache.get(e.ID);if(void 0!==t)return t}const t=Sp.getMessageModel(e.ID);if(!t)return[];const{text:n}=t.getMessageContent()||{},a=[],o=await this.getNickList(t);for(let r=0;r<n.length;++r){const e=n[r];if("img"===e.name){a.push({type:"face",value:e.src});continue}const{transSplitingList:t,atNickList:i}=this.getSplitResult(e.text,o);for(let n=0;n<t.length;++n)a.push({type:"text",value:t[n]}),n<i.length&&a.push({type:"mention",value:i[n]})}const i=[],s=a.filter(((e,t)=>"text"===e.type&&""!==e.value.trim()&&(i.push(t),!0))).map((e=>e.value));if(0===s.length)return this.translationCache.set(t.ID,a),a;return(await this.getTranslationStandard(s)).forEach(((e,t)=>{a[i[t]].value=e})),this.translationCache.set(t.ID,a),a}clear(){this.translationCache.clear()}disableCache(){this.isUseCache=!1}enableCache(){this.isUseCache=!0}getTranslationStandard(e){return new Promise(((t,n)=>{wp.translateText({sourceTextList:e,sourceLanguage:"auto"}).then((e=>{const{data:{translatedTextList:n}}=e;t(n)})).catch((e=>{n(e)}))}))}async getNickList(e){const t=[],{atUserList:n=[]}=e,a=Ip.TYPES.MSG_AT_ALL;if(n.includes(a)&&t.push(`@${Tp.t("TUIChat.所有人")}`),n.length>0){const{data:e}=await Np.getUserProfile({userIDList:n});e.forEach((e=>{const n=`@${e.nick||e.userID}`;t.push(n)}))}return[...new Set(t)]}getSplitResult(e,t){let n=0;const a=[],o=[];for(;n<e.length;){const i=e.indexOf("@",n);if(-1===i){a.push(e.substring(n));break}let s=!1;for(let r=0;r<t.length;++r){const c=e.indexOf(t[r],i);if(-1!==c&&c===i){a.push(e.substring(n,c)),o.push(t[r]),n=c+t[r].length,s=!0;break}}if(!s){a.push(e.substring(n));break}}return{transSplitingList:a,atNickList:o}}};Af.instance=void 0;const Rf=Af.getInstance(),Of=w(e.defineComponent({__name:"translation-content",props:{message:{default:()=>({})},translationContentVisible:{type:Boolean},isSingleTranslation:{type:Boolean},translationWrapperRef:{}},setup(t){const n=t,a=e.ref(!1),o=e.ref(""),i=e.ref([]);return e.watch((()=>n.translationContentVisible),(e=>{e&&Rf.get(n.message).then((e=>{a.value=!0,i.value=e})).catch((e=>{a.value=!0,emits("toggleErrorStatus",!0),o.value=e.message}))}),{immediate:!0}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"message-translation-container"},[e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:0,id:`translation-content-${n.message.ID}`,class:e.normalizeClass({"translation-content":!0,occur:!0})},[e.unref(i).length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(i),((t,n)=>(e.openBlock(),e.createElementBlock("span",{key:n},["face"===t.type?(e.openBlock(),e.createElementBlock("img",{key:0,class:"text-face",src:t.value},null,8,["src"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:"text-plain"},e.toDisplayString(t.value),1))])))),128)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(o)),1)],64))],8,["id"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({loading:!0,"loading-end":e.unref(a)})},e.toDisplayString(e.unref(Tp).t("TUIChat.翻译中"))+"... ",3)]))}}),[["__scopeId","data-v-937aa6a8"]]),Vf=w(e.defineComponent({__name:"index",props:{message:{default:()=>({})}},setup(t){const n=t,a=e.ref(!1),o=e.ref(!1),i=e.ref();let s=!0;function r(e){o.value=e}function c(e){if(void 0===e)return;s=!1;const t=e.get(n.message.conversationID)||[];for(let i=0;i<t.length;++i){const{messageID:e,visible:r}=t[i];if(e===n.message.ID&&void 0!==r){1===t.length&&r&&(s=!0),o.value=!1,a.value=r;break}}}return e.onMounted((()=>{Sp.watch(ad.CHAT,{translateTextInfo:c})})),e.onUnmounted((()=>{Sp.unwatch(ad.CHAT,{translateTextInfo:c})})),(t,c)=>e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"translationWrapperRef",ref:i,class:e.normalizeClass({"message-translation":!0,reverse:"out"===n.message.flow,error:e.unref(o)})},[e.createVNode(Of,{message:n.message,translationContentVisible:e.unref(a),translationWrapperRef:e.unref(i),isSingleTranslation:e.unref(s),onToggleErrorStatus:r},null,8,["message","translationContentVisible","translationWrapperRef","isSingleTranslation"]),e.createElementVNode("div",{class:"copyright"},[e.createVNode(ih,{file:e.unref("/assets/check-sm.c3984331.svg"),size:"13px"},null,8,["file"]),e.createElementVNode("div",{class:"copyright-text"},e.toDisplayString(e.unref(Tp).t("TUIChat.由IM提供翻译支持")),1)])],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-8bab923c"]]),Bf=class e{constructor(){this.isUseCache=!0,this.convertCache=new Map}static getInstance(){return e.instance||(e.instance=new e),e.instance}async get(e){if(this.isUseCache){const t=this.convertCache.get(e.ID);if(void 0!==t)return t}const t=Sp.getMessageModel(e.ID);if(!t)return Promise.reject("message not found");const n=await wp.convertVoiceToText({message:t});let{data:{result:a}={}}=n;return a?this.convertCache.set(t.ID,a):a="",a}clear(){this.convertCache.clear()}disableCache(){this.isUseCache=!1}enableCache(){this.isUseCache=!0}};Bf.instance=void 0;const xf=Bf.getInstance(),Uf=w(e.defineComponent({__name:"convert-content",props:{message:{default:()=>({})},contentVisible:{type:Boolean}},emits:["toggleErrorStatus"],setup(t,{emit:n}){const a=n,o=t,i=e.ref(!1),s=e.ref("");return e.watch((()=>o.contentVisible),(e=>{e&&xf.get(o.message).then((e=>{i.value=!0,s.value=e})).catch((e=>{i.value=!0,a("toggleErrorStatus",!0),s.value=e.message}))}),{immediate:!0}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"message-convert-container"},[e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({"convert-content":!0,occur:!0})},e.toDisplayString(e.unref(s)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({loading:!0,"loading-end":e.unref(i)})},e.toDisplayString(e.unref(Tp).t("TUIChat.转换中"))+"... ",3)]))}}),[["__scopeId","data-v-baaba9e9"]]),Gf=w(e.defineComponent({__name:"index",props:{message:{default:()=>({})}},setup(t){const n=t,a=e.ref(!1),o=e.ref(!1),i=e.ref();let s=!0;function r(e){o.value=e}function c(e){if(void 0===e)return;s=!1;const t=e.get(n.message.conversationID)||[];for(let i=0;i<t.length;++i){const{messageID:e,visible:r}=t[i];if(e===n.message.ID&&void 0!==r){1===t.length&&r&&(s=!0),o.value=!1,a.value=r;break}}}return e.onMounted((()=>{Sp.watch(ad.CHAT,{voiceToTextInfo:c})})),e.onUnmounted((()=>{Sp.unwatch(ad.CHAT,{voiceToTextInfo:c})})),(t,c)=>e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"convertWrapperRef",ref:i,class:e.normalizeClass({"message-convert":!0,reverse:"out"===n.message.flow,error:e.unref(o)})},[e.createVNode(Uf,{message:n.message,contentVisible:e.unref(a),isSingleConvert:e.unref(s),convertWrapperRef:e.unref(i),onToggleErrorStatus:r},null,8,["message","contentVisible","isSingleConvert","convertWrapperRef"])],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-873d2b86"]]),Ff=w(e.defineComponent({__name:"index",props:{isSelected:{type:Boolean}},emits:["onChange"],setup(t,{emit:n}){const a=n,o=t;function i(){a("onChange",!o.isSelected)}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"radio-select",onClick:i},[o.isSelected?(e.openBlock(),e.createBlock(ih,{key:1,file:e.unref("/assets/radio.168a4b70.svg"),size:"20px"},null,8,["file"])):(e.openBlock(),e.createElementBlock("div",{key:0,class:"radio-no-select"}))]))}}),[["__scopeId","data-v-469da1c9"]]),Yf=w(e.defineComponent({__name:"message-bubble",props:{messageItem:{default:()=>({})},content:{default:()=>({})},classNameList:{default:()=>[]},blinkMessageIDList:{default:()=>[]},isMultipleSelectMode:{type:Boolean,default:!1},isAudioPlayed:{type:Boolean,default:!1},multipleSelectedMessageIDList:{default:()=>[]}},emits:["resendMessage","blinkMessage","setReadReceiptPanelVisible","changeSelectMessageIDList","scrollTo"],setup(t,{emit:n}){const a=n,o=t,i=Ip.TYPES,s=[i.MSG_LOCATION,i.MSG_TEXT,i.MSG_CUSTOM,i.MSG_MERGER,i.MSG_FACE],{blinkMessageIDList:r,messageItem:c}=e.toRefs(o),l=e.computed((()=>o.multipleSelectedMessageIDList.includes(c.value.ID))),u=e.computed((()=>"in"===c.value.flow&&"success"===c.value.status&&c.value.type===i.MSG_AUDIO&&!o.isAudioPlayed)),d=e.computed((()=>["message-bubble",l.value?"multiple-selected":"",...o.classNameList])),m=e.computed((()=>[i.MSG_IMAGE,i.MSG_VIDEO,i.MSG_MERGER].includes(c.value.type))),p=e.computed((()=>{let e=Tp.t("TUIChat.涉及敏感内容")+", ";return"out"===c.value.flow?e+=Tp.t("TUIChat.发送失败"):e+=Tp.t(c.value.type===i.MSG_AUDIO?"TUIChat.无法收听":"TUIChat.无法查看"),e})),h=e.computed((()=>{var e,t;return!!(null==(e=c.value)?void 0:e.ID)&&(null==(t=null==r?void 0:r.value)?void 0:t.includes(c.value.ID))}));function g(e){a("changeSelectMessageIDList",{type:e?"add":"remove",messageID:c.value.ID})}function f(e){a("blinkMessage",e)}function v(e){a("scrollTo",e)}function _(){a("setReadReceiptPanelVisible",!0,c.value)}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(d))},[o.isMultipleSelectMode?(e.openBlock(),e.createBlock(Ff,{key:0,class:"multiple-select-radio",isSelected:e.unref(l),onOnChange:g},null,8,["isSelected"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass({"control-reverse":"out"===e.unref(c).flow})},[e.createElementVNode("div",{class:"message-bubble-content"},[e.createElementVNode("div",{class:e.normalizeClass(["message-bubble-main-content",["in"===e.unref(c).flow?"":"reverse"]])},[e.createVNode(Jg,{useSkeletonAnimation:"",url:e.unref(c).avatar||"",style:{flex:"0 0 auto"}},null,8,["url"]),e.createElementVNode("main",{class:"message-body",onClick:n[1]||(n[1]=e.withModifiers((()=>{}),["stop"]))},["in"===e.unref(c).flow&&"GROUP"===e.unref(c).conversationType?(e.openBlock(),e.createElementBlock("div",{key:0,class:"message-body-nick-name"},e.toDisplayString(o.content.showName),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["message-body-main","out"===e.unref(c).flow&&"message-body-main-reverse"])},[e.createElementVNode("div",{class:e.normalizeClass(["blink","message-body-content","out"===e.unref(c).flow?"content-out":"content-in",e.unref(c).hasRiskContent&&"content-has-risk",e.unref(m)?"content-no-padding":"",e.unref(m)&&e.unref(h)?"blink-shadow":"",!e.unref(m)&&e.unref(h)?"blink-content":""])},[e.createElementVNode("div",{class:"content-main"},[e.unref(c).type!==e.unref(i).MSG_IMAGE&&e.unref(c).type!==e.unref(i).MSG_VIDEO||!e.unref(c).hasRiskContent?e.renderSlot(t.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(["message-risk-replace",!e.unref(Qp)&&"message-risk-replace-h5"]),src:"https://web.sdk.qcloud.com/component/TUIKit/assets/has_risk_default.png"},null,2))]),e.unref(c).hasRiskContent?(e.openBlock(),e.createElementBlock("div",{key:0,class:"content-has-risk-tips"},e.toDisplayString(e.unref(p)),1)):e.createCommentVNode("",!0)],2),e.unref(u)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"audio-unplay-mark"})):e.createCommentVNode("",!0),"fail"===e.unref(c).status||e.unref(c).hasRiskContent?(e.openBlock(),e.createElementBlock("div",{key:1,class:"message-label fail",onClick:n[0]||(n[0]=e=>{var t;(null==(t=c.value)?void 0:t.hasRiskContent)||a("resendMessage")})}," ! ")):e.createCommentVNode("",!0),"unSend"===e.unref(c).status&&s.includes(e.unref(c).type)?(e.openBlock(),e.createBlock(ih,{key:2,class:"message-label loading-circle",file:e.unref("/assets/loading.2a143778.png"),width:"15px",height:"15px"},null,8,["file"])):e.createCommentVNode("",!0),e.createVNode(bf,{class:"message-label align-self-bottom",message:e.unref(df)(e.unref(c)),onOpenReadUserPanel:_},null,8,["message"])],2)])],2),e.createElementVNode("div",{class:"message-bubble-extra-content"},[e.createVNode(Vf,{class:e.normalizeClass("out"===e.unref(c).flow?"reverse":"flex-row"),message:e.unref(c)},null,8,["class","message"]),e.createVNode(Gf,{class:e.normalizeClass("out"===e.unref(c).flow?"reverse":"flex-row"),message:e.unref(c)},null,8,["class","message"]),e.createVNode(Pf,{class:e.normalizeClass("out"===e.unref(c).flow?"reverse":"flex-row"),message:e.unref(c),onBlinkMessage:f,onScrollTo:v},null,8,["class","message"])])])],2)],2))}}),[["__scopeId","data-v-0db740be"]]),Hf=w(e.defineComponent({__name:"message-location",props:{content:{type:Object,default:()=>({})}},setup(t){const n=t,a=e.ref();return e.watchEffect((()=>{a.value=n.content})),(t,n)=>(e.openBlock(),e.createElementBlock("a",{class:"message-location",href:e.unref(a).href,target:"_blank",title:"点击查看详情"},[e.createElementVNode("span",{class:"el-icon-location-outline"},e.toDisplayString(e.unref(a).description),1),e.createElementVNode("img",{src:e.unref(a).url},null,8,["src"])],8,["href"]))}}),[["__scopeId","data-v-394dfab9"]]),Zf=w(e.defineComponent({__name:"message-timestamp",props:{currTime:{type:Number,default:0},prevTime:{type:Number,default:0}},setup(t){const n=t,{currTime:a,prevTime:o}=e.toRefs(n),i=e.ref(!1),s=e.ref("");return e.watch((()=>[a.value,o.value]),((e,t)=>{var n,r;(null==e?void 0:e.toString())!==(null==t?void 0:t.toString())&&(s.value=(n=a.value,r=o.value,i.value=!1,n<=0?"":!r||r<=0||n-r>=600?(i.value=!0,mf(1e3*n)):""))}),{immediate:!0}),(t,n)=>e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"message-timestamp"},e.toDisplayString(e.unref(s)),1)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c78b0657"]]),qf=w(e.defineComponent({__name:"message-video",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},setup(t){const n=t;function a(){const e=encodeURIComponent(n.content.url);uni.navigateTo({url:`/TUIKit/components/TUIChat/video-play?videoUrl=${e}`})}return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"message-video"},[e.createElementVNode("div",{class:"message-video-box",onClick:a},[e.createElementVNode("image",{src:n.content.snapshotUrl,class:"message-video-box"},null,8,["src"]),"success"===n.messageItem.status||1===n.messageItem.progress?(e.openBlock(),e.createBlock(ih,{key:0,class:"video-play",file:e.unref(og)},null,8,["file"])):e.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-4865446a"]]),jf="/assets/msg-copy.8d896bef.svg",Jf=w(e.defineComponent({__name:"index",props:{messageItem:{default:()=>({})},isMultipleSelectMode:{type:Boolean,default:!1}},emits:["toggleMultipleSelectMode"],setup(t,{expose:n,emit:a}){const o=a,i=t,s=Df.getFeatureConfig(),r=Ip.TYPES,c=e.ref([{key:"open",text:Tp.t("TUIChat.打开"),iconUrl:jf,renderCondition(){var e;return!(!s.DownloadFile||!l.value)&&(Qp&&((null==(e=l.value)?void 0:e.type)===r.MSG_FILE||l.value.type===r.MSG_VIDEO||l.value.type===r.MSG_IMAGE))},clickEvent:function(){var e;let t="";switch(null==(e=l.value)?void 0:e.type){case Ip.TYPES.MSG_FILE:t=l.value.payload.fileUrl;break;case Ip.TYPES.MSG_VIDEO:t=l.value.payload.remoteVideoUrl;break;case Ip.TYPES.MSG_IMAGE:t=l.value.payload.imageInfoArray[0].url}null==window||window.open(t,"_blank")}},{key:"copy",text:Tp.t("TUIChat.复制"),iconUrl:jf,renderCondition:()=>!(!s.CopyMessage||!l.value)&&l.value.type===r.MSG_TEXT,clickEvent:async function(){var e,t;nh&&(null==Op||Op.setClipboardData({data:Kh(null==(t=null==(e=l.value)?void 0:e.payload)?void 0:t.text)}))}},{key:"revoke",text:Tp.t("TUIChat.撤回"),iconUrl:"/assets/msg-revoke.39595cc0.svg",renderCondition:()=>!(!s.RevokeMessage||!l.value)&&("out"===l.value.flow&&"success"===l.value.status),clickEvent:function(){if(!l.value)return;Sp.getMessageModel(l.value.ID).revokeMessage().then((()=>{Cg("revokeMessage")})).catch((e=>{if(20016===e.code){const e=Tp.t("TUIChat.已过撤回时限");ug({message:e,type:cg})}}))}},{key:"delete",text:Tp.t("TUIChat.删除"),iconUrl:"/assets/msg-del.05341954.svg",renderCondition:()=>!(!s.DeleteMessage||!l.value)&&"success"===l.value.status,clickEvent:function(){if(!l.value)return;Sp.getMessageModel(l.value.ID).deleteMessage()}},{key:"forward",text:Tp.t("TUIChat.转发"),iconUrl:"/assets/msg-forward.1907b7f9.svg",renderCondition:()=>!(!s.ForwardMessage||!l.value)&&"success"===l.value.status,clickEvent:function(){if(!l.value)return;Sp.update(ad.CUSTOM,"singleForwardMessageID",l.value.ID)}},{key:"quote",text:Tp.t("TUIChat.引用"),iconUrl:"/assets/msg-quote.550cd8cb.svg",renderCondition(){if(!s.QuoteMessage||!l.value)return!1;const e=Sp.getMessageModel(l.value.ID);return"success"===l.value.status&&!e.getSignalingInfo()},clickEvent:function(){if(!l.value)return;l.value.quoteMessage()}},{key:"translate",text:Tp.t("TUIChat.翻译"),visible:!1,iconUrl:"/assets/translate.8c9408be.svg",renderCondition:()=>!(!s.TranslateMessage||!l.value)&&("success"===l.value.status&&l.value.type===r.MSG_TEXT),clickEvent:function(){if(!Sp.getData(ad.APP,"enabledTranslationPlugin"))return void ug({message:Tp.t("TUIChat.请开通翻译功能"),type:rg});if(!l.value)return;const e=c.value.findIndex((e=>"translate"===e.key));Sp.update(ad.CHAT,"translateTextInfo",{conversationID:l.value.conversationID,messageID:l.value.ID,visible:!c.value[e].visible})}},{key:"convert",text:Tp.t("TUIChat.转文字"),visible:!1,iconUrl:"/assets/convertText_zh.51e06e84.svg",renderCondition:()=>!(!s.VoiceToText||!l.value)&&("success"===l.value.status&&l.value.type===r.MSG_AUDIO),clickEvent:function(){if(!Sp.getData(ad.APP,"enabledVoiceToText"))return void ug({message:Tp.t("TUIChat.请开通语音转文字功能")});if(!l.value)return;const e=c.value.findIndex((e=>"convert"===e.key));Sp.update(ad.CHAT,"voiceToTextInfo",{conversationID:l.value.conversationID,messageID:l.value.ID,visible:!c.value[e].visible})}},{key:"multi-select",text:Tp.t("TUIChat.多选"),iconUrl:"/assets/multiple-select.d38619b0.svg",renderCondition:()=>!(!s.MultiSelection||!l.value)&&"success"===l.value.status,clickEvent:function(){o("toggleMultipleSelectMode")}}]),l=e.ref(),u=e.ref();e.onMounted((()=>{Sp.watch(ad.CHAT,{translateTextInfo:m,voiceToTextInfo:p})})),e.onUnmounted((()=>{Sp.unwatch(ad.CHAT,{translateTextInfo:m,voiceToTextInfo:p})})),e.watchEffect((()=>{l.value=Sp.getMessageModel(i.messageItem.ID)}));const d=e.computed((()=>{for(let e=0;e<c.value.length;++e)if(c.value[e].renderCondition())return!1;return!0}));function m(e){if(void 0===e)return;const t=e.get(i.messageItem.conversationID)||[],n=c.value.findIndex((e=>"translate"===e.key));for(let a=0;a<t.length;++a){const{messageID:e,visible:o}=t[a];if(e===i.messageItem.ID)return c.value[n].text=Tp.t(o?"TUIChat.隐藏":"TUIChat.翻译"),void(c.value[n].visible=!!o)}c.value[n].text=Tp.t("TUIChat.翻译")}function p(e){if(void 0===e)return;const t=e.get(i.messageItem.conversationID)||[],n=c.value.findIndex((e=>"convert"===e.key));for(let a=0;a<t.length;++a){const{messageID:e,visible:o}=t[a];if(e===i.messageItem.ID)return c.value[n].text=Tp.t(o?"TUIChat.隐藏":"TUIChat.转文字"),void(c.value[n].visible=!!o)}c.value[n].text=Tp.t("TUIChat.转文字")}return n({messageToolDom:u}),(t,n)=>e.unref(d)||t.messageItem.hasRiskContent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"messageToolDom",ref:u,class:e.normalizeClass(["dialog-item",e.unref(Qp)?"dialog-item-web":"dialog-item-h5"])},[e.unref(s).EmojiReaction?e.renderSlot(t.$slots,"TUIEmojiPlugin",{key:0},void 0,!0):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["dialog-item-list",e.unref(Qp)?"dialog-item-list-web":"dialog-item-list-h5"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),((t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.renderCondition()?(e.openBlock(),e.createElementBlock("div",{key:t.key,class:"list-item",onClick:e=>function(e){c.value[e].clickEvent()}(n),onMousedown:e=>{t.key}},[e.createVNode(ih,{file:t.iconUrl,size:"15px"},null,8,["file"]),e.createElementVNode("span",{class:"list-item-text"},e.toDisplayString(t.text),1)],40,["onClick","onMousedown"])):e.createCommentVNode("",!0)],64)))),256))],2)],2))}}),[["__scopeId","data-v-7bcd5474"]]),Xf=w(e.defineComponent({__name:"message-revoked",props:{isEdit:{type:Boolean,default:()=>!1},messageItem:{type:Object,default:()=>({})}},emits:["messageEdit"],setup(t,{emit:n}){const a=t,o=e.ref(),i=e.ref(!1),s=n;e.watchEffect((()=>{o.value=a.messageItem,i.value=a.isEdit}));const r=()=>{s("messageEdit")};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"revoke"},["in"===e.unref(o).flow?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(e.unref(o).nick||e.unref(o).from),1)):e.unref(o).from===e.unref(o).revoker?(e.openBlock(),e.createElementBlock("span",{key:1},e.toDisplayString(e.unref(Tp).t("TUIChat.您")),1)):(e.openBlock(),e.createElementBlock("span",{key:2},e.toDisplayString(e.unref(o).revoker),1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(Tp).t("TUIChat.撤回了一条消息")),1),"out"===e.unref(o).flow&&e.unref(i)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"edit",onClick:r},e.toDisplayString(e.unref(Tp).t("TUIChat.重新编辑")),1)):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-393e3607"]]),Kf={OFFICIAL_ACCOUNT:"1",MINI_APP:"2",MINI_APP_SERVICE_ACCOUNT:"3",BACKEND_INTERNAL:"4",WEB:"5",SESSION_MESSAGE_SLICE:"6",MINI_APP_AUTO:"7",INTERNAL:"8",MENU:"9",MENU_SELECTED:"10",CLIENT_STATE:"11",TYPING_STATE:"12",ROBOT:"13",BRANCH:"15",BRANCH_NUMBER:15,MEMBER:"17",NO_SEAT_ONLINE:"18",END:"19",TIMEOUT:"20",FROM_INPUT:"21",PRODUCT_CARD:"22",SATISFACTION_CON:"23",USER_SATISFACTION:"24",ROBOT_MSG:"29",RICH_TEXT:"30",STREAM_TEXT:"31"},zf={STAR:1,NUMBER:2},Wf="TIMCustomElem";function Qf(e){return function(e){if("string"==typeof e)try{return!!JSON.parse(e)}catch(t){return!1}return!1}(e)?JSON.parse(e):e}function $f(e){var t;const n=Qf(null==(t=null==e?void 0:e.payload)?void 0:t.data);return 0===Number(null==n?void 0:n.customerServicePlugin)||1===Number(null==n?void 0:n.chatbotPlugin)}const ev=e=>{var t;const n=Qf(null==(t=null==e?void 0:e.payload)?void 0:t.data);return $f(e)&&n.src===Kf.MENU},tv=e=>{var t,n;const a=Qf(null==(t=null==e?void 0:e.payload)?void 0:t.data),o=[Kf.MENU,Kf.BRANCH,Kf.BRANCH_NUMBER,Kf.FROM_INPUT,Kf.PRODUCT_CARD,Kf.ROBOT_MSG,Kf.RICH_TEXT,Kf.STREAM_TEXT],i=(null==e?void 0:e.type)===Wf,s=(null==a?void 0:a.src)&&!o.includes(null==a?void 0:a.src),r=(null==a?void 0:a.src)===Kf.ROBOT&&-1!==["feedback","updateBotStatus"].indexOf(null==(n=null==a?void 0:a.content)?void 0:n.command);return i&&(s||r)};const nv=(a=class{constructor(){__publicField(this,"customerServiceAccounts"),g("log","at TUIKit/tui-customer-service-plugin/server.ts:12","TUICustomerServer.init ok"),Yg.registerService(Mg.TUICustomerServicePlugin.SERVICE.NAME,this),Yg.registerExtension(Mg.TUIContact.EXTENSION.CONTACT_LIST.EXT_ID,this),this.customerServiceAccounts=["@customer_service_account"]}static getInstance(){return a.instance||(a.instance=new a),a.instance}setCustomerServiceAccounts(e){this.customerServiceAccounts=e}getCustomerServiceAccounts(){return this.customerServiceAccounts}isCustomerConversation(e){const t=e&&e.slice(3)||"";return this.customerServiceAccounts.indexOf(t)>-1}isCustomerServicePluginMessage(e){return!(!e||!this.isCustomerConversation(e.conversationID))&&($f(e)||tv(e))}onGetExtension(e){if(e===Mg.TUIContact.EXTENSION.CONTACT_LIST.EXT_ID)return[{weight:0,icon:"",text:"客服号",data:{name:"customer",accountList:this.customerServiceAccounts}}]}onCall(e,t){if(e===Mg.TUICustomerServicePlugin.SERVICE.METHOD.ACTIVE_CONVERSATION)this.isCustomerConversation(t.conversationID)&&(Yg.callService({serviceName:Mg.TUIChat.SERVICE.NAME,method:Mg.TUIChat.SERVICE.METHOD.SET_CHAT_TYPE,params:{chatType:"customerService"}}),Yg.callService({serviceName:Mg.TUIChat.SERVICE.NAME,method:Mg.TUIChat.SERVICE.METHOD.SEND_CUSTOM_MESSAGE,params:{to:t.conversationID.slice(3),conversationType:"C2C",payload:{data:JSON.stringify({src:"7",customerServicePlugin:0})}}}))}},__publicField(a,"instance"),a).getInstance(),av=nv.isCustomerServicePluginMessage.bind(nv);function ov(e){var t;const n=eg(null==(t=null==e?void 0:e.payload)?void 0:t.data);if(1===(null==n?void 0:n.businessID)&&(null==n?void 0:n.data)){if("av_call"===eg(n.data).businessID)return!0}return!1}function iv(e){var t;const n=eg(null==(t=null==e?void 0:e.payload)?void 0:t.data);return"group_room_message"===(null==n?void 0:n.businessID)}function sv(e){return e.type===Ip.TYPES.MSG_CUSTOM&&(ov(e)||av(e)||iv(e)||function(e){var t;const n=eg(null==(t=null==e?void 0:e.payload)?void 0:t.data);return"ROOM_INVITE_ACTION"===(null==n?void 0:n.businessID)||"tuikit_engine_room"===(null==n?void 0:n.businessID)}(e))}nv.setCustomerServiceAccounts.bind(nv),nv.getCustomerServiceAccounts.bind(nv);const rv=e.defineComponent({__name:"message-plugin-layout",props:{message:{default:()=>({})},showStyle:{default:""},bubbleClassNameList:{default:()=>[]},blinkMessageIDList:{default:()=>[]}},emits:["resendMessage","handleToggleMessageItem","handleH5LongPress"],setup(t,{emit:n}){const a=t,o=n,i=e.computed((()=>{var e;return Sp.getMessageModel(null==(e=a.message)?void 0:e.ID)})),s=(e,t,n=!1)=>{o("handleToggleMessageItem",e,t,n)},r=(e,t,n)=>{o("handleH5LongPress",e,t,n)};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"message-plugin"},["tip"===a.showStyle?(e.openBlock(),e.createElementBlock("div",{key:0,class:"message-plugin-tip"},[e.renderSlot(t.$slots,"messageTip",{},void 0,!0)])):"bubble"===a.showStyle?(e.openBlock(),e.createElementBlock("div",{key:1,class:"message-plugin-bubble-content",onLongpress:n[1]||(n[1]=t=>s(t,e.unref(i),!0)),onContextmenu:n[2]||(n[2]=e.withModifiers((t=>s(t,e.unref(i))),["prevent","right"])),onTouchstart:n[3]||(n[3]=t=>r(t,e.unref(i),"touchstart")),onTouchend:n[4]||(n[4]=t=>r(t,e.unref(i),"touchend")),onMouseover:n[5]||(n[5]=t=>r(t,e.unref(i),"touchend"))},[e.createVNode(Yf,{messageItem:e.unref(i),content:e.unref(i).getMessageContent(),blinkMessageIDList:a.blinkMessageIDList,classNameList:a.bubbleClassNameList,onResendMessage:n[0]||(n[0]=t=>{return n=e.unref(i),void o("resendMessage",n);var n})},{messageElement:e.withCtx((()=>[e.unref(nh)?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"messageBubble",{key:0},void 0,!0)])),default:e.withCtx((()=>[e.unref(nh)?e.renderSlot(t.$slots,"messageBubble",{key:0},void 0,!0):e.createCommentVNode("",!0)])),_:3},8,["messageItem","content","blinkMessageIDList","classNameList"])],32)):e.createCommentVNode("",!0)]))}}),cv=w(rv,[["__scopeId","data-v-b6903fb1"]]),lv=w(e.defineComponent({__name:"message-call-group",props:{message:{default:()=>({})},signalingInfo:{default:()=>({})},customContent:{default:()=>({})},blinkMessageIDList:{default:()=>[]}},setup(t){const n=t,a=Ip.TYPES,o=e.computed((()=>!!n.signalingInfo)),i=e.computed((()=>{var e;return null==(e=n.message)?void 0:e.conversationType})),s=e.computed((()=>{var e;return null==(e=n.customContent)?void 0:e.custom})),r=e.computed((()=>{var e,t;return!!(null==(e=n.message)?void 0:e.ID)&&(null==(t=n.blinkMessageIDList)?void 0:t.includes(n.message.ID))}));return(t,n)=>e.unref(o)&&e.unref(i)===e.unref(a).CONV_GROUP?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({"blink-text":e.unref(r)})},e.toDisplayString(e.unref(s)),3)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-37222a13"]]),uv={androidInfo:{sound:"private_ring.mp3",XiaoMiChannelID:"high_custom_1",OPPOChannelID:"tuikit"},apnsInfo:{sound:"01.caf",image:"https://web.sdk.qcloud.com/im/demo/latest/faviconnew.png"}},dv={title:"call",description:"you have a call",androidSound:"private_ring",androidOPPOChannelID:"tuikit",iOSSound:"01.caf"},mv={[Ip.TYPES.MSG_TEXT]:"[文本]",[Ip.TYPES.MSG_FACE]:"[动画表情]",[Ip.TYPES.MSG_IMAGE]:"[图片]",[Ip.TYPES.MSG_FILE]:"[文件]",[Ip.TYPES.MSG_AUDIO]:"[语音]",[Ip.TYPES.MSG_VIDEO]:"[视频]",[Ip.TYPES.MSG_LOCATION]:"[地理位置]",[Ip.TYPES.MSG_MERGER]:"[聊天记录]",[Ip.TYPES.MSG_CUSTOM]:"[自定义消息]"};var pv=(e=>(e.CHAT="chat",e.CALL="call",e))(pv||{});const hv=((o=class{constructor(){this.name="OfflinePushInfoManager",this.offlinePushInfo={},this.offlinePushInfo={[pv.CHAT]:uv,[pv.CALL]:dv}}static getInstance(){return o.instance||(o.instance=new o),o.instance}getOfflinePushInfo(e){return Object.values(pv).includes(e)?this.offlinePushInfo[e]:(g("error","at TUIKit/components/TUIChat/offlinePushInfoManager/offlinePushInfoManager.ts:32",`${this.name} getOfflinePushInfo scene: ${e} is invalid`),null)}genTitle(e,t){let n=null==e?void 0:e.getShowName();return e.type===Ip.TYPES.CONV_C2C&&(n=(null==t?void 0:t.nick)||(null==t?void 0:t.userID)),n}genDesc(e,t){let n="";return e===Ip.TYPES.MSG_TEXT&&(n=Kh(t.text)),e===Ip.TYPES.MSG_CUSTOM&&(n=t.description),n||Tp.t(`TUIChat.${mv[e]}`)}create(e){var t;const{conversation:n,messageType:a="",payload:o={}}=e||{},i=Sp.getData(ad.USER,"userProfile"),s={sender:n.type===Ip.TYPES.CONV_GROUP?null==(t=n.groupProfile)?void 0:t.groupID:null==i?void 0:i.userID,nickName:null==i?void 0:i.nick,chatType:n.type===Ip.TYPES.CONV_GROUP?2:1,version:1,action:1};return{title:this.genTitle(n,i),description:this.genDesc(a,o),extension:JSON.stringify({entity:s}),...this.offlinePushInfo[pv.CHAT]}}}).instance=null,o).getInstance(),gv=w(e.defineComponent({__name:"message-call-c2c",props:{message:{type:Object,default:()=>({})},signalingInfo:{type:Object,default:()=>({})},customContent:{type:Object,default:()=>({})}},setup(t){const n=t,a=e.ref(Ip.TYPES),o=e.computed((()=>null!=n.signalingInfo)),i=e.computed((()=>{var e,t;switch(null==(t=eg(null==(e=n.signalingInfo)?void 0:e.data))?void 0:t.call_type){case 1:return{type:1,icon:"/assets/call-voice.1ef6b7f7.svg"};case 2:return{type:2,icon:"/assets/call-video.21b022ad.svg"}}return{type:0,icon:""}})),s=e.computed((()=>{var e;return null==(e=n.message)?void 0:e.conversationType})),r=e.computed((()=>{var e;return null==(e=n.customContent)?void 0:e.custom})),c=()=>{var e,t,a,o;if(s.value===Ip.TYPES.CONV_C2C){const s="out"===(null==(e=n.message)?void 0:e.flow)?null==(t=n.message)?void 0:t.to:null==(a=n.message)?void 0:a.from;Yg.callService({serviceName:Mg.TUICalling.SERVICE.NAME,method:Mg.TUICalling.SERVICE.METHOD.START_CALL,params:{userIDList:[s],type:null==(o=null==i?void 0:i.value)?void 0:o.type,callParams:{offlinePushInfo:hv.getOfflinePushInfo(pv.CALL)}}})}};return(n,l)=>e.unref(o)&&e.unref(s)===e.unref(a).CONV_C2C?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["call",["call-"+e.unref(s),"out"===t.message.flow&&"call-reverse"]]),onClick:c},[e.createElementVNode("div",{class:e.normalizeClass(["icon","out"===t.message.flow&&2===e.unref(i).type&&"icon-reverse"])},[e.createVNode(ih,{file:e.unref(i).icon},null,8,["file"])],2),e.createElementVNode("span",{class:"call-content"},e.toDisplayString(e.unref(r)),1)],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-dd4801ae"]]);let fv;fv=3;const vv=m({__proto__:null,get vueVersion(){return 3}},[p]);var _v=function(e,t){return(_v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var yv,Ev=function(){return Ev=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ev.apply(this,arguments)};function Cv(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function kv(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function Iv(e,t,n){if(n||2===arguments.length)for(var a,o=0,i=t.length;o<i;o++)!a&&o in t||(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var Sv=[],Tv=function(){function e(e){this.active=!0,this.effects=[],this.cleanups=[],this.vm=e}return e.prototype.run=function(e){if(this.active)try{return this.on(),e()}finally{this.off()}},e.prototype.on=function(){this.active&&(Sv.push(this),yv=this)},e.prototype.off=function(){this.active&&(Sv.pop(),yv=Sv[Sv.length-1])},e.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach((function(e){return e.stop()})),this.cleanups.forEach((function(e){return e()})),this.active=!1)},e}(),Mv=function(e){function t(t){void 0===t&&(t=!1);var n,a=void 0;return function(e){var t=Av;Av=!1;try{e()}finally{Av=t}}((function(){a=a_(Vv())})),n=e.call(this,a)||this,t||function(e,t){var n;if((t=t||yv)&&t.active)return void t.effects.push(e);var a=null===(n=Uv())||void 0===n?void 0:n.proxy;a&&a.$on("hook:destroyed",(function(){return e.stop()}))}(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Tv);function Nv(){return yv}function wv(){var e,t;return(null===(e=Nv())||void 0===e?void 0:e.vm)||(null===(t=Uv())||void 0===t?void 0:t.proxy)}var Dv=void 0;try{var bv=require("vue");bv&&Ov(bv)?Dv=bv:bv&&"default"in bv&&Ov(bv.default)&&(Dv=bv.default)}catch(eI){}var Lv=null,Pv=null,Av=!0,Rv="__composition_api_installed__";function Ov(e){return e&&t_(e)&&"Vue"===e.name}function Vv(){return Lv}function Bv(){return Lv||Dv}function xv(e){if(Av){var t=Pv;null==t||t.scope.off(),null==(Pv=e)||Pv.scope.on()}}function Uv(){return Pv}var Gv=new WeakMap;function Fv(e){if(Gv.has(e))return Gv.get(e);var t={proxy:e,update:e.$forceUpdate,type:e.$options,uid:e._uid,emit:e.$emit.bind(e),parent:null,root:null};!function(e){if(!e.scope){var t=new Tv(e.proxy);e.scope=t,e.proxy.$on("hook:destroyed",(function(){return t.stop()}))}e.scope}(t);return["data","props","attrs","refs","vnode","slots"].forEach((function(n){qv(t,n,{get:function(){return e["$".concat(n)]}})})),qv(t,"isMounted",{get:function(){return e._isMounted}}),qv(t,"isUnmounted",{get:function(){return e._isDestroyed}}),qv(t,"isDeactivated",{get:function(){return e._inactive}}),qv(t,"emitted",{get:function(){return e._events}}),Gv.set(e,t),e.$parent&&(t.parent=Fv(e.$parent)),e.$root&&(t.root=Fv(e.$root)),t}function Yv(e){return"function"==typeof e&&/native code/.test(e.toString())}var Hv="undefined"!=typeof Symbol&&Yv(Symbol)&&"undefined"!=typeof Reflect&&Yv(Reflect.ownKeys),Zv=function(e){return e};function qv(e,t,n){var a=n.get,o=n.set;Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:a||Zv,set:o||Zv})}function jv(e,t,n,a){Object.defineProperty(e,t,{value:n,enumerable:!!a,writable:!0,configurable:!0})}function Jv(e,t){return Object.hasOwnProperty.call(e,t)}function Xv(e){return Array.isArray(e)}var Kv,zv=Object.prototype.toString,Wv=function(e){return zv.call(e)};function Qv(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)&&t<=4294967295}function $v(e){return null!==e&&"object"==typeof e}function e_(e){return"[object Object]"===function(e){return Object.prototype.toString.call(e)}(e)}function t_(e){return"function"==typeof e}function n_(e,t){return t=t||Uv()}function a_(e,t){void 0===t&&(t={});var n=e.config.silent;e.config.silent=!0;var a=new e(t);return e.config.silent=n,a}function o_(e,t){return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e.$scopedSlots[t])return e.$scopedSlots[t].apply(e,n)}}function i_(e){return Hv?Symbol.for(e):e}var s_=i_("composition-api.preFlushQueue"),r_=i_("composition-api.postFlushQueue"),c_="composition-api.refKey",l_=new WeakMap,u_=new WeakMap,d_=new WeakMap;function m_(e,t,n){var a=Vv().util;a.warn;var o=a.defineReactive,i=e.__ob__;function s(){i&&$v(n)&&!Jv(n,"__ob__")&&w_(n)}if(Xv(e)){if(Qv(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),s(),n;if("length"===t&&n!==e.length)return e.length=n,null==i||i.dep.notify(),n}return t in e&&!(t in Object.prototype)?(e[t]=n,s(),n):e._isVue||i&&i.vmCount?n:i?(o(i.value,t,n),M_(e,t,n),s(),i.dep.notify(),n):(e[t]=n,n)}var p_=!1;function h_(e){p_=e}var g_=function(){return function(e){qv(this,"value",{get:e.get,set:e.set})}}();function f_(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=new g_(e);n&&(a.effect=!0);var o=Object.seal(a);return t&&d_.set(o,!0),o}function v_(e){var t;if(__(e))return e;var n=L_(((t={})[c_]=e,t));return f_({get:function(){return n[c_]},set:function(e){return n[c_]=e}})}function __(e){return e instanceof g_}function y_(e){return __(e)?e.value:e}function E_(e){if(!e_(e))return e;var t={};for(var n in e)t[n]=C_(e,n);return t}function C_(e,t){t in e||m_(e,t,void 0);var n=e[t];return __(n)?n:f_({get:function(){return e[t]},set:function(n){return e[t]=n}})}var k_="__v_skip";function I_(e){var t;return Boolean(e&&Jv(e,"__ob__")&&"object"==typeof e.__ob__&&(null===(t=e.__ob__)||void 0===t?void 0:t[k_]))}function S_(e){var t;return Boolean(e&&Jv(e,"__ob__")&&"object"==typeof e.__ob__&&!(null===(t=e.__ob__)||void 0===t?void 0:t[k_]))}function T_(e){if(!(!e_(e)||I_(e)||Xv(e)||__(e)||(t=e,n=Vv(),n&&t instanceof n)||l_.has(e))){var t,n;l_.set(e,!0);for(var a=Object.keys(e),o=0;o<a.length;o++)M_(e,a[o])}}function M_(e,t,n){if("__ob__"!==t&&!I_(e[t])){var a,o,i=Object.getOwnPropertyDescriptor(e,t);if(i){if(!1===i.configurable)return;a=i.get,o=i.set,a&&!o||2!==arguments.length||(n=e[t])}T_(n),qv(e,t,{get:function(){var o=a?a.call(e):n;return t!==c_&&__(o)?o.value:o},set:function(i){a&&!o||(t!==c_&&__(n)&&!__(i)?n.value=i:o?(o.call(e,i),n=i):n=i,T_(i))}})}}function N_(e){var t,n=Bv();n.observable?t=n.observable(e):t=a_(n,{data:{$$state:e}})._data.$$state;return Jv(t,"__ob__")||w_(t),t}function w_(e,t){var n,a;if(void 0===t&&(t=new Set),!t.has(e)&&!Jv(e,"__ob__")&&Object.isExtensible(e)){jv(e,"__ob__",function(e){void 0===e&&(e={});return{value:e,dep:{notify:Zv,depend:Zv,addSub:Zv,removeSub:Zv}}}(e)),t.add(e);try{for(var o=Cv(Object.keys(e)),i=o.next();!i.done;i=o.next()){var s=e[i.value];(e_(s)||Xv(s))&&!I_(s)&&Object.isExtensible(s)&&w_(s,t)}}catch(r){n={error:r}}finally{try{i&&!i.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}}}function D_(){return N_({}).__ob__}function b_(e){var t,n;if(!$v(e))return e;if(!e_(e)&&!Xv(e)||I_(e)||!Object.isExtensible(e))return e;var a=N_(Xv(e)?[]:{}),o=a.__ob__,i=function(t){var n,i,s=e[t],r=Object.getOwnPropertyDescriptor(e,t);if(r){if(!1===r.configurable)return"continue";n=r.get,i=r.set}qv(a,t,{get:function(){var e;return null===(e=o.dep)||void 0===e||e.depend(),s},set:function(t){var a;n&&!i||(p_||s!==t)&&(i?i.call(e,t):s=t,null===(a=o.dep)||void 0===a||a.notify())}})};try{for(var s=Cv(Object.keys(e)),r=s.next();!r.done;r=s.next()){i(r.value)}}catch(c){t={error:c}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a}function L_(e){if(!$v(e))return e;if(!e_(e)&&!Xv(e)||I_(e)||!Object.isExtensible(e))return e;var t=N_(e);return T_(t),t}function P_(e){return function(t,n){var a,o=n_("on".concat((a=e)[0].toUpperCase()+a.slice(1)),n);return o&&function(e,t,n,a){var o=t.proxy.$options,i=e.config.optionMergeStrategies[n],s=function(e,t){return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var o=Uv();xv(e);try{return t.apply(void 0,Iv([],kv(n),!1))}finally{xv(o)}}}(t,a);return o[n]=i(o[n],s),s}(Vv(),o,e,t)}}var A_,R_=P_("beforeMount"),O_=P_("mounted"),V_=P_("beforeUpdate"),B_=P_("updated"),x_=P_("beforeDestroy"),U_=P_("destroyed"),G_=P_("errorCaptured"),F_=P_("activated"),Y_=P_("deactivated"),H_=P_("serverPrefetch");function Z_(){J_(this,s_)}function q_(){J_(this,r_)}function j_(){var e=wv();return e?function(e){return void 0!==e[s_]}(e)||function(e){e[s_]=[],e[r_]=[],e.$on("hook:beforeUpdate",Z_),e.$on("hook:updated",q_)}(e):(A_||(A_=a_(Vv())),e=A_),e}function J_(e,t){for(var n=e[t],a=0;a<n.length;a++)n[a]();n.length=0}function X_(e,t,n){var a=function(){e.$nextTick((function(){e[s_].length&&J_(e,s_),e[r_].length&&J_(e,r_)}))};switch(n){case"pre":a(),e[s_].push(t);break;case"post":a(),e[r_].push(t);break;default:!function(e,t){if(!e)throw new Error("[vue-composition-api] ".concat(t))}(!1,'flush must be one of ["post", "pre", "sync"], but got '.concat(n))}}function K_(e,t){var n=e.teardown;e.teardown=function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];n.apply(e,a),t()}}function z_(e,t,n,a){var o,i,s=a.flush,r="sync"===s,c=function(e){i=function(){try{e()}catch(t){!function(e){if("undefined"==typeof window||"undefined"==typeof console)throw e;g("error","at node_modules/@vue/composition-api/dist/vue-composition-api.mjs:430",e)}(t)}}},l=function(){i&&(i(),i=null)},u=function(t){return r||e===A_?t:function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return X_(e,(function(){t.apply(void 0,Iv([],kv(n),!1))}),s)}};if(null===n){var d=!1,m=function(e,t,n,a){var o=e._watchers.length;return e.$watch(t,n,{immediate:a.immediateInvokeCallback,deep:a.deep,lazy:a.noRun,sync:a.sync,before:a.before}),e._watchers[o]}(e,(function(){if(!d)try{d=!0,t(c)}finally{d=!1}}),Zv,{deep:a.deep||!1,sync:r,before:l});K_(m,l),m.lazy=!1;var p=m.get.bind(m);return m.get=u(p),function(){m.teardown()}}var h,f=a.deep,v=!1;if(__(t)?h=function(){return t.value}:S_(t)?(h=function(){return t},f=!0):Xv(t)?(v=!0,h=function(){return t.map((function(e){return __(e)?e.value:S_(e)?Q_(e):t_(e)?e():Zv}))}):h=t_(t)?t:Zv,f){var _=h;h=function(){return Q_(_())}}var y=function(e,t){if(f||!v||!e.every((function(e,n){return a=e,o=t[n],a===o?0!==a||1/a==1/o:a!=a&&o!=o;var a,o})))return l(),n(e,t,c)},E=u(y);if(a.immediate){var C=E,k=function(e,t){return k=C,y(e,Xv(e)?[]:t)};E=function(e,t){return k(e,t)}}var I=e.$watch(h,E,{immediate:a.immediate,deep:f,sync:r}),S=e._watchers[e._watchers.length-1];return S_(S.value)&&(null===(o=S.value.__ob__)||void 0===o?void 0:o.dep)&&f&&S.value.__ob__.dep.addSub({update:function(){S.run()}}),K_(S,l),function(){I()}}function W_(e,t){var n=function(e){return Ev({flush:"pre"},e)}(t);return z_(j_(),e,null,n)}function Q_(e,t){if(void 0===t&&(t=new Set),!$v(e)||t.has(e)||u_.has(e))return e;if(t.add(e),__(e))Q_(e.value,t);else if(Xv(e))for(var n=0;n<e.length;n++)Q_(e[n],t);else if("[object Set]"===Wv(e)||function(e){return"[object Map]"===Wv(e)}(e))e.forEach((function(e){Q_(e,t)}));else if(e_(e))for(var a in e)Q_(e[a],t);return e}var $_={};var ey={},ty=function(e){var t;void 0===e&&(e="$style");var n=Uv();if(!n)return ey;var a=null===(t=n.proxy)||void 0===t?void 0:t[e];return a||ey},ny=ty;var ay;function oy(){return Uv().setupContext}var iy={set:function(e,t,n){(e.__composition_api_state__=e.__composition_api_state__||{})[t]=n},get:function(e,t){return(e.__composition_api_state__||{})[t]}};function sy(e){var t=iy.get(e,"rawBindings")||{};if(t&&Object.keys(t).length){for(var n=e.$refs,a=iy.get(e,"refs")||[],o=0;o<a.length;o++){var i=t[c=a[o]];!n[c]&&i&&__(i)&&(i.value=null)}var s=Object.keys(n),r=[];for(o=0;o<s.length;o++){var c;i=t[c=s[o]];n[c]&&i&&__(i)&&(i.value=n[c],r.push(c))}iy.set(e,"refs",r)}}function ry(e){for(var t=[e._vnode];t.length;){var n=t.pop();if(n&&(n.context&&sy(n.context),n.children))for(var a=0;a<n.children.length;++a)t.push(n.children[a])}}function cy(e,t){var n,a;if(e){var o=iy.get(e,"attrBindings");if(o||t){if(!o){var i=L_({});o={ctx:t,data:i},iy.set(e,"attrBindings",o),qv(t,"attrs",{get:function(){return null==o?void 0:o.data},set:function(){}})}var s=e.$attrs,r=function(t){Jv(o.data,t)||qv(o.data,t,{get:function(){return e.$attrs[t]}})};try{for(var c=Cv(Object.keys(s)),l=c.next();!l.done;l=c.next()){r(l.value)}}catch(u){n={error:u}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(n)throw n.error}}}}}function ly(e,t){var n=e.$options._parentVnode;if(n){for(var a=iy.get(e,"slots")||[],o=function(e,t){var n;if(e){if(e._normalized)return e._normalized;for(var a in n={},e)e[a]&&"$"!==a[0]&&(n[a]=!0)}else n={};for(var a in t)a in n||(n[a]=!0);return n}(n.data.scopedSlots,e.$slots),i=0;i<a.length;i++){o[r=a[i]]||delete t[r]}var s=Object.keys(o);for(i=0;i<s.length;i++){var r;t[r=s[i]]||(t[r]=o_(e,r))}iy.set(e,"slots",s)}}function uy(e,t,n){var a=Uv();xv(e);try{return t(e)}catch(o){if(!n)throw o;n(o)}finally{xv(a)}}function dy(e){function t(e,n){if(void 0===n&&(n=new Set),!n.has(e)&&e_(e)&&!__(e)&&!S_(e)&&!I_(e)){var a=Vv().util.defineReactive;Object.keys(e).forEach((function(o){var i=e[o];a(e,o,i),i&&(n.add(i),t(i,n))}))}}function n(e,t){return void 0===t&&(t=new Map),t.has(e)?t.get(e):(t.set(e,!1),Xv(e)&&S_(e)?(t.set(e,!0),!0):!(!e_(e)||I_(e)||__(e))&&Object.keys(e).some((function(a){return n(e[a],t)})))}e.mixin({beforeCreate:function(){var e=this,a=e.$options,o=a.setup,i=a.render;i&&(a.render=function(){for(var t=this,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return uy(Fv(e),(function(){return i.apply(t,n)}))});if(!o)return;if(!t_(o))return;var s=a.data;a.data=function(){return function(e,a){void 0===a&&(a={});var o,i=e.$options.setup,s=function(e){var t={slots:{}},n=["emit"];return["root","parent","refs","listeners","isServer","ssrContext"].forEach((function(n){var a="$".concat(n);qv(t,n,{get:function(){return e[a]},set:function(){}})})),cy(e,t),n.forEach((function(n){var a="$".concat(n);qv(t,n,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e[a].apply(e,t)}}})})),t}(e),r=Fv(e);if(r.setupContext=s,jv(a,"__ob__",D_()),ly(e,s.slots),uy(r,(function(){o=i(a,s)})),!o)return;if(t_(o)){var c=o;return void(e.$options.render=function(){return ly(e,s.slots),uy(r,(function(){return c()}))})}if($v(o)){S_(o)&&(o=E_(o)),iy.set(e,"rawBindings",o);var l=o;Object.keys(l).forEach((function(a){var o=l[a];if(!__(o))if(S_(o))Xv(o)&&(o=v_(o));else if(t_(o)){var i=o;o=o.bind(e),Object.keys(i).forEach((function(e){o[e]=i[e]}))}else $v(o)?n(o)&&t(o):o=v_(o);!function(e,t,n){var a=e.$options.props;t in e||a&&Jv(a,t)||(__(n)?qv(e,t,{get:function(){return n.value},set:function(e){n.value=e}}):qv(e,t,{get:function(){return S_(n)&&n.__ob__.dep.depend(),n},set:function(e){n=e}}))}(e,a,o)}))}}(e,e.$props),t_(s)?s.call(e,e):s||{}}},mounted:function(){ry(this)},beforeUpdate:function(){cy(this)},updated:function(){ry(this)}})}function py(e,t){if(!e)return t;if(!t)return e;for(var n,a,o,i=Hv?Reflect.ownKeys(e):Object.keys(e),s=0;s<i.length;s++)"__ob__"!==(n=i[s])&&(a=t[n],o=e[n],Jv(t,n)?a!==o&&e_(a)&&!__(a)&&e_(o)&&!__(o)&&py(o,a):t[n]=o);return t}function hy(e){(function(e){return Lv&&Jv(e,Rv)})(e)||(e.config.optionMergeStrategies.setup=function(e,t){return function(n,a){return py(t_(e)?e(n,a)||{}:void 0,t_(t)?t(n,a)||{}:void 0)}},function(e){Lv=e,Object.defineProperty(e,Rv,{configurable:!0,writable:!0,value:!0})}(e),dy(e))}var gy={install:function(e){return hy(e)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(gy);const fy=Object.freeze(Object.defineProperty({__proto__:null,EffectScope:Mv,computed:function(e){var t,n,a,o,i=wv();if(t_(e)?t=e:(t=e.get,n=e.set),i&&!i.$isServer){var s,r=function(){if(!Kv){var e=a_(Vv(),{computed:{value:function(){return 0}}}),t=e._computedWatchers.value.constructor,n=e._data.__ob__.dep.constructor;Kv={Watcher:t,Dep:n},e.$destroy()}return Kv}(),c=r.Watcher,l=r.Dep;o=function(){return s||(s=new c(i,t,Zv,{lazy:!0})),s.dirty&&s.evaluate(),l.target&&s.depend(),s.value},a=function(e){n&&n(e)}}else{var u=a_(Vv(),{computed:{$$state:{get:t,set:n}}});i&&i.$on("hook:destroyed",(function(){return u.$destroy()})),o=function(){return u.$$state},a=function(e){u.$$state=e}}return f_({get:o,set:a},!n,!0)},createApp:function(e,t){void 0===t&&(t=void 0);var n=Vv(),a=void 0,o={},i={config:n.config,use:n.use.bind(n),mixin:n.mixin.bind(n),component:n.component.bind(n),provide:function(e,t){return o[e]=t,this},directive:function(e,t){return t?(n.directive(e,t),i):n.directive(e)},mount:function(i,s){return a||((a=new n(Ev(Ev({propsData:t},e),{provide:Ev(Ev({},o),e.provide)}))).$mount(i,s),a)},unmount:function(){a&&(a.$destroy(),a=void 0)}};return i},createRef:f_,customRef:function(e){var t=v_(0);return f_(e((function(){t.value}),(function(){++t.value})))},default:gy,defineAsyncComponent:function(e){t_(e)&&(e={loader:e});var t=e.loader,n=e.loadingComponent,a=e.errorComponent,o=e.delay,i=void 0===o?200:o,s=e.timeout;e.suspensible;var r=e.onError,c=null,l=0,u=function(){var e;return c||(e=c=t().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),r)return new Promise((function(t,n){r(e,(function(){return t((l++,c=null,u()))}),(function(){return n(e)}),l+1)}));throw e})).then((function(t){return e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t)})))};return function(){return{component:u(),delay:i,timeout:s,error:a,loading:n}}},defineComponent:function(e){return e},del:function(e,t){if(Vv().util.warn,Xv(e)&&Qv(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||Jv(e,t)&&(delete e[t],n&&n.dep.notify())}},effectScope:function(e){return new Mv(e)},getCurrentInstance:Uv,getCurrentScope:Nv,h:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=(null==this?void 0:this.proxy)||(null===(e=Uv())||void 0===e?void 0:e.proxy);return a?a.$createElement.apply(a,t):(ay||(ay=a_(Vv()).$createElement),ay.apply(ay,t))},inject:function(e,t,n){var a;void 0===n&&(n=!1);var o=null===(a=Uv())||void 0===a?void 0:a.proxy;if(o){if(!e)return t;var i=function(e,t){for(var n=t;n;){if(n._provided&&Jv(n._provided,e))return n._provided[e];n=n.$parent}return $_}(e,o);return i!==$_?i:arguments.length>1?n&&t_(t)?t():t:void 0}},isRaw:I_,isReactive:S_,isReadonly:function(e){return d_.has(e)},isRef:__,markRaw:function(e){if(!e_(e)&&!Xv(e)||!Object.isExtensible(e))return e;var t=D_();return t[k_]=!0,jv(e,"__ob__",t),u_.set(e,!0),e},nextTick:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null===(e=Vv())||void 0===e?void 0:e.nextTick.apply(this,t)},onActivated:F_,onBeforeMount:R_,onBeforeUnmount:x_,onBeforeUpdate:V_,onDeactivated:Y_,onErrorCaptured:G_,onMounted:O_,onScopeDispose:function(e){yv&&yv.cleanups.push(e)},onServerPrefetch:H_,onUnmounted:U_,onUpdated:B_,provide:function(e,t){var n,a=null===(n=n_())||void 0===n?void 0:n.proxy;if(a){if(!a._provided){var o={};qv(a,"_provided",{get:function(){return o},set:function(e){return Object.assign(o,e)}})}a._provided[e]=t}},proxyRefs:function(e){var t,n,a;if(S_(e))return e;var o=L_(((t={})[c_]=e,t));jv(o,c_,o[c_],!1);var i=function(e){qv(o,e,{get:function(){return __(o[c_][e])?o[c_][e].value:o[c_][e]},set:function(t){if(__(o[c_][e]))return o[c_][e].value=y_(t);o[c_][e]=y_(t)}})};try{for(var s=Cv(Object.keys(e)),r=s.next();!r.done;r=s.next()){i(r.value)}}catch(c){n={error:c}}finally{try{r&&!r.done&&(a=s.return)&&a.call(s)}finally{if(n)throw n.error}}return o},reactive:L_,readonly:function(e){return d_.set(e,!0),e},ref:v_,set:m_,shallowReactive:b_,shallowReadonly:function(e){var t,n;if(!$v(e))return e;if(!e_(e)&&!Xv(e)||!Object.isExtensible(e)&&!__(e))return e;var a=__(e)?new g_({}):S_(e)?N_({}):{},o=L_({}).__ob__,i=function(t){var n,i=e[t],s=Object.getOwnPropertyDescriptor(e,t);if(s){if(!1===s.configurable&&!__(e))return"continue";n=s.get}qv(a,t,{get:function(){var t=n?n.call(e):i;return o.dep.depend(),t},set:function(e){}})};try{for(var s=Cv(Object.keys(e)),r=s.next();!r.done;r=s.next()){i(r.value)}}catch(c){t={error:c}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return d_.set(a,!0),a},shallowRef:function(e){var t;if(__(e))return e;var n=b_(((t={})[c_]=e,t));return f_({get:function(){return n[c_]},set:function(e){return n[c_]=e}})},toRaw:function(e){var t;return I_(e)||!Object.isExtensible(e)?e:(null===(t=null==e?void 0:e.__ob__)||void 0===t?void 0:t.value)||e},toRef:C_,toRefs:E_,triggerRef:function(e){__(e)&&(h_(!0),e.value=e.value,h_(!1))},unref:y_,useAttrs:function(){return oy().attrs},useCSSModule:ny,useCssModule:ty,useSlots:function(){return oy().slots},version:"1.7.2",warn:function(e){var t,n,a,o;n=e,a=null===(t=Uv())||void 0===t?void 0:t.proxy,(o=Bv())&&o.util?o.util.warn(n,a):g("warn","at node_modules/@vue/composition-api/dist/vue-composition-api.mjs:421","[vue-composition-api] ".concat(n))},watch:function(e,t,n){var a=null;t_(t)?a=t:(n=t,a=null);var o=function(e){return Ev({immediate:!1,deep:!1,flush:"pre"},e)}(n);return z_(j_(),e,a,o)},watchEffect:W_,watchPostEffect:function(e){return W_(e,{flush:"post"})},watchSyncEffect:function(e){return W_(e,{flush:"sync"})}},Symbol.toStringTag,{value:"Module"}));let vy,_y={default:{}};_y=p||_y;let yy=(e,t)=>({}),Ey=(e,t)=>{},Cy=()=>{},ky=()=>{},Iy=e=>e;try{(null==(i=null==_y?void 0:_y.default)?void 0:i.version)&&(null==(r=null==(s=null==_y?void 0:_y.default)?void 0:s.version)?void 0:r.startsWith("2.7."))?vy=2.7:(null==(c=null==_y?void 0:_y.default)?void 0:c.version)&&(null==(u=null==(l=null==_y?void 0:_y.default)?void 0:l.version)?void 0:u.startsWith("2."))?vy=2:(vy=3,yy=null==_y?void 0:_y.createVNode,Ey=null==_y?void 0:_y.render,Cy=null==_y?void 0:_y.defineProps,ky=null==_y?void 0:_y.defineEmits,Iy=null==_y?void 0:_y.withDefaults)}catch(tI){vy=3,yy=null==_y?void 0:_y.createVNode,Ey=null==_y?void 0:_y.render,Cy=null==_y?void 0:_y.defineProps,ky=null==_y?void 0:_y.defineEmits,Iy=null==_y?void 0:_y.withDefaults}g("warn","at TUIKit/tui-customer-service-plugin/adapter-vue-web.ts:64",`[adapter-vue]: vue version is ${vy}`);let Sy=_y;2===vy&&(Sy=fy);const Ty=Object.freeze(Object.defineProperty({__proto__:null,get createVNode(){return yy},get defineEmits(){return ky},get defineProps(){return Cy},get render(){return Ey},get vue(){return Sy},get vueVersion(){return vy},get withDefaults(){return Iy}},Symbol.toStringTag,{value:"Module"}));let My=vv;window&&!window.uni&&(My={...Ty,...Sy});const Ny=My,wy="/assets/iconRight.ab6f6855.svg";jp(),jp(),jp();const Dy="app"===jp();const by=w({props:{src:{type:String,default:""},width:{type:String,default:"16px"},height:{type:String,default:"16px"}},setup:e=>({props:e,isApp:Dy})},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("div",{class:"common-icon-container"},[o.isApp?(e.openBlock(),e.createElementBlock("image",{key:0,class:"common-icon",src:o.props.src,style:e.normalizeStyle({width:o.props.width,height:o.props.height})},null,12,["src"])):(e.openBlock(),e.createElementBlock("img",{key:1,class:"common-icon",src:o.props.src,style:e.normalizeStyle({width:o.props.width,height:o.props.height})},null,12,["src"]))])}],["__scopeId","data-v-6636ca50"]]),{computed:Ly}=Ny;const Py=w({components:{Icon:by},props:{payload:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:(e,{emit:t})=>({content:Ly((()=>{var t;return(null==(t=null==e?void 0:e.payload)?void 0:t.content)||{header:void 0,items:[]}})),handleContentListItemClick:e=>{t("sendMessage",{text:e.content})},iconRight:wy})},[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",{class:"branch-card"},[o.content.header||o.content.title?(e.openBlock(),e.createElementBlock("p",{key:0,class:"branch-title"},e.toDisplayString(o.content.header||o.content.title),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.content.items,((t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"branch-item",style:e.normalizeStyle({borderWidth:o.content.header?"1px 0 0px 0":"0px 0 1px 0"}),onClick:e=>o.handleContentListItemClick(t)},[e.createTextVNode(e.toDisplayString(t.content)+" ",1),e.createVNode(r,{src:o.iconRight},null,8,["src"])],12,["onClick"])))),128))])}],["__scopeId","data-v-c13a43f7"]]);const Ay=w({props:{title:{type:String,default:""},list:{type:Array,default:()=>[]}},emits:["input-click"],setup:(e,{emit:t})=>({props:e,listItemClick:e=>{t("input-click",e)}})},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("div",{class:"form-branch-container"},[o.props.title?(e.openBlock(),e.createElementBlock("p",{key:0,class:"card-title"},e.toDisplayString(o.props.title),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.props.list,((t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"form-branch-item",onClick:e=>o.listItemClick(t)},e.toDisplayString(t.content),9,["onClick"])))),128))])}],["__scopeId","data-v-c67ccd40"]]),{ref:Ry}=Ny;const Oy=w({props:{title:{type:String,default:""}},emits:["input-submit"],setup(e,{emit:t}){const n=Ry(!1),a=Ry("");return{disabled:n,text:a,listItemClick:()=>{n.value=!0,t("input-submit",a.value)},props:e}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("div",{class:"form-input-container"},[e.createElementVNode("div",{class:"card-title"},e.toDisplayString(o.props.title),1),e.createElementVNode("div",{class:"form-input-box"},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>o.text=e),class:"form-input"},null,512),[[e.vModelText,o.text]]),e.createElementVNode("button",{class:"form-button",disabled:o.disabled,onClick:n[1]||(n[1]=(...e)=>o.listItemClick&&o.listItemClick(...e))},null,8,["disabled"])])])}],["__scopeId","data-v-9653c2f1"]]),{computed:Vy}=Ny;const By=w({components:{FormBranch:Ay,FormInput:Oy},props:{payload:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:(e,{emit:t})=>({content:Vy((()=>{var t;return(null==(t=e.payload)?void 0:t.content)||{type:0,header:"",items:[]}})),handleContentListItemClick:e=>{t("sendMessage",{text:e.content})},handleFormSaveInputSubmit:e=>{t("sendMessage",{text:e})}})},[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("FormBranch"),c=e.resolveComponent("FormInput");return 1===o.content.type?(e.openBlock(),e.createElementBlock("div",{key:0,class:"message-form"},[e.createVNode(r,{title:o.content.header,list:o.content.items,onInputClick:o.handleContentListItemClick},null,8,["title","list","onInputClick"])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"message-form"},[e.createVNode(c,{title:o.content.header,onInputSubmit:o.handleFormSaveInputSubmit},null,8,["title","onInputSubmit"])]))}],["__scopeId","data-v-b171d1e6"]]),{reactive:xy,toRefs:Uy}=Ny;const Gy=w({components:{Icon:by},props:{payload:{type:Object,default:()=>({content:{title:"",items:[]}})}},emits:["sendMessage"],setup(e,{emit:t}){var n,a,o,i,s,r;const c=xy({title:(null==(a=null==(n=e.payload)?void 0:n.content)?void 0:a.title)||"",list:(null==(i=null==(o=e.payload)?void 0:o.content)?void 0:i.items)||[],showList:((null==(r=null==(s=e.payload)?void 0:s.content)?void 0:r.items)||[]).slice(0,5),pageNumber:1});return{...Uy(c),handleContentListItemClick:e=>{t("sendMessage",{text:e.content})},imRobotGuess:"/assets/imRobotGuess.06ae9855.svg",refresh:"/assets/refresh.cddffc91.svg",iconRight:wy,changeBranchList:()=>{var e,t;5*c.pageNumber>=(null==(e=c.list)?void 0:e.length)&&(c.pageNumber=0),c.showList=null==(t=c.list)?void 0:t.slice(5*c.pageNumber,5*c.pageNumber+5),c.pageNumber+=1}}}},[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",{class:"welcome-card"},[e.createElementVNode("div",{class:"welcome-title"},[e.createElementVNode("div",{class:"welcome-title-left-container"},[e.createVNode(r,{src:o.imRobotGuess},null,8,["src"]),t.title?(e.openBlock(),e.createElementBlock("p",{key:0,class:"card-title"},e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"change-wrapper",onClick:n[0]||(n[0]=e=>o.changeBranchList())},[e.createVNode(r,{src:o.refresh},null,8,["src"])])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.showList,((t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"welcome-item",onClick:e=>o.handleContentListItemClick(t)},[e.createElementVNode("div",null,e.toDisplayString(t.content),1),e.createVNode(r,{src:o.iconRight},null,8,["src"])],8,["onClick"])))),128))])}],["__scopeId","data-v-5da0aa47"]]);const Fy=w({props:{payload:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:e=>({props:e,isApp:Dy,jumpProductCard:()=>{window?window.open(e.payload.content.url,"_blank"):uni&&uni.navigateTo({url:`/TUIKit/components/TUIChat/web-view?url=${e.payload.content.url}`})}})},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("div",{class:"message-product-card",onClick:n[0]||(n[0]=(...e)=>o.jumpProductCard&&o.jumpProductCard(...e))},[o.isApp?(e.openBlock(),e.createElementBlock("image",{key:0,class:"product-img",src:o.props.payload.content.pic},null,8,["src"])):(e.openBlock(),e.createElementBlock("img",{key:1,class:"product-img",src:o.props.payload.content.pic},null,8,["src"])),e.createElementVNode("div",{class:"product-card-information"},[e.createElementVNode("div",{class:"product-card-title"},e.toDisplayString(o.props.payload.content.header),1),e.createElementVNode("div",{class:"product-card-description"},e.toDisplayString(o.props.payload.content.desc),1)])])}],["__scopeId","data-v-623e88cc"]]);function Yy(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Hy={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Zy=/[&<>"']/,qy=/[&<>"']/g,jy=/[<>"']|&(?!#?\w+;)/,Jy=/[<>"']|&(?!#?\w+;)/g,Xy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ky=e=>Xy[e];function zy(e,t){if(t){if(Zy.test(e))return e.replace(qy,Ky)}else if(jy.test(e))return e.replace(Jy,Ky);return e}const Wy=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Qy(e){return e.replace(Wy,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const $y=/(^|[^\[])\^/g;function eE(e,t){e=e.source||e,t=t||"";const n={replace:(t,a)=>(a=(a=a.source||a).replace($y,"$1"),e=e.replace(t,a),n),getRegex:()=>new RegExp(e,t)};return n}const tE=/[^\w:]/g,nE=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function aE(e,t,n){if(e){let e;try{e=decodeURIComponent(Qy(n)).replace(tE,"").toLowerCase()}catch(zo){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!nE.test(n)&&(n=function(e,t){oE[" "+e]||(iE.test(e)?oE[" "+e]=e+"/":oE[" "+e]=dE(e,"/",!0));e=oE[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(sE,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(rE,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(zo){return null}return n}const oE={},iE=/^[^:]+:\/*[^/]*$/,sE=/^([^:]+:)[\s\S]*$/,rE=/^([^:]+:\/*[^/]*)[\s\S]*$/;const cE={exec:function(){}};function lE(e){let t,n,a=1;for(;a<arguments.length;a++)for(n in t=arguments[a],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function uE(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let a=!1,o=t;for(;--o>=0&&"\\"===n[o];)a=!a;return a?"|":" |"})).split(/ \|/);let a=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(/\\\|/g,"|");return n}function dE(e,t,n){const a=e.length;if(0===a)return"";let o=0;for(;o<a;){const i=e.charAt(a-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.substr(0,a-o)}function mE(e){e&&e.sanitize&&!e.silent&&g("warn","at node_modules/marked/lib/marked.esm.js:272","marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function pE(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function hE(e,t,n,a){const o=t.href,i=t.title?zy(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){a.state.inLink=!0;const e={type:"link",raw:n,href:o,title:i,text:s,tokens:a.inlineTokens(s,[])};return a.state.inLink=!1,e}return{type:"image",raw:n,href:o,title:i,text:zy(s)}}class gE{constructor(e){this.options=e||Hy}space(e){const t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:dE(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const a=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=a.length?e.slice(a.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=dE(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,a,o,i,s,r,c,l,u,d,m=t[1].trim();const p=m.length>1,h={type:"list",raw:"",ordered:p,start:p?+m.slice(0,-1):"",loose:!1,items:[]};m=p?`\\d{1,9}\\${m.slice(-1)}`:`\\${m}`,this.options.pedantic&&(m=p?m:"[*+-]");const g=new RegExp(`^( {0,3}${m})((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))`);for(;e&&!this.rules.block.hr.test(e)&&(t=g.exec(e));){u=t[2].split("\n"),this.options.pedantic?(i=2,d=u[0].trimLeft()):(i=t[2].search(/[^ ]/),i=t[1].length+(i>4?1:i),d=u[0].slice(i-t[1].length)),r=!1,n=t[0],!u[0]&&/^ *$/.test(u[1])&&(n=t[1]+u.slice(0,2).join("\n")+"\n",h.loose=!0,u=[]);const m=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(s=1;s<u.length;s++){if(l=u[s],this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),m.test(l)){n=t[1]+u.slice(0,s).join("\n")+"\n";break}if(r){if(!(l.search(/[^ ]/)>=i)&&l.trim()){n=t[1]+u.slice(0,s).join("\n")+"\n";break}d+="\n"+l.slice(i)}else l.trim()||(r=!0),l.search(/[^ ]/)>=i?d+="\n"+l.slice(i):d+="\n"+l}h.loose||(c?h.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(a=/^\[[ xX]\] /.exec(d),a&&(o="[ ] "!==a[0],d=d.replace(/^\[[ xX]\] +/,""))),h.items.push({type:"list_item",raw:n,task:!!a,checked:o,loose:!1,text:d}),h.raw+=n,e=e.slice(n.length)}h.items[h.items.length-1].raw=n.trimRight(),h.items[h.items.length-1].text=d.trimRight(),h.raw=h.raw.trimRight();const f=h.items.length;for(s=0;s<f;s++)this.lexer.state.top=!1,h.items[s].tokens=this.lexer.blockTokens(h.items[s].text,[]),h.items[s].tokens.some((e=>"space"===e.type))&&(h.loose=!0,h.items[s].loose=!0);return h}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):zy(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:uE(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,a,o,i,s=e.align.length;for(n=0;n<s;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(s=e.rows.length,n=0;n<s;n++)e.rows[n]=uE(e.rows[n],e.header.length).map((e=>({text:e})));for(s=e.header.length,a=0;a<s;a++)e.header[a].tokens=[],this.lexer.inlineTokens(e.header[a].text,e.header[a].tokens);for(s=e.rows.length,a=0;a<s;a++)for(i=e.rows[a],o=0;o<i.length;o++)i[o].tokens=[],this.lexer.inlineTokens(i[o].text,i[o].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:zy(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):zy(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=dE(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let a=0,o=0;for(;o<n;o++)if("\\"===e[o])o++;else if(e[o]===t[0])a++;else if(e[o]===t[1]&&(a--,a<0))return o;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],a="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),hE(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return hE(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrong.lDelim.exec(e);if(!a)return;if(a[3]&&n.match(/[\p{L}\p{N}]/u))return;const o=a[1]||a[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=a[0].length-1;let o,i,s=n,r=0;const c="*"===a[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);null!=(a=c.exec(t));){if(o=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!o)continue;if(i=o.length,a[3]||a[4]){s+=i;continue}if((a[5]||a[6])&&n%3&&!((n+i)%3)){r+=i;continue}if(s-=i,s>0)continue;if(i=Math.min(i,i+s+r),Math.min(n,i)%2){const t=e.slice(1,n+a.index+i);return{type:"em",raw:e.slice(0,n+a.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+a.index+i-1);return{type:"strong",raw:e.slice(0,n+a.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),a=/^ /.test(e)&&/ $/.test(e);return n&&a&&(e=e.substring(1,e.length-1)),e=zy(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,a;return"@"===n[2]?(e=zy(this.options.mangle?t(n[1]):n[1]),a="mailto:"+e):(e=zy(n[1]),a=e),{type:"link",raw:n[0],text:e,href:a,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,a;if("@"===n[2])e=zy(this.options.mangle?t(n[0]):n[0]),a="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=zy(n[0]),a="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:a,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):zy(n[0]):n[0]:zy(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const fE={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:cE,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};fE.def=eE(fE.def).replace("label",fE._label).replace("title",fE._title).getRegex(),fE.bullet=/(?:[*+-]|\d{1,9}[.)])/,fE.listItemStart=eE(/^( *)(bull) */).replace("bull",fE.bullet).getRegex(),fE.list=eE(fE.list).replace(/bull/g,fE.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+fE.def.source+")").getRegex(),fE._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",fE._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,fE.html=eE(fE.html,"i").replace("comment",fE._comment).replace("tag",fE._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fE.paragraph=eE(fE._paragraph).replace("hr",fE.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fE._tag).getRegex(),fE.blockquote=eE(fE.blockquote).replace("paragraph",fE.paragraph).getRegex(),fE.normal=lE({},fE),fE.gfm=lE({},fE.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),fE.gfm.table=eE(fE.gfm.table).replace("hr",fE.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fE._tag).getRegex(),fE.pedantic=lE({},fE.normal,{html:eE("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",fE._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:cE,paragraph:eE(fE.normal._paragraph).replace("hr",fE.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",fE.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const vE={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:cE,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:cE,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function _E(e){return e.replace(/---/g,"—").replace(/--/g,"").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1").replace(/'/g,"").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function yE(e){let t,n,a="";const o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),a+="&#"+n+";";return a}vE._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",vE.punctuation=eE(vE.punctuation).replace(/punctuation/g,vE._punctuation).getRegex(),vE.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,vE.escapedEmSt=/\\\*|\\_/g,vE._comment=eE(fE._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),vE.emStrong.lDelim=eE(vE.emStrong.lDelim).replace(/punct/g,vE._punctuation).getRegex(),vE.emStrong.rDelimAst=eE(vE.emStrong.rDelimAst,"g").replace(/punct/g,vE._punctuation).getRegex(),vE.emStrong.rDelimUnd=eE(vE.emStrong.rDelimUnd,"g").replace(/punct/g,vE._punctuation).getRegex(),vE._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,vE._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,vE._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,vE.autolink=eE(vE.autolink).replace("scheme",vE._scheme).replace("email",vE._email).getRegex(),vE._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,vE.tag=eE(vE.tag).replace("comment",vE._comment).replace("attribute",vE._attribute).getRegex(),vE._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,vE._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,vE._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,vE.link=eE(vE.link).replace("label",vE._label).replace("href",vE._href).replace("title",vE._title).getRegex(),vE.reflink=eE(vE.reflink).replace("label",vE._label).getRegex(),vE.reflinkSearch=eE(vE.reflinkSearch,"g").replace("reflink",vE.reflink).replace("nolink",vE.nolink).getRegex(),vE.normal=lE({},vE),vE.pedantic=lE({},vE.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:eE(/^!?\[(label)\]\((.*?)\)/).replace("label",vE._label).getRegex(),reflink:eE(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vE._label).getRegex()}),vE.gfm=lE({},vE.normal,{escape:eE(vE.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),vE.gfm.url=eE(vE.gfm.url,"i").replace("email",vE.gfm._extended_email).getRegex(),vE.breaks=lE({},vE.gfm,{br:eE(vE.br).replace("{2,}","*").getRegex(),text:eE(vE.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class EE{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Hy,this.options.tokenizer=this.options.tokenizer||new gE,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:fE.normal,inline:vE.normal};this.options.pedantic?(t.block=fE.pedantic,t.inline=vE.pedantic):this.options.gfm&&(t.block=fE.gfm,this.options.breaks?t.inline=vE.breaks:t.inline=vE.gfm),this.tokenizer.rules=t}static get rules(){return{block:fE,inline:vE}}static lex(e,t){return new EE(t).lex(e)}static lexInline(e,t){return new EE(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,a,o,i;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((a=>!!(n=a.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),a=t[t.length-1],!a||"paragraph"!==a.type&&"text"!==a.type?t.push(n):(a.raw+="\n"+n.raw,a.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=a.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),a=t[t.length-1],!a||"paragraph"!==a.type&&"text"!==a.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(a.raw+="\n"+n.raw,a.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=a.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let a;this.options.extensions.startBlock.forEach((function(e){a=e.call({lexer:this},n),"number"==typeof a&&a>=0&&(t=Math.min(t,a))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o)))a=t[t.length-1],i&&"paragraph"===a.type?(a.raw+="\n"+n.raw,a.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):t.push(n),i=o.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),a=t[t.length-1],a&&"text"===a.type?(a.raw+="\n"+n.raw,a.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){g("error","at node_modules/marked/lib/marked.esm.js:1611",t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,a,o,i,s,r,c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,i.index)+"["+pE("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,i.index)+"["+pE("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,i.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(r=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((a=>!!(n=a.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),a=t[t.length-1],a&&"text"===n.type&&"text"===a.type?(a.raw+=n.raw,a.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),a=t[t.length-1],a&&"text"===n.type&&"text"===a.type?(a.raw+=n.raw,a.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,c,r))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,yE))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,yE))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let a;this.options.extensions.startInline.forEach((function(e){a=e.call({lexer:this},n),"number"==typeof a&&a>=0&&(t=Math.min(t,a))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(o,_E))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(r=n.raw.slice(-1)),s=!0,a=t[t.length-1],a&&"text"===a.type?(a.raw+=n.raw,a.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){g("error","at node_modules/marked/lib/marked.esm.js:1795",t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class CE{constructor(e){this.options=e||Hy}code(e,t,n){const a=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,a);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",a?'<pre><code class="'+this.options.langPrefix+zy(a,!0)+'">'+(n?e:zy(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:zy(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,a){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+a.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const a=t?"ol":"ul";return"<"+a+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+a+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=aE(this.options.sanitize,this.options.baseUrl,e)))return n;let a='<a href="'+zy(e)+'"';return t&&(a+=' title="'+t+'"'),a+=">"+n+"</a>",a}image(e,t,n){if(null===(e=aE(this.options.sanitize,this.options.baseUrl,e)))return n;let a='<img src="'+e+'" alt="'+n+'"';return t&&(a+=' title="'+t+'"'),a+=this.options.xhtml?"/>":">",a}text(e){return e}}class kE{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class IE{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,a=0;if(this.seen.hasOwnProperty(n)){a=this.seen[e];do{a++,n=e+"-"+a}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=a,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class SE{constructor(e){this.options=e||Hy,this.options.renderer=this.options.renderer||new CE,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new kE,this.slugger=new IE}static parse(e,t){return new SE(t).parse(e)}static parseInline(e,t){return new SE(t).parseInline(e)}parse(e,t=!0){let n,a,o,i,s,r,c,l,u,d,m,p,h,f,v,_,y,E,C,k="";const I=e.length;for(n=0;n<I;n++)if(d=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(C=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==C||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))k+=C||"";else switch(d.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(d.tokens),d.depth,Qy(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(l="",c="",i=d.header.length,a=0;a<i;a++)c+=this.renderer.tablecell(this.parseInline(d.header[a].tokens),{header:!0,align:d.align[a]});for(l+=this.renderer.tablerow(c),u="",i=d.rows.length,a=0;a<i;a++){for(r=d.rows[a],c="",s=r.length,o=0;o<s;o++)c+=this.renderer.tablecell(this.parseInline(r[o].tokens),{header:!1,align:d.align[o]});u+=this.renderer.tablerow(c)}k+=this.renderer.table(l,u);continue;case"blockquote":u=this.parse(d.tokens),k+=this.renderer.blockquote(u);continue;case"list":for(m=d.ordered,p=d.start,h=d.loose,i=d.items.length,u="",a=0;a<i;a++)v=d.items[a],_=v.checked,y=v.task,f="",v.task&&(E=this.renderer.checkbox(_),h?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=E+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=E+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:E}):f+=E),f+=this.parse(v.tokens,h),u+=this.renderer.listitem(f,y,_);k+=this.renderer.list(u,m,p);continue;case"html":k+=this.renderer.html(d.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(u=d.tokens?this.parseInline(d.tokens):d.text;n+1<I&&"text"===e[n+1].type;)d=e[++n],u+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);k+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void g("error","at node_modules/marked/lib/marked.esm.js:2249",e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,a,o,i="";const s=e.length;for(n=0;n<s;n++)if(a=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]&&(o=this.options.extensions.renderers[a.type].call({parser:this},a),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)))i+=o||"";else switch(a.type){case"escape":case"text":i+=t.text(a.text);break;case"html":i+=t.html(a.text);break;case"link":i+=t.link(a.href,a.title,this.parseInline(a.tokens,t));break;case"image":i+=t.image(a.href,a.title,a.text);break;case"strong":i+=t.strong(this.parseInline(a.tokens,t));break;case"em":i+=t.em(this.parseInline(a.tokens,t));break;case"codespan":i+=t.codespan(a.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(a.tokens,t));break;default:{const e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return void g("error","at node_modules/marked/lib/marked.esm.js:2328",e);throw new Error(e)}}return i}}function TE(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),mE(t=lE({},TE.defaults,t||{})),n){const a=t.highlight;let o;try{o=EE.lex(e,t)}catch(zo){return n(zo)}const i=function(e){let i;if(!e)try{t.walkTokens&&TE.walkTokens(o,t.walkTokens),i=SE.parse(o,t)}catch(zo){e=zo}return t.highlight=a,e?n(e):n(null,i)};if(!a||a.length<3)return i();if(delete t.highlight,!o.length)return i();let s=0;return TE.walkTokens(o,(function(e){"code"===e.type&&(s++,setTimeout((()=>{a(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),s--,0===s&&i()}))}),0))})),void(0===s&&i())}try{const n=EE.lex(e,t);return t.walkTokens&&TE.walkTokens(n,t.walkTokens),SE.parse(n,t)}catch(zo){if(zo.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+zy(zo.message+"",!0)+"</pre>";throw zo}}TE.options=TE.setOptions=function(e){var t;return lE(TE.defaults,e),t=TE.defaults,Hy=t,TE},TE.getDefaults=Yy,TE.defaults=Hy,TE.use=function(...e){const t=lE({},...e),n=TE.defaults.extensions||{renderers:{},childTokens:{}};let a;e.forEach((e=>{if(e.extensions&&(a=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let a=e.renderer.apply(this,n);return!1===a&&(a=t.apply(this,n)),a}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=TE.defaults.renderer||new CE;for(const t in e.renderer){const a=n[t];n[t]=(...o)=>{let i=e.renderer[t].apply(n,o);return!1===i&&(i=a.apply(n,o)),i}}t.renderer=n}if(e.tokenizer){const n=TE.defaults.tokenizer||new gE;for(const t in e.tokenizer){const a=n[t];n[t]=(...o)=>{let i=e.tokenizer[t].apply(n,o);return!1===i&&(i=a.apply(n,o)),i}}t.tokenizer=n}if(e.walkTokens){const n=TE.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}a&&(t.extensions=n),TE.setOptions(t)}))},TE.walkTokens=function(e,t){for(const n of e)switch(t.call(TE,n),n.type){case"table":for(const e of n.header)TE.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)TE.walkTokens(n.tokens,t);break;case"list":TE.walkTokens(n.items,t);break;default:TE.defaults.extensions&&TE.defaults.extensions.childTokens&&TE.defaults.extensions.childTokens[n.type]?TE.defaults.extensions.childTokens[n.type].forEach((function(e){TE.walkTokens(n[e],t)})):n.tokens&&TE.walkTokens(n.tokens,t)}},TE.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");mE(t=lE({},TE.defaults,t||{}));try{const n=EE.lexInline(e,t);return t.walkTokens&&TE.walkTokens(n,t.walkTokens),SE.parseInline(n,t)}catch(zo){if(zo.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+zy(zo.message+"",!0)+"</pre>";throw zo}},TE.Parser=SE,TE.parser=SE.parse,TE.Renderer=CE,TE.TextRenderer=kE,TE.Lexer=EE,TE.lexer=EE.lex,TE.Tokenizer=gE,TE.Slugger=IE,TE.parse=TE,TE.options,TE.setOptions,TE.use,TE.walkTokens,TE.parseInline,SE.parse,EE.lex;const{computed:ME}=Ny;const NE=w({props:{payload:{type:Object,default:()=>({})}},setup(e){const t=ME((()=>{let t=TE.parse(e.payload.content);const n=new RegExp("<img","gi");return t=t.replace(n,'<img style="max-width: 100%;"'),t}));return{props:e,formatedContent:t}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("div",{class:"rich-text",innerHTML:o.formatedContent},null,8,["innerHTML"])}],["__scopeId","data-v-91f3ee62"]]),{ref:wE,watchEffect:DE,onBeforeUnmount:bE,onMounted:LE}=Ny;const PE=w({props:{payload:{type:Object,default:()=>({})}},setup(e){const t=wE(""),n=wE(""),a=wE(!1);let o=null,i=0;return LE((()=>{var a,o;t.value=(null==(o=null==(a=null==e?void 0:e.payload)?void 0:a.chunks)?void 0:o.join(""))??"",n.value=t.value,i=t.value.length})),DE((()=>{var a,s;const r=(null==(s=null==(a=null==e?void 0:e.payload)?void 0:a.chunks)?void 0:s.join(""))??"";r.length>i&&(t.value=r,o&&window.clearInterval(o),o=window.setInterval((()=>{i<t.value.length?(n.value+=t.value[i],i++):(window.clearInterval(o),o=null)}),50))})),DE((()=>{var t;a.value=1===(null==(t=null==e?void 0:e.payload)?void 0:t.isFinished)})),bE((()=>{o&&window.clearInterval(o)})),{content:t,props:e,isFinished:a,displayedContent:n}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("div",{class:"message-stream"},[e.createTextVNode(e.toDisplayString(o.displayedContent),1),o.isFinished?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:"blinking-cursor"}))])}],["__scopeId","data-v-b32e81bc"]]),{computed:AE}=Ny;const RE=w({components:{MessageBranch:Py,MessageForm:By,MessageProductCard:Fy,MessageRichText:NE,MessageIMRobotWelcome:Gy,MessageStream:PE},props:{message:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:(e,{emit:t})=>({payload:AE((()=>{var t,n;return e.message&&Qf(null==(n=null==(t=e.message)?void 0:t.payload)?void 0:n.data)})),sendTextMessage:e=>{t("sendMessage",e)},CUSTOM_MESSAGE_SRC:Kf})},[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("MessageBranch"),c=e.resolveComponent("MessageIMRobotWelcome"),l=e.resolveComponent("MessageForm"),u=e.resolveComponent("MessageProductCard"),d=e.resolveComponent("MessageRichText"),m=e.resolveComponent("MessageStream");return e.openBlock(),e.createElementBlock("div",{class:"custom"},[o.payload.src===o.CUSTOM_MESSAGE_SRC.BRANCH||o.payload.src===o.CUSTOM_MESSAGE_SRC.BRANCH_NUMBER||o.payload.src===o.CUSTOM_MESSAGE_SRC.ROBOT_MSG&&"welcome_msg"!==o.payload.subtype?(e.openBlock(),e.createElementBlock("div",{key:0},[e.createVNode(r,{payload:o.payload,onSendMessage:o.sendTextMessage},null,8,["payload","onSendMessage"])])):e.createCommentVNode("",!0),o.payload.src===o.CUSTOM_MESSAGE_SRC.ROBOT_MSG&&"welcome_msg"===o.payload.subtype?(e.openBlock(),e.createElementBlock("div",{key:1},[e.createVNode(c,{payload:o.payload,onSendMessage:o.sendTextMessage},null,8,["payload","onSendMessage"])])):e.createCommentVNode("",!0),o.payload.src===o.CUSTOM_MESSAGE_SRC.FROM_INPUT?(e.openBlock(),e.createElementBlock("div",{key:2},[e.createVNode(l,{payload:o.payload,onSendMessage:o.sendTextMessage},null,8,["payload","onSendMessage"])])):e.createCommentVNode("",!0),o.payload.src===o.CUSTOM_MESSAGE_SRC.PRODUCT_CARD?(e.openBlock(),e.createElementBlock("div",{key:3},[e.createVNode(u,{payload:o.payload},null,8,["payload"])])):e.createCommentVNode("",!0),o.payload.src===o.CUSTOM_MESSAGE_SRC.RICH_TEXT?(e.openBlock(),e.createElementBlock("div",{key:4},[e.createVNode(d,{payload:o.payload},null,8,["payload"])])):e.createCommentVNode("",!0),o.payload.src===o.CUSTOM_MESSAGE_SRC.STREAM_TEXT?(e.openBlock(),e.createElementBlock("div",{key:5},[e.createVNode(m,{payload:o.payload},null,8,["payload"])])):e.createCommentVNode("",!0)])}]]),{computed:OE,ref:VE,watchEffect:BE}=Ny;const xE=w({components:{Icon:by},props:{ratingTemplate:{type:Object,default:()=>({})}},emits:["sendMessage"],setup(e,{emit:t}){const n=VE(!1),a=VE(""),o=VE(-1),i=VE(-1),s=VE(!1);BE((()=>{if(a.value=e.ratingTemplate.sessionId||"",null!=e.ratingTemplate.selected)for(let t=0;t<e.ratingTemplate.menu.length;t++)if(e.ratingTemplate.menu[t].id==e.ratingTemplate.selected.id){n.value=!0,o.value=t;break}Math.floor((new Date).getTime()/1e3)>e.ratingTemplate.expireTime&&(s.value=!0)}));const r=OE((()=>{var t;return null==(t=e.ratingTemplate)?void 0:t.menu.map((e=>e.content))})),c=OE((()=>{var t;return null==(t=e.ratingTemplate)?void 0:t.menu.map(((e,t)=>-1!==i.value?t<=i.value?1:0:t<=o.value?1:0))}));return{props:e,hasReply:n,sessionId:a,value:o,hoverValue:i,hasExpire:s,desc:r,starList:c,setValue:e=>{n.value||(o.value=e)},setHoverValue:e=>{n.value||(i.value=e)},submitRatingStar:async()=>{if(o.value<0)return;const i={data:JSON.stringify({src:Kf.MENU_SELECTED,menuSelected:{id:e.ratingTemplate.menu[o.value].id,content:e.ratingTemplate.menu[o.value].content,sessionId:a.value},customerServicePlugin:0})};n.value=!0,t("sendMessage",i)},star:"/assets/star.0d13712b.png",starLine:"/assets/starLine.f4211758.png"}}},[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("Icon");return e.openBlock(),e.createElementBlock("div",{class:"message-rating-star"},[e.createElementVNode("p",{class:"rating-head"},e.toDisplayString(o.props.ratingTemplate.head),1),e.createElementVNode("div",{class:"rating-card"},[e.createElementVNode("span",{class:"card-title"},"请对本次服务进行评价"),e.createElementVNode("div",{class:"card-wrapper"},[e.createElementVNode("div",{style:{"max-width":"200px"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.starList,((t,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,style:{display:"inline-block"},onClick:e=>o.setValue(a),onMouseenter:e=>o.setHoverValue(a),onMouseleave:n[0]||(n[0]=e=>o.setHoverValue(-1))},[1===t?(e.openBlock(),e.createBlock(r,{key:0,src:o.star,width:"30px",height:"30px"},null,8,["src"])):(e.openBlock(),e.createBlock(r,{key:1,src:o.starLine,width:"30px",height:"30px"},null,8,["src"]))],40,["onClick","onMouseenter"])))),128))])]),e.createElementVNode("div",{style:{marginTop:"10px",marginBottom:"10px"}},e.toDisplayString(-1===o.hoverValue?-1===o.value?"如果满意请给好评哦~":o.desc[o.value]:o.desc[o.hoverValue]),1),e.createElementVNode("button",{class:"submit-button",disabled:o.hasReply||o.hasExpire,onClick:n[1]||(n[1]=(...e)=>o.submitRatingStar&&o.submitRatingStar(...e))}," 提交评价 ",8,["disabled"])]),o.hasReply?(e.openBlock(),e.createElementBlock("p",{key:0,class:"rating-tail",style:{marginTop:"20px"}},e.toDisplayString(o.props.ratingTemplate.tail),1)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-a9247493"]]),{computed:UE,ref:GE,watchEffect:FE}=Ny;const YE=w({props:{ratingTemplate:{type:Object,default:()=>({})}},emits:["sendMessage"],setup(e,{emit:t}){const n=GE(!1),a=GE(""),o=GE(-1),i=GE(-1),s=GE(!1),r=UE((()=>{var t;return null==(t=e.ratingTemplate)?void 0:t.menu.map((e=>e.content))})),c=UE((()=>{var t;return null==(t=e.ratingTemplate)?void 0:t.menu.map(((e,t)=>t))}));FE((()=>{if(a.value=e.ratingTemplate.sessionId||"",null!=e.ratingTemplate.selected)for(let t=0;t<e.ratingTemplate.menu.length;t++)if(e.ratingTemplate.menu[t].id==e.ratingTemplate.selected.id){n.value=!0,o.value=t;break}Math.floor((new Date).getTime()/1e3)>e.ratingTemplate.expireTime&&(s.value=!0)}));return{props:e,hasReply:n,sessionId:a,selectValue:o,hoverValue:i,hasExpire:s,desc:r,numberList:c,setValue:e=>{n.value||(o.value=e)},setHoverValue:e=>{n.value||(i.value=e)},submitRatingStar:()=>{if(o.value>=0){const i={data:JSON.stringify({src:Kf.MENU_SELECTED,menuSelected:{id:e.ratingTemplate.menu[o.value].id,content:e.ratingTemplate.menu[o.value].content,sessionId:a.value},customerServicePlugin:0})};n.value=!0,t("sendMessage",i)}}}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("div",{class:"message-rating-star"},[e.createElementVNode("p",{class:"rating-head"},e.toDisplayString(o.props.ratingTemplate.head),1),e.createElementVNode("div",{class:"rating-card"},[e.createElementVNode("span",{class:"card-title"},"请对本次服务进行评价"),e.createElementVNode("div",{class:"card-wrapper"},[e.createElementVNode("div",{style:{"max-width":"250px"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.numberList,((t,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:e.normalizeClass({active:!(a!==o.selectValue&&a!==o.hoverValue),"de-active":a!==o.selectValue&&a!==o.hoverValue}),style:e.normalizeStyle({marginLeft:0===a?"0px":"20px",margin:"5px"}),onClick:e=>o.setValue(a),onMouseenter:e=>o.setHoverValue(a),onMouseleave:n[0]||(n[0]=e=>o.setHoverValue(-1))},e.toDisplayString(t+1),47,["onClick","onMouseenter"])))),128))])]),e.createElementVNode("div",{style:{marginTop:"10px",marginBottom:"10px"}},e.toDisplayString(-1===o.hoverValue?-1===o.selectValue?"如果满意请给好评哦~":o.desc[o.selectValue]:o.desc[o.hoverValue]),1),e.createElementVNode("button",{class:"submit-button",disabled:o.hasReply||o.hasExpire,onClick:n[1]||(n[1]=(...e)=>o.submitRatingStar&&o.submitRatingStar(...e))}," 提交评价 ",8,["disabled"])]),o.hasReply?(e.openBlock(),e.createElementBlock("p",{key:0,class:"rating-tail",style:{marginTop:"20px"}},e.toDisplayString(o.props.ratingTemplate.tail),1)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-587b09df"]]),{computed:HE}=Ny;const ZE=w({components:{MessageCustomerService:RE,MessageRating:w({components:{RatingStar:xE,RatingNumber:YE},props:{message:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:(e,{emit:t})=>({sendCustomMessage:e=>{t("sendMessage",e)},ratingTemplate:HE((()=>{const t=e.message&&Qf(e.message.payload.data);return null==t?void 0:t.menuContent})),RATING_TEMPLATE_TYPE:zf})},[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("RatingStar"),c=e.resolveComponent("RatingNumber");return o.ratingTemplate.type===o.RATING_TEMPLATE_TYPE.STAR?(e.openBlock(),e.createBlock(r,{key:0,ratingTemplate:o.ratingTemplate,onSendMessage:o.sendCustomMessage},null,8,["ratingTemplate","onSendMessage"])):(e.openBlock(),e.createBlock(c,{key:1,ratingTemplate:o.ratingTemplate,onSendMessage:o.sendCustomMessage},null,8,["ratingTemplate","onSendMessage"]))}]])},props:{message:{type:Object,default:()=>({})}},setup:e=>({props:e,sendTextMessage:e=>{Yg.callService({serviceName:Mg.TUIChat.SERVICE.NAME,method:Mg.TUIChat.SERVICE.METHOD.SEND_TEXT_MESSAGE,params:{payload:e}})},sendCustomMessage:e=>{Yg.callService({serviceName:Mg.TUIChat.SERVICE.NAME,method:Mg.TUIChat.SERVICE.METHOD.SEND_CUSTOM_MESSAGE,params:{payload:e}})},isCustomerServiceMessage:$f,isMessageRating:ev})},[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("MessageRating"),c=e.resolveComponent("MessageCustomerService");return e.openBlock(),e.createElementBlock("div",{class:"message-custom"},[o.isMessageRating(o.props.message)?(e.openBlock(),e.createBlock(r,{key:0,message:o.props.message,onSendMessage:o.sendCustomMessage},null,8,["message","onSendMessage"])):o.isCustomerServiceMessage(o.props.message)?(e.openBlock(),e.createBlock(c,{key:1,message:o.props.message,onSendMessage:o.sendTextMessage},null,8,["message","onSendMessage"])):e.createCommentVNode("",!0)])}]]),qE=w(e.defineComponent({__name:"message-customer-service",props:{message:{default:()=>({})}},setup(t){const n=t;return(t,a)=>(e.openBlock(),e.createBlock(ZE,{message:n.message},null,8,["message"]))}}),[["__scopeId","data-v-f937f377"]]),jE=w(e.defineComponent({__name:"message-room-default",props:{message:{default:()=>({})}},setup(t){const n=t;return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["room-default",e.unref(nh)&&"room-default-uni","in"===n.message.flow?"room-default-in":"room-default-out"])},e.toDisplayString(e.unref(Tp).t("message.custom.自定义消息")),3))}}),[["__scopeId","data-v-42afa8f7"]]),JE=e.defineComponent({__name:"message-plugin",props:{message:{default:()=>({})},blinkMessageIDList:{default:()=>[]}},emits:["resendMessage","handleToggleMessageItem","handleH5LongPress"],setup(t,{emit:n}){const a=t,o=n,i=e.computed((()=>Sp.getMessageModel(a.message.ID))),s=e.computed((()=>{var e;return null==(e=null==i?void 0:i.value)?void 0:e.getSignalingInfo()})),r=e.computed((()=>{var e;return null==(e=null==i?void 0:i.value)?void 0:e.getMessageContent()})),c=e.computed((()=>{var e;let t={pluginType:"",showStyle:""};return ov(i.value)?t={pluginType:"call",showStyle:(null==(e=i.value)?void 0:e.conversationType)===Ip.TYPES.CONV_GROUP?"tip":"bubble"}:iv(i.value)?t={pluginType:"room",showStyle:"bubble"}:av(i.value)&&(t={pluginType:"customer",showStyle:tv(i.value)?"":"bubble"}),t})),l=e=>{o("resendMessage",e)},u=(e,t,n=!1)=>{o("handleToggleMessageItem",e,t,n)},d=(e,t,n)=>{o("handleH5LongPress",e,t,n)};return(t,n)=>(e.openBlock(),e.createBlock(cv,{message:a.message,showStyle:e.unref(c).showStyle,bubbleClassNameList:["room"===e.unref(c).pluginType?"message-bubble-room":""],onResendMessage:l,onHandleToggleMessageItem:u,onHandleH5LongPress:d},{messageTip:e.withCtx((()=>[e.createVNode(lv,{message:a.message,signalingInfo:e.unref(s),customContent:e.unref(r),blinkMessageIDList:a.blinkMessageIDList},null,8,["message","signalingInfo","customContent","blinkMessageIDList"])])),messageBubble:e.withCtx((()=>["call"===e.unref(c).pluginType?(e.openBlock(),e.createBlock(gv,{key:0,message:a.message,signalingInfo:e.unref(s),customContent:e.unref(r)},null,8,["message","signalingInfo","customContent"])):e.createCommentVNode("",!0),"customer"===e.unref(c).pluginType?(e.openBlock(),e.createBlock(qE,{key:1,message:a.message},null,8,["message"])):e.createCommentVNode("",!0),"room"===e.unref(c).pluginType?(e.openBlock(),e.createBlock(jE,{key:2,message:a.message},null,8,["message"])):e.createCommentVNode("",!0)])),_:1},8,["message","showStyle","bubbleClassNameList"]))}}),XE=w(JE,[["__scopeId","data-v-d3135755"]]),KE="/assets/icon-close.90eb4be2.svg",zE=w(e.defineComponent({__name:"index",props:{isFetching:{type:Boolean,default:!1},isTerminateObserve:{type:Boolean,default:!1}},emits:["onExposed"],setup(t,{emit:n}){var a;const o=n,i=t;let s=null;const r=e.ref(),c=(null==(a=e.getCurrentInstance())?void 0:a.proxy)||e.getCurrentInstance();return e.onMounted((()=>{i.isTerminateObserve||(nh?(s=uni.createIntersectionObserver(c).relativeToViewport(),s.observe(".fetch-more-block",(()=>{o("onExposed")}))):(s=new IntersectionObserver((([e])=>{e.isIntersecting&&o("onExposed")}),{threshold:1}),r.value&&s.observe(r.value)))})),e.onUnmounted((()=>{s&&(s.disconnect(),s=null)})),e.watch((()=>i.isTerminateObserve),(e=>{s&&(e?s.disconnect():r.value&&(s.disconnect(),nh?s.observe(".fetch-more-block",(()=>{o("onExposed")})):s.observe(r.value)))})),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"selfDomRef",ref:r,class:"fetch-more-block"},[i.isFetching?e.renderSlot(t.$slots,"fetching",{key:0},(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(Tp).t("TUIChat.正在加载")),1)]),!0):e.renderSlot(t.$slots,"fetchEnd",{key:1},(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(Tp).t("TUIChat.加载结束")),1)]),!0)],512))}}),[["__scopeId","data-v-3bf21ef4"]]),WE=w(e.defineComponent({__name:"index",props:{message:{default:()=>({})}},emits:["setReadReceiptPanelVisible"],setup(t,{emit:n}){const a=n,o=t;let i="",s="";const r=["unread","read"],c={unread:!1,read:!1,close:!1},l=e.ref(!1),u=e.ref(!1),d=e.ref(!1),m=e.ref(!1),p=e.ref("unread"),h=e.ref({read:{tabName:Tp.t("TUIChat.已读"),count:void 0,memberList:[]},unread:{tabName:Tp.t("TUIChat.未读"),count:void 0,memberList:[]},close:{tabName:Tp.t("TUIChat.关闭"),count:void 0,memberList:[]}});async function g(e="all"){const t=Sp.getMessageModel(o.message.ID);let n={},a={};"all"!==e&&"unread"!==e||(n=await wp.getGroupMessageReadMemberList({message:t,filter:1,cursor:i,count:100}),n&&(i=n.data.cursor,n.data.isCompleted&&(c.unread=!0))),"all"!==e&&"read"!==e||(a=await wp.getGroupMessageReadMemberList({message:t,filter:0,cursor:s,count:100}),a&&(s=a.data.cursor,a.data.isCompleted&&(c.read=!0)));const{unreadCount:r,readCount:l}=t.readReceiptInfo;return{unreadResult:{count:r,...n.data},readResult:{count:l,...a.data}}}async function f(){if(!c[p.value]&&!l.value&&(l.value=!0,"unread"===p.value||"read"===p.value)){const{unreadResult:e,readResult:t}=await g(p.value);_();try{h.value.unread.memberList=h.value.unread.memberList.concat(e.unreadUserInfoList||[]),h.value.read.memberList=h.value.read.memberList.concat(t.readUserInfoList||[])}finally{l.value=!1}}}async function v(){i="",s="",m.value=!1,c.unread=!1,c.read=!1;const{unreadResult:e,readResult:t}=await g("all");_(),y("read",t.count,t.readUserInfoList),y("unread",e.count,e.unreadUserInfoList),y("close")}function _(){c.read&&c.unread&&(m.value=!0)}function y(e,t,n){h.value[e].count=t,h.value[e].memberList=n||[]}function E(){u.value=!0,setTimeout((()=>{a("setReadReceiptPanelVisible",!1)}),200)}return e.onMounted((async()=>{await v(),e.nextTick((()=>{d.value=!0}))})),e.watch((()=>o.message.readReceiptInfo.readCount),(()=>{v()})),(t,n)=>(e.openBlock(),e.createBlock(Xg,{maskColor:"transparent",onOnOverlayClick:E},{default:e.withCtx((()=>[e.createElementVNode("div",{class:e.normalizeClass({"read-receipt-panel":!0,"read-receipt-panel-mobile":e.unref(ah),"read-receipt-panel-close-mobile":e.unref(ah)&&e.unref(u)})},[e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-text"},e.toDisplayString(e.unref(Tp).t("TUIChat.消息详情")),1),e.createElementVNode("div",{class:"header-close-icon"},[e.createVNode(ih,{size:"12px",hotAreaSize:"8",file:e.unref(KE),onOnClick:E},null,8,["file"])])]),e.createElementVNode("div",{class:"read-status-counter-container"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,(t=>e.createElementVNode("div",{key:t,class:e.normalizeClass({"read-status-counter":!0,active:t===e.unref(p)}),onClick:e=>function(e){p.value=e}(t)},[e.createElementVNode("div",{class:"status-text"},e.toDisplayString(e.unref(h)[t].tabName),1),e.createElementVNode("div",{class:"status-count"},e.toDisplayString(void 0===e.unref(h)[t].count?"":e.unref(h)[t].count),1)],10,["onClick"]))),64))]),e.createElementVNode("div",{class:"read-status-member-list"},[0===e.unref(h)[e.unref(p)].count&&e.unref(d)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"empty-list-tip"}," - "+e.toDisplayString(e.unref(Tp).t("TUIChat.空"))+" - ",1)):e.unref(d)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},["unread"===e.unref(p)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(h)[e.unref(p)].memberList,(t=>(e.openBlock(),e.createElementBlock("div",{key:t.userID,class:"read-status-member-container"},[e.createVNode(Jg,{class:"read-status-avatar",useSkeletonAnimation:"",url:t.avatar||""},null,8,["url"]),e.createElementVNode("div",{class:"username"},e.toDisplayString(t.nick||t.userID),1)])))),128)):e.createCommentVNode("",!0),"read"===e.unref(p)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(h)[e.unref(p)].memberList,(t=>(e.openBlock(),e.createElementBlock("div",{key:t.userID,class:"read-status-member-container"},[e.createVNode(Jg,{class:"read-status-avatar",useSkeletonAnimation:"",url:t.avatar},null,8,["url"]),e.createElementVNode("div",{class:"username"},e.toDisplayString(t.nick||t.userID),1)])))),128)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.unref(d)?(e.openBlock(),e.createElementBlock("div",{key:2,class:"fetch-more-container"},[e.createVNode(zE,{isFetching:e.unref(l),isTerminateObserve:e.unref(m),onOnExposed:f},null,8,["isFetching","isTerminateObserve"])])):e.createCommentVNode("",!0)])],2)])),_:1}))}}),[["__scopeId","data-v-21094d24"]]),QE=e.defineComponent({__name:"index",emits:["scrollToLatestMessage"],setup(t,{expose:n,emit:a}){const o=a,i=e.ref([]),s=e.ref(""),r=e.ref(0),c=e.ref(0),l=e.ref(!1),u=e.ref(!1),d=e.ref(!1),m=e.computed((()=>c.value?`${c.value}${Tp.t("TUIChat.条新消息")}`:Tp.t("TUIChat.回到最新位置")));function p(e){var t,n;i.value=e||[];const a=null==(n=i.value)?void 0:n[(null==(t=i.value)?void 0:t.length)-1];u.value=!!(a&&(null==a?void 0:a.time)<(null==r?void 0:r.value))}function h(e){Array.isArray(e)&&d.value&&e.forEach((e=>{!e||e.conversationID!==s.value||e.isDeleted||e.isRevoked||function(e){var t,n;return"user_typing_status"===(null==(n=eg(null==(t=e.payload)?void 0:t.data))?void 0:n.businessID)}(e)||(c.value+=1)}))}function g(e){var t;(null==e?void 0:e.conversationID)!==s.value&&f(),s.value=(null==e?void 0:e.conversationID)||"",r.value=(null==(t=null==e?void 0:e.lastMessage)?void 0:t.lastTime)||0}function f(){c.value=0}function v(){void 0!==Sp.getData(ad.CHAT,"messageSource")&&Sp.update(ad.CHAT,"messageSource",void 0),f(),o("scrollToLatestMessage")}return e.watch((()=>[l.value,u.value]),(()=>{d.value=l.value||u.value,d.value||f()}),{immediate:!0}),e.onMounted((()=>{Sp.watch(ad.CHAT,{messageList:p,newMessageList:h}),Sp.watch(ad.CONV,{currentConversation:g})})),e.onUnmounted((()=>{Sp.unwatch(ad.CHAT,{messageList:p,newMessageList:h}),Sp.unwatch(ad.CONV,{currentConversation:g})})),n({judgeScrollOverOneScreen:async function(e){var t,n,a,o,i;if(e.target)try{const{height:s}=await Xp(`#${null==(t=e.target)?void 0:t.id}`,"messageList")||{},r=(null==(n=e.target)?void 0:n.scrollHeight)||(null==(a=e.detail)?void 0:a.scrollHeight);if(r-((null==(o=e.target)?void 0:o.scrollTop)||(null==(i=e.detail)?void 0:i.scrollTop)||0)>2*s)return void(l.value=!0);l.value=!1}catch(tI){l.value=!1}},isScrollButtonVisible:d}),(t,n)=>e.unref(d)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"scroll-button",onClick:v},[e.createVNode(ih,{width:"10px",height:"10px",file:e.unref("/assets/double-arrow.c51bb7cf.svg")},null,8,["file"]),e.createElementVNode("div",{class:"scroll-button-text"},e.toDisplayString(e.unref(m)),1)])):e.createCommentVNode("",!0)}}),$E=w(QE,[["__scopeId","data-v-97f4bdd3"]]),eC=w(e.defineComponent({__name:"index",props:{content:{default:()=>({})},messageItem:{default:()=>({})}},setup(t){const n=t;return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"progress-message"},[e.renderSlot(t.$slots,"default",{},void 0,!0),"unSend"===n.messageItem.status&&n.messageItem.progress<1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"progress-container"},[e.unref(nh)?(e.openBlock(),e.createElementBlock("progress",{key:1,activeColor:"#006EFF",class:"progress-common",percent:Math.round(100*n.messageItem.progress)},null,8,["percent"])):(e.openBlock(),e.createElementBlock("progress",{key:0,class:"progress",value:n.messageItem.progress,max:"1"},null,8,["value"]))])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-33dcb168"]]),tC="Expected a function";function nC(e,t,n){let a=!0,o=!0;if("function"!=typeof e)throw new TypeError(tC);return n&&oC(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),aC(e,t,{leading:a,maxWait:t,trailing:o})}function aC(e,t,n){let a,o,i,s,r,c,l=0,u=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError(tC);function p(t){const n=a,i=o;return a=o=void 0,l=t,s=e.apply(i,n),s}function h(e){const n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=i}function g(){const e=Date.now();if(h(e))return f(e);r=setTimeout(g,function(e){const n=e-l,a=t-(e-c);return d?Math.min(a,i-n):a}(e))}function f(e){return r=void 0,m&&a?p(e):(a=o=void 0,s)}function v(){const e=Date.now(),n=h(e);if(a=arguments,o=this,c=e,n){if(void 0===r)return function(e){return l=e,r=setTimeout(g,t),u?p(e):s}(c);if(d)return clearTimeout(r),r=setTimeout(g,t),p(c)}return void 0===r&&(r=setTimeout(g,t)),s}return t=t||0,n&&oC(n)&&(u=!!n.leading,d="maxWait"in n,i=d?Math.max(n.maxWait||0,t):i,m="trailing"in n?!!n.trailing:m),v.cancel=function(){void 0!==r&&clearTimeout(r),l=0,a=c=o=r=void 0},v.flush=function(){return void 0===r?s:f(Date.now())},v}function oC(e){const t=typeof e;return null!=e&&("object"==t||"function"==t)}const iC=class e{constructor(){this.chatStorage=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}getChatStorage(e){if(this.chatStorage||(this.chatStorage=this.getChatStorageFromLocalStorage()),e)return this.chatStorage[e];throw new Error("No key provided")}setChatStorage(t,n){this.chatStorage||(this.chatStorage=this.getChatStorageFromLocalStorage()),this.chatStorage[t]=n;try{nh?Op.setStorageSync(e.CHAT_STORAGE_KEY,JSON.stringify(this.chatStorage)):localStorage.setItem(e.CHAT_STORAGE_KEY,JSON.stringify(this.chatStorage))}catch(tI){throw new Error("Fail to set chat storage")}}getChatStorageFromLocalStorage(){let t="";if(t=nh?Op.getStorageSync(e.CHAT_STORAGE_KEY)||"":localStorage.getItem(e.CHAT_STORAGE_KEY)||"",!t)return{};try{this.chatStorage=JSON.parse(t)}catch(tI){this.chatStorage={}}return this.chatStorage}};iC.instance=null,iC.CHAT_STORAGE_KEY="TUI_CHAT_STORAGE";const sC=iC.getInstance(),rC=e.defineComponent({__name:"index",props:{isGroup:{type:Boolean,default:!1},groupID:{default:""},isNotInGroup:{type:Boolean,default:!1},isMultipleSelectMode:{type:Boolean,default:!1}},emits:["closeInputToolBar","handleEditor","toggleMultipleSelectMode"],setup(t,{expose:n,emit:a}){var o;const i=a,s=t;let r,c=0,l=null;const u=new Set,d=Sp.getData(ad.APP,"isOfficial"),m=(null==(o=e.getCurrentInstance())?void 0:o.proxy)||e.getCurrentInstance(),p=e.ref(),h=e.ref([]),g=e.ref(!1),f=e.ref(""),v=e.ref(""),_=e.ref(5e3),y=e.ref(Ip.TYPES),E=e.ref(!1),C=e.ref(!1),k=e.ref([]),I=e.ref(),S=e.ref(),T=e.ref(""),M=e.ref(!1),N=e.ref(),w=e.ref({}),D=e.ref(""),b=e.ref(),L=e.ref(!1),P=e.ref(!1),A=e.ref(),R=()=>{_.value+=300;const e=setTimeout((()=>{_.value+=1,clearTimeout(e)}),300)},O=e=>{if(f.value=e,uf()){const{groupProfile:t}=Sp.getConversationModel(e)||{};r=null==t?void 0:t.type}Object.keys(w.value).length>0&&sC.setChatStorage("audioPlayedMapping",w.value)};e.onMounted((()=>{w.value=sC.getChatStorage("audioPlayedMapping")||{},Sp.watch(ad.CHAT,{messageList:x,messageSource:G,isCompleted:Y}),Sp.watch(ad.CONV,{currentConversationID:O}),function(e,t){Jp.set(e,t)}("messageList",m),uni.$on("scroll-to-bottom",U)})),e.onUnmounted((()=>{Sp.unwatch(ad.CHAT,{messageList:x,isCompleted:Y}),Sp.unwatch(ad.CONV,{currentConversationID:O}),null==l||l.disconnect(),l=null,uni.$off("scroll-to-bottom"),Object.keys(w.value).length>0&&sC.setChatStorage("audioPlayedMapping",w.value)}));const V=nC((function(e){var t;null==(t=S.value)||t.judgeScrollOverOneScreen(e)}),500,{leading:!0});function B(e,t){(null==t?void 0:t.newAudioSrc)&&(D.value=t.newAudioSrc)}async function x(t){var n,a,o;null==l||l.disconnect(),p.value=t.filter((e=>!e.isDeleted)).map((e=>(e.vueForRenderKey=`${e.ID}`,e)));const i=null==(a=p.value)?void 0:a[(null==(n=p.value)?void 0:n.length)-1];I.value?F(I.value):E.value||(null==(o=S.value)?void 0:o.isScrollButtonVisible)&&"in"===(null==i?void 0:i.flow)||e.nextTick((()=>{R()})),uf()&&e.nextTick((()=>async function(){if(!p.value||0===p.value.length)return;if(r===y.value.GRP_AVCHATROOM||r===y.value.GRP_COMMUNITY)return;null==l||l.disconnect(),l=uni.createIntersectionObserver(m,{threshold:[.7],observeAll:!0}).relativeTo("#messageScrollList",{top:-70}),null==l||l.observe(".message-li.in .message-bubble-container",(e=>{var t;if(u.has(e.id))return;const n=p.value.find((t=>e.id.indexOf(t.ID)>-1));n&&n.needReadReceipt&&"in"===n.flow&&!(null==(t=n.readReceiptInfo)?void 0:t.isPeerRead)&&(wp.sendMessageReadReceipt([n]),u.add(e.id))}))}()))}async function U(){try{const{scrollHeight:e}=await Kp("#messageScrollList","messageList");e?_.value===e?_.value=e+1:_.value=e:R()}catch(tI){R()}}async function G(e){I.value=e,F(I.value)}function F(t){var n;(null==(n=p.value)?void 0:n.some((e=>(null==e?void 0:e.ID)===(null==t?void 0:t.ID))))&&e.nextTick((async()=>{await async function(e){const t=e.ID,n=p.value&&p.value.some((e=>e.ID===t));if(t&&n){const e=setTimeout((async()=>{try{const n=await Xp("#messageScrollList","messageList"),a=await Xp("#tui-"+t,"messageList"),{scrollTop:o}=await Kp("#messageScrollList","messageList");K(a.top+o-n.top-c++%2),clearTimeout(e)}catch(tI){}}),500)}else ug({message:Tp.t("TUIChat.无法定位到原消息"),type:rg})}(t),await X(null==t?void 0:t.ID),I.value=void 0}))}function Y(e){g.value=e}const H=()=>{var t,n;E.value=!0;const a=(null==(n=null==(t=p.value)?void 0:t[0])?void 0:n.ID)||"";wp.getMessageList().then((()=>{e.nextTick((()=>{T.value=a;const e=setTimeout((()=>{T.value="",E.value=!1,clearTimeout(e)}),500)}))}))},Z=(e,t,n,a=!1)=>{s.isMultipleSelectMode||s.isNotInGroup||(a&&(C.value=!0),v.value=t.ID)};let q;const j=(e,t,n,a)=>{if(!s.isMultipleSelectMode&&!s.isNotInGroup&&$p)switch(a){case"touchstart":q=setTimeout(o,500);break;case"touchend":clearTimeout(q),setTimeout((()=>{C.value=!1}),200)}function o(){clearTimeout(q),Z(0,t,0,!0)}},J=e=>{P.value=!0,A.value=e};function X(e){return new Promise((t=>{if(k.value.indexOf(e)<0){k.value.push(e);const n=setTimeout((()=>{k.value.splice(k.value.indexOf(e),1),clearTimeout(n),t()}),3e3)}}))}function K(e){_.value=e}function z(e,t){e&&s.isNotInGroup||(b.value=e?t:void 0,L.value=e)}function W(){i("closeInputToolBar")}function Q({type:e,messageID:t}){"clearAll"===e?h.value=[]:"add"!==e||h.value.includes(t)?"remove"===e&&(h.value=h.value.filter((e=>e!==t))):h.value.push(t)}function $(e){N.value=e,M.value=!0}function ee(e){w.value[e]=!0}return e.watch((()=>s.isMultipleSelectMode),(e=>{e||Q({type:"clearAll",messageID:""})})),n({oneByOneForwardMessage:function(){Sp.update(ad.CUSTOM,"multipleForwardMessageID",{isMergeForward:!1,messageIDList:h.value})},mergeForwardMessage:function(){Sp.update(ad.CUSTOM,"multipleForwardMessageID",{isMergeForward:!0,messageIDList:h.value})},scrollToLatestMessage:U}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"tui-chat":!0,"tui-chat-h5":e.unref(ah)}),onClick:W},[e.createElementVNode("div",{class:"tui-chat-main"},[e.unref(d)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tui-chat-safe-tips"},[e.createElementVNode("span",null,e.toDisplayString(e.unref(Tp).t("TUIChat.【安全提示】本 APP 仅用于体验腾讯云即时通信 IM 产品功能,不可用于业务洽谈与拓展。请勿轻信汇款、中奖等涉及钱款的信息,勿轻易拨打陌生电话,谨防上当受骗。")),1),e.createElementVNode("a",{onClick:n[0]||(n[0]=t=>{e.unref(sf).complaint})},e.toDisplayString(e.unref(Tp).t("TUIChat.点此投诉")),1)])):e.createCommentVNode("",!0),t.isGroup?(e.openBlock(),e.createBlock(yf,{key:s.groupID,groupID:s.groupID},null,8,["groupID"])):e.createCommentVNode("",!0),e.createElementVNode("scroll-view",{id:"messageScrollList",class:"tui-message-list","scroll-y":"true","scroll-top":e.unref(_),"scroll-into-view":`tui-${e.unref(T)}`,onScroll:n[3]||(n[3]=(...t)=>e.unref(V)&&e.unref(V)(...t))},[e.unref(g)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",{key:0,class:"message-more",onClick:H},e.toDisplayString(e.unref(Tp).t("TUIChat.查看更多")),1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),((a,o)=>(e.openBlock(),e.createElementBlock("li",{id:`tui-${a.ID}`,key:a.vueForRenderKey,class:e.normalizeClass("message-li "+a.flow)},[e.createVNode(Zf,{currTime:a.time,prevTime:o>0?e.unref(p)[o-1].time:0},null,8,["currTime","prevTime"]),e.createElementVNode("div",{class:"message-item",onClick:n[2]||(n[2]=e=>v.value="")},[a.type===e.unref(y).MSG_GRP_TIP||e.unref(lf)(a)?(e.openBlock(),e.createBlock(Nf,{key:0,content:a.getMessageContent()},null,8,["content"])):a.isRevoked||e.unref(sv)(a)?!a.isRevoked&&e.unref(sv)(a)?(e.openBlock(),e.createBlock(XE,{key:2,message:a,onResendMessage:J,onHandleToggleMessageItem:Z,onHandleH5LongPress:j},null,8,["message"])):(e.openBlock(),e.createBlock(Xf,{key:3,isEdit:a.type===e.unref(y).MSG_TEXT,messageItem:a,onMessageEdit:e=>{i("handleEditor",a,"reedit")}},null,8,["isEdit","messageItem","onMessageEdit"])):(e.openBlock(),e.createElementBlock("div",{key:1,id:`msg-bubble-${a.ID}`,class:"message-bubble-container",onLongpress:e=>Z(0,a,0,!0),onTouchstart:e=>j(0,a,0,"touchstart"),onTouchend:e=>j(0,a,0,"touchend"),onMouseover:e=>j(0,a,0,"touchend")},[e.createVNode(Yf,{messageItem:e.unref(cf)(a),content:a.getMessageContent(),isAudioPlayed:e.unref(w)[a.ID],blinkMessageIDList:e.unref(k),isMultipleSelectMode:t.isMultipleSelectMode,multipleSelectedMessageIDList:e.unref(h),onResendMessage:e=>J(a),onBlinkMessage:X,onScrollTo:K,onChangeSelectMessageIDList:Q,onSetReadReceiptPanelVisible:z},{default:e.withCtx((()=>[a.type===e.unref(y).MSG_TEXT?(e.openBlock(),e.createBlock(Ef,{key:0,content:a.getMessageContent()},null,8,["content"])):a.type===e.unref(y).MSG_IMAGE?(e.openBlock(),e.createBlock(eC,{key:1,content:a.getMessageContent(),messageItem:e.unref(cf)(a)},{default:e.withCtx((()=>[e.createVNode(kf,{content:a.getMessageContent(),messageItem:a,onPreviewImage:e=>(e=>{if(!p.value)return;const t=[],n=p.value.filter(((e,n)=>!e.isRevoked&&!e.hasRiskContent&&e.type===y.value.MSG_IMAGE&&(t.push(n),!0)));uni.previewImage({current:t.indexOf(e),urls:n.map((e=>{var t;return null==(t=e.payload.imageInfoArray)?void 0:t[2].url})),indicator:"number"})})(o)},null,8,["content","messageItem","onPreviewImage"])])),_:2},1032,["content","messageItem"])):a.type===e.unref(y).MSG_VIDEO?(e.openBlock(),e.createBlock(eC,{key:2,content:a.getMessageContent(),messageItem:e.unref(cf)(a)},{default:e.withCtx((()=>[e.createVNode(qf,{content:a.getMessageContent(),messageItem:a},null,8,["content","messageItem"])])),_:2},1032,["content","messageItem"])):a.type===e.unref(y).MSG_AUDIO?(e.openBlock(),e.createBlock(If,{key:3,content:a.getMessageContent(),messageItem:a,broadcastNewAudioSrc:e.unref(D),onSetAudioPlayed:ee,onGetGlobalAudioContext:B},null,8,["content","messageItem","broadcastNewAudioSrc"])):a.type===e.unref(y).MSG_MERGER?(e.openBlock(),e.createBlock(ff,{key:4,renderData:a.payload,messageItem:a,onAssignMessageIDInUniapp:$},null,8,["renderData","messageItem"])):a.type===e.unref(y).MSG_FILE?(e.openBlock(),e.createBlock(Sf,{key:5,content:a.getMessageContent()},null,8,["content"])):a.type===e.unref(y).MSG_FACE?(e.openBlock(),e.createBlock(Tf,{key:6,content:a.getMessageContent()},null,8,["content"])):a.type===e.unref(y).MSG_LOCATION?(e.openBlock(),e.createBlock(Hf,{key:7,content:a.getMessageContent()},null,8,["content"])):a.type===e.unref(y).MSG_CUSTOM?(e.openBlock(),e.createBlock(Mf,{key:8,content:a.getMessageContent(),messageItem:a},null,8,["content","messageItem"])):e.createCommentVNode("",!0)])),_:2},1032,["messageItem","content","isAudioPlayed","blinkMessageIDList","isMultipleSelectMode","multipleSelectedMessageIDList","onResendMessage"])],40,["id","onLongpress","onTouchstart","onTouchend","onMouseover"])),a.ID===e.unref(v)?(e.openBlock(),e.createBlock(Jf,{key:4,class:e.normalizeClass({"message-tool":!0,"message-tool-out":"out"===a.flow,"message-tool-in":"in"===a.flow}),messageItem:a,isMultipleSelectMode:t.isMultipleSelectMode,onToggleMultipleSelectMode:n[1]||(n[1]=()=>i("toggleMultipleSelectMode"))},null,8,["class","messageItem","isMultipleSelectMode"])):e.createCommentVNode("",!0)])],10,["id"])))),128))],40,["scroll-top","scroll-into-view"]),e.createVNode($E,{ref_key:"scrollButtonInstanceRef",ref:S,onScrollToLatestMessage:U},null,512),e.unref(P)?(e.openBlock(),e.createBlock(Kg,{key:2,show:e.unref(P),isH5:!e.unref(Qp),center:!0,isHeaderShow:e.unref(Qp),onSubmit:n[4]||(n[4]=e=>(P.value=!P.value,void A.value.resendMessage())),"onUpdate:show":n[5]||(n[5]=e=>P.value=e)},{default:e.withCtx((()=>[e.createElementVNode("p",{class:"delDialog-title"},e.toDisplayString(e.unref(Tp).t("TUIChat.确认重发该消息?")),1)])),_:1},8,["show","isH5","isHeaderShow"])):e.createCommentVNode("",!0),e.unref(L)?(e.openBlock(),e.createBlock(WE,{key:3,message:Object.assign({},e.unref(b)),onSetReadReceiptPanelVisible:z},null,8,["message"])):e.createCommentVNode("",!0),e.createVNode(gf,{visible:e.unref(M),overlayColor:"transparent",popDirection:"right"},{default:e.withCtx((()=>[e.createVNode(_f,{style:{height:"100%"},isMounted:e.unref(M),messageID:e.unref(N),onCloseOverlay:n[6]||(n[6]=e=>M.value=!1)},null,8,["isMounted","messageID"])])),_:1},8,["visible"])])],2))}}),cC=w(rC,[["__scopeId","data-v-e1c11e4a"]]),lC=class e{constructor(){this.quoteMessageMap=new Map}static getInstance(){return e.instance||(e.instance=new e),e.instance}setStore(e,t,n,a){var o,i;if(e&&(this.isEditorNotEmpty(t)||(null==(o=null==a?void 0:a.message)?void 0:o.ID))){let o={};(null==(i=null==a?void 0:a.message)?void 0:i.ID)&&(this.quoteMessageMap.set(a.message.ID,a.message),o={messageID:a.message.ID,type:a.type});const s={conversationID:e,draftInfo:{html:t,abstract:n,...o}};Mp.setConversationDraft(s),Sp.update(ad.CHAT,"quoteMessage",{message:void 0,type:"quote"})}}getStore(e,t){const n=Sp.getConversationModel(e);if(n){if(n.conversationID&&n.draftText){const e=eg(n.draftText);Sp.update(ad.CHAT,"quoteMessage",{message:this.quoteMessageMap.get(e.messageID)||void 0,type:e.type}),t(e.html)}Mp.setConversationDraft({conversationID:n.conversationID})}}generateAbstract(e){let t="";return null==e||e.forEach((e=>{switch(e.type){case"text":t+=Kh(e.payload.text||"");break;case"image":t+=Tp.t("TUIChat.图片");break;case"video":t+=Tp.t("TUIChat.视频");break;case"file":t+=Tp.t("TUIChat.文件")}})),t}isEditorNotEmpty(e){return e&&!e.includes("is-empty")&&"<p></p>"!==e}};lC.instance=null;const uC=lC.getInstance(),dC=new Map([[3123,"文本包含本地审核拦截词"],[4004,"图片消息失败,无效的图片格式"],[4005,"文件消息失败,禁止发送违规封禁的文件"],[7004,"文件不存在,请检查文件路径是否正确"],[7005,"文件大小超出了限制,如果上传文件,最大限制是100MB"],[8001,"消息长度超出限制,消息长度不要超过12K"],[80001,"消息或者资料中文本存在敏感内容,发送失败"],[80004,"消息中图片存在敏感内容,发送失败"]]),mC=e.defineComponent({__name:"message-input-editor",props:{placeholder:{type:String,default:"this is placeholder"},replayOrReferenceMessage:{type:Object,default:()=>({}),required:!1},isMuted:{type:Boolean,default:!0},muteText:{type:String,default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},isGroup:{type:Boolean,default:!1}},emits:["onTyping","onFocus","onAt"],setup(t,{expose:n,emit:a}){const o=t,i=a,s=e.ref(""),r=e.ref(),c=e.ref(!0),l=e.ref(!0),u=new Map,d=e.ref(),m=e.ref(""),p=e.ref();e.onMounted((()=>{Sp.watch(ad.CONV,{currentConversation:C}),Sp.watch(ad.CHAT,{quoteMessage:k}),uni.$on("insert-emoji",(e=>{var t;s.value+=null==(t=null==e?void 0:e.emoji)?void 0:t.name})),uni.$on("send-message-in-emoji-picker",(()=>{h()}))})),e.onUnmounted((()=>{m.value&&uC.setStore(m.value,s.value,s.value,p.value),uni.$off("insertEmoji"),uni.$off("send-message-in-emoji-picker"),Sp.unwatch(ad.CONV,{currentConversation:C}),Sp.unwatch(ad.CHAT,{quoteMessage:k}),c.value=!0,d.value=null,m.value="",p.value=null,f()}));const h=()=>{const e=g();f(),(async(e,t)=>{Sp.getData(ad.CHAT,"messageSource")&&Sp.update(ad.CHAT,"messageSource",void 0),null==e||e.forEach((async e=>{var n,a,o,i,s,r,c;try{const l={to:(null==(n=null==t?void 0:t.groupProfile)?void 0:n.groupID)||(null==(a=null==t?void 0:t.userProfile)?void 0:a.userID),conversationType:null==t?void 0:t.type,payload:{},needReadReceipt:uf()};let u;const d={offlinePushInfo:{}},m={conversation:t,payload:e.payload,messageType:""};switch(null==e?void 0:e.type){case"text":if(u=JSON.parse(JSON.stringify(null==(o=e.payload)?void 0:o.text)),!u)break;l.payload={text:u},m.messageType=Ip.TYPES.MSG_TEXT,d.offlinePushInfo=hv.create(m),(null==(i=e.payload)?void 0:i.atUserList)?(l.payload.atUserList=e.payload.atUserList,await wp.sendTextAtMessage(l,d)):await wp.sendTextMessage(l,d);break;case"image":l.payload={file:null==(s=e.payload)?void 0:s.file},m.messageType=Ip.TYPES.MSG_IMAGE,d.offlinePushInfo=hv.create(m),await wp.sendImageMessage(l,d);break;case"video":l.payload={file:null==(r=e.payload)?void 0:r.file},m.messageType=Ip.TYPES.MSG_VIDEO,d.offlinePushInfo=hv.create(m),await wp.sendVideoMessage(l,d);break;case"file":l.payload={file:null==(c=e.payload)?void 0:c.file},m.messageType=Ip.TYPES.MSG_FILE,d.offlinePushInfo=hv.create(m),await wp.sendFileMessage(l,d)}Cg("sendMessage")}catch(tI){ug({message:dC.get(null==tI?void 0:tI.code)?Tp.t(`TUIChat.${dC.get(tI.code)}`):null==tI?void 0:tI.message,type:cg}),Sp.getData(ad.CHAT,"quoteMessage")&&Sp.update(ad.CHAT,"quoteMessage",{})}}))})(e,d.value)},g=()=>{let e=s.value;e=(e=>{if(!e)return"";const t=/(\[.+?\])/g;let n=e;return t.test(e)&&(n=e.replace(t,(e=>Zh[e]||e))),n})(e);const t=[];null==u||u.forEach(((n,a)=>{(null==e?void 0:e.includes("@"+n))&&t.push(a)}));const n={text:e};return(null==t?void 0:t.length)&&(n.atUserList=t),[{type:"text",payload:n}]},f=()=>{s.value="",l.value=!0,null==u||u.clear()},v=e=>{s.value=e},_=()=>{c.value=!0},y=e=>{var t;c.value=!1,i("onFocus",null==(t=null==e?void 0:e.detail)?void 0:t.height)},E=e=>{var t;const n=null==(t=null==e?void 0:e.detail)?void 0:t.value;(()=>{var e;l.value=!(null==(e=null==s?void 0:s.value)?void 0:e.length)})(),o.isGroup&&(n.endsWith("@")||n.endsWith("@\n"))&&(null==Op||Op.hideKeyboard(),i("onAt",!0))};function C(e){const t=m.value;d.value=e,m.value=null==e?void 0:e.conversationID,t!==m.value&&(t&&uC.setStore(t,s.value,s.value,p.value),f(),m.value&&uC.getStore(m.value,v))}function k(e){p.value=e}return e.watch((()=>[l.value,c.value]),((e,t)=>{e!==t&&i("onTyping",l.value,c.value)}),{immediate:!0,deep:!0}),n({insertAt:e=>{(null==u?void 0:u.has(null==e?void 0:e.id))||null==u||u.set(null==e?void 0:e.id,null==e?void 0:e.label),s.value+=null==e?void 0:e.label},resetEditor:f,setEditorContent:v,getEditorContent:g}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"message-input-container":!0,"message-input-container-h5":!e.unref(Qp)})},[o.isMuted?(e.openBlock(),e.createElementBlock("div",{key:0,class:"message-input-mute"},e.toDisplayString(o.muteText),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:"editor",ref_key:"inputRef",ref:r,"onUpdate:modelValue":n[0]||(n[0]=t=>e.isRef(s)?s.value=t:null),"adjust-position":!0,"cursor-spacing":"20","confirm-type":"send","confirm-hold":!0,maxlength:"140",type:"text","placeholder-class":"input-placeholder",class:"message-input-area",placeholder:o.placeholder,"auto-blur":"",onConfirm:h,onInput:E,onBlur:_,onFocus:y},null,40,["placeholder"]),[[e.vModelText,e.unref(s)]])],2))}}),pC=w(mC,[["__scopeId","data-v-4a88add0"]]),hC=w(e.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},height:{type:String,default:"fit-content"},closeByClickOutside:{type:Boolean,default:!0},borderRadius:{type:String,default:"0px"},title:{type:String,default:""},showHeaderCloseButton:{type:Boolean,default:!1},showFooterSubmitButton:{type:Boolean,default:!1},submitButtonContent:{type:String,default:()=>Tp.t("确定")}},emits:["onOpen","onClose","onSubmit"],setup(t,{emit:n}){const a=t,o=n,i=e.ref();e.watch((()=>a.show),((t,n)=>{if(t!==n)switch(t){case!0:o("onOpen",i),e.nextTick((()=>{$p&&!nh&&a.closeByClickOutside&&zp.listen({domRefs:i.value,handler:s})}));break;case!1:o("onClose",i)}}));const s=()=>{(nh||$p)&&o("onClose",i)},r=()=>{o("onSubmit"),s()};return(n,o)=>a.show?(e.openBlock(),e.createElementBlock("div",{key:0},[e.unref(Qp)?e.renderSlot(n.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["bottom-popup",e.unref(nh)&&"bottom-popup-uni",!e.unref(Qp)&&"bottom-popup-h5",!e.unref(Qp)&&a.modal&&"bottom-popup-modal"]),onClick:s},[e.createElementVNode("div",{ref_key:"dialogRef",ref:i,class:e.normalizeClass(["bottom-popup-main",!e.unref(Qp)&&"bottom-popup-h5-main"]),style:e.normalizeStyle({height:a.height,borderTopLeftRadius:a.borderRadius,borderTopRightRadius:a.borderRadius}),onClick:o[0]||(o[0]=e.withModifiers((()=>{}),["stop"]))},[t.title||t.showHeaderCloseButton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"header"},[t.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:"header-title"},e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.showHeaderCloseButton?(e.openBlock(),e.createElementBlock("div",{key:1,class:"header-close",onClick:s},e.toDisplayString(e.unref(Tp).t("关闭")),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default",{},void 0,!0),t.showFooterSubmitButton?(e.openBlock(),e.createElementBlock("div",{key:1,class:"footer"},[e.createElementVNode("div",{class:"footer-submit",onClick:r},e.toDisplayString(t.submitButtonContent),1)])):e.createCommentVNode("",!0)],6)],2))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-ff2646d0"]]),gC=w(e.defineComponent({__name:"index",emits:["onAtListOpen","insertAt"],setup(t,{expose:n,emit:a}){const o=a,i=e.ref(),s=e.ref(),r=e.ref(!1),c=e.ref(),l=e.ref(),u=e.ref(),d=e.ref(!1),m=e.ref({left:0,top:0}),p=e.ref(0),h=e.ref(""),g={userID:Ip.TYPES.MSG_AT_ALL,nick:"所有人",isAll:!0,avatar:"https://web.sdk.qcloud.com/im/assets/images/at.svg"};Sp.watch(ad.CONV,{currentConversationID:e=>{var t,n;if(e!==h.value)if(h.value=e,c.value=[],l.value=[],u.value=[],d.value=!1,Sp.update(ad.CUSTOM,"memberList",c.value),null==(t=null==h?void 0:h.value)?void 0:t.startsWith("GROUP")){d.value=!0;const e=null==(n=null==h?void 0:h.value)?void 0:n.substring(5);Dp.switchGroup(e)}else Dp.switchGroup("")}}),Sp.watch(ad.GRP,{currentGroupMemberList:e=>{c.value=e,l.value=[g,...c.value],u.value=l.value,Sp.update(ad.CUSTOM,"memberList",c.value)}});const f=e=>{d.value&&(r.value=e,r.value&&o("onAtListOpen"))};Op.toggleAtList=f,Op.handleAtListPosition=e=>{m.value=e},Op.setCurrentSelectIndex=e=>{var t,n;p.value=e,null==(n=null==(t=s.value)?void 0:t[p.value])||n.scrollIntoView(!1)},Op.setShowMemberList=e=>{u.value=e},n({toggleAtList:f}),e.watch((()=>[m.value,null==i?void 0:i.value]),(()=>{var e;!$p&&(null==i?void 0:i.value)&&(null==(e=null==i?void 0:i.value)?void 0:e.style)&&(i.value.style.left=m.value.left+"px",i.value.style.top=m.value.top-i.value.clientHeight+"px")}));const v=()=>{r.value=!1,u.value=l.value,m.value={left:0,top:0}},_=e=>(null==e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",y=e=>(null==e?void 0:e.nick)?null==e?void 0:e.nick:null==e?void 0:e.userID;return(t,n)=>(e.openBlock(),e.createBlock(hC,{show:e.unref(r),onOnClose:v},{default:e.withCtx((()=>[e.createElementVNode("div",{ref_key:"MessageInputAt",ref:i,class:e.normalizeClass([e.unref(Qp)?"message-input-at":"message-input-at-h5"])},[e.createElementVNode("div",{ref:"dialog",class:"member-list"},[e.unref(Qp)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("header",{key:0,class:"member-list-title"},[e.createElementVNode("span",{class:"title"},e.toDisplayString(e.unref(Tp).t("TUIChat.选择提醒的人")),1)])),e.createElementVNode("ul",{class:"member-list-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,ref_for:!0,ref_key:"memberListItems",ref:s,class:e.normalizeClass(["member-list-box-body",[n===e.unref(p)&&"selected"]]),onClick:e=>(e=>{var t;if(Qp&&Op.selectItem)Op.selectItem(e);else if(null==(t=null==u?void 0:u.value)?void 0:t.length){const t=null==u?void 0:u.value[e];o("insertAt",{id:null==t?void 0:t.userID,label:(null==t?void 0:t.nick)||(null==t?void 0:t.userID)})}v()})(n)},[e.createElementVNode("img",{class:"member-list-box-body-avatar",src:_(t)},null,8,["src"]),e.createElementVNode("span",{class:"member-list-box-body-name"},e.toDisplayString(y(t)),1)],10,["onClick"])))),128))])],512)],2)])),_:1},8,["show"]))}}),[["__scopeId","data-v-08dbad30"]]),fC=e.defineComponent({__name:"message-input-audio",props:{isEnableAudio:{type:Boolean,default:!1}},emits:["changeDisplayType"],setup(t,{emit:n}){const a=n,o=t;let i,s=0,r=!1,c=-1,l=!1,u=!1;const d=null==Op?void 0:Op.getRecorderManager(),m=e.ref(!1),p=e.ref("按住说话"),h=e.ref("正在录音"),g=e.ref(!1),f=e.ref(),v={duration:6e4,sampleRate:44100,numberOfChannels:1,encodeBitRate:192e3,format:"mp3"};function _(){a("changeDisplayType",o.isEnableAudio?"editor":"audio")}function y(e){f.value=e}function E(){k(),C()}function C(){m.value=!1,p.value="按住说话",h.value="正在录音"}function k(e){clearInterval(i),i=void 0,s=0,c=-1,r=!1,(null==e?void 0:e.hasError)||d.stop()}function I(){l&&(u=!0)}function S(){l=!0,d.start(v)}e.onMounted((()=>{d.onStart(N),d.onStop(w),d.onError(D),Sp.watch(ad.CONV,{currentConversation:y})})),e.onUnmounted((()=>{Sp.unwatch(ad.CONV,{currentConversation:y})}));const T=nC((function(e){if(m.value){const t=e.changedTouches[e.changedTouches.length-1].pageY;c<0&&(c=t);const n=c-t;n>150?(p.value="抬起取消",h.value="松开手指 取消发送",r=!0):n>50?(p.value="抬起发送",h.value="继续上滑可取消",r=!1):(p.value="抬起发送",h.value="正在录音",r=!1)}}),100);function M(){l=!1,d.stop()}function N(){if(!l)return u=!0,void d.stop();i=setInterval((()=>{s+=1}),1e3),p.value="抬起发送",m.value=!0}function w(e){var t,n,a,o,c;if(u)return u=!1,void E();if(r||!m.value)return void E();clearInterval(i);const l=e.tempFilePath,d=e.duration?e.duration:1e3*s,p=e.fileSize?e.fileSize:48*s/8*1024;if(d<1e3)ug({message:"录音时间太短",type:lg,duration:1500});else{const e={to:(null==(n=null==(t=null==f?void 0:f.value)?void 0:t.groupProfile)?void 0:n.groupID)||(null==(o=null==(a=null==f?void 0:f.value)?void 0:a.userProfile)?void 0:o.userID),conversationType:null==(c=null==f?void 0:f.value)?void 0:c.type,payload:{file:{duration:d,tempFilePath:l,fileSize:p}},needReadReceipt:uf()};null==wp||wp.sendAudioMessage(e)}E()}function D(){k({hasError:!0}),C()}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"message-input-audio":!0,"message-input-audio-open":e.unref(g)})},[e.createVNode(ih,{class:"audio-message-icon",file:e.unref("/assets/audio.21bb2ba6.svg"),size:"23px",hotAreaSize:"3px",onOnClick:_},null,8,["file"]),o.isEnableAudio?(e.openBlock(),e.createElementBlock("view",{key:0,class:"audio-input-touch-bar",onTouchstart:I,onLongpress:S,onTouchmove:n[0]||(n[0]=(...t)=>e.unref(T)&&e.unref(T)(...t)),onTouchend:M},[e.createElementVNode("span",null,e.toDisplayString(e.unref(Tp).t(`TUIChat.${e.unref(p)}`)),1),e.unref(m)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"record-modal"},[e.createElementVNode("div",{class:"red-mask"}),e.createElementVNode("view",{class:"float-element moving-slider"}),e.createElementVNode("view",{class:"float-element modal-title"},e.toDisplayString(e.unref(Tp).t(`TUIChat.${e.unref(h)}`)),1)])):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],2))}}),vC=w(fC,[["__scopeId","data-v-32f4d289"]]),_C=w(e.defineComponent({__name:"index",props:{displayType:{default:"editor"}},setup(t){const n=t,a=Ip.TYPES,o=e.ref();e.onMounted((()=>{Sp.watch(ad.CHAT,{quoteMessage:r})})),e.onUnmounted((()=>{Sp.unwatch(ad.CHAT,{quoteMessage:r})}));const i=e.computed((()=>{var e,t;let n;switch(null==(e=o.value)?void 0:e.type){case a.MSG_TEXT:n=Kh(null==(t=o.value.payload)?void 0:t.text);break;case a.MSG_IMAGE:n=Tp.t("TUIChat.图片");break;case a.MSG_AUDIO:n=Tp.t("TUIChat.语音");break;case a.MSG_VIDEO:n=Tp.t("TUIChat.视频");break;case a.MSG_FILE:n=Tp.t("TUIChat.文件");break;case a.MSG_CUSTOM:n=Tp.t("TUIChat.自定义");break;case a.MSG_FACE:n=Tp.t("TUIChat.表情");break;case a.MSG_MERGER:n=Tp.t("TUIChat.聊天记录");break;default:n=Tp.t("TUIChat.消息")}return n}));function s(){Sp.update(ad.CHAT,"quoteMessage",{message:void 0,type:"quote"})}function r(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)?o.value=e.message:o.value=void 0}return(t,a)=>Boolean(e.unref(o))&&"audio"!==n.displayType?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({"input-quote-container":!0,"input-quote-container-uni":e.unref(nh),"input-quote-container-h5":e.unref($p)})},[e.createElementVNode("div",{class:"input-quote-content"},[e.createElementVNode("div",{class:"max-one-line"},e.toDisplayString(e.unref(o).nick||e.unref(o).from)+": "+e.toDisplayString(e.unref(i)),1),e.createVNode(ih,{class:"input-quote-close-icon",file:e.unref(KE),width:"11px",height:"11px",onOnClick:s},null,8,["file"])])],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-5f71863a"]]),yC=w(e.defineComponent({__name:"index",props:{placeholder:{default:"this is placeholder"},isMuted:{type:Boolean,default:!0},muteText:{default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},replyOrReference:{default:()=>({})},inputToolbarDisplayType:{default:"none"}},emits:["changeToolbarDisplayType"],setup(t,{expose:n,emit:a}){const o=a,i=t,s=e.ref(),r=e.ref(),c=e.ref(),l=e.ref(!1),u=e.ref("editor"),d=Df.getFeatureConfig(),m=e.ref(d.InputVoice),p=e.ref(d.InputEmoji||d.InputStickers),h=e.ref(d.InputImage||d.InputVideo||d.InputEvaluation||d.InputQuickReplies);function g(e){u.value=e,"audio"===e&&o("changeToolbarDisplayType","none")}function f(e){o("changeToolbarDisplayType",e)}e.onMounted((()=>{Sp.watch(ad.CONV,{currentConversation:k}),Sp.watch(ad.CHAT,{quoteMessage:I})})),e.onUnmounted((()=>{Sp.unwatch(ad.CONV,{currentConversation:k}),Sp.unwatch(ad.CHAT,{quoteMessage:I})})),e.watch((()=>i.inputToolbarDisplayType),(e=>{"none"!==e&&g("editor")}));const v=(e,t)=>{((e,t)=>{e||t?wp.leaveTypingState():wp.enterTypingState()})(e,t)},_=e=>{var t;null==(t=null==r?void 0:r.value)||t.toggleAtList(e)},y=()=>{$p&&o("changeToolbarDisplayType","none")},E=e=>{var t,n;(null==(t=null==s?void 0:s.value)?void 0:t.insertAt)&&(null==(n=null==s?void 0:s.value)||n.insertAt(e))},C=()=>{var e,t;(null==(e=null==s?void 0:s.value)?void 0:e.blur)&&(null==(t=null==s?void 0:s.value)||t.blur())};function k(e){var t;c.value=e,l.value=(null==(t=c.value)?void 0:t.type)===Ip.TYPES.CONV_GROUP}function I(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)&&g("editor")}return n({insertEmoji:e=>{var t,n;(null==(t=null==s?void 0:s.value)?void 0:t.addEmoji)&&(null==(n=null==s?void 0:s.value)||n.addEmoji(e))},reEdit:e=>{var t,n;null==(t=null==s?void 0:s.value)||t.resetEditor(),null==(n=null==s?void 0:s.value)||n.setEditorContent(e)}}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["message-input",!e.unref(Qp)&&"message-input-h5"])},[e.createElementVNode("div",{class:"audio-main-content-line"},[(e.unref(eh)||e.unref(th))&&e.unref(m)?(e.openBlock(),e.createBlock(vC,{key:0,class:e.normalizeClass({"message-input-wx-audio-open":"audio"===e.unref(u)}),isEnableAudio:"audio"===e.unref(u),onChangeDisplayType:g},null,8,["class","isEnableAudio"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(pC,{ref_key:"editor",ref:s,class:"message-input-editor",placeholder:i.placeholder,isMuted:i.isMuted,muteText:i.muteText,enableInput:i.enableInput,enableAt:i.enableAt,enableTyping:i.enableTyping,isGroup:e.unref(l),onOnTyping:v,onOnAt:_,onOnFocus:y},null,8,["placeholder","isMuted","muteText","enableInput","enableAt","enableTyping","isGroup"]),[[e.vShow,"editor"===e.unref(u)]]),i.enableAt?(e.openBlock(),e.createBlock(gC,{key:1,ref_key:"messageInputAtRef",ref:r,onInsertAt:E,onOnAtListOpen:C},null,512)):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createBlock(ih,{key:2,class:"icon icon-face",file:e.unref("/assets/face-uni.e33f5632.png"),size:"23px",hotAreaSize:"3px",onOnClick:n[0]||(n[0]=e=>f("emojiPicker"))},null,8,["file"])):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createBlock(ih,{key:3,class:"icon icon-more",file:e.unref("/assets/more-uni.030c2d9a.png"),size:"23px",hotAreaSize:"3px",onOnClick:n[1]||(n[1]=e=>f("tools"))},null,8,["file"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",null,[e.createVNode(_C,{style:{minWidth:0},displayType:e.unref(u)},null,8,["displayType"])])],2))}}),[["__scopeId","data-v-de604828"]]),EC=w(e.defineComponent({__name:"index",emits:["oneByOneForwardMessage","mergeForwardMessage","toggleMultipleSelectMode"],setup(t,{emit:n}){const a=n,o=e.ref(ah?"25px":"30px");function i(){a("oneByOneForwardMessage")}function s(){a("mergeForwardMessage")}function r(){a("toggleMultipleSelectMode")}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"mulitple-select-panel":!0,"mulitple-select-panel-mobile":e.unref(ah)})},[e.createElementVNode("div",{class:"forward-button",onClick:i},[e.createVNode(ih,{file:e.unref("/assets/forward-each.d0857f96.svg"),size:e.unref(o)},null,8,["file","size"]),e.createElementVNode("span",{class:e.normalizeClass({"forward-button-text":!0,"forward-button-text-mobile":e.unref(ah)})},e.toDisplayString(e.unref(Tp).t("TUIChat.逐条转发")),3)]),e.createElementVNode("div",{class:"forward-button",onClick:s},[e.createVNode(ih,{file:e.unref("/assets/forward-merge.73273fff.svg"),size:e.unref(o)},null,8,["file","size"]),e.createElementVNode("span",{class:e.normalizeClass({"forward-button-text":!0,"forward-button-text-mobile":e.unref(ah)})},e.toDisplayString(e.unref(Tp).t("TUIChat.合并转发")),3)]),e.createElementVNode("div",{class:"forward-button",onClick:r},[e.createVNode(ih,{class:"cancel-button-icon",file:e.unref("/assets/add-circle.376cda7c.svg"),size:e.unref(o)},null,8,["file","size"]),e.createElementVNode("span",{class:e.normalizeClass({"forward-button-text":!0,"forward-button-text-mobile":e.unref(ah)})},e.toDisplayString(e.unref(Tp).t("TUIChat.取消")),3)])],2))}}),[["__scopeId","data-v-0ac28d32"]]),CC="/assets/selected.1c6e50da.svg",kC=e.defineComponent({__name:"index",props:{list:{type:Array,default:()=>[]},selectedList:{type:Array,default:()=>[]},isSearch:{type:Boolean,default:!0},isRadio:{type:Boolean,default:!1},isCustomItem:{type:Boolean,default:!1},title:{type:String,default:""},type:{type:String,default:""},resultShow:{type:Boolean,default:!0},total:{type:Number,default:0},isHiddenBackIcon:{type:Boolean,default:!1}},emits:["search","submit","cancel","getMore"],setup(t,{emit:n}){const a=t,o=e.ref([]),i=e.ref(0),s=e.ref([]),r=e.ref(!0),c=e.ref(!1),l=e.ref(""),u=e.ref("");e.watchEffect((()=>{if(a.isCustomItem)for(let e=0;e<a.list.length;e++)a.list[e].conversationID.indexOf("@TIM#SYSTEM")>-1&&a.list.splice(e,1),o.value=a.list;else o.value=a.list;i.value=a.total?a.total:a.list.length,s.value=a.selectedList&&a.selectedList.length>0?a.selectedList:s.value,r.value=a.isSearch,c.value=a.isCustomItem,l.value=a.title}));const d=n,m=e.computed((()=>o.value.filter((e=>!e.isDisabled)))),p=e=>{u.value=e.target.value||e.detail.value,d("search",u.value)},h=e=>{if(e.isDisabled)return;let t=s.value;const n=t.indexOf(e);if(n>-1)return s.value.splice(n,1);a.isRadio&&(t=[]),t.push(e),s.value=t},g=()=>{s.value.length===m.value.length?s.value=[]:s.value=[...m.value]},f=()=>{d("submit",s.value),u.value=""},v=()=>{d("cancel"),u.value=""},_=()=>{d("getMore")};return(n,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["transfer",[e.unref(Qp)?"":"transfer-h5",e.unref(ah)?"transfer-h5-wechat":""]])},[e.unref(Qp)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("header",{key:0,class:"transfer-header transfer-h5-header"},[a.isHiddenBackIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:v},[e.createVNode(ih,{class:"icon",file:e.unref(rf),width:"18px",height:"18px"},null,8,["file"])])),e.createElementVNode("span",{class:"title"},e.toDisplayString(e.unref(l)),1),e.createElementVNode("span",{class:"space"})])),e.createElementVNode("main",{class:"main"},[e.createElementVNode("div",{class:"left"},[e.createElementVNode("header",{class:"transfer-header"},[e.unref(Qp)&&e.unref(r)?(e.openBlock(),e.createElementBlock("input",{key:0,type:"text",value:e.unref(u),placeholder:e.unref(Tp).t("component.请输入userID"),enterkeyhint:"search",class:e.normalizeClass([e.unref(nh)?"left-uniapp-input":""]),onKeyup:e.withKeys(p,["enter"])},null,42,["value","placeholder"])):e.createCommentVNode("",!0),!e.unref(Qp)&&e.unref(r)?(e.openBlock(),e.createElementBlock("input",{key:1,type:"text",placeholder:e.unref(Tp).t("component.请输入userID"),enterkeyhint:"search",value:e.unref(u),class:e.normalizeClass([e.unref(nh)?"left-uniapp-input":""]),onBlur:p,onConfirm:p},null,42,["placeholder","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("main",{class:"transfer-left-main"},[e.createElementVNode("ul",{class:"transfer-list"},[e.unref(m).length>1&&!t.isRadio?(e.openBlock(),e.createElementBlock("li",{key:0,class:"transfer-list-item",onClick:g},[e.unref(s).length===e.unref(m).length?(e.openBlock(),e.createBlock(ih,{key:0,file:e.unref(CC),width:"18px",height:"18px"},null,8,["file"])):(e.openBlock(),e.createElementBlock("i",{key:1,class:"icon-unselected"})),e.createElementVNode("span",{class:"select-all"},e.toDisplayString(e.unref(Tp).t("component.全选")),1)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),(t=>(e.openBlock(),e.createElementBlock("li",{key:t.userID,class:"transfer-list-item",onClick:e=>h(t)},[e.unref(s).indexOf(t)>-1?(e.openBlock(),e.createBlock(ih,{key:0,file:e.unref(CC),class:e.normalizeClass([t.isDisabled&&"disabled"]),width:"18px",height:"18px"},null,8,["file","class"])):(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass([t.isDisabled&&"disabled","icon-unselected"])},null,2)),e.unref(c)?e.renderSlot(n.$slots,"left",{key:3,data:t},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("img",{class:"avatar",src:t.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,["src"]),e.createElementVNode("span",{class:"name"},e.toDisplayString(t.nick||t.userID),1),t.isDisabled?(e.openBlock(),e.createElementBlock("span",{key:0},""+e.toDisplayString(e.unref(Tp).t("component.已在群中"))+"",1)):e.createCommentVNode("",!0)],64))],8,["onClick"])))),128)),e.unref(i)>e.unref(o).length?(e.openBlock(),e.createElementBlock("li",{key:1,class:"transfer-list-item more",onClick:_},e.toDisplayString(e.unref(Tp).t("component.查看更多")),1)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",{class:"right"},[e.unref(Qp)?(e.openBlock(),e.createElementBlock("header",{key:0,class:"transfer-header"},e.toDisplayString(e.unref(l)),1)):e.createCommentVNode("",!0),t.resultShow?(e.openBlock(),e.createElementBlock("ul",{key:1,class:"transfer-list"},[e.unref(s).length>0&&e.unref(Qp)?(e.openBlock(),e.createElementBlock("p",{key:0,class:"transfer-text"},e.toDisplayString(e.unref(Tp).t("component.已选中"))+e.toDisplayString(e.unref(s).length)+e.toDisplayString(e.unref(Tp).t("component.人")),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),((t,a)=>(e.openBlock(),e.createElementBlock("li",{key:a,class:"transfer-list-item space-between"},[e.createElementVNode("aside",{class:"transfer-list-item-content"},[e.unref(c)?e.renderSlot(n.$slots,"right",{key:1,data:t},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("img",{class:"avatar",src:t.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,["src"]),e.unref(Qp)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"name"},e.toDisplayString(t.nick||t.userID),1)):e.createCommentVNode("",!0)],64))]),e.unref(Qp)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:e=>h(t)},[e.createVNode(ih,{file:e.unref("/assets/cancel.051cb10c.svg"),width:"18px",height:"18px"},null,8,["file"])],8,["onClick"])):e.createCommentVNode("",!0)])))),128))])):e.createCommentVNode("",!0),e.createElementVNode("footer",{class:"transfer-right-footer"},[e.createElementVNode("button",{class:"btn btn-cancel",onClick:v},e.toDisplayString(e.unref(Tp).t("component.取消")),1),e.unref(s).length>0?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn",onClick:f},e.toDisplayString(e.unref(Tp).t("component.完成")),1)):(e.openBlock(),e.createElementBlock("button",{key:1,class:"btn btn-no",onClick:f},e.toDisplayString(e.unref(Tp).t("component.完成")),1))])])])],2))}}),IC=w(kC,[["__scopeId","data-v-1c77cba1"]]),SC=e.defineComponent({__name:"index",emits:["toggleMultipleSelectMode"],setup(t,{emit:n}){const a=n;let o=[],i=!1;const s=e.ref(!1),r=e.ref();function c(e){void 0!==e&&(i=!1,o=[e],m())}function l(e){if(!e)return;i=!1;const{isMergeForward:t,messageIDList:n}=e||{};(null==n?void 0:n.length)>0?(i=t,o=n,m()):ug({message:Tp.t("TUIChat.未选择消息"),type:cg})}function u(){Sp.update(ad.CUSTOM,"singleForwardMessageID",void 0),Sp.update(ad.CUSTOM,"multipleForwardMessageID",void 0)}function d(){u(),s.value=!1}function m(){!function(){const e=Sp.getData(ad.CONV,"conversationList");r.value=e.map((e=>({userID:e.conversationID,nick:e.getShowName(),avatar:e.getAvatar()})))}(),s.value=!0}function p(e){if(0===(null==e?void 0:e.length))return;const t=e.map((e=>Sp.getConversationModel(e.userID))),n=o.map((e=>Sp.getMessageModel(e))).sort(((e,t)=>e.time-t.time)),s=t.map((e=>{const t={conversation:e,messageType:Ip.TYPES.MSG_MERGER};return wp.sendForwardMessage([e],n,{needMerge:i,offlinePushInfo:hv.create(t),params:{needReadReceipt:uf()}})}));Promise.allSettled(s).then((e=>{for(const t of e){const{status:e}=t;if("rejected"===e){const e=80001===t.reason.code?Tp.t("TUIChat.内容包含敏感词汇"):t.reason.message;ug({message:e,type:cg});break}}})),d(),a("toggleMultipleSelectMode",!1)}return e.onMounted((()=>{Sp.watch(ad.CUSTOM,{singleForwardMessageID:c,multipleForwardMessageID:l})})),e.onUnmounted((()=>{Sp.unwatch(ad.CUSTOM,{singleForwardMessageID:c,multipleForwardMessageID:l}),u()})),(t,n)=>(e.openBlock(),e.createBlock(Xg,{visible:e.unref(s),useMask:!1},{default:e.withCtx((()=>[e.createVNode(IC,{title:e.unref(Tp).t("TUIChat.转发"),isSearch:!1,isCustomItem:!1,list:e.unref(r),isHiddenBackIcon:e.unref(nh),onCancel:d,onSubmit:p},null,8,["title","list","isHiddenBackIcon"])])),_:1},8,["visible"]))}}),TC=w(e.defineComponent({__name:"index",props:{iconFile:{type:String,required:!0},title:{type:String,default:""},needDialog:{type:Boolean,default:!0},iconWidth:{type:String,default:"20px"},iconHeight:{type:String,default:"20px"},needBottomPopup:{type:Boolean,default:!1}},emits:["onIconClick","onDialogClose","onDialogShow"],setup(t,{expose:n,emit:a}){const o=t,i=a,s=e.ref("dark"===Df.getTheme()),r=e.ref(!1),c=e.ref(),l=e.ref(),u=()=>{i("onIconClick",l),Qp&&zp.listen({domRefs:c.value,handler:d}),o.needDialog&&m(!r.value)},d=()=>{r.value=!1,i("onDialogClose",l)},m=e=>{if(r.value!==e)switch(r.value=e,e){case!0:i("onDialogShow",l);break;case!1:i("onDialogClose",l)}},p=()=>{r.value=!1};return n({toggleDialogDisplay:m}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"toolbarItemRef",ref:c,class:e.normalizeClass(["toolbar-item-container",!e.unref(Qp)&&"toolbar-item-container-h5",e.unref(nh)&&"toolbar-item-container-uni"])},[e.createElementVNode("div",{class:e.normalizeClass(["toolbar-item-container-icon",e.unref(nh)&&"toolbar-item-container-uni-icon"]),onClick:u},[e.createVNode(ih,{file:o.iconFile,class:"icon",width:o.iconWidth,height:o.iconHeight},null,8,["file","width","height"])],2),e.unref(nh)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["toolbar-item-container-uni-title"])},e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{ref_key:"dialogRef",ref:l,class:e.normalizeClass(["toolbar-item-container-dialog",e.unref(s)&&"toolbar-item-container-dialog-dark",!e.unref(Qp)&&"toolbar-item-container-h5-dialog",e.unref(nh)&&"toolbar-item-container-uni-dialog"])},[o.needBottomPopup&&!e.unref(Qp)?(e.openBlock(),e.createBlock(hC,{key:0,class:"toolbar-bottom-popup",show:e.unref(r),onTouchmove:n[0]||(n[0]=e.withModifiers((()=>{}),["stop","prevent"])),onOnClose:p},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)])),_:3},8,["show"])):e.renderSlot(t.$slots,"default",{key:1},void 0,!0)],2),[[e.vShow,e.unref(r)]])],2))}}),[["__scopeId","data-v-5e68d98a"]]),MC="/assets/camera-uni.e7fd6e1a.png",NC=e.defineComponent({__name:"index",props:{imageSourceType:{type:String,default:"album"}},setup(t){const n=t,a=e.ref(),o=e.ref(),i={web_album:{icon:"dark"===Df.getTheme()?"/assets/image-dark.44be7480.svg":"/assets/image-light.ef346b4b.svg",title:"图片"},uni_album:{icon:"/assets/image-uni.3e951cbb.png",title:"图片"},uni_camera:{icon:MC,title:"拍照"}};Sp.watch(ad.CONV,{currentConversation:e=>{o.value=e}});const s=e.computed((()=>nh?"camera"===n.imageSourceType?i.uni_camera:i.uni_album:i.web_album)),r=()=>{var e;nh?eh&&(null==Op?void 0:Op.chooseMedia)?null==Op||Op.chooseMedia({count:1,mediaType:["image"],sizeType:["original","compressed"],sourceType:[n.imageSourceType],success:function(e){l(e)}}):null==Op||Op.chooseImage({count:1,sourceType:[n.imageSourceType],success:function(e){l(e)}}):(null==(e=a.value)?void 0:e.click)&&a.value.click()},c=e=>{var t,n;(null==(n=null==(t=null==e?void 0:e.target)?void 0:t.files)?void 0:n.length)<=0||(l(null==e?void 0:e.target),e.target.value="")},l=e=>{var t,n,a,i,s;if(!e)return;const r={to:(null==(n=null==(t=null==o?void 0:o.value)?void 0:t.groupProfile)?void 0:n.groupID)||(null==(i=null==(a=null==o?void 0:o.value)?void 0:a.userProfile)?void 0:i.userID),conversationType:null==(s=null==o?void 0:o.value)?void 0:s.type,payload:{file:e},needReadReceipt:uf()},c={conversation:o.value,payload:r.payload,messageType:Ip.TYPES.MSG_IMAGE},l={offlinePushInfo:hv.create(c)};wp.sendImageMessage(r,l)};return(t,n)=>(e.openBlock(),e.createBlock(TC,{iconFile:e.unref(s).icon,title:e.unref(s).title,iconWidth:e.unref(nh)?"32px":"20px",iconHeight:e.unref(nh)?"25px":"18px",needDialog:!1,onOnIconClick:r},{default:e.withCtx((()=>[e.unref(nh)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["image-upload",!e.unref(Qp)&&"image-upload-h5"])},[e.createElementVNode("input",{ref_key:"inputRef",ref:a,title:"图片",type:"file","data-type":"image",accept:"image/gif,image/jpeg,image/jpg,image/png,image/bmp,image/webp",onChange:c},null,544)],2))])),_:1},8,["iconFile","title","iconWidth","iconHeight"]))}}),wC=w(NC,[["__scopeId","data-v-85be0b12"]]),DC="/assets/video-uni.0b4d3e53.png",bC=e.defineComponent({__name:"index",props:{videoSourceType:{type:String,default:"album"}},setup(t){const n=t,a=e.ref(),o=e.ref();Sp.watch(ad.CONV,{currentConversation:e=>{o.value=e}});const i=()=>{if(!nh){return"dark"===Df.getTheme()?"/assets/video-dark.0bbf3476.svg":"/assets/video-light.c7253748.svg"}switch(n.videoSourceType){case"album":default:return DC;case"camera":return MC}},s=()=>{var e,t;nh?eh&&(null==Op?void 0:Op.chooseMedia)?null==Op||Op.chooseMedia({mediaType:["video"],count:1,sourceType:[n.videoSourceType],maxDuration:60,success:function(e){c(e)}}):null==Op||Op.chooseVideo({count:1,sourceType:[n.videoSourceType],compressed:!1,success:function(e){c(e)}}):(null==(e=null==a?void 0:a.value)?void 0:e.click)&&(null==(t=null==a?void 0:a.value)||t.click())},r=e=>{var t,n;(null==(n=null==(t=null==e?void 0:e.target)?void 0:t.files)?void 0:n.length)<=0||(c(null==e?void 0:e.target),e.target.value="")},c=e=>{var t,n,a,i,s;if(!e)return;const r={to:(null==(n=null==(t=null==o?void 0:o.value)?void 0:t.groupProfile)?void 0:n.groupID)||(null==(i=null==(a=null==o?void 0:o.value)?void 0:a.userProfile)?void 0:i.userID),conversationType:null==(s=null==o?void 0:o.value)?void 0:s.type,payload:{file:e},needReadReceipt:uf()},c={conversation:o.value,payload:r.payload,messageType:Ip.TYPES.MSG_VIDEO},l={offlinePushInfo:hv.create(c)};wp.sendVideoMessage(r,l)};return(t,o)=>(e.openBlock(),e.createBlock(TC,{iconFile:i(),title:nh&&"camera"===n.videoSourceType?"录制":"视频",needDialog:!1,iconWidth:e.unref(nh)?"32px":"20px",iconHeight:e.unref(nh)?"album"===n.videoSourceType?"20px":"25px":"18px",onOnIconClick:s},{default:e.withCtx((()=>[e.createElementVNode("div",{class:e.normalizeClass(["video-upload",!e.unref(Qp)&&"video-upload-h5"])},[e.createElementVNode("input",{ref_key:"inputRef",ref:a,title:"视频",type:"file","data-type":"video",accept:"video/*",onChange:r},null,544)],2)])),_:1},8,["iconFile","title","iconWidth","iconHeight"]))}}),LC=w(bC,[["__scopeId","data-v-d124a627"]]),PC={product:{label:"产品文档",url:"https://cloud.tencent.com/document/product/269/1499#.E7.BE.A4.E7.BB.84.E5.8A.9F.E8.83.BD"},customMessage:{label:"自定义消息",url:"https://web.sdk.qcloud.com/im/doc/v3/zh-cn/SDK.html#createCustomMessage"},complaint:{label:"点此投诉",url:"https://cloud.tencent.com/apply/p/xc3oaubi98g"},implement:{label:"集成TUICallKit",url:"https://cloud.tencent.com/document/product/269/79861"},purchase:{label:"开通腾讯实时音视频服务",url:"https://cloud.tencent.com/document/product/1640/79968"}},AC=w(e.defineComponent({__name:"index",props:{starTotal:{type:Number,default:5}},emits:["onDialogPopupShowOrHide"],setup(t,{emit:n}){const a="dark"===Df.getTheme()?"/assets/evalute-dark.3c868e68.svg":"/assets/evalute-light.be0fb5bf.svg",o=t,i=n,s=e.ref(),r=e.ref(o.starTotal),c=e.ref(-1),l=e.ref(""),u=e.ref();Sp.watch(ad.CONV,{currentConversation:e=>{u.value=e}});const d=e.computed((()=>l.value.length||c.value>=0)),m=()=>{i("onDialogPopupShowOrHide",!0)},p=()=>{g(),i("onDialogPopupShowOrHide",!1)},h=()=>{var e;null==(e=null==s?void 0:s.value)||e.toggleDialogDisplay(!1)},g=()=>{c.value=-1,l.value=""},f=()=>{var e,t,n,a,o,i;if(c.value<0&&!l.value.length)return;const r={data:JSON.stringify({businessID:Bh.EVALUATE,version:1,score:c.value+1,comment:l.value}),description:"对本次的服务评价",extension:"对本次的服务评价"},d={to:(null==(t=null==(e=null==u?void 0:u.value)?void 0:e.groupProfile)?void 0:t.groupID)||(null==(a=null==(n=null==u?void 0:u.value)?void 0:n.userProfile)?void 0:a.userID),conversationType:null==(o=null==u?void 0:u.value)?void 0:o.type,payload:r,needReadReceipt:uf()},m={conversation:u.value,payload:d.payload,messageType:Ip.TYPES.MSG_CUSTOM},p={offlinePushInfo:hv.create(m)};wp.sendCustomMessage(d,p),null==(i=null==s?void 0:s.value)||i.toggleDialogDisplay(!1)};return(t,n)=>(e.openBlock(),e.createBlock(TC,{ref_key:"container",ref:s,iconFile:e.unref(a),title:"评价",needBottomPopup:!0,iconWidth:e.unref(nh)?"26px":"20px",iconHeight:e.unref(nh)?"26px":"20px",onOnDialogShow:m,onOnDialogClose:p},{default:e.withCtx((()=>[e.createElementVNode("div",{class:e.normalizeClass(["evaluate",!e.unref(Qp)&&"evaluate-h5"])},[e.createElementVNode("div",{class:e.normalizeClass(["evaluate-header",!e.unref(Qp)&&"evaluate-h5-header"])},[e.createElementVNode("div",{class:e.normalizeClass(["evaluate-header-content",!e.unref(Qp)&&"evaluate-h5-header-content"])},e.toDisplayString(e.unref(Tp).t("Evaluate.请对本次服务进行评价")),3),e.unref(Qp)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["evaluate-header-close",!e.unref(Qp)&&"evaluate-h5-header-close"]),onClick:e.withModifiers(h,["stop"])},e.toDisplayString(e.unref(Tp).t("关闭")),3))],2),e.createElementVNode("div",{class:e.normalizeClass(["evaluate-content",!e.unref(Qp)&&"evaluate-h5-content"])},[e.createElementVNode("ul",{class:e.normalizeClass(["evaluate-content-list",!e.unref(Qp)&&"evaluate-h5-content-list"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:e.normalizeClass(["evaluate-content-list-item",!e.unref(Qp)&&"evaluate-h5-content-list-item"]),onClick:e.withModifiers((e=>{return t=n,void(c.value===t?c.value=c.value-1:c.value=t);var t}),["stop"])},[n<=e.unref(c)?(e.openBlock(),e.createBlock(ih,{key:0,file:e.unref(tg),width:e.unref(Qp)?"20px":"30px",height:e.unref(Qp)?"20px":"30px"},null,8,["file","width","height"])):(e.openBlock(),e.createBlock(ih,{key:1,file:e.unref("/assets/star.8a9a7e2e.png"),width:e.unref(Qp)?"20px":"30px",height:e.unref(Qp)?"20px":"30px"},null,8,["file","width","height"]))],10,["onClick"])))),128))],2),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":n[0]||(n[0]=t=>e.isRef(l)?l.value=t:null),class:e.normalizeClass(["evaluate-content-text",!e.unref(Qp)&&"evaluate-h5-content-text"])},null,2),[[e.vModelText,e.unref(l)]]),e.createElementVNode("div",{class:e.normalizeClass(["evaluate-content-button",!e.unref(Qp)&&"evaluate-h5-content-button"])},[e.createElementVNode("button",{class:e.normalizeClass(["btn",e.unref(d)?"btn-valid":"btn-invalid"]),onClick:f},e.toDisplayString(e.unref(Tp).t("Evaluate.提交评价")),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["evaluate-adv",!e.unref(Qp)&&"evaluate-h5-adv"])},[e.createTextVNode(e.toDisplayString(e.unref(Tp).t("Evaluate.服务评价工具"))+" "+e.toDisplayString("("+e.unref(Tp).t("Evaluate.使用"))+" ",1),e.createElementVNode("a",{onClick:n[1]||(n[1]=t=>{return e.unref(PC).customMessage,void((Qp||$p)&&window.open(null==(n=null==PC?void 0:PC.customMessage)?void 0:n.url));var n})},e.toDisplayString(e.unref(Tp).t(`Evaluate.${e.unref(PC).customMessage.label}`)),1),e.createTextVNode(" "+e.toDisplayString(e.unref(Tp).t("Evaluate.搭建")+")"),1)],2)],2)])),_:1},8,["iconFile","iconWidth","iconHeight"]))}}),[["__scopeId","data-v-a4a0412f"]]),RC=[{value:"在吗?在吗?在吗?重要的话说三遍。"},{value:"好久没聊天了,快来和我说说话~"},{value:"好的,就这么说定了。"},{value:"感恩的心,感谢有你。"},{value:"糟糕!是心动的感觉!"},{value:"心疼地抱抱自己,我太难了!"},{value:"没关系,别在意,事情过去就过去了。"},{value:"早上好,今天也是让人期待的一天呢!"},{value:"熬夜有什么用,又没人陪你聊天,早点休息吧。"}],OC=w(e.defineComponent({__name:"index",emits:["onDialogPopupShowOrHide"],setup(t,{emit:n}){const a="dark"===Df.getTheme()?"/assets/words-dark.cda35c0a.svg":"/assets/words-light.97e1bc17.svg",o=n,i=e.ref(),s=e.ref();Sp.watch(ad.CONV,{currentConversation:e=>{i.value=e}});const r=()=>{var e;null==(e=null==s?void 0:s.value)||e.toggleDialogDisplay(!1)},c=()=>{o("onDialogPopupShowOrHide",!0)},l=()=>{o("onDialogPopupShowOrHide",!1)};return(t,n)=>(e.openBlock(),e.createBlock(TC,{ref_key:"container",ref:s,iconFile:e.unref(a),title:"常用语",needBottomPopup:!0,iconWidth:e.unref(nh)?"26px":"20px",iconHeight:e.unref(nh)?"26px":"20px",onOnDialogShow:c,onOnDialogClose:l},{default:e.withCtx((()=>[e.createElementVNode("div",{class:e.normalizeClass(["words",!e.unref(Qp)&&"words-h5"])},[e.createElementVNode("div",{class:e.normalizeClass(["words-header",!e.unref(Qp)&&"words-h5-header"])},[e.createElementVNode("span",{class:e.normalizeClass(["words-header-title",!e.unref(Qp)&&"words-h5-header-title"])},e.toDisplayString(e.unref(Tp).t("Words.常用语-快捷回复工具")),3),e.unref(Qp)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["words-header-close",!e.unref(Qp)&&"words-h5-header-close"]),onClick:r}," 关闭 ",2))],2),e.createElementVNode("ul",{class:e.normalizeClass(["words-list",!e.unref(Qp)&&"words-h5-list"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(RC),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:e.normalizeClass(["words-list-item",!e.unref(Qp)&&"words-h5-list-item"]),onClick:e=>(e=>{var t,n,a,o,r,c;const l={to:(null==(n=null==(t=null==i?void 0:i.value)?void 0:t.groupProfile)?void 0:n.groupID)||(null==(o=null==(a=null==i?void 0:i.value)?void 0:a.userProfile)?void 0:o.userID),conversationType:null==(r=null==i?void 0:i.value)?void 0:r.type,payload:{text:Tp.t(`Words.${e.value}`)},needReadReceipt:uf()};wp.sendTextMessage(l),null==(c=null==s?void 0:s.value)||c.toggleDialogDisplay(!1)})(t)},e.toDisplayString(e.unref(Tp).t(`Words.${t.value}`)),11,["onClick"])))),128))],2)],2)])),_:1},8,["iconFile","iconWidth","iconHeight"]))}}),[["__scopeId","data-v-1cf1abee"]]),VC=w(e.defineComponent({__name:"emoji-picker-dialog",emits:["insertEmoji","onClose","sendMessage"],setup(t,{emit:n}){var a;const o="dark"===Df.getTheme()?"/assets/face-dark.21e333dd.svg":"/assets/face-light.61678cbe.svg",i=n,s=e.ref(0),r=e.ref(),c=e.ref(),l=e.ref(),u=Df.getFeatureConfig(),d=e.ref(Jh.filter((e=>e.type===xh.BASIC?u.InputEmoji:e.type===xh.BIG?u.InputStickers:void 0))),m=e.ref(null==d?void 0:d.value[0]),p=e.ref(null==(a=null==d?void 0:d.value[0])?void 0:a.list);e.onMounted((()=>{Sp.watch(ad.CONV,{currentConversation:f})})),e.onUnmounted((()=>{Sp.unwatch(ad.CONV,{currentConversation:f})}));const h=(e,t)=>{var n,a,o,i,s;const c={to:(null==(a=null==(n=null==r?void 0:r.value)?void 0:n.groupProfile)?void 0:a.groupID)||(null==(i=null==(o=null==r?void 0:r.value)?void 0:o.userProfile)?void 0:i.userID),conversationType:null==(s=null==r?void 0:r.value)?void 0:s.type,payload:{index:t.emojiGroupID,data:t.list[e]},needReadReceipt:uf()};wp.sendFaceMessage(c)};function g(){uni.$emit("send-message-in-emoji-picker")}function f(e){r.value=e}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"emojiPickerDialog",ref:c,class:e.normalizeClass({"emoji-picker":!0,"emoji-picker-h5":!e.unref(Qp)})},[e.createElementVNode("ul",{ref_key:"emojiPickerListRef",ref:l,class:e.normalizeClass(["emoji-picker-list",!e.unref(Qp)&&"emoji-picker-h5-list"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"emoji-picker-list-item",onClick:e=>((e,t)=>{var n,a,o;const s={emoji:{key:e,name:Xh(e)},type:null==(n=null==m?void 0:m.value)?void 0:n.type};switch(null==(a=null==m?void 0:m.value)?void 0:a.type){case xh.BASIC:s.url=(null==(o=null==m?void 0:m.value)?void 0:o.url)+jh[e],nh?uni.$emit("insert-emoji",s):i("insertEmoji",s);break;case xh.BIG:case xh.CUSTOM:h(t,m.value)}Qp&&i("onClose")})(t,n)},[e.unref(m).type===e.unref(xh).BASIC?(e.openBlock(),e.createElementBlock("img",{key:0,class:"emoji",src:e.unref(m).url+e.unref(jh)[t]},null,8,["src"])):e.unref(m).type===e.unref(xh).BIG?(e.openBlock(),e.createElementBlock("img",{key:1,class:"emoji-big",src:e.unref(m).url+t+"@2x.png"},null,8,["src"])):(e.openBlock(),e.createElementBlock("img",{key:2,class:"emoji-custom emoji-big",src:e.unref(m).url+t},null,8,["src"]))],8,["onClick"])))),128))],2),e.createElementVNode("ul",{class:"emoji-picker-tab"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"emoji-picker-tab-item",onClick:e=>(e=>{var t;s.value=e,m.value=null==d?void 0:d.value[e],p.value=null==(t=null==d?void 0:d.value[e])?void 0:t.list,nh||(null==l?void 0:l.value)&&(l.value.scrollTop=0)})(n)},[t.type===e.unref(xh).BASIC?(e.openBlock(),e.createBlock(ih,{key:0,class:"icon",file:e.unref(o)},null,8,["file"])):t.type===e.unref(xh).BIG?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon-big",src:t.url+t.list[0]+"@2x.png"},null,8,["src"])):(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon-custom icon-big",src:t.url+t.list[0]},null,8,["src"]))],8,["onClick"])))),128)),e.unref(nh)?(e.openBlock(),e.createElementBlock("li",{key:0,class:"send-btn",onClick:g}," 发送 ")):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-95b76fa1"]]),BC=e.defineComponent({__name:"index",props:{type:{type:String,default:""},currentConversation:{type:Object,default:()=>({})},isGroup:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(t,{expose:n,emit:a}){const o=t,i=a,s=e.ref(!1),r=e.ref(""),c=e.ref([]),l=e.ref([]),u=e.ref(""),d={voiceCall:"发起群语音",videoCall:"发起群视频"},m=e.computed((()=>d[o.type]?d[o.type]:""));Np.getUserProfile().then((e=>{var t;(null==(t=null==e?void 0:e.data)?void 0:t.userID)&&(u.value=e.data.userID)})),e.watch((()=>{var e;return[null==(e=null==o?void 0:o.currentConversation)?void 0:e.conversationID,s.value]}),((e,t)=>{e&&e!==t&&(o.isGroup&&s.value?(r.value=o.currentConversation.groupProfile.groupID,Dp.getGroupMemberList({groupID:r.value}).then((e=>{var t,n;c.value=null==(n=null==(t=null==e?void 0:e.data)?void 0:t.memberList)?void 0:n.filter((e=>(null==e?void 0:e.userID)!==u.value)),l.value=c.value}))):(r.value="",c.value=[],l.value=c.value))}),{immediate:!0});const p=e=>{var t;const n=null==(t=c.value)?void 0:t.filter((t=>(null==t?void 0:t.userID)===e));l.value=(null==n?void 0:n.length)?n:c.value},h=e=>{const t=[];null==e||e.forEach((e=>{(null==e?void 0:e.userID)&&t.push(e.userID)})),"voiceCall"===o.type?i("submit",{userIDList:t,groupID:r.value,type:1}):"videoCall"===o.type&&i("submit",{userIDList:t,groupID:r.value,type:2}),l.value=c.value,f(!1)},g=()=>{l.value=c.value,i("cancel"),f(!1)},f=e=>{s.value=e};return n({toggleShow:f}),(t,n)=>(e.openBlock(),e.createBlock(Kg,{show:e.unref(s),isH5:!e.unref(Qp),isHeaderShow:!1,isFooterShow:!1,background:!1,"onUpdate:show":f},{default:e.withCtx((()=>[e.createVNode(IC,{isSearch:!0,title:e.unref(m),list:e.unref(l),isH5:!e.unref(Qp),isRadio:!1,onSearch:p,onSubmit:h,onCancel:g},null,8,["title","list","isH5"])])),_:1},8,["show","isH5"]))}}),xC=w(e.defineComponent({options:{styleIsolation:"shared"},__name:"index",props:{displayType:{}},setup(t){const n=t,a=e.ref(),o=e.ref(!1),i=e.ref(""),s=e.ref(),r=e.ref(),c=e.ref([]),l=e.ref(!1),u=Df.getFeatureConfig(),d=e.ref(8),m=e.ref(0);e.onMounted((()=>{Sp.watch(ad.CUSTOM,{activeConversation:p})})),e.onUnmounted((()=>{Sp.unwatch(ad.CUSTOM,{activeConversation:p})}));const p=e=>{var t;e&&e!==(null==(t=a.value)?void 0:t.conversationID)&&(h(),u.InputImage&&u.InputVideo?d.value-=4:(u.InputImage||u.InputVideo)&&(d.value-=2),m.value=d.value,d.value-=c.value.length,1===d.value?l.value=u.InputEvaluation&&u.InputQuickReplies:d.value<1&&(l.value=u.InputEvaluation||u.InputQuickReplies),a.value=Sp.getConversationModel(e),o.value=e.startsWith(Ip.TYPES.CONV_GROUP))},h=()=>{const e=Df.getChatType(),t={chatType:e};e===Mg.TUIChat.TYPE.CUSTOMER_SERVICE&&(t.filterVoice=!0,t.filterVideo=!0,Cg("customerService")),c.value=[...Yg.getExtensionList(Mg.TUIChat.EXTENSION.INPUT_MORE.EXT_ID,t)].filter((e=>{var t;return"search"!==(null==(t=null==e?void 0:e.data)?void 0:t.name)||u.MessageSearch}))},g=e=>{var t,n,a;const o=c.value.find((t=>{var n,a;return(null==(n=null==t?void 0:t.data)?void 0:n.name)===(null==(a=null==e?void 0:e.data)?void 0:a.name)}));switch(null==(t=null==o?void 0:o.data)?void 0:t.name){case"voiceCall":f(o,1);break;case"videoCall":f(o,2);break;case"search":null==(a=null==(n=null==o?void 0:o.listener)?void 0:n.onClicked)||a.call(n)}},f=(e,t)=>{var n,c,l,u,d,m,p;i.value=null==(n=null==e?void 0:e.data)?void 0:n.name,(null==(c=null==a?void 0:a.value)?void 0:c.type)===Ip.TYPES.CONV_C2C?null==(m=null==(l=null==e?void 0:e.listener)?void 0:l.onClicked)||m.call(l,{userIDList:[null==(d=null==(u=null==a?void 0:a.value)?void 0:u.conversationID)?void 0:d.slice(3)],type:t,callParams:{offlinePushInfo:hv.getOfflinePushInfo(pv.CALL)}}):o.value&&(r.value=e,(null==(p=null==s?void 0:s.value)?void 0:p.toggleShow)&&s.value.toggleShow(!0))},v=e=>null==e?void 0:e.icon,_=e=>null==e?void 0:e.text,y=e=>{var t,n,a;null==(a=null==(n=null==(t=r.value)?void 0:t.listener)?void 0:n.onClicked)||a.call(n,{...e,callParams:{offlinePushInfo:hv.getOfflinePushInfo(pv.CALL)}}),r.value=null},E=()=>{r.value=null},C=e=>{l.value=d.value<=1&&!e};return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["message-input-toolbar","message-input-toolbar-h5","message-input-toolbar-uni"])},["emojiPicker"===n.displayType?(e.openBlock(),e.createElementBlock("div",{key:0},[e.createVNode(VC)])):(e.openBlock(),e.createElementBlock("div",{key:1},[e.createElementVNode("swiper",{class:e.normalizeClass(["message-input-toolbar-swiper"]),"indicator-dots":e.unref(l),autoplay:!1,circular:!1},[e.createElementVNode("swiper-item",{class:e.normalizeClass(["message-input-toolbar-list","message-input-toolbar-h5-list","message-input-toolbar-uni-list"])},[e.unref(u).InputImage?(e.openBlock(),e.createBlock(wC,{key:0,imageSourceType:"camera"})):e.createCommentVNode("",!0),e.unref(u).InputImage?(e.openBlock(),e.createBlock(wC,{key:1,imageSourceType:"album"})):e.createCommentVNode("",!0),e.unref(u).InputVideo?(e.openBlock(),e.createBlock(LC,{key:2,videoSourceType:"album"})):e.createCommentVNode("",!0),e.unref(u).InputVideo?(e.openBlock(),e.createBlock(LC,{key:3,videoSourceType:"camera"})):e.createCommentVNode("",!0),e.unref(c).length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(e.unref(c).slice(0,e.unref(m)),((t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n},[t?(e.openBlock(),e.createBlock(TC,{key:0,iconFile:v(t),title:_(t),iconWidth:"25px",iconHeight:"25px",needDialog:!1,onOnIconClick:e=>g(t)},null,8,["iconFile","title","onOnIconClick"])):e.createCommentVNode("",!0)])))),128)):e.createCommentVNode("",!0),1===e.unref(d)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[e.unref(u).InputEvaluation?(e.openBlock(),e.createBlock(AC,{key:0,onOnDialogPopupShowOrHide:C})):e.unref(u).InputQuickReplies?(e.openBlock(),e.createBlock(OC,{key:1,onOnDialogPopupShowOrHide:C})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.unref(d)>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[e.unref(u).InputEvaluation?(e.openBlock(),e.createBlock(AC,{key:0,onOnDialogPopupShowOrHide:C})):e.createCommentVNode("",!0),e.unref(u).InputQuickReplies?(e.openBlock(),e.createBlock(OC,{key:1,onOnDialogPopupShowOrHide:C})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.unref(d)<=1?(e.openBlock(),e.createElementBlock("swiper-item",{key:0,class:e.normalizeClass(["message-input-toolbar-list","message-input-toolbar-h5-list","message-input-toolbar-uni-list"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c).slice(e.unref(m)),((t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n},[t?(e.openBlock(),e.createBlock(TC,{key:0,iconFile:v(t),title:_(t),iconWidth:"25px",iconHeight:"25px",needDialog:!1,onOnIconClick:e=>g(t)},null,8,["iconFile","title","onOnIconClick"])):e.createCommentVNode("",!0)])))),128)),1===e.unref(d)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(u).InputQuickReplies?(e.openBlock(),e.createBlock(OC,{key:0,onOnDialogPopupShowOrHide:C})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(u).InputEvaluation?(e.openBlock(),e.createBlock(AC,{key:0,onOnDialogPopupShowOrHide:C})):e.createCommentVNode("",!0),e.unref(u).InputQuickReplies?(e.openBlock(),e.createBlock(OC,{key:1,onOnDialogPopupShowOrHide:C})):e.createCommentVNode("",!0)],64))])):e.createCommentVNode("",!0)],8,["indicator-dots"])])),e.createVNode(BC,{ref_key:"userSelectorRef",ref:s,type:e.unref(i),currentConversation:e.unref(a),isGroup:e.unref(o),onSubmit:y,onCancel:E},null,8,["type","currentConversation","isGroup"])]))}}),[["__scopeId","data-v-f8681e06"]]),UC=w(e.defineComponent({__name:"index",emits:["closeChat"],setup(t,{emit:n}){E((e=>{(e=>{const{chat:t}=Hg.getContext();if(e&&e.conversationID&&(null==t?void 0:t.isReady())){const{conversationID:t}=e;if(!t.startsWith("C2C")&&!t.startsWith("GROUP"))return void g("warn","at TUIKit/components/TUIChat/entry-chat-only.ts:22","conversationID from options is invalid.");Mp.switchConversation(t)}})(e)})),k((()=>{var e;(e=!1,e?Hg.logout():Promise.resolve()).then((()=>{})).catch((()=>{}))}));const a=n,o=e.ref(void 0),i=e.ref(!1),s=e.ref(!1),r=e.ref(),c=e.ref(),l=e.ref(!1),u=e.ref("none"),d=e.ref(),m=e.ref(),p=e.ref([]),h=Df.getFeatureConfig();e.onMounted((()=>{Sp.watch(ad.CONV,{currentConversationID:L,currentConversation:b})})),e.onUnmounted((()=>{Sp.unwatch(ad.CONV,{currentConversationID:L,currentConversation:b}),_()}));const f=e.computed((()=>!nh||"none"!==u.value)),v=e.computed((()=>{let e="";switch(r.value){case 4:e=Tp.t("TUIChat.您已被管理员移出群聊");break;case 5:e=Tp.t("TUIChat.该群聊已被解散");break;default:e=Tp.t("TUIChat.您已退出该群聊")}return e})),_=()=>{Mp.switchConversation("")},y=e=>{a("closeChat",e),_()},C=e=>{var t;null==(t=d.value)||t.insertEmoji(e)},I=(e,t)=>{var n,a,o;if(e&&t)switch(t){case"reference":case"reply":break;case"reedit":(null==(n=null==e?void 0:e.payload)?void 0:n.text)&&(null==(o=null==d?void 0:d.value)||o.reEdit(null==(a=null==e?void 0:e.payload)?void 0:a.text))}},S=()=>{p.value[0].listener.onClicked({groupID:o.value})};function T(e){u.value=u.value===e?"none":e,"none"!==u.value&&nh&&uni.$emit("scroll-to-bottom")}function M(){var e;null==(e=m.value)||e.scrollToLatestMessage()}function N(e){l.value=void 0===e?!l.value:e}function w(){var e;null==(e=m.value)||e.mergeForwardMessage()}function D(){var e;null==(e=m.value)||e.oneByOneForwardMessage()}function b(e){(null==e?void 0:e.operationType)>0?(p.value=[],s.value=!0,r.value=null==e?void 0:e.operationType):(s.value=!1,r.value=void 0)}function L(e){if(c.value===e)return;i.value=!1;let t=Ip.TYPES.CONV_C2C;if(e.startsWith(Ip.TYPES.CONV_GROUP)&&(t=Ip.TYPES.CONV_GROUP,i.value=!0,o.value=e.replace(Ip.TYPES.CONV_GROUP,"")),p.value=[],l.value=!1,Df.setChatType(t),Yg.notifyEvent(Mg.TUIChat.EVENT.CHAT_STATE_CHANGED,Mg.TUIChat.EVENT_SUB_KEY.CHAT_OPENED,{groupID:o.value}),Yg.callService({serviceName:Mg.TUICustomerServicePlugin.SERVICE.NAME,method:Mg.TUICustomerServicePlugin.SERVICE.METHOD.ACTIVE_CONVERSATION,params:{conversationID:e}}),Df.getChatType()===Mg.TUIChat.TYPE.ROOM&&!0===Df.getFeatureConfig(Mg.TUIChat.FEATURE.InputVoice))return Df.setTheme("light"),void(c.value="");Df.getChatType()===Mg.TUIChat.TYPE.GROUP&&(p.value=Yg.getExtensionList(Mg.TUIChat.EXTENSION.CHAT_HEADER.EXT_ID)),Sp.update(ad.CUSTOM,"activeConversation",e),c.value=e}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"chat"},[e.createElementVNode("div",{class:e.normalizeClass(["tui-chat",!e.unref(Qp)&&"tui-chat-h5"])},[e.unref(c)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-chat-default",!e.unref(Qp)&&"tui-chat-h5-default"])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2)),e.unref(c)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["tui-chat",!e.unref(Qp)&&"tui-chat-h5"])},[e.createVNode(of,{class:e.normalizeClass(["tui-chat-header",!e.unref(Qp)&&"tui-chat-H5-header",e.unref(nh)&&"tui-chat-uniapp-header"]),headerExtensionList:e.unref(p),onCloseChat:y},null,8,["class","headerExtensionList"]),e.createVNode(SC,{onToggleMultipleSelectMode:N}),e.createVNode(cC,{ref_key:"messageListRef",ref:m,class:e.normalizeClass(["tui-chat-message-list",!e.unref(Qp)&&"tui-chat-h5-message-list"]),isGroup:e.unref(i),groupID:e.unref(o),isNotInGroup:e.unref(s),isMultipleSelectMode:e.unref(l),onHandleEditor:I,onCloseInputToolBar:n[0]||(n[0]=()=>T("none")),onToggleMultipleSelectMode:N},null,8,["class","isGroup","groupID","isNotInGroup","isMultipleSelectMode"]),e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({"tui-chat-leave-group":!0,"tui-chat-leave-group-mobile":e.unref(ah)})},e.toDisplayString(e.unref(v)),3)):e.unref(l)?(e.openBlock(),e.createBlock(EC,{key:1,onOneByOneForwardMessage:D,onMergeForwardMessage:w,onToggleMultipleSelectMode:N})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.unref(f)?(e.openBlock(),e.createBlock(xC,{key:0,class:e.normalizeClass(["tui-chat-message-input-toolbar",!e.unref(Qp)&&"tui-chat-h5-message-input-toolbar",e.unref(nh)&&"tui-chat-uni-message-input-toolbar"]),displayType:e.unref(u),onInsertEmoji:C,onChangeToolbarDisplayType:T,onScrollToLatestMessage:M},null,8,["class","displayType"])):e.createCommentVNode("",!0),e.createVNode(yC,{ref_key:"messageInputRef",ref:d,class:e.normalizeClass(["tui-chat-message-input",!e.unref(Qp)&&"tui-chat-h5-message-input",e.unref(nh)&&"tui-chat-uni-message-input",e.unref(eh)&&"tui-chat-wx-message-input"]),enableAt:e.unref(h).InputMention,isMuted:!1,muteText:e.unref(Tp).t("TUIChat.您已被管理员禁言"),placeholder:e.unref(Tp).t("TUIChat.请输入消息"),inputToolbarDisplayType:e.unref(u),onChangeToolbarDisplayType:T},null,8,["class","enableAt","muteText","placeholder","inputToolbarDisplayType"])],64))],2)):e.createCommentVNode("",!0),!e.unref(s)&&e.unref(nh)&&e.unref(i)&&e.unref(p).length>0?(e.openBlock(),e.createElementBlock("div",{key:2,class:"group-profile",onClick:S},e.toDisplayString(e.unref(p)[0].text),1)):e.createCommentVNode("",!0)],2)]))}}),[["__scopeId","data-v-656be517"]]),GC=w(e.defineComponent({__name:"video-play",setup(t){const n=e.ref(),a=e.ref(!1),o=e.ref();return E((e=>{const t=decodeURIComponent(null==e?void 0:e.videoUrl);n.value=t,a.value=!0})),C((()=>{a.value=!0,o.value=Op.createVideoContext("videoEle")})),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"dialog-video"},[e.unref(a)?(e.openBlock(),e.createElementBlock("video",{key:0,id:"videoEle",class:"video-box",src:e.unref(n),controls:"",autoplay:""},null,8,["src"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-a09cf36c"]]),FC=e.defineComponent({__name:"web-view",setup(t){const n=e.ref("");return E((e=>{n.value=e&&e.url})),(t,a)=>(e.openBlock(),e.createElementBlock("web-view",{src:e.unref(n)},null,8,["src"]))}}),YC=e.defineComponent({__name:"index",props:{isRadio:{type:Boolean,default:!1},isNeedSearch:{type:Boolean,default:!1},title:{type:String,default:""},userList:{type:Array,default:()=>[]},total:{type:Number,default:0}},emits:["complete","search","getMore"],setup(t,{emit:n}){const a=n,o=t,i=()=>{a("complete",[])},s=e=>{a("complete",e)},r=e=>{a("search",e)},c=()=>{a("getMore")};return(t,n)=>(e.openBlock(),e.createBlock(Kg,{show:!0,isH5:!e.unref(Qp),isHeaderShow:!1,isFooterShow:!1,background:!1,"onUpdate:show":i},{default:e.withCtx((()=>[e.createVNode(IC,{isSearch:o.isNeedSearch,title:o.title,list:o.userList,isH5:!e.unref(Qp),isRadio:o.isRadio,total:o.total,onGetMore:c,onSearch:r,onSubmit:s,onCancel:i},null,8,["isSearch","title","list","isH5","isRadio","total"])])),_:1},8,["isH5"]))}});class HC{constructor(){Yg.registerService(Mg.TUIContact.SERVICE.NAME,this),this.onCallParamsMap=new Map,this.onCallCallbackMap=new Map,this.constants=Mg}static getInstance(){return HC.instance||(HC.instance=new HC),HC.instance}getOnCallParams(e){return this.onCallParamsMap.get(e)}getOnCallCallback(e){return this.onCallCallbackMap.get(e)}async onCall(e,t,n){this.onCallParamsMap.set(e,t),this.onCallCallbackMap.set(e,n),e===Mg.TUIContact.SERVICE.METHOD.SELECT_FRIEND&&(Sp.update(ad.CUSTOM,"isShowSelectFriendComponent",!0),nh&&(null==Op||Op.reLaunch({url:"/TUIKit/components/TUIContact/index"})))}}const ZC=e.defineComponent({__name:"index",setup(t){const n=HC.getInstance(),a=n.constants,o=e.ref(!1),i=e.ref([]),s=e.ref([]),r=e.ref(null),c=e.ref({isRadio:!1,isNeedSearch:!1,title:""});e.watchEffect((()=>{const e=n.getOnCallParams(a.TUIContact.SERVICE.METHOD.SELECT_FRIEND);var t;c.value.title=e.title,c.value.isRadio=e.isRadio,c.value.isNeedSearch=e.isNeedSearch,e.isNeedSearch&&(t=e.isNeedSearch,r.value=Yg.getService(a.TUISearch.SERVICE.NAME),r.value?o.value=t:g("warn","at TUIKit/components/TUIContact/select-friend/index.vue:41","请添加 TUISearch 组件")),bp.getFriendList().then((e=>{i.value=e.data.map((e=>e.profile)),s.value=i.value})).catch((e=>{g("warn","at TUIKit/components/TUIContact/select-friend/index.vue:57","getFriendList error:",e)}))}));const l=e=>{Sp.update(ad.CUSTOM,"isShowSelectFriendComponent",!1);const t=n.getOnCallCallback(a.TUIContact.SERVICE.METHOD.SELECT_FRIEND);t&&t(e)},u=()=>{ug({message:Tp.t("TUIGroup.该用户不存在"),type:cg}),s.value=[...i.value]},d=async e=>{if(!e)return s.value=i.value;try{const t=await r.value.searchUser(e);if(!t.data[0])return u();s.value=t.data;const n=i.value.filter((e=>e.userID===t.data[0].userID));i.value=n.length?i.value:[...i.value,...s.value]}catch(tI){return u()}};return(t,n)=>(e.openBlock(),e.createBlock(YC,{isRadio:e.unref(c).isRadio,isNeedSearch:e.unref(c).isNeedSearch,title:e.unref(c).title,userList:e.unref(s),onSearch:d,onComplete:l},null,8,["isRadio","isNeedSearch","title","userList"]))}}),qC=w(e.defineComponent({__name:"index",setup(t){const n=Tp.t("TUIContact.输入ID"),a=e.ref(!1),o=e.ref(""),i=e.ref({user:{label:"联系人",list:[]},group:{label:"群聊",list:[]}}),s=aC((function(e){a.value=e}),200),r=async()=>{o.value&&(Yg.callService({serviceName:Mg.TUISearch.SERVICE.NAME,method:Mg.TUISearch.SERVICE.METHOD.SEARCH_USER,params:{userID:o.value}}).then((e=>{i.value.user.list=e.data})).catch((e=>{i.value.user.list=[],g("warn","at TUIKit/components/TUIContact/contact-search/index.vue:111","search user error",e)})),Yg.callService({serviceName:Mg.TUISearch.SERVICE.NAME,method:Mg.TUISearch.SERVICE.METHOD.SEARCH_GROUP,params:{groupID:o.value}}).then((e=>{i.value.group.list=[e.data.group]})).catch((e=>{i.value.group.list=[],g("warn","at TUIKit/components/TUIContact/contact-search/index.vue:125","search group error",e)})))};return e.watch((()=>i.value),(()=>{Sp.update(ad.CUSTOM,"currentContactSearchResult",i.value)}),{deep:!0,immediate:!0}),e.watch((()=>a.value),(()=>{Sp.update(ad.CUSTOM,"currentContactSearchingStatus",a.value),a.value&&(o.value="",i.value.user.list=[],i.value.group.list=[])}),{deep:!0,immediate:!0}),Op.updateContactSearch=r,Op.closeSearching=()=>{a.value=!1},(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tui-contact-search",!e.unref(Qp)&&"tui-contact-search-h5"])},[e.unref(a)&&e.unref(Qp)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-contact-search-header",!e.unref(Qp)&&"tui-contact-search-h5-header",e.unref(a)&&"tui-contact-searching-h5-header"]),onClick:i[1]||(i[1]=t=>e.unref(s)(!0))},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-search-header-icon",!e.unref(Qp)&&"tui-contact-search-h5-header-icon"]),onClick:i[0]||(i[0]=e.withModifiers((t=>e.unref(s)(!e.unref(a))),["stop"]))},[e.createVNode(ih,{file:e.unref(a)?e.unref(rf):e.unref("/assets/add.6f2b9261.svg"),width:e.unref(a)?"20px":"14px",height:e.unref(a)?"20px":"14px"},null,8,["file","width","height"])],2),e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-search-header-title",!e.unref(Qp)&&"tui-contact-search-h5-header-title"])},e.toDisplayString(e.unref(Tp).t("TUIContact.添加好友/群聊")),3)],2)),e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["tui-contact-search-main",!e.unref(Qp)&&"tui-contact-search-h5-main"])},[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[2]||(i[2]=t=>e.isRef(o)?o.value=t:null),class:"tui-contact-search-main-input",type:"text",placeholder:e.unref(n),enterkeyhint:"search",onKeyup:e.withKeys(r,["enter"]),onBlur:r,onConfirm:r},null,40,["placeholder"]),[[e.vModelText,e.unref(o)]]),e.createElementVNode("div",{class:"tui-contact-search-main-cancel",onClick:i[3]||(i[3]=e=>a.value=!1)},e.toDisplayString(e.unref(Tp).t("取消")),1)],2)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-277cade1"]]),jC=e=>{var t;return(null==e?void 0:e.avatar)||(null==(t=null==e?void 0:e.profile)?void 0:t.avatar)||(null==e?void 0:e.groupID)&&"https://web.sdk.qcloud.com/im/assets/images/Public.svg"||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png"},JC=e=>{var t;return(null==e?void 0:e.remark)||(null==e?void 0:e.name)||(null==(t=null==e?void 0:e.profile)?void 0:t.nick)||(null==e?void 0:e.nick)||(null==e?void 0:e.groupID)||(null==e?void 0:e.userID)||""},XC=e=>{var t;return(null==e?void 0:e.name)||(null==(t=null==e?void 0:e.profile)?void 0:t.nick)||(null==e?void 0:e.nick)||(null==e?void 0:e.groupID)||(null==e?void 0:e.userID)||""},KC=e=>{var t,n;return(null==e?void 0:e.type)===(null==(t=null==Ip?void 0:Ip.TYPES)?void 0:t.SNS_APPLICATION_SENT_TO_ME)||(null==e?void 0:e.type)===(null==(n=null==Ip?void 0:Ip.TYPES)?void 0:n.SNS_APPLICATION_SENT_BY_ME)},zC=e=>{const t=(null==e?void 0:e.groupID)?`GROUP${null==e?void 0:e.groupID}`:`C2C${null==e?void 0:e.userID}`;Mp.switchConversation(t).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:200","switch conversation failed:",e),ug({message:Tp.t("TUIContact.进入会话失败"),type:cg})}))},WC=e=>{bp.acceptFriendApplication({userID:e,type:Ip.TYPES.SNS_APPLICATION_AGREE_AND_ADD}).then((()=>{ug({message:Tp.t("TUIContact.添加好友成功"),type:sg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:222","accept friend application failed:",e),ug({message:Tp.t("TUIContact.同意好友申请失败"),type:cg})}))},QC=(e,t)=>{Dp.joinGroup({groupID:e,applyMessage:t}).then((e=>{var t;switch(null==(t=null==e?void 0:e.data)?void 0:t.status){case Ip.TYPES.JOIN_STATUS_WAIT_APPROVAL:ug({message:Tp.t("TUIContact.等待管理员同意"),type:sg});break;case Ip.TYPES.JOIN_STATUS_SUCCESS:ug({message:Tp.t("TUIContact.加群成功"),type:sg});break;case Ip.TYPES.JOIN_STATUS_ALREADY_IN_GROUP:ug({message:Tp.t("TUIContact.您已是群成员"),type:sg})}})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:316","join group failed:",e),ug({message:"申请入群失败",type:cg})}))},$C=w(e.defineComponent({__name:"index",props:{item:{default:()=>({})},displayOnlineStatus:{type:Boolean,default:!1}},setup(t){const n=t,a=e.inject("userOnlineStatusMap"),o=e.ref(!1),i={[Ip.TYPES.GRP_WORK]:"Work",[Ip.TYPES.GRP_AVCHATROOM]:"AVChatRoom",[Ip.TYPES.GRP_PUBLIC]:"Public",[Ip.TYPES.GRP_MEETING]:"Meeting",[Ip.TYPES.GRP_COMMUNITY]:"Community"},s=e.computed((()=>{var e,t,a,o,i,s,r;let c="";return(null==(e=n.item)?void 0:e.type)===(null==(t=null==Ip?void 0:Ip.TYPES)?void 0:t.SNS_APPLICATION_SENT_TO_ME)||(null==(a=n.item)?void 0:a.type)===(null==(o=null==Ip?void 0:Ip.TYPES)?void 0:o.SNS_APPLICATION_SENT_BY_ME)?c=(null==(i=n.item)?void 0:i.wording)||"":(null==(s=n.item)?void 0:s.groupID)&&(c=`ID:${null==(r=n.item)?void 0:r.groupID}`),c})),r=e.computed((()=>{var e,t;let a="";return(null==(e=n.item)?void 0:e.groupID)&&(a=i[null==(t=n.item)?void 0:t.type]),a})),c=e.computed((()=>{var e,t,a,o;return(null==(e=n.item)?void 0:e.type)===(null==(t=null==Ip?void 0:Ip.TYPES)?void 0:t.SNS_APPLICATION_SENT_BY_ME)?{style:"text",label:"等待验证"}:(null==(a=n.item)?void 0:a.type)===(null==(o=null==Ip?void 0:Ip.TYPES)?void 0:o.SNS_APPLICATION_SENT_TO_ME)&&{style:"button",label:"同意",onClick:()=>{var e;WC(null==(e=n.item)?void 0:e.userID)}}}));return e.watch((()=>null==a?void 0:a.value),(()=>{var e,t,i;o.value=!!(n.displayOnlineStatus&&(null==a?void 0:a.value)&&(null==(e=n.item)?void 0:e.userID)&&(null==(i=null==(t=a.value)?void 0:t[n.item.userID])?void 0:i.statusType)===Ip.TYPES.USER_STATUS_ONLINE)}),{immediate:!0,deep:!0}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tui-contact-list-card",!e.unref(Qp)&&"tui-contact-list-card-h5"])},[e.createElementVNode("div",{class:"tui-contact-list-card-left"},[e.createVNode(Jg,{class:"tui-contact-list-card-left-avatar",useSkeletonAnimation:"",url:e.unref(jC)(n.item)},null,8,["url"]),n.displayOnlineStatus&&n.item?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({"online-status":!0,"online-status-online":e.unref(o),"online-status-offline":!e.unref(o)})},null,2)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"tui-contact-list-card-main"},[e.createElementVNode("div",{class:"tui-contact-list-card-main-name"},e.toDisplayString(e.unref(JC)(n.item)),1),e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tui-contact-list-card-main-other"},e.toDisplayString(e.unref(s)),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"tui-contact-list-card-right"},[e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tui-contact-list-card-right-group-type"},e.toDisplayString(e.unref(r)),1)):e.createCommentVNode("",!0),e.unref(c)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"tui-contact-list-card-right-application"},["text"===e.unref(c).style?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tui-contact-list-card-right-application-text"},e.toDisplayString(e.unref(Tp).t(`TUIContact.${e.unref(c).label}`)),1)):"button"===e.unref(c).style?(e.openBlock(),e.createElementBlock("button",{key:1,class:"tui-contact-list-card-right-application-button",onClick:a[0]||(a[0]=e.withModifiers(((...t)=>e.unref(c).onClick&&e.unref(c).onClick(...t)),["stop"]))},e.toDisplayString(e.unref(Tp).t(`TUIContact.${e.unref(c).label}`)),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-e4c5c96e"]]),ek=w(e.defineComponent({__name:"index",setup(t){const n=e.ref(""),a=e.ref({}),o=e.ref({friendApplicationList:{key:"friendApplicationList",title:"新的联系人",list:[],unreadCount:0},blackList:{key:"blackList",title:"黑名单",list:[]},groupList:{key:"groupList",title:"我的群聊",list:[]},friendList:{key:"friendList",title:"我的好友",list:[]}}),i=e.ref(!1),s=e.ref(),r=e.ref(!1),c=e.ref(),l=e.computed((()=>{var e,t,n,a;return!(null==(t=null==(e=null==s?void 0:s.value)?void 0:e.user)?void 0:t.list[0])&&!(null==(a=null==(n=null==s?void 0:s.value)?void 0:n.group)?void 0:a.list[0])}));function u(e){var t,n,s,r,c,l,u,d;if(a.value=e,i.value){let e;(null==(t=a.value)?void 0:t.userID)?e=null==(r=null==(s=null==(n=o.value)?void 0:n.friendList)?void 0:s.list)?void 0:r.find((e=>{var t;return(null==e?void 0:e.userID)===(null==(t=a.value)?void 0:t.userID)})):(null==(c=a.value)?void 0:c.groupID)&&(e=null==(d=null==(u=null==(l=o.value)?void 0:l.groupList)?void 0:u.list)?void 0:d.find((e=>{var t;return(null==e?void 0:e.groupID)===(null==(t=a.value)?void 0:t.groupID)}))),e&&(a.value=e)}Sp.update(ad.CUSTOM,"currentContactInfo",a.value)}function d(e){r.value=e}function m(e){(null==e?void 0:e.size)>0&&(c.value=Object.fromEntries(null==e?void 0:e.entries()))}function p(e){if(!e)return;const t=Mg.TUIContact.EXTENSION.CONTACT_LIST.EXT_ID,n=Yg.getExtensionList(t).find((e=>{const{name:t,accountList:n=[]}=e.data||{};return"customer"===t&&n.length>0}));if(n){const{data:e,text:t}=n,{accountList:a}=e||{};Np.getUserProfile({userIDList:a}).then((e=>{if(e.data.length>0){const n={title:t,list:e.data.map(((e,t)=>({...e,renderKey:E("customerList",e,t),infoKeyList:[],btnKeyList:["enterC2CConversation"]}))),key:"customerList"};o.value={...o.value,customerList:n}}})).catch((()=>{}))}}function h(e){y("groupList",e)}function g(e){y("blackList",e)}function f(e){o.value.friendApplicationList.unreadCount=e}function v(e){y("friendList",e)}function _(e){y("friendApplicationList",e)}function y(e,t){o.value[e].list=t,o.value[e].list.map(((t,n)=>t.renderKey=E(e,t,n))),function(e,t){var o,s;if(!(null==(o=a.value)?void 0:o.userID)&&!(null==(s=a.value)?void 0:s.groupID))return;(t===n.value||i.value)&&(a.value=(null==e?void 0:e.find((e=>{var t,n;return(null==e?void 0:e.groupID)&&(null==e?void 0:e.groupID)===(null==(t=a.value)?void 0:t.groupID)||(null==e?void 0:e.userID)&&(null==e?void 0:e.userID)===(null==(n=a.value)?void 0:n.userID)})))||{},Sp.update(ad.CUSTOM,"currentContactInfo",a.value))}(o.value[e].list,e)}function E(e,t,n){return`${e}-${t.userID||t.groupID||"index"+n}`}function C(e){s.value=e}function k(e){i.value=e,Sp.update(ad.CUSTOM,"currentContactInfo",{}),Sp.update(ad.CUSTOM,"currentContactListKey","")}function I(e){a.value=e}function S(e){n.value=e}return e.onMounted((()=>{Sp.watch(ad.APP,{enabledCustomerServicePlugin:p}),Sp.watch(ad.GRP,{groupList:h}),Sp.watch(ad.USER,{userBlacklist:g,displayOnlineStatus:d,userStatusList:m}),Sp.watch(ad.FRIEND,{friendList:v,friendApplicationList:_,friendApplicationUnreadCount:f}),Sp.watch(ad.CUSTOM,{currentContactSearchingStatus:k,currentContactSearchResult:C,currentContactListKey:S,currentContactInfo:I})})),e.onUnmounted((()=>{Sp.unwatch(ad.APP,{enabledCustomerServicePlugin:p}),Sp.unwatch(ad.GRP,{groupList:h}),Sp.unwatch(ad.USER,{userBlacklist:g,displayOnlineStatus:d,userStatusList:m}),Sp.unwatch(ad.FRIEND,{friendList:v,friendApplicationList:_,friendApplicationUnreadCount:f}),Sp.unwatch(ad.CUSTOM,{currentContactSearchingStatus:k,currentContactSearchResult:C,currentContactListKey:S,currentContactInfo:I})})),e.provide("userOnlineStatusMap",c),(t,c)=>e.unref(i)?(e.openBlock(),e.createElementBlock("ul",{key:1,class:"tui-contact-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"tui-contact-list-item"},[t.list[0]?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tui-contact-search-list"},[e.createElementVNode("div",{class:"tui-contact-search-list-title"},e.toDisplayString(e.unref(Tp).t(`TUIContact.${t.label}`)),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["tui-contact-search-list-item",["selected"]]),onClick:e=>u(t)},[e.createVNode($C,{item:t,displayOnlineStatus:!1},null,8,["item"])],8,["onClick"])))),128))])):e.createCommentVNode("",!0)])))),128)),e.unref(l)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tui-contact-search-list-default"},e.toDisplayString(e.unref(Tp).t("TUIContact.无搜索结果")),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass(["tui-contact-list",!e.unref(Qp)&&"tui-contact-list-h5"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),((t,o)=>(e.openBlock(),e.createElementBlock("li",{key:o,class:"tui-contact-list-item"},[e.createElementVNode("header",{class:"tui-contact-list-item-header",onClick:e=>function(e){n.value===e?(n.value="",a.value={},Sp.update(ad.CUSTOM,"currentContactListKey",""),Sp.update(ad.CUSTOM,"currentContactInfo",{})):(n.value=e,Sp.update(ad.CUSTOM,"currentContactListKey",e),"friendApplicationList"===e&&bp.setFriendApplicationRead())}(o)},[e.createElementVNode("div",{class:"tui-contact-list-item-header-left"},[e.createVNode(ih,{file:e.unref(n)===o?e.unref(bh):e.unref(Eg),width:"16px",height:"16px"},null,8,["file"]),e.createElementVNode("div",null,e.toDisplayString(e.unref(Tp).t(`TUIContact.${t.title}`)),1)]),e.createElementVNode("div",{class:"tui-contact-list-item-header-right"},[t.unreadCount?(e.openBlock(),e.createElementBlock("span",{key:0,class:"tui-contact-list-item-header-right-unread"},e.toDisplayString(t.unreadCount),1)):e.createCommentVNode("",!0)])],8,["onClick"]),e.createElementVNode("ul",{class:e.normalizeClass(["tui-contact-list-item-main",e.unref(n)===o?"":"hidden"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(t=>(e.openBlock(),e.createElementBlock("li",{key:t.renderKey,class:e.normalizeClass(["tui-contact-list-item-main-item",["selected"]]),onClick:e=>u(t)},[e.createVNode($C,{item:t,displayOnlineStatus:e.unref(r)&&"friendList"===o},null,8,["item","displayOnlineStatus"])],8,["onClick"])))),128))],2)])))),128))],2))}}),[["__scopeId","data-v-ecfda0f1"]]),tk={setRemark:{key:"setRemark",label:"备注名",data:"",labelPosition:Uh.LEFT,editable:!0,editType:Gh.INPUT,editing:!1,editSubmitHandler:e=>{var t,n,a,o,i,s;if(null==e?void 0:e.isBothFriend){const s=null==(t=null==e?void 0:e.item)?void 0:t.data;((e,t)=>{var n;(null==(n=null==t?void 0:t.replace(/[^\u0000-\u00ff]/g,"aa"))?void 0:n.length)>96?ug({message:Tp.t("TUIContact.修改备注失败: 备注长度不得超过 96 字节"),type:cg}):bp.updateFriend({userID:e,remark:t}).then((()=>{ug({message:Tp.t("TUIContact.修改备注成功"),type:sg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:138","update friend remark failed:",e),ug({message:Tp.t("TUIContact.修改备注失败"),type:cg})}))})(null==(n=null==e?void 0:e.contactInfoData)?void 0:n.userID,s),(null==(a=null==e?void 0:e.item)?void 0:a.editing)&&(e.item.editing=!1),(null==(o=null==e?void 0:e.item)?void 0:o.data)&&(e.item.data=null==(i=null==e?void 0:e.contactInfoData)?void 0:i.remark)}else(null==(s=null==e?void 0:e.item)?void 0:s.editing)&&(e.item.editing=!1)}},blackList:{key:"blackList",label:"加入黑名单",data:!1,labelPosition:Uh.LEFT,editable:!0,editType:Gh.SWITCH,editing:!0,editSubmitHandler:e=>{var t,n,a,o;(null==e?void 0:e.isInBlackList)?(a=null==(t=null==e?void 0:e.contactInfoData)?void 0:t.userID,Np.removeFromBlacklist({userIDList:[a]}).then((()=>{o&&o()})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:353","remove from blacklist failed:",e),ug({message:Tp.t("TUIContact.移除黑名单失败"),type:cg})}))):(((e,t)=>{Np.addToBlacklist({userIDList:[e]}).then((()=>{t&&t()})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:333","add to blacklist failed:",e),ug({message:Tp.t("TUIContact.加入黑名单失败"),type:cg})}))})(null==(n=null==e?void 0:e.contactInfoData)?void 0:n.userID),Sp.update(ad.CUSTOM,"currentContactListKey","blackList"))}},setWords:{key:"setWords",label:"请填写验证信息",data:"",labelPosition:Uh.TOP,editable:!0,editType:Gh.TEXTAREA,editing:!0},displayWords:{key:"displayWords",label:"验证信息",data:"",labelPosition:Uh.LEFT,editable:!1}},nk={dismissGroup:{key:"dismissGroup",label:"解散群聊",type:Fh.CANCEL,onClick:e=>{var t,n;n=null==(t=null==e?void 0:e.contactInfoData)?void 0:t.groupID,Dp.dismissGroup(n).then((()=>{ug({message:Tp.t("TUIContact.解散群聊成功"),type:sg}),(null==Op?void 0:Op.updateContactSearch)&&(null==Op||Op.updateContactSearch())})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:259","dismiss group failed:",e),ug({message:Tp.t("TUIContact.解散群聊失败"),type:cg})}))}},quitGroup:{key:"quitGroup",label:"退出群聊",type:Fh.CANCEL,onClick:e=>{var t,n;n=null==(t=null==e?void 0:e.contactInfoData)?void 0:t.groupID,Dp.quitGroup(n).then((()=>{ug({message:Tp.t("TUIContact.退出群组成功"),type:sg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:277","quit group failed:",e),ug({message:Tp.t("TUIContact.退出群组失败"),type:cg})}))}},joinGroup:{key:"joinGroup",label:"发送申请",type:Fh.SUBMIT,onClick:e=>{var t,n;QC(null==(t=null==e?void 0:e.contactInfoData)?void 0:t.groupID,null==(n=null==e?void 0:e.contactInfoMoreList[0])?void 0:n.data)}},joinAVChatGroup:{key:"joinAVChatGroup",label:"加入直播群",type:Fh.SUBMIT,onClick:e=>{var t;QC(null==(t=null==e?void 0:e.contactInfoData)?void 0:t.groupID)}},enterGroupConversation:{key:"enterGroupConversation",label:"进入群聊",type:Fh.SUBMIT,onClick:e=>{zC(null==e?void 0:e.contactInfoData)}},addFriend:{key:"addFriend",label:"发送申请",type:Fh.SUBMIT,onClick:e=>{var t,n,a,o;o={to:null==(t=null==e?void 0:e.contactInfoData)?void 0:t.userID,source:"AddSource_Type_Web",remark:null==(n=null==e?void 0:e.contactInfoMoreList[1])?void 0:n.data,wording:null==(a=null==e?void 0:e.contactInfoMoreList[0])?void 0:a.data},bp.addFriend(o).then((()=>{ug({message:Tp.t("TUIContact.申请已发送"),type:sg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:185","delete friend failed:",e),ug({message:Tp.t("TUIContact.申请发送失败"),type:cg})}))}},deleteFriend:{key:"deleteFriend",label:"删除好友",type:Fh.CANCEL,onClick:e=>{var t,n;n=null==(t=null==e?void 0:e.contactInfoData)?void 0:t.userID,bp.deleteFriend({userIDList:[n],type:Ip.TYPES.SNS_DELETE_TYPE_BOTH}).then((e=>{const{successUserIDList:t}=e.data;t[0].userID===n?ug({message:Tp.t("TUIContact.删除好友成功"),type:sg}):ug({message:Tp.t("TUIContact.删除好友失败"),type:cg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:167","delete friend failed:",e),ug({message:Tp.t("TUIContact.删除好友失败"),type:cg})}))}},enterC2CConversation:{key:"enterC2CConversation",label:"发送消息",type:Fh.SUBMIT,onClick:e=>{zC(null==e?void 0:e.contactInfoData)}},acceptFriendApplication:{key:"acceptFriendApplication",label:"同意",type:Fh.SUBMIT,onClick:e=>{var t;WC(null==(t=null==e?void 0:e.contactInfoData)?void 0:t.userID),Sp.update(ad.CUSTOM,"currentContactListKey","friendList")}},refuseFriendApplication:{key:"refuseFriendApplication",label:"拒绝",type:Fh.CANCEL,onClick:e=>{var t,n;n=null==(t=null==e?void 0:e.contactInfoData)?void 0:t.userID,bp.refuseFriendApplication(n).then((()=>{ug({message:Tp.t("TUIContact.拒绝成功"),type:sg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:240","accept friend application failed:",e),ug({message:Tp.t("TUIContact.拒绝好友申请失败"),type:cg})}))}}},ak="/assets/edit.5adfff7a.svg",ok=w(e.defineComponent({__name:"index",props:{value:{type:Boolean,default:!1}},setup:t=>(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tui-switch",t.value?"tui-switch-checked":"tui-switch-no-checked"])},null,2))}),[["__scopeId","data-v-cf2c249c"]]),ik=w(e.defineComponent({__name:"index",emits:["switchConversation"],setup(t,{emit:n}){const a=n,o=e.ref({}),i=e.ref([]),s=e.ref([]),r=e.ref([]),c=e.computed((()=>{var e;return!!(null==(e=o.value)?void 0:e.groupID)})),l=e.computed((()=>KC(null==o?void 0:o.value))),u=e.ref(!1),d=e.computed((()=>{var e,t;return!!(null==(t=null==(e=o.value)?void 0:e.selfInfo)?void 0:t.userID)})),m=e.computed((()=>{var e;return!c.value&&(null==(e=p.value)?void 0:e.findIndex((e=>{var t;return(null==e?void 0:e.userID)===(null==(t=o.value)?void 0:t.userID)})))>=0})),p=e.ref([]);e.onMounted((()=>{Sp.watch(ad.CUSTOM,{currentContactInfo:_}),Sp.watch(ad.USER,{userBlacklist:v})})),e.onUnmounted((()=>{Sp.unwatch(ad.CUSTOM,{currentContactInfo:_}),Sp.unwatch(ad.USER,{userBlacklist:v})}));const h=()=>{Sp.update(ad.CUSTOM,"currentContactInfo",{}),Sp.update(ad.CUSTOM,"currentContactSearchingStatus",!1),(null==Op?void 0:Op.closeSearching)&&(null==Op||Op.closeSearching())},f=e=>{e.editSubmitHandler&&e.editSubmitHandler({item:e,contactInfoData:o.value,isBothFriend:u.value,isInBlackList:m.value})};function v(e){p.value=e}async function _(e){var t,n;o.value&&e&&JSON.stringify(o.value)===JSON.stringify(e)||(o.value={},i.value=[],s.value=[],r.value=[],o.value=cf(e)||{},o.value&&0!==(null==(t=Object.keys(o.value))?void 0:t.length)&&(i.value=(e=>{var t;const n=[{label:(null==e?void 0:e.groupID)?"群ID":"ID",data:(null==e?void 0:e.groupID)||(null==e?void 0:e.userID)||""}];return KC(e)||n.push({label:(null==e?void 0:e.groupID)?"群类型":"个性签名",data:(null==e?void 0:e.type)||(null==(t=null==e?void 0:e.profile)?void 0:t.selfSignature)||""}),n})(o.value),u.value=await(n=o.value,new Promise(((e,t)=>{!(null==n?void 0:n.groupID)&&(null==n?void 0:n.userID)?(null==n?void 0:n.addTime)?e(!0):bp.checkFriend({userIDList:[null==n?void 0:n.userID],type:Ip.TYPES.SNS_CHECK_TYPE_BOTH}).then((t=>{var n,a;switch(null==(a=null==(n=null==t?void 0:t.data)?void 0:n.successUserIDList[0])?void 0:a.relation){case Ip.TYPES.SNS_TYPE_NO_RELATION:case Ip.TYPES.SNS_TYPE_A_WITH_B:case Ip.TYPES.SNS_TYPE_B_WITH_A:e(!1);break;case Ip.TYPES.SNS_TYPE_BOTH_WAY:e(!0);break;default:e(!1)}})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:111","checkFriend error",e),t(e)})):e(!1)}))),(async()=>{var e,t,n,a;l.value?(tk.displayWords.data=(null==(a=o.value)?void 0:a.wording)||"",s.value.push(tk.displayWords)):((!c.value&&!u.value&&!m.value||c.value&&!d.value&&(null==(e=o.value)?void 0:e.type)!==(null==(t=null==Ip?void 0:Ip.TYPES)?void 0:t.GRP_AVCHATROOM))&&(tk.setWords.data="",s.value.push(tk.setWords)),c.value||m.value||(tk.setRemark.data=(null==(n=o.value)?void 0:n.remark)||"",tk.setRemark.editing=!1,s.value.push(tk.setRemark)),c.value||!u.value&&!m.value||(tk.blackList.data=m.value||!1,s.value.push(tk.blackList)))})(),(()=>{var e,t,n,a,i,s,p,h,g,f,v,_,y,E,C;m.value||(l.value?(null==(e=o.value)?void 0:e.type)===(null==(t=null==Ip?void 0:Ip.TYPES)?void 0:t.SNS_APPLICATION_SENT_TO_ME)&&(null==(n=null==r?void 0:r.value)||n.push(nk.refuseFriendApplication),null==(a=null==r?void 0:r.value)||a.push(nk.acceptFriendApplication)):c.value&&d.value?("Owner"===(null==(s=null==(i=o.value)?void 0:i.selfInfo)?void 0:s.role)?null==(p=null==r?void 0:r.value)||p.push(nk.dismissGroup):null==(h=null==r?void 0:r.value)||h.push(nk.quitGroup),null==(g=null==r?void 0:r.value)||g.push(nk.enterGroupConversation)):!c.value&&u.value?(null==(f=null==r?void 0:r.value)||f.push(nk.deleteFriend),null==(v=null==r?void 0:r.value)||v.push(nk.enterC2CConversation)):c.value?null==(E=null==r?void 0:r.value)||E.push((null==(_=o.value)?void 0:_.type)===(null==(y=null==Ip?void 0:Ip.TYPES)?void 0:y.GRP_AVCHATROOM)?nk.joinAVChatGroup:nk.joinGroup):null==(C=null==r?void 0:r.value)||C.push(nk.addFriend))})(),e.infoKeyList&&(s.value=e.infoKeyList.map((e=>tk[e]))),e.btnKeyList&&(r.value=e.btnKeyList.map((e=>nk[e])))))}return(t,n)=>"object"==typeof e.unref(o)&&Object.keys(e.unref(o)).length?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-contact-info",!e.unref(Qp)&&"tui-contact-info-h5"])},[e.unref(Qp)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-contact-info-header",!e.unref(Qp)&&"tui-contact-info-h5-header"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-header-icon",!e.unref(Qp)&&"tui-contact-info-h5-header-icon"]),onClick:h},[e.createVNode(ih,{file:e.unref(rf)},null,8,["file"])],2),e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-header-title",!e.unref(Qp)&&"tui-contact-info-h5-header-title"])},e.toDisplayString(e.unref(Tp).t("TUIContact.添加好友/群聊")),3)],2)),e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-basic",!e.unref(Qp)&&"tui-contact-info-h5-basic"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-basic-text",!e.unref(Qp)&&"tui-contact-info-h5-basic-text"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-basic-text-name",!e.unref(Qp)&&"tui-contact-info-h5-basic-text-name"])},e.toDisplayString(e.unref(XC)(e.unref(o))),3),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(t=>(e.openBlock(),e.createElementBlock("div",{key:t.label,class:e.normalizeClass(["tui-contact-info-basic-text-other",!e.unref(Qp)&&"tui-contact-info-h5-basic-text-other"])},e.toDisplayString(`${e.unref(Tp).t(`TUIContact.${t.label}`)}:\n ${t.data}`),3)))),128))],2),e.createElementVNode("img",{class:e.normalizeClass(["tui-contact-info-basic-avatar",!e.unref(Qp)&&"tui-contact-info-h5-basic-avatar"]),src:e.unref(jC)(e.unref(o))},null,10,["src"])],2),e.unref(s)[0]?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["tui-contact-info-more",!e.unref(Qp)&&"tui-contact-info-h5-more"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:e.normalizeClass(["tui-contact-info-more-item",!e.unref(Qp)&&"tui-contact-info-h5-more-item",t.labelPosition===e.unref(Uh).TOP?"tui-contact-info-more-item-top":"tui-contact-info-more-item-left"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-more-item-label",!e.unref(Qp)&&"tui-contact-info-h5-more-item-label"])},e.toDisplayString(`${e.unref(Tp).t(`TUIContact.${t.label}`)}`),3),e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-more-item-content",!e.unref(Qp)&&"tui-contact-info-h5-more-item-content"])},[t.editing?t.editType===e.unref(Gh).INPUT?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":e=>t.data=e,class:e.normalizeClass(["tui-contact-info-more-item-content-input",!e.unref(Qp)&&"tui-contact-info-h5-more-item-content-input"]),type:"text",onConfirm:e=>f(t),onKeyup:e.withKeys((e=>f(t)),["enter"])},null,42,["onUpdate:modelValue","onConfirm","onKeyup"])),[[e.vModelText,t.data]]):t.editType===e.unref(Gh).TEXTAREA?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:2,"onUpdate:modelValue":e=>t.data=e,class:e.normalizeClass(["tui-contact-info-more-item-content-textarea",!e.unref(Qp)&&"tui-contact-info-h5-more-item-content-textarea"]),"confirm-type":"done"},null,10,["onUpdate:modelValue"])),[[e.vModelText,t.data]]):t.editType===e.unref(Gh).SWITCH?(e.openBlock(),e.createElementBlock("div",{key:3,onClick:e=>f(t)},[e.createVNode(ok,{value:t.data},null,8,["value"])],8,["onClick"])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-contact-info-more-item-content-text",!e.unref(Qp)&&"tui-contact-info-h5-more-item-content-text"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-more-item-content-text-data",!e.unref(Qp)&&"tui-contact-info-h5-more-item-content-text-data"])},e.toDisplayString(t.data),3),t.editable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-contact-info-more-item-content-text-icon",!e.unref(Qp)&&"tui-contact-info-h5-more-item-content-text-icon"]),onClick:e=>(e=>{e.editing=!0})(t)},[e.createVNode(ih,{file:e.unref(ak),width:"14px",height:"14px"},null,8,["file"])],10,["onClick"])):e.createCommentVNode("",!0)],2))],2)],2)))),128))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-button",!e.unref(Qp)&&"tui-contact-info-h5-button"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(t=>(e.openBlock(),e.createElementBlock("button",{key:t.key,class:e.normalizeClass(["tui-contact-info-button-item",!e.unref(Qp)&&"tui-contact-info-h5-button-item",t.type===e.unref(Fh).CANCEL?"tui-contact-info-button-item-cancel":"tui-contact-info-button-item-submit"]),onClick:e=>(e=>{e.onClick&&e.onClick({contactInfoData:o.value,contactInfoMoreList:s.value}),"enterGroupConversation"!==e.key&&"enterC2CConversation"!==e.key||(a("switchConversation",o.value),h())})(t)},e.toDisplayString(e.unref(Tp).t(`TUIContact.${t.label}`)),11,["onClick"])))),128))],2)],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-68a46040"]]),sk=w(e.defineComponent({__name:"index",props:{displayType:{type:String,default:"contactList",require:!1}},emits:["switchConversation"],setup(t,{emit:n}){const a=n,o=t,i=e.ref(o.displayType||"contactList"),s=e.ref(!1),r=e.ref(!0),c=e.ref(!0);e.watchEffect((()=>{r.value="selectFriend"!==(null==o?void 0:o.displayType)})),Sp.watch(ad.CUSTOM,{isShowSelectFriendComponent:e=>{var t;if(!nh&&"selectFriend"===(null==o?void 0:o.displayType))return s.value=e,void(r.value=!1);e?(s.value=!0,nh&&(i.value="selectFriend",null==Op||Op.hideTabBar())):(s.value=!1,nh&&(i.value=o.displayType,null==(t=null==Op?void 0:Op.showTabBar())||t.catch((()=>{}))))},currentContactInfo:e=>{var t;c.value=Qp||e&&"object"==typeof e&&(null==(t=Object.keys(e))?void 0:t.length)>0}});const l=e=>{nh&&(null==Op||Op.navigateTo({url:"/TUIKit/components/TUIChat/index"})),a("switchConversation",e)};return(t,n)=>e.unref(s)?(e.openBlock(),e.createBlock(ZC,{key:0})):e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["tui-contact",!e.unref(Qp)&&"tui-contact-h5"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-left",!e.unref(Qp)&&"tui-contact-h5-left"])},[e.createVNode(qC),e.createVNode(ek,{class:e.normalizeClass(["tui-contact-left-list",!e.unref(Qp)&&"tui-contact-h5-left-list"])},null,8,["class"])],2),e.unref(c)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-contact-right",!e.unref(Qp)&&"tui-contact-h5-right"])},[e.createVNode(ik,{onSwitchConversation:l})],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-8f969de8"]]),rk=[{icon:"https://web.sdk.qcloud.com/im/assets/images/Public.svg",label:"陌生人社交群Public",type:Ip.TYPES.GRP_PUBLIC,detail:"类似 QQ 群,创建后群主可以指定群管理员,用户搜索群 ID 发起加群申请后,需要群主或管理员审批通过才能入群。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/Meeting.svg",label:"临时会议群Meeting",type:Ip.TYPES.GRP_MEETING,detail:"创建后可以随意进出,且支持查看入群前消息;适合用于音视频会议场景、在线教育场景等与实时音视频产品结合的场景。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/Work.svg",label:"好友工作群Work",type:Ip.TYPES.GRP_WORK,detail:"类似普通微信群,创建后仅支持已在群内的好友邀请加群,且无需被邀请方同意或群主审批。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/AVChatroom.svg",label:"直播群AVChatroom",type:Ip.TYPES.GRP_AVCHATROOM,detail:"创建后可以随意进出,没有群成员数量上限,但不支持历史消息存储;适合与直播产品结合,用于弹幕聊天场景。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/Community.png",label:"社群Community",type:Ip.TYPES.GRP_COMMUNITY,detail:"创建后可以随意进出最多支持100000人支持历史消息存储用户搜索群 ID 发起加群申请后,无需管理员审批即可进群。详见",src:"产品文档"}],ck=e=>rk.filter((t=>t.type===e))[0],lk=w(e.defineComponent({__name:"index",props:{groupType:{type:String,default:""}},emits:["selectType"],setup(t,{emit:n}){const a=t,o=rk,i=e.ref(),s=n;e.watchEffect((()=>{i.value=a.groupType}));return(t,n)=>(e.openBlock(),e.createElementBlock("ul",{class:"group-introduction-list select"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),((t,a)=>(e.openBlock(),e.createElementBlock("li",{key:a,class:e.normalizeClass(["select-item",[e.unref(i)===t.type&&"selected"]]),onClick:e=>(e=>{i.value=e.type,s("selectType",e.type)})(t)},[e.createElementVNode("main",{class:"select-item-type"},[e.createElementVNode("div",{class:"select-item-header"},[e.createElementVNode("aside",{class:"left"},[e.createVNode(ih,{class:"icon",file:t.icon},null,8,["file"]),e.createElementVNode("span",{class:"select-item-label"},e.toDisplayString(e.unref(Tp).t(`TUIGroup.${t.label}`)),1)]),e.unref(i)===t.type?(e.openBlock(),e.createBlock(ih,{key:0,file:e.unref(CC)},null,8,["file"])):e.createCommentVNode("",!0)]),e.createElementVNode("span",{class:"select-item-detail"},e.toDisplayString(e.unref(Tp).t(`TUIGroup.${t.detail}`)),1),e.createElementVNode("a",{class:"link",href:e.unref(PC).product.url,target:"_blank",onClick:n[0]||(n[0]=t=>{return n=e.unref(PC).product.url,void(nh||null==Op||Op.open(n));var n})},e.toDisplayString(e.unref(Tp).t(`TUIGroup.${t.src}`)),9,["href"])])],10,["onClick"])))),128))]))}}),[["__scopeId","data-v-df441dd8"]]);class uk{constructor(){Yg.registerService(Mg.TUIGroup.SERVICE.NAME,this),Yg.registerExtension(Mg.TUIChat.EXTENSION.CHAT_HEADER.EXT_ID,this),this.onCallParamsMap=new Map,this.onCallCallbackMap=new Map,this.constants=Mg}static getInstance(){return uk.instance||(uk.instance=new uk),uk.instance}getOnCallParams(e){return this.onCallParamsMap.get(e)}getOnCallCallback(e){return this.onCallCallbackMap.get(e)}async onCall(e,t,n){switch(this.onCallParamsMap.set(e,t),this.onCallCallbackMap.set(e,n),e){case Mg.TUIGroup.SERVICE.METHOD.CREATE_GROUP:Sp.update(ad.GRP,"isShowCreateComponent",!0),nh&&(null==Op||Op.reLaunch({url:"/TUIKit/components/TUIGroup/index"}));break;case Mg.TUIGroup.SERVICE.METHOD.OPEN_GROUP_MANAGEMENT:Dp.switchGroup(t.groupID),Sp.update(ad.GRP,"isShowManageComponent",!0),nh&&(null==Op||Op.navigateTo({url:"/TUIKit/components/TUIGroup/index"}));break;case Mg.TUIGroup.SERVICE.METHOD.SELECT_GROUP_MEMBER:Dp.switchGroup(t.groupID),Sp.update(ad.GRP,"isShowSelectComponent",!0),nh&&(null==Op||Op.navigateTo({url:"/TUIKit/components/TUIGroup/index"}))}}onGetExtension(e){const t=[];if(e===Mg.TUIChat.EXTENSION.CHAT_HEADER.EXT_ID)t.push({weight:100,icon:"/assets/setting.161bfa16.svg",text:"更多",data:{},listener:{onClicked:this.groupManage.bind(this)}});return t}groupManage(e){Yg.callService({serviceName:Mg.TUIGroup.SERVICE.NAME,method:Mg.TUIGroup.SERVICE.METHOD.OPEN_GROUP_MANAGEMENT,params:e,callback:()=>{nh&&(null==Op||Op.navigateBack())}})}}const dk=w(e.defineComponent({__name:"index",setup(t){const n=uk.getInstance(),a=n.constants,o=e.reactive({profile:{groupID:"",name:"",type:rk[0].type,avatar:rk[0].icon,introduction:"",notification:"",memberList:[],isSupportTopic:!1},groupConfig:{title:"",value:"",key:"",type:"",placeholder:""},isEdit:!1});e.watchEffect((()=>{const e=n.getOnCallParams(a.TUIGroup.SERVICE.METHOD.CREATE_GROUP);o.profile.memberList=e.memberList,o.groupConfig.title=e.title}));const i=e.computed((()=>ck(o.profile.type))),s=e.computed((()=>{let e="添加群聊";return o.isEdit&&(e=o.groupConfig.title),Tp.t(`TUIGroup.${e}`)})),r=e.computed((()=>{const e={name:Tp.t("TUIGroup.群名称"),key:"name",placeholder:Tp.t("TUIGroup.请输入群名称")},t={name:`${Tp.t("TUIGroup.群ID")}(${Tp.t("TUIGroup.选填")})`,key:"groupID",placeholder:Tp.t("TUIGroup.请输入群ID")};return o.profile.type===Ip.TYPES.GRP_COMMUNITY?[e]:[e,t]})),c=e.computed((()=>""===o.profile.name&&!o.isEdit)),l=e=>{o.profile.type!==e&&(o.profile.type=e,o.profile.avatar=ck(e).icon,o.isEdit&&(o.groupConfig.value=e))},u=()=>{const{profile:e}=o;if(o.isEdit)return o.profile[o.groupConfig.key]=o.groupConfig.value,o.isEdit=!o.isEdit;(async e=>{try{e.memberList=e.memberList.map((e=>({userID:e.userID}))),e.type===Ip.TYPES.GRP_COMMUNITY&&delete e.groupID;const t=await Dp.createGroup(e),{type:n}=t.data.group;n===Ip.TYPES.GRP_AVCHATROOM&&await Dp.joinGroup({groupID:t.data.group.groupID,applyMessage:""}),p(t.data.group),ug({message:Tp.t("TUIGroup.群组创建成功"),type:sg})}catch(t){ug({message:t.message,type:cg})}})(e)},d=()=>{if(o.isEdit)return o.isEdit=!o.isEdit;p(null)},m=e=>{switch(o.isEdit=!o.isEdit,o.groupConfig.key=e,o.groupConfig.value=o.profile[e],e){case"name":o.groupConfig.title="设置群名称",o.groupConfig.placeholder="请输入群名称",o.groupConfig.type="input";break;case"groupID":o.groupConfig.title="设置群ID",o.groupConfig.placeholder="请输入群ID",o.groupConfig.type="input";break;case"type":o.groupConfig.title="选择群类型",o.groupConfig.type="select"}},p=e=>{Sp.update(ad.GRP,"isShowCreateComponent",!1);const t=n.getOnCallCallback(a.TUIGroup.SERVICE.METHOD.CREATE_GROUP);t&&t(e)};return(t,n)=>(e.openBlock(),e.createBlock(Kg,{show:!0,isH5:!e.unref(Qp),isHeaderShow:!1,isFooterShow:!1,background:!1,"onUpdate:show":d},{default:e.withCtx((()=>[e.createElementVNode("div",{class:e.normalizeClass(["group",[e.unref(Qp)?"":"group-h5"]])},[e.createElementVNode("div",{class:"group-box"},[e.createElementVNode("header",{class:"group-box-header"},[e.createVNode(ih,{file:e.unref(Qp)?e.unref(KE):e.unref(rf),class:"icon-close",size:"16px",onOnClick:d},null,8,["file"]),e.createElementVNode("h1",{class:"group-box-header-title"},e.toDisplayString(e.unref(s)),1)]),e.unref(o).isEdit?(e.openBlock(),e.createElementBlock("div",{key:1,class:"group-list group-list-edit"},["input"===e.unref(o).groupConfig.type?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":n[1]||(n[1]=t=>e.unref(o).groupConfig.value=t),class:"group-name-input",type:"text",placeholder:e.unref(Tp).t(`TUIGroup.${e.unref(o).groupConfig.placeholder}`)},null,8,["placeholder"])),[[e.vModelText,e.unref(o).groupConfig.value]]):(e.openBlock(),e.createBlock(lk,{key:1,class:"group-introduction-list",groupType:e.unref(o).groupConfig.value,onSelectType:l},null,8,["groupType"]))])):(e.openBlock(),e.createElementBlock("ul",{key:0,class:"group-list"},[e.createElementVNode("li",{class:"group-list-item"},[e.createElementVNode("label",{class:"group-list-item-label"},e.toDisplayString(e.unref(Tp).t("TUIGroup.群头像")),1),e.createVNode(Jg,{url:e.unref(o).profile.avatar},null,8,["url"])]),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"group-list-item"},[e.createElementVNode("label",{class:"group-list-item-label"},e.toDisplayString(t.name),1),e.unref(Qp)?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":n=>e.unref(o).profile[t.key]=n,type:"text",placeholder:t.placeholder},null,8,["onUpdate:modelValue","placeholder"])),[[e.vModelText,e.unref(o).profile[t.key]]]):(e.openBlock(),e.createElementBlock("span",{key:1,class:"group-h5-list-item-content",onClick:e=>m(t.key)},[e.createElementVNode("p",{class:"content"},e.toDisplayString(e.unref(o).profile[t.key]),1),e.createVNode(ih,{file:e.unref(Eg)},null,8,["file"])],8,["onClick"]))])))),128)),e.createElementVNode("li",{class:"group-list-introduction"},[e.createElementVNode("div",{class:"group-list-item"},[e.createElementVNode("label",{class:"group-list-item-label"},e.toDisplayString(e.unref(Tp).t("TUIGroup.群类型")),1),e.unref(Qp)?(e.openBlock(),e.createBlock(lk,{key:0,groupType:e.unref(o).profile.type,onSelectType:l},null,8,["groupType"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:"group-h5-list-item-content",onClick:n[0]||(n[0]=e=>m("type"))},[e.createElementVNode("p",{class:"content"},e.toDisplayString(e.unref(i).label),1),e.createVNode(ih,{file:e.unref(Eg)},null,8,["file"])]))]),e.unref(Qp)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("article",{key:0,class:"group-h5-list-item-introduction"},[e.createElementVNode("label",{class:"introduction-name"},e.toDisplayString(e.unref(i).label)+"",1),e.createElementVNode("span",{class:"introduction-detail"},e.toDisplayString(e.unref(i).detail),1),e.createElementVNode("a",{href:e.unref(PC).product.url,target:"view_window"},e.toDisplayString(e.unref(Tp).t(`TUIGroup.${e.unref(i).src}`)),9,["href"])]))])])])),e.createElementVNode("footer",{class:"group-profile-footer"},[e.unref(Qp)&&!e.unref(o).isEdit?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn-default",onClick:d},e.toDisplayString(e.unref(Tp).t("TUIGroup.取消")),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"btn-submit",disabled:e.unref(c),onClick:u},e.toDisplayString(e.unref(Tp).t("TUIGroup.确认")),9,["disabled"])])])],2)])),_:1},8,["isH5"]))}}),[["__scopeId","data-v-c9c12286"]]),mk=w(e.defineComponent({__name:"index",props:{show:{type:Boolean,default:()=>!1}},emits:["update:show"],setup(t,{emit:n}){const a=t,o=e.ref(!1);e.watchEffect((()=>{o.value=a.show}));const i=n,s=()=>{o.value=!o.value,i("update:show",o.value)};return(t,n)=>e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mask",onClick:n[0]||(n[0]=e.withModifiers((t=>!e.unref(eh)&&s),["self"]))},[e.renderSlot(t.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-b12cc795"]]),pk=w(e.defineComponent({__name:"manage-name",props:{data:{type:Object,default:()=>({})},isAuthor:{type:Boolean,default:!1}},emits:["update"],setup(t,{emit:n}){const a=t,o=e.ref({}),i=e.ref(""),s=e.ref(!1),r=e.ref(null);e.watchEffect((()=>{o.value=a.data}));const c=n,l=()=>{i.value?(i.value!==o.value.name&&(c("update",{key:"name",value:i.value}),o.value.name=i.value,i.value="",ug({message:Tp.t("TUIGroup.群名称修改成功"),type:sg})),u()):ug({message:Tp.t("TUIGroup.群名称不能为空"),type:cg})},u=()=>{a.isAuthor&&(s.value=!s.value),s.value&&(i.value=o.value.name)};return e.watch((()=>s.value),(t=>{t&&e.nextTick((()=>{var e;null==(e=r.value)||e.focus()}))})),(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:"group-name"},[e.createElementVNode("label",null,e.toDisplayString(e.unref(Tp).t("TUIGroup.群名称")),1),e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({"edit-h5":e.unref(ah)})},[e.createElementVNode("main",{class:"edit-h5-main"},[e.unref(Qp)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("header",{key:0,class:"edit-h5-header"},[e.createElementVNode("aside",{class:"left"},[e.createElementVNode("h1",null,e.toDisplayString(e.unref(Tp).t("TUIGroup.修改群聊名称")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(Tp).t("TUIGroup.修改群聊名称后,将在群内通知其他成员")),1)]),e.createElementVNode("span",{class:"close",onClick:u},e.toDisplayString(e.unref(Tp).t("关闭")),1)])),e.createElementVNode("div",{class:"input-box"},[e.unref(s)?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"nameInputRef",ref:r,"onUpdate:modelValue":a[0]||(a[0]=t=>e.isRef(i)?i.value=t:null),class:"input",type:"text",onBlur:l},null,544)),[[e.vModelText,e.unref(i)]]):e.createCommentVNode("",!0),e.unref(Qp)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:1,class:"tip"},e.toDisplayString(e.unref(Tp).t("TUIGroup.仅限中文、字母、数字和下划线2-20个字")),1))]),e.unref(Qp)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("footer",{key:1,class:"edit-h5-footer"},[e.createElementVNode("button",{class:"btn",onClick:l},e.toDisplayString(e.unref(Tp).t("确认")),1)]))])],2)):e.createCommentVNode("",!0),e.unref(s)&&e.unref(Qp)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",{key:1,class:"name",onClick:u},[e.createElementVNode("span",null,e.toDisplayString(e.unref(o).name),1),t.isAuthor?(e.openBlock(),e.createBlock(ih,{key:0,class:"icon",file:e.unref(ak),width:"14px",height:"14px"},null,8,["file"])):e.createCommentVNode("",!0)]))]))}}),[["__scopeId","data-v-5f0c4190"]]),hk=w(e.defineComponent({__name:"manage-notification",props:{data:{type:Object,default:()=>({})},isAuthor:{type:Boolean,default:!1}},emits:["update","close"],setup(t,{emit:n}){const a=t,o=e.ref({}),i=e.ref(""),s=e.ref(!1),r=e.ref(!1);e.watchEffect((()=>{o.value=a.data,i.value=o.value.notification,s.value=a.isAuthor}));const c=n,l=()=>{i.value.length>150?ug({message:Tp.t("TUIGroup.群公告字数超出限制最大长度为150"),type:cg}):(i.value&&i.value!==o.value.notification&&(c("update",{key:"notification",value:i.value}),e.nextTick((()=>{i.value=""}))),r.value=!r.value)};return(t,n)=>e.unref(nh)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"edit-h5"},[e.createElementVNode("main",{class:"edit-h5-main"},[e.createElementVNode("header",{class:"edit-h5-header"},[e.createElementVNode("aside",{class:"left"},[e.createElementVNode("h1",null,e.toDisplayString(e.unref(Tp).t("TUIGroup.群公告")),1)]),e.createElementVNode("span",{class:"close",onClick:n[2]||(n[2]=e=>{c("close","notification")})},e.toDisplayString(e.unref(Tp).t("关闭")),1)]),e.createElementVNode("div",{class:"notification"},[e.unref(r)?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,"onUpdate:modelValue":n[3]||(n[3]=t=>e.isRef(i)?i.value=t:null),class:e.normalizeClass([e.unref(nh)?"uni-height":"","textarea"]),onKeyup:e.withKeys(l,["enter"])},null,34)),[[e.vModelText,e.unref(i)]]):(e.openBlock(),e.createElementBlock("section",{key:1,class:"row"},[e.unref(o).notification?(e.openBlock(),e.createElementBlock("article",{key:1},e.toDisplayString(e.unref(o).notification),1)):(e.openBlock(),e.createElementBlock("p",{key:0,class:"row-p"},e.toDisplayString(e.unref(Tp).t("TUIGroup.暂无公告")),1))])),e.unref(s)?(e.openBlock(),e.createElementBlock("footer",{key:2,class:"footer"},[e.unref(r)?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn",onClick:l},e.toDisplayString(e.unref(Tp).t("TUIGroup.发布")),1)):(e.openBlock(),e.createElementBlock("button",{key:1,class:"btn",onClick:n[4]||(n[4]=t=>r.value=!e.unref(r))},e.toDisplayString(e.unref(Tp).t("TUIGroup.编辑")),1))])):e.createCommentVNode("",!0)])])])):(e.openBlock(),e.createElementBlock("main",{key:0,class:"notification"},[e.unref(r)?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,"onUpdate:modelValue":n[0]||(n[0]=t=>e.isRef(i)?i.value=t:null),class:"textarea",onKeyup:e.withKeys(l,["enter"])},null,544)),[[e.vModelText,e.unref(i)]]):(e.openBlock(),e.createElementBlock("section",{key:1},[e.unref(o).notification?(e.openBlock(),e.createElementBlock("article",{key:1},e.toDisplayString(e.unref(o).notification),1)):(e.openBlock(),e.createElementBlock("p",{key:0},e.toDisplayString(e.unref(Tp).t("TUIGroup.暂无公告")),1))])),e.unref(s)?(e.openBlock(),e.createElementBlock("footer",{key:2},[e.unref(r)?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn",onClick:l},e.toDisplayString(e.unref(Tp).t("TUIGroup.发布")),1)):(e.openBlock(),e.createElementBlock("button",{key:1,class:"btn",onClick:n[1]||(n[1]=t=>r.value=!e.unref(r))},e.toDisplayString(e.unref(Tp).t("TUIGroup.编辑")),1))])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-bd710001"]]),gk="/assets/del-icon.c693da44.svg",fk=w(e.defineComponent({__name:"manage-member",props:{list:{type:Array,default:()=>[]},total:{type:Number,default:()=>0},isShowDel:{type:Boolean,default:()=>!1},self:{type:Object,default:()=>({})}},emits:["more","del","handleMemberProfileShow","close"],setup(t,{emit:n}){const a=t,o=e.ref(0),i=e.ref([]),s=e.ref(!1),r=e.ref({});e.watchEffect((()=>{o.value=a.total,s.value=a.isShowDel,i.value=a.list,r.value=a.self}));const c=n,l=e=>{let t="";switch(null==e?void 0:e.role){case Ip.TYPES.GRP_MBR_ROLE_ADMIN:t=Tp.t("TUIGroup.管理员");break;case Ip.TYPES.GRP_MBR_ROLE_OWNER:t=Tp.t("TUIGroup.群主")}return t&&(t=`(${t})`),e.userID===r.value.userID&&(t+=` (${Tp.t("TUIGroup.我")})`),t},u=()=>{c("more")},d=e=>{c("del",[e])},m=e=>{c("handleMemberProfileShow",e)};return(t,n)=>e.unref(nh)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"edit-h5"},[e.createElementVNode("main",{class:"main"},[e.createElementVNode("header",{class:"edit-h5-header"},[e.createElementVNode("aside",{class:"left"},[e.createElementVNode("h1",null,e.toDisplayString(e.unref(Tp).t("TUIGroup.群成员")),1)]),e.createElementVNode("span",{class:"close",onClick:n[0]||(n[0]=e=>{c("close","member")})},e.toDisplayString(e.unref(Tp).t("关闭")),1)]),e.createElementVNode("div",{class:"member"},[e.createElementVNode("ul",{class:"list list-uniapp"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"list-item"},[e.createElementVNode("aside",{class:"aside",onClick:e=>m(t)},[e.createElementVNode("img",{class:"avatar",src:t.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,["src"]),e.createElementVNode("span",{class:"name"},e.toDisplayString(t.nick||t.userID),1),e.createElementVNode("span",null,e.toDisplayString(l(t)),1)],8,["onClick"]),e.createElementVNode("div",{onClick:e=>d(t)},["Owner"!==t.role&&e.unref(s)?(e.openBlock(),e.createBlock(ih,{key:0,file:e.unref(gk),width:"16px",height:"16px"},null,8,["file"])):e.createCommentVNode("",!0)],8,["onClick"])])))),128)),e.unref(i).length<e.unref(o)?(e.openBlock(),e.createElementBlock("li",{key:0,class:"list-item",onClick:u},e.toDisplayString(e.unref(Tp).t("TUIGroup.查看更多")),1)):e.createCommentVNode("",!0)])])])])):(e.openBlock(),e.createElementBlock("main",{key:0,class:"member"},[e.createElementVNode("ul",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"list-item"},[e.createElementVNode("aside",{class:"aside",onClick:e=>m(t)},[e.createElementVNode("img",{class:"avatar",src:t.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,["src"]),e.createElementVNode("span",{class:"name"},e.toDisplayString(t.nick||t.userID),1),e.createElementVNode("span",null,e.toDisplayString(l(t)),1)],8,["onClick"]),e.createElementVNode("div",{onClick:e=>d(t)},["Owner"!==t.role&&e.unref(s)?(e.openBlock(),e.createBlock(ih,{key:0,file:e.unref(gk),width:"16px",height:"16px"},null,8,["file"])):e.createCommentVNode("",!0)],8,["onClick"])])))),128)),e.unref(i).length<e.unref(o)?(e.openBlock(),e.createElementBlock("li",{key:0,class:"list-item",onClick:u},e.toDisplayString(e.unref(Tp).t("TUIGroup.查看更多")),1)):e.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-26f5f486"]]),vk=w(e.defineComponent({__name:"manage-profile",props:{userInfo:{type:Object,default:()=>({})}},emits:["handleSwitchConversation","close","openConversation"],setup(t,{emit:n}){const a=t,o=e.ref(!1),i=e.ref({});e.watchEffect((()=>{i.value=a.userInfo}));const s=n;e.watch((()=>a.userInfo),(async(e,t)=>{if(e===t)return;const n=await Np.getUserProfile({userIDList:[a.userInfo.userID]});i.value=null==n?void 0:n.data[0],c()}),{deep:!0,immediate:!0});const r=async(e,t)=>{const n=`${t}${e}`;Mp.getConversationProfile(n).then((e=>{Mp.switchConversation(e.data.conversation.conversationID).then((()=>{Sp.update(ad.GRP,"isShowManageComponent",!1),nh&&(null==Op||Op.navigateBack())}))})).catch((e=>{g("warn","at TUIKit/components/TUIGroup/manage-group/manage-profile.vue:147","获取会话资料失败",e.code,e.msg)}))},c=async()=>{i.value.userID&&bp.checkFriend({userIDList:[i.value.userID],type:Ip.TYPES.SNS_CHECK_TYPE_BOTH}).then((e=>{var t,n,a;const i=null==(a=null==(n=null==(t=null==e?void 0:e.data)?void 0:t.successUserIDList)?void 0:n[0])?void 0:a.relation;o.value=i===Ip.TYPES.SNS_TYPE_BOTH_WAY}))},l=()=>o.value||!Sp.getData(ad.APP,"isOfficial");return(t,n)=>e.unref(nh)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"edit-h5"},[e.createElementVNode("main",{class:"main"},[e.createElementVNode("header",{class:"edit-h5-header"},[e.createElementVNode("aside",{class:"left"},[e.createElementVNode("h1",null,e.toDisplayString(e.unref(Tp).t("TUIGroup.群成员")),1)]),e.createElementVNode("span",{class:"close",onClick:n[1]||(n[1]=e=>{s("close","profile")})},e.toDisplayString(e.unref(Tp).t("关闭")),1)]),e.createElementVNode("div",{class:"edit-h5-profile"},[e.createElementVNode("div",{class:"memeber-profile-main"},[e.createVNode(Jg,{class:"avatar",url:e.unref(i).avatar,size:"60px"},null,8,["url"]),e.createElementVNode("ul",{class:"list"},[e.createElementVNode("h1",null,e.toDisplayString(e.unref(i).nick||e.unref(i).userID),1),e.createElementVNode("li",null,[e.createElementVNode("label",null,"ID"),e.createElementVNode("span",null,e.toDisplayString(e.unref(i).userID),1)]),e.createElementVNode("li",null,[e.createElementVNode("label",null,e.toDisplayString(e.unref(Tp).t("TUIContact.个性签名"))+"",1),e.createElementVNode("span",null,e.toDisplayString(e.unref(i).selfSignature),1)])])]),e.createElementVNode("div",{class:"memeber-profile-footer"},[l()?(e.openBlock(),e.createElementBlock("div",{key:0,class:"button",onClick:n[2]||(n[2]=t=>r(e.unref(i).userID,"C2C"))},e.toDisplayString(e.unref(Tp).t("TUIContact.发送消息")),1)):e.createCommentVNode("",!0)])])])])):(e.openBlock(),e.createElementBlock("div",{key:0,class:"memeber-profile"},[e.createElementVNode("div",{class:"memeber-profile-main"},[e.createElementVNode("img",{class:"avatar",src:e.unref(i).avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,["src"]),e.createElementVNode("ul",{class:"list"},[e.createElementVNode("h2",null,e.toDisplayString(e.unref(i).nick||e.unref(i).userID),1),e.createElementVNode("li",null,[e.createElementVNode("label",null,"ID"),e.createElementVNode("span",null,e.toDisplayString(e.unref(i).userID),1)]),e.createElementVNode("li",null,[e.createElementVNode("label",null,e.toDisplayString(e.unref(Tp).t("TUIContact.个性签名"))+"",1),e.createElementVNode("span",null,e.toDisplayString(e.unref(i).selfSignature),1)])])]),e.createElementVNode("div",{class:"memeber-profile-footer"},[l()?(e.openBlock(),e.createElementBlock("div",{key:0,class:"button",onClick:n[0]||(n[0]=t=>r(e.unref(i).userID,"C2C"))},e.toDisplayString(e.unref(Tp).t("TUIContact.发送消息")),1)):e.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-1467def5"]]),_k=w(e.defineComponent({__name:"index",props:{open:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:n}){const a=t,o=e.ref(!1),i=n;e.watchEffect((()=>{o.value=a.open}));const s=()=>{o.value=!o.value,i("change",o.value)};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["slider-box",[e.unref(o)&&"slider-open"]]),onClick:s},[e.createElementVNode("span",{class:"slider-block"})],2))}}),[["__scopeId","data-v-9f73c923"]]),yk="/assets/plus.f3b9aa49.svg",Ek="/assets/minus.887a634f.svg",Ck=w(e.defineComponent({__name:"manage-admin",props:{member:{type:Object,default:()=>{}},isSetMuteTime:{type:Boolean,default:()=>!1},currentGroup:{type:Object,default:()=>{}}},emits:["addAdmin","removeAdmin","setAllMuteTime","addMute","removeMute","close"],setup(t,{emit:n}){const a=t,o=e.ref(!1),i=e.ref({admin:[],member:[],muteMember:[]}),s=e.ref();e.watchEffect((()=>{i.value=a.member,o.value=a.isSetMuteTime,s.value=a.currentGroup}));const r=n,c=()=>{r("addAdmin")},l=()=>{r("removeAdmin")},u=e=>{r("setAllMuteTime",e)},d=()=>{r("addMute")},m=()=>{r("removeMute")};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"admin-main"},[e.createElementVNode("div",{class:"admin-manage"},[e.createElementVNode("div",{class:"admin-manage-header"},e.toDisplayString(e.unref(Tp).t("TUIGroup.群管理员")),1),e.createElementVNode("ul",{class:"admin-manage-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).admin,((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"admin-manage-list-item"},[e.createElementVNode("div",{class:"item-main"},[e.createElementVNode("img",{class:"item-main-avatar",src:t.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,["src"])]),e.createElementVNode("div",{class:"item-name"},e.toDisplayString(t.nick||t.userID),1)])))),128)),e.createElementVNode("li",{class:"admin-manage-list-item"},[e.createElementVNode("div",{class:"item-main",onClick:c},[e.createVNode(ih,{file:e.unref(yk),width:"16px",height:"16px"},null,8,["file"])])]),e.createElementVNode("li",{class:"admin-manage-list-item"},[e.unref(i).admin.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-main",onClick:l},[e.createVNode(ih,{file:e.unref(Ek),width:"16px",height:"16px"},null,8,["file"])])):e.createCommentVNode("",!0)])])]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"admin-mute-all"},[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"admin-mute-all-title"},e.toDisplayString(e.unref(Tp).t("TUIGroup.全员禁言")),1),e.createElementVNode("div",{class:"admin-mute-all-content"},e.toDisplayString(e.unref(Tp).t("TUIGroup.全员禁言开启后,只允许群主和管理员发言。")),1)]),e.createVNode(_k,{open:e.unref(s).muteAllMembers,onChange:u},null,8,["open"])])):e.createCommentVNode("",!0),e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"admin-mute"},[e.createElementVNode("div",{class:"admin-mute-header"},e.toDisplayString(e.unref(Tp).t("TUIGroup.单独禁言人员")),1),e.createElementVNode("ul",{class:"admin-mute-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).muteMember,((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:"admin-mute-list-item"},[e.createElementVNode("div",{class:"item-main"},[e.createElementVNode("img",{class:"item-main-avatar",src:t.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,["src"])]),e.createElementVNode("div",{class:"item-name"},e.toDisplayString(t.nick||t.userID),1)])))),128)),e.createElementVNode("li",{class:"admin-mute-list-item"},[e.createElementVNode("div",{class:"item-main",onClick:d},[e.createVNode(ih,{file:e.unref(yk),width:"16px",height:"16px"},null,8,["file"])])]),e.createElementVNode("li",{class:"admin-mute-list-item"},[e.unref(i).muteMember.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-main",onClick:m},[e.createVNode(ih,{file:e.unref(Ek),width:"16px",height:"16px"},null,8,["file"])])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-2a5ca315"]]),kk=e.defineComponent({__name:"index",props:{groupID:{type:String,default:""},groupCurrentTab:{type:String,default:""}},setup(t){const n=uk.getInstance(),a=n.constants,o=t,i=e.ref(void 0),s=e.ref(""),r=e.ref(""),c=e.ref(""),l=e.ref(!1),u=e.ref(""),d=e.ref({list:[]}),m=e.ref({}),p=e.ref({[Ip.TYPES.GRP_WORK]:"好友工作群",[Ip.TYPES.GRP_PUBLIC]:"陌生人社交群",[Ip.TYPES.GRP_MEETING]:"临时会议群",[Ip.TYPES.GRP_AVCHATROOM]:"直播群",[Ip.TYPES.GRP_COMMUNITY]:"社群",[Ip.TYPES.JOIN_OPTIONS_FREE_ACCESS]:"自由加入",[Ip.TYPES.JOIN_OPTIONS_NEED_PERMISSION]:"需要验证",[Ip.TYPES.JOIN_OPTIONS_DISABLE_APPLY]:"禁止加群"}),h=e.ref({admin:[],member:[],muteMember:[]}),g=e.ref([]),f=e.ref(""),v=e.ref(!1),_=e.ref(!1),y=e.ref([]),E=e.ref(!1),C=e.ref([]),k=e.ref([]),I=e.ref(),S=e.ref(""),T=e.ref("");e.onMounted((()=>{e.nextTick((()=>{i.value&&zp.listen({domRefs:i.value,handler:Q})}))})),Sp.watch(ad.GRP,{currentGroup:e=>{var t,n;e&&(I.value=e,S.value=null==(n=null==(t=I.value)?void 0:t.selfInfo)?void 0:n.role)},currentGroupMemberList:e=>{C.value=e,h.value={admin:[],member:[],muteMember:[]},Array.from(e).map((e=>{switch(null==e?void 0:e.role){case Ip.TYPES.GRP_MBR_ROLE_ADMIN:h.value.admin.push(e);break;case Ip.TYPES.GRP_MBR_ROLE_MEMBER:h.value.member.push(e)}return e}));const t=(new Date).getTime();h.value.muteMember=Array.from(e).filter((e=>1e3*(null==e?void 0:e.muteUntil)-t>0))}}),Sp.watch(ad.CONV,{currentConversation:e=>{var t;T.value=null==(t=null==e?void 0:e.groupProfile)?void 0:t.groupID}}),e.watchEffect((()=>{const e=n.getOnCallParams(a.TUIGroup.SERVICE.METHOD.OPEN_GROUP_MANAGEMENT);u.value=e.groupID||T.value,s.value=o.groupCurrentTab}));const M=e.computed((()=>{let e="";switch(s.value){case"notification":e="群公告";break;case"member":case"profile":e="群成员";break;default:e="群管理"}return e})),N=e.computed((()=>{var e,t;return(null==(t=null==(e=I.value)?void 0:e.selfInfo)?void 0:t.role)===Ip.TYPES.GRP_MBR_ROLE_OWNER})),w=e.computed((()=>{var e,t;return(null==(t=null==(e=I.value)?void 0:e.selfInfo)?void 0:t.role)===Ip.TYPES.GRP_MBR_ROLE_OWNER})),D=e.computed((()=>{var e;return(null==(e=I.value)?void 0:e.type)===Ip.TYPES.GRP_WORK})),b=e.computed((()=>!(D.value||!N.value&&!w.value))),L=e.computed((()=>{var e;return!((null==(e=null==I?void 0:I.value)?void 0:e.type)===Ip.TYPES.GRP_AVCHATROOM)})),P=async e=>{const{key:t,value:n}=e,a={groupID:I.value.groupID,[t]:n};Dp.updateGroupProfile(a).then((e=>{I.value=e.data.group,r.value=""})).catch((e=>{ug({message:null==e?void 0:e.message,type:cg})}))},A=e=>{s.value=e,r.value="","member"===s.value&&(c.value="remove"),s.value||(c.value="")},R=()=>{O()},O=async e=>{var t;y.value=[];let n=[];switch(e){case"add":_.value=!1,n=[...h.value.admin,...h.value.member].map((e=>e.userID)),g.value=(await V()).filter((e=>e.userID&&n.indexOf(e.userID)<0)),f.value="添加成员";break;case"remove":_.value=!1,g.value=C.value.filter((e=>{var t,n;return e.userID!==(null==(n=null==(t=null==I?void 0:I.value)?void 0:t.selfInfo)?void 0:n.userID)})),f.value="删除成员";break;case"addAdmin":_.value=!0,g.value=h.value.member,f.value="新增管理员";break;case"removeAdmin":_.value=!0,g.value=h.value.admin,f.value="移除管理员";break;case"changeOwner":_.value=!0,g.value=[...h.value.admin,...h.value.member],f.value="转让群组";break;case"addMute":_.value=!0,g.value=h.value.member,"Owner"===I.value.selfInfo.role&&(g.value=[...h.value.admin,...h.value.member]),g.value=null==(t=null==g?void 0:g.value)?void 0:t.filter((e=>{var t,n;return(null==(n=null==(t=null==h?void 0:h.value)?void 0:t.muteMember)?void 0:n.indexOf(e))<0})),f.value="新增禁言用户";break;case"removeMute":_.value=!0,g.value=h.value.muteMember,f.value="移除禁言用户"}e&&(c.value=e),l.value=!l.value},V=async()=>(await bp.getFriendList()).data.map((e=>null==e?void 0:e.profile)).filter((e=>!d.value.list.some((t=>t.userID===e.userID)))),B=e.computed((()=>{var e,t,n;const a=null==(t=null==(e=null==I?void 0:I.value)?void 0:e.selfInfo)?void 0:t.role,o=null==(n=null==I?void 0:I.value)?void 0:n.type;return a===Ip.TYPES.GRP_MBR_ROLE_OWNER&&o!==Ip.TYPES.GRP_WORK})),x=e.computed((()=>{var e;return(null==(e=null==I?void 0:I.value)?void 0:e.type)===Ip.TYPES.GRP_WORK})),U=e.computed((()=>{var e,t;let n=3;return x.value||(n+=1),"Owner"!==(null==(t=null==(e=null==I?void 0:I.value)?void 0:e.selfInfo)?void 0:t.role)&&(n+=1),n})),G=e=>{m.value=e,A("profile")},F=e=>{"remove"===c.value?(k.value=e,E.value=!E.value):q(e,c.value),l.value=!1},Y=()=>{nh?null==Op||Op.switchTab({url:"/TUIKit/components/TUIConversation/index"}):(Q(),Mp.switchConversation())},H=e=>{P({key:"muteAllMembers",value:e}),e?(Cg("muteGroup"),ug({message:Tp.t("TUIGroup.禁言设置成功"),type:sg})):ug({message:Tp.t("TUIGroup.取消禁言成功"),type:sg})},Z=async e=>{var t,n;let a={},o={};const i={groupID:u.value,userIDList:[e]};switch(c.value){case"add":try{o=await Dp.getGroupMemberProfile(i),g.value=g.value.filter((e=>{var t;return e.userID!==(null==(t=a.data[0])?void 0:t.userID)})),g.value=[...g.value,...a.data],(null==(t=null==o?void 0:o.data)?void 0:t.memberList.length)>0&&(g.value=g.value.map((e=>{var t;return e.userID===(null==(t=null==o?void 0:o.data)?void 0:t.memberList[0].userID)&&(e.isDisabled=!0),e})))}catch(tI){const t=Tp.t("TUIGroup.该用户不存在");ug({message:t,type:cg})}break;case"remove":try{if(a=await Dp.getGroupMemberProfile(i),0===a.data.memberList.length){const e=Tp.t("TUIGroup.该用户不在群组内");ug({message:e,type:cg})}g.value=g.value.filter((e=>{var t,n;return e.userID!==(null==(n=null==(t=null==a?void 0:a.data)?void 0:t.memberList[0])?void 0:n.userID)})),(null==(n=null==a?void 0:a.data)?void 0:n.memberList.length)&&(g.value=[...g.value,...a.data.memberList])}catch(tI){const t=Tp.t("TUIGroup.该用户不存在");ug({message:t,type:cg})}}},q=(e,t)=>{const n=[];switch(e.map((e=>(n.push(e.userID),e))),t){case"add":j(n);break;case"remove":z(n);break;case"addAdmin":case"removeAdmin":K(e[0]);break;case"changeOwner":J(n[0]);break;case"addMute":X(n[0],"add");break;case"removeMute":X(n[0],"remove")}},j=async e=>{const t={groupID:u.value,userIDList:e};await Dp.addGroupMember(t)},J=async e=>{const t={groupID:u.value,newOwnerID:e},n=await Dp.changeGroupOwner(t);I.value={},I.value=n.data.group},X=async(e,t)=>{const n={groupID:u.value,userID:e,muteTime:"add"===t?2592e3:0};await Dp.setGroupMemberMuteTime(n)},K=async e=>{let t="";switch(e.role){case Ip.TYPES.GRP_MBR_ROLE_ADMIN:t=Ip.TYPES.GRP_MBR_ROLE_MEMBER;break;case Ip.TYPES.GRP_MBR_ROLE_MEMBER:t=Ip.TYPES.GRP_MBR_ROLE_ADMIN}const n={groupID:u.value,userID:e.userID,role:t};await Dp.setGroupMemberRole(n)},z=async e=>{const t={groupID:u.value,userIDList:e,reason:""};await Dp.deleteGroupMember(t)},W=()=>{s.value?A(""):Q()},Q=()=>{Sp.update(ad.GRP,"isShowManageComponent",!1);const e=n.getOnCallCallback(a.TUIGroup.SERVICE.METHOD.OPEN_GROUP_MANAGEMENT);e&&e()};return(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"manageRef",ref:i,class:"manage"},[e.unref(nh)&&"admin"!==e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("header",{key:0,class:"manage-header"},[e.createVNode(ih,{file:e.unref(rf),onOnClick:W},null,8,["file"]),e.createElementVNode("div",{class:"manage-header-content"},e.toDisplayString(e.unref(Tp).t(`TUIGroup.${e.unref(M)}`)),1),e.createElementVNode("div")])),!e.unref(s)||e.unref(nh)&&"admin"!=e.unref(s)?(e.openBlock(),e.createElementBlock("main",{key:1,class:"main"},[e.createVNode(pk,{class:"space-top",isAuthor:e.unref(N)||e.unref(w)||e.unref(D),data:e.unref(I),onUpdate:P},null,8,["isAuthor","data"]),e.createElementVNode("div",{class:"user-info space-top"},[e.createElementVNode("header",{class:"user-info-header",onClick:n[0]||(n[0]=e=>A("member"))},[e.createElementVNode("label",{class:"user-info-header-left"},e.toDisplayString(e.unref(Tp).t("TUIGroup.群成员")),1),e.createElementVNode("div",{class:"user-info-header-right"},[e.createElementVNode("span",{class:"span"},e.toDisplayString(e.unref(I).memberCount||e.unref(C).length)+" "+e.toDisplayString(e.unref(Tp).t("TUIGroup.人")),1),e.createVNode(ih,{file:e.unref(Eg)},null,8,["file"])])]),e.createElementVNode("ol",{class:"user-info-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C).slice(0,e.unref(U)),((t,n)=>(e.openBlock(),e.createElementBlock("dl",{key:n,class:"user-info-list-item"},[e.createElementVNode("dt",{class:"user-info-list-item-main",onClick:e=>G(t)},[e.createElementVNode("img",{class:"avatar",src:t.avatar||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",onerror:"this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"},null,8,["src"])],8,["onClick"]),e.createElementVNode("dd",{class:"user-info-list-item-info"},e.toDisplayString(t.nick||t.userID),1)])))),128)),e.unref(x)?(e.openBlock(),e.createElementBlock("dl",{key:0,class:"user-info-list-item"},[e.createElementVNode("dt",{class:"avatar",onClick:n[1]||(n[1]=e=>O("add"))}," + ")])):e.createCommentVNode("",!0),"Owner"===e.unref(S)?(e.openBlock(),e.createElementBlock("dl",{key:1,class:"user-info-list-item"},[e.createElementVNode("dt",{class:"avatar",onClick:n[2]||(n[2]=e=>O("remove"))}," - ")])):e.createCommentVNode("",!0)])]),e.createElementVNode("ul",{class:"content list space-top",onClick:n[5]||(n[5]=e=>r.value="")},[e.createElementVNode("li",{class:"list-item",onClick:n[3]||(n[3]=e=>A("notification"))},[e.createElementVNode("aside",{class:"aside"},[e.createElementVNode("label",{class:"label"},e.toDisplayString(e.unref(Tp).t("TUIGroup.群公告")),1),e.createElementVNode("article",{class:"article"},e.toDisplayString(e.unref(I).notification),1)]),e.createVNode(ih,{file:e.unref(Eg),class:"end"},null,8,["file"])]),(e.unref(w)||e.unref(N))&&e.unref(b)?(e.openBlock(),e.createElementBlock("li",{key:0,class:"list-item",onClick:n[4]||(n[4]=e=>A("admin"))},[e.createElementVNode("label",{class:"label"},e.toDisplayString(e.unref(Tp).t("TUIGroup.群管理")),1),e.createVNode(ih,{file:e.unref(Eg)},null,8,["file"])])):e.createCommentVNode("",!0),e.createElementVNode("li",{class:"list-item"},[e.createElementVNode("label",{class:"label"},e.toDisplayString(e.unref(Tp).t("TUIGroup.群ID")),1),e.createElementVNode("div",{class:"groupID"},[e.createElementVNode("span",{class:"span"},e.toDisplayString(e.unref(u)),1)])]),e.createElementVNode("li",{class:"list-item"},[e.createElementVNode("label",{class:"label"},e.toDisplayString(e.unref(Tp).t("TUIGroup.群头像")),1),e.createElementVNode("img",{class:"avatar",src:e.unref(I).avatar||"https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg",onerror:"this.onerror=null;this.src='https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg'"},null,8,["src"])]),e.createElementVNode("li",{class:"list-item"},[e.createElementVNode("label",{class:"label"},e.toDisplayString(e.unref(Tp).t("TUIGroup.群类型")),1),e.createElementVNode("span",{class:"span"},e.toDisplayString(e.unref(Tp).t(`TUIGroup.${e.unref(p)[e.unref(I).type]}`)),1)]),e.createElementVNode("li",{class:"list-item"},[e.createElementVNode("label",{class:"label"},e.toDisplayString(e.unref(Tp).t("TUIGroup.加群方式")),1),e.createElementVNode("span",{class:"span"},e.toDisplayString(e.unref(Tp).t(`TUIGroup.${e.unref(p)[e.unref(I).joinOption]}`)),1)])]),e.createElementVNode("ul",{class:"footer list space-top"},["Owner"===e.unref(S)&&e.unref(C).length>1?(e.openBlock(),e.createElementBlock("li",{key:0,class:"list-item",onClick:n[6]||(n[6]=e.withModifiers((e=>O("changeOwner")),["stop"]))},e.toDisplayString(e.unref(Tp).t("TUIGroup.转让群组")),1)):e.createCommentVNode("",!0),e.unref(B)?(e.openBlock(),e.createElementBlock("li",{key:1,class:"list-item",onClick:n[7]||(n[7]=e.withModifiers((t=>(async e=>{await Dp.dismissGroup(e.groupID),Cg("dismissGroup"),ug({message:Tp.t("TUIGroup.群组解散成功"),type:sg}),Y()})(e.unref(I))),["stop"]))},e.toDisplayString(e.unref(Tp).t("TUIGroup.解散群聊")),1)):(e.openBlock(),e.createElementBlock("li",{key:2,class:"list-item",onClick:n[8]||(n[8]=e.withModifiers((t=>(async e=>{await Dp.quitGroup(e.groupID),Y()})(e.unref(I))),["stop"]))},e.toDisplayString(e.unref(Tp).t("TUIGroup.退出群组")),1))])])):e.createCommentVNode("",!0),"member"===e.unref(s)?(e.openBlock(),e.createBlock(fk,{key:2,self:e.unref(I).selfInfo,list:e.unref(C),total:~~e.unref(I).memberCount,isShowDel:"Owner"===e.unref(S)&&e.unref(L),onMore:n[9]||(n[9]=e=>(async e=>{const t={groupID:u.value,count:100,offset:e&&"more"===e?d.value.list.length:0};await Dp.getGroupMemberList(t).then((t=>{d.value.list=e&&"more"===e?[...d.value.list,...t.data.memberList]:t.data.memberList}))})("more")),onDel:F,onHandleMemberProfileShow:G,onClose:n[10]||(n[10]=e=>A(""))},null,8,["self","list","total","isShowDel"])):e.createCommentVNode("",!0),"profile"===e.unref(s)?(e.openBlock(),e.createBlock(vk,{key:3,userInfo:e.unref(m),onClose:n[11]||(n[11]=e=>A(""))},null,8,["userInfo"])):e.createCommentVNode("",!0),"notification"===e.unref(s)?(e.openBlock(),e.createBlock(hk,{key:4,isAuthor:e.unref(N)||e.unref(w)||e.unref(D),data:e.unref(I),onUpdate:P,onClose:n[12]||(n[12]=e=>A(""))},null,8,["isAuthor","data"])):e.createCommentVNode("",!0),"admin"===e.unref(s)?e.withDirectives((e.openBlock(),e.createBlock(Ck,{key:5,isSetMuteTime:e.unref(b),member:e.unref(h),currentGroup:e.unref(I),onAddAdmin:n[13]||(n[13]=e=>O("addAdmin")),onRemoveAdmin:n[14]||(n[14]=e=>O("removeAdmin")),onSetAllMuteTime:H,onAddMute:n[15]||(n[15]=e=>O("addMute")),onRemoveMute:n[16]||(n[16]=e=>O("removeMute")),onClose:n[17]||(n[17]=e=>A(""))},null,8,["isSetMuteTime","member","currentGroup"])),[[e.vShow,e.unref(w)]]):e.createCommentVNode("",!0),e.createVNode(mk,{show:e.unref(l),"onUpdate:show":n[18]||(n[18]=e=>l.value=e)},{default:e.withCtx((()=>[e.createVNode(IC,{title:e.unref(Tp).t(`TUIGroup.${e.unref(f)}`),list:e.unref(g),isSearch:e.unref(v),isRadio:e.unref(_),selectedList:e.unref(y),isH5:!e.unref(Qp),onSubmit:F,onCancel:R,onSearch:Z},null,8,["title","list","isSearch","isRadio","selectedList","isH5"])])),_:1},8,["show"]),e.createVNode(Kg,{class:"deleted-dialog",title:e.unref(Tp).t("TUIGroup.删除成员"),show:e.unref(E),isH5:!e.unref(Qp),center:!0,isHeaderShow:e.unref(Qp),onSubmit:n[19]||(n[19]=t=>q(e.unref(k),"remove")),"onUpdate:show":n[20]||(n[20]=e=>E.value=e)},{default:e.withCtx((()=>[1===e.unref(k).length?(e.openBlock(),e.createElementBlock("p",{key:0,class:"del-dialog-title"},e.toDisplayString(e.unref(Tp).t("TUIGroup.确定从群聊中删除该成员?")),1)):e.createCommentVNode("",!0),e.unref(k).length>1?(e.openBlock(),e.createElementBlock("p",{key:1,class:"del-dialog-title"},e.toDisplayString(e.unref(Tp).t("TUIGroup.确定从群聊中删除所选成员?")),1)):e.createCommentVNode("",!0)])),_:1},8,["title","show","isH5","isHeaderShow"])],512))}}),Ik=w(kk,[["__scopeId","data-v-227e769d"]]),Sk=e.defineComponent({__name:"index",setup(t){const n=uk.getInstance(),a=n.constants,o=e.ref(!1),i=e.ref([]),s=e.ref([]),r=e.ref({}),c=e.ref({groupID:"",isRadio:!1,isNeedSearch:!1,title:"",filterUserIDList:[]}),l=e.ref(null);e.watchEffect((()=>{const e=n.getOnCallParams(a.TUIContact.SERVICE.METHOD.SELECT_FRIEND);var t;c.value.groupID=e.groupID,c.value.title=e.title,c.value.isRadio=e.isRadio,c.value.isNeedSearch=e.isNeedSearch,c.value.filterUserIDList=e.filterUserIDList,e.isNeedSearch&&(t=e.isNeedSearch,l.value=Yg.getService(a.TUISearch.SERVICE.NAME),l.value?o.value=t:g("warn","at TUIKit/components/TUIGroup/select-member/index.vue:48","请添加 TUISearch 组件"))})),Sp.watch(ad.GRP,{currentGroup:e=>{r.value=e},currentGroupMemberList:e=>{i.value=e.map((e=>{c.value.filterUserIDList.indexOf(e.userID)>-1&&(e.isDisabled=!0)})),s.value=i.value}});const u=async()=>{const e={groupID:r.value.groupID,count:100,offset:i.value.length};await Dp.getGroupMemberList(e)},d=e=>{Sp.update(ad.GRP,"isShowSelectComponent",!1);const t=n.getOnCallCallback(a.TUIGroup.SERVICE.METHOD.SELECT_GROUP_MEMBER);t&&t(e)},m=()=>{ug({message:Tp.t("TUIGroup.该用户不存在"),type:cg}),s.value=[...i.value]},p=async e=>{if(!e)return s.value=i.value;try{const t=await l.value.searchGroupMember(e);if(!t.data[0])return m();s.value=t.data;const n=i.value.filter((e=>e.userID===t.data[0].userID));i.value=n.length?i.value:[...i.value,...s.value]}catch(tI){return m()}};return(t,n)=>(e.openBlock(),e.createBlock(YC,{isRadio:e.unref(c).isRadio,isNeedSearch:e.unref(c).isNeedSearch,title:e.unref(c).title,userList:e.unref(s),total:e.unref(r).memberCount,onGetMore:u,onSearch:p,onComplete:d},null,8,["isRadio","isNeedSearch","title","userList","total"]))}}),Tk=w(e.defineComponent({__name:"index",setup(t){const n=e.ref(!1),a=e.ref(!1),o=e.ref(!1);return Sp.watch(ad.GRP,{isShowCreateComponent:e=>{n.value=!!e},isShowManageComponent:e=>{a.value=!!e},isShowSelectComponent:e=>{o.value=!!e}}),(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([(e.unref(n)||e.unref(a)||e.unref(o))&&"tui-group"])},[e.unref(n)?(e.openBlock(),e.createBlock(dk,{key:0})):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createBlock(Ik,{key:1})):e.createCommentVNode("",!0),e.unref(o)?(e.openBlock(),e.createBlock(Sk,{key:2})):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-3ff2cd9d"]]);__definePage("pages/login/open",we),__definePage("pages/login/loginPhone",Mn),__definePage("pages/shop/shop",xn),__definePage("pages/merchant/business-operator/index",Oa),__definePage("pages/merchant/order/index",Ba),__definePage("pages/merchant/commodity-release/index",Gr),__definePage("pages/merchant/specifications/index",Yr),__definePage("pages/shop/commodity/index",Kr),__definePage("pages/shop/continue-pay/index",Wr),__definePage("pages/shop/store/index",ec),__definePage("pages/shop/order/index",ac),__definePage("pages/news/news",_c),__definePage("pages/news/group-chat-list/index",yc),__definePage("pages/news/group-chat/index",Tc),__definePage("pages/news/chat/chat",Ac),__definePage("pages/news/red-envelope/index",Oc),__definePage("pages/mine/mine",Uc),__definePage("pages/mine/setting/setting",Gc),__definePage("pages/mine/userinfo",Fc),__definePage("pages/mine/switch-accounts/index",Yc),__definePage("pages/mine/setting/usePay",Zc),__definePage("pages/mine/realname",qc),__definePage("pages/mine/delivery-address/index",nl),__definePage("pages/mine/homepage",ul),__definePage("pages/release/video",dl),__definePage("pages/index/wallet/wallet",ml),__definePage("pages/index/myTeam",pl),__definePage("pages/index/search",gl),__definePage("pages/index/videoHome",vl),__definePage("pages/index/report",_l),__definePage("pages/mine/collectsVideo",yl),__definePage("pages/index/promotion",El),__definePage("pages/index/myQrCode",Cl),__definePage("pages/index/deal",Il),__definePage("pages/index/durian",wl),__definePage("pages/index/durainActivation",Dl),__definePage("pages/index/trade",bl),__definePage("pages/index/orchard",Ll),__definePage("pages/index/durianLog",Pl),__definePage("pages/index/dataCenter/push",Al),__definePage("pages/index/dataCenter/pushVideoCollects",Rl),__definePage("pages/login/register",Ol),__definePage("pages/login/forget",Vl),__definePage("pages/login/retrieve",Bl),__definePage("pages/shop/settle",xl),__definePage("pages/index/integral",Yl),__definePage("pages/index/integralLog",Hl),__definePage("pages/index/integralMall",Zl),__definePage("pages/index/appeal",ql),__definePage("pages/index/beInvited",jl),__definePage("pages/news/newFriend",Jl),__definePage("pages/news/newAttention",Xl),__definePage("pages/news/newFans",Kl),__definePage("pages/news/message",zl),__definePage("pages/index/article",Wl),__definePage("pages/index/wallet/topUp",Ql),__definePage("pages/news/addFriend",$l),__definePage("pages/news/redPacket",eu),__definePage("pages/index/integralDetail",tu),__definePage("pages/index/videoStatistics",nu),__definePage("pages/mine/myComment",au),__definePage("pages/mine/secondpwd",ou),__definePage("pages/index/wallet/bill",iu),__definePage("pages/index/wallet/billDetail",su),__definePage("pages/index/dataCenter/dataCenter",_u),__definePage("pages/index/dataCenter/like",yu),__definePage("pages/index/dataCenter/otherPush",Eu),__definePage("pages/index/dataCenter/pushDetail",Cu),__definePage("pages/index/dataCenter/pushHistory",ku),__definePage("pages/index/dataCenter/pushDetailUser",Iu),__definePage("pages/shop/commodity/evaluate",Su),__definePage("pages/shop/homepage",Tu),__definePage("pages/shop/order/detail",Nu),__definePage("pages/shop/order/refundStar",wu),__definePage("pages/shop/order/logistics",Du),__definePage("pages/shop/order/evaluate",bu),__definePage("pages/shop/order/afterSales",Lu),__definePage("pages/shop/collect",Pu),__definePage("pages/shop/focusStore",Au),__definePage("pages/shop/history",Ru),__definePage("pages/shop/coupon",Ou),__definePage("pages/shop/store/commodities",Vu),__definePage("pages/release/commodity",Bu),__definePage("pages/mine/feedback",xu),__definePage("pages/mine/setting/safeCenter",Uu),__definePage("pages/mine/setting/bankCard",Gu),__definePage("pages/mine/setting/bankCardAdd",Fu),__definePage("pages/index/wallet/get",Yu),__definePage("pages/index/wallet/merchantBill",Hu),__definePage("pages/mine/setting/teen",Zu),__definePage("pages/mine/setting/binding",qu),__definePage("pages/mine/setting/feedback",ju),__definePage("pages/shop/search",Ju),__definePage("pages/index/hashOrder",Xu),__definePage("TUIKit/components/TUIConversation/index",af),__definePage("TUIKit/components/TUIChat/index",UC),__definePage("TUIKit/components/TUIChat/video-play",GC),__definePage("TUIKit/components/TUIChat/web-view",FC),__definePage("TUIKit/components/TUIContact/index",sk),__definePage("TUIKit/components/TUIGroup/index",Tk),__definePage("TUIKit/components/TUISearch/index",qg);const Mk={onLaunch(){this.getUserinfo()},methods:{getUserinfo(){const e=uni.getStorageSync("token"),t=uni.getStorageSync("userinfo");e&&(t&&ke.commit("setState",{key:"userinfo",value:t}),Me.getUserinfo((()=>{Me.loginTencent(t),Me.loginAccountManagement(t)})))}}};class Nk{constructor(e=0,t=0){this.high=e,this.low=t}equal(e){return null!==e&&this.low===e.low&&this.high===e.high}toString(){var e=Number(this.high).toString(16);let t=Number(this.low).toString(16);if(t.length<8){let e=8-t.length;for(;e;)t="0"+t,e--}return e+t}}const wk={TEST:{CHINA:{DEFAULT:"wss://wss-dev.tim.qq.com"},OVERSEA:{DEFAULT:"wss://wss-dev.tim.qq.com"},SINGAPORE:{DEFAULT:"wss://wsssgp-dev.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr-dev.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger-dev.im.qcloud.com"},IND:{DEFAULT:"wss://wssind-dev.im.qcloud.com"},JPN:{DEFAULT:"wss://wssjpn-dev.im.qcloud.com"},USA:{DEFAULT:"wss://wssusa-dev.im.qcloud.com"},INDONESIA:{DEFAULT:"wss://wssidn-dev.im.qcloud.com"}},PRODUCTION:{CHINA:{DEFAULT0:"wss://*w4c.my-imcloud.com",DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.tim.qq.com",STAT:"https://events.im.qcloud.com",ANYCAST:"wss://162.14.13.203"},OVERSEA:{DEFAULT0:"wss://*w4c.my-imcloud.com",DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.my-imcloud.com",STAT:"https://api.my-imcloud.com"},SINGAPORE:{DEFAULT0:"wss://*w4s.my-imcloud.com",DEFAULT:"wss://wsssgp.im.qcloud.com",BACKUP:"wss://wsssgp.my-imcloud.com",STAT:"https://apisgp.my-imcloud.com",ANYCAST:"wss://162.14.19.159"},KOREA:{DEFAULT0:"wss://*w4k.my-imcloud.com",DEFAULT:"wss://wsskr.im.qcloud.com",BACKUP:"wss://wsskr.my-imcloud.com",STAT:"https://apikr.my-imcloud.com",ANYCAST:"wss://162.14.13.104"},GERMANY:{DEFAULT0:"wss://*w4g.my-imcloud.com",DEFAULT:"wss://wssger.im.qcloud.com",BACKUP:"wss://wssger.my-imcloud.com",STAT:"https://apiger.my-imcloud.com",ANYCAST:"wss://162.14.3.17"},IND:{DEFAULT0:"wss://*w4i.my-imcloud.com",DEFAULT:"wss://wssind.my-imcloud.com",BACKUP:"wss://wssind.im.qcloud.com",STAT:"https://apiind.my-imcloud.com",ANYCAST:"wss://162.14.18.188"},JPN:{DEFAULT0:"wss://*w4j.my-imcloud.com",DEFAULT:"wss://wssjpn.im.qcloud.com",BACKUP:"wss://wssjpn.my-imcloud.com",STAT:"https://apijpn.my-imcloud.com"},USA:{DEFAULT0:"wss://*w4u.my-imcloud.com",DEFAULT:"wss://wssusa.im.qcloud.com",BACKUP:"wss://wssusa.my-imcloud.com",STAT:"https://apiusa.my-imcloud.com",ANYCAST:"wss://162.14.10.42"},INDONESIA:{DEFAULT0:"wss://*w4y.my-imcloud.com",DEFAULT:"wss://wssidn.im.qcloud.com",BACKUP:"wss://wssidn.my-imcloud.com",STAT:"https://apiidn.my-imcloud.com",ANYCAST:"wss://43.129.34.169"}}},Dk="CHINA",bk={HOST:{CURRENT:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://events.im.qcloud.com"},setCurrent(e=Dk){this.CURRENT=wk.PRODUCTION[e]}},NAME:{OPEN_IM:"openim",OPEN_IM_MSG_EXT:"openim_msg_ext_http_svc",GRP:"group_open_http_svc",GRP_AV:"group_open_avchatroom_http_svc",GRP_COMMUNITY:"million_group_open_http_svc",GRP_ATTR:"group_open_attr_http_svc",FD:"sns",PROFILE:"profile",RECENT_CONTACT:"recentcontact",PIC:"openpic",BIG_GRP_NO_AUTH:"group_open_http_noauth_svc",BIG_GRP_POLLING:"group_open_long_polling_http_svc",BIG_GRP_POLLING_NO_AUTH:"group_open_long_polling_http_noauth_svc",IM_OPEN_STAT:"imopenstat",WEB_IM:"webim",IM_COS_SIGN:"im_cos_sign_svr",CUSTOM_UPLOAD:"im_cos_msg",HEARTBEAT:"heartbeat",IM_OPEN_PUSH:"im_open_push",IM_OPEN_STATUS:"im_open_status",IM_LONG_MSG:"im_long_msg",IM_CONFIG_MANAGER:"im_sdk_config_mgr",STAT_SERVICE:"StatSvc",OVERLOAD_PUSH:"OverLoadPush",IM_MSG_AUDIT_MGR:"im_msg_audit_mgr",TUIROOM_SVR:"tui_room_svr",IM_OPEN_TRANSLATE:"im_open_translate",IM_OPEN_SPEECH:"im_open_speech",MSG_SEARCH:"message_search",FOLLOW:"follow",OFFLINE_PUSH_REPORT:"offline_push_report",IM_MSG_LOGIC:"im_msg_db_logic"}};new Nk(0,Math.pow(2,1)).toString(),new Nk(0,Math.pow(2,2)).toString(),new Nk(0,Math.pow(2,3)).toString(),new Nk(0,Math.pow(2,4)).toString(),new Nk(0,Math.pow(2,6)).toString(),new Nk(0,Math.pow(2,7)).toString(),new Nk(0,Math.pow(2,9)).toString(),new Nk(0,Math.pow(2,10)).toString(),new Nk(0,Math.pow(2,11)).toString(),new Nk(0,Math.pow(2,13)).toString(),new Nk(0,Math.pow(2,15)).toString(),new Nk(Math.pow(2,6)).toString(),new Nk(Math.pow(2,7)).toString(),new Nk(Math.pow(2,8)).toString(),new Nk(Math.pow(2,9)).toString(),new Nk(Math.pow(2,10)).toString(),new Nk(Math.pow(2,16)).toString(),new Nk(Math.pow(2,20)).toString();const Lk=(bk.HOST.setCurrent(Dk),"undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting)),Pk=(Lk&&wx.createGamePortal,"undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting)),Ak="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),Rk="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),Ok="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),Vk="undefined"!=typeof jd&&"function"==typeof jd.getSystemInfoSync,Bk="undefined"!=typeof uni&&"undefined"==typeof window&&!0;Lk&&wx.miniapp;const xk=Lk||Pk||Ak||Rk||Ok||Bk||Vk,Uk="undefined"!=typeof global&&(void 0!==global.nativeModuleProxy||void 0!==global.ReactNative),Gk="undefined"!=typeof uni?!xk:"undefined"!=typeof window&&!xk&&!Uk,Fk=(Pk?qq:Ak?tt:Rk?swan:Ok?my:Lk?wx:Bk?uni:Vk&&jd,Gk&&window&&window.navigator&&window.navigator.userAgent||"");let Yk,Hk;!function(){var e=Fk.match(/OS (\d+)_/i);e&&e[1]&&e[1]}(),function(){var e,t,n=Fk.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);n&&(e=n[1]&&parseFloat(n[1]),t=n[2]&&parseFloat(n[2]),e)&&t&&parseFloat(n[1]+"."+n[2])}(),/MSIE/.test(Fk)||-1<Fk.indexOf("Trident")&&Fk.indexOf("rv:11.0"),function(){var e=(e=/MSIE\s(\d+)\.\d/.exec(Fk))&&parseFloat(e[1])}(),Yk="undefined"!=typeof console?console:"undefined"!=typeof global&&global.console?global.console:"undefined"!=typeof window&&window.console?window.console:{};const Zk=function(){},qk=["assert","clear","count","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"];let jk=qk.length;for(;jk--;)Hk=qk[jk],console[Hk]||(Yk[Hk]=Zk);const Jk=function(e){return void 0===e},Xk=function(e){return function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===Kk(e)}(e)||null!==e&&"object"==typeof e},Kk=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()},zk=(Date.now||(Date.now=function(){return(new Date).getTime()}),function(e,t,n,a){if(!Xk(e)||!Xk(t))return 0;let o=0;var i,s=Object.keys(t);for(let r=0,c=s.length;r<c;r++)if(i=s[r],!(Jk(t[i])||n&&n.includes(i)))if(Xk(e[i])&&Xk(t[i]))o+=zk(e[i],t[i],n,a);else{if(a&&a.includes(t[i]))continue;e[i]!==t[i]&&(e[i]=t[i],o+=1)}return o});uni.$store=ke,uni.$TIM=mc,uni.$chat=mc.create({SDKAppID:Me.config.TChat.SDKAppID}),uni.$chat.setLogLevel(1),uni.$chat.registerPlugin({"tim-upload-plugin":zu}),uni.$TUICallKit=h("TencentCloud-TUICallKit"),g("log","at main.js:40",uni.$TUICallKit,"TUICallKit ok");const{app:Wk,Vuex:Qk,Pinia:$k}=function(){const t=e.createVueApp(Mk);return t.provide("util",Me),t.use(ke),{app:t,Vuex:Ce}}();uni.Vuex=Qk,uni.Pinia=$k,Wk.provide("__globalStyles",__uniConfig.styles),Wk._component.mpType="app",Wk._component.render=()=>{},Wk.mount("#app")}(Vue);