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 p(e,t){for(var n=0;na[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const m=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"),C=v("onLoad"),E=v("onReady"),k=v("onUnload"),I=v("onPageScroll"),S=v("onReachBottom"),T=v("onPullDownRefresh"),M=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};const D=M({methods:{openConversationList(){uni.navigateTo({url:"/TUIKit/components/TUIConversation/index"})},openContact(){uni.navigateTo({url:"/TUIKit/components/TUIContact/index"})}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("button",{onClick:n[0]||(n[0]=(...e)=>s.openConversationList&&s.openConversationList(...e))},"打开会话列表"),e.createElementVNode("button",{onClick:n[1]||(n[1]=(...e)=>s.openContact&&s.openContact(...e))},"打开联系人")])}]]),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:""}];const w=M({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(ui){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(a,JSON.stringify(e))}catch(ui){}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 B(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]=B(e[n],t)})),o}function x(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function U(e){return null!==e&&"object"==typeof e}function V(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(){x(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 U(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(ui){return ui}}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){x(this._children,e)},ae.prototype.forEachGetter=function(e){this._rawModule.getters&&x(this._rawModule.getters,e)},ae.prototype.forEachAction=function(e){this._rawModule.actions&&x(this._rawModule.actions,e)},ae.prototype.forEachMutation=function(e){this._rawModule.mutations&&x(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&&x(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(ui){}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(ui){}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(ui){}t(e)}))}))}},ce.prototype.subscribe=function(e,t){return V(e,this._subscribers,t)},ce.prototype.subscribeAction=function(e,t){return V("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})),pe=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})),me=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)||U(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(ui){e.log(t)}}function _e(e){try{e.groupEnd()}catch(ui){e.log("—— log end ——")}}function ye(){var e=new Date;return" @ "+Ce(e.getHours(),2)+":"+Ce(e.getMinutes(),2)+":"+Ce(e.getSeconds(),2)+"."+Ce(e.getMilliseconds(),3)}function Ce(e,t){return n="0",a=t-e.toString().length,new Array(a+1).join(n)+e;var n,a}var Ee={version:"4.1.0",Store:ce,storeKey:R,createStore:re,useStore:O,mapState:ue,mapMutations:de,mapGetters:pe,mapActions:me,createNamespacedHelpers:function(e){return{mapState:ue.bind(null,e),mapGetters:pe.bind(null,e),mapMutations:de.bind(null,e),mapActions:me.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=B(e.state);void 0!==l&&(r&&e.subscribe((function(e,i){var s=B(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:""},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=>Te.request({url:"/homecommon/applyVideo",query:e.query,data:e.data,method:"POST",load:!0}),pushVideo:e=>Te.request({url:"/homecommon/pushVideo",query:e.query,method:"POST",load:!0}),getUserInfo:e=>Te.request({url:"/home/getUserInfo",query:e.query,method:"POST",load:!0}),myVideoList:e=>Te.request({url:"/home/myVideoList",query:e.query,method:"POST",load:!0}),getCollectList:e=>Te.request({url:"/collect/getCollectList",query:e.query,method:"POST"}),saveCollectList:e=>Te.request({url:"/collect/saveCollectList",query:e.query,method:"POST",load:!0}),updateCollectList:e=>Te.request({url:"/collect/updateCollectList",query:e.query,method:"POST",load:!0}),deleteCollect:e=>Te.request({url:"/collect/deleteCollect",query:e.query,load:!0,method:"POST"}),getCollectVideoList:e=>Te.request({url:"/collect/getCollectVideoList",query:e.query,load:!0,method:"POST"}),collectVideo:e=>Te.request({url:"/collect/collectVideo",query:e.query,method:"POST",load:!0}),cancelCollect:e=>Te.request({url:"/collect/cancelCollect",query:e.query,method:"POST",load:!0}),homeVideo:e=>Te.request({url:"/homecommon/homeVideo",query:e.query,method:"POST"}),businessHomeVideo:e=>Te.request({url:"/homecommon/businessHomeVideo",query:e.query,method:"POST"}),otherHomeVideo:e=>Te.request({url:"/homecommon/otherHomeVideo",query:e.query,method:"POST"}),followVideo:e=>Te.request({url:"/homecommon/followVideo",query:e.query,method:"POST"}),getLabel:e=>Te.request({url:"/home/getLabel",query:e.query,method:"POST"}),setLabel:e=>Te.request({url:"/home/setLabel",data:e.data,method:"POST",load:!0}),publishVideo:e=>Te.request({url:"/homecommon/publishVideo",data:e.data,method:"POST"}),updateVideo:e=>Te.request({url:"/homecommon/updateVideo",data:e.data,method:"POST"}),commentList:e=>Te.request({url:"/home/commentList",query:e.query,method:"POST"}),levelCommentList:e=>Te.request({url:"/home/levelCommentList",query:e.query,method:"POST"}),thumbsUp:e=>Te.request({url:"/home/thumbsUp",query:e.query,method:"POST"}),comment:e=>Te.request({url:"/home/comment",query:e.query,method:"POST"}),videoLike:e=>Te.request({url:"/home/videoLike",query:e.query,method:"POST"}),browseLog:e=>Te.request({url:"/home/browseLog",query:e.query,method:"POST"}),hotVideos:e=>Te.request({url:"/home/hotVideos",method:"POST"}),videoSearchLog:e=>Te.request({url:"/home/videoSearchLog",method:"POST"}),videoSearch:e=>Te.request({url:"/home/videoSearch",query:e.query,method:"POST"}),agreeFriend:e=>Te.request({url:"/user/friend/agreeFriend",path:e.path,query:e.query,method:"POST"}),refuseFriend:e=>Te.request({url:"/user/friend/refuseFriend",path:e.path,query:e.query,method:"POST"}),getFriendList:e=>Te.request({url:"/user/friend/getFriendList",path:e.path,query:e.query,method:"GET"}),getFansList:e=>Te.request({url:"/user/attention/getFansList",path:e.path,query:e.query,method:"GET"}),getAttentionList:e=>Te.request({url:"/user/attention/getAttentionList",path:e.path,query:e.query,method:"GET"}),attention:e=>Te.request({url:"/user/attention",path:e.path,data:e.data,method:"POST"}),videoBlock:e=>Te.request({url:"/home/videoBlock",query:e.query,load:!0,method:"POST"}),reportVideo:e=>Te.request({url:"/report/reportVideo",data:e.data,method:"POST"}),myLikeVideoList:e=>Te.request({url:"/home/myLikeVideoList",query:e.query,method:"POST"}),getVideoById:e=>Te.request({url:"/homecommon/getVideoById",query:e.query,method:"POST"}),videoShare:e=>Te.request({url:"/home/videoShare",query:e.query,method:"POST"}),setAlarm:e=>Te.request({url:"/home/setAlarm",query:e.query,method:"POST"}),getAlarm:()=>Te.request({url:"/home/getAlarm",method:"POST"}),viewingTasks:()=>Te.request({url:"/home/viewingTasks",method:"POST"})},Se={login:{userRegister:e=>Te.request({url:"/user/login/userRegister",data:e.data,path:e.path}),getCaptcha:e=>Te.request({url:"/user/Captcha/getCaptcha",data:e.data,path:e.path,method:"GET"}),userLoginByPassword:e=>Te.request({url:"/user/login/userLoginByPassword",data:e.data}),resetPassword:e=>Te.request({url:"/user/login/resetPassword",data:e.data,path:e.path,method:"POST"}),getIMToken:e=>Te.request({url:"/im/token/getUserAppToken",query:e.query,method:"GET"}),validateUserPassWord:e=>Te.request({url:"/user/login/userLoginByCache/validateUserPassWord",data:e.data,method:"POST",load:!0})},mine:{getUserinfo:e=>Te.request({url:"/getAppInfo",method:"GET"}),updateUserInfo:e=>Te.request({url:"/user/info/updateUserInfo",data:e.data,method:"POST",load:!0}),certification:e=>Te.request({url:"/user/info/certification",query:e.query,data:e.data,method:"POST"}),pay:e=>Te.request({url:"/home/pay",query:e.query,method:"POST"}),getBalanceLog:e=>Te.request({url:"/home/getBalanceLog",query:e.query,method:"POST"}),myfreeze:e=>Te.request({url:"/home/myfreeze",method:"POST"})},video:Ie,news:{setNotes:e=>Te.request({url:"/user/friend/setNotes",method:"POST",query:e.query}),deleteFriend:e=>Te.request({url:"/user/friend/deleteFriend",method:"POST",path:e.path}),addFriend:e=>Te.request({url:"/user/friend/addFriend",method:"POST",path:e.path}),getFriendListPage:e=>Te.request({url:"/user/friend/getFriendListPage",path:e.path,query:e.query,method:"GET"}),searchFriendByName:e=>Te.request({url:"/user/friend/searchFriendByName",path:e.path,query:e.query,method:"GET"}),getImToken:e=>Te.request({url:"/im/token/getUserAppToken",method:"get",query:e}),sendRedBag:e=>Te.request({url:"/home/sendRedBag",method:"POST",data:e.data}),grabred:e=>Te.request({url:"/home/grabred",method:"POST",data:e.data}),getRedbag:e=>Te.request({url:"/home/getRedbag",method:"POST",query:e.data}),grabredLog:e=>Te.request({url:"/home/grabredLog",method:"POST",query:e})},uploadImg:"/homecommon/upload",uploadVideo:"/homecommon/uploadVideo",getArticle:e=>Te.request({url:"/home/getArticle",query:e.query,method:"POST"})},Te={config:{host:"http://91f.store/api",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:Se[{img:"uploadImg",video:"uploadVideo"}[e.mode]],g("log","at common/js/util.js:98","obj.url",e.url),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:Te.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=Te.config.host+(e.url?e.url:"/api/index/index");e.path&&e.path instanceof Array&&e.path.forEach((e=>{o+=`/${e}`})),e.query&&(o=Te.setUrl(o,e.query)),e.load&&uni.showLoading({title:"加载中",mask:!0}),e.header={"ngrok-skip-browser-warning":!0,"Content-Type":"application/json;charset=UTF-8","Access-Control-Allow-Headers":"Origin, X-Requested-With, Content-Type, Accept","Access-Control-Allow-Origin":"*",...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",success:t=>{e.load&&uni.hideLoading(),401==t.data.code&&Te.logout((()=>{Te.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(//gi,'

').replace(/e+=(e.indexOf("?")<0?"?":"&")+Te.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=Te.timeFormin(parseInt(time/86400)),n=Te.timeFormin(parseInt(time%86400/3600)),a=Te.timeFormin(parseInt(time%86400%3600/60)),o=Te.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 Te.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*Te.config.img_size;n.size>a&&!e.unlimited?Te.alert(`大小超过${Te.config.img_size}m`):Te.upload({file:n.path,mode:"img",success(n){if(200===n.code)return 2==e.type?e.value.push(Te.format_url(n.msg,"img")):1==e.type&&(e.value=Te.format_url(n.msg,"img")),g("log","at common/js/util.js:629","obj",e,e.value),void(e.success&&e.success({result:n.msg,value:e.value}));Te.alert(t.msg)}})}))},fail(e){e.errMsg}})},upload_video(e){!e.count||e.count,uni.chooseVideo({compressed:!1,success(t){Te.upload({file:t.tempFilePath,mode:"video",success(n){if(200!=n.code)Te.alert(n.msg);else{const a=Te.format_url(n.msg,"video");e.success&&e.success({result:n.msg,value:a,width:t.width,height:t.height})}}})},fail(e){e.errMsg}})},upload_files(e){const t=e.value,n=Te.config.file_suffix,a=e.count?e.count:1;t.length>=a?Te.alert("上传数量已达上限"):(g("log","at common/js/util.js:720","upload_files",e),"android"==uni.getSystemInfoSync().platform?(g("log","at common/js/util.js:772","chooseFile"),chooseFile((a=>{g("log","at common/js/util.js:774","rs",a),function(a){let o=a.split(".").pop().toLowerCase();n.find((e=>e.id==o))?Te.upload({file:a,success(n){200==n.code?(t.push(n.data),e.success&&e.success({...n.data,value:t})):Te.alert(n.msg)}}):Te.alert(`不能上传${o}格式文件`)}(a)}))):Te.alert("因权限问题,暂不支持非android平台"))},upload_audio(e){const t=e.value,n=Te.config.audio_suffix,a=e.count?e.count:1;t.length>=a?Te.alert("上传数量已达上限"):"android"==uni.getSystemInfoSync().platform?chooseFile((a=>{g("log","at common/js/util.js:857","chooseFile",a),function(a){let o=a.split(".").pop().toLowerCase();n.find((e=>e.id==o))?Te.upload({file:a,success(n){200==n.code?(t.push(n.data),e.success&&e.success({...n.data,value:t})):Te.alert(n.msg)}}):Te.alert(`不能上传${o}格式文件`)}(a)})):Te.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}):Te.alert("暂无")},view_file(e){let t=Te.get_file_suffix(e).id;if(!["doc","xls","ppt","pdf","docx","xlsx","pptx"].includes(t))return Te.alert("操作需要在web端"),void g("log","at common/js/util.js:904","Unsupported suffix",t);uni.downloadFile({url:e,success:e=>{uni.openDocument({filePath:e.tempFilePath,fail:e=>{g("log","at common/js/util.js:913","rs",e)}})}})},get_file_suffix(e,t){t||(t="file");const n=Te.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=Te.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",Te.payment_request(e)},payment_request(e){if(e.debug&&g("log","at common/js/util.js:994","params",e),!e.fn)throw"no function";function t(t){const n=e.cb;n&&uni.redirectTo({url:Te.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:1023","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:1049","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:1072","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:1097","requestPayment complete",t),e.complete&&e.complete(t)}});break;case"4":e.success&&e.success(n),t("success")}else Te.alert(n.msg),e.fail&&e.fail(n)})).catch((e=>{g("log","at common/js/util.js:1117","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&&Te.request({url:"/api/user/third",data:i,load:1}).then((t=>{200==t.code&&e.success&&e.success(t)}))}})},fail(t){Te.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:1279","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{n({msg:"引导用户打开设置页面",info:e})},fail:e=>{n({msg:"用户设置页面打开失败",info:e})}})}),(e=>{g("log","at common/js/util.js:1354","申请权限错误:"+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),Te.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}),Te.getUserinfo((e=>{uni.$emit("login"),Te.loginTencent(e),Te.loginAccountManagement(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){Se.login.getIMToken({query:{userId:e.userId}}).then((t=>{const n={SDKAppID:Te.config.TChat.SDKAppID,userID:e.userId+"",userSig:t};uni.$TUICallKit.login(n,(e=>{0===e.code?g("log","at common/js/util.js:1481","[TUICallKit] login success."):g("error","at common/js/util.js:1483","[TUICallKit] login failed, failed message = ",e.msg,params)})),uni.$chat.login({userID:e.userId+"",userSig:t}).then((e=>{g("log","at common/js/util.js:1492","im login success",e)}))}))},getUserinfo:e=>new Promise((t=>{Se.mine.getUserinfo().then((n=>{if(200===n.code){const a=n.user;if(a.userPortrait=Te.format_url(a.userPortrait,"img"),a.background=Te.format_url(a.background,"img"),t(a),ke.commit("setState",{key:"userinfo",value:a}),uni.setStorageSync("userinfo",a),e&&e(a),1==a.youth){const e=Number.parseInt(Te.formatTime("H"));Number.parseInt(Te.formatTime("m")),Number.parseInt(Te.formatTime("m",param.endTime)),(e>20||e<6)&&Te.lockApp()}}})).finally((()=>{uni.hideLoading()}))})),isLogin(e){let t=uni.$store.state.userinfo;return new Promise(((n,a)=>{t.userId?(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:1575","tim logout rs")})).catch((e=>{g("log","at common/js/util.js:1577","tim logout error:",e)}))),ke.commit("setState",{key:"userinfo",value:{}}),uni.removeStorageSync("userinfo"),uni.removeStorageSync("token"),e&&e()},isAuth(e){Te.isLogin((()=>{const t=uni.$store.state.userinfo;g("log","at common/js/util.js:1599","userinfo.userIdCard",t.userIdCard),t.userIdCard?e.success&&e.success(t):(e.noLink||uni.navigateTo({url:"/pages/mine/real-name-authentication/index"}),e.fail&¶rm.fail(t))}))},makePhone(e){e||Te.alert("暂无手机号"),uni.makePhoneCall({phoneNumber:e,fail(e){g("log","at common/js/util.js:1621","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{Te.alert({title:"文本已复制到剪贴板"})}})},showToastAndRedirect(e,t="none",n=()=>{}){uni.showToast({title:e,icon:t,duration:2e3,complete:()=>{n(),uni.hideLoading()}})},toChat(e){uni.navigateTo({url:Te.setUrl("/pages/news/question-answer/index",{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:Te.setUrl("/pages/news/applyFriend",{userId:t.userId,nickname:t.userNickname})})}},fail:e=>{g("log","at common/js/util.js:1798","scanCode err",e)}})},setAlarm(e){const t=uni.$store.state.userinfo,n=new Date(Te.formatTime("yyyy-MM-dd HH:mm:ss")).valueOf(),a=new Date(e.endTime).valueOf();n>a?t.youth:(uni.$store.commit("setState",{key:"alarmTime",value:e.endTime}),setTimeout((()=>{1==t.youth||(Te.alert({content:e.txt||"闹钟提醒时间到",showCancel:!1}),uni.$store.commit("setState",{key:"alarmTime",value:""}))}),a-n))},lockApp(){uni.navigateTo({url:"/pages/login/lock"})}},Me=M({__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:Te.setUrl("/pages/index/article",{id:e})})}return(t,i)=>{const s=f(e.resolveDynamicComponent("uni-icons"),w);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(6))},"用户协议"),e.createElementVNode("text",null,"和"),e.createElementVNode("text",{class:"mlr10 c333",onClick:i[1]||(i[1]=e=>o(1))},"隐私政策")])}}},[["__scopeId","data-v-afb53a3b"]]),De={__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:"/static/openPage.png",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"})])]))}},Ne="/static/Jiu Yi.png",we=M({__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?(Te.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 Se.login.getCaptcha({query:[n.phone,n.event],path:[n.phone,n.event]}).then((e=>{g("log","at components/getCode/getCode.vue:95",e),200==e.code?Te.alert("验证码已发送"):(Te.alert(e.msg),i.value=3,clearInterval(o.value))}))):(Te.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-6b790308"]]);var be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pe(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 Ae={exports:{}},Re=[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 Oe={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>16&255,t[i++]=n>>8&255,t[i++]=255&n;1===o&&(n=Re[e.charCodeAt(r)]<<10|Re[e.charCodeAt(r+1)]<<4|Re[e.charCodeAt(r+2)]>>2,t[i++]=n>>8&255,t[i++]=255&n),2===o&&(n=Re[e.charCodeAt(r)]<<2|Re[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=Pe(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ue;function Ve(){return Ue||(Ue=1,Be.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&Oe&&(n=Oe),"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!==be&&be.crypto&&(n=be.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>>2]>>>24-i%4*8&255;t[a+i>>>2]|=s<<24-(a+i)%4*8}else for(var r=0;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>>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>>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>>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>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new c.init(n,t)}},p=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(ui){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},m=s.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.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>>2]|=e[o]<<24-o%4*8;n.call(this,a,t)}else n.apply(this,arguments)};a.prototype=t}}(),e.lib.WordArray)),Ze.exports;var e}var je,Je={exports:{}};function Xe(){return je||(je=1,Je.exports=(e=Ve(),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>>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>>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>>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>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(a,2*t)}}}(),e.enc.Utf16)),Je.exports;var e}var Ke,ze={exports:{}};function We(){return Ke||(Ke=1,ze.exports=(e=Ve(),function(){var t=e,n=t.lib.WordArray;function a(e,t,a){for(var o=[],i=0,s=0;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>>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>>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>>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>>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>>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>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],m=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],C=e[t+9],E=e[t+10],k=e[t+11],I=e[t+12],S=e[t+13],T=e[t+14],M=e[t+15],D=i[0],N=i[1],w=i[2],b=i[3];D=l(D,N,w,b,s,7,r[0]),b=l(b,D,N,w,c,12,r[1]),w=l(w,b,D,N,m,17,r[2]),N=l(N,w,b,D,h,22,r[3]),D=l(D,N,w,b,g,7,r[4]),b=l(b,D,N,w,f,12,r[5]),w=l(w,b,D,N,v,17,r[6]),N=l(N,w,b,D,_,22,r[7]),D=l(D,N,w,b,y,7,r[8]),b=l(b,D,N,w,C,12,r[9]),w=l(w,b,D,N,E,17,r[10]),N=l(N,w,b,D,k,22,r[11]),D=l(D,N,w,b,I,7,r[12]),b=l(b,D,N,w,S,12,r[13]),w=l(w,b,D,N,T,17,r[14]),D=u(D,N=l(N,w,b,D,M,22,r[15]),w,b,c,5,r[16]),b=u(b,D,N,w,v,9,r[17]),w=u(w,b,D,N,k,14,r[18]),N=u(N,w,b,D,s,20,r[19]),D=u(D,N,w,b,f,5,r[20]),b=u(b,D,N,w,E,9,r[21]),w=u(w,b,D,N,M,14,r[22]),N=u(N,w,b,D,g,20,r[23]),D=u(D,N,w,b,C,5,r[24]),b=u(b,D,N,w,T,9,r[25]),w=u(w,b,D,N,h,14,r[26]),N=u(N,w,b,D,y,20,r[27]),D=u(D,N,w,b,S,5,r[28]),b=u(b,D,N,w,m,9,r[29]),w=u(w,b,D,N,_,14,r[30]),D=d(D,N=u(N,w,b,D,I,20,r[31]),w,b,f,4,r[32]),b=d(b,D,N,w,y,11,r[33]),w=d(w,b,D,N,k,16,r[34]),N=d(N,w,b,D,T,23,r[35]),D=d(D,N,w,b,c,4,r[36]),b=d(b,D,N,w,g,11,r[37]),w=d(w,b,D,N,_,16,r[38]),N=d(N,w,b,D,E,23,r[39]),D=d(D,N,w,b,S,4,r[40]),b=d(b,D,N,w,s,11,r[41]),w=d(w,b,D,N,h,16,r[42]),N=d(N,w,b,D,v,23,r[43]),D=d(D,N,w,b,C,4,r[44]),b=d(b,D,N,w,I,11,r[45]),w=d(w,b,D,N,M,16,r[46]),D=p(D,N=d(N,w,b,D,m,23,r[47]),w,b,s,6,r[48]),b=p(b,D,N,w,_,10,r[49]),w=p(w,b,D,N,T,15,r[50]),N=p(N,w,b,D,f,21,r[51]),D=p(D,N,w,b,I,6,r[52]),b=p(b,D,N,w,h,10,r[53]),w=p(w,b,D,N,E,15,r[54]),N=p(N,w,b,D,c,21,r[55]),D=p(D,N,w,b,y,6,r[56]),b=p(b,D,N,w,M,10,r[57]),w=p(w,b,D,N,v,15,r[58]),N=p(N,w,b,D,S,21,r[59]),D=p(D,N,w,b,g,6,r[60]),b=p(b,D,N,w,k,10,r[61]),w=p(w,b,D,N,m,15,r[62]),N=p(N,w,b,D,C,21,r[63]),i[0]=i[0]+D|0,i[1]=i[1]+N|0,i[2]=i[2]+w|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<>>32-i)+t}function u(e,t,n,a,o,i,s){var r=e+(t&a|n&~a)+o+s;return(r<>>32-i)+t}function d(e,t,n,a,o,i,s){var r=e+(t^n^a)+o+s;return(r<>>32-i)+t}function p(e,t,n,a,o,i,s){var r=e+(n^(t|~a))+o+s;return(r<>>32-i)+t}n.MD5=i._createHelper(c),n.HmacMD5=i._createHmacHelper(c)}(Math),e.MD5)),at.exports;var e}var it,st={exports:{}};function rt(){return it||(it=1,st.exports=(r=Ve(),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)),st.exports;var e,t,n,a,o,i,s,r}var ct,lt={exports:{}};function ut(){return ct||(ct=1,lt.exports=(e=Ve(),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],p=n[7],m=0;m<64;m++){if(m<16)l[m]=0|e[t+m];else{var h=l[m-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,f=l[m-2],v=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;l[m]=g+l[m-7]+v+l[m-16]}var _=a&o^a&i^o&i,y=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),C=p+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&u^~r&d)+c[m]+l[m];p=d,d=u,u=r,r=s+C|0,s=i,i=o,o=a,a=C+(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]+p|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)),lt.exports;var e}var dt,pt={exports:{}};var mt,ht={exports:{}};function gt(){return mt||(mt=1,ht.exports=(e=Ve(),Ye(),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],p=n[7],m=a.high,h=a.low,g=o.high,f=o.low,v=i.high,_=i.low,y=s.high,C=s.low,E=r.high,k=r.low,I=u.high,S=u.low,T=d.high,M=d.low,D=p.high,N=p.low,w=m,b=h,L=g,P=f,A=v,R=_,O=y,B=C,x=E,U=k,V=I,G=S,F=T,Y=M,H=D,Z=N,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>>0?1:0))+le+((j+=ue)>>>0>>0?1:0),X.high=J,X.low=j}var de,pe=x&V^~x&F,me=U&G^~U&Y,he=w&L^w&A^L&A,ge=b&P^b&R^P&R,fe=(w>>>28|b<<4)^(w<<30|b>>>2)^(w<<25|b>>>7),ve=(b>>>28|w<<4)^(b<<30|w>>>2)^(b<<25|w>>>7),_e=(x>>>14|U<<18)^(x>>>18|U<<14)^(x<<23|U>>>9),ye=(U>>>14|x<<18)^(U>>>18|x<<14)^(U<<23|x>>>9),Ce=c[q],Ee=Ce.high,ke=Ce.low,Ie=H+_e+((de=Z+ye)>>>0>>0?1:0),Se=ve+ge;H=F,Z=Y,F=V,Y=G,V=x,G=U,x=O+(Ie=(Ie=(Ie=Ie+pe+((de+=me)>>>0>>0?1:0))+Ee+((de+=ke)>>>0>>0?1:0))+J+((de+=j)>>>0>>0?1:0))+((U=B+de|0)>>>0>>0?1:0)|0,O=A,B=R,A=L,R=P,L=w,P=b,w=Ie+(fe+he+(Se>>>0>>0?1:0))+((b=de+Se|0)>>>0>>0?1:0)|0}h=a.low=h+b,a.high=m+w+(h>>>0>>0?1:0),f=o.low=f+P,o.high=g+L+(f>>>0

>>0?1:0),_=i.low=_+R,i.high=v+A+(_>>>0>>0?1:0),C=s.low=C+B,s.high=y+O+(C>>>0>>0?1:0),k=r.low=k+U,r.high=E+x+(k>>>0>>0?1:0),S=u.low=S+G,u.high=I+V+(S>>>0>>0?1:0),M=d.low=M+Y,d.high=T+F+(M>>>0>>0?1:0),N=p.low=N+Z,p.high=D+H+(N>>>0>>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)),ht.exports;var e}var ft,vt={exports:{}};var _t,yt={exports:{}};function Ct(){return _t||(_t=1,yt.exports=(e=Ve(),Ye(),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,p=0;p<7;p++){if(1&o){var m=(1<>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(N=n[o]).high^=s,N.low^=i}for(var r=0;r<24;r++){for(var p=0;p<5;p++){for(var m=0,h=0,g=0;g<5;g++)m^=(N=n[p+5*g]).high,h^=N.low;var f=d[p];f.high=m,f.low=h}for(p=0;p<5;p++){var v=d[(p+4)%5],_=d[(p+1)%5],y=_.high,C=_.low;for(m=v.high^(y<<1|C>>>31),h=v.low^(C<<1|y>>>31),g=0;g<5;g++)(N=n[p+5*g]).high^=m,N.low^=h}for(var E=1;E<25;E++){var k=(N=n[E]).high,I=N.low,S=c[E];S<32?(m=k<>>32-S,h=I<>>32-S):(m=I<>>64-S,h=k<>>64-S);var T=d[l[E]];T.high=m,T.low=h}var M=d[0],D=n[0];for(M.high=D.high,M.low=D.low,p=0;p<5;p++)for(g=0;g<5;g++){var N=n[E=p+5*g],w=d[E],b=d[(p+1)%5+5*g],L=d[(p+2)%5+5*g];N.high=w.high^~b.high&L.high,N.low=w.low^~b.low&L.low}N=n[0];var P=u[r];N.high^=P.high,N.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>>24)|4278255360&(p<<24|p>>>8),m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),l.push(m),l.push(p)}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(p),n.HmacSHA3=i._createHmacHelper(p)}(Math),e.SHA3)),yt.exports;var e}var Et,kt={exports:{}};var It,St={exports:{}};function Tt(){return It||(It=1,St.exports=(e=Ve(),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>>2];e.sigBytes-=t}};a.BlockCipher=u.extend({cfg:u.cfg.extend({mode:m,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)}})}()))),Pt.exports;var e}var Rt,Ot={exports:{}};var Bt,xt={exports:{}};var Ut,Vt={exports:{}};function Gt(){return Ut||(Ut=1,Vt.exports=(e=Ve(),At(), /** @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>>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],p.call(this,4,252645135),p.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),p.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,p.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<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)),rn.exports;var e}var ln,un={exports:{}};var dn,pn={exports:{}};var mn,hn={exports:{}};var gn,fn,vn,_n,yn,Cn,En,kn={exports:{}};function In(){return gn||(gn=1,kn.exports=(e=Ve(),We(),ot(),bt(),At(),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;r1;--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=n&&(a=0);let r=0,c=0,u=0;for(let i=0;i>>24)|4278255360&(o<<24|o>>>8)}var i,p,y,C,E,k,I,S,T,M,D,N=this._hash.words,w=u.words,b=d.words,L=s.words,P=r.words,A=c.words,R=l.words;for(k=i=N[0],I=p=N[1],S=y=N[2],T=C=N[3],M=E=N[4],n=0;n<80;n+=1)D=i+e[t+L[n]]|0,D+=n<16?m(p,y,C)+w[0]:n<32?h(p,y,C)+w[1]:n<48?g(p,y,C)+w[2]:n<64?f(p,y,C)+w[3]:v(p,y,C)+w[4],D=(D=_(D|=0,A[n]))+E|0,i=E,E=C,C=_(y,10),y=p,p=D,D=k+e[t+P[n]]|0,D+=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]:m(I,S,T)+b[4],D=(D=_(D|=0,R[n]))+M|0,k=M,M=T,T=_(S,10),S=I,I=D;D=N[1]+y+T|0,N[1]=N[2]+C+M|0,N[2]=N[3]+E+k|0,N[3]=N[4]+i+I|0,N[4]=N[0]+p+S|0,N[0]=D},_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 m(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<>>32-t}t.RIPEMD160=o._createHelper(p),t.HmacRIPEMD160=o._createHmacHelper(p)}(),e.RIPEMD160)),kt.exports;var e}(),Tt(),function(){return Mt||(Mt=1,Dt.exports=(c=Ve(),ut(),Tt(),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>>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 Jt||(Jt=1,Xt.exports=(e=Ve(),At(),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)),Xt.exports;var e}(),function(){return Kt||(Kt=1,zt.exports=(e=Ve(),At(),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)),zt.exports;var e}(),function(){return Wt||(Wt=1,Qt.exports=(e=Ve(),At(),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)),Qt.exports;var e}(),function(){return $t||($t=1,en.exports=(e=Ve(),At(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding)),en.exports;var e}(),function(){return tn||(tn=1,nn.exports=(a=Ve(),At(),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)),nn.exports;var e,t,n,a}(),function(){return an||(an=1,on.exports=(e=Ve(),We(),ot(),bt(),At(),function(){var t=e,n=t.lib.BlockCipher,a=t.algo,o=[],i=[],s=[],r=[],c=[],l=[],u=[],d=[],p=[],m=[];!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,p[h]=_<<8|_>>>24,m[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;s6&&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>>24]]^d[o[l>>>16&255]]^p[o[l>>>8&255]]^m[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,p,m,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],p=e[t+3]^n[3],m=4,h=1;h>>24]^o[u>>>16&255]^i[d>>>8&255]^s[255&p]^n[m++],f=a[u>>>24]^o[d>>>16&255]^i[p>>>8&255]^s[255&l]^n[m++],v=a[d>>>24]^o[p>>>16&255]^i[l>>>8&255]^s[255&u]^n[m++],_=a[p>>>24]^o[l>>>16&255]^i[u>>>8&255]^s[255&d]^n[m++];l=g,u=f,d=v,p=_}g=(r[l>>>24]<<24|r[u>>>16&255]<<16|r[d>>>8&255]<<8|r[255&p])^n[m++],f=(r[u>>>24]<<24|r[d>>>16&255]<<16|r[p>>>8&255]<<8|r[255&l])^n[m++],v=(r[d>>>24]<<24|r[p>>>16&255]<<16|r[l>>>8&255]<<8|r[255&u])^n[m++],_=(r[p>>>24]<<24|r[l>>>16&255]<<16|r[u>>>8&255]<<8|r[255&d])^n[m++],e[t]=g,e[t+1]=f,e[t+2]=v,e[t+3]=_},keySize:8});t.AES=n._createHelper(g)}(),e.AES)),on.exports;var e}(),cn(),function(){return ln||(ln=1,un.exports=(e=Ve(),We(),ot(),bt(),At(),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)),un.exports;var e}(),function(){return dn||(dn=1,pn.exports=(e=Ve(),We(),ot(),bt(),At(),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,p=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=p,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>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>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 mn||(mn=1,hn.exports=(e=Ve(),We(),ot(),bt(),At(),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,p=u<<16|65535&l;for(a[0]^=l,a[1]^=d,a[2]^=u,a[3]^=p,a[4]^=l,a[5]^=d,a[6]^=u,a[7]^=p,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>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>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)),hn.exports;var e}(),In());const Sn=Le(Ae.exports),Tn={__name:"loginPhone",setup(t){const n=e.reactive({userImei:"",userPhone:"",userPassword:""}),a=e.ref(!1);function o(){const e={...n};if(e.userPhone)if(e.userPassword)if(a.value){if(e.userPassword=Sn.MD5(e.userPassword).toString(),!e.userImei){const t=uni.getSystemInfoSync();e.userImei=t.deviceId}Se.login.userLoginByPassword({data:e}).then((e=>{200!=e.code?Te.alert({content:e.msg,showCancel:!1}):Te.finalLogin(e)}))}else Te.alert("请阅读并勾选服务协议》和《隐私政策》");else Te.alert("请输入密码");else Te.alert("请输入手机号")}return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"logo mauto"},[e.createElementVNode("image",{class:"image",src:Ne,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":i[0]||(i[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":i[1]||(i[1]=e=>n.userPassword=e),placeholder:"请输入密码"},null,512),[[e.vModelText,n.userPassword]])]),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:o},"登录")])]),e.createElementVNode("view",{class:"footer"},[e.createVNode(e.unref(Me),{class:"mb60",value:a.value,"onUpdate:value":i[2]||(i[2]=e=>a.value=e)},null,8,["value"])])]))}};const Mn=M({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.indexs._onClick&&s._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)],4)):e.createCommentVNode("",!0)}],["__scopeId","data-v-2511947d"]]),Dn={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 Nn=M(Dn,[["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 wn{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:{}},bn.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 bn=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function Ln(e,t){if(t)return clearTimeout(t.timer),new wn(e,t)}bn.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{wn.prototype[e]=function(...t){return this.animation[e](...t),this}}));const Pn=M({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=Ln(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(ui){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=Ln(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]])}]]),An={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 Rn=M(An,[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-transition"),Pn);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"]]),On=M({__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:"视频",pagePath:"pages/index/index"},{page:"",type:"option",name:"榴莲果",pagePath:"pages/index/durian"},{type:"middle",name:""},{page:"news",type:"option",name:"消息",pagePath:"pages/news/news"}];switch(o.value){case"default":e[2].pagePath="pages/release/video",e.push({page:"mine",type:"option",name:"我的",pagePath:"pages/mine/homepage"});break;case"shop":e[2].pagePath="pages/merchant/commodity-release/index",e.push({page:"mine",type:"option",name:"个人中心",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];Te.isAuth({success:e=>{a.url?uni.navigateTo({url:a.url}):Te.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,o)=>{const l=f(e.resolveDynamicComponent("uni-grid-item"),Mn),u=f(e.resolveDynamicComponent("uni-grid"),Nn),d=f(e.resolveDynamicComponent("uni-icons"),w),p=f(e.resolveDynamicComponent("uni-popup"),Rn);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])},[e.createElementVNode("view",{class:"menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((a,o)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:o,onClick:e=>function(e){"middle"==e.type?n.$refs.alert.open():e.page?uni.switchTab({url:`/${e.pagePath}`}):uni.navigateTo({url:`/${e.pagePath}`})}(a)},["option"==a.type?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["option",{active:a.page===t.page}])},[e.createElementVNode("text",{class:"text"},e.toDisplayString(a.name),1)],2)):"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)],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"safeArea",style:e.normalizeStyle({height:e.unref(s)})},null,4),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(u,{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(l,{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(d,{type:"bottom",size:"50rpx",color:"#999",onClick:o[0]||(o[0]=e=>a.$refs.alert.close())})])])])),_:1},512)],2)],64)}}},[["__scopeId","data-v-1f683c5e"]]),Bn=e=>{let t=uni.getSystemInfoSync().statusBarHeight;return t=t||0,e?t:`${t}px`},xn=e=>{let t=uni.getSystemInfoSync().safeAreaInsets.bottom;return t=t||0,e?t:`${t}px`},Un=e=>{let t=uni.getSystemInfoSync().screenWidth;return t=t||0,e?t:`${t}px`},Vn=e=>{let t=uni.getSystemInfoSync().screenHeight;return t=t||0,e?t:`${t}px`},Gn=e=>getCurrentPages().length>1?uni.navigateBack({delta:1}):uni.reLaunch({url:e}),Fn=M({__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":`${Bn()}`,"padding-bottom":"2px"}),l=()=>{o.isSkip&&uni.navigateBack(),u("back")},u=a;return(n,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),w);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"]]),Yn="/static/search.png",Hn=M({__name:"index",props:{disabled:{type:Boolean,default:!0},placeholder:{type:String,default:"请输入搜索内容"}},emits:["search","camera"],setup(t,{expose:n,emit:a}){const o=t,i=e.ref(""),s=a,r=e=>{g("log","at pages/shop/components/jy-search/index.vue:35",e),s("search",e)},c=()=>{o.disabled&&uni.navigateTo({url:"/pages/shop/search/index"})};return n({updateSearch:e=>{i.value=e,r(e)}}),(n,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"container"},[e.createElementVNode("view",{class:"input-search"},[e.createElementVNode("image",{class:"wh30 mr20",onClick:c,src:e.unref(Yn)},null,8,["src"]),e.withDirectives(e.createElementVNode("input",{onClick:c,"onUpdate:modelValue":a[0]||(a[0]=e=>i.value=e),class:"input",type:"text",placeholder:t.placeholder,onChange:r},null,40,["placeholder"]),[[e.vModelText,i.value]]),e.createVNode(o,{onClick:a[1]||(a[1]=e=>s("camera")),class:"icon",type:"camera",size:"30"})]),e.createElementVNode("view",{onClick:a[2]||(a[2]=e=>r(i.value)),class:"search wsn"},"搜索")])}}},[["__scopeId","data-v-f31fefe4"]]);const Zn=M({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.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"]]),qn=["{","}"];const jn=/^(?:\d)+/,Jn=/^(?:\w)+/;const Xn="zh-Hans",Kn="zh-Hant",zn="en",Wn=Object.prototype.hasOwnProperty,Qn=(e,t)=>Wn.call(e,t),$n=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=qn){if(!t)return[e];let a=this._caches[e];return a||(a=function(e,[t,n]){const a=[];let o=0,i="";for(;o-1?Xn:e.indexOf("-hant")>-1?Kn:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?Kn:Xn);var n;let a=[zn,"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 ta{constructor({locale:e,fallbackLocale:t,messages:n,watcher:a,formater:o}){this.locale=zn,this.fallbackLocale=zn,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=o||$n,this.messages=n||{},this.setLocale(e||zn),a&&this.watchLocale(a)}setLocale(e){const t=this.locale;this.locale=ea(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=>{Qn(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=ea(t,this.messages))&&(a=this.messages[t]):n=t,Qn(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 na(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():zn),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||zn);const o=new ta({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 aa={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let oa;setTimeout((()=>{oa=uni.getSystemInfoSync().platform}),16);const{t:ia}=na(aa);const sa=M({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:oa,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII="}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||ia("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||ia("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||ia("uni-load-more.contentnomore")}},mounted(){var e=getCurrentPages(),t=e[e.length-1].$getAppWebview();t.addEventListener("hide",(()=>{this.webviewHide=!0})),t.addEventListener("show",(()=>{this.webviewHide=!1}))},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(t,n,a,o,i,s){return e.openBlock(),e.createElementBlock("view",{class:"uni-load-more",onClick:n[0]||(n[0]=(...e)=>s.onClick&&s.onClick(...e))},[!i.webviewHide&&("circle"===a.iconType||"auto"===a.iconType&&"android"===i.platform)&&"loading"===a.status&&a.showIcon?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({width:a.iconSize+"px",height:a.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-MP"},[e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:a.color,borderTopWidth:a.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:a.color,borderTopWidth:a.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:a.color,borderTopWidth:a.iconSize/12})},null,4)],4)):!i.webviewHide&&"loading"===a.status&&a.showIcon?(e.openBlock(),e.createElementBlock("view",{key:1,style:e.normalizeStyle({width:a.iconSize+"px",height:a.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},[e.createElementVNode("image",{src:i.imgBase64,mode:"widthFix"},null,8,["src"])],4)):e.createCommentVNode("",!0),a.showText?(e.openBlock(),e.createElementBlock("text",{key:2,class:"uni-load-more__text",style:e.normalizeStyle({color:a.color})},e.toDisplayString("more"===a.status?s.contentdownText:"loading"===a.status?s.contentrefreshText:s.contentnomoreText),5)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-a7e112cc"]]),ra=M({__name:"index",props:{item:{type:Object,default:()=>({})}},setup:t=>(n,a)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-card"},[t.item.images&&t.item.images[0]?(e.openBlock(),e.createElementBlock("image",{key:0,class:"jy-card-img",src:t.item.images[0].imageUrl},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"jy-card-content"},[e.createElementVNode("view",{class:"jy-card-title"},e.toDisplayString(t.item.productName),1),e.createElementVNode("view",{class:"jy-card-info"},[e.createElementVNode("view",{class:"jy-card-price"},[e.createTextVNode("¥"),e.createElementVNode("text",{class:"jy-card-price-num"},e.toDisplayString(t.item.price),1)]),e.createElementVNode("view",{class:"jy-card-sales"},[e.createTextVNode("销量:"),e.createElementVNode("text",{class:"jy-card-sales-num"},e.toDisplayString(`${t.item.sales?t.item.sales+"+":0}`),1)])])])]))},[["__scopeId","data-v-0daa2e2f"]]),ca={list:e=>Te.request({url:"/product/allProductPageQuery",method:"get",query:e}),details:e=>Te.request({url:"/product/getById",method:"get",query:e})},la={list:e=>Te.request({url:"/user/store/favorite/listUserFavoriteStore",method:"get",query:e}),add:e=>Te.request({url:"/user/store/favorite/addStoreToUserFavorite",method:"post",data:e}),delete:e=>Te.request({url:"/user/store/favorite/removeStoreFromUserFavorite",method:"delete",data:e})},ua={list:e=>Te.request({url:"/product/shopping/cart/list",method:"get",query:e}),add:e=>Te.request({url:"/product/shopping/cart/add",method:"post",data:e}),delete:e=>Te.request({url:"/product/shopping/cart/remove",method:"delete",query:e})},da={list:()=>Te.request({url:"/product/category/listTopCategory",method:"get"})},pa={popularSearch:()=>Te.request({url:"/product/getHotSearch",method:"get"})},ma={list:e=>Te.request({url:"/product/view/history/list",method:"get",query:e}),add:e=>Te.request({url:"/product/view/history/add",method:"post",data:e}),delete:e=>Te.request({url:"/product/view/history/removeBatch",method:"delete",data:e})},ha={shopSku:{list:e=>Te.request({url:"/product/sku/listByProductId",method:"get",query:e}),add:e=>Te.request({url:"/product/sku/add",method:"post",data:e}),edit:e=>Te.request({url:"/product/sku/modify",method:"post",data:e}),delete:e=>Te.request({url:`/product/sku/remove/${e}`,method:"delete"})},address:{list:e=>Te.request({url:"/product/shipping/address/list",method:"get",query:e}),delete:e=>Te.request({url:"/product/shipping/address/remove",method:"delete",query:e}),add:e=>Te.request({url:"/product/shipping/address/add",method:"post",query:e}),edit:e=>Te.request({url:"/product/shipping/address/modify",method:"put",query:e})},follow:{list:e=>Te.request({url:"/product/follow/list",method:"get",query:e})},coupon:{list:e=>Te.request({url:"/product/coupons/list",method:"get",query:e})},czSearch:pa,classification:da,favorites:la,shop:ca,shoppingCart:ua,ProductBrowsingHistory:ma},ga=M({__name:"index",props:{conditions:{type:Object,default:()=>{}},isLoadMore:{type:Boolean,default:!0}},setup(t,{expose:n}){e.inject("util");const a=e.reactive({params:{pageSize:10,pageNum:1,navigation:1},list:[],total:void 0,status:"more"}),o=async(e,t)=>{let n=!!e;if(uni.showLoading({title:"加载中"}),g("log","at components/public/jy-shop-content/index.vue:63",a.total==a.list.length),!e&&a.total==a.list.length)return uni.hideLoading(),uni.stopPullDownRefresh(),uni.showToast({title:"没有更多数据",icon:"none"});switch(t){case"onPullDownRefresh":a.params.pageNum=1,n=!0;break;case"onReachBottom":a.params.pageNum+=1,n=!1}try{const{rows:e,total:t}=await ca.list(a.params);g("log","at components/public/jy-shop-content/index.vue:90",e),a.list=n?[].concat(e):a.list.concat(e),a.total=t,a.status=a.total==a.list.length?"noMore":"more"}catch(o){g("log","at components/public/jy-shop-content/index.vue:96",o)}finally{uni.hideLoading(),uni.stopPullDownRefresh()}};o(),n({getData:o});return(t,n)=>{const o=f(e.resolveDynamicComponent("uni-load-more"),sa);return e.openBlock(),e.createElementBlock("view",{class:"content"},[a.list?(e.openBlock(),e.createElementBlock("view",{key:0,class:"block"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.list,((t,n)=>(e.openBlock(),e.createBlock(e.unref(ra),{key:n,onClick:e=>(e=>{uni.navigateTo({url:Te.setUrl("/pages/shop/commodity/index",{productId:e.id})})})(t),item:t},null,8,["onClick","item"])))),128))])):e.createCommentVNode("",!0),e.createVNode(o,{status:a.status},null,8,["status"])])}}},[["__scopeId","data-v-1424e555"]]),fa=M({__name:"shop",setup(t){const{checkLink:n}=e.inject("util"),a=e.ref(null),o=e.reactive({list:[],total:0}),i=(e,t)=>{a.value.getData(!0)},s=()=>{(async()=>{try{const{data:e,total:t}=await da.list();o.list=e,o.total=t}catch(e){g("log","at pages/shop/shop.vue:75",e)}})()};return C((()=>{s()})),S((()=>{a.value.getData(!1,"onReachBottom")})),T((()=>{a.value.getData(!0,"onPullDownRefresh")})),_((()=>{uni.$emit("changeMine","shop")})),(t,s)=>{const r=f(e.resolveDynamicComponent("footerMenu"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("view",{key:0,class:"jy-shop"},[e.createElementVNode("view",{class:"jy-shop-header"},[e.createVNode(e.unref(Fn),{background:"jb"},{center:e.withCtx((()=>[e.createVNode(e.unref(Hn),{class:"plr20"})])),bottom:e.withCtx((()=>[e.createVNode(e.unref(Zn),{list:o.list,onTabItemClick:i,marright:"25px",activeWeight:"600",titalName:"categoryName",activeColor:"#FF9B27",activeBarColor:"#FF9B27"},null,8,["list"])])),_:1})]),e.createElementVNode("view",{onClick:s[0]||(s[0]=t=>e.unref(n)("pages/news/ce"))},"111"),e.createVNode(e.unref(ga),{class:"mt20",ref_key:"jy_content",ref:a},null,512)])),e.createVNode(r,{ref:"footerMneuRef",page:"shop"},null,512)],64)}}},[["__scopeId","data-v-02a46e5b"]]);const va=M({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"]]),_a={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:ya}=na(_a);const Ca=M({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:()=>ya("uni-countdown.day"),hourText:e=>ya("uni-countdown.h"),minuteText:e=>ya("uni-countdown.m"),secondText:e=>ya("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 Ea=M({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"]]),ka=M({__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"),Ea),s=f(e.resolveDynamicComponent("uni-section"),va);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"]]),Ia=M({__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"),va);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"]]),Sa=M({__name:"index",setup:t=>(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),w),o=f(e.resolveDynamicComponent("uni-section"),va);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"]]),Ta=M({__name:"index",props:{shopEdit:{type:Boolean,default:!0},address:{type:Object,default:()=>({})}},setup(t){const{checkLink:n}=e.inject("util");return(a,o)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-card-address df aic jcc"},[e.createElementVNode("view",{class:"df aic jcfe"},[e.createElementVNode("view",{class:"jy-card-address-content-top-left-icon mr20"},[e.createElementVNode("image",{src:e.unref("/static/address.png")},null,8,["src"])]),e.createElementVNode("view",{class:"content-top-right"},[e.createElementVNode("view",{class:"top-right-address"},"收货地址收货地址收货地址收货地址收货地址收货地址收货地址"),e.createElementVNode("view",{class:"top-right-name_phone"},"张三 123456789")])]),t.shopEdit?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn edit-address",onClick:o[0]||(o[0]=t=>e.unref(n)("pages/mine/delivery-address/index"))}," 修改地址 ")):e.createCommentVNode("",!0)]))}},[["__scopeId","data-v-af43b06d"]]);function Ma(e){let t="";for(let n in e){t+=`${n}:${e[n]};`}return t}const Da=M({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 Ma({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return Ma({"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"),w);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 Na=M({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 p=null;return"bind"===s||t?(p=await this.validator.validateUpdate({[l]:e},n),d||void 0!==e&&""!==e||(p=null),p&&p.errorMessage?("undertext"===o&&(this.errMsg=p?p.errorMessage:""),"toast"===o&&uni.showToast({title:p.errorMessage||"校验错误",icon:"none"}),"modal"===o&&uni.showModal({title:"提示",content:p.errorMessage||"校验错误"})):this.errMsg="",i(p||null)):this.errMsg="",p||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 p=n[u]||{};this.itemRules=p,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 wa={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 ba={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function La(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 Pa={integer:e=>Pa.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 Pa.number(e)&&!Pa.integer(e)},array:e=>Array.isArray(e),object:e=>"object"==typeof e&&!Pa.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(wa.email)&&e.length<255,url:e=>"string"==typeof e&&!!e.match(wa.url),pattern(e,t){try{return new RegExp(e).test(t)}catch(ui){return!1}},method:e=>"function"==typeof e,idcard:e=>"string"==typeof e&&!!e.match(wa.idcard),"url-https"(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":e=>e.startsWith("://"),"url-web":e=>!1};class Aa{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=e}));(s||"string"==typeof r&&r||!1===r)&&(i=this._getMessage(e,s||r,o))}catch(ui){i=this._getMessage(e,ui.message,o)}return i}_getMessage(e,t,n){return La(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 Ra={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)?La(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-1&&(s=!0),s?null:La(e,o||n.enum)},rangeNumber(e,t,n){if(!Pa.number(t))return La(e,e.errorMessage||n.pattern.mismatch);let{minimum:a,maximum:o,exclusiveMinimum:i,exclusiveMaximum:s}=e,r=i?t<=a:t=o:t>o;return void 0!==a&&r?La(e,e.errorMessage||n.number[i?"exclusiveMinimum":"minimum"]):void 0!==o&&c?La(e,e.errorMessage||n.number[s?"exclusiveMaximum":"maximum"]):void 0!==a&&void 0!==o&&(r||c)?La(e,e.errorMessage||n.number.range):null},rangeLength(e,t,n){if(!Pa.string(t)&&!Pa.array(t))return La(e,e.errorMessage||n.pattern.mismatch);let a=e.minLength,o=e.maxLength,i=t.length;return void 0!==a&&io?La(e,e.errorMessage||n.length.maxLength):void 0!==a&&void 0!==o&&(io)?La(e,e.errorMessage||n.length.range):null},pattern:(e,t,n)=>Pa.pattern(e.pattern,t)?null:La(e,e.errorMessage||n.pattern.mismatch),format(e,t,n){var a=Object.keys(Pa),o=ba[e.format]?ba[e.format]:e.format||e.arrayType;return a.indexOf(o)>-1&&!Pa[o](t)?La(e,e.errorMessage||n.typeError):null},arrayTypeFormat(e,t,n){if(!Array.isArray(t))return La(e,e.errorMessage||n.typeError);for(let a=0;an.indexOf(e)<0));return[{key:"invalid",errorMessage:La({field:JSON.stringify(a)},Oa.message.TAG+Oa.message.defaultInvalid)}]}}Oa.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 Ba=(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?Ha(Number(t))?Number(t):t:null),o&&(t=!!Za(t)&&t),t},xa=(e,t)=>Ya(t,e),Ua=(e,t={})=>{const n=Fa(e);if("object"==typeof n&&Array.isArray(n)&&n.length>1){return n.reduce(((e,t)=>e+`#${t}`),"_formdata_")}return n[0]||e},Va=e=>{let t=e.replace("_formdata_#","");return t=t.split("#").map((e=>Ha(e)?Number(e):e)),t},Ga=(e,t,n)=>("object"!=typeof e||Fa(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 Fa(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}const Ya=(e,t,n="undefined")=>{let a=Fa(t).reduce(((e,t)=>(e||{})[t]),e);return a&&void 0===a?n:a},Ha=e=>!isNaN(Number(e)),Za=e=>"boolean"==typeof e;const qa=M({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 Oa(e)},setValue(e,t){let n=this.childrens.find((t=>t.name===e));return n?(this.formData[e]=Ba(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=Ua(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=Ua(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=>Ua(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=Ua(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=Ua(e),n=xa(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=Va(a);Ga(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:Ba,_isRequiredField:e=>{let t=!1;for(let n=0;n(t[e]=n,n||""),_getDataValue:xa,_realName:Ua,_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{o.value.close()};return n({close:s,open:()=>{o.value.open()}}),(n,a)=>{const r=f(e.resolveDynamicComponent("uni-icons"),w),c=f(e.resolveDynamicComponent("uni-popup"),Rn);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(xn)(!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(Vn)(!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"]]),Ja=M({__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"),Da),i=f(e.resolveDynamicComponent("uni-forms-item"),Na),c=f(e.resolveDynamicComponent("uni-forms"),qa);return e.openBlock(),e.createBlock(e.unref(ja),{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"]]),Xa={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]}]},Ka=M({__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(Xa[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"),va),c=f(e.resolveDynamicComponent("uni-countdown"),Ca);return e.openBlock(),e.createElementBlock("view",{class:"jy-order-card"},["merchandise_control"==t.type?(e.openBlock(),e.createBlock(e.unref(ka),{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(Ia),{showStatus:!0}),e.createVNode(e.unref(ka),{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(Ia),{showStatus:!0}),e.createVNode(e.unref(ka),{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(Ta),{shopEdit:!1}),e.createVNode(e.unref(Sa))],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(Xa).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(Xa)[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(Ja,{ref_key:"deliveryRef",ref:n,onSavePost:a},null,512)])}}},[["__scopeId","data-v-54518360"]]),za={__name:"index",setup:t=>(S((()=>{g("log","at pages/merchant/business-operator/index.vue:24","===================================="),g("log","at pages/merchant/business-operator/index.vue:25","加载到底了通知刷新"),g("log","at pages/merchant/business-operator/index.vue:26","====================================")})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-business-operator-order"},[e.createVNode(e.unref(Fn),{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(Ka),{type:"merchandise_control"}))),64))])])))},Wa=M({__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 C((e=>{i.value.currentTab=e.currentTab/1})),(t,s)=>{const r=f(e.resolveDynamicComponent("uni-easyinput"),Da);return e.openBlock(),e.createElementBlock("view",{class:"jy-business-operator-order"},[e.createVNode(e.unref(Fn),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(Zn),{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(Ka),{type:"business_order"}))),64))])])}}},[["__scopeId","data-v-923a8d32"]]),Qa={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"视频",navigationStyle:"custom",navigationBarTextStyle:"white",disableScroll:!1}},{path:"pages/news/ce",style:{navigationBarTitleText:"视频",navigationStyle:"custom",navigationBarTextStyle:"white"}},{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:"商城",navigationStyle:"custom",onReachBottomDistance:100,enablePullDownRefresh:!0}},{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/search/index",style:{navigationBarTitleText:"搜索",navigationStyle:"custom",onReachBottomDistance:100,enablePullDownRefresh:!0}},{path:"pages/shop/commodity/index",style:{navigationBarTitleText:"商品详情",navigationStyle:"custom",navigationBarTextStyle:"white"}},{path:"pages/shop/continue-pay/index",style:{navigationBarTitleText:"继续付款",navigationStyle:"custom",navigationBarTextStyle:"white"}},{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/shop/sales/index",style:{navigationBarTitleText:"售后类型",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/refund/index",style:{navigationBarTitleText:"申请退货退款",navigationBarBackgroundColor:"#fff"}},{path:"pages/shop/money-whereabouts/index",style:{navigationBarTitleText:"钱款去向",navigationStyle:"custom"}},{path:"pages/shop/after-sales/index",style:{navigationBarTitleText:"售后详情",navigationStyle:"custom"}},{path:"pages/shop/transaction-completed/index",style:{navigationBarTitleText:"交易完成"}},{path:"pages/shop/waiting-delivery/index",style:{navigationBarTitleText:"待发货"}},{path:"pages/shop/logistics-state/index",style:{navigationBarTitleText:"物流状态"}},{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/question-answer/index",style:{navigationBarTitleText:"问答页"}},{path:"pages/news/red-envelope/index",style:{navigationBarTitleText:"红包详情"}},{path:"pages/mine/mine",style:{navigationBarTitleText:"我的",navigationStyle:"custom"}},{path:"pages/mine/set-up/index",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/pay-use/index",style:{navigationBarTitleText:"先用后付",navigationStyle:"custom"}},{path:"pages/mine/real-name-authentication/index",style:{navigationBarTitleText:"实名认证"}},{path:"pages/mine/delivery-address/index",style:{navigationBarTitleText:"收获地址",navigationStyle:"custom",onReachBottomDistance:100,enablePullDownRefresh:!0}},{path:"pages/mine/balance/index",style:{navigationBarTitleText:"余额",navigationStyle:"custom"}},{path:"pages/mine/balance-details/index",style:{navigationBarTitleText:"余额明细",navigationStyle:"custom",onReachBottomDistance:100}},{path:"pages/mine/historical-browsing/index",style:{navigationBarTitleText:"历史浏览",navigationBarBackgroundColor:"#fff",onReachBottomDistance:100,enablePullDownRefresh:!0}},{path:"pages/mine/browsed/index",style:{navigationBarTitleText:"选择已浏览的商品",navigationBarBackgroundColor:"#fff",onReachBottomDistance:100}},{path:"pages/mine/collection/index",style:{navigationBarTitleText:"全部收藏",navigationBarBackgroundColor:"#fff",onReachBottomDistance:100}},{path:"pages/mine/target-store/index",style:{navigationBarTitleText:"关注店铺",navigationBarBackgroundColor:"#fff",onReachBottomDistance:100}},{path:"pages/mine/coupon/index",style:{navigationBarTitleText:"优惠券",navigationBarBackgroundColor:"#fff",onReachBottomDistance:100}},{path:"pages/mine/homepage",style:{navigationBarTitleText:"个人主页",navigationStyle:"custom",navigationBarTextStyle:"white"}},{path:"pages/release/video",style:{navigationBarTitleText:"发布视频",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/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:"交易市场",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/pushVideo",style:{navigationBarTitleText:"投流推广",navigationBarBackgroundColor:"#fff"}},{path:"pages/login/register",style:{navigationBarTitleText:"注册",navigationStyle:"custom"}},{path:"pages/login/invite",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:"商家入驻"}},{path:"pages/index/integral",style:{navigationBarTitleText:"积分",navigationBarBackgroundColor:"#fff"}},{path:"pages/index/integralLog",style:{navigationBarTitleText:"积分变动明细",navigationStyle:"custom",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/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/news/applyFriend",style:{navigationBarTitleText:"好友添加申请",navigationBarBackgroundColor:"#fff"}},{path:"pages/news/myQr",style:{navigationBarTitleText:"我的二维码"}},{path:"pages/mine/teen",style:{navigationBarTitleText:"青少年模式"}},{path:"pages/login/lock",style:{navigationBarTitleText:"",navigationStyle:"custom"}},{path:"pages/index/pushVideoCollects",style:{navigationBarTitleText:"选择投流视频"}}],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/index/index"}]},uniIdRouter:{}};function $a(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 eo=$a((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>>2]>>>24-i%4*8&255;t[a+i>>>2]|=s<<24-(a+i)%4*8}else for(i=0;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>>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>>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>>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>>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>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],m=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],C=e[t+9],E=e[t+10],k=e[t+11],I=e[t+12],S=e[t+13],T=e[t+14],M=e[t+15],D=i[0],N=i[1],w=i[2],b=i[3];D=l(D,N,w,b,s,7,r[0]),b=l(b,D,N,w,c,12,r[1]),w=l(w,b,D,N,m,17,r[2]),N=l(N,w,b,D,h,22,r[3]),D=l(D,N,w,b,g,7,r[4]),b=l(b,D,N,w,f,12,r[5]),w=l(w,b,D,N,v,17,r[6]),N=l(N,w,b,D,_,22,r[7]),D=l(D,N,w,b,y,7,r[8]),b=l(b,D,N,w,C,12,r[9]),w=l(w,b,D,N,E,17,r[10]),N=l(N,w,b,D,k,22,r[11]),D=l(D,N,w,b,I,7,r[12]),b=l(b,D,N,w,S,12,r[13]),w=l(w,b,D,N,T,17,r[14]),D=u(D,N=l(N,w,b,D,M,22,r[15]),w,b,c,5,r[16]),b=u(b,D,N,w,v,9,r[17]),w=u(w,b,D,N,k,14,r[18]),N=u(N,w,b,D,s,20,r[19]),D=u(D,N,w,b,f,5,r[20]),b=u(b,D,N,w,E,9,r[21]),w=u(w,b,D,N,M,14,r[22]),N=u(N,w,b,D,g,20,r[23]),D=u(D,N,w,b,C,5,r[24]),b=u(b,D,N,w,T,9,r[25]),w=u(w,b,D,N,h,14,r[26]),N=u(N,w,b,D,y,20,r[27]),D=u(D,N,w,b,S,5,r[28]),b=u(b,D,N,w,m,9,r[29]),w=u(w,b,D,N,_,14,r[30]),D=d(D,N=u(N,w,b,D,I,20,r[31]),w,b,f,4,r[32]),b=d(b,D,N,w,y,11,r[33]),w=d(w,b,D,N,k,16,r[34]),N=d(N,w,b,D,T,23,r[35]),D=d(D,N,w,b,c,4,r[36]),b=d(b,D,N,w,g,11,r[37]),w=d(w,b,D,N,_,16,r[38]),N=d(N,w,b,D,E,23,r[39]),D=d(D,N,w,b,S,4,r[40]),b=d(b,D,N,w,s,11,r[41]),w=d(w,b,D,N,h,16,r[42]),N=d(N,w,b,D,v,23,r[43]),D=d(D,N,w,b,C,4,r[44]),b=d(b,D,N,w,I,11,r[45]),w=d(w,b,D,N,M,16,r[46]),D=p(D,N=d(N,w,b,D,m,23,r[47]),w,b,s,6,r[48]),b=p(b,D,N,w,_,10,r[49]),w=p(w,b,D,N,T,15,r[50]),N=p(N,w,b,D,f,21,r[51]),D=p(D,N,w,b,I,6,r[52]),b=p(b,D,N,w,h,10,r[53]),w=p(w,b,D,N,E,15,r[54]),N=p(N,w,b,D,c,21,r[55]),D=p(D,N,w,b,y,6,r[56]),b=p(b,D,N,w,M,10,r[57]),w=p(w,b,D,N,v,15,r[58]),N=p(N,w,b,D,S,21,r[59]),D=p(D,N,w,b,g,6,r[60]),b=p(b,D,N,w,k,10,r[61]),w=p(w,b,D,N,m,15,r[62]),N=p(N,w,b,D,C,21,r[63]),i[0]=i[0]+D|0,i[1]=i[1]+N|0,i[2]=i[2]+w|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<>>32-i)+t}function u(e,t,n,a,o,i,s){var r=e+(t&a|n&~a)+o+s;return(r<>>32-i)+t}function d(e,t,n,a,o,i,s){var r=e+(t^n^a)+o+s;return(r<>>32-i)+t}function p(e,t,n,a,o,i,s){var r=e+(n^(t|~a))+o+s;return(r<>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),n.MD5)})),$a((function(e,t){var n,a,o;e.exports=(a=(n=to).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>>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>>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>>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 io="FUNCTION",so="pending",ro="rejected";function co(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function lo(e){return"object"===co(e)}function uo(e){return"function"==typeof e}function po(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const mo="REJECTED",ho="NOT_PENDING";let go=class{constructor({createPromise:e,retryRule:t=mo}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case mo:return this.status===ro;case ho:return this.status!==so}}exec(){return this.needRetry?(this.status=so,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=ro,Promise.reject(e)))),this.promise):this.promise}};function fo(e){return e&&"string"==typeof e?JSON.parse(e):e}const vo=fo([]),_o="app";fo("");const yo=fo("[]")||[];let Co="";try{Co="__UNI__08B31BC"}catch(ui){}let Eo,ko={};function Io(e,t={}){var n,a;return n=ko,a=e,Object.prototype.hasOwnProperty.call(n,a)||(ko[e]=t),ko[e]}ko=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};const So=["invoke","success","fail","complete"],To=Io("_globalUniCloudInterceptor");function Mo(e,t){To[e]||(To[e]={}),lo(t)&&Object.keys(t).forEach((n=>{So.indexOf(n)>-1&&function(e,t,n){let a=To[e][t];a||(a=To[e][t]=[]),-1===a.indexOf(n)&&uo(n)&&a.push(n)}(e,n,t[n])}))}function Do(e,t){To[e]||(To[e]={}),lo(t)?Object.keys(t).forEach((n=>{So.indexOf(n)>-1&&function(e,t,n){const a=To[e][t];if(!a)return;const o=a.indexOf(n);o>-1&&a.splice(o,1)}(e,n,t[n])})):delete To[e]}function No(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function wo(e,t){return To[e]&&To[e][t]||[]}function bo(e){Mo("callObject",e)}const Lo=Io("_globalUniCloudListener"),Po="response",Ao="needLogin",Ro="refreshToken",Oo="clientdb",Bo="cloudfunction",xo="cloudobject";function Uo(e){return Lo[e]||(Lo[e]=[]),Lo[e]}function Vo(e,t){const n=Uo(e);n.includes(t)||n.push(t)}function Go(e,t){const n=Uo(e),a=n.indexOf(t);-1!==a&&n.splice(a,1)}function Fo(e,t){const n=Uo(e);for(let a=0;a{Ho&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(Ho=!0,e())}Ho||setTimeout((()=>{t()}),30)}()})),Yo)}function qo(e){const t={};for(const n in e){const a=e[n];uo(a)&&(t[n]=po(a))}return t}let jo=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 Jo={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 Xo(e){return e&&Xo(e.__v_raw)||e}function Ko(){return{token:Jo.getStorageSync("uni_id_token")||Jo.getStorageSync("uniIdToken"),tokenExpired:Jo.getStorageSync("uni_id_token_expired")}}function zo({token:e,tokenExpired:t}={}){e&&Jo.setStorageSync("uni_id_token",e),t&&Jo.setStorageSync("uni_id_token_expired",t)}let Wo,Qo;function $o(){return Wo||(Wo=uni.getSystemInfoSync()),Wo}function ei(){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 ti={};function ni(){const e=uni.getLocale&&uni.getLocale()||"en";if(Qo)return{...ti,...Qo,locale:e,LOCALE:e};const t=$o(),{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 Qo={PLATFORM:o,OS:a,APPID:i,DEVICEID:n,...ei(),...t},{...ti,...Qo,locale:e,LOCALE:e}}var ai=function(e,t){let n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),no(n,t).toString()},oi=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 jo({code:n,message:o,requestId:t}))}const o=e.data;if(o.error)return a(new jo({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))},ii=function(e){return oo.stringify(ao.parse(e))},si=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=Jo,this._getAccessTokenPromiseHub=new go({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new jo({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:ho})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return oi(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"]=ai(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"]=ai(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 jo({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new jo({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"!==co(t))throw new jo({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new jo({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new jo({code:"INVALID_PARAM",message:"cloudPath不合法"});const s=i&&i.envType||this.config.envType;if(a&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new jo({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:p,ossPath:m,id:h,policy:g,ossCallbackUrl:f}=r,v={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:d,host:p,id:h,key:m,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=ii(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 jo({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new jo({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 jo({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}}},ri={init(e){const t=new si(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 ci="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var li,ui;(ui=li||(li={})).local="local",ui.none="none",ui.session="session";var di=function(){},pi=$a((function(e,t){var n;e.exports=(n=to,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],p=n[7],m=0;m<64;m++){if(m<16)l[m]=0|e[t+m];else{var h=l[m-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,f=l[m-2],v=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;l[m]=g+l[m-7]+v+l[m-16]}var _=a&o^a&i^o&i,y=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),C=p+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&u^~r&d)+c[m]+l[m];p=d,d=u,u=r,r=s+C|0,s=i,i=o,o=a,a=C+(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]+p|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)})),mi=pi,hi=$a((function(e,t){e.exports=to.HmacSHA256}));const gi=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new jo({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 fi(e){return void 0===e}function vi(e){return"[object Null]"===Object.prototype.toString.call(e)}function _i(e=""){return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}var yi;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(yi||(yi={}));const Ci={adapter:null,runtime:void 0},Ei=["anonymousUuidKey"];let ki=class extends di{constructor(){super(),Ci.adapter.root.tcbObject||(Ci.adapter.root.tcbObject={})}setItem(e,t){Ci.adapter.root.tcbObject[e]=t}getItem(e){return Ci.adapter.root.tcbObject[e]}removeItem(e){delete Ci.adapter.root.tcbObject[e]}clear(){delete Ci.adapter.root.tcbObject}};function Ii(e,t){switch(e){case"local":return t.localStorage||new ki;case"none":return new ki;default:return t.sessionStorage||new ki}}let Si=class{constructor(e){if(!this._storage){this._persistence=Ci.adapter.primaryStorage||e.persistence,this._storage=Ii(this._persistence,Ci.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=Ii(e,Ci.adapter);for(const a in this.keys){const e=this.keys[a];if(t&&Ei.includes(a))continue;const o=this._storage.getItem(e);fi(o)||vi(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 Ti={},Mi={};function Di(e){return Ti[e]}let Ni=class{constructor(e,t){this.data=t||null,this.name=e}},wi=class extends Ni{constructor(e,t){super("error",{error:e,data:t}),this.error=e}};const bi=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 wi)return console.error(e.error),this;const n="string"==typeof e?new Ni(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 Li(e,t){bi.on(e,t)}function Pi(e,t={}){bi.fire(e,t)}function Ai(e,t){bi.off(e,t)}const Ri="loginStateChanged",Oi="loginStateExpire",Bi="loginTypeChanged",xi="anonymousConverted",Ui="refreshAccessToken";var Vi;!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"}(Vi||(Vi={}));const Gi=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Fi={"X-SDK-Version":"1.3.5"};function Yi(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 Hi(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Fi,"x-seqid":e}}}let Zi=class{constructor(e={}){var t;this.config=e,this._reqClass=new Ci.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Di(this.config.env),this._localCache=(t=this.config.env,Mi[t]),Yi(this._reqClass,"post",[Hi]),Yi(this._reqClass,"upload",[Hi]),Yi(this._reqClass,"download",[Hi])}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 jo({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)===Vi.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()}Pi(Oi),this._cache.removeStore(n)}throw new jo({code:r.data.code,message:`刷新access token失败:${r.data.code}`})}if(r.data.access_token)return Pi(Ui),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 jo({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{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()}},Ki=class{constructor(e){if(!e)throw new jo({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Di(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 Xi(e)}get isAnonymousAuth(){return this.loginType===Vi.ANONYMOUS}get isCustomAuth(){return this.loginType===Vi.CUSTOM}get isWeixinAuth(){return this.loginType===Vi.WECHAT||this.loginType===Vi.WECHAT_OPEN||this.loginType===Vi.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},zi=class extends Ji{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(),Pi(Ri),Pi(Bi,{env:this.config.env,loginType:Vi.ANONYMOUS,persistence:"local"});const e=new Ki(this.config.env);return await e.user.refresh(),e}throw new jo({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(),Pi(xi,{env:this.config.env}),Pi(Bi,{loginType:Vi.CUSTOM,persistence:"local"}),{credential:{refreshToken:i.refresh_token}};throw new jo({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Vi.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}},Wi=class extends Ji{async signIn(e){if("string"!=typeof e)throw new jo({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(),Pi(Ri),Pi(Bi,{env:this.config.env,loginType:Vi.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Ki(this.config.env);throw new jo({message:"自定义登录失败"})}},Qi=class extends Ji{async signIn(e,t){if("string"!=typeof e)throw new jo({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(),Pi(Ri),Pi(Bi,{env:this.config.env,loginType:Vi.EMAIL,persistence:this.config.persistence}),new Ki(this.config.env);throw a.code?new jo({code:a.code,message:`邮箱登录失败: ${a.message}`}):new jo({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})}},$i=class extends Ji{async signIn(e,t){if("string"!=typeof e)throw new jo({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:Vi.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(),Pi(Ri),Pi(Bi,{env:this.config.env,loginType:Vi.USERNAME,persistence:this.config.persistence}),new Ki(this.config.env);throw a.code?new jo({code:a.code,message:`用户名密码登录失败: ${a.message}`}):new jo({message:"用户名密码登录失败"})}},es=class{constructor(e){this.config=e,this._cache=Di(e.env),this._request=ji(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Li(Bi,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 zi(this.config)}customAuthProvider(){return new Wi(this.config)}emailAuthProvider(){return new Qi(this.config)}usernameAuthProvider(){return new $i(this.config)}async signInAnonymously(){return new zi(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new Qi(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new $i(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new zi(this.config)),Li(xi,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Vi.ANONYMOUS)throw new jo({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),Pi(Ri),Pi(Bi,{env:this.config.env,loginType:Vi.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){Li(Ri,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Li(Oi,e.bind(this))}onAccessTokenRefreshed(e){Li(Ui,e.bind(this))}onAnonymousConverted(e){Li(xi,e.bind(this))}onLoginTypeChanged(e){Li(Bi,(()=>{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 Ki(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new jo({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 Wi(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 ts=function(e,t){t=t||gi();const n=ji(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:p}=e,m={key:a,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:r,data:m,file:o,name:a,fileType:s,onUploadProgress:i}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:p}):t(new jo({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},ns=function(e,t){t=t||gi();const n=ji(this.config.env),{cloudPath:a}=e;return n.send("storage.getUploadMetadata",{path:a}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},as=function({fileList:e},t){if(t=t||gi(),!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 ji(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},os=function({fileList:e},t){t=t||gi(),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 ji(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},is=async function({fileID:e},t){const n=(await os.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const a=ji(this.config.env);let o=n.download_url;if(o=encodeURI(o),!t)return a.download({url:o});t(await a.download({url:o}))},ss=function({name:e,data:t,query:n,parse:a,search:o,timeout:i},s){const r=s||gi();let c;try{c=t?JSON.stringify(t):""}catch(u){return Promise.reject(u)}if(!e)return Promise.reject(new jo({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:n,parse:a,search:o,function_name:e,request_data:c};return ji(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 jo({message:"response data must be json"}))}}return r.promise})).catch((e=>{r(e)})),r.promise},rs={timeout:15e3,persistence:"session"},cs={};var ls=new class e{constructor(e){this.config=e||this.config,this.authObj=void 0}init(t){switch(Ci.adapter||(this.requestClient=new Ci.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:`请求在${(t.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...rs,...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||Ci.adapter.primaryStorage||rs.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Ti[t]=new Si(e),Mi[t]=new Si({...e,persistence:"local"})}(this.config),n=this.config,qi[n.env]=new Zi(n),this.authObj=new es(this.config),this.authObj}on(e,t){return Li.apply(this,[e,t])}off(e,t){return Ai.apply(this,[e,t])}callFunction(e,t){return ss.apply(this,[e,t])}deleteFile(e,t){return as.apply(this,[e,t])}getTempFileURL(e,t){return os.apply(this,[e,t])}downloadFile(e,t){return is.apply(this,[e,t])}uploadFile(e,t){return ts.apply(this,[e,t])}getUploadMetadata(e,t){return ns.apply(this,[e,t])}registerExtension(e){cs[e.name]=e}async invokeExtension(e,t){const n=cs[e];if(!n)throw new jo({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&&(Ci.adapter=t),n&&(Ci.runtime=n)}};function us(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 ds=class{post(e){const{url:t,data:n,headers:a,timeout:o}=e;return new Promise(((e,i)=>{Jo.request({url:us("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=Jo.uploadFile({url:us("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 ps={setItem(e,t){Jo.setStorageSync(e,t)},getItem:e=>Jo.getStorageSync(e),removeItem(e){Jo.removeStorageSync(e)},clear(){Jo.clearStorageSync()}};var ms={genAdapter:function(){return{root:{},reqClass:ds,localStorage:ps,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};ls.useAdapters(ms);const hs=ls,gs=hs.init;hs.init=function(e){e.env=e.spaceId;const t=gs.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}=qo(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 fs=hs;async function vs(e,t){const n=`http://${e}:${t}/system/ping`;try{const e=await(a={url:n,timeout:500},new Promise(((e,t)=>{Jo.request({...a,success(t){e(t)},fail(e){t(e)}})})));return!(!e.data||0!==e.data.code)}catch(o){return!1}var a}const _s={"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 ys=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=Jo}async request(e,t=!0){return e=this.setupRequest(e),Promise.resolve().then((()=>oi(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 jo({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"]=ai(t,this.config.clientSecret);const a=ni();n["x-client-info"]=encodeURIComponent(JSON.stringify(a));const{token:o}=Ko();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=ni(),{token:n}=Ko(),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{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 jo({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){o(new jo({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 jo({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 jo({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new jo({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 jo({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},Cs={init(e){const t=new ys(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Es=$a((function(e,t){e.exports=to.enc.Hex}));function ks(){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 Is(e="",t={}){const{data:n,functionName:a,method:o,headers:i,signHeaderKeys:s=[],config:r}=t,c=Date.now(),l=ks(),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),[p="",m=""]=e.split("?")||[],h=function(e){const t=e.signedHeaders.join(";"),n=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),a=mi(e.body).toString(Es),o=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${n}\n${t}\n${a}\n`,i=mi(o).toString(Es),s=`HMAC-SHA256\n${e.timestamp}\n${i}\n`,r=hi(s,e.secretKey).toString(Es);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${r}`}({path:p,query:m,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 Ss({url:e,data:t,method:n="POST",headers:a={},timeout:o}){return new Promise(((i,s)=>{Jo.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 jo({code:"SYS_ERR",message:n||a||"request:fail",requestId:o||t}))}i({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function Ts(e,t){const{path:n,data:a,method:o="GET"}=e,{url:i,headers:s}=Is(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 Ss({url:i,data:a,method:o,headers:s}).then((e=>{const t=e.data||{};if(!t.success)throw new jo({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new jo({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 jo({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 Ds(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}let Ns=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:ks(),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",mi(i).toString(Es)].join("\n"),r=hi(s,this.config.secretKey).toString(Es),c=Object.keys(o).map((e=>`${e}=${encodeURIComponent(o[e])}`)).join("&");return`${this.config.wsEndpoint}${n}?${c}&signature=${r}`}};var ws=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 Ns(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}=Is("/functions/invokeFunction",{functionName:n,data:a,method:s,headers:r,signHeaderKeys:["x-to-function-name"],config:t});return Ss({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 jo({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((e=>{throw new jo({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=Jo.uploadFile({url:e,filePath:t,fileType:n,formData:a,name:"file",success(e){e&&e.statusCode<400?i(e):s(new jo({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){s(new jo({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"!==co(t))throw new jo({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new jo({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new jo({code:"INVALID_PARAM",message:"cloudPath不合法"});const o=await Ts({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"!==co(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})}Ts({path:"/?download_url",data:{file_list:a},method:"POST"},this.config).then((e=>{const{file_list:n=[]}=e;t({fileList:n.map((e=>({fileID:Ds.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>n(e)))}))}async connectWebSocket(e){const{name:t,query:n}=e;return Jo.connectSocket({url:this._websocket.signedURL(t,n),complete:()=>{}})}},bs={init:e=>{e.provider="alipay";const t=new ws(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Ls({data:e}){let t;t=ni();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=Ko();e&&(n.uniIdToken=e)}return n}const Ps=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var As=/[\\^$.*+?()[\]{}|]/g,Rs=RegExp(As.source);function Os(e,t,n){return e.replace(new RegExp((a=t)&&Rs.test(a)?a.replace(As,"\\$&"):a,"g"),n);var a}const Bs=2e4,xs={code:20101,message:"Invalid client"};function Us(e){const{errSubject:t,subject:n,errCode:a,errMsg:o,code:i,message:s,cause:r}=e||{};return new jo({subject:t||n||"uni-secure-network",code:a||i||Bs,message:o||s,cause:r})}let Vs;function Gs({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function Fs({name:e,data:t={}}={}){return"DCloud-clientDB"===e&&"encryption"===t.redirectTo&&"getAppClientKey"===t.action}function Ys({functionName:e,result:t,logPvd:n}){}function Hs(e){const t=e.callFunction,n=function(n){const a=n.name;n.data=Ls.call(e,{data:n.data});const o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],i=Gs(n),s=Fs(n),r=i||s;return t.call(this,n).then((e=>(e.errCode=0,!r&&Ys.call(this,{functionName:a,result:e,logPvd:o}),Promise.resolve(e))),(e=>(!r&&Ys.call(this,{functionName:a,result:e,logPvd:o}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let a=0;an.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;ie.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`),Us(xs)}({provider:a,spaceId:o,functionName:i})?new Vs({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)))}}Vs=class{constructor(){throw Us({message:`Platform ${_o} is not enabled, please check whether secure network module is enabled in your manifest.json`})}};const Zs=Symbol("CLIENT_DB_INTERNAL");function qs(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=Zs,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 js(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 Js=["db.Geo","db.command","command.aggregate"];function Xs(e,t){return Js.indexOf(`${e}.${t}`)>-1}function Ks(e){switch(co(e=Xo(e))){case"array":return e.map((e=>Ks(e)));case"object":return e._internalType===Zs||Object.keys(e).forEach((t=>{e[t]=Ks(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function zs(e){return e&&e.content&&e.content.$method}class Ws{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:Ks(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=zs(e),n=zs(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"===zs(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=zs(e),n=zs(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Qs({$method:e,$param:Ks(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:Ks(t)}),this._database._callCloudFunction({action:n,command:a})}}function Qs(e,t,n){return qs(new Ws(e,t,n),{get(e,t){let a="db";return e&&e.content&&(a=e.content.$method),Xs(a,t)?Qs({$method:t},e,n):function(){return Qs({$method:t,$param:Ks(Array.from(arguments))},e,n)}}})}function $s({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 er(e,t={}){return qs(new e(t),{get:(e,t)=>Xs("db",t)?Qs({$method:t},null,e):function(){return Qs({$method:t,$param:Ks(Array.from(arguments))},null,e)}})}class tr extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=Io("_globalUniCloudDatabaseCallback")),t||(this.auth=js(this._authCallBacks)),this._isJQL=t,Object.assign(this,js(this._dbCallBacks)),this.env=qs({},{get:(e,t)=>({$env:t})}),this.Geo=qs({},{get:(e,t)=>$s({path:["Geo"],method:t})}),this.serverDate=$s({path:[],method:"serverDate"}),this.RegExp=$s({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;nNo(wo(s,"complete"),e))).then((()=>(o(null,e),Fo(Po,{type:Oo,content:e}),Promise.reject(e))))}const c=No(wo(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(console.warn(n),a)})}}return d=e,No(wo(s,"success"),d).then((()=>No(wo(s,"complete"),d))).then((()=>{o(d,null);const e=i._parseResult(d);return Fo(Po,{type:Oo,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 jo({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const nr="token无效,跳转登录页面",ar="token过期,跳转登录页面",or={TOKEN_INVALID_TOKEN_EXPIRED:ar,TOKEN_INVALID_INVALID_CLIENTID:nr,TOKEN_INVALID:nr,TOKEN_INVALID_WRONG_TOKEN:nr,TOKEN_INVALID_ANONYMOUS_USER:nr},ir={"uni-id-token-expired":ar,"uni-id-check-token-failed":nr,"uni-id-token-not-exist":nr,"uni-id-check-device-feature-failed":nr};function sr(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function rr(e=[],t=""){const n=[],a=[];return e.forEach((e=>{!0===e.needLogin?n.push(sr(t,e.path)):!1===e.needLogin&&a.push(sr(t,e.path))})),{needLoginPage:n,notNeedLoginPage:a}}function cr(e){return e.split("?")[0].replace(/^\//,"")}function lr(){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 ur(){return cr(lr())}function dr(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,a=cr(e);return n.some((e=>e.pagePath===a))}const pr=!!Qa.uniIdRouter,{loginPage:mr,routerNeedLogin:hr,resToLogin:gr,needLoginPage:fr,notNeedLoginPage:vr,loginPageInTabBar:_r}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:a={}}=Qa){const{loginPage:o,needLogin:i=[],resToLogin:s=!0}=n,{needLoginPage:r,notNeedLoginPage:c}=rr(e),{needLoginPage:l,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:a,pages:o=[]}=e,{needLoginPage:i,notNeedLoginPage:s}=rr(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:dr(o,a)}}();if(fr.indexOf(mr)>-1)throw new Error(`Login page [${mr}] should not be "needLogin", please check your pages.json`);function yr(e){const t=ur();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-1?a+`&uniIdRedirectUrl=${encodeURIComponent(o)}`:a+`?uniIdRedirectUrl=${encodeURIComponent(o)}`:a);var a,o;_r?"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 kr({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=Ko();let n;if(e){if(t-1)&&(fr.indexOf(t)>-1||hr.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,Uo(Ao).length>0)return setTimeout((()=>{Fo(Ao,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Ir(){!function(){const e=lr(),{abortLoginPageJump:t,autoToLoginPage:n}=kr({url:e});t||n&&Er({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{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 ir}(n);break;case"clientdb":a=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in or}(n)}a&&function(e={}){const t=Uo(Ao);Zo().then((()=>{const n=lr();if(n&&Cr({redirect:n}))return t.length>0?Fo(Ao,Object.assign({uniIdRedirectUrl:n},e)):void(mr&&Er({api:"navigateTo",redirect:n}))}))}(n)}))}function Tr(e){var t;(t=e).onResponse=function(e){Vo(Po,e)},t.offResponse=function(e){Go(Po,e)},function(e){e.onNeedLogin=function(e){Vo(Ao,e)},e.offNeedLogin=function(e){Go(Ao,e)},pr&&(Io("_globalUniCloudStatus").needLoginInit||(Io("_globalUniCloudStatus").needLoginInit=!0,Zo().then((()=>{Ir.call(e)})),gr&&Sr.call(e)))}(e),function(e){e.onRefreshToken=function(e){Vo(Ro,e)},e.offRefreshToken=function(e){Go(Ro,e)}}(e)}let Mr;const Dr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Nr=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function wr(){const e=Ko().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,""),!Nr.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>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 br=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}($a((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=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{l.errMsg=e.errMsg||e.message,a{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 Lr(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{this.mixinDatacomLoading=!1;const{data:a,count:o}=n.result;this.getcount&&(this.mixinDatacomPage.count=o),this.mixinDatacomHasMore=a.length{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,p=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,m=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:m},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(p*(d-1)).limit(p).get(f),n}}}}function Pr(e){return Io("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Ar({openid:e,callLoginByWeixin:t=!1}={}){throw Pr(this),new Error(`[SecureNetwork] API \`initSecureNetworkByWeixin\` is not supported on platform \`${_o}\``)}async function Rr(e){const t=Pr(this);return t.initPromise||(t.initPromise=Ar.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function Or(e){ti=e}function Br(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 xr 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{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 Ur={tcb:fs,tencent:fs,aliyun:ri,private:Cs,dcloud:Cs,alipay:bs};let Vr=new class{init(e){let t={};const n=Ur[e.provider];if(!n)throw new Error("未提供正确的provider参数");var a;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new go({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),Hs(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=er(tr,{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=er(tr,{uniClient:a,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=wr,e.chooseAndUploadFile=br.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Lr(e)}}),e.SSEChannel=xr,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return Rr.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.setCustomClientInfo=Or,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 No(wo(t,"invoke"),{...o}),i=await e(...a),await No(wo(t,"success"),{...o,result:i}),i}catch(r){throw s=r,await No(wo(t,"fail"),{...o,error:s}),s}finally{await No(wo(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 p={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,p);let m=!1;try{d=await t.callFunction(p)}catch(e){m=!0,d={result:new jo(e)}}const{errSubject:h,errCode:g,errMsg:f,newToken:v}=d.result||{};if(c&&uni.hideLoading(),v&&v.token&&v.tokenExpired&&(zo(v),Fo(Ro,{...v})),g){let e=f;if(m&&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 jo({subject:h,code:g,message:f,requestId:d.requestId});throw t.detail=d.result,Fo(Po,{type:xo,content:t}),t}return Fo(Po,{type:xo,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||io;a=e!==io}const o="callFunction"===t&&!a,i=this._initPromiseHub.exec();n=n||{};const{success:s,fail:r,complete:c}=qo(n),l=i.then((()=>a?Promise.resolve():No(wo(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>a?Promise.resolve(e):No(wo(t,"success"),e).then((()=>No(wo(t,"complete"),e))).then((()=>(o&&Fo(Po,{type:Bo,content:e}),Promise.resolve(e))))),(e=>a?Promise.reject(e):No(wo(t,"fail"),e).then((()=>No(wo(t,"complete"),e))).then((()=>(Fo(Po,{type:Bo,content:e}),Promise.reject(e))))));if(!(s||r||c))return l;l.then((e=>{s&&s(e),c&&c(e),o&&Fo(Po,{type:Bo,content:e})}),(e=>{r&&r(e),c&&c(e),o&&Fo(Po,{type:Bo,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=yo;let t={};if(e&&1===e.length)t=e[0],Vr=Vr.init(t),Vr._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=>{Vr[e]=function(){return console.error(n),Promise.reject(new jo({code:"SYS_ERR",message:n}))}}))}Object.assign(Vr,{get mixinDatacom(){return Lr(Vr)}}),Tr(Vr),Vr.addInterceptor=Mo,Vr.removeInterceptor=Do,Vr.interceptObject=bo,uni.__uniCloud=Vr;{const e=Eo||(Eo=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")()}(),Eo);e.uniCloud=Vr,e.UniCloudError=jo}})();var Gr=Vr;const Fr="chooseAndUploadFile:fail";function Yr(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 Hr(e,t=5,n){const a=(e=JSON.parse(JSON.stringify(e))).length;let o=0,i=this;return new Promise((s=>{for(;o=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,Gr.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{c.errMsg=e.errMsg||e.message,c.index=l,t{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 qr(e={type:"all"}){return"image"===e.type?Zr(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(Yr(t,"image"))},fail(e){i({errMsg:e.errMsg.replace("chooseImage:fail",Fr)})}})}))}(e),e):"video"===e.type?Zr(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(Yr({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",Fr)})}})}))}(e),e):Zr(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:Fr+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success(t){e(Yr(t))},fail(e){a({errMsg:e.errMsg.replace("chooseFile:fail",Fr)})}})}))}(e),e)}const jr=e=>{const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}},Jr=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},Xr=async(e,t="image")=>{const n=jr(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 Kr=M({name:"uniFilePicker",components:{uploadImage:M({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.lengths.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:M({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(){Gr.config&&Gr.config.provider||(this.noSpace=!0,Gr.chooseAndUploadFile=qr),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;t0?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=Jr(this.fileExtname);Gr.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=Jr(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=jr(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{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),Hr.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;se.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 Gr.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"]]),zr="/static/shop-upload-image.png",Wr=M({__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(xn)()}),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"]]),Qr={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)))}},$r=M({__name:"index",setup(t){const{checkLink:n}=e.inject("util");e.onMounted((()=>{Qr.on("business-operator",a)})),e.onUnmounted((()=>{Qr.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"),Kr),l=f(e.resolveDynamicComponent("uni-forms-item"),Na),u=f(e.resolveDynamicComponent("uni-easyinput"),Da),d=f(e.resolveDynamicComponent("uni-icons"),w),p=f(e.resolveDynamicComponent("uni-forms"),qa);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"jy-commodity_release"},[e.createVNode(p,{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:zr})])])),_: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(ja),{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(ja),{ref_key:"category",ref:o,title:"发货",showSave:!1},{default:e.withCtx((()=>[e.createVNode(p,{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:"/static/commodity-release-video.png",mode:"aspectFit"}),e.createElementVNode("text",null,"添加链接到视频")]),e.createVNode(d,{color:"#d8d8d8",type:"arrowright",size:"18"})])])),_:1})])),_:1},8,["modelValue"])]),e.createVNode(e.unref(Wr),{onClick:r},{default:e.withCtx((()=>[e.createTextVNode("立即发布")])),_:1})],64)}}},[["__scopeId","data-v-fe1fb338"]]),ec=M({__name:"index",props:{item:{type:Object,default:()=>({})}},setup(t){const n=e.ref({});return(t,a)=>{const o=f(e.resolveDynamicComponent("uni-icons"),w),i=f(e.resolveDynamicComponent("uni-file-picker"),Kr),s=f(e.resolveDynamicComponent("uni-forms-item"),Na),r=f(e.resolveDynamicComponent("uni-easyinput"),Da),c=f(e.resolveDynamicComponent("uni-forms"),qa);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"]]),tc={__name:"index",setup(t){const n=e.ref([{}]),a=()=>{Qr.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(Fn),{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(ec),{class:"mt20",key:n,item:t},null,8,["item"])))),128))])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(Wr),{onClick:t.postApi},{default:e.withCtx((()=>[e.createTextVNode("确定")])),_:1},8,["onClick"])],64))}};const nc=M({name:"uni-data-select",mixins:[Gr.mixinDatacom||{}],props:{localdata:{type:Array,default:()=>[]},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0},disabled:{type:Boolean,default:!1},format:{type:String,default:""},placement:{type:String,default:"bottom"}},data:()=>({showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[],cacheKey:"uni-data-select-lastSelectedValue"}),created(){this.debounceGet=this.debounce((()=>{this.query()}),300),this.collection&&!this.localdata.length&&this.debounceGet()},computed:{typePlaceholder(){const e=this.placeholder,t={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"}[this.collection];return t?e+t:e},valueCom(){return this.modelValue},textShow(){let e=this.current;return e.length>10?e.slice(0,25)+"...":e},getOffsetByPlacement(){switch(this.placement){case"top":return"bottom:calc(100% + 12px);";case"bottom":return"top:calc(100% + 12px);"}}},watch:{localdata:{immediate:!0,handler(e,t){Array.isArray(e)&&t!==e&&(this.mixinDatacomResData=e)}},valueCom(e,t){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler(e){e.length&&this.initDefVal()}}},methods:{debounce(e,t=100){let n=null;return function(...a){n&&clearTimeout(n),n=setTimeout((()=>{e.apply(this,a)}),t)}},query(){this.mixinDatacomEasyGet()},onMixinDatacomPropsChange(){this.collection&&this.debounceGet()},initDefVal(){let e="";if(!this.valueCom&&0!==this.valueCom||this.isDisabled(this.valueCom)){let t;if(this.collection&&(t=this.getCache()),t||0===t)e=t;else{let t="";this.defItem>0&&this.defItem<=this.mixinDatacomResData.length&&(t=this.mixinDatacomResData[this.defItem-1].value),e=t}(e||0===e)&&this.emit(e)}else e=this.valueCom;const t=this.mixinDatacomResData.find((t=>t.value===e));this.current=t?this.formatItemName(t):""},isDisabled(e){let t=!1;return this.mixinDatacomResData.forEach((n=>{n.value===e&&(t=n.disable)})),t},clearVal(){this.emit(""),this.collection&&this.removeCache()},change(e){e.disable||(this.showSelector=!1,this.current=this.formatItemName(e),this.emit(e.value))},emit(e){this.$emit("input",e),this.$emit("update:modelValue",e),this.$emit("change",e),this.collection&&this.setCache(e)},toggleSelector(){this.disabled||(this.showSelector=!this.showSelector)},formatItemName(e){let{text:t,value:n,channel_code:a}=e;if(a=a?`(${a})`:"",this.format){let t="";t=this.format;for(let n in e)t=t.replace(new RegExp(`{${n}}`,"g"),e[n]);return t}return this.collection.indexOf("app-list")>0?`${t}(${n})`:t||`未命名${a}`},getLoadData(){return this.mixinDatacomResData},getCurrentCacheKey(){return this.collection},getCache(e=this.getCurrentCacheKey()){return(uni.getStorageSync(this.cacheKey)||{})[e]},setCache(e,t=this.getCurrentCacheKey()){let n=uni.getStorageSync(this.cacheKey)||{};n[t]=e,uni.setStorageSync(this.cacheKey,n)},removeCache(e=this.getCurrentCacheKey()){let t=uni.getStorageSync(this.cacheKey)||{};delete t[e],uni.setStorageSync(this.cacheKey,t)}}},[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"uni-stat__select"},[a.label?(e.openBlock(),e.createElementBlock("span",{key:0,class:"uni-label-text hide-on-phone"},e.toDisplayString(a.label+":"),1)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["uni-stat-box",{"uni-stat__actived":i.current}])},[e.createElementVNode("view",{class:e.normalizeClass(["uni-select",{"uni-select--disabled":a.disabled}])},[e.createElementVNode("view",{class:"uni-select__input-box",onClick:n[1]||(n[1]=(...e)=>s.toggleSelector&&s.toggleSelector(...e))},[i.current?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-select__input-text"},e.toDisplayString(s.textShow),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-select__input-text uni-select__input-placeholder"},e.toDisplayString(s.typePlaceholder),1)),i.current&&a.clear&&!a.disabled?(e.openBlock(),e.createElementBlock("view",{key:2,onClick:n[0]||(n[0]=e.withModifiers(((...e)=>s.clearVal&&s.clearVal(...e)),["stop"]))},[e.createVNode(r,{type:"clear",color:"#c0c4cc",size:"24"})])):(e.openBlock(),e.createElementBlock("view",{key:3},[e.renderSlot(t.$slots,"icon",{data:i.showSelector},(()=>[e.createVNode(r,{type:i.showSelector?"top":"bottom",size:"14",color:"#999"},null,8,["type"])]),!0)]))]),i.showSelector?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-select--mask",onClick:n[2]||(n[2]=(...e)=>s.toggleSelector&&s.toggleSelector(...e))})):e.createCommentVNode("",!0),i.showSelector?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-select__selector",style:e.normalizeStyle(s.getOffsetByPlacement)},[e.createElementVNode("view",{class:e.normalizeClass("bottom"==a.placement?"uni-popper__arrow_bottom":"uni-popper__arrow_top")},null,2),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"uni-select__selector-scroll"},[0===i.mixinDatacomResData.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-select__selector-empty"},[e.createElementVNode("text",null,e.toDisplayString(a.emptyTips),1)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(i.mixinDatacomResData,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-select__selector-item",key:n,onClick:e=>s.change(t)},[e.createElementVNode("text",{class:e.normalizeClass({"uni-select__selector__disabled":t.disable})},e.toDisplayString(s.formatItemName(t)),3)],8,["onClick"])))),128))])],4)):e.createCommentVNode("",!0)],2)],2)])}],["__scopeId","data-v-782c233a"]]),ac="/static/down.png",oc="/static/up.png",ic=M({__name:"index",props:{filteredList:{type:Array,default:()=>[]}},emits:["status"],setup(t,{emit:n}){const a=n;return(n,o)=>{const i=f(e.resolveDynamicComponent("uni-data-select"),nc),s=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"sort-container df fdr jcsa aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.filteredList,((t,o)=>(e.openBlock(),e.createElementBlock("view",{class:"sort-item",key:o,onClick:e=>a("status",t)},[t.list?(e.openBlock(),e.createBlock(i,{key:0,localdata:t.list,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,clear:!1},{icon:e.withCtx((({showPicker:t})=>[e.createElementVNode("image",{class:"ud",src:t?e.unref(oc):e.unref(ac)},null,8,["src"])])),_:2},1032,["localdata","modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"df aic"},[e.createElementVNode("view",{class:"label"},e.toDisplayString(t.label),1),e.createElementVNode("view",{class:"up-down df fdc jcsa aic"},[t.isUp?(e.openBlock(),e.createElementBlock("image",{key:0,class:"ud mb5",src:e.unref(oc)},null,8,["src"])):e.createCommentVNode("",!0),t.isDown?(e.openBlock(),e.createElementBlock("image",{key:1,class:"ud",src:e.unref(ac)},null,8,["src"])):e.createCommentVNode("",!0)])])),t.slot?(e.openBlock(),e.createElementBlock("view",{key:2,class:"up-down"},[e.renderSlot(n.$slots,t.slot,{},(()=>[e.createVNode(s,{type:"bars",size:"16"})]),!0)])):e.createCommentVNode("",!0)],8,["onClick"])))),128))])}}},[["__scopeId","data-v-62b0f3d1"]]),sc=M({__name:"index",props:{scrollList:{type:Array,default:()=>[]}},emits:["clickTips"],setup(t,{expose:n,emit:a}){const o=t,i=e.getCurrentInstance(),s=e.ref(""),r=e.ref(6905),c=e.ref(0),l=e.ref(!1),u=e.ref([]),d=e.ref([]),p=a;function m({detail:e}){l.value||h();const{scrollTop:t}=e;let n=u.value.filter((e=>e.top<=t+1)).reverse();n.length>0&&(r.value=n[0].id)}function h(){let e=10;u.value.forEach((t=>{uni.createSelectorQuery().in(i).select(`#cate-${t.id}`).fields({size:!0},(n=>{t.top=e,e+=n.height,t.bottom=e})).exec()})),l.value=!0}return n({resetTips:()=>{d.value=[]}}),e.watch((()=>o.scrollList),(t=>{u.value=t,e.nextTick((()=>{t&&t.length>0&&h()}))}),{immediate:!0,deep:!0}),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"zh-wrapper"},[e.createElementVNode("scroll-view",{class:"menus","scroll-into-view":s.value,"scroll-with-animation":"","scroll-y":""},[e.createElementVNode("view",{class:"wrapper"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["menu",{current:t.id==r.value}]),id:`menu-${t.id}`,key:n,onClick:n=>{return a=t.id,l.value||h(),r.value=a,void e.nextTick((()=>{c.value=u.value.find((e=>e.id==a)).top}));var a}},[e.createElementVNode("text",null,e.toDisplayString(t.name),1)],10,["id","onClick"])))),128))])],8,["scroll-into-view"]),e.createElementVNode("scroll-view",{class:"goods","scroll-with-animation":"","scroll-y":"","scroll-top":c.value,onScroll:m},[e.createElementVNode("view",{class:"wrapper"},[e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,((n,a)=>(e.openBlock(),e.createElementBlock("view",{class:"category",key:a,id:`cate-${n.id}`},[e.renderSlot(t.$slots,"custom",{data:n},(()=>[e.createElementVNode("view",{class:"title"},[e.createElementVNode("text",null,e.toDisplayString(n.name),1)]),e.createElementVNode("view",{class:"items"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.goods_list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"good",key:n},[e.createElementVNode("view",{class:"right"},[e.createElementVNode("view",{class:"tips"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tips,((t,n)=>{return e.openBlock(),e.createElementBlock("text",{onClick:e=>(e=>{let t=d.value.indexOf(e);t>-1?d.value.splice(t,1):d.value.push(e),p("clickTips",d)})(t),class:e.normalizeClass(["tips_item",{tips_current:(a=t,d.value.indexOf(a)>-1)}]),key:n},e.toDisplayString(t),11,["onClick"]);var a})),128))])])])))),128))])]),!0)],8,["id"])))),128))])])],40,["scroll-top"])]))}},[["__scopeId","data-v-6d5a9e90"]]),rc=M({__name:"index",setup(t,{expose:n}){const a=e.ref(null),o=e.ref(null),i=e.ref([{id:6905,goods_list:[{id:65825,content:"享早餐指定饮品半价",name:"晨间套餐",tips:["1","2","3"]}],name:"早晨的享受"},{id:6906,goods_list:[{id:65826,content:"购买牛角包,享咖啡买一送一",name:"午后小食",tips:["1","2","3"]},{id:65827,content:"购买鸡蛋饼,享茶饮半价",name:"中午套餐",tips:["1","2","3"]}],name:"午间时光"}]),s=e=>{g("log","at pages/shop/search/components/jy-screening/index.vue:54",e),uni.showToast({title:`点击了 ${e.name}`,icon:"none"})},r=()=>{o.value.resetTips()},c=()=>{a.value.close()};return n({close:c,open:()=>{a.value.open()}}),(t,n)=>(e.openBlock(),e.createBlock(e.unref(ja),{ref_key:"popup",ref:a,type:"bottom",title:"筛选"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"content"},[i.value.length>0?(e.openBlock(),e.createBlock(e.unref(sc),{key:0,ref_key:"jy_linkage",ref:o,class:"jy-linkage",scrollList:i.value,onClickTips:s},null,8,["scrollList"])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"jy-bottom-btn-ghost"}),e.createElementVNode("view",{class:"btn-group"},[e.createElementVNode("view",{class:"reset",onClick:r},"重置"),e.createElementVNode("view",{class:"determine",onClick:c},"确定")])])])),_:1},512))}},[["__scopeId","data-v-18f6f429"]]),cc=M({__name:"index",emits:["search"],setup(t,{emit:n}){const a=e.ref([]),o=e.ref([]),i=()=>{uni.removeStorageSync("history"),a.value=[]},s=n,r=e=>{s("search",e)},c=async()=>{try{const{data:e,total:t}=await pa.popularSearch();o.value=e}catch(e){g("log","at pages/shop/search/components/jy-history/index.vue:54",e)}};return a.value=uni.getStorageSync("history")||[],c(),(t,n)=>{const s=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"search-container"},[e.createElementVNode("view",{class:"title"},[e.createElementVNode("text",null,"历史记录"),e.createElementVNode("view",{onClick:i},[e.createVNode(s,{class:"icon",type:"trash",size:"18"})])]),e.createElementVNode("view",{class:"item-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createElementBlock("text",{onClick:e=>r(t),class:"item",key:n},e.toDisplayString(t),9,["onClick"])))),128))]),e.createElementVNode("view",{class:"title"},[e.createElementVNode("text",null,"搜索发现"),e.createElementVNode("view",{onClick:c},[e.createVNode(s,{class:"icon",type:"reload",size:"18"}),e.createTextVNode(" 换一批 ")])]),e.createElementVNode("view",{class:"item-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((t,n)=>(e.openBlock(),e.createElementBlock("text",{onClick:e=>r(t),class:"item",key:n},e.toDisplayString(t),9,["onClick"])))),128))])])}}},[["__scopeId","data-v-04ecd654"]]),lc=M({__name:"index",setup(t){const n=e.ref(null),a=e.ref(null),o=e.ref(!0),i=e.ref(null),s=e.ref({}),r=e.ref(null),c=e.ref([{label:"综合",value:1,isDown:!0,list:[{value:1,text:"综合排序"},{value:2,text:"价格排序"}],slot:null},{label:"销量",value:2,slot:null},{label:"价格",value:3,isUp:!0,isDown:!0,slot:null},{label:"筛选",value:4,slot:"screening",fun:"openPopup"}]),l={openPopup:()=>{r.value.open()}},u=e=>{s.value=e,s.value.currentId=e.label,e.fun&&l[e.fun]()},d=e=>{i.value.updateSearch(e)},p=e=>{if(!e)return void(o.value=!0);o.value=!1,n.value.updateAltitude();let t=uni.getStorageSync("history")||[];t.push(e),t.length>10&&t.shift(),uni.setStorageSync("history",t)};return S((()=>{o.value?uni.stopPullDownRefresh():a.value.getData(!1,"onReachBottom")})),T((()=>{o.value?uni.stopPullDownRefresh():a.value.getData(!1,"onPullDownRefresh")})),(t,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(Fn),{ref_key:"jy_head",ref:n,background:"jb"},{center:e.withCtx((()=>[e.createVNode(e.unref(Hn),{ref_key:"jy_search",ref:i,disabled:!1,onSearch:p},null,512)])),bottom:e.withCtx((()=>[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(ic),{key:0,onStatus:u,filteredList:c.value},null,8,["filteredList"])),o.value?(e.openBlock(),e.createBlock(e.unref(cc),{key:1,class:"history-list",onSearch:d})):e.createCommentVNode("",!0)])),_:1},512),o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(ga),{key:0,ref_key:"jy_content",ref:a},null,512)),e.createVNode(e.unref(rc),{ref_key:"jy_screening",ref:r},null,512)],64))}},[["__scopeId","data-v-6176ae73"]]),uc="/static/news.png",dc="/static/home.png",pc="/static/individual.png",mc="/static/order.png",hc="/static/linkage.png",gc="/static/download.png",fc="/static/wx.png",vc="/static/qq.png",_c=M({__name:"index",setup(t){const n=e.ref(null),a=e.ref([]),o={more:[{icon:uc,title:"信息"},{icon:dc,title:"回到首页"},{icon:pc,title:"个人中心"},{icon:mc,title:"我的订单"}],share:[{icon:hc,title:"复制链接"},{icon:gc,title:"保存图片"},{icon:fc,key:"weixin",title:"微信"},{icon:vc,key:"qq",title:"QQ"}]},i=e=>{a.value=o[e],n.value.open()};return(t,o)=>{const s=f(e.resolveDynamicComponent("uni-popup"),Rn);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"head df jcsb aic pa",style:e.normalizeStyle({width:e.unref(Un)(),top:e.unref(xn)()})},[e.createElementVNode("image",{onClick:o[0]||(o[0]=t=>e.unref(Gn)("/pages/shop/shop")),class:"back",src:e.unref("/static/back.png")},null,8,["src"]),e.createElementVNode("view",{class:"df"},[e.createElementVNode("image",{onClick:o[1]||(o[1]=e=>i("share")),class:"share",src:e.unref("/static/share1.png")},null,8,["src"]),e.createElementVNode("image",{onClick:o[2]||(o[2]=e=>i("more")),class:"more",src:e.unref("/static/more.png")},null,8,["src"])])],4),e.createVNode(s,{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",key:n,onClick:e=>function(e){["weixin","qq"].includes(e.key)&&uni.getProvider({service:"share",success:t=>{store.state.shareInfo;let n={provider:e.key,type:2,imageUrl:"",title:"来自",summary:"分享给您",href:""};uni.share({...n,complete:e=>{g("log","at pages/shop/commodity/components/jy-commodity-head/index.vue:120","uni share",e,n)}})}})}(t)},[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[3]||(o[3]=e=>n.value.close()),style:e.normalizeStyle({bottom:e.unref(xn)()})},"取消",4)])])),_:1},512)],64)}}},[["__scopeId","data-v-fee36672"]]),yc=M({__name:"index",props:{list:{type:Array,default:()=>[]}},setup(t){const n=t,a=e.ref(!0),o=e.ref(3e3),i=e.ref(500),s=e.ref(1),r=e.ref(n.list.length);return(n,c)=>t.list.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"content pr"},[e.createElementVNode("swiper",{class:"swiper","indicator-color":"#ffffff","indicator-active-color":"#ff0000",autoplay:a.value,interval:o.value,duration:i.value,onChange:c[0]||(c[0]=e=>s.value=e.detail.current+1)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,n)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:n},[e.createElementVNode("image",{src:t},null,8,["src"])])))),128))],40,["autoplay","interval","duration"]),e.createElementVNode("text",{class:"text pa cfff fwn"},e.toDisplayString(s.value)+"/"+e.toDisplayString(r.value),1)])):e.createCommentVNode("",!0)}},[["__scopeId","data-v-0d52c89d"]]),Cc=M({__name:"index",props:{title:{type:[String,Array]},titleStyle:{type:Object,default:{}},isShowIcon:{type:Boolean,default:!1},icon:{type:String,default:"right"},isClick:{type:Boolean,default:!0}},emits:["click"],setup(t,{emit:n}){const a=n,o=t,i=()=>{o.isClick&&a("click")};return(n,a)=>{const o=f(e.resolveDynamicComponent("uni-tag"),Ea),s=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"df fdr jcsb aic",onClick:i},["string"==typeof t.title?(e.openBlock(),e.createElementBlock("text",{key:0,style:e.normalizeStyle(t.titleStyle)},e.toDisplayString(t.title),5)):(e.openBlock(),e.createElementBlock("view",{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.title,((t,n)=>(e.openBlock(),e.createBlock(o,{class:"uni-tag",inverted:!0,text:t.text,type:"warning",key:n},null,8,["text"])))),128))])),t.icon&&t.isShowIcon?(e.openBlock(),e.createBlock(s,{key:2,type:t.icon,size:"18",class:"icon"},null,8,["type"])):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-50e1d55c"]]),Ec=M({__name:"index",emits:["close"],setup(t,{expose:n,emit:a}){const o=e.ref(null),i=()=>{g("log","at pages/shop/commodity/components/jy-comment-popup/index.vue:65","滚动到底部")},s=e.ref([{icon:"/static/endorse.png",text:"点赞",count:0},{icon:"/static/comment.png",text:"回复",count:0}]),r=e.ref([{text:"全部",icon:null,value:1},{text:"好评",icon:"/static/picture.png",value:2},{text:"中评",icon:"/static/time.png",value:3}]),c=e.ref(1);n({open:()=>{o.value.open()}});const l=e.ref([{id:0,userId:1,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"]},{id:0,userId:1,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"]}]);return(t,n)=>(e.openBlock(),e.createBlock(e.unref(ja),{ref_key:"popup",ref:o,type:"bottom",title:"评论"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"sift-list df mtb20 pl20"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["sift-list-item df aic",c.value==t.value&&"first"]),key:n,value:t},[t.icon?(e.openBlock(),e.createElementBlock("image",{key:0,class:"sift-list-img",src:t.icon},null,8,["src"])):e.createCommentVNode("",!0),e.createElementVNode("text",{class:"ml10"},e.toDisplayString(t.text),1)],10,["value"])))),128))]),e.createElementVNode("view",{class:"jy-line"}),e.createElementVNode("scroll-view",{class:"comment-scroll",onScrolltolower:i,"scroll-y":"","scroll-with-animation":"","show-scrollbar":!1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"commnent-content",key:n},[e.createElementVNode("view",{class:"comment-item"},[e.createElementVNode("view",{class:"f28 df fdc"},[e.createElementVNode("view",{class:"df aic jcsb"},[e.createElementVNode("view",{class:"portrait df aic fcc mb20"},[e.createElementVNode("image",{class:"mr20",src:t.portrait,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"name c333"},e.toDisplayString(t.userName),1)]),e.createElementVNode("image",{class:"tp",src:e.unref("/static/three-points.png")},null,8,["src"])]),e.createElementVNode("view",{class:"ml40 bfff content"},[e.createElementVNode("view",{class:"df aic jcsb mb10"},[e.createElementVNode("view",{class:"c999"},[e.createElementVNode("span",null,"款式:"),e.createTextVNode(e.toDisplayString(t.ks),1)]),e.createElementVNode("view",{class:"c999"},e.toDisplayString(t.time),1)]),e.createElementVNode("view",{class:"content-text",innerHTML:t.content},null,8,["innerHTML"]),t.imageList&&t.imageList.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"image-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.imageList,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"image-item",onClick:e=>(e=>{uni.previewImage({urls:props.detail.imageList,current:e})})(n),key:n},[e.createElementVNode("image",{src:t,mode:"aspectFill"},null,8,["src"])],8,["onClick"])))),128))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"ec-list df aic mt20 fr"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"ec-item df aic mr20",key:n},[e.createElementVNode("image",{class:"tp",src:t.icon},null,8,["src"]),e.createElementVNode("view",{class:"ml10"},e.toDisplayString(t.text),1)])))),128))])])])])])))),128))],32)])),_:1},512))}},[["__scopeId","data-v-4489d6b6"]]),kc=M({__name:"index",props:{commentList:{type:Array,default:()=>[]}},setup(t){const n=e.ref("商品评价(123)"),a=e.ref("/pages/index/index"),o={color:"#333333","font-size":"30rpx","font-weight":600},i=e.ref(null);e.onMounted((()=>{}));const s=()=>{i.value.open()};return(r,c)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-content mt40 bfff"},[e.createVNode(e.unref(Cc),{onClick:s,titleStyle:o,title:n.value,icon:"right",path:a.value,isShowIcon:""},null,8,["title","path"]),e.createElementVNode("view",{class:"jy-line"}),e.createElementVNode("view",{class:"jy-comment-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentList,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-comment-item mb40",key:n},[e.createElementVNode("view",{class:"jy-comment-item-header"},[e.createElementVNode("image",{class:"jy-comment-item-header-img",src:t.userPortrait,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"jy-comment-item-header-info"},e.toDisplayString(t.userNickname),1)]),e.createElementVNode("view",{class:"content"},e.toDisplayString(t.reviewText),1)])))),128))]),e.createVNode(e.unref(Ec),{ref_key:"commentPopup",ref:i},null,512)]))}},[["__scopeId","data-v-58862778"]]),Ic=M({__name:"index",props:{commodity:{type:Object,default:()=>{}}},setup(t){const n=[{text:"1元无门槛优惠卷"},{text:"你们定义输入标签"}],a={color:"#666666","font-size":"24rpx"};return e.ref([{text:"好评率超98%同款"},{text:"同款热销"}]),(o,i)=>{const s=f(e.resolveDynamicComponent("uni-tag"),Ea);return e.openBlock(),e.createElementBlock("view",{class:"bfff"},[e.createElementVNode("view",{class:"price-box df aic jcsb py10"},[e.createElementVNode("view",{class:"price"},[e.createTextVNode("¥"),e.createElementVNode("text",null,e.toDisplayString(t.commodity.price),1)]),e.createElementVNode("view",{class:"sold"},"已售"+e.toDisplayString(t.commodity.sales?t.commodity.sales+"+":0),1)]),e.createVNode(e.unref(Cc),{title:n,icon:"right",path:"/page/shop/shop"}),e.createElementVNode("view",{class:"name t2hd"},e.toDisplayString(t.commodity.productName),1),t.commodity.coupons.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"df fdr jcfs aic mtb20"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commodity.coupons,((t,n)=>(e.openBlock(),e.createBlock(s,{class:"uni-tag",inverted:!0,text:t.couponName,type:"warning",size:"small",key:n},null,8,["text"])))),128))])):e.createCommentVNode("",!0),e.createVNode(e.unref(Cc),{titleStyle:a,title:"全场包邮 · 发货时间 · 全场包邮",icon:"right",path:"/page/shop/shop"})])}}},[["__scopeId","data-v-a6823390"]]),Sc={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;oo?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 Tc=M(Sc,[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-icons"),w);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"]]),Mc=M({__name:"index",props:{cardMod:{type:String,default:"commodity"},storeInformation:{type:Object,default:()=>({})}},setup(t){const{userinfo:n}=O().state,a=t,o=async()=>{try{200==(await la.add({userId:n.userId,storeId:a.storeInformation.storeId})).code&&(showToastAndRedirect("取消成功","none"),this.listProperty.params.pageNum=1,this.init())}catch(e){g("log","at pages/shop/commodity/components/jy-store/index.vue:74","===================================="),g("log","at pages/shop/commodity/components/jy-store/index.vue:75",e),g("log","at pages/shop/commodity/components/jy-store/index.vue:76","====================================")}},i=()=>{};return(n,a)=>{const s=f(e.resolveDynamicComponent("uni-rate"),Tc),r=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"jy-shop-card df aic jcsb"},[e.createElementVNode("view",{class:"jy-shop-card-header",onClick:i},[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(s,{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关注")])])])]),"commodity"==t.cardMod?(e.openBlock(),e.createElementBlock("view",{key:0,onClick:o,class:"jy-shop-card-header-follow"},[e.createVNode(r,{class:"mr10",color:"#fff",type:"plusempty",size:"13"}),e.createElementVNode("text",null,"关注")])):e.createCommentVNode("",!0),"store"==t.cardMod?(e.openBlock(),e.createElementBlock("view",{key:1,class:"jy-shop-card-header-follow-g"},[e.createElementVNode("view",{class:"btn",onClick:o},[e.createVNode(r,{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:e.unref("/static/customer-service1.png")},null,8,["src"]),e.createElementVNode("text",null,"客服")])])):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-6fc236e7"]]),Dc={__name:"index",setup(t){const n=e.ref("\n

123

\n");return e.onMounted((()=>{})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"bfff"},[e.createVNode(e.unref(Cc),{titleStyle:{color:"#666666","font-size":"30rpx","font-weight":600},title:"宝贝详情",isPath:"",isShowIcon:!1}),e.createElementVNode("view",{class:"content",innerHTML:n.value},null,8,["innerHTML"])]))}},Nc=M({__name:"index",setup(t){const n=e.ref({});return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"handpicked df aic jcc mtb40"},[e.createElementVNode("image",{src:e.unref("/static/handpicked-L.png")},null,8,["src"]),e.createElementVNode("text",{class:"f30 mlr40",style:{color:"#FF9B27"}},"精选推荐"),e.createElementVNode("image",{src:e.unref("/static/handpicked-R.png")},null,8,["src"])]),e.createVNode(e.unref(ga),{conditions:n.value,isLoadMore:!1},null,8,["conditions"])],64))}},[["__scopeId","data-v-78261332"]]);const wc=M({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,nthis.max*t&&(n=this.max*t)}if("plus"===e){if(n+=a,n>this.max*t)return;nthis.max?t=this.max:ts._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"]]),bc=M({__name:"index",setup(t,{expose:n}){const a=e.ref(null);return n({open:()=>{a.value.open()}}),(t,n)=>{const o=f(e.resolveDynamicComponent("uni-number-box"),wc),i=f(e.resolveDynamicComponent("uni-tag"),Ea),s=f(e.resolveDynamicComponent("uni-easyinput"),Da);return e.openBlock(),e.createBlock(e.unref(ja),{type:"bottom",ref_key:"popup",ref:a,title:"立即支付",showSave:"",onSavePost:n[0]||(n[0]=e=>{return t="/pages/shop/continue-pay/index",void uni.navigateTo({url:t});var t})},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"bj"},[e.createVNode(e.unref(Ta),{class:"mt40"}),e.createElementVNode("view",{class:"jy-card-commodity-content df mtb40"},[e.createElementVNode("image",{src:"https://cdn.jsdelivr.net/gh/Jiuyi-team/jiuyi-uniapp-demo/static/images/commodity.png",mode:"widthFix"}),e.createElementVNode("view",{class:"content-info"},[e.createElementVNode("view",{class:"content-info-price"},"¥ 999.00"),e.createElementVNode("view",{class:"content-info-num"},"查看明细"),e.createElementVNode("view",{class:"w200"},[e.createVNode(o,{value:1,step:1})])])]),e.createElementVNode("view",{class:"content-spec"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,n)=>e.createElementVNode("view",{class:"mtb20"},[e.createElementVNode("view",{class:"content-spec-title"},"颜色"),e.createElementVNode("view",{class:"content-spec-list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,n)=>e.createVNode(i,{class:"mlr10 mtb20",inverted:!0,text:"item123123",type:"default"}))),64))])]))),64))]),e.createElementVNode("view",{class:"content-remark mtb40"},[e.createElementVNode("view",{class:"content-remark-title"},"订单备注"),e.createElementVNode("view",{class:"content-remark-input"},[e.createVNode(s,{inputBorder:!1,type:"textarea",placeholder:"选填,如填写,我们会在订单备注中提示您"})])])])])),_:1},512)}}},[["__scopeId","data-v-3aa5ac2b"]]),Lc=M({__name:"index",props:{commodityInformation:{type:Object,default:()=>({})},isShowFavorites:{type:Boolean,default:!1},isShowCustomerService:{type:Boolean,default:!1}},setup(t){const{checkLink:n}=e.inject("util"),{userinfo:a}=O().state,o=t,i=e.ref(Un()),s=e.ref(xn()),r=e.ref(null),c=e.ref([{name:"store",icon:"/static/store.png",text:"店铺"},{name:"customerService",icon:"/static/customer-service.png",text:"客服"},{name:"heibianStar",icon:"/static/heibian-star.png",text:"收藏"}]),l={store(){n("pages/shop/store/index")},customerService(){n("pages/news/question-answer/index")},async heibianStar(){try{if(!a)return showToastAndRedirect("请先登录","none",(()=>{uni.heibianStar,n("pages/login/loginPhone")}));g("log","at pages/shop/commodity/components/jy-commodity-foot/index.vue:91","====================================",o),g("log","at pages/shop/commodity/components/jy-commodity-foot/index.vue:92","商品收藏成功",{storeId:o.commodityInformation.productId,userId:a.userId}),g("log","at pages/shop/commodity/components/jy-commodity-foot/index.vue:96","====================================");200===(await ua.add({productId:o.commodityInformation.productId,userId:a.userId})).code&&showToastAndRedirect("收藏成功","success"),emit("heibianStar")}catch(e){}}},u=()=>{r.value.open()};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-shop-service bfff df aic jcsa ptb20",style:e.normalizeStyle({bottom:s.value,width:i.value})},[e.createElementVNode("view",{class:"jy-service-item df fdr aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{onClick:e=>l[t.name](),class:"jy-service-icon df jcc fdc aic mlr10",key:n},[e.createElementVNode("image",{src:t.icon,mode:"widthFix"},null,8,["src"]),e.createElementVNode("view",{class:"f24 c999 mt10"},e.toDisplayString(t.text),1)],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"jy-service-btn df fdc jcc aic"},[e.createElementVNode("view",{class:"jy-price cfff f26"},[e.createTextVNode("¥ "),e.createElementVNode("span",{class:"f32"},e.toDisplayString(9999))]),e.createElementVNode("view",{class:"jy-vip f24",style:{color:"#FFEBBD"},onClick:u},[e.createElementVNode("text",null,"会员支持先用后付"),e.createElementVNode("text",null,"去购买")])]),e.createVNode(e.unref(bc),{ref_key:"payPopup",ref:r},null,512)],4))}},[["__scopeId","data-v-32b2f451"]]),Pc=M({__name:"index",setup(t){const{userinfo:n}=O().state,a=e.ref(null),o=async()=>{ca.details({...s,userId:n.userId}).then((t=>{if(200==t.code)return a.value=t.data,g("log","at pages/shop/commodity/index.vue:73","dataList.value",a.value),void e.nextTick().then((()=>{i()}));Te.alert({content:t.msg,showCancel:!1})}))},i=async()=>{g("log","at pages/shop/commodity/index.vue:87","Add_browsing_history",{productId:s.productId,userId:n.userId,isDeleted:0});try{const e=await ma.add({productId:s.productId,userId:n.userId,isDeleted:0});g("log","at pages/shop/commodity/index.vue:98","===添加浏览记录======================"),g("log","at pages/shop/commodity/index.vue:99",e),g("log","at pages/shop/commodity/index.vue:100","====================================")}catch(e){}},s=e.reactive({productId:""});return C((e=>{e.productId&&(s.productId=e.productId),o()})),(t,n)=>a.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"content pr"},[e.createVNode(e.unref(_c)),e.createVNode(e.unref(yc),{list:a.value.images},null,8,["list"]),e.createVNode(e.unref(Ic),{class:"p25",commodity:a.value},null,8,["commodity"]),e.createVNode(e.unref(kc),{class:"p25",commentList:a.value.reviews},null,8,["commentList"]),e.createVNode(e.unref(Mc),{class:"p25 mt40 bfff",storeInformation:a.value},null,8,["storeInformation"]),e.createVNode(e.unref(Dc),{class:"p25 mt40"}),e.createVNode(e.unref(Nc)),e.createVNode(e.unref(Lc),{commodityInformation:a.value,onHeibianStar:o,style:e.normalizeStyle({bottom:e.unref(xn)()})},null,8,["commodityInformation","style"])])):e.createCommentVNode("",!0)}},[["__scopeId","data-v-952d6037"]]),Ac={name:"uniDataChecklist",mixins:[Gr.mixinDatacom||{}],emits:["input","update:modelValue","change"],props:{mode:{type:String,default:"default"},multiple:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>""},modelValue:{type:[Array,String,Number],default:()=>""},localdata:{type:Array,default:()=>[]},min:{type:[Number,String],default:""},max:{type:[Number,String],default:""},wrap:{type:Boolean,default:!1},icon:{type:String,default:"left"},selectedColor:{type:String,default:""},selectedTextColor:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},disabled:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},watch:{localdata:{handler(e){this.range=e,this.dataList=this.getDataList(this.getSelectedValue(e))},deep:!0},mixinDatacomResData(e){this.range=e,this.dataList=this.getDataList(this.getSelectedValue(e))},value(e){this.dataList=this.getDataList(e)},modelValue(e){this.dataList=this.getDataList(e)}},data:()=>({dataList:[],range:[],contentText:{contentdown:"查看更多",contentrefresh:"加载中",contentnomore:"没有更多"},isLocal:!0,styles:{selectedColor:"#2979ff",selectedTextColor:"#666"},isTop:0}),computed:{dataValue(){return""===this.value?this.modelValue:(this.modelValue,this.value)}},created(){this.localdata&&0!==this.localdata.length?(this.isLocal=!0,this.range=this.localdata,this.dataList=this.getDataList(this.getSelectedValue(this.range))):this.collection&&(this.isLocal=!1,this.loadData())},methods:{loadData(){this.mixinDatacomGet().then((e=>{this.mixinDatacomResData=e.result.data,0===this.mixinDatacomResData.length?(this.isLocal=!1,this.mixinDatacomErrorMessage=this.emptyText):this.isLocal=!0})).catch((e=>{this.mixinDatacomErrorMessage=e.message}))},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},change(e){const t=e.detail.value;let n={value:[],data:[]};if(this.multiple)this.range.forEach((e=>{t.includes(e[this.map.value]+"")&&(n.value.push(e[this.map.value]),n.data.push(e))}));else{const e=this.range.find((e=>e[this.map.value]+""===t));e&&(n={value:e[this.map.value],data:e})}this.$emit("input",n.value),this.$emit("update:modelValue",n.value),this.$emit("change",{detail:n}),this.multiple?this.dataList=this.getDataList(n.value,!0):this.dataList=this.getDataList(n.value)},getDataList(e){let t=JSON.parse(JSON.stringify(this.range)),n=[];return this.multiple&&(Array.isArray(e)||(e=[])),t.forEach(((t,a)=>{if(t.disabled=t.disable||t.disabled||!1,this.multiple)if(e.length>0){let n=e.find((e=>e===t[this.map.value]));t.selected=void 0!==n}else t.selected=!1;else t.selected=e===t[this.map.value];n.push(t)})),this.setRange(n)},setRange(e){let t=e.filter((e=>e.selected)),n=Number(this.min)||0,a=Number(this.max)||"";return e.forEach(((o,i)=>{if(this.multiple){if(t.length<=n){void 0!==t.find((e=>e[this.map.value]===o[this.map.value]))&&(o.disabled=!0)}if(t.length>=a&&""!==a){void 0===t.find((e=>e[this.map.value]===o[this.map.value]))&&(o.disabled=!0)}}this.setStyles(o,i),e[i]=o})),e},setStyles(e,t){e.styleBackgroud=this.setStyleBackgroud(e),e.styleIcon=this.setStyleIcon(e),e.styleIconText=this.setStyleIconText(e),e.styleRightIcon=this.setStyleRightIcon(e)},getSelectedValue(e){if(!this.multiple)return this.dataValue;let t=[];return e.forEach((e=>{e.selected&&t.push(e[this.map.value])})),this.dataValue.length>0?this.dataValue:t},setStyleBackgroud(e){let t={},n=this.selectedColor?this.selectedColor:"#2979ff";this.selectedColor&&("list"!==this.mode&&(t["border-color"]=e.selected?n:"#DCDFE6"),"tag"===this.mode&&(t["background-color"]=e.selected?n:"#f5f5f5"));let a="";for(let o in t)a+=`${o}:${t[o]};`;return a},setStyleIcon(e){let t={},n="";if(this.selectedColor){let n=this.selectedColor?this.selectedColor:"#2979ff";t["background-color"]=e.selected?n:"#fff",t["border-color"]=e.selected?n:"#DCDFE6",!e.selected&&e.disabled&&(t["background-color"]="#F2F6FC",t["border-color"]=e.selected?n:"#DCDFE6")}for(let a in t)n+=`${a}:${t[a]};`;return n},setStyleIconText(e){let t={},n="";if(this.selectedColor){let n=this.selectedColor?this.selectedColor:"#2979ff";"tag"===this.mode?t.color=e.selected?this.selectedTextColor?this.selectedTextColor:"#fff":"#666":t.color=e.selected?this.selectedTextColor?this.selectedTextColor:n:"#666",!e.selected&&e.disabled&&(t.color="#999")}for(let a in t)n+=`${a}:${t[a]};`;return n},setStyleRightIcon(e){let t={},n="";"list"===this.mode&&(t["border-color"]=e.selected?this.styles.selectedColor:"#DCDFE6");for(let a in t)n+=`${a}:${t[a]};`;return n}}};const Rc=M(Ac,[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-load-more"),sa);return e.openBlock(),e.createElementBlock("view",{class:"uni-data-checklist",style:e.normalizeStyle({"margin-top":i.isTop+"px"})},[i.isLocal?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.multiple?(e.openBlock(),e.createElementBlock("checkbox-group",{key:0,class:e.normalizeClass(["checklist-group",{"is-list":"list"===a.mode||a.wrap}]),onChange:n[0]||(n[0]=(...e)=>s.change&&s.change(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.dataList,((n,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["checklist-box",["is--"+a.mode,n.selected?"is-checked":"",a.disabled||n.disabled?"is-disable":"",0!==o&&"list"===a.mode?"is-list-border":""]]),style:e.normalizeStyle(n.styleBackgroud),key:o},[e.createElementVNode("checkbox",{class:"hidden",hidden:"",disabled:a.disabled||!!n.disabled,value:n[a.map.value]+"",checked:n.selected},null,8,["disabled","value","checked"]),"tag"!==a.mode&&"list"!==a.mode||"list"===a.mode&&"left"===a.icon?(e.openBlock(),e.createElementBlock("view",{key:0,class:"checkbox__inner",style:e.normalizeStyle(n.styleIcon)},[e.createElementVNode("view",{class:"checkbox__inner-icon"})],4)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["checklist-content",{"list-content":"list"===a.mode&&"left"===a.icon}])},[e.renderSlot(t.$slots,"default",{data:n},(()=>[e.createElementVNode("text",{class:"checklist-text",style:e.normalizeStyle(n.styleIconText)},e.toDisplayString(n[a.map.text]),5)]),!0),"list"===a.mode&&"right"===a.icon?(e.openBlock(),e.createElementBlock("view",{key:0,class:"checkobx__list",style:e.normalizeStyle(n.styleBackgroud)},null,4)):e.createCommentVNode("",!0)],2)],6)))),128))],34)):(e.openBlock(),e.createElementBlock("radio-group",{key:1,class:e.normalizeClass(["checklist-group",{"is-list":"list"===a.mode,"is-wrap":a.wrap}]),onChange:n[1]||(n[1]=(...e)=>s.change&&s.change(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.dataList,((n,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["checklist-box",["is--"+a.mode,n.selected?"is-checked":"",a.disabled||n.disabled?"is-disable":"",0!==o&&"list"===a.mode?"is-list-border":""]]),style:e.normalizeStyle(n.styleBackgroud),key:o},[e.createElementVNode("radio",{class:"hidden",hidden:"",disabled:a.disabled||n.disabled,value:n[a.map.value]+"",checked:n.selected},null,8,["disabled","value","checked"]),"tag"!==a.mode&&"list"!==a.mode||"list"===a.mode&&"left"===a.icon?(e.openBlock(),e.createElementBlock("view",{key:0,class:"radio__inner",style:e.normalizeStyle(n.styleBackgroud)},[e.createElementVNode("view",{class:"radio__inner-icon",style:e.normalizeStyle(n.styleIcon)},null,4)],4)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["checklist-content",{"list-content":"list"===a.mode&&"left"===a.icon}])},[e.renderSlot(t.$slots,"default",{data:n},(()=>[e.createElementVNode("text",{class:"checklist-text",style:e.normalizeStyle(n.styleIconText)},e.toDisplayString(n[a.map.text]),5)]),!0),"list"===a.mode&&"right"===a.icon?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle(n.styleRightIcon),class:"checkobx__list"},null,4)):e.createCommentVNode("",!0)],2)],6)))),128))],34))],64)):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-data-loading"},[t.mixinDatacomErrorMessage?(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(t.mixinDatacomErrorMessage),1)):(e.openBlock(),e.createBlock(r,{key:0,status:"loading",iconType:"snow",iconSize:18,"content-text":i.contentText},null,8,["content-text"]))]))],4)}],["__scopeId","data-v-1b69af01"]]),Oc="/static/shop-alipay-payment.png",Bc=M({__name:"index",setup(t){const n=e.ref("1"),a=[{text:"微信支付",value:"1",icon:"/static/shop-weixin-pay.png"},{text:"支付宝支付",value:"2",icon:Oc},{text:"余额支付",value:"3",icon:"/static/shop-apply-pay.png"},{text:"余额支付",value:"4",icon:"/static/shop-bank-payment.png"}];return(t,o)=>{const i=f(e.resolveDynamicComponent("uni-icons"),w),s=f(e.resolveDynamicComponent("uni-section"),va),r=f(e.resolveDynamicComponent("uni-data-checkbox"),Rc),c=f(e.resolveDynamicComponent("uni-countdown"),Ca);return e.openBlock(),e.createElementBlock("view",{class:"jy-continue-pay-info"},[e.createVNode(e.unref(Ia),{class:"mt20"}),e.createVNode(e.unref(ka),{orderInfo:t.orderInfo,showType:1},null,8,["orderInfo"]),e.createVNode(s,{class:"line"},{right:e.withCtx((()=>[e.createElementVNode("view",{class:"df jcfe mt20"},[e.createElementVNode("button",{class:"jy-btn-primary df aic jcc"},[e.createVNode(i,{class:"mr20",color:"#0F9D13",type:"chat"}),e.createElementVNode("text",{class:"f24"},"联系商家")])])])),_:1}),e.createVNode(s,{class:"line"},{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}),e.createVNode(s,{class:"line"},{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}),e.createElementVNode("view",{class:"checklist mt20"},[e.createVNode(r,{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=e=>n.value=e),localdata:a},{default:e.withCtx((({data:t})=>[e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("image",{class:"wh60 mr20",src:t.icon,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("text",{class:"f24"},e.toDisplayString(t.text),1)])])),_:1},8,["modelValue"])]),e.createElementVNode("view",{class:"content-bottom",style:e.normalizeStyle({bottom:e.unref(xn)()})},[e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("text",{class:"c333 f28"},"应付:"),e.createElementVNode("text",{class:"price f20"},"¥"),e.createElementVNode("text",{class:"price"},"5.00")]),e.createElementVNode("button",{class:"content-bottom-price",onClick:o[1]||(o[1]=e=>t.goto("/pages/shop/continue-pay/index"))},[e.createElementVNode("text",{class:"cfff f24"},"继续付款"),e.createElementVNode("view",{class:"df cfff aic"},[e.createElementVNode("text",{class:"f24"},"剩余:"),e.createVNode(c,{color:"#fff","show-day":!1,hour:12,minute:12,second:12})])])],4)])}}},[["__scopeId","data-v-d3565434"]]),xc=M({__name:"index",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-continue-pay"},[e.createVNode(e.unref(Fn),{class:"bfff",title:"继续付款",isRight:!1}),e.createVNode(e.unref(Ta),{class:"bfff p25"}),e.createVNode(e.unref(Bc))]))},[["__scopeId","data-v-af79cd2f"]]),Uc=(e,t,n,a,o)=>{switch(e){case"weixin":uni.share({provider:"weixin",scene:"WXSceneSession",shareData:shareData,success:function(e){Te.showToastAndRedirect("分享成功","success")},fail:function(e){Te.showToastAndRedirect("分享失败","error")}});break;case"qq":((e,t,n)=>{uni.share({provider:"qq",scene:"QZoneScene",title:e,imageUrl:t,filePath:n,success:function(e){Te.showToastAndRedirect("分享成功","success")},fail:function(e){Te.showToastAndRedirect("分享失败","error")}})})(t,n,o)}},Vc=M({__name:"index",setup(t){const n=e.ref(null),a=e.ref([]),{checkLink:o,copyText:i}=e.inject("util"),s={more:[{name:"news",icon:uc,title:"信息"},{name:"home",icon:dc,title:"回到首页"},{name:"individual",icon:pc,title:"个人中心"},{name:"order",icon:mc,title:"我的订单"}],share:[{name:"linkage",icon:hc,title:"复制链接"},{name:"download",icon:gc,title:"保存图片"},{name:"wx",icon:fc,title:"微信"},{name:"qq",icon:vc,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","===================================="),Uc("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","===================================="),Uc("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"),Rn);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(Fn),{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(Yn)},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(xn)()})},"取消",4)])])),_:1},512)],64)}}},[["__scopeId","data-v-6288feb6"]]),Gc=M({__name:"index",setup(t){const n=e.ref({}),a=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}]),o=e=>{n.value=e,n.value.currentId=e.label,e.fun&&fun[e.fun]()};return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-store-detail"},[e.createVNode(e.unref(Vc)),e.createVNode(e.unref(Mc),{cardMod:"store"}),e.createElementVNode("view",{class:"bfff content"},[e.createVNode(e.unref(ic),{onStatus:o,filteredList:a.value},null,8,["filteredList"]),e.createVNode(e.unref(ga),{conditions:n.value},null,8,["conditions"])])]))}},[["__scopeId","data-v-2e14f66a"]]),Fc={data(){const{userinfo:e}=O().state;return{userId:e?{userId:e.userId}:{},listProperty:{params:{pageSize:10,pageNum:1,navigation:1},list:[],total:void 0,status:"more"}}},methods:{async getData(e,t,n=!1){if(uni.showLoading({title:"加载中"}),this.listProperty.total===this.listProperty.list.length)return uni.hideLoading(),uni.stopPullDownRefresh(),uni.showToast({title:"没有更多数据",icon:"none"});g("log","at components/public/apiMixins.js:42","=== params额外参数========================="),g("log","at components/public/apiMixins.js:43",{...this.listProperty.params,...t,...this.userId}),g("log","at components/public/apiMixins.js:48","=name===================="),g("log","at components/public/apiMixins.js:49",e);try{const a=await ha[e.api][e.fn]({...this.listProperty.params,...t,...this.userId});if(g("log","at components/public/apiMixins.js:56","=== async getData============="),g("log","at components/public/apiMixins.js:57",a),g("log","at components/public/apiMixins.js:58","===================================="),a.data){const{rows:e,total:t}=a;this.listProperty.list=n?e:this.listProperty.list.concat(e),this.listProperty.total=t,this.listProperty.status=this.listProperty.total===this.listProperty.list.length?"noMore":"more"}if(a.rows){const{data:e,total:t}=a;this.listProperty.list=e,this.listProperty.total=t}}catch(a){g("log","at components/public/apiMixins.js:71",a)}finally{uni.hideLoading(),uni.stopPullDownRefresh()}}}},Yc={components:{JyCommonHead:Fn,JyShopNavigation:Zn,JyOrderCard:Ka},mixins:[Fc],methods:{init(){this.getData({api:"shop",fn:"favorites"},{})},onReachBottomHandler(){this.listProperty.params.pageNum++,this.init()},onPullDownRefreshHandler(){this.listProperty.params.pageNum=1,this.getData({api:"shop",fn:"favorites"},{},!0)},checkboxChange(e){g("log","at pages/shop/order/index.vue:49","checkboxChange",e),checkNum=e.detail.value}},data:()=>({tabs:[{id:1,name:"全部"},{id:2,name:"待付款"},{id:3,name:"待发货"},{id:4,name:"待收货"},{id:5,name:"待评价"},{id:6,name:"售后/退款"}],params:{currentTab:0,search:""}}),onLoad(e){this.params.currentTab=e.currentTab/1}};const Hc=M(Yc,[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-easyinput"),Da),c=e.resolveComponent("JyCommonHead"),l=e.resolveComponent("JyShopNavigation");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(c,{isRight:""},{center:e.withCtx((()=>[e.createElementVNode("view",{class:"jy-search-box"},[e.createVNode(r,{prefixIcon:"search",modelValue:i.params.search,"onUpdate:modelValue":n[0]||(n[0]=e=>i.params.search=e),placeholder:"搜索内容"},null,8,["modelValue"])])])),_:1}),e.createVNode(l,{current:i.params.currentTab,list:i.tabs,onTabItemClick:t.itemClick,marright:"25px",activeWeight:"600",activeColor:"#333333",activeBarColor:"initial"},null,8,["current","list","onTabItemClick"]),e.createElementVNode("view",{class:"p16"})],64)}],["__scopeId","data-v-212d2a6b"]]),Zc=M({__name:"index",setup(t){const n={refund:e=>{uni.navigateTo({url:`/pages/shop/refund/index?type=${e.type}`})},refunds_returns:e=>{uni.navigateTo({url:`/pages/shop/refund/index?type=${e.type}`})}},a=e.ref([{title:"我要退款(无需退货)",subTitle:"我要退款(无需退货)",fn:"refund",type:1},{title:"已收到货,我要退货退款",subTitle:"已收到货,我要退货退款",fn:"refunds_returns",type:2}]);return(t,o)=>{const i=f(e.resolveDynamicComponent("uni-icons"),w),s=f(e.resolveDynamicComponent("uni-section"),va);return e.openBlock(),e.createElementBlock("view",{class:"jy-return-type"},[e.createVNode(e.unref(Sa)),e.createElementVNode("view",{class:"mtb20 mlr20 uni-section-for"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,a)=>(e.openBlock(),e.createBlock(s,{class:"br20 mb30 ptb30",key:a,title:t.title,subTitle:t.subTitle,onClick:e=>n[t.fn](t)},{decoration:e.withCtx((()=>[e.createElementVNode("image",{class:"shopSales",src:e.unref("/static/shop-sales.png"),mode:"aspectFill"},null,8,["src"])])),right:e.withCtx((()=>[e.createVNode(i,{type:"right"})])),_:2},1032,["title","subTitle","onClick"])))),128))])])}}},[["__scopeId","data-v-e5fa98a6"]]),qc=M({__name:"index",setup(t){const n=e.ref(null),a=e.ref(null),o=e.ref(!0),i=e.reactive({reason:"",priceNum:5.99,content:""}),s=()=>{g("log","at pages/shop/refund/index.vue:101","我是提交")},r=[{label:"缺货"},{label:"不想要了"},{label:"价格太贵"},{label:"其他"}],c=()=>{o.value=!o.value,null===i.priceNum&&(i.priceNum=5.99)};return(t,l)=>{const u=f(e.resolveDynamicComponent("uni-icons"),w),d=f(e.resolveDynamicComponent("uni-section"),va),p=f(e.resolveDynamicComponent("uni-easyinput"),Da),m=f(e.resolveDynamicComponent("uni-file-picker"),Kr),h=f(e.resolveDynamicComponent("uni-popup"),Rn);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"jy-return-refund"},[e.createVNode(e.unref(ka),{showType:1,class:"mb20"}),e.createVNode(d,null,{decoration:e.withCtx((()=>[e.createElementVNode("text",{class:"decoration"},"申请类型")])),content:e.withCtx((()=>[e.createElementVNode("text",{class:"content"},"我要退款(无需退货)")])),right:e.withCtx((()=>[e.createVNode(u,{type:"right"})])),_:1}),e.createVNode(d,{class:"mb20",onClick:l[0]||(l[0]=e=>a.value.open())},{decoration:e.withCtx((()=>[e.createElementVNode("text",{class:"decoration"},"申请原因")])),content:e.withCtx((()=>[e.createElementVNode("text",{class:e.normalizeClass(["content",!i.reason&&"noContent"])},e.toDisplayString(i.reason?i.reason:"点击选择申请原因"),3)])),right:e.withCtx((()=>[e.createVNode(u,{type:"right"})])),_:1}),e.createVNode(d,{class:"application_amount mb20"},{content:e.withCtx((()=>[e.createElementVNode("view",{class:"jy-return-type"},[e.createElementVNode("text",{class:"decoration"},"申请金额"),e.createElementVNode("view",{class:"df"},[e.createElementVNode("text",null,"¥"),o.value?(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(i.priceNum),1)):(e.openBlock(),e.createBlock(p,{key:0,modelValue:i.priceNum,"onUpdate:modelValue":l[1]||(l[1]=e=>i.priceNum=e),type:"number",disabled:o.value},null,8,["modelValue","disabled"]))])])])),right:e.withCtx((()=>[e.createVNode(u,{type:"compose",onClick:c},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(o.value?"修改金额":"确定修改"),1)])),_:1})])),_:1}),e.createVNode(d,{class:"mb20"},{decoration:e.withCtx((()=>[e.createElementVNode("view",{class:"jy-return-type",style:{width:"100%"}},[e.createElementVNode("text",{class:"decoration"},"申请说明"),e.createElementVNode("view",null,[e.createVNode(p,{type:"textarea",autoHeight:"",inputBorder:!1,modelValue:n.value,"onUpdate:modelValue":l[2]||(l[2]=e=>n.value=e),placeholder:"必填,请您详细填写申请说明",maxlength:"300"},null,8,["modelValue"]),e.createVNode(m,{limit:"9",class:"uni-file-picker",imageStyles:{width:"150rpx",height:"150rpx"}},{default:e.withCtx((()=>[e.createElementVNode("image",{class:"wh150",src:e.unref(zr),mode:"aspectFill"},null,8,["src"])])),_:1})])])])),_:1}),e.createVNode(d,null,{decoration:e.withCtx((()=>[e.createElementVNode("text",{class:"decoration"},"联系电话")])),content:e.withCtx((()=>[e.createElementVNode("text",{class:"decoration"},"123123213")])),_:1})]),e.createVNode(h,{ref_key:"reasonPopup",ref:a,type:"bottom"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"reason-popup f1 bfff pr"},[e.createElementVNode("view",{class:"title"},[e.createElementVNode("text",null,"请选择申请原因")]),e.createElementVNode("view",{class:"close-btn",onClick:l[3]||(l[3]=e=>a.value.close())},"×"),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,(t=>e.createElementVNode("view",{class:"reason-list",onClick:e=>{return n=t,i.reason=n.label,void a.value.close();var n}},[e.createElementVNode("text",{class:"label"},e.toDisplayString(t.label),1)],8,["onClick"]))),64))])])),_:1},512),e.createVNode(e.unref(Wr),{onClick:s},{default:e.withCtx((()=>[e.createTextVNode("提交申请")])),_:1})],64)}}},[["__scopeId","data-v-386fd57a"]]),jc=M({__name:"index",props:{reserveHeight:{type:Number,default:40},defaultExpanded:{type:Boolean,default:!1},buttonText:{type:String,default:"展开"}},setup(t){const n=t,a=e.ref(!1),o=e.ref(a.value?"收起":"查看更多订单信息"),i=e.ref(null),s=e.ref({}),r=()=>{a.value?(o.value="查看更多订单信息",s.value={height:`${n.reserveHeight}px`},a.value=!1):(o.value="收起",s.value={height:i.value+"px"},a.value=!0)};return e.onMounted((()=>{uni.createSelectorQuery().select("#click-show-more").boundingClientRect((e=>{g("log","at components/public/click-show-more/index.vue:59","元素高度:",e.height),i.value=e.height,s.value={height:`${n.reserveHeight}px`}})).exec()})),(t,n)=>{const i=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("div",{class:"click-show-more bfff"},[e.createElementVNode("div",{style:e.normalizeStyle(s.value),id:"click-show-more",class:"content"},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4),e.createElementVNode("view",{onClick:r,class:"bfff p25 df aic jcc"},[e.createElementVNode("text",{class:"f24 c999"},e.toDisplayString(o.value),1),e.createVNode(i,{class:e.normalizeClass([{cStyle:a.value},"icons"]),type:"down",size:16},null,8,["class"])])])}}},[["__scopeId","data-v-712a739c"]]),Jc=M({__name:"index",setup(t){const n=e.ref([{title:"订单编号:123123123"},{title:"申请金额:100"},{title:"申请金额:100"},{title:"提现时间:2022-02-02"}]);return(t,a)=>{const o=f(e.resolveDynamicComponent("uni-section"),va);return e.openBlock(),e.createElementBlock("view",{class:"jy-balance-index"},[e.createElementVNode("view",{class:"mt20"},[e.createVNode(e.unref(Ia),{showStatus:!1}),e.createVNode(e.unref(ka),{showType:1}),e.createVNode(e.unref(jc),null,{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,n)=>(e.openBlock(),e.createBlock(o,{key:n,title:t.title,titleColor:"#999999",titleFontSize:"24rpx"},null,8,["title"])))),128))])),_:1})])])}}},[["__scopeId","data-v-8872dcc1"]]),Xc=M({__name:"index",setup(t){const n=e.ref([{title:"九亿账号",subTitle:"123456789",subTitleColor:"#333333"},{title:"支付渠道",subTitle:"wx",subTitleColor:"#333333"},{title:"退款账户",subTitle:"微信零钱",subTitleColor:"#37B111"}]);return(t,a)=>{const o=f(e.resolveDynamicComponent("uni-section"),va);return e.openBlock(),e.createElementBlock("view",{class:"jy-payment-destination"},[e.createVNode(e.unref(Fn),{class:"bfff",title:"钱款去向"}),e.createElementVNode("view",{class:"jy-balance-index-money bfff"},[e.createElementVNode("view",{class:"df fdc aic bfff ptb20"},[e.createElementVNode("p",{class:"f30 c333"},"退款金额"),e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("text",{class:"f48"},"¥"),e.createElementVNode("text",{class:"price"},"2")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,((t,n)=>(e.openBlock(),e.createBlock(o,{key:n,title:t.title,subTitle:t.subTitle,titleColor:"#999999",subTitleColor:t.subTitleColor,subTitleFontSize:"28rpx"},null,8,["title","subTitle","subTitleColor"])))),128))]),e.createVNode(e.unref(Jc))])}}},[["__scopeId","data-v-e2bb1aa7"]]);const Kc=M({name:"UniSteps",props:{direction:{type:String,default:"row"},activeColor:{type:String,default:"#2979FF"},deactiveColor:{type:String,default:"#B7BDC6"},active:{type:Number,default:0},activeIcon:{type:String,default:"checkbox-filled"},options:{type:Array,default:()=>[]}},data:()=>({heightArr:[]}),mounted(){if("column"===this.direction){let e=this;uni.createSelectorQuery().in(this).selectAll(".uni-steps__column-text").boundingClientRect((t=>{e.heightArr=t.map((e=>e.height+1))})).exec()}}},[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"uni-steps"},[e.createElementVNode("view",{class:e.normalizeClass(["column"===a.direction?"uni-steps__column":"uni-steps__row"])},[e.createElementVNode("view",{class:e.normalizeClass(["column"===a.direction?"uni-steps__column-text-container":"uni-steps__row-text-container"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.options,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:n,class:e.normalizeClass(["column"===a.direction?"uni-steps__column-text":"uni-steps__row-text"])},[e.createElementVNode("text",{style:e.normalizeStyle({color:n===a.active?a.activeColor:a.deactiveColor}),class:e.normalizeClass(["column"===a.direction?"uni-steps__column-title":"uni-steps__row-title"])},e.toDisplayString(t.title),7),e.createElementVNode("text",{style:e.normalizeStyle({color:a.deactiveColor}),class:e.normalizeClass(["column"===a.direction?"uni-steps__column-desc":"uni-steps__row-desc"])},e.toDisplayString(t.desc),7)],2)))),128))],2),e.createElementVNode("view",{class:e.normalizeClass(["column"===a.direction?"uni-steps__column-container":"uni-steps__row-container"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.options,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["column"===a.direction?"uni-steps__column-line-item":"uni-steps__row-line-item"]),key:n,style:e.normalizeStyle({height:"column"===a.direction?i.heightArr[n]+"px":"14px"})},[e.createElementVNode("view",{class:e.normalizeClass(["column"===a.direction?"uni-steps__column-line":"uni-steps__row-line","column"===a.direction?"uni-steps__column-line--before":"uni-steps__row-line--before"]),style:e.normalizeStyle({backgroundColor:n<=a.active&&0!==n?a.activeColor:0===n?"transparent":a.deactiveColor})},null,6),n===a.active?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["column"===a.direction?"uni-steps__column-check":"uni-steps__row-check"])},[e.createVNode(r,{color:a.activeColor,type:a.activeIcon,size:"14"},null,8,["color","type"])],2)):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["column"===a.direction?"uni-steps__column-circle":"uni-steps__row-circle"]),style:e.normalizeStyle({backgroundColor:n{const i=f(e.resolveDynamicComponent("uni-icons"),w),s=f(e.resolveDynamicComponent("uni-section"),va),r=f(e.resolveDynamicComponent("uni-steps"),Kc);return e.openBlock(),e.createElementBlock("view",{class:"jy-after-sales-detail"},[e.createVNode(e.unref(Fn),{class:"bfff",title:"售后详情"}),e.createElementVNode("view",{class:"content"},[e.createElementVNode("view",{class:"df fdc bfff"},[e.createVNode(s,{titleColor:"#333333",titleFontSize:"48rpx",title:"退款成功",onClick:o[0]||(o[0]=e=>t.goto("/pages/mine/money-whereabouts/index"))},{right:e.withCtx((()=>[e.createVNode(i,{type:"right"})])),_:1}),e.createElementVNode("view",{class:"df aic fdr plr20"},[e.createElementVNode("text",{class:"f48 bold"},"¥"),e.createElementVNode("text",{class:"price bold"},"100"),e.createElementVNode("text",{class:"f24 tk ml20"},"已退款到微信")]),e.createVNode(r,{options:a.value,"active-color":"#37B111",active:n.value},null,8,["options","active"])])]),e.createVNode(e.unref(Jc)),e.createVNode(e.unref(Nc))])}}},[["__scopeId","data-v-a7163df1"]]),Wc={__name:"index",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-transaction-completed"},[e.createVNode(e.unref(Sa)),e.createVNode(e.unref(Jc)),e.createVNode(e.unref(Nc))]))},Qc={__name:"index",setup(t){const n=e.ref({});return(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-waiting-delivery"},[e.createVNode(e.unref(Sa)),e.createVNode(e.unref(Jc)),e.createVNode(e.unref(Ta),{class:"bfff p25"}),e.createVNode(e.unref(ga),{conditions:n.value,isLoadMore:!1},null,8,["conditions"])]))}},$c=M({__name:"index",setup(t){const n=[{title:"买家下单",desc:"2018-11-11"},{title:"卖家发货",desc:"2018-11-12"},{title:"买家签收",desc:"2018-11-13"},{title:"交易完成",desc:"2018-11-14"}],a=e.ref([{title:"物流公司",subTitle:"1231111",icon:"/static/shop-logistics.png"},{title:"订单编号",subTitle:"1231111",icon:"/static/shop-document.png"}]);return(t,o)=>{const i=f(e.resolveDynamicComponent("uni-tag"),Ea),s=f(e.resolveDynamicComponent("uni-section"),va),r=f(e.resolveDynamicComponent("uni-steps"),Kc);return e.openBlock(),e.createElementBlock("view",{class:"jy-logistics-state"},[e.createVNode(e.unref(Ta),{class:"bfff p25",shopEdit:!1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createBlock(s,{class:"mt20",key:n},{decoration:e.withCtx((()=>[e.createElementVNode("image",{class:"wh50 mr20",src:t.icon,mode:"aspectFill"},null,8,["src"])])),content:e.withCtx((()=>[e.createElementVNode("view",{class:"df"},[e.createElementVNode("text",{class:"f28 c333"},e.toDisplayString(t.title),1),e.createElementVNode("text",{class:"f28 c333"},":"),e.createElementVNode("text",{class:"f28 c333"},e.toDisplayString(t.subTitle),1)])])),right:e.withCtx((()=>[e.createVNode(i,{onClick:e=>{return n=t.subTitle,void uni.setClipboardData({data:n,success:function(){uni.showToast({title:"复制成功",icon:"none"})}});var n},inverted:!0,text:"复制"},null,8,["onClick"])])),_:2},1024)))),128)),e.createVNode(e.unref(jc),{class:"mt20",reserveHeight:112},{default:e.withCtx((()=>[e.createVNode(r,{options:n,"active-color":"#007AFF",active:4,direction:"column"})])),_:1}),e.createVNode(e.unref(Nc))])}}},[["__scopeId","data-v-99ea027f"]]),el=M({__name:"statusBar",setup(t){const n=e.ref(0);return C((()=>{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"]]),tl=M({__name:"apex",props:{title:{type:String},bgColor:{type:String,default:"#fff"},color:{type:String,default:"#333"}},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"),w);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(el),e.createElementVNode("view",{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)])])],4),e.createElementVNode("view",{class:"ghost"},[e.createVNode(el),e.createElementVNode("view",{class:"head"})])],64)}}},[["__scopeId","data-v-974891ee"]]),nl=M({__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 al={};al={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 ol=e=>{(e.$wxs||(e.$wxs=[])).push("wxsswipe"),(e.$wxsModules||(e.$wxsModules={})).wxsswipe="afd46426"},il=e=>{(e.$renderjs||(e.$renderjs=[])).push("renderswipe"),(e.$renderjsModules||(e.$renderjsModules={})).renderswipe="5a1e922e"},sl={mixins:[al,{},{}],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}}};ol(sl),il(sl);const rl=M(sl,[["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 cl=M({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 ll={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;ne.length)&&(t=e.length);for(var n=0,a=new Array(t);n=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"},D={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},N=(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=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=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>(-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=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)&&0e?(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):ea||n&&i.sequence>n)){if("in"===i.flow&&i.isRead)break;i.setIsRead(!0)}}},{key:"updateUnreadCount",value:function(e){var t,n=!(1o&&e.sequence<=a:e.sequence>o&&e.sequenceo&&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=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=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=this.CACHE_EXPIRE_TIME||s=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(),En(e)})):(s.setMoreMessage("from cache").end(),Pe.l("".concat(n," from cache. groupID:").concat(a)),Cn({counters:e=this._getLocalCounters(a,o)}))}},{key:"_getRemoteGroupCounters",value:function(e){var n=this;return this._grpM.req({P:Un.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 En(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:Un.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 En(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,0this._startBroadcastSeq&&(this._startBroadcastSeq=r),ze(i)&&01e3*t.expireTime&&1e4=o&&t.messageList.push(e)})),(kt({groupID:n})||It(n))&&0===t.messageList.length&&i[0].sequenceo.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=Ut(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=Vt(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=Ut(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,Ut(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=Ut(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)?En({code:Bn.PROFANITY_FOUND}):(n=new $n("createTopicInCommunity"),this.req({P:Un.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),En(e)}))):En({code:Bn.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:Un.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),En(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)?En({code:Bn.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:Un.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),En(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)),Cn({successTopicList:r,failureTopicList:[]})}return this.req({P:Un.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),En(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=1this.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:Un.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),En(e)}))}},{key:"subscribeUserStatus",value:function(e){var t,n,a,o,i="subscribeUserStatus";return this._userM.canIUse(B.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:Un.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),En(e)}))):this._userM.noUse(i)}},{key:"unsubscribeUserStatus",value:function(e){var t,n,a,o,i="unsubscribeUserStatus";return this._userM.canIUse(B.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:Un.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),En(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}}]),xo),bo=(r(Bo,Ln),Xa=f(Bo),i(Bo,[{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=this.MIN_THRESHOLD)&&this._report()}},{key:"onCheckTimer",value:function(){Date.now()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",pi="online",mi=(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=pi,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:pi})}},{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=pi,this._n="NetMonitorModule",this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null,this._removeListener=null,this._m.getIEmitInst().on(Va.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(Va.A2KEY_AND_TINYID_UPDATED,e._onLoginSuccess,h(e)),t.on(Va.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,Ci=_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=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 En({code:Bn.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,p=a.smallImageHeight,m=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&&0this.UPLOAD_SIZE_LIMIT.F?this._checkSizeError("F"):0===e.file.files[0].size?En({code:Bn.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?En({code:Bn.MSG_F_IS_EMPTY}):-1===$a.indexOf(e.file.videoFile.type)?En({code:Bn.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:Bn.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?En({code:Bn.MSG_F_IS_EMPTY}):(this._setUploadFileType(3),this.uploadByCOS(e)):En({code:Bn.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,p=Object.create(null);c?e||ze(c.files)&&c.files[0].error?(u=new On({code:Bn.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)):(p.fileName=o.name,p.fileSize=o.size,p.fileType=o.type.slice(o.type.indexOf("/")+1).toLowerCase(),p.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(p),(d=i.get(26)).addCost(qn,u),d.addFileSize(qn,o.size),t.setMessage(c).end()):(p=new On({code:Bn.MSG_F_UPLOAD_FAIL}),t.setError(p).end(),Pe.w("".concat(n," failed. error:"),e),403===e.statusCode&&i._getAuthorizationKey(),r(p))}))}))):(this.warn("PluginUndetected"),En({code:Bn.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=m(e,ki),u=Date.now();t._cosUploadMethod(l,(function(r,d){if(r||403===d.statusCode)s.setError(new On(r)).end(),m={HttpStatusCode:9999,CostTime:jt(u,!1),error:r,url:e.url},d.data&&d.data.uploadIP&&(m.uploadIP=d.data.uploadIP),t._uploadSSOLog(m),Pe.l("".concat(n," failed, error:"),r),i(new On({code:Bn.MSG_F_UPLOAD_FAIL}));else{var p=Object.create(null),m=d.data.location||"",h=(t.isPrivateNetWork()||0!==m.indexOf("https://")&&0!==m.indexOf("http://")||(m=m.split("//")[1]),p.fileName=a.name,p.fileSize=a.size,p.fileType=a.type.slice(a.type.indexOf("/")+1).toLowerCase(),p.location=m,r=jt(u,!1),m=t._formatFileSize(a.size),t._formatSpeed(1e3*a.size/r));if(m="size:".concat(m," time:").concat(r,"ms speed:").concat(h," res:").concat(JSON.stringify(d.data)),Pe.l("".concat(n," ok. name:").concat(a.name," ").concat(m)),s.setMessage(m).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),m=t.get(26)).addCost(qn,r),m.addFileSize(qn,a.size),h=[],l.thumbUrl&&l.largeUrl&&h.push.apply(h,[t._getSmallImageInfoByUrl(l.thumbUrl,p),t._getLargeImageInfoByUrl(l.largeUrl,p)]),1===t.uploadFileType&&t.isSimpleCos&&!t.isPrivateNetWork()&&(h.push(t._getImageInfoArray(l.downloadUrl,p)),d.data.uploadIP)&&h.push(t._getDownloadIP(l.downloadUrl.split("//")[1].split("/")[0],p)),c&&h.push(t._getSnapshotInfoByUrl(c,p)),0>>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=i&&(Pe.l("".concat(e._n,"._checkPromiseMap request timeout, delete requestID:").concat(n)),e._promiseMap.delete(n),a(new On({code:Bn.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]})),Dt(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(Un.MODIFY_C2C_MSG)||e.includes(Un.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._socketHandler.getNextPingTs()&&this._ping()}},{key:"dealloc",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),-1>>30-e)}function bs(e,t){for(var n=e.toString(16),a=t-n.length,o="0";0>>=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)?En({code:n=Bn.OVER_FREQUENCY_LIMIT,message:this.getErrMsg(n,this._getCmd(t))}):this._isServerOverload(t)?En({code:n=Bn.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)),En({code:Bn.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:Ns(""),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:Ns(""),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:Ns(""),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===Bn.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!==Bn.MSG_A2KEY_EXPIRED&&n!==Bn.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:Un.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:Un.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=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:Un.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(Va.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),Vs=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,0n[0])&&i",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)}}]),Vr),$s=(i(Ur,[{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 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 w(0,Math.pow(2,a)):new w(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 w(0,Math.pow(2,i)):new w(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)),Cn({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 w(0,Math.pow(2,a)):new w(Math.pow(2,a-32),0)).toString(),!this._featureMap.get(o))break;var o,i="",s=0;o===B.PLUGIN_TRANSLATE?(i="plugin_translate",s=16):o===B.PLUGIN_VOICE_TO_TEXT?(i="plugin_voice_to_text",s=17):o===B.PLUGIN_CS?(i="plugin_cs",s=14):o===B.PLUGIN_PUSH?(i="plugin_push",s=13):o===B.PLUGIN_BOT?(i="plugin_bot",s=15):o===B.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:Un.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,p,m;z?(this._offlinePushPlugin=e["tim-offline-push-plugin"],t=(m=e.offlinePushConfig||{}).huaweiBusinessID,n=m.xiaomiBusinessID,a=m.xiaomiAppID,o=m.xiaomiAppKey,i=m.meizuBusinessID,s=m.meizuAppID,r=m.meizuAppKey,c=m.vivoBusinessID,l=m.oppoBusinessID,u=m.oppoAppKey,d=m.oppoAppSecret,p=m.honorBusinessID,m=m.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=p,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=m,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:Un.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),En(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:Un.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:Un.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=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:Un.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),p=o.errorMessage;return 0!==d?(e._isFetching=!1,Pe.w("".concat(n," failed. error:"),o),void t.setCode(d).setMessage(p).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=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;sSe()-this.EXPIRED_TIME}},{key:"_createPromiseList",value:function(e){for(var t=[],n=0;nthis.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=m(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",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=Us.call(this,e))._n="QualityStatModule",e.TAG="im-ssolog-quality-stat",e.reportIndex=0,e.wholePeriod=!1,e._qualityItems=[Vn,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(Va.A2KEY_AND_TINYID_UPDATED,e._onLoginSuccess,h(e)),t.on(Va.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=Vs.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(Va.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>>8^o[255&(e^t[s])];return~e}function Wr(e,t,n,a,o,i,s,r){var c,l,u,d,p,m,h,g,f,v=r.bits,_=0,y=0,C=0,E=0,k=0,I=0,S=0,T=0,M=0,D=0,N=null,w=0,b=new Er.Buf16(16),L=new Er.Buf16(16),P=null,A=0;for(_=0;_<=15;_++)b[_]=0;for(y=0;ym?(g=P[A+s[y]],N[w+s[y]]):(g=96,0),c=1<<(h=_-S),C=l=1<>S)+(l-=c)]=h<<24|g<<16|f,0!==l;);for(c=1<<_-1;D&c;)c>>=1;if(D=0!==c?(D&c-1)+c:0,y++,0==--b[_]){if(_===E)break;_=t[n+s[y]]}if(k<_&&(D&d)!==u){for(p+=C,T=1<<(I=_-(S=0===S?k:S));I+S>>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 Er.Buf16(320),this.work=new Er.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 Er.Buf32(852),t.distcode=t.distdyn=new Er.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=e.wsize?(Er.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),Er.arraySet(e.window,t,n-a,o,e.wnext),(a-=o)?(Er.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>>8&255,n.check=zr(n.check,D,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<>8&1),512&n.flags&&(D[0]=255&l,D[1]=l>>>8&255,n.check=zr(n.check,D,2,0)),u=l=0,n.mode=3;case 3:for(;u<32;){if(0===r)break e;r--,l+=a[i++]<>>8&255,D[2]=l>>>16&255,D[3]=l>>>24&255,n.check=zr(n.check,D,4,0)),u=l=0,n.mode=4;case 4:for(;u<16;){if(0===r)break e;r--,l+=a[i++]<>8),512&n.flags&&(D[0]=255&l,D[1]=l>>>8&255,n.check=zr(n.check,D,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++]<>>8&255,n.check=zr(n.check,D,2,0)),u=l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((m=(m=n.length)>r?r:m)&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),Er.arraySet(n.head.extra,a,i,m,k)),512&n.flags&&(n.check=zr(n.check,a,m,i)),r-=m,i+=m,n.length-=m),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===r)break e;for(m=0;k=a[i+m++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k)),k&&m>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++]<>>=7&u,u-=7&u,n.mode=27;else{for(;u<3;){if(0===r)break e;r--,l+=a[i++]<>>=1)){case 0:n.mode=14;break;case 1:w=b=void 0;var w,b=n;if(dc){for(lc=new Er.Buf32(512),uc=new Er.Buf32(32),w=0;w<144;)b.lens[w++]=8;for(;w<256;)b.lens[w++]=9;for(;w<280;)b.lens[w++]=7;for(;w<288;)b.lens[w++]=8;for(Wr(1,b.lens,0,288,lc,0,b.work,{bits:9}),w=0;w<32;)b.lens[w++]=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++]<>>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(m=n.length){if(0===(m=c<(m=r>>=5,u-=5,n.ndist=1+(31&l),l>>>=5,u-=5,n.ncode=4+(15&l),l>>>=4,u-=4,286>>=3,u-=3}for(;n.have<19;)n.lens[N[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>>16&255,_=65535&M,!((f=M>>>24)<=u);){if(0===r)break e;r--,l+=a[i++]<>>=f,u-=f,n.lens[n.have++]=_;else{if(16===_){for(T=f+2;u>>=f,u-=f,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}k=n.lens[n.have-1],m=3+(3&l),l>>>=2,u-=2}else if(17===_){for(T=f+3;u>>=f)),l>>>=3,u=u-f-3}else{for(T=f+7;u>>=f)),l>>>=7,u=u-f-7}if(n.have+m>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;m--;)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=B=O=R=A=P=L=ae=ne=te=ee=$=Q=W=z=K=X=J=j=q=H=Y=G=V=void 0;var L,P,A,R,O,B,x=e,U=p,V=x.state,G=x.next_in,F=x.input,Y=G+(x.avail_in-5),H=x.next_out,Z=x.output,q=H-(U-x.avail_out),j=H+(x.avail_out-257),J=V.dmax,X=V.wsize,K=V.whave,z=V.wnext,W=V.window,Q=V.hold,$=V.bits,ee=V.lencode,te=V.distcode,ne=(1<>>=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,$-=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<J){x.msg="invalid distance too far back",V.mode=30;break t}if(Q>>>=P,$-=P,R>(P=H-q)){if((P=R-P)>K&&V.sane){x.msg="invalid distance too far back",V.mode=30;break t}if(B=W,(O=0)===z){if(O+=X-P,P>3,Q&=(1<<($-=A<<3))-1,x.next_in=G,x.next_out=H,x.avail_in=G>>16&255,_=65535&M,!((f=M>>>24)<=u);){if(0===r)break e;r--,l+=a[i++]<>y)])>>>16&255,_=65535&M,!(y+(f=M>>>24)<=u);){if(0===r)break e;r--,l+=a[i++]<>>=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>>=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<>>16&255,_=65535&M,!((f=M>>>24)<=u);){if(0===r)break e;r--,l+=a[i++]<>y)])>>>16&255,_=65535&M,!(y+(f=M>>>24)<=u);){if(0===r)break e;r--,l+=a[i++]<>>=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>>=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>(m=p-c)){if((m=n.offset-m)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}h=m>n.wnext?(m-=n.wnext,n.wsize-m):n.wnext-m,m>n.length&&(m=n.length),g=n.window}else g=o,h=s-n.offset,m=n.length;for(c-=m=c>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,Er.shrinkBuf(c,l));for(var u="",d=0;d>>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=mc.inflateSetDictionary(this.strm,t.dictionary))!==Ec.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?Ec.Z_FINISH:Ec.Z_NO_FLUSH,"string"==typeof e?r.input=function(e){for(var t=new Er.Buf8(e.length),n=0,a=t.length;ne.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&&Er.arraySet(r.output,r.output,o,i,0),this.onData(s)):this.onData(Er.shrinkBuf(r.output,r.next_out))),0===r.avail_in&&0===r.avail_out&&(u=!0)}while((0"," %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?En({code:Bn.MSG_MERGER_TYPE_INVALID}):He(e.payload.downloadKey)?En({code:Bn.MSG_MERGER_KEY_INVALID}):this._get(2).downloadMergerMessage(e).catch((function(e){return En({code:Bn.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):En({code:Bn.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):En({code:Bn.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):En({code:Bn.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):En({code:Bn.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():En({code:Bn.NO_MODULE})}},{key:"addFriend",value:function(e){var t=this._get(8);return t?t.addFriend(e):En({code:Bn.NO_MODULE})}},{key:"deleteFriend",value:function(e){var t=this._get(8);return t?t.deleteFriend(e):En({code:Bn.NO_MODULE})}},{key:"checkFriend",value:function(e){var t=this._get(8);return t?t.checkFriend(e):En({code:Bn.NO_MODULE})}},{key:"getFriendProfile",value:function(e){var t=this._get(8);return t?t.getFriendProfile(e):En({code:Bn.NO_MODULE})}},{key:"updateFriend",value:function(e){var t=this._get(8);return t?t.updateFriend(e):En({code:Bn.NO_MODULE})}},{key:"getFriendApplicationList",value:function(){var e=this._get(8);return e?e.getLocalFriendApplicationList():En({code:Bn.NO_MODULE})}},{key:"acceptFriendApplication",value:function(e){var t=this._get(8);return t?t.acceptFriendApplication(e):En({code:Bn.NO_MODULE})}},{key:"refuseFriendApplication",value:function(e){var t=this._get(8);return t?t.refuseFriendApplication(e):En({code:Bn.NO_MODULE})}},{key:"deleteFriendApplication",value:function(e){var t=this._get(8);return t?t.deleteFriendApplication(e):En({code:Bn.NO_MODULE})}},{key:"setFriendApplicationRead",value:function(){var e=this._get(8);return e?e.setFriendApplicationRead():En({code:Bn.NO_MODULE})}},{key:"getFriendGroupList",value:function(){var e=this._get(8);return e?e.getLocalFriendGroupList():En({code:Bn.NO_MODULE})}},{key:"createFriendGroup",value:function(e){var t=this._get(8);return t?t.createFriendGroup(e):En({code:Bn.NO_MODULE})}},{key:"deleteFriendGroup",value:function(e){var t=this._get(8);return t?t.deleteFriendGroup(e):En({code:Bn.NO_MODULE})}},{key:"addToFriendGroup",value:function(e){var t=this._get(8);return t?t.addToFriendGroup(e):En({code:Bn.NO_MODULE})}},{key:"removeFromFriendGroup",value:function(e){var t=this._get(8);return t?t.removeFromFriendGroup(e):En({code:Bn.NO_MODULE})}},{key:"renameFriendGroup",value:function(e){var t=this._get(8);return t?t.renameFriendGroup(e):En({code:Bn.NO_MODULE})}},{key:"followUser",value:function(e){var t=this._get(35);return t?t.followUser(e):En({code:Bn.NO_MODULE})}},{key:"unfollowUser",value:function(e){var t=this._get(35);return t?t.unfollowUser(e):En({code:Bn.NO_MODULE})}},{key:"getMyFollowersList",value:function(e){var t=this._get(35);return t?t.getMyFollowersList(e):En({code:Bn.NO_MODULE})}},{key:"getMyFollowingList",value:function(e){var t=this._get(35);return t?t.getMyFollowingList(e):En({code:Bn.NO_MODULE})}},{key:"getMutualFollowersList",value:function(e){var t=this._get(35);return t?t.getMutualFollowersList(e):En({code:Bn.NO_MODULE})}},{key:"getUserFollowInfo",value:function(e){var t=this._get(35);return t?t.getUserFollowInfo(e):En({code:Bn.NO_MODULE})}},{key:"checkFollowType",value:function(e){var t=this._get(35);return t?t.checkFollowType(e):En({code:Bn.NO_MODULE})}},{key:"getGroupList",value:function(){var e=this._get(7);return e?e.getGroupList():En({code:Bn.NO_MODULE})}},{key:"getGroupProfile",value:function(e){var t=this._get(7);return t?t.getGroupProfile(e):En({code:Bn.NO_MODULE})}},{key:"createGroup",value:function(e){var t=this._get(7);return t?t.createGroup(e):En({code:Bn.NO_MODULE})}},{key:"dismissGroup",value:function(e){var t=this._get(7);return t?t.dismissGroup(e):En({code:Bn.NO_MODULE})}},{key:"updateGroupProfile",value:function(e){var t=this._get(7);return t?t.updateGroupProfile(e):En({code:Bn.NO_MODULE})}},{key:"joinGroup",value:function(e){var t=this._get(7);return t?t.joinGroup(e):En({code:Bn.NO_MODULE})}},{key:"quitGroup",value:function(e){var t=this._get(7);return t?t.quitGroup(e):En({code:Bn.NO_MODULE})}},{key:"searchGroupByID",value:function(e){var t=this._get(7);return t?t.searchGroupByID(e):En({code:Bn.NO_MODULE})}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._get(7);return t?t.getGroupOnlineMemberCount(e):En({code:Bn.NO_MODULE})}},{key:"changeGroupOwner",value:function(e){var t=this._get(7);return t?t.changeGroupOwner(e):En({code:Bn.NO_MODULE})}},{key:"getGroupApplicationList",value:function(){var e=this._get(7);return e?e.getGroupApplicationList():En({code:Bn.NO_MODULE})}},{key:"handleGroupApplication",value:function(e){var t=this._get(7);return t?t.handleGroupApplication(e):En({code:Bn.NO_MODULE})}},{key:"initGroupAttributes",value:function(e){var t=this._get(7);return t?t.initGroupAttributes(e):En({code:Bn.NO_MODULE})}},{key:"setGroupAttributes",value:function(e){var t=this._get(7);return t?t.setGroupAttributes(e):En({code:Bn.NO_MODULE})}},{key:"deleteGroupAttributes",value:function(e){var t=this._get(7);return t?t.deleteGroupAttributes(e):En({code:Bn.NO_MODULE})}},{key:"getGroupAttributes",value:function(e){var t=this._get(7);return t?t.getGroupAttributes(e):En({code:Bn.NO_MODULE})}},{key:"setGroupCounters",value:function(e){var t=this._get(7);return t?t.setGroupCounters(e):En({code:Bn.NO_MODULE})}},{key:"increaseGroupCounter",value:function(e){var t=this._get(7);return t?t.increaseGroupCounter(e):En({code:Bn.NO_MODULE})}},{key:"decreaseGroupCounter",value:function(e){var t=this._get(7);return t?t.decreaseGroupCounter(e):En({code:Bn.NO_MODULE})}},{key:"getGroupCounters",value:function(e){var t=this._get(7);return t?t.getGroupCounters(e):En({code:Bn.NO_MODULE})}},{key:"getGroupMemberList",value:function(e){var t=this._get(7);return t?t.getGroupMemberList(e):En({code:Bn.NO_MODULE})}},{key:"getGroupMemberProfile",value:function(e){var t=this._get(7);return t?t.getGroupMemberProfile(e):En({code:Bn.NO_MODULE})}},{key:"addGroupMember",value:function(e){var t=this._get(7);return t?t.addGroupMember(e):En({code:Bn.NO_MODULE})}},{key:"deleteGroupMember",value:function(e){var t=this._get(7);return t?t.deleteGroupMember(e):En({code:Bn.NO_MODULE})}},{key:"setGroupMemberMuteTime",value:function(e){var t=this._get(7);return t?t.setGroupMemberMuteTime(e):En({code:Bn.NO_MODULE})}},{key:"setGroupMemberRole",value:function(e){var t=this._get(7);return t?t.setGroupMemberRole(e):En({code:Bn.NO_MODULE})}},{key:"setGroupMemberNameCard",value:function(e){var t=this._get(7);return t?t.setGroupMemberNameCard(e):En({code:Bn.NO_MODULE})}},{key:"setGroupMemberCustomField",value:function(e){var t=this._get(7);return t?t.setGroupMemberCustomField(e):En({code:Bn.NO_MODULE})}},{key:"markGroupMemberList",value:function(e){var t=this._get(7);return t?t.markGroupMemberList(e):En({code:Bn.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):En({code:Bn.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):En({code:Bn.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):En({code:Bn.NO_MODULE})}},{key:"accept",value:function(e){var t=this._get(33);return t?t.accept(e):En({code:Bn.NO_MODULE})}},{key:"reject",value:function(e){var t=this._get(33);return t?t.reject(e):En({code:Bn.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):En({code:Bn.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:wt(),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 Nc(e),this._safetyCallbackFactory=new wc(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=Bn.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 Dc(this)),this._map.set(15,new mi(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 ps(this)),this._map.set(20,new Ys(this)),this._map.set(1,new Ao(this)),this._map.set(2,new Ui(this)),this._map.set(3,new Vi(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 Ua(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 Cr(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 Bc={};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&&Bc[s]?Bc[s]:(Pe.l("".concat(i)),(o=new bc(t(t({},e),{},{SDKAppID:s}))).on(T.SDK_DESTROY,(function(e){Bc[e.data.SDKAppID]=null,delete Bc[e.data.SDKAppID]})),n=o,a=Object.create(null),Object.keys(Rn).forEach((function(e){var t;n[e]&&(t=new N,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(Bn.SDK_IS_NOT_READY))},o.onError(i),i);return!0===s?a():En(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;o40869||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;na.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)=>{Te.alert({content:`确认删除好友${e.profile.nick}?`}).then((e=>{if(e.confirm)return t()}))})).then((t=>{uni.$chat.deleteFriend({userIDList:[e.userID],type:ul.TYPES.SNS_DELETE_TYPE_BOTH}).then((e=>{d()}))}))}(e)},{text:"修改备注",style:{backgroundColor:"#10C100"},fn:e=>{return t=e,Object.assign(i,t),void setTimeout((()=>{n.$refs.note.open()}),50);var t}}];function d(){uni.$chat.isReady()?uni.$chat.getFriendList().then((e=>{0==e.code&&p(e.data)})):setTimeout((function(){d()}),200)}function p(e){o.data.length=0,o.data.push(...e.map((e=>{let t=pl.getCamelChars(e.remark||e.profile.nick);return{key:t.charAt(0),letter:t.charAt(0),child:[e]}})))}function m(e){c.value=!0}function h(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 g(e){c.value=!1}function v(){uni.$chat.updateFriend({userID:i.userID,remark:i.remark||""}).then((e=>{n.$refs.note.close()}))}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=>{p(e.data)};uni.$chat.on(ul.EVENT.FRIEND_LIST_UPDATED,e)}()})),e.onUnmounted((()=>{uni.$chat.off(ul.EVENT.FRIEND_LIST_UPDATED,(()=>{}))})),(t,a)=>{const c=f(e.resolveDynamicComponent("uni-icons"),w),l=f(e.resolveDynamicComponent("uni-swipe-action-item"),rl),d=f(e.resolveDynamicComponent("uni-swipe-action"),cl),p=f(e.resolveDynamicComponent("uni-popup"),Rn);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.createElementVNode("view",{class:"menu oh c333 f34"},[e.createElementVNode("view",{class:"rows ptb40 plr30 bw",onClick:a[0]||(a[0]=e=>{return t="/pages/news/newFriend",void uni.navigateTo({url:t});var t})},[e.createElementVNode("view",{class:""},"好友申请"),e.createVNode(c,{type:"right",color:"#999",size:"40rpx"})])]),e.createVNode(d,{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(l,{"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){Te.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(h,["stop","prevent"]),onTouchend:g},[(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(p,{ref:"note",type:"bottom","mask-background-color":"rgba(0,0,0,.1)"},{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).profile.nick)+")备注",1),e.createVNode(c,{type:"closeempty",size:"40rpx",onClick:a[1]||(a[1]=e=>t.$refs.note.close())})]),e.createElementVNode("view",{class:"content mt30 plr30"},[e.withDirectives(e.createElementVNode("input",{class:"input","onUpdate:modelValue":a[2]||(a[2]=t=>e.unref(i).remark=t),placeholder:"请输入好友备注"},null,512),[[e.vModelText,e.unref(i).remark]])]),e.createElementVNode("view",{class:"btn lg black mtb30",onClick:v},"保存")])])),_:1},512)],64)}}},[["__scopeId","data-v-6f84ce47"]]),hl=M({__name:"groupList",setup(t){const{proxy:n}=e.getCurrentInstance(),a=e.reactive([]),o=[{text:"退出群聊",style:{backgroundColor:"#F85050"},fn:e=>function(e){Te.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(ul.EVENT.FRIEND_LIST_UPDATED,e)}()})),e.onUnmounted((()=>{uni.$chat.off(ul.EVENT.FRIEND_LIST_UPDATED)})),(t,i)=>{const s=f(e.resolveDynamicComponent("uni-swipe-action-item"),rl),r=f(e.resolveDynamicComponent("uni-swipe-action"),cl);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),Te.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"]]),gl=M({__name:"msgList",setup(t){const{proxy:n}=e.getCurrentInstance(),a=O();e.computed((()=>a.state.userinfo));const o=[{text:"删除",style:{backgroundColor:"#F85050"},fn:e=>function(e){uni.$chat.deleteConversation({conversationIDList:[e.conversationID],clearHistoryMessage:!1}).then((e=>{s()}))}(e)}],i=e.reactive([]);function s(){uni.$chat.getConversationList().then((e=>{i.length=0,i.push(...e.data.conversationList)}))}return e.onMounted((()=>{s(),function(){let e=function(e){s()};uni.$chat.on(ul.EVENT.CONVERSATION_LIST_UPDATED,e)}()})),e.onUnmounted((()=>{uni.$chat.on(ul.EVENT.CONVERSATION_LIST_UPDATED)})),(t,a)=>{const s=f(e.resolveDynamicComponent("uni-swipe-action-item"),rl),r=f(e.resolveDynamicComponent("uni-swipe-action"),cl);return e.openBlock(),e.createElementBlock("view",{class:"firendBox pr"},[e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll"},[e.createVNode(r,{ref:"swipeAction"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"list pb30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i,((t,a)=>(e.openBlock(),e.createBlock(s,{"right-options":o,key:a,onClick:e=>function(e,t){g("log","at components/news/msgList.vue:139","ev",e,t),e.content.fn(t),n.$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:115","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}`),Te.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(Te).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-e19725c8"]]),fl=M({__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}]),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:Te.scan();break;case 1:uni.navigateTo({url:"/pages/news/newFriend"});break;case 2:uni.navigateTo({url:"/pages/news/group-chat/index"});break;case 3:uni.navigateTo({url:"/pages/news/myQr"})}}})}return e.computed((()=>a[o.value])),C((()=>{r(2)})),(t,n)=>{const l=f(e.resolveDynamicComponent("footerMenu"),On),u=f(e.resolveDynamicComponent("uni-icons"),w);return s.value.userId?(e.openBlock(),e.createElementBlock("view",{key:1,class:"page"},[e.createVNode(e.unref(tl),null,{left:e.withCtx((()=>[e.createVNode(u,{type:"bars",size:"40rpx",onClick:c})])),content:e.withCtx((()=>[])),right:e.withCtx((()=>[])),_: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(u,{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(ml),{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(hl),{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(gl),{key:0})):(e.openBlock(),e.createElementBlock("view",{key:1,class:"loading"},"正在加载"))]),e.createElementVNode("swiper-item",null,[e.createVNode(e.unref(gl))])],8,["current"]),e.createVNode(l,{ref:"footerMneuRef",page:"news"},null,512)])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"page"},[e.createVNode(nl,{class:"f1"}),e.createVNode(l,{ref:"footerMneuRef",page:"news"},null,512)]))}}},[["__scopeId","data-v-6a43f5bc"]]),vl={__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)}},_l={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:yl}=na(_l),Cl={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||yl("uni-search-bar.cancel")},placeholderText(){return this.placeholder||yl("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 El=M(Cl,[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-icons"),w);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"]]),kl=M({__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"),w);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"]]),Il=M({__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 Te.alert("群聊名称不能为空");if(a.length<2)return void Te.alert("请至少选择两名用户");const e=[{userID:s.value.userId},...a.map((e=>({userID:e})))];uni.$chat.createGroup({type:ul.TYPES.GRP_WORK,name:o.value,memberList:e}).then((e=>{g("log","at pages/news/group-chat/index.vue:91","createGroup success",e),Te.alert("创建成功")})).catch((e=>{g("log","at pages/news/group-chat/index.vue:94","createGroup catch",e)}))}return C((()=>{r()})),(t,n)=>{const s=f(e.resolveDynamicComponent("uni-search-bar"),El);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(kl),{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"]]),Sl=M({__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/question-answer/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"),w);return e.openBlock(),e.createElementBlock("view",{class:"content pr"},[t.item.type===e.unref(ul).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(ul).TYPES.MSG_TEXT?(e.openBlock(),e.createElementBlock("view",{key:1,class:"p25"},e.toDisplayString(t.item.payload.text),1)):t.item.type===e.unref(ul).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(ul).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(ul).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(ul).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(ul).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(ul).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(ul).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(ul).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(ka),{key:5,showType:4,right:!1})):e.createCommentVNode("",!0),"shop"===t.item.type?(e.openBlock(),e.createBlock(e.unref(ka),{key:6,showType:3})):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-c27154ea"]]),Tl=["😀","😁","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","👦","👧","👨","👩","👴","👵","👶","👱","👮","👲","👳","👷","👸","💂","🎅","👰","👼","💆","💇","🙍","🙎","🙅","🙆","💁","🙋","🙇","🙌","🙏","👤","👥","🚶","🏃","👯","💃","👫","👬","👭","💏","💑","👪","💪","👈","👉","☝","👆","👇","✌","✋","👌","👍","👎","✊","👊","👋","👏","👐","✍","👣","👀","👂","👃","👅","👄","💋","👓","👔","👙","👛","👜","👝","🎒","💼","👞","👟","👠","👡","👢","👑","👒","🎩","🎓","💄","💅","💍","🌂","📶","📳","📴","♻","🏧","🚮","🚰","♿","🚹","🚺","🚻","🚼","🚾","⚠","🚸","⛔","🚫","🚳","🚭","🚯","🚱","🚷","🔞","💈","🙈","🐒","🐶","🐕","🐩","🐺","🐱","🐈","🐯","🐅","🐆","🐴","🐎","🐮","🐂","🐃","🐄","🐷","🐖","🐗","🐽","🐏","🐑","🐐","🐪","🐫","🐘","🐭","🐁","🐀","🐹","🐰","🐇","🐻","🐨","🐼","🐾","🐔","🐓","🐣","🐤","🐥","🐦","🐧","🐸","🐊","🐢","🐍","🐲","🐉","🐳","🐋","🐬","🐟","🐠","🐡","🐙","🐚","🐌","🐛","🐜","🐝","🐞","🦋","💐","🌸","💮","🌹","🌺","🌻","🌼","🌷","🌱","🌲","🌳","🌴","🌵","🌾","🌿","🍀","🍁","🍂","🍃","🌍","🌎","🌏","🌐","🌑","🌒","🌓","🌔","🌕","🌖","🌗","🌘","🌙","🌚","🌛","🌜","☀","🌝","🌞","⭐","🌟","🌠","☁","⛅","☔","⚡","❄","🔥","💧","🌊","🏀","🏈","🏉","🎾","🎱","🎳","⛳","🎣","🎽","🎿","😈","👿","👹","👺","💀","☠","👻","👽","👾","💣","🌋","🗻","🏠","🏡","🏢","🏣","🏤","🏥","🏦","🏨","⛲","🌁","🌃","🌆","🌇","🎠","🎡","🎢","🚂","🚌","🚍","🚎","🚏","🚐","🚑","🚒","🚓","🚔","🚕","🚖","🚗","🚘","💌","💎","🔪","💈","🚪","🚽","🚿","🛁","⌛","⏳","⌚","⏰","🎈","🎉","💤","💢","💬","💭","♨","🌀","🔔","🔕","✡","✝","🔯","📛","🔰","🔱","⭕","✅","☑","✔","✖","❌","❎","➕","➖","➗","➰","➿","〽","✳","✴","❇","‼","⁉","❓","❔","❕","❗","🕛","🕧","🕐","🕜","🕑","🕝","🕒","🕞","🕓","🕟","🕔","🕠","🕕","🕡","🕖","🕢","🕗","🕣","🕘","🕤","🕙","🕥","🕚","🕦","⏱","⏲","🕰","💘","❤","💓","💔","💕","💖","💗","💙","💚","💛","💜","💝","💞","💟❣","🍇","🍈","🍉","🍊","🍋","🍌","🍍","🍎","🍏","🍐","🍑","🍒","🍓"],Ml=M({__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(Tl),((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-36918b88"]]),Dl={__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),p=e.ref(!1),m={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/question-answer/jy-voice.vue:61","recorder start success"),r.value=setInterval((()=>{s.value+=.1}),100),g("log","at pages/news/question-answer/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/question-answer/jy-voice.vue:77","取消发送"),p.value=!0,l.value="松开手指 取消发送"):(g("log","at pages/news/question-answer/jy-voice.vue:81","继续发送"),p.value=!1,l.value="手指上滑 取消发送")},touchendVoice:()=>{u.value&&(clearInterval(r.value),c.value="按住 说话",l.value="手指上滑 取消发送",g("log","at pages/news/question-answer/jy-voice.vue:95","touchendVoice"),m.stop())},touchcancelVoice:()=>{clearInterval(r.value),c.value="按住 说话",l.value="手指上滑 取消发送",p.value=!0,g("log","at pages/news/question-answer/jy-voice.vue:106","touchcancelVoice"),m.stop()},stop:()=>{r.value=null,u.value=!1,i.stop(),g("log","at pages/news/question-answer/jy-voice.vue:113","录音结束")}};return i.onStop((e=>{if(!p.value)if(p.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/question-answer/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/question-answer/jy-voice.vue:159","file uploading:",e)}});o("send",t)}catch(ui){g("log","at pages/news/question-answer/jy-voice.vue:164","message catch",ui)}}})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"voice_box",onTouchstart:n[0]||(n[0]=(...e)=>m.touchstartVoice&&m.touchstartVoice(...e)),onTouchmove:n[1]||(n[1]=e.withModifiers(((...e)=>m.touchmoveVoice&&m.touchmoveVoice(...e)),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...e)=>m.touchendVoice&&m.touchendVoice(...e)),onTouchcancel:n[3]||(n[3]=(...e)=>m.touchcancelVoice&&m.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([p.value?"cancel":"ing"]),type:p.value?"micoff":"mic",size:"100"},null,8,["class","type"]),e.createElementVNode("view",{class:e.normalizeClass(["tis",p.value?"change":""])},e.toDisplayString(l.value),3)],2)):e.createCommentVNode("",!0)],64)}}},Nl=M(Dl,[["__scopeId","data-v-14ed539d"]]),wl=M({__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/question-answer/jy-plus.vue:97","[TUICallKit] call params: ",JSON.stringify(e))}))}})},chooseOrder:()=>{e.nextTick().then((()=>{s.value.open()}))},chooseShop:()=>{},redEnvelope(){uni.navigateTo({url:Te.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/question-answer/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"),w),o=f(e.resolveDynamicComponent("uni-easyinput"),Da),c=f(e.resolveDynamicComponent("uni-popup"),Rn);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(Vn)(!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(ka),{showType:4,onConsult:l})]))),64))])],4)])),_:1},512)],64)}}},[["__scopeId","data-v-fd27d80c"]]),bl={__name:"index",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.reactive([]),u=e.ref(void 0),d=e.ref(0),p=e.ref(0),m=e.ref(1),h=e.ref({}),v=e.ref("input"),_=e.ref(""),S=e.ref(null);function T(){u.value&&M()}function M(t=()=>{}){uni.$chat.isReady()||!c.value.userId?s.value?Te.showToastAndRedirect("加载中"):r.value||(s.value=!0,(async e=>{let t={conversationID:`${e.chatType}${e.msgId}`,nextReqMessageID:e.nextReqMessageID};return g("log","at pages/news/question-answer/fn.js:21","options",t),new Promise(((e,n)=>{uni.$chat.getMessageList(t).then((t=>{e(t)})).catch((e=>{g("log","at pages/news/question-answer/fn.js:26","Promise reject",e),n(e)}))}))})({msgId:o.id,chatType:o.type,nextReqMessageID:1==l.length?"":u.value}).then((n=>{g("log","at pages/news/question-answer/index.vue:201","getHistory",n);const a=n.data;1==m.value&&(l.length=0),l.unshift(...a.messageList.map((e=>{try{e.messageType=1,e.type===ul.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/question-answer/index.vue:220","map catch",t)}return e}))),m.value++,g("log","at pages/news/question-answer/index.vue:225","getHistoryMsg then",a.messageList.length,l,n),u.value=a.nextReqMessageID||void 0,e.nextTick((()=>{t()}))})).finally((()=>{s.value=!1}))):setTimeout((function(){M(t)}),200)}function D(){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&&(g("log","at pages/news/question-answer/index.vue:264","ev.scrollTop"),T())}function b(){P({message:uni.$chat.createTextMessage({to:o.id,conversationType:o.type,payload:{text:i.value},needReadReceipt:!0}),success:()=>{i.value=""}})}function L(e){g("log","at pages/news/question-answer/index.vue:302","handlePlusSend",e),P({message:e})}function P(e){uni.$chat.sendMessage(e.message).then((t=>{e.success&&e.success(),m.value=1,M(D())})).catch((e=>{g("log","at pages/news/question-answer/index.vue:322","sendMsg error:",e)}))}function A(e){h.value=e,Se.news.getRedbag({data:{bagId:e.payload.data.id}}).then((e=>{if(g("log","at pages/news/question-answer/index.vue:338","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/question-answer/index.vue:353","modifyMessage success",e)})).catch((e=>{g("log","at pages/news/question-answer/index.vue:355","modifyMessage catch",e)}))}Te.alert({content:e.msg,showCancel:!1})})),n.$refs.RedPacket.open()}function R(){0==h.value.payload.data.status&&Se.news.grabred({data:{id:h.value.payload.data.id}}).then((e=>{200!=e.code?Te.alert({content:e.msg,showCancel:!1}):A(h.value)}))}function B(e){i.value=i.value+e}function x(e){v.value!==e?v.value=e:v.value="input"}function U(){x("input")}function V(e){g("log","at pages/news/question-answer/index.vue:410","handlePlusSend",e),P({message:e})}C((t=>{t.name&&uni.setNavigationBarTitle({title:t.name}),t.msgId&&(o.id=t.msgId),t.type&&(o.type=t.type),function(){let t=function(t){l.push(...t.data.map((e=>{try{e.messageType=1,e.type===ul.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/question-answer/index.vue:153","map catch",t)}return e}))),e.nextTick((()=>{D()}))};uni.$chat.on(ul.EVENT.MESSAGE_RECEIVED,t)}(),M(D),uni.onKeyboardHeightChange((t=>{F.value.height=t.height+"px",e.nextTick((()=>{D()}))}))})),E((()=>{uni.createSelectorQuery().in(n).select("#tool").boundingClientRect((e=>{p.value=e.height})).exec(),S.value=uni.createVideoContext("video")})),I((e=>{N(e)})),y((()=>{S.value.pause()})),k((()=>{uni.offKeyboardHeightChange((()=>{})),S.value.stop()}));const G=e.ref(!1),F=e.ref({height:"0px",duration:"0.25s"});function Y(t){F.value=t.detail,e.nextTick((()=>{G.value=t.detail.height>0}))}function H(e){_.value=e.payload.videoUrl,S.value.requestFullScreen(),S.value.requestFullScreen()}function Z(e){g("log","at pages/news/question-answer/index.vue:452","onScreenChange",e),e.fullScreen||S.value.pause()}return(t,n)=>{const a=f(e.resolveDynamicComponent("uni-easyinput"),Da),s=f(e.resolveDynamicComponent("uni-icons"),w),r=f(e.resolveDynamicComponent("uni-popup"),Rn);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:T},[e.createElementVNode("view",{id:"scroll-content",style:{padding:"30rpx 30rpx"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:t.ID},[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(Te).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(Sl),{item:t,msg:o,onOpenRedBag:A,onViewVideo:H},null,8,["item","msg"])])],2)):e.createCommentVNode("",!0)])))),128)),G.value?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({height:`${F.value.height}px`,transition:`${F.value.duration}s`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"ghost",style:e.normalizeStyle({height:p.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=>x("voice"))},null,8,["src"]),"voice"==v.value?(e.openBlock(),e.createBlock(Nl,{key:0,onSend:V,msg:o},null,8,["msg"])):e.createCommentVNode("",!0),"voice"!=v.value?(e.openBlock(),e.createBlock(a,{key:1,onFocus:U,type:"text",modelValue:i.value,"onUpdate:modelValue":n[1]||(n[1]=e=>i.value=e),clearable:!1,class:"input","adjust-position":!1,onKeyboardheightchange:Y,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=>x("emoji"))},null,8,["src"]),i.value?(e.openBlock(),e.createElementBlock("view",{key:3,class:"send",onClick:b},"发送")):(e.openBlock(),e.createElementBlock("image",{key:2,src:e.unref("/static/news-plus.png"),mode:"widthFix",class:"thumb",onClick:n[3]||(n[3]=e=>x("plus"))},null,8,["src"]))]),G.value?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({height:`${F.value.height}px`,transition:`${F.value.duration}s`})},null,4)):e.createCommentVNode("",!0),"emoji"==v.value?(e.openBlock(),e.createBlock(Ml,{key:1,onSetEmoj:B})):e.createCommentVNode("",!0),"plus"==v.value?(e.openBlock(),e.createBlock(wl,{key:2,onSend:L,msg:o},null,8,["msg"])):e.createCommentVNode("",!0)]),e.createElementVNode("video",{src:_.value,id:"video",onFullscreenchange:Z},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:R},[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)}}},Ll=M(bl,[["__scopeId","data-v-fb1150cb"]]),Pl={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;Se.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){Se.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 Al=M(Pl,[["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)}]]),Rl=M({__name:"index",setup(t){const{checkLink:n}=e.inject("util"),{userinfo:a}=O().state,o=e=>{n("pages/mine/"+e+"/index","navigateTo")};return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-me"},[e.createElementVNode("view",{class:"jy-me-header"},[e.createElementVNode("image",{class:"jy-me-header-img",src:e.unref(a).userPortrait,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"jy-me-header-na"},[e.createElementVNode("text",{class:"jy-me-header-name"},e.toDisplayString(e.unref(a).userRealName),1),e.createElementVNode("view",{class:"jy-me-header-phone df",onClick:i[0]||(i[0]=t=>e.unref(n)("pages/mine/delivery-address/index","navigateTo"))},[e.createElementVNode("image",{src:e.unref("/static/mine-dingwei.png"),mode:"aspectFill"},null,8,["src"]),e.createElementVNode("text",null,"收货地址")])])]),e.createElementVNode("view",{class:"jy-me-nav"},[e.createElementVNode("image",{onClick:i[1]||(i[1]=e=>o("customer_service")),src:e.unref("/static/mine-kefu.png"),mode:"aspectFill"},null,8,["src"]),e.createElementVNode("image",{onClick:i[2]||(i[2]=e=>o("set-up")),src:e.unref("/static/mine-shezhi.png"),mode:"aspectFill"},null,8,["src"])])]))}},[["__scopeId","data-v-c5cddcce"]]),Ol=M({__name:"index",setup:t=>(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"jy-wallet-container",onClick:n[0]||(n[0]=e=>{return t="/pages/mine/balance/index",void uni.navigateTo({url:t});var t})},[e.createElementVNode("view",{class:"left df aic"},[e.createElementVNode("image",{src:e.unref("/static/mine-wallet.png"),mode:"aspectFill"},null,8,["src"]),e.createElementVNode("text",null,"我的钱包")]),e.createElementVNode("view",{class:"right df aic"},[e.createElementVNode("text",null,"查看余额"),e.createVNode(a,{type:"right"})])])}},[["__scopeId","data-v-0d382502"]]),Bl=M({__name:"index",setup(t){const n=(e,t,n)=>{let a="";switch(t.type){case"order":switch(a+=t.url,e){case"right":a=t.url+"?currentTab="+t.value;break;case"item":a=t.url+"?currentTab="+n.value}break;case"historical":case"merchants":a+=n.url}g("log","at pages/mine/components/jy-mine-content/index.vue:67",a),uni.navigateTo({url:a})},a=e.ref([{left:!0,title:"我的订单",right:!0,right_icon:"right",right_title:"全部",value:1,url:"/pages/shop/order/index",type:"order",children:[{icon:"/static/mine-daifukuan.png",title:"待付款",value:2},{icon:"/static/mine-daifahuo.png",title:"待发货",value:3},{icon:"/static/mine-daishouhuo.png",title:"待收货",value:4},{icon:"/static/mine-daipingjia.png",title:"待评价",value:5},{icon:"/static/mine-tuikuan_shouhou.png",title:"退款/售后",value:6}]},{left:!1,title:null,right:!1,right_icon:null,right_title:null,type:"historical",children:[{icon:"/static/mine-wodeshoucang.png",title:"我的收藏",url:"/pages/mine/collection/index"},{icon:"/static/mine-dianpushoucang.png",title:"店铺收藏",url:"/pages/mine/target-store/index"},{icon:"/static/mine-lishijilu.png",title:"历史浏览",url:"/pages/mine/historical-browsing/index"},{icon:"/static/mine-youhuiquan.png",title:"优惠券",url:"/pages/mine/coupon/index"}]},{left:!0,title:"商家管理",right:!1,right_icon:null,right_title:null,type:"merchants",children:[{icon:"/static/mine-ruzhushangjia.png",title:"入住商家",url:"/pages/shop/settle"},{icon:"/static/mien-dianpuguanli.png",title:"店铺管理",url:"/pages/merchant/business-operator/index"},{icon:"/static/mine-dingdanguanli.png",title:"订单管理",url:"pages/merchant/order/index"},{icon:"/static/mine-kehuxiaoxi.png",title:"客户消息"}]}]);return(t,o)=>{const i=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"jy-mine-content"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"card-list",key:a},[t.left?(e.openBlock(),e.createElementBlock("view",{key:0,class:"card-item-top"},[e.createElementVNode("text",{class:"card-item-text"},e.toDisplayString(t.title),1),t.right?(e.openBlock(),e.createElementBlock("view",{key:0,class:"card-item-right",onClick:e=>n("right",t)},[e.createElementVNode("text",null,e.toDisplayString(t.right_title),1),t.right_icon?(e.openBlock(),e.createBlock(i,{key:0,type:t.right_icon},null,8,["type"])):e.createCommentVNode("",!0)],8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"card-item-bottom"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((a,o)=>(e.openBlock(),e.createElementBlock("view",{class:"card-item-list",key:o,onClick:e=>n("item",t,a)},[e.createElementVNode("image",{src:a.icon,class:"card-item-list-item-icon"},null,8,["src"]),e.createElementVNode("text",{class:"card-item-list-item-text wsn"},e.toDisplayString(a.title),1)],8,["onClick"])))),128))])])))),128))])}}},[["__scopeId","data-v-69e061b2"]]),xl={__name:"mine",setup:t=>(t,n)=>{const a=f(e.resolveDynamicComponent("footerMenu"),On);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"underpainting p25"},[e.createVNode(e.unref(Rl)),e.createVNode(e.unref(Ol)),e.createVNode(e.unref(Bl)),e.createVNode(e.unref(Nc))]),e.createVNode(a,{ref:"footerMneuRef",page:"mine"},null,512)],64)}},Ul=M({__name:"index",setup(t){const{userinfo:n}=O().state,a=[{id:ul.TYPES.ALLOW_TYPE_ALLOW_ANY,name:"允许任何人添加"},{id:ul.TYPES.ALLOW_TYPE_NEED_CONFIRM,name:"需要确认才能添加"},{id:ul.TYPES.ALLOW_TYPE_DENY_ANY,name:"不允许任何人添加 "}],o=e.ref(0),i=e.ref({}),s=e.ref(0);function r(e){const t=e.detail.value;t!==o.value&&(o.value=t,uni.$chat.updateMyProfile({allowType:a[o.value].id}))}function c(e){uni.navigateTo({url:e})}function l(){alert({title:"提示",content:"确定退出登录?"}).then((e=>{e.confirm&&logout((()=>{plus.runtime.restart()}))}))}return C((()=>{Te.isLogin((()=>{uni.$chat.getMyProfile().then((e=>{const t=e.data;i.value=t,o.value=a.findIndex((e=>e.id==t.allowType))}))}));let e=uni.getSystemInfoSync();g("log","at pages/mine/set-up/index.vue:125","system",e),s.value=e.appVersion})),(t,u)=>{const d=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"area plr30 f30 c333"},[e.createElementVNode("view",{class:"line rows ptb20 plr10"},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{class:"head-portrait wh80",src:e.unref(n).userPortrait,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"inkfo f1 ml20"},[e.createElementVNode("view",{class:""},e.toDisplayString(e.unref(n).userNickname),1),e.createElementVNode("view",{class:"account mt10 c999 f26"},"账号:"+e.toDisplayString(e.unref(n).userAccount),1)])]),e.unref(n).userId?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("view",{class:"line rows ptb20 plr10"},[e.createElementVNode("view",{class:""},"绑定手机号"),e.createElementVNode("view",{class:"f1 tar c666 f28"},e.toDisplayString(e.unref(n).userPhone),1)]),e.createElementVNode("view",{class:"line rows ptb20 plr10",onClick:u[0]||(u[0]=e=>c("/pages/mine/real-name-authentication/index"))},[e.createElementVNode("view",{class:""},"实名认证"),e.createElementVNode("view",{class:"f1 tar"},[e.createVNode(d,{type:"right"})])]),i.value.userID?(e.openBlock(),e.createElementBlock("view",{key:0,class:"line"},[e.createElementVNode("picker",{range:a,"range-key":"name",onChange:r,value:o.value},[e.createElementVNode("view",{class:"rows ptb20 plr10"},[e.createElementVNode("view",{class:""},"好友验证方式"),e.createElementVNode("view",{class:"value mlr20 f1 tar c666 f28"},e.toDisplayString(a[o.value].name),1),e.createVNode(d,{type:"right"})])],40,["value"])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"line rows ptb20 plr10",onClick:u[1]||(u[1]=e=>c("/pages/mine/teen"))},[e.createElementVNode("view",{class:""},"青少年模式"),e.createElementVNode("view",{class:"f1 tar"},[e.createVNode(d,{type:"right"})])])],64)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"line rows ptb20 plr10",onClick:u[2]||(u[2]=t=>c(e.unref(Te).setUrl("/pages/index/article",{id:6})))},[e.createElementVNode("view",{class:""},"用户协议"),e.createVNode(d,{type:"right"})]),e.createElementVNode("view",{class:"line rows ptb20 plr10",onClick:u[3]||(u[3]=t=>c(e.unref(Te).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(s.value),1)])]),e.createElementVNode("view",{class:"fill",style:{height:"240rpx"}}),e.createElementVNode("view",{class:"footer bfff"},[e.createElementVNode("view",{class:"mtb30"},[e.createElementVNode("view",{onClick:u[4]||(u[4]=e=>t.checkLink("pages/mine/switch-accounts/index")),class:"btn"},"切换账号")]),e.createElementVNode("view",{class:"mtb30"},[e.createElementVNode("view",{onClick:l,class:"btn"},"退出登录")])])],64)}}},[["__scopeId","data-v-76ef46af"]]),Vl=M({__name:"userinfo",setup(t){const n=O(),a=e.reactive({}),o=[{id:1,name:"男"},{id:2,name:"女"}],i=e.ref(0);function s(e){const t=e.detail.value;a.birth!==t&&(a.birth=t)}function r(e){const t=e.detail.value;i.value!==t&&(i.value=t)}function c(e){Te.upload_image({value:a[e],type:1,success:t=>{a[e]=t.value}})}function l(){o[i.value]&&(a.userGender=o[i.value].id);const e={...a};e.userPortrait&&(e.userPortrait=Te.replace_url(e.userPortrait)),e.background&&(e.background=Te.replace_url(e.background)),Se.mine.updateUserInfo({data:e}).then((e=>{if(200===e.code)return n.commit("setState",{key:"userinfo",value:Object.assign(n.state.userinfo,a)}),void Te.alert("修改成功");Te.alert({content:e.msg,showCancel:!1})}))}return C((()=>{!function(){const e=n.state.userinfo;a.background=e.background,a.userPortrait=e.userPortrait,a.userAccount=e.userAccount,a.userNickname=e.userNickname,a.userAddress=e.userAddress,a.userBrief=e.userBrief,a.userId=e.userId,a.birth=e.birth,i.value=o.findIndex((t=>t.id==e.userGender))}()})),(t,n)=>{const u=f(e.resolveDynamicComponent("uni-icons"),w);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("userPortrait")),["stop"]))},[e.createElementVNode("image",{class:"avatar wh200 cir",src:a.userPortrait,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.userAccount),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.birth?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(a.birth),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,"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))],32),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.userAddress=e),placeholder:"请输入你的家乡"},null,512),[[e.vModelText,a.userAddress]])]),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.userBrief=e),placeholder:"写点什么介绍下自己",style:{height:"300rpx"}},null,512),[[e.vModelText,a.userBrief]])])]),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-ff7ab5d8"]]),Gl=M({__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"))},p=(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)},m=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"),rl),_=f(e.resolveDynamicComponent("uni-swipe-action"),cl);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(tl,{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:m,onClick:p,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?Te.logout((()=>{Se.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"]]),Fl="/static/mine-pay-use.png",Yl=M({__name:"index",setup(t){const n=e.ref(!1),a=()=>{g("log","at pages/mine/pay-use/index.vue:40","===================================="),g("log","at pages/mine/pay-use/index.vue:41","关闭服务"),g("log","at pages/mine/pay-use/index.vue:42","====================================")};return(t,o)=>{const i=f(e.resolveDynamicComponent("uni-section"),va);return e.openBlock(),e.createElementBlock("view",{class:"jy-pay-use pr",style:e.normalizeStyle({height:e.unref(Vn)()})},[n.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"container-open"},[e.createElementVNode("image",{src:e.unref(Fl),mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",null,[e.createElementVNode("span",null,"先用后付"),e.createElementVNode("span",{class:"success"},"开通成功")])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"container-close"},[e.createElementVNode("view",{class:"bfff"},[e.createVNode(e.unref(Fn),{isRight:!1})]),e.createElementVNode("image",{src:e.unref(Fl),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(i,{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:"jy-pay-use-close pa",onClick:a,style:e.normalizeStyle({bottom:e.unref(xn)()})},[e.createElementVNode("button",{class:"button"},e.toDisplayString(e.unref(Fl)?"关闭服务":"开启服务"),1)],4)],4)}}},[["__scopeId","data-v-4b5fbbf5"]]),Hl=M({__name:"index",setup(t){const n=h("Hisign-Face"),a=O(),o=e.reactive({userRealName:"",userId:"",userIdCard:""}),i=e.ref(""),s=e.computed((()=>a.state.userinfo)),r=e.computed((()=>{let e=s.value.userIdCard||"";return e&&(e=e.slice(0,1)+"*".repeat(s.value.userIdCard.length-2)+e.slice(-1)),e}));function c(){n.startLive({openSound:!0,signKey:"HISP1YFG44LQ29W0"},(e=>{g("log","at pages/mine/real-name-authentication/index.vue:65","startLive",e),0==e.errorCode?i.value=e.liveImage:1==e.errorCode&&"活体检测未通过"==e.errorMessage&&Te.alert({title:"系统提示",content:"检测失败请重试",showCancel:!1})}))}function l(){const e={...o};if(!e.userRealName)return void Te.alert("真实姓名不能为空");if(!e.userIdCard)return void Te.alert("用户身份证号不能为空");if(!i.value)return void Te.alert("请先进行人脸识别");e.userId=s.value.userId,e.image=i.value;const t=uni.getSystemInfoSync();e.userImei=t.deviceId,Se.mine.certification({query:{},data:e}).then((e=>{if(g("log","at pages/mine/real-name-authentication/index.vue:111","certification",e),200==e.code)return Te.alert("认证成功"),Te.getUserinfo(),void setTimeout((()=>{uni.navigateBack()}),500);Te.alert({content:e.msg,showCancel:!1})}))}return(t,n)=>{f(e.resolveDynamicComponent("uni-file-picker"),Kr);const a=f(e.resolveDynamicComponent("uni-easyinput"),Da);return s.value.userIdCard?(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.userRealName),1),e.createElementVNode("view",{class:"mt50"},e.toDisplayString(r.value),1)])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"jy-real-name-authentication"},[e.createCommentVNode("",!0),e.createElementVNode("view",{class:"df aic jcsb"},[e.createElementVNode("view",{class:"pd df aic"},[e.createElementVNode("text",{class:"title"},"真实姓名"),e.createElementVNode("view",null,[e.createVNode(a,{inputBorder:!1,type:"text",modelValue:o.userRealName,"onUpdate:modelValue":n[0]||(n[0]=e=>o.userRealName=e),placeholder:"请输入姓名"},null,8,["modelValue"])])])]),e.createElementVNode("view",{class:"df aic jcsb"},[e.createElementVNode("view",{class:"pd df aic"},[e.createElementVNode("text",{class:"title"},"身份证号"),e.createElementVNode("view",null,[e.createVNode(a,{inputBorder:!1,type:"text",modelValue:o.userIdCard,"onUpdate:modelValue":n[1]||(n[1]=e=>o.userIdCard=e),placeholder:"请输入身份证号"},null,8,["modelValue"])])])]),e.createElementVNode("view",{class:"df aic jcsb"},[e.createElementVNode("view",{class:"pd df aic"},[e.createElementVNode("text",{class:"title"},"人脸识别"),e.createElementVNode("view",null,[e.createElementVNode("button",{class:"btn",onClick:c},[i.value?(e.openBlock(),e.createElementBlock("text",{key:0},"重新识别")):(e.openBlock(),e.createElementBlock("text",{key:1},"开始识别"))])])])]),e.createElementVNode("view",null,[e.createElementVNode("button",{class:"save",onClick:l},"提交")])]))}}},[["__scopeId","data-v-a4e7724d"]]),Zl=M({__name:"index",props:{addressData:{type:Array,default:()=>({})},addBtnStyles:{type:Object,default:()=>({})}},emits:["setDefault","delete","edit","choose"],setup(t,{emit:n}){const a=n,o=t;g("log","at pages/mine/components/jy-address/index.vue:46","===================================="),g("log","at pages/mine/components/jy-address/index.vue:47",o.addressData),g("log","at pages/mine/components/jy-address/index.vue:48","====================================");return(n,o)=>{const i=f(e.resolveDynamicComponent("uni-tag"),Ea);return e.openBlock(),e.createElementBlock("view",{class:"page-wrapper"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.addressData,(t=>(e.openBlock(),e.createElementBlock("view",{key:t.id,class:"address-item",onClick:e=>a("choose",t)},[e.createElementVNode("view",{class:"top-area"},[e.createElementVNode("text",{class:"name"},e.toDisplayString(t.name),1),e.createElementVNode("text",{class:"phone"},e.toDisplayString(t.phone),1)]),e.createElementVNode("view",{class:"address-text"},e.toDisplayString(t.address),1),e.createElementVNode("view",{class:"bottom-area"},[e.createElementVNode("label",null,[e.createElementVNode("checkbox",{onClick:e.withModifiers((e=>a("setDefault",t)),["stop"]),color:"#f60",disabled:"",style:{transform:"scale(0.8)"},class:e.normalizeClass([t.isDefault&&"isDefault"]),checked:t.isDefault},null,10,["onClick","checked"]),e.createElementVNode("text",{onClick:e.withModifiers((e=>a("setDefault",t)),["stop"]),class:"set-def-text"},"设为默认",8,["onClick"])]),e.createElementVNode("view",{class:"operation-btns"},[e.createVNode(i,{class:"mlr10",onClick:e.withModifiers((e=>a("edit",t)),["stop"]),inverted:!0,text:"复制",type:"warning",size:"small"},null,8,["onClick"]),e.createVNode(i,{class:"mlr1",onClick:e.withModifiers((e=>{return n=t,void uni.setClipboardData({data:n.address,success:()=>{uni.showToast({title:"复制成功",icon:"success"})},fail:()=>{uni.showToast({title:"复制失败",icon:"none"})}});var n}),["stop"]),inverted:!0,text:"修改",type:"warning",size:"small"},null,8,["onClick"])])]),e.createElementVNode("text",{class:"delete",onClick:e.withModifiers((e=>a("delete",t)),["stop"])},"×",8,["onClick"])],8,["onClick"])))),128))])}}},[["__scopeId","data-v-869aa56d"]]);var ql=[{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 jl(){for(var e=[],t=0;t{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:jl(),citys:Jl(zl[0]),areas:Xl(zl[0],zl[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=Jl(e);let t=this.citys.indexOf(this.city);this.areas=Xl(e,t);let n=this.areas.indexOf(this.area);this.value=[e,t,n],Kl(e,t,n)},handleNYZAreaChange:function(e){var t=this,n=e.detail.value;if(zl[0]!=n[0]){zl=[n[0],0,0];let e=Jl(zl[0]),a=Xl(zl[0],0);t.setData({citys:e,areas:a,value:[zl[0],0,0]});let o=Kl(zl[0],zl[1],zl[2]);t.$emit("changeClick",Wl[zl[0]],e[zl[1]],a[zl[2]],o)}else if(zl[1]!=n[1]){zl=[n[0],n[1],0];let e=Jl(zl[0]),a=Xl(zl[0],n[1]);t.setData({citys:e,areas:a,value:[zl[0],zl[1],0]});let o=Kl(zl[0],zl[1],zl[2]);t.$emit("changeClick",Wl[zl[0]],e[zl[1]],a[zl[2]],o)}else if(zl[2]!=n[2]){zl=[n[0],n[1],n[2]];let e=Jl(zl[0]),a=Xl(zl[0],n[1]);t.setData({citys:e,areas:a,value:[zl[0],zl[1],zl[2]]});let o=Kl(zl[0],zl[1],zl[2]);t.$emit("changeClick",Wl[zl[0]],e[zl[1]],a[zl[2]],o)}},handleNYZAreaSelect:function(e){var t=e;this.$emit("sureSelectArea",{detail:t},{}),zl=[0,0,0]},handleNYZAreaCancle:function(e){this.$emit("hideShow",{detail:!1}),zl=[0,0,0]}}};const $l={components:{JyCommonHead:Fn,JyAddress:Zl,pickRegions:M(Ql,[["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"]]),JyBottomBtn:Wr,JyPopup:ja},mixins:[Fc],mounted(){this.init()},methods:{openPopup(){this.$refs.addressPopup.open()},init(){this.getData({api:"address",fn:"list"},{}),g("log","at pages/mine/delivery-address/index.vue:66","===================================="),g("log","at pages/mine/delivery-address/index.vue:67",this.listProperty),g("log","at pages/mine/delivery-address/index.vue:68","====================================")},onReachBottomHandler(){this.listProperty.params.pageNum++,this.init()},onPullDownRefreshHandler(){this.listProperty.params.pageNum=1,this.getData({api:"address",fn:"list"},{},!0)}},setup(){e.getCurrentInstance();const t=e.ref(!1),n=e.reactive({recipientName:void 0,phoneNumber:void 0,district:void 0,postalCode:void 0,city:void 0,province:void 0,addressDetail:void 0}),a=()=>{uni.navigateTo({url:"/pages/mine/address-add"})};return{addressData: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)}]),formData:n,setDefault:()=>{g("log","at pages/mine/delivery-address/index.vue:109","setDefault")},add:a,show:t,add:a,changeClick:(e,t,n,a)=>{g("log","at pages/mine/delivery-address/index.vue:90","地址选择器 = "+e+t+n+a)},onsetCity:e=>{g("log","at pages/mine/delivery-address/index.vue:94","===================================="),g("log","at pages/mine/delivery-address/index.vue:95",e),g("log","at pages/mine/delivery-address/index.vue:96","===================================="),t.value=!1},onhideShow:()=>{t.value=!0},saveApi:()=>{(n.recipientName?n.phoneNumber&&/^1[3-9]\d{9}$/.test(n.phoneNumber)||(uni.showToast({title:"请输入正确的手机号",icon:"none"}),0):(uni.showToast({title:"请输入收货人",icon:"none"}),0))&&g("log","at pages/mine/delivery-address/index.vue:132","保存地址:",n)}}}};const eu=M($l,[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("JyCommonHead"),c=e.resolveComponent("JyAddress"),l=e.resolveComponent("JyBottomBtn"),u=f(e.resolveDynamicComponent("uni-forms-item"),Na),d=f(e.resolveDynamicComponent("uni-easyinput"),Da),p=f(e.resolveDynamicComponent("uni-forms"),qa),m=e.resolveComponent("pickRegions"),h=e.resolveComponent("JyPopup");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"jy-address-list"},[e.createVNode(r,{title:"收获地址",isRight:!1}),e.createVNode(c,{addressData:t.listProperty.list,onSetDefault:o.setDefault},null,8,["addressData","onSetDefault"]),e.createVNode(l,{onClick:s.openPopup},{default:e.withCtx((()=>[e.createTextVNode("添加地址")])),_:1},8,["onClick"])]),e.createVNode(h,{ref:"addressPopup",title:"添加收货地址",type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"p25"},[e.createVNode(p,{modelValue:o.formData},{default:e.withCtx((()=>[e.createVNode(u,{label:"收货人",name:"recipientName"},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>o.formData.recipientName=e),placeholder:"请输入姓名"},null,512),[[e.vModelText,o.formData.recipientName]])])),_:1}),e.createVNode(u,{label:"手机号",name:"phoneNumber"},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":n[1]||(n[1]=e=>o.formData.phoneNumber=e),placeholder:"请输入手机号"},null,512),[[e.vModelText,o.formData.phoneNumber]])])),_:1}),e.createVNode(u,{label:"邮编",name:"postalCode"},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":n[2]||(n[2]=e=>o.formData.postalCode=e),placeholder:"请输入邮编"},null,512),[[e.vModelText,o.formData.postalCode]])])),_:1}),e.createVNode(u,{label:"地区",name:"areas"},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{onClick:n[3]||(n[3]=(...e)=>o.onhideShow&&o.onhideShow(...e)),type:"text","onUpdate:modelValue":n[4]||(n[4]=e=>o.formData.areas=e),placeholder:"请输入地区"},null,512),[[e.vModelText,o.formData.areas]])])),_:1}),e.createVNode(u,{label:"详细地址",name:"addressDetail"},{default:e.withCtx((()=>[e.createVNode(d,{type:"textarea",autoHeight:"",modelValue:o.formData.addressDetail,"onUpdate:modelValue":n[5]||(n[5]=e=>o.formData.addressDetail=e),placeholder:"如街道,门牌号,小区,乡镇,村等"},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue"]),e.createVNode(m,{province:o.add.province,city:o.add.city,area:o.add.area,show:o.show,onChangeClick:o.changeClick,onSureSelectArea:o.onsetCity,onHideShow:o.onhideShow},null,8,["province","city","area","show","onChangeClick","onSureSelectArea","onHideShow"]),e.createElementVNode("button",{class:"add-address-btn",onClick:n[6]||(n[6]=(...e)=>o.saveApi&&o.saveApi(...e))},"保存")])])),_:1},512)],64)}],["__scopeId","data-v-833912f9"]]),tu=M({__name:"index",props:{item:{type:Object,default:()=>{}}},setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-balance-list-item"},[e.createElementVNode("view",{class:"df jcsb aic mb20"},[e.createElementVNode("text",{class:"jy-balance-list-item-name"},"充值"),e.createElementVNode("text",{class:"jy-balance-list-item-money"},"+1.00")]),e.createElementVNode("text",{class:"jy-balance-list-item-time"},"2021-08-01 12:00:00")]))},[["__scopeId","data-v-27ab7603"]]),nu=M({__name:"index",setup(t){const n=e.ref(null),a=e.reactive({bankNub:""}),o=()=>{g("log","at pages/mine/balance/index.vue:57","我是保存"),n.close()};return(t,i)=>{const s=f(e.resolveDynamicComponent("uni-icons"),w),r=f(e.resolveDynamicComponent("uni-section"),va),c=f(e.resolveDynamicComponent("uni-easyinput"),Da),l=f(e.resolveDynamicComponent("uni-forms-item"),Na),u=f(e.resolveDynamicComponent("uni-forms"),qa),d=f(e.resolveDynamicComponent("uni-popup"),Rn);return e.openBlock(),e.createElementBlock("view",{class:"jy-balance-container underpainting"},[e.createVNode(e.unref(Fn),{title:"余额"}),e.createElementVNode("view",{class:"jy-balance-content"},[e.createElementVNode("view",{class:"df aifc fdc mt20 plr40"},[e.createElementVNode("text",{class:"jy-balance-title"},"可用余额(元)"),e.createElementVNode("text",{class:"jy-balance-pcie"},"1.00")]),e.createElementVNode("image",{class:"mineBalance",src:e.unref("/static/mine-balance.png"),mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"btn-group"},[e.createElementVNode("view",{class:"jy-balance-btn cz"},"充值"),e.createElementVNode("view",{onClick:i[0]||(i[0]=e=>n.value.open()),class:"jy-balance-btn tx"},"提现")])]),e.createElementVNode("view",{class:"jy-balance-list"},[e.createVNode(r,{class:"line",title:"明细变动",onClick:i[1]||(i[1]=e=>{return t="/pages/mine/balance-details/index",void uni.navigateTo({url:t});var t})},{default:e.withCtx((()=>[e.createVNode(e.unref(tu))])),right:e.withCtx((()=>[e.createVNode(s,{type:"right"})])),_:1})]),e.createVNode(d,{ref_key:"withdrawalPopup",ref:n,type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"jy-withdrawal-popup f1 bfff pr"},[e.createElementVNode("view",{class:"title"},[e.createElementVNode("text",null,"输入提现账号")]),e.createElementVNode("view",{class:"close-btn",onClick:i[2]||(i[2]=e=>n.value.close())},"×"),e.createElementVNode("view",{class:"p25"},[e.createVNode(u,{modelValue:a},{default:e.withCtx((()=>[e.createVNode(l,{label:"输入卡号",name:"name"},{default:e.withCtx((()=>[e.createVNode(c,{inputBorder:!1,type:"text",suffixIcon:"scan",modelValue:a.bankNub,"onUpdate:modelValue":i[3]||(i[3]=e=>a.bankNub=e),placeholder:"点击输入本人银行卡号"},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue"]),e.createElementVNode("button",{class:"save-btn",onClick:o},"保存")])])])),_:1},512)])}}},[["__scopeId","data-v-15cb9126"]]),au=M({__name:"index",setup:t=>(S((()=>{g("log","at pages/mine/balance-details/index.vue:16","===================================="),g("log","at pages/mine/balance-details/index.vue:17","加载到底了通知刷新"),g("log","at pages/mine/balance-details/index.vue:18","====================================")})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-balance-page"},[e.createVNode(e.unref(Fn),{title:"明细"}),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,n)=>e.createElementVNode("view",null,[e.createElementVNode("view",{class:"jy-balance-title"},"2024年02月"),e.createVNode(e.unref(tu),{class:"jy-balance-item"})]))),64))])))},[["__scopeId","data-v-281c4fcc"]]);const ou=M({components:{JyCommodityInformation:ka},mixins:[Fc],mounted(){this.init()},methods:{init(){this.getData({api:"ProductBrowsingHistory",fn:"list"},{})},onReachBottomHandler(){this.listProperty.params.pageNum++,this.init()},onPullDownRefreshHandler(){this.listProperty.params.pageNum=1,this.getData({api:"ProductBrowsingHistory",fn:"list"},{},!0)}}},[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("JyCommodityInformation"),c=f(e.resolveDynamicComponent("uni-section"),va),l=f(e.resolveDynamicComponent("uni-load-more"),sa);return e.openBlock(),e.createElementBlock("view",{class:"jy-history-view"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.listProperty.list,((t,n)=>(e.openBlock(),e.createBlock(c,{class:"plr20",title:t.time,key:n},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"commodity-list"},[e.createVNode(r,{orderInfo:t,showType:2},null,8,["orderInfo"])])])),_:2},1032,["title"])))),128)),e.createVNode(l,{status:t.listProperty.status},null,8,["status"])])}],["__scopeId","data-v-3b0ca0a9"]]),iu={__name:"index",setup(t){const n=e.ref([]),a=e=>{n.value=e.detail.value},o=()=>{Qr.emit("changeShop",n.value),uni.navigateBack()};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"jy-browsed"},[e.createElementVNode("checkbox-group",{onChange:a},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(1,((t,n)=>e.createElementVNode("view",{key:n},[e.createElementVNode("view",{class:"select-card"},[e.createElementVNode("view",{class:"date f28 c333"},"7月2日"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"checkbox-list",key:n},[e.createElementVNode("checkbox",{value:t+"",backgroundColor:"#ffffff",iconColor:"#ffffff",activeBackgroundColor:"#F8BA4D",activeBorderColor:"#F8BA4D",color:"#FFCC33",style:{transform:"scale(0.7)"}},null,8,["value"]),e.createVNode(ka,{showType:3})])))),128))]),e.createElementVNode("line")]))),64))],32),e.createVNode(e.unref(Wr),{onClick:o},{default:e.withCtx((()=>[e.createTextVNode("发送商品")])),_:1})]))}},su=M(iu,[["__scopeId","data-v-c4a833a6"]]),ru={components:{JyCommodityInformation:ka,JyShopInformation:Ia},mixins:[Fc],data:()=>({bottomSafeAreaHeight:xn,checkNum:[]}),mounted(){this.init()},methods:{init(){this.getData({api:"shoppingCart",fn:"list"},{})},onReachBottomHandler(){this.listProperty.params.pageNum++,this.init()},onPullDownRefreshHandler(){this.listProperty.params.pageNum=1,this.getData({api:"shoppingCart",fn:"list"},{},!0)},checkboxChange(e){g("log","at pages/mine/collection/index.vue:71","checkboxChange",e),checkNum=e.detail.value}}};const cu=M(ru,[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("JyShopInformation"),c=e.resolveComponent("JyCommodityInformation");return t.listProperty.list.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"jy-collection"},[e.createElementVNode("checkbox-group",{onChange:n[0]||(n[0]=(...e)=>s.checkboxChange&&s.checkboxChange(...e))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.listProperty.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:n},[e.createElementVNode("view",{class:"select-card"},[e.createVNode(r,{showStatus:!1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"checkbox-list",key:n},[e.createElementVNode("checkbox",{value:t+"",backgroundColor:"#ffffff",iconColor:"#ffffff",activeBackgroundColor:"#F8BA4D",activeBorderColor:"#F8BA4D",color:"#FFCC33",style:{transform:"scale(0.7)"}},null,8,["value"]),e.createVNode(c,{showType:3})])))),128))])])))),128))],32),e.createElementVNode("view",{class:"content-bottom",style:e.normalizeStyle({bottom:i.bottomSafeAreaHeight()})},[e.createElementVNode("view",{class:"c999 f24"},"以选"+e.toDisplayString(i.checkNum.length)+"款",1),e.createElementVNode("view",{class:"df aic"},[e.createElementVNode("text",{class:"c333 f28"},"应付:"),e.createElementVNode("text",{class:"price f20"},"¥"),e.createElementVNode("text",{class:"price"},"5.00")]),e.createElementVNode("button",{class:"content-bottom-price",onClick:n[1]||(n[1]=e=>t.goto("/pages/shop/continue-pay/index"))},[e.createElementVNode("text",{class:"cfff f24"},"去结算")])],4)])):e.createCommentVNode("",!0)}],["__scopeId","data-v-c9bb3328"]]),lu={components:{JyShopInformation:Ia},mixins:[Fc],data:()=>({imgStyle:{width:"78rpx",height:"78rpx","border-radius":" 6px"}}),mounted(){this.init()},methods:{async cancelFavorites(e){try{200==(await api.follow.delete({userId:this.userId.userId,storeId:e.storeId})).code&&(showToastAndRedirect("取消成功","none"),this.listProperty.params.pageNum=1,this.init())}catch(t){}},init(){this.listProperty.params.pageSize=20,this.getData({api:"follow",fn:"list"},{},!0)},onReachBottomHandler(){this.listProperty.params.pageNum++,this.init()},onPullDownRefreshHandler(){this.listProperty.params.pageNum=1,this.init()},checkboxChange(e){g("log","at pages/mine/target-store/index.vue:67","checkboxChange",e),checkNum=e.detail.value}}};const uu=M(lu,[["render",function(t,n,a,o,i,s){const r=f(e.resolveDynamicComponent("uni-tag"),Ea),c=e.resolveComponent("JyShopInformation");return e.openBlock(),e.createElementBlock("view",{class:"jy-follow-shop"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.listProperty.list,((t,n)=>(e.openBlock(),e.createBlock(c,{imgStyle:i.imgStyle,showStatus:!0,item:t,key:n},{shopRight:e.withCtx((()=>[e.createVNode(r,{onClick:e=>s.cancelFavorites(t),inverted:!0,text:"取消关注",type:"warning"},null,8,["onClick"])])),_:2},1032,["imgStyle","item"])))),128))])}]]);const du=M({components:{JyCouponCard:M({__name:"index",props:{item:{type:Object,default:()=>({})}},setup(t){const n=e.ref(!1),a={transform:"rotate(-180deg)"};return(t,o)=>{const i=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"jy-coupon-card bfff mtb20 br20"},[e.createElementVNode("view",{class:"jy-coupon-card-top df jcsb aic"},[e.createElementVNode("view",{class:"jy-coupon-card-top-left"},[e.createElementVNode("view",{class:"jy-coupon-card-top-left-name b"},"123"),e.createElementVNode("view",{class:"jy-coupon-card-top-left-time c999 f24"},"有效期至:2024.08.06 - 2024.08.06")]),e.createElementVNode("view",{class:"jy-coupon-card-top-right"},[e.createElementVNode("view",{class:"jy-coupon-card-top-right-price df"},[e.createElementVNode("text",{class:"f44 cFF9B27"},"¥"),e.createElementVNode("text",{class:"f72 cFF9B27"},"10")]),e.createElementVNode("view",{class:"jy-coupon-card-top-right-type f28 cFF9B27"},"无门槛")])]),e.createElementVNode("view",{class:"dividing-line"}),e.createElementVNode("view",{class:"jy-coupon-card-bottom df jcsb aic p25"},[e.createElementVNode("view",{class:"jy-coupon-card-bottom-left df jcsb aic",onClick:o[0]||(o[0]=e=>n.value=!n.value)},[e.createElementVNode("view",{class:e.normalizeClass(!n.value&&"thd")},"优惠卷介绍优惠卷介绍优惠卷介绍优惠卷...",2),e.createElementVNode("view",{class:"jy-coupon-card-bottom-left-arrow",style:e.normalizeStyle(n.value&&a)},[e.createVNode(i,{type:"down"})],4)]),e.createElementVNode("view",{class:"jy-coupon-card-bottom-right",onClick:o[1]||(o[1]=e=>t.useCoupon(t.coupon))},"去使用")])])}}},[["__scopeId","data-v-1f19a7d7"]])},mixins:[Fc],data:()=>({checkNum:[]}),mounted(){this.init()},methods:{init(){this.getData({api:"coupon",fn:"list"},{userId:null},!0)},onReachBottomHandler(){this.listProperty.params.pageNum++,this.init()},onPullDownRefreshHandler(){this.listProperty.params.pageNum=1,this.init()}}},[["render",function(t,n,a,o,i,s){const r=e.resolveComponent("JyCouponCard");return e.openBlock(),e.createElementBlock("view",{class:"jy-coupon"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.listProperty.list,((t,n)=>(e.openBlock(),e.createBlock(r,{key:n,item:t},null,8,["item"])))),128))])}],["__scopeId","data-v-2ff63716"]]),pu="/static/userMenu.png",mu="/static/lock.png",hu=M({__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.ref(0),s=e.reactive(new o);function r(){a.$refs.addCollectRef.close()}function c(){Te.upload_image({value:s.pic,type:1,success:e=>{s.pic=e.value}})}function l(){s.isPrivate=0==s.isPrivate?1:0}function u(){const e={...s};if(e.pic=Te.replace_url(e.pic),!s.collectName)return void Te.alert("请输入收藏夹名称");if(!s.pic)return void Te.alert("请上传封面图");e.pic=Te.replace_url(e.pic);let t="saveCollectList";s.collectId&&(t="updateCollectList"),Se.video[t]({query:e}).then((e=>{if(200==e.code)return uni.$emit("collectsVideo"),r(),void Object.assign(s,new o);Te.alert({content:e.msg,showCancel:!1})}))}return e.onMounted((()=>{uni.onKeyboardHeightChange((e=>{i.value=e.height}))})),e.onBeforeUnmount((()=>{uni.offKeyboardHeightChange((e=>{g("log","at components/index/collectAdd.vue:49","rs",e)}))})),n({open:function(e){e&&(s.collectName=e.collectName,s.isPrivate=e.isPrivate,s.collectId=e.id,s.pic=e.formatPic),a.$refs.addCollectRef.open()},close:r}),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),w),o=f(e.resolveDynamicComponent("uni-popup"),Rn);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},[s.pic?(e.openBlock(),e.createElementBlock("image",{key:0,class:"wh80 br10",src:s.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=>s.collectName=e),placeholder:"输入收藏夹名称"},null,512),[[e.vModelText,s.collectName]])])]),e.createElementVNode("view",{class:"rows fdr mtb30"},[e.createElementVNode("view",{class:"df fdr aic"},[e.createElementVNode("text",null,"是否快捷收藏夹"),e.createElementVNode("image",{src:mu,mode:"aspectFit",class:"wh24 ml10"})]),e.createElementVNode("switch",{class:"switch",checked:1==s.isPrivate,color:"#F85050",onChange:l},null,40,["checked"])]),e.createElementVNode("view",{style:e.normalizeStyle({height:i.value+"px"})},null,4)])])),_:1},512)}}},[["__scopeId","data-v-4bf5b075"]]),gu=M({__name:"collectList",props:{pageSize:{type:[String,Number],default:10}},emits:["handleItem"],setup(t,{expose:n,emit:a}){const{proxy:o}=e.getCurrentInstance(),i=t,s=e.ref(!0),r=e.reactive({data:[],pageNum:1,total:0}),c=[{text:"删除",style:{backgroundColor:"#F85050"}},{text:"编辑",style:{backgroundColor:"#00ADEE"}}],l=a;function u(){r.pageNum=1,d()}function d(){Se.video.getCollectList({query:{pageNum:r.pageNum,pageSize:i.pageSize}}).then((e=>{if(200===e.code){const t=e.rows;return 1==r.pageNum&&(r.data.length=0),r.data.push(...t.map((e=>(e.formatPic=Te.format_url(e.pic,"img"),e)))),void(r.total=e.total)}Te.alert(e.msg)})).finally((()=>{s.value=!1}))}function p(e,t){const n=e.index,a=r.data[t];switch(n){case 0:Te.alert({content:"确认删除收藏夹?"}).then((e=>{e.confirm&&function(e,t){Se.video.deleteCollect({query:{jyCollectId:e.id}}).then((e=>{if(200===e.code)return r.total--,void r.data.splice(t,1);Te.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",(()=>{u()})),uni.$on("login",(()=>{u()})),Te.isLogin().then((()=>{setTimeout((()=>{d()}),1e3)}))})),n({getList:d,getMoreList:function(){r.total<=r.data.length||(r.pageNum++,d())},refrshList:u}),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),w),o=f(e.resolveDynamicComponent("uni-swipe-action-item"),rl),i=f(e.resolveDynamicComponent("uni-swipe-action"),cl);return e.openBlock(),e.createElementBlock(e.Fragment,null,[s.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(i,{key:1,ref:"swipeActionRef"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"collect"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.data,((t,n)=>(e.openBlock(),e.createBlock(o,{"right-options":c,key:n,onClick:e=>p(e,n)},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"item rows fdr mlr20 ptb20",onClick:e.withModifiers((e=>function(e){l("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:mu,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(hu,{ref:"collectAddRef"},null,512)],64)}}},[["__scopeId","data-v-d9869414"]]),fu=M({__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"),w);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:Te.setUrl("/pages/index/videoDetail",{videoId:e.videoId,isMine:o.isMine})});else if("menu"==o.mode)c.value=e.format_videoUrl;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)}}i("item",e)}(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-20c50acd"]]),vu=M({__name:"product",setup(t,{expose:n}){const a=e.reactive({data:[],pageSize:10,pageNum:1,total:0});function o(){Se.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=Te.format_url(e.videoUrl,"video"),e.format_imageUrl=Te.format_url(e.imageUrl,"img"),e)))),void(a.total=e.total);Te.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(fu,{list:a.data,isMine:"1"},null,8,["list"])]))}},[["__scopeId","data-v-2351fbda"]]),_u=M({__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(){Se.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=Te.format_url(e.videoUrl,"video"),e.format_imageUrl=Te.format_url(e.imageUrl,"img"),e)))),void(a.total=e.total);Te.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(fu,{list:a.data},null,8,["list"])]))}},[["__scopeId","data-v-a9f82b4d"]]),yu={__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"}]),s=e.ref(0),r=e.computed((()=>i[s.value])),c=e.computed((()=>a.state.userinfo||{}));function l(e){uni.navigateTo({url:Te.setUrl("/pages/mine/collectsVideo",{collectId:e.id,collectName:e.collectName})})}function u(){Te.scan()}function d(e){uni.navigateTo({url:e})}function p(){Te.alert({content:"确认退出登录吗?"}).then((e=>{e.confirm&&(n.$refs.menuRef.close(),Te.logout((()=>{plus.runtime.restart()})))}))}return C((()=>{uni.$on("focusUser",(()=>{Te.getUserinfo()}))})),_((()=>{Te.isLogin((()=>{Te.getUserinfo()}))})),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("footerMenu"),On),r=f(e.resolveDynamicComponent("uni-icons"),w),m=f(e.resolveDynamicComponent("uni-popup"),Rn);return e.openBlock(),e.createElementBlock(e.Fragment,null,[c.value.userId?(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(el),e.createElementVNode("view",{class:"head"}),e.createElementVNode("view",{class:"header pf t0 l0 r0"},[e.createVNode(el),e.createElementVNode("view",{class:"head rows plr30 f40"},[e.createElementVNode("view",{class:"back",onClick:u},[e.createVNode(r,{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(r,{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.userPortrait,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(r,{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"},[e.createElementVNode("view",{class:"option"},[e.createElementVNode("view",{class:"value fmid f36 br10"},e.toDisplayString(c.value.userPraised),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.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"rows mt30"},[e.createElementVNode("view",{class:"desc f1 c333 f28"},e.toDisplayString(c.value.userBrief||"暂无个签~"),1)])]),e.createElementVNode("view",{class:"product mt30"},[e.createElementVNode("view",{class:"tab df"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item f1 tac",{active:s.value==n}]),key:n,onClick:e=>function(e){s.value!==e&&(s.value=e)}(n)},[e.createElementVNode("view",{class:"txt ptb10"},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:"line"})],10,["onClick"])))),128))]),e.withDirectives(e.createElementVNode("view",null,[e.createVNode(vu,{ref:"productRef"},null,512)],512),[[e.vShow,0===s.value]]),e.withDirectives(e.createElementVNode("view",{class:"like"},[e.createVNode(_u,{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[3]||(n[3]=e=>t.$refs.collectAddRef.open())},[e.createVNode(r,{type:"plus",size:"30rpx"}),e.createElementVNode("view",null,"添加收藏")]),e.createVNode(gu,{ref:"collectRef",onHandleItem:l},null,512)],512),[[e.vShow,2===s.value]]),e.createCommentVNode("",!0)]),e.createVNode(a,{ref:"footerMneuRef",page:"mine"},null,512)])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"page"},[e.createVNode(e.unref(nl),{class:"f1"}),e.createVNode(a,{ref:"footerMneuRef",page:"mine"},null,512)])),e.createVNode(hu,{ref:"collectAddRef"},null,512),e.createVNode(m,{ref:"menuRef",type:"right"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"menuAlt df fdc ptb50 plr40 bfff"},[e.createElementVNode("view",{class:"f1"},[e.createVNode(el),e.createElementVNode("view",{class:"head rows"},[e.createVNode(r,{type:"left",size:"40rpx",onClick:n[4]||(n[4]=e=>t.$refs.menuRef.close())}),e.createElementVNode("navigator",{url:"/pages/mine/set-up/index"},[e.createElementVNode("view",{class:""},"设置")])]),e.createElementVNode("view",{class:"list mt30 c000 f32"},[e.createElementVNode("navigator",{url:"/pages/index/wallet"},[e.createElementVNode("view",{class:"item rows ptb20"},[e.createElementVNode("image",{class:"wh50",src:pu,mode:"aspectFit"}),e.createElementVNode("view",{class:"txt ml20 f1"},"我的钱包")])]),e.createElementVNode("view",{onClick:n[5]||(n[5]=e=>{return t="/pages/index/myQrCode",void Te.isAuth({success(){uni.navigateTo({url:t})}});var t})},[e.createElementVNode("view",{class:"item rows ptb20"},[e.createElementVNode("image",{class:"wh50",src:pu,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:pu,mode:"aspectFit"}),e.createElementVNode("view",{class:"txt ml20 f1"},"个人资料")])])])]),e.createElementVNode("view",{class:"btn cancel",onClick:p},"退出登录")])])),_:1},512)],64)}}},Cu={__name:"video",setup(t){e.getCurrentInstance();const n=e.reactive(new class{constructor(){__publicField(this,"videoId",""),__publicField(this,"videoUrl",""),__publicField(this,"imageUrl",""),__publicField(this,"title",""),__publicField(this,"content",""),__publicField(this,"talk",""),__publicField(this,"subscriber",""),__publicField(this,"locationName",""),__publicField(this,"location",""),__publicField(this,"productUrl",""),__publicField(this,"productId",""),__publicField(this,"showTime",""),__publicField(this,"oneself",0),__publicField(this,"isDraft",""),__publicField(this,"type","")}});let a=e.reactive([]);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(){Te.upload_image({value:n.imageUrl,type:1,success:e=>{n.imageUrl=e.value}})}function u(){Te.upload_video({success:e=>{n.videoUrl=e.value,n.width=e.width,n.height=e.height}})}function d(){return new Promise(((e,t)=>{Se.video.getLabel({query:{parentId:0,search:o.value}}).then((t=>{if(200==t.code){const n=t.data;return a.length=0,a.push(...n),e(a),void(!n[0]&&o.value&&Te.alert({content:`当前没有${o.value}的话题,是否添加?`}).then((e=>{e.confirm&&Se.video.setLabel({data:{parentId:0,name:o.value}}).then((e=>{200!=e.code?Te.alert({content:e.msg,showCancel:!1}):d()}))})))}Te.alert({content:t.msg,showCancel:!1})}))}))}function p(e,t){i.splice(t,1)}function m(){s.data.length>=s.total||(s.pageNum++,h())}function h(){return new Promise(((e,t)=>{Se.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);Te.alert({content:t.msg,showCancel:!1})}))}))}function v(e){const t={...n};let a="publishVideo";if(n.videoId&&(a="updateVideo"),t.isDraft=e||0,t.videoUrl)if(t.imageUrl){if(0==t.isDraft){if(!t.title)return void Te.alert("标题不能为空");if(!t.content)return void Te.alert("正文不能为空")}i[0]&&(t.talkId=i.map((e=>e.id)).join(","),t.talk=i.map((e=>e.name)).join(",")),r[0]&&(t.subscriberId=r.map((e=>e.userId)).join(","),t.subscriber=r.map((e=>e.userNickname)).join(",")),t.videoUrl=Te.replace_url(t.videoUrl),t.imageUrl=Te.replace_url(t.imageUrl),Se.video[a]({data:t}).then((e=>{200!=e.code?Te.alert({content:e.msg,showCancel:!1}):Te.alert({content:0==t.isDraft?"视频发布成功,请等待后台审核":"保存草稿成功",showCancel:!1,confirmText:"我知道了"}).then((e=>{uni.navigateBack()}))}))}else Te.alert("封面不能为空");else Te.alert("视频不能为空")}return C((e=>{e.videoId?(n.videoId=e.videoId,Promise.all([new Promise(((e,t)=>{Se.video.getVideoById({query:{videoId:n.videoId}}).then((t=>{200!=t.code?Te.alert({content:t.msg,showCancel:!1}):e(t.data)}))})),d()]).then((e=>{const t=e[0];e[1],e[2],g("log","at pages/release/video.vue:85","release getDetail",t),n.videoUrl=Te.format_url(t.videoUrl,"video"),n.imageUrl=Te.format_url(t.imageUrl,"img"),n.title=t.title,n.content=t.content,n.isDraft=t.isDraft,t.talkId.split(",").forEach((e=>{for(let t=0;t{r.push({userId:e,userNickname:t.subscriber[n]})}))}))):d()})),(t,g)=>{const _=f(e.resolveDynamicComponent("uni-icons"),w),y=f(e.resolveDynamicComponent("uni-popup"),Rn);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.imageUrl?(e.openBlock(),e.createElementBlock("view",{key:0,class:"imgs wh200 br10"},[e.createElementVNode("image",{src:n.imageUrl,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(_,{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(_,{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":g[0]||(g[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":g[1]||(g[1]=e=>n.content=e),placeholder:"添加正文"},null,512),[[e.vModelText,n.content]])])]),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.name),1),e.createVNode(_,{type:"closeempty",size:"28rpx",onClick:e=>p(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(_,{type:"closeempty",size:"28rpx",onClick:e=>p(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:g[2]||(g[2]=e=>t.$refs.labelRef.open())},"#话题"),e.createElementVNode("view",{class:"item mr20 ptb5 plr20 bar",onClick:g[3]||(g[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:g[4]||(g[4]=e=>v(1))},"存草稿"),e.createElementVNode("view",{class:"btn bar lg colourful f1 ml30",onClick:g[5]||(g[5]=e=>v(0))},"发布作品")])]),e.createVNode(y,{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"},[e.createElementVNode("view",{class:"selection"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["option df aic",{active:i.map((e=>e.id)).includes(t.id)}]),key:n,onClick:e=>{return n=t,void(i.findIndex((e=>e.id==n.id))<0&&i.push(n));var n}},[e.createElementVNode("text",{class:"thd f1"},"#"+e.toDisplayString(t.name),1)],10,["onClick"])))),128))])])]),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.name),1),e.createVNode(_,{type:"closeempty",size:"28rpx",onClick:e=>p(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":g[6]||(g[6]=e=>o.value=e),placeholder:"输入你想选择的话题"},null,512),[[e.vModelText,o.value]]),e.createElementVNode("view",{class:"",onClick:d},"搜索")])])])),_:1},512),e.createVNode(y,{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:m},[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(_,{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":g[7]||(g[7]=e=>c.value=e),placeholder:"输入你想选择的用户"},null,512),[[e.vModelText,c.value]]),e.createElementVNode("view",{class:"",onClick:h},"搜索")])])])),_:1},512)])}}},Eu="/static/settedBoard.png",ku={__name:"wallet",setup(t){const{proxy:n}=e.getCurrentInstance(),a=e.reactive({data:[],pageNum:1,pageSize:30,total:0}),o=e.ref({score:0,fruit:0}),i=O();C((()=>{r(),Se.mine.myfreeze().then((e=>{g("log","at pages/index/wallet.vue:112","myfreeze",e),200==e.code&&e.data?o.value=e.data:util.alert({content:e.msg,showCancel:!1})}))})),T((()=>{a.homePageSize=1,r()})),S((()=>{!function(){if(a.total<=a.data.length)return;a.pageNum++,r()}()}));const s=e.computed((()=>i.state.userinfo));function r(){Se.mine.getBalanceLog({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),a.total=e.total,void g("log","at pages/index/wallet.vue:95",a);util.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))}function c(){n.$refs.freeze.open()}return(t,n)=>{const i=f(e.resolveDynamicComponent("uni-icons"),w),r=f(e.resolveDynamicComponent("uni-popup"),Rn);return e.openBlock(),e.createElementBlock("view",{class:"appbw plr60"},[e.createElementVNode("view",{class:"board mt60 ptb25 plr30 cfff 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(s.value.balance||0),1)]),e.createElementVNode("view",{class:"rows"},[e.createElementVNode("navigator",{url:"/pages/index/topUp","hover-class":"none",class:"btn sm bar black plr20"},"充值")])]),e.createElementVNode("view",{class:"mtb10"},"可用积分"+e.toDisplayString(s.value.score||0),1),e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"more df aic mtb30",onClick:c},[e.createElementVNode("view",{class:"f34 mr10"},"待释放"),e.createVNode(i,{type:"right"})]),e.createElementVNode("view",{class:"logBox mt30 mb60"},[e.createElementVNode("view",{class:"title c333 f28 b"},"使用明细"),e.createElementVNode("view",{class:"list mtb30 c666 f24"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item df aic mtb15",key:n},[e.createElementVNode("view",{class:"content f1"},e.toDisplayString(t.context),1),e.createElementVNode("view",{class:"date"},[e.createElementVNode("text",null,"——"+e.toDisplayString(t.createTime),1)])])))),128))])]),e.createVNode(r,{ref_key:"freeze",ref:o,type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"freezeAlt popMid bfff br20"},[e.createElementVNode("view",{class:"header rows mtb30 plr20"},[e.createElementVNode("view",{class:""},"所有冻结金额"),e.createElementVNode("view",{class:"",onClick:n[1]||(n[1]=e=>t.$refs.freeze.close())},[e.createVNode(i,{type:"closeempty"})])]),e.createElementVNode("view",{class:"main mtb30 plr30"},[e.createElementVNode("view",{class:""},"冻结积分:"+e.toDisplayString(o.value.score),1),e.createElementVNode("view",{class:"mt5"},"冻结榴莲果:"+e.toDisplayString(o.value.fruit),1)])])])),_:1},512),e.createVNode(r,{ref:"settledRef",type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"setted pr"},[e.createElementVNode("view",{class:"title pa cfff f52"},[e.createElementVNode("view",null,"入驻商家需"),e.createElementVNode("view",null,"缴纳999押金")]),e.createElementVNode("view",{class:"cartoon pa"},[e.createElementVNode("image",{src:"/static/settedCartoon.png",mode:"aspectFill"})]),e.createElementVNode("view",{class:"weal pa l0 r0 b0"},[e.createElementVNode("image",{class:"bg",src:Eu,mode:"aspectFill"}),e.createElementVNode("view",{class:"pfull fdc fmid c333 f36"},[e.createElementVNode("view",null,"完成商家认证"),e.createElementVNode("view",null,"即可享受视频挂链接等福利")])])]),e.createElementVNode("view",{class:"button btn lg colourful mtb30",onClick:n[2]||(n[2]=e=>{return t="/pages/shop/settle",void uni.navigateTo({url:t});var t})},"立即入驻"),e.createElementVNode("view",{class:"close fmid",onClick:n[3]||(n[3]=e=>t.$refs.settledRef.close())},[e.createVNode(i,{type:"closeempty",color:"#fff",size:"34rpx"})])])),_:1},512),e.createVNode(r,{ref:"offRef",type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"setted pr"},[e.createElementVNode("view",{class:"title pa cfff f52"},[e.createElementVNode("view",null,"确认提交"),e.createElementVNode("view",null,"退出押金吗")]),e.createElementVNode("view",{class:"cartoon pa"},[e.createElementVNode("image",{src:"/static/settedCartoon1.png",mode:"aspectFill"})]),e.createElementVNode("view",{class:"weal pa l0 r0 b0"},[e.createElementVNode("image",{class:"bg",src:Eu,mode:"aspectFill"}),e.createElementVNode("view",{class:"pfull fdc fmid c333 f36"},[e.createElementVNode("view",null,"退出押金"),e.createElementVNode("view",null,"将不可享受会员专属福利")])])]),e.createElementVNode("view",{class:"button btn lg disabled mtb30"},"确认"),e.createElementVNode("view",{class:"close fmid",onClick:n[4]||(n[4]=e=>t.$refs.offRef.close())},[e.createVNode(i,{type:"closeempty",color:"#fff",size:"34rpx"})])])),_:1},512)])}}},Iu={myTeam:e=>Te.request({url:"/home/myTeam",method:"post",query:e.query}),lowTeam:e=>Te.request({url:"/home/lowTeam",method:"post",query:e.query})},Su={scrollList:e=>Te.request({url:"/home/getScroll",method:"post",query:e.query}),buyScrollList:e=>Te.request({url:"/home/getBuyScroll",method:"post",query:e.query}),scrollChange:e=>Te.request({url:"/home/getScrollLog",method:"post",query:e.query,data:e.data}),viewingTasks:e=>Te.request({url:"/home/viewingTasks",method:"post",query:e.query}),buyScroll:e=>Te.request({url:"/home/buyScroll",method:"post",query:e.query}),myQrcode:e=>Te.request({url:"/home/qrcode",method:"post",query:e.query}),nickname:e=>Te.request({url:"/home/nickname",method:"post",query:e.query})},Tu={__name:"myTeam",setup(t){const n=O();e.computed((()=>n.state.userinfo));const a=e.ref(""),o=e.ref([]),i=e.ref([]);function s(e){if(e.showSecond)return e.showSecond=!1,void(i.value.length=0);Iu.lowTeam({query:{parentId:e.userId}}).then((t=>{if(200==t.code)return i.value=t.data,void(t.data.length>0&&(e.showSecond=!0));util.alert({content:t.msg,showCancel:!1})}))}return Su.myQrcode({}).then((e=>{200==e.code&&e.data&&(a.value=e.data)})),Iu.myTeam({}).then((e=>{o.value=e.data,g("log","at pages/index/myTeam.vue:37",e)})),(t,n)=>{const r=f(e.resolveDynamicComponent("uni-icons"),w);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"])]),e.createElementVNode("view",{class:"myTeam mtb60"},[e.createElementVNode("view",{class:"title tac"},"我的团队"),e.createElementVNode("view",{class:"secTitle rows mt20"},[e.createElementVNode("view",{class:"f1"},"当前团队基数"),e.createElementVNode("view",{class:e.normalizeClass(["arrow",{active:1}])},[e.createVNode(r,{type:"right"})])]),e.createElementVNode("view",{class:"team oh mt30 plr30"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"li mtb30",key:n},[e.createElementVNode("view",{class:"menber df aic"},[e.createElementVNode("view",{class:"c333 f32"},e.toDisplayString(t.nickName),1),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"]))]),t.showSecond?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"secLi df",key:n},[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:0==n}])},[e.createElementVNode("view",{class:""},e.toDisplayString(t.nickName),1)],2)])])))),128))])):e.createCommentVNode("",!0)])))),128))])]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)])}}},Mu={__name:"search",setup(t){e.getCurrentInstance();const n=e.ref(!1),a=e.reactive([]),o=e.reactive([]),i=e.reactive([{name:"视频",getList:()=>p(),getMoreList:()=>function(){if(c.data.length>=c.total)return;c.pageNum++,p()}(),refreshList:()=>(c.pageNum=1,c.total=0,void p())},{name:"用户",getList:()=>m(),getMoreList:()=>function(){if(l.data.length>=l.total)return;l.pageNum++,m()}(),refreshList:()=>(l.pageNum=1,l.total=0,void m())}]),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:Te.setUrl("/pages/index/videoHome",{userId:e.userId})})}function d(){r.value?(n.value=!0,i[s.value].getList()):n.value=!1}function p(){Se.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=Te.format_url(e.videoUrl,"video"),e.format_header=Te.format_url(e.header,"img"),e.format_imageUrl=Te.format_url(e.imageUrl,"img"),e)))),c.total=e.total,void g("log","at pages/index/search.vue:185","videoList",c.data);Te.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))}function m(){Se.news.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=Te.format_url(e.userPortrait,"img"),e)))),void(l.total=e.total);Te.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))}function h(e,t){r.value=e[t],d()}return C((()=>{Se.video.videoSearchLog().then((e=>{200!=e.code?Te.alert({content:e.msg,showCancel:!1}):a.push(...e.data)})),Se.video.hotVideos().then((e=>{200!=e.code?Te.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,p)=>{const m=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"ghost"},[e.createVNode(el),e.createElementVNode("view",{class:"head"})]),e.createElementVNode("view",{class:"apex"},[e.createVNode(el),e.createElementVNode("view",{class:"header head df aic plr30"},[e.createElementVNode("navigator",{"open-type":"navigateBack",class:"back b"},[e.createVNode(m,{type:"left",size:"48rpx",color:"#333"})]),e.createElementVNode("view",{class:"search df aic ml20 f1 ptb5 plr15 bar"},[e.createVNode(m,{type:"search",size:"32rpx",color:"#aaa"}),e.withDirectives(e.createElementVNode("input",{class:"ml20 f32","onUpdate:modelValue":p[0]||(p[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:Te.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:"/static/indexLike1.png",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))])}}},Du="/static/copy.png",Nu={__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(){Se.video.getUserInfo({query:{userId:i.value,userId2:c.value.userId||""}}).then((e=>{if(200==e.code){g("log","at pages/index/videoHome.vue:92","userinfo",e);const t=e.data;return t.userPortrait=Te.format_url(t.userPortrait,"img"),t.background=Te.format_url(t.background,"img"),void Object.assign(s,t)}Te.alert({content:e.msg,showCancel:!1})}))}function u(){Se.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=Te.format_url(e.videoUrl,"video"),e.format_imageUrl=Te.format_url(e.imageUrl,"img"),e)))),void(r.total=e.total);Te.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 p(){uni.setClipboardData({data:s.userAccount,showToast:!1,success:e=>{Te.alert("复制成功")}})}function m(){Se.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(),Te.getUserinfo(),void uni.$emit("focusUser",{userId:s.userId,result:s.isAttention});Te.alert({content:e.msg,showCancel:!1})}))}function h(){s.isBlock=!s.isBlock,Se.video.videoBlock({query:{type:s.isBlock?0:1,userId:s.userId}}).then((e=>{200!=e.code&&(s.isBlock=!s.isBlock,Te.alert({content:e.msg,showCancel:!1}))}))}function v(){Te.toChat({name:s.userNickname,msgId:s.userId,type:"C2C"})}return C((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"),w),i=f(e.resolveDynamicComponent("uni-popup"),Rn);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(tl,{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:"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:"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:m},"已关注"),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:m},"关注"))])]),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(fu,{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:Du,mode:"aspectFit",onClick:p}),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)}}},wu={__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(){Se.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=Te.format_url(e.videoUrl,"video"),e.format_imageUrl=Te.format_url(e.imageUrl,"img"),e)))),void(i.total=e.total);Te.alert({content:e.msg,showCancel:!1})}))}function u(){Te.upload_image({value:o.pic})}function d(e,t){Te.alert({content:"确认要删除吗?"}).then((n=>{n.confirm&&o[t].splice(e,1)}))}function p(){const e={...o};""!=a?e.context?e.context.length>100?Te.alert("详细描述自述超过100"):e.pic[0]?e.videoId[0]?(e.reason=n[a.value].name,e.pic=e.pic.map((e=>Te.replace_url("node"))).join(","),e.videoId=e.videoId.join(","),Se.video.reportVideo({data:e}).then((e=>{if(200==e.code)return Te.alert("举报成功,请等待后台审核"),void setTimeout((()=>{uni.navigateBack()}),500);Te.alert({content:e.msg,showCancel:!1})}))):Te.alert("请选择举报视频"):Te.alert("请上传举报图片"):Te.alert("详细描述不能为空"):Te.alert("请选择举报理由")}return C((e=>{e.userId&&(o.userId=e.userId),l()})),(t,l)=>{const m=f(e.resolveDynamicComponent("uni-icons"),w),h=f(e.resolveDynamicComponent("uni-popup"),Rn);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(m,{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(m,{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(m,{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(m,{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:p},"举报")]),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(m,{type:"refreshempty",color:""}),e.createElementVNode("text",null,"刷新")])]),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll"},[e.createVNode(fu,{list:i.data,ids:o.videoId,"onUpdate:ids":l[2]||(l[2]=e=>o.videoId=e),mode:"checkbox"},null,8,["list","ids"])])])])])),_:1},512)])}}},bu={__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(){Se.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=Te.format_url(e.videoUrl,"video"),e.format_imageUrl=Te.format_url(e.imageUrl,"img"),e)))),void(i.total=e.total);Te.alert({content:e.msg,showCancel:!1})}))}return C((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(fu,{list:i.data},null,8,["list"])])])]))}},Lu={__name:"promotion",setup(t){const n=e.ref(""),a=e.reactive([]),o=e.reactive({data:[],pageSize:10,pageNum:1,total:0});function i(){Se.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=Te.format_url(e.videoUrl,"video"),e.format_imageUrl=Te.format_url(e.imageUrl,"img"),e)))),void(o.total=e.total);Te.alert({content:e.msg,showCancel:!1})}))}function s(){g("log","at pages/index/promotion.vue:95",a)}return C((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(fu,{list:o.data,ids:a,"onUpdate:ids":n[0]||(n[0]=e=>a=e),mode:"checkbox"},null,8,["list","ids"])])]))}},Pu={__name:"myQrCode",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo));Su.myQrcode({}).then((e=>{g("log","at pages/index/myQrCode.vue:31",e),200==e.code&&e.data&&(o.value=e.data)}));const o=e.ref("");return(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)]))}},Au={durianList:e=>Te.request({url:"/home/getTree",method:"post",query:e.query}),buyDurianList:e=>Te.request({url:"/home/getMyTree",method:"post",query:e.query}),DurianChange:e=>Te.request({url:"/home/getMyFruitLog",method:"post",query:e.query}),exchange:e=>Te.request({url:"/home/exchange",method:"post",query:e.query,load:!0}),getOrderList:e=>Te.request({url:"/home/getOrderList",method:"post",query:e.query,load:!0}),orderSale:e=>Te.request({url:"/home/orderSale",method:"post",query:e.query,load:!0}),transfer:e=>Te.request({url:"/home/transfer",method:"post",query:e.query}),fruitForSale:e=>Te.request({url:"/home/fruitForSale",method:"post",query:e.query,load:!0}),cancelSale:e=>Te.request({url:"/home/cancelSale",method:"post",query:e.query,load:1}),shopApply:e=>Te.request({url:"/home/shopApply",method:"post",query:e.query,data:e.data}),getMyFruitLog:e=>Te.request({url:"/home/getMyFruitLog",method:"post",query:e.query})},Ru={__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(){Au.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);Te.alert({content:e.msg,showCancel:!1})}))}return C((()=>{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(tl),{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){Te.alert({content:"确认取消订单?"}).then((t=>{t.confirm&&Au.cancelSale({query:{orderId:e.id}}).then((e=>{if(200===e.code)return Te.alert("操作成功"),Te.getUserinfo(),void r();Te.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 Te.copyText(n);var n}},[e.createElementVNode("view",{class:"c333 f28"},"交易哈希:"+e.toDisplayString(t.orderNo),1),e.createElementVNode("image",{class:"wh24 ml10",src:Du,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))])]))}},Ou="/static/sapling.png",Bu="/static/tree.png",xu="/static/fruit.png",Uu=M({__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((()=>{Te.isLogin((()=>{Su.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"]]),Vu=M({__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)/3,100),e}));const{proxy:l}=e.getCurrentInstance(),u=e.reactive({account:"",sellNum:""});function d(){Au.transfer({query:{account:u.account,sellNum:u.sellNum}}).then((e=>{if(200===e.code)return Te.alert("操作成功"),void Te.getUserinfo();Te.alert({content:e.msg,showCancel:!1})}))}function p(){l.$refs.dealRef.open()}function m(e){uni.navigateTo({url:e})}return E((()=>{})),C((()=>{Te.isLogin((()=>{Te.getUserinfo(),Su.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})),Au.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)}Te.alert({value:e.msg,showCancel:!1})}))}))})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-popup"),Rn);return e.openBlock(),e.createElementBlock(e.Fragment,null,[c.value.userId?(e.openBlock(),e.createElementBlock("view",{key:1,class:"appbw plr30"},[e.createElementVNode("view",{class:"task mtb30"},[e.createVNode(e.unref(Uu))]),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:Ou,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:Bu,mode:"aspectFit"})])]),e.createElementVNode("view",{class:"df fdc jcsa f1"},[e.createElementVNode("view",{class:"button btn colourful plr30",onClick:n[0]||(n[0]=e=>m("/pages/index/orchard"))},"置换"),e.createElementVNode("view",{class:"button btn colourful plr30 fmid",onClick:n[1]||(n[1]=e=>m("/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:xu,mode:"aspectFit"}),e.createElementVNode("view",{class:"mt30 f20"},[e.createElementVNode("view",{class:"f1 b"},"可用: "+e.toDisplayString(c.value.fruit),1)])])]),e.createElementVNode("view",{class:"notice df fdc jcsa aic f1"},[e.createElementVNode("view",{class:"item ver f1",onClick:p},[e.createElementVNode("view",{class:"key fmid c333 f24"},"互转")]),e.createElementVNode("view",{class:"item ver f1 mt30",onClick:n[2]||(n[2]=e=>m("/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=>m("/pages/index/pushVideo"))},"置换流量")]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"page"},[e.createVNode(nl,{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:xu,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,"互转成功之后冻结24h")]),e.createElementVNode("view",{class:"button btn lg bar black",onClick:d},"转移")])])),_:1},512)],64)}}},[["__scopeId","data-v-b337e5e7"]]),Gu={__name:"durainActivation",setup(t){const n=e.ref([]),a=O(),o=e.computed((()=>a.state.userinfo));return C((()=>{Au.buyDurianList({query:{userId:o.value.userId}}).then((e=>{g("log","at pages/index/durainActivation.vue:36",e),n.value=e.data}))})),(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:Bu,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 mtb5"},"当前可释放:"+e.toDisplayString(t.released),1),e.createElementVNode("view",{class:"txt"},"当前级别:"+e.toDisplayString(t.level),1)])])))),128))]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})]))}},Fu={__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.computed((()=>n.state.userinfo)),p=e.computed((()=>{let e=u.sellNum||0;return e=Math.floor(1e3*e*.7)/1e3,e}));function m(){s.pageNum=1,s.total=0,h()}function h(){Au.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);Te.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))}function g(e){const t=e.detail.value;c.value!==t&&(c.value=t)}function v(){Au.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),Te.getUserinfo(),h()):Te.alert({content:e.msg,showCancel:!1})}))}return C((()=>{h()})),T((()=>{m()})),S((()=>{!function(){if(s.data.length>=s.total)return;s.pageNum++,h()}()})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),w),l=f(e.resolveDynamicComponent("uni-popup"),Rn);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"app"},[e.createElementVNode("view",{class:"header 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,m())}(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,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item df oh pr mtb30 br20",key:n},[e.createElementVNode("view",{class:"fmid ptb20"},[e.createElementVNode("view",{class:"mlr20"},[e.createElementVNode("image",{class:"wh110",src:xu,mode:"aspectFit"})])]),e.createElementVNode("view",{class:"f1 mlr20 c333 f28"},[1==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"tac c999"},"交易中...")):e.createCommentVNode("",!0),2==t.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"tac c999"},"已完成")):e.createCommentVNode("",!0),3==t.status?(e.openBlock(),e.createElementBlock("view",{key:2,class:"tac c999"},"已取消")):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"oh mt10 mb20"},[e.createElementVNode("view",{class:"mtb10"},"交易价格:"+e.toDisplayString(t.totalPrice),1),e.createElementVNode("view",{class:"mtb10"},"交易数量:"+e.toDisplayString(t.sellNum),1)])]),1==t.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!=d.value.userId?Te.alert({content:"确认交易?"}).then((t=>{t.confirm&&Au.orderSale({query:{orderId:e.id}}).then((e=>{if(200===e.code)return Te.alert("交易成功"),Te.getUserinfo(),void m();Te.alert({content:e.msg,showCancel:!1})}))})):Te.alert("您不能和自己交易")}(t)},"交易",8,["onClick"])])):e.createCommentVNode("",!0),1==t.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[0]||(n[0]=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(d.value.score),1),e.createElementVNode("text",{class:"wsn ml40"},"榴莲果:"+e.toDisplayString(d.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:g},[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:xu,class:"wh150",mode:"aspectFit"})]),e.createElementVNode("view",{class:"inputBox mtb10 plr30"},[e.withDirectives(e.createElementVNode("input",{class:"ptb10","onUpdate:modelValue":n[1]||(n[1]=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[2]||(n[2]=e=>u.totalPrice=e),type:"number",placeholder:"输入总价","placeholder-class":"placeholderStyle"},null,512),[[e.vModelText,u.totalPrice]])]),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:v},"确定")])])),_:1},512)],64)}}},Yu={__name:"orchard",setup(t){const{proxy:n}=e.getCurrentInstance(),a=e.ref([]),o=e.ref({}),i=e.reactive({}),s=O(),r=e.computed((()=>s.state.userinfo));function c(e){const t={1:{num:"seed",name:"种子"},2:{num:"gains",name:"榴莲果"}};Te.alert({content:`确认消耗${o.value[t[e].num]}${t[e].name}兑换${o.value.name}`}).then((t=>{t.confirm&&Au.exchange({query:{userId:r.value.userId,treeId:o.value.id,type:e}}).then((e=>{if(200===e.code)return Te.alert("置换成功"),n.$refs.typeRef.close(),void Te.getUserinfo();Te.alert({content:e.msg,value:!1})}))}))}function l(){n.$refs.ruleRef.open()}return C((()=>{Au.durianList({}).then((e=>{a.value=e.data})),Se.getArticle({query:{id:2}}).then((e=>{200!=e.code?Te.alert({content:e.msg,value:!1}):Object.assign(i,e.data)}))})),E((()=>{})),(t,s)=>{const u=f(e.resolveDynamicComponent("uni-popup"),Rn);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"appbw"},[e.createVNode(tl,{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:Ou,mode:"aspectFit"}),e.createElementVNode("text",null,"×"+e.toDisplayString(r.value.seed),1)]),e.createElementVNode("view",{class:"item df"},[e.createElementVNode("image",{class:"wh150",src:xu,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(a.value,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"item rows mtb30 mlr25 br15",key:a},[e.createElementVNode("image",{class:"wh180",src:Bu,mode:"aspectFit"}),e.createElementVNode("view",{class:"content f1 mlr30 c333 f28"},[e.createElementVNode("text",null,"需要"+e.toDisplayString(t.seed)+"种子或"+e.toDisplayString(t.gains)+"榴莲果",1),e.createElementVNode("text",null,"置换1颗"+e.toDisplayString(t.name),1)]),e.createElementVNode("view",{class:"button fmid mlr40 wh110 c333 f20 bfff cir",onClick:e=>function(e){o.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:Bu,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:s[0]||(s[0]=e=>c("1"))},"种子置换"),e.createElementVNode("view",{class:"btn lg black w200",onClick:s[1]||(s[1]=e=>c("2"))},"果子置换")])])])),_: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:i.context},null,8,["nodes"])])])])])),_:1},512)],64)}}},Hu={__name:"durianLog",setup(t){const n=O(),a=e.reactive({data:[],pageNum:1,pageSize:30,total:0}),o=e.computed((()=>n.state.userinfo));function i(){Au.getMyFruitLog({query:{pageNum:a.pageNum,pageSize:a.pageSize,userId:o.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);Te.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))}return C((()=>{i()})),T((()=>{a.homePageSize=1,i()})),S((()=>{!function(){if(a.total<=a.data.length)return;a.pageNum++,i()}()})),(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))])]))}},Zu=M({__name:"pushVideo",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))||{})))),p=e.computed((()=>[...u,...l.value]));function m(){i.pageNum=1,i.total=0,g()}function h(){i.data.length>=i.total||(i.pageNum++,g())}function g(){Se.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=Te.format_url(e.videoUrl,"video"),e.format_imageUrl=Te.format_url(e.imageUrl,"img"),e)))),void(i.total=e.total);Te.alert({content:e.msg,showCancel:!1})}))}function v(){p.value.length<1?Te.alert({content:"请选择投流视频",showCancel:!1}):o.value.fruit<=10*p.value.length?Te.alert({content:"榴莲果不足",showCancel:!1}):Ie.pushVideo({query:{ids:p.value.join(",")}}).then((e=>{if(200===e.code)return n.$refs.applyRef.close(),Te.alert("申请成功,请等待后台审核"),void Te.getUserinfo();Te.alert({content:e.msg,showCancel:!1})}))}function _(){p.value.length<1?Te.alert({content:"请选择投流视频",showCancel:!1}):o.value.fruit<=10*p.value.length?Te.alert({content:"榴莲果不足",showCancel:!1}):Ie.applyVideo({data:{videoIds:p.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(),Te.alert("申请成功,请等待后台审核"),void Te.getUserinfo();Te.alert({content:e.msg,showCancel:!1})}))}function y(){uni.navigateTo({url:Te.setUrl("/pages/index/pushVideoCollects",{ids:l.value.join(",")})})}return C((()=>{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"),w),s=f(e.resolveDynamicComponent("uni-popup"),Rn);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"app"},[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[0]||(n[0]=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[1]||(n[1]=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){Te.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(p.value.length)+"*10 榴莲果可提升 "+e.toDisplayString(p.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[2]||(n[2]=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[3]||(n[3]=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[4]||(n[4]=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[5]||(n[5]=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:m},[e.createVNode(a,{type:"refreshempty",color:""}),e.createElementVNode("text",null,"刷新")])]),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"scroll",onScrolltolower:h},[e.createVNode(fu,{list:i.data,ids:u,"onUpdate:ids":n[6]||(n[6]=e=>u=e),mode:"checkbox"},null,8,["list","ids"])],32)])])),_:1},512)],64)}}},[["__scopeId","data-v-1a685f4f"]]),qu={__name:"register",setup(t){const n=e.reactive({userImei:"",userPhone:"",userPassword:"",userSuperRecommend:""}),a=e.ref(""),o=e.ref(!1);function i(){const e={...n};if(e.userPhone)if(a)if(e.userPassword)if(e.userSuperRecommend)if(o.value){if(!e.userImei){const t=uni.getSystemInfoSync();e.userImei=t.deviceId}e.userPassword=Sn.MD5(e.userPassword).toString(),g("log","at pages/login/register.vue:71","register",e,a.value),Se.login.userRegister({data:e,path:[a.value]}).then((e=>{200!=e.code?Te.alert({content:e.msg,showCancel:!1}):Te.finalLogin(e)}))}else Te.alert("请阅读并勾选服务协议》和《隐私政策》");else Te.alert("请输入推荐码");else Te.alert("请输入密码");else Te.alert("请输入验证码");else Te.alert("请输入手机号")}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",src:Ne,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:"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.value=e),placeholder:"请输入验证码",class:"f1"},null,512),[[e.vModelText,a.value]])]),e.createElementVNode("view",{class:"getCode btn sm ml20 plr20"},[e.createVNode(we,{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:"rows mtb30"},[e.createElementVNode("view",{class:"inputBox f1 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[3]||(s[3]=e=>n.userSuperRecommend=e),placeholder:"请输入推荐码"},null,512),[[e.vModelText,n.userSuperRecommend]])]),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(Me),{class:"mb60",value:o.value,"onUpdate:value":s[4]||(s[4]=e=>o.value=e)},null,8,["value"])])]))}},ju={__name:"invite",setup(t){const n=e.reactive({userImei:"",userPhone:"",userPassword:"",userSuperRecommend:""}),a=e.ref(""),o=e.ref(!1);function i(){const e={...n};if(e.userPhone)if(a)if(e.userPassword)if(e.userSuperRecommend)if(o.value){if(!e.userImei){const t=uni.getSystemInfoSync();e.userImei=t.deviceId}e.userPassword=Sn.MD5(e.userPassword).toString(),g("log","at pages/login/invite.vue:79","register",e,a.value),Se.login.userRegister({data:e,path:[a.value]}).then((e=>{if(200==e.code)return Te.alert("注册成功"),void setTimeout((()=>{s()}),1e3);Te.alert({content:e.msg,showCancel:!1})}))}else Te.alert("请阅读并勾选服务协议》和《隐私政策》");else Te.alert("请输入推荐码");else Te.alert("请输入密码");else Te.alert("请输入验证码");else Te.alert("请输入手机号")}function s(){const e=[{name:"安卓下载链接1",key:"FIR",url:"https://fir.xcxwo.com/8tn4qjxd"},{name:"安卓下载链接2",key:"蒲公英",url:"https://www.pgyer.com/u24vT3b2"}];uni.showActionSheet({itemList:e.map((e=>e.name)),success:t=>{location.href=e[t.tapIndex].url}})}return C((e=>{e.code&&(n.userSuperRecommend=e.code)})),(t,r)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("view",{class:"logo mauto"},[e.createElementVNode("image",{class:"logo",src:Ne,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":r[0]||(r[0]=e=>n.userPhone=e),placeholder:"请输入手机号"},null,512),[[e.vModelText,n.userPhone]])]),e.createElementVNode("view",{class:"rows mtb30"},[e.createElementVNode("view",{class:"inputBox f1 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[1]||(r[1]=e=>a.value=e),placeholder:"请输入验证码",class:"f1"},null,512),[[e.vModelText,a.value]])]),e.createElementVNode("view",{class:"getCode btn sm ml20 plr20"},[e.createVNode(we,{phone:n.userPhone},null,8,["phone"])])]),e.createElementVNode("view",{class:"inputBox mtb30 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[2]||(r[2]=e=>n.userPassword=e),placeholder:"请输入密码"},null,512),[[e.vModelText,n.userPassword]])]),e.createElementVNode("view",{class:"rows mtb30"},[e.createElementVNode("view",{class:"inputBox f1 ptb10 plr30"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[3]||(r[3]=e=>n.userSuperRecommend=e),placeholder:"请输入推荐码"},null,512),[[e.vModelText,n.userSuperRecommend]])]),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:""},[e.createElementVNode("view",{class:"btn lg bar black mtb30",onClick:i},"注册")]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"btn lg bar colourful mt30",onClick:s},"下载app")])])]),e.createElementVNode("view",{class:"footer"},[e.createVNode(e.unref(Me),{class:"mb60",value:o.value,"onUpdate:value":r[4]||(r[4]=e=>o.value=e)},null,8,["value"])])]))}},Ju={__name:"forget",setup(t){const n=e.reactive({userImei:"",userPhone:"",userPassword:""}),a=e.ref(""),o=e.ref("");function i(){const e={...n};if(e.userPhone)if(o.value)if(e.userPassword)if(e.userPassword===a.value){if(e.userPassword=Sn.MD5(e.userPassword).toString(),!e.userImei){const t=uni.getSystemInfoSync();e.userImei=t.deviceId}Se.login.resetPassword({data:e,path:[o.value]}).then((e=>{if(200==e.code)return Te.alert({content:e.msg,showCancel:!1}),void setTimeout((()=>{uni.redirectTo({url:"/pages/login/loginPhone"})}),500);Te.alert({content:e.msg,showCancel:!1})}))}else Te.alert("两次输入密码不一致");else Te.alert("请输入密码");else Te.alert("请输入验证码");else Te.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",src:Ne,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(we,{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("view",{class:"btn lg bar black mtb30",onClick:i},"确认")])]),e.createElementVNode("view",{class:"footer"})]))}},Xu={__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}}),Se.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",{src:Ne,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(Me),{class:"mb60"})])]))}},Ku={__name:"settle",setup(t){const n=e.reactive({shopHeader:"",shopName:"",contact:"",productLocation:"",productCategory:"",customer:"",idcard:"",idcard2:"",businessLicense:[],status:3});function a(e,t){Te.upload_image({value:n[e],type:t||1,success:a=>{2!=t&&(n[e]=a.value)}})}function o(){const e={...n};e.shopHeader?e.shopName?e.contact?e.productLocation?e.productCategory?e.customer?e.businessLicense[0]?e.idcard?e.idcard2?(e.shopHeader=Te.replace_url(e.shopHeader),e.businessLicense=e.businessLicense.map((e=>Te.replace_url(e))).join(","),e.idcard=Te.replace_url(e.idcard),e.idcard2=Te.replace_url(e.idcard2),Au.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?Te.alert({content:"资料已申请,请等待后台审核",showCancel:!1}).then((e=>{uni.navigateBack()})):Te.alert({content:e.msg,showCancel:!1})}))):Te.alert("身份证反面不能为空"):Te.alert("身份证正面不能为空"):Te.alert("营业执照不能为空"):Te.alert("客服电话不能为空"):Te.alert("产品类别不能为空"):Te.alert("产品所在地不能为空"):Te.alert("联系方式不能为空"):Te.alert("商家名称不能为空"):Te.alert("商家头像不能为空")}return(t,i)=>{const s=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"appbw plr30"},[e.createElementVNode("view",{class:"avatarBox ver mt50"},[e.createElementVNode("view",{class:"avatar oh pr wh220 cir",onClick:i[0]||(i[0]=e=>a("shopHeader"))},[n.shopHeader?(e.openBlock(),e.createElementBlock("image",{key:0,class:"cir",src:n.shopHeader,mode:"aspectFill"},null,8,["src"])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"pfull fmid"},[e.createVNode(s,{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":i[1]||(i[1]=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":i[2]||(i[2]=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":i[3]||(i[3]=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":i[4]||(i[4]=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":i[5]||(i[5]=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:"br10",src:t,mode:"aspectFill"},null,8,["src"]),e.createElementVNode("view",{class:"close",onClick:e=>function(e,t){Te.alert({content:"确认删除?"}).then((a=>{a.confirm&&n[t].splice(e,1)}))}(a,"businessLicense")},[e.createVNode(s,{type:"clear",size:"50rpx",color:"#f00"})],8,["onClick"])])))),128)),e.createElementVNode("view",{class:"upload imgs fmid wh200 br10",onClick:i[6]||(i[6]=e=>a("businessLicense",2))},[e.createVNode(s,{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:i[7]||(i[7]=e=>a("idcard",1))},[e.createElementVNode("image",{class:"br10",src:n.idcard,mode:"aspectFill"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"upload imgs fmid wh200 br10",onClick:i[8]||(i[8]=e=>a("idcard",1))},[e.createVNode(s,{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:i[9]||(i[9]=e=>a("idcard2"))},[e.createElementVNode("image",{class:"br10",src:n.idcard2,mode:"aspectFill"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"upload imgs fmid wh200 br10",onClick:i[10]||(i[10]=e=>a("idcard2"))},[e.createVNode(s,{type:"plusempty",color:"#E8E8E8",size:"80rpx"})]))])])]),e.createElementVNode("view",{class:"fill",style:{height:"120rpx"}})]),e.createElementVNode("view",{class:"footer plr60 bfff shadow"},[e.createElementVNode("view",{class:"btn lg colourful bar",onClick:o},"提交")])],64)}}},zu="/static/integral.png",Wu={__name:"integral",setup(t){const n=O(),a=e.ref([]);e.ref({seconds:0});const o=e.ref([]);return e.computed((()=>n.state.userinfo)),C((()=>{Su.buyScrollList({query:{status:0}}).then((e=>{200!=e.code||(a.value=e.data)})),Su.scrollChange({query:{pageNum:1,pageSize:4}}).then((e=>{if(200==e.code)return e.rows,void(o.value=e.rows);Te.alert({content:e.msg,showCancel:!1})}))})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"appbw"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{key:t.id},[e.createElementVNode("view",{class:"board pr oh df mtb30 mlr30 ptb20 plr20 cfff f30 br20"},[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.score),1)]),e.createElementVNode("view",{class:"right f1"},[e.createElementVNode("view",{class:"f36"},e.toDisplayString(t.name),1)]),e.createElementVNode("view",{class:"image pa"},[e.createElementVNode("image",{src:zu,mode:"aspectFit"})])])])))),128)),e.createElementVNode("view",{class:"task mtb30 mlr30"},[e.createVNode(e.unref(Uu))]),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.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,((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,e.toDisplayString(t.context),1),e.createElementVNode("view",{class:"f20"},e.toDisplayString(t.createTime),1)]),e.createElementVNode("view",{class:"fs0"},[2==t.status?(e.openBlock(),e.createElementBlock("text",{key:0},"-")):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.scroll),1)])])])))),128))]),e.createElementVNode("view",{class:"fill",style:{height:"30rpx"}})]))}},Qu={__name:"integralLog",setup(t){const n=e.reactive({data:[],pageNum:1,pageSize:30,total:0});function a(){Su.scrollChange({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);Te.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))}return C((()=>{a()})),T((()=>{n.homePageSize=1,a()})),S((()=>{!function(){if(n.total<=n.data.length)return;n.pageNum++,a()}()})),(t,a)=>(f(e.resolveDynamicComponent("uni-icons"),w),e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createVNode(e.unref(tl),{title:"变动明细"},e.createSlots({_:2},[void 0]),1024),e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.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))])]))}},$u={__name:"integralMall",setup(t){const n=O(),a=e.ref([]);return e.computed((()=>n.state.userinfo)),C((()=>{Su.scrollList({}).then((e=>{200!=e.code?Te.alert({content:e.msg,showCancel:!1}):a.value=e.data}))})),(t,n)=>{const o=f(e.resolveDynamicComponent("uni-icons"),w);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.createCommentVNode("",!0),e.createElementVNode("image",{class:"image",src:zu,mode:"aspectFit"}),e.createElementVNode("view",null,[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.name),1)]),e.createElementVNode("view",{class:"rows mt40"},[e.createElementVNode("view",{class:"f44"},e.toDisplayString(t.score)+"积分",1),e.createElementVNode("view",{class:"btn black f1 ml45",onClick:e=>function(e){g("log","at pages/index/integralMall.vue:49","item",e),Te.alert({content:`确认花费${e.price}购买卷轴`}).then((t=>{t.confirm&&Su.buyScroll({query:{scrollId:e.id}}).then((e=>{if(200===e.code)return Te.alert("购买成功"),void Te.getUserinfo();Te.alert({content:e.msg,showCancel:!1})}))}))}(t)},e.toDisplayString(t.price)+"购买",9,["onClick"])])])))),128))]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})])}}},ed={__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"),w);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:xu,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:Du,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"},"售后进度查询:申请客服介入")])])}}},td={__name:"beInvited",setup(t){const n=e.ref({header:"",userId:"",userNickname:""});function a(e){Su.nickname({query:{hide:e}}).then((e=>{Te.alert({content:e.msg,showCancel:!1}),uni.navigateBack({delta:1})}))}return C((e=>{null!==e&&(n.value=e,n.value.header=Te.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))},"公开")])]))}},nd={__name:"newFriend",setup(t){const n=O();e.computed((()=>n.state.userinfo));const a=e.reactive({data:[],pageNum:1,pageSize:10,total:0}),o=e.ref({}),{proxy:i}=e.getCurrentInstance();function s(){uni.$chat.acceptFriendApplication({userID:o.value.userID,remark:o.value.remark||"",type:ul.TYPES.SNS_APPLICATION_AGREE_AND_ADD}).then((e=>{i.$refs.friend.close()}))}function r(){uni.$chat.getFriendApplicationList().then((e=>{if(0===e.code){const t=e.data;a.data=t.friendApplicationList.map((e=>(e.formatTime=Te.formatTime("yyyy-MM-dd hh:mm",e.time),e)))}}))}function c(){o.value.remark=o.value.nick}function l(){uni.navigateTo({url:"/pages/news/myQr"})}return C((()=>{r(),function(){let e=function(e){r()};uni.$chat.on(ul.EVENT.FRIEND_APPLICATION_LIST_UPDATED,e)}()})),k((()=>{uni.$chat.off(ul.EVENT.FRIEND_APPLICATION_LIST_UPDATED,(()=>{}))})),(t,n)=>{const r=f(e.resolveDynamicComponent("uni-icons"),w),u=f(e.resolveDynamicComponent("uni-popup"),Rn);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(r,{type:"search"}),e.createElementVNode("view",{class:"placeholderStyle f1 plr15"},"添加朋友"),e.createElementVNode("view",{class:"btn bar sm colourful w120"},"搜索")])])]),e.createElementVNode("view",{class:"rows ptb20 plr25 c666 f28"},[e.createElementVNode("view",{class:""},"申请列表"),e.createElementVNode("view",{class:"c999",onClick:l},"我的二维码")]),e.createElementVNode("view",{class:"listArea plr30 bfff"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item ptb30 c333 f32",key:n,onClick:e=>function(e){uni.navigateTo({url:Te.setUrl("/pages/index/videoHome",{userId:e.userID})})}(t)},[e.createElementVNode("view",{class:"rows"},[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.nick),1),e.createElementVNode("view",{class:"time mt10 c999 f22"},e.toDisplayString(t.formatTime),1)]),t.type==e.unref(ul).TYPES.SNS_APPLICATION_SENT_TO_ME?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btns rows fs0"},[e.createElementVNode("view",{class:"btn black plr20",onClick:e.withModifiers((e=>function(e){o.value={...e},i.$refs.friend.open()}(t)),["stop"])},"同意",8,["onClick"]),e.createElementVNode("view",{class:"btn cancel plr20 ml20",onClick:e.withModifiers((e=>function(e){Te.alert({content:"确认拒绝好友?"}).then((t=>{t.confirm&&uni.$chat.refuseFriendApplication({userID:e.userID})}))}(t)),["stop"])},"拒绝",8,["onClick"])])):t.type==e.unref(ul).TYPES.SNS_APPLICATION_SENT_BY_ME?(e.openBlock(),e.createElementBlock("view",{key:1,class:"btns rows fs0"},[e.createElementVNode("view",{class:"c999"},"等待对方同意")])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"mt20 c999 f28"},"招呼语:"+e.toDisplayString(t.wording),1)],8,["onClick"])))),128))]),a.data[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"mtb20 nomore"},"暂无申请~")),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}}),e.createVNode(u,{ref_key:"friend",ref:o,type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"friendAlt popMid plr20 bfff"},[e.createElementVNode("view",{class:"header rows ptb30 f32"},[e.createElementVNode("view",{class:""},"给用户 "+e.toDisplayString(o.value.nick)+" 设置备注",1),e.createVNode(r,{type:"closeempty",onClick:n[0]||(n[0]=e=>t.$refs.friend.close())})]),e.createElementVNode("view",{class:"main mlr30"},[e.createElementVNode("view",{class:"txtplus ptb20 plr20 br10"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":n[1]||(n[1]=e=>o.value.remark=e),placeholder:"好友备注"},null,512),[[e.vModelText,o.value.remark]])]),e.createElementVNode("view",{class:"mt10 c666 f28",onClick:c},[e.createElementVNode("text",{class:"push"},"填入"),e.createElementVNode("text",null,"对方昵称")]),e.createElementVNode("view",{class:"btn lg bar black mtb30",onClick:s},"确定")])])])),_:1},512)])}}},ad={__name:"newAttention",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo)),o=e.reactive({data:[],pageNum:1,pageSize:10,total:0});return C((()=>{Se.video.getAttentionList({path:[a.value.userId],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.data.map((e=>(e.format_userPortrait=Te.format_url(e.userPortrait,"img"),e)))),g("log","at pages/news/newAttention.vue:67",o.data),void(o.total=e.total);Te.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),w);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:Te.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 b"},e.toDisplayString(t.userNickname),1),e.createElementVNode("view",{class:"time 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"}})])}}},od={__name:"newFans",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo)),o=e.reactive({data:[],pageNum:1,pageSize:10,total:0});return C((()=>{Se.video.getFansList({path:[a.value.userId],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.data.map((e=>(e.format_userPortrait=Te.format_url(e.userPortrait,"img"),e)))),g("log","at pages/news/newFans.vue:67",o.data),void(o.total=e.total);Te.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()}))})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),w);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:Te.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 b"},e.toDisplayString(t.userNickname),1),e.createElementVNode("view",{class:"time 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"}})])}}},id={__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:Te.setUrl("/pages/index/videoHome",{userId:e.userId})})}(t)},[e.createElementVNode("view",{class:"avatar fs0"},[e.createElementVNode("image",{class:"wh100 cir",src:vc,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"}})]))},sd={__name:"article",setup(t){const n=e.reactive({}),a=e.ref("");return C((e=>{e.id&&(a.value=e.id),Se.getArticle({query:{id:a.value}}).then((e=>{200!=e.code?Te.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"}})])]))}},rd={__name:"topUp",setup(t){const n=e.reactive({amount:""});function a(){g("log","at pages/index/topUp.vue:19","handleSubmit"),Te.isAuth({success:e=>{!function(){const e={...n};if(!e.amount)return void Te.alert("金额不正确");Se.mine.pay({query:e}).then((e=>{200!==e.code?Te.alert({content:e.msg,showCancel:!1}):uni.requestPayment({provider:"alipay",orderInfo:e.data,success:e=>{g("log","at pages/index/topUp.vue:47","requestPayment",e),Te.getUserinfo(),uni.navigateBack()}})}))}()}})}return(t,o)=>{const i=f(e.resolveDynamicComponent("uni-icons"),w);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:Oc,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},"充值")])])}}},cd=M({__name:"addFriend",setup(t){const n=O();e.computed((()=>n.state.userinfo));const a=e.reactive({data:[],pageNum:1,pageSize:10,total:0}),o=e.ref("");function i(){o.value?Se.news.searchFriendByName({path:[o.value],query:{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.format_userPortrait=Te.format_url(e.userPortrait,"img"),e)))),void(a.total=e.total);Te.alert({content:e.msg,showCancel:!1})})).finally((()=>{uni.stopPullDownRefresh()})):Te.alert("请输入你想搜索的内容")}function s(){a.pageNum=1,a.total=0,i()}return S((()=>{!function(){if(a.data.length>=a.total)return;a.pageNum++,i()}()})),T((()=>{s()})),(t,n)=>{const i=f(e.resolveDynamicComponent("uni-icons"),w);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(i,{type:"search"}),e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e),placeholder:"用户名",class:"f1 ml10","confirm-type":"search"},null,512),[[e.vModelText,o.value]]),e.createElementVNode("view",{class:"btn bar sm colourful w120",onClick:s},"搜索")])]),e.createElementVNode("view",{class:"listArea plr30 bfff"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.data,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item rows ptb30 c333 f32",key:n,onClick:e=>function(e){uni.navigateTo({url:Te.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){uni.navigateTo({url:Te.setUrl("/pages/news/applyFriend",{userId:e.userId,nickname:e.userNickname})})}(t)),["stop"])},"添加好友",8,["onClick"]))],8,["onClick"])))),128))]),e.createElementVNode("view",{class:"fill",style:{height:"60rpx"}})])}}},[["__scopeId","data-v-7fc7d924"]]),ld=M({__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 p(){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(){p()}),200)}function m(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),Se.news.sendRedBag({data:e}).then((e=>{200!=e.code?Te.alert({content:e.msg,showCancel:!1}):uni.navigateBack()}))):Te.alert("总金额不能为空"):Te.alert("数量不能为空")}return C((e=>{const t=e.sendType;t&&(a.sendType=t,a[{1:"sendId",2:"roomId"}[t]]=e.msgId,2==t&&p())})),(t,n)=>{const c=f(e.resolveDynamicComponent("uni-icons"),w);return e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"container"},[e.createElementVNode("picker",{mode:"selector",range:o,"range-key":"name",onChange:m},[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"]]),ud=M({__name:"applyFriend",setup(t){const n=e.reactive(new class{constructor(){__publicField(this,"to",""),__publicField(this,"wording",""),__publicField(this,"remark","")}}),a=e.ref("");function o(){const e={...n};uni.$chat.addFriend({to:e.to,source:"AddSource_Type_Android",remark:e.remark,wording:e.wording,type:ul.TYPES.SNS_ADD_TYPE_BOTH}).then((e=>{g("log","at pages/news/applyFriend.vue:48","res",e);const t=e.data;30539===t.code?Te.alert(t.message):0===t.code&&Te.alert("添加成功"),setTimeout((()=>{uni.navigateBack()}),500)})).catch((function(e){Te.alert(e.toString())}))}function i(){n.remark=a.value}return C((e=>{e.userId&&(n.to=e.userId),e.nickname&&(a.value=e.nickname)})),(t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"area"},[e.createElementVNode("view",{class:"title"},"招呼语"),e.createElementVNode("view",{class:"value"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>n.wording=e),placeholder:"请输入招呼语"},null,512),[[e.vModelText,n.wording]])])]),e.createElementVNode("view",{class:"area"},[e.createElementVNode("view",{class:"title"},"设置好友备注"),e.createElementVNode("view",{class:"value"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=e=>n.remark=e),placeholder:"请输入好友备注"},null,512),[[e.vModelText,n.remark]])]),e.createElementVNode("view",{class:"mt10 c666 f28",onClick:i},[e.createElementVNode("text",{class:"push"},"填入"),e.createElementVNode("text",null,"对方昵称")])]),e.createElementVNode("view",{class:"mt80 mlr60"},[e.createElementVNode("view",{class:"btn pro bar black",onClick:o},"发送")])]))}},[["__scopeId","data-v-e42e9d61"]]);let dd={};!function(){function e(e){this.mode=n.MODE_8BIT_BYTE,this.data=e}function t(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}e.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var a=-1;a<=7;a++)t+a<=-1||this.moduleCount<=t+a||(this.modules[e+n][t+a]=0<=n&&n<=6&&(0==a||6==a)||0<=a&&a<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=a&&a<=4)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var a=f.getLostPoint(this);(0==n||e>a)&&(e=a,t=n)}return t},createMovieClip:function(e,t,n){var a=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=a}for(n=0;n<18;n++){a=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=a}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,a=f.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&1==(a>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!e&&1==(a>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,a=this.moduleCount-1,o=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var r=0;r<2;r++)if(null==this.modules[a][s-r]){var c=!1;i>>o&1)),f.getMask(t,a,s-r)&&(c=!c),this.modules[a][s-r]=c,-1==--o&&(i++,o=7)}if((a+=n)<0||this.moduleCount<=a){a-=n,n=-n;break}}}},t.PAD0=236,t.PAD1=17,t.createData=function(e,n,a){for(var o=C.getRSBlocks(e,n),i=new E,s=0;s8*c)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*c+")");for(i.getLengthInBits()+4<=8*c&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*c||(i.put(t.PAD0,8),i.getLengthInBits()>=8*c));)i.put(t.PAD1,8);return t.createBytes(i,o)},t.createBytes=function(e,t){for(var n=0,a=0,o=0,i=new Array(t.length),s=new Array(t.length),r=0;r=0?p.get(m):0}}var h=0;for(u=0;u=0;)t^=f.G15<=0;)t^=f.G18<>>=1;return t},getPatternPosition:function(e){return f.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case r:return(t+n)%2==0;case c:return t%2==0;case l:return n%3==0;case u:return(t+n)%3==0;case d:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case p:return t*n%2+t*n%3==0;case m:return(t*n%2+t*n%3)%2==0;case h:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new y([1],0),n=0;n5&&(n+=3+i-5)}for(a=0;a=256;)e-=255;return v.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},_=0;_<8;_++)v.EXP_TABLE[_]=1<<_;for(_=8;_<256;_++)v.EXP_TABLE[_]=v.EXP_TABLE[_-4]^v.EXP_TABLE[_-5]^v.EXP_TABLE[_-6]^v.EXP_TABLE[_-8];for(_=0;_<255;_++)v.LOG_TABLE[v.EXP_TABLE[_]]=_;function y(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var n=0;n>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},dd={defaults:{size:258,margin:0,backgroundColor:"#ffffff",foregroundColor:"#000000",fileType:"png",correctLevel:3,typeNumber:-1},make:function(e){var n={canvasId:e.canvasId,componentInstance:e.componentInstance,text:e.text,size:this.defaults.size,margin:this.defaults.margin,backgroundColor:this.defaults.backgroundColor,foregroundColor:this.defaults.foregroundColor,fileType:this.defaults.fileType,correctLevel:this.defaults.correctLevel,typeNumber:this.defaults.typeNumber};if(e)for(var a in e)n[a]=e[a];(e=n).canvasId?function(){var n=new t(e.typeNumber,e.correctLevel);n.addData(function(e){for(var t,n="",a=0;a=1&&t<=127?n+=e.charAt(a):t>2047?(n+=String.fromCharCode(224|t>>12&15),n+=String.fromCharCode(128|t>>6&63),n+=String.fromCharCode(128|63&t)):(n+=String.fromCharCode(192|t>>6&31),n+=String.fromCharCode(128|63&t));return n}(e.text)),n.make();var a=uni.createCanvasContext(e.canvasId,e.componentInstance);a.setFillStyle(e.backgroundColor),a.fillRect(0,0,e.size,e.size);for(var o=(e.size-2*e.margin)/n.getModuleCount(),i=o,s=0;sn.state.userinfo)),o=e.ref(300),i=e.ref("");return C((()=>{!function(){uni.showLoading({title:"二维码生成中",mask:!0});const e={key:"user",userId:a.value.userId,userNickname:a.value.userNickname};pd.make({canvasId:"qrcode",text:JSON.stringify(e),size:o.value,margin:10,success:e=>{i.value=e,g("log","at pages/news/myQr.vue:54","qrcodeSrc ",i.value)},complete:()=>{uni.hideLoading()}})}()})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"app"},[e.createElementVNode("view",{class:"container ver mtb30 mlr30 tac"},[e.createElementVNode("canvas",{"canvas-id":"qrcode",style:e.normalizeStyle({width:`${o.value}px`,height:`${o.value}px`})},null,4),e.createElementVNode("view",{class:"user mtb30 df aic"},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{class:"wh80 cir",src:a.value.userPortrait,mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"nickname f1 ml20 c333 f32"},e.toDisplayString(a.value.userNickname),1)]),e.createElementVNode("view",{class:"hint mtb30 tac c999"},"扫一扫,添加我为好友")])]))}},hd={__name:"teen",setup(t){const n=O(),a=e.computed((()=>n.state.userinfo));function o(){Se.mine.updateUserInfo({data:{youth:1}}).then((e=>{200!=e.code?Te.alert({content:e.msg,showCancel:!1}):function(){let e=(new Date).getTime();e=Te.strtotime("+40 minute",e);const t=(new Date).setHours(20,0,0).valueOf();e=Te.formatTime("yyyy-MM-dd HH:mm:ss",Math.min(new Date(e).valueOf(),t)),Se.video.setAlarm({query:{endTime:e,type:3}}).then((t=>{if(200==t.code)return Te.alert("设置成功"),void Te.setAlarm({userId:a.value.userId,endTime:e,type:3});Te.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"}})]))}},gd=M({__name:"lock",setup(t){const n=O(),a=e.reactive({}),o=e.computed((()=>n.state.userinfo));function i(){const e={...a};e.userPassword?(e.userPhone=o.value.userPhone,e.userPassword=Sn.MD5(e.userPassword).toString(),Se.login.validateUserPassWord({data:e}).then((e=>{200!==e.code?Te.alert({content:e.msg,showCancel:!1}):Se.mine.updateUserInfo({data:{userId:o.value.userId,youth:"0"}}).then((e=>{200!=e.code&&Te.alert({content:e.msg,showCancel:!1})}))}))):Te.alert("验证密码不能为空")}return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"container pr fmid fdc"},[e.createElementVNode("view",{class:"title f40 b"},"输入登录密码解锁未成年模式"),e.createElementVNode("view",{class:"account mtb20 c666 f32"},"当前账号: "+e.toDisplayString(o.value.userPhone),1),e.createElementVNode("view",{class:"password mtb30 br20"},[e.withDirectives(e.createElementVNode("input",{class:"input",type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>a.userPassword=e),placeholder:"登录密码"},null,512),[[e.vModelText,a.userPassword]])]),e.createElementVNode("view",{class:"button btn lg bar black mt60",onClick:i},"解锁")]))}},[["__scopeId","data-v-c269d5b9"]]),fd=M({__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(){Se.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=Te.format_url(e.videoUrl,"video"),e.format_imageUrl=Te.format_url(e.imageUrl,"img"),e)))),i.total=e.total,void n.$refs.select.open();Te.alert({content:e.msg,showCancel:!1})}))}function u(e){uni.$emit("selectPushCollectVideo",e)}return C((e=>{e.ids&&o.push(...e.ids.split(","))})),(t,n)=>{const a=f(e.resolveDynamicComponent("uni-icons"),w),l=f(e.resolveDynamicComponent("uni-popup"),Rn);return e.openBlock(),e.createElementBlock("view",{class:"appbw"},[e.createElementVNode("view",null,[e.createVNode(gu,{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(fu,{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-0eb0227d"]]);var vd={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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=void 0!==be?be:"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),p="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),m="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||p||m||h),_=void 0!==c&&(void 0!==c.nativeModuleProxy||void 0!==c.ReactNative),y=u?qq:d?tt:p?swan:m?my:l?wx:h?uni:{},C=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 E(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(C(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 E(e)?"":C(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})),!E(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,p=l,h=null,g=d.match(/^(https?:\/\/[^/]+\/)([^/]*\/?)(.*)$/),v=decodeURIComponent(g[3]),_=v.indexOf("?")>-1?v.split("?")[0]:v,C={key:e.fileKey?e.fileKey:_,success_action_status:200,"Content-Type":""},E={};if(f){var k=l.split("?sign=");if(k.length>1){var T=k[1];p="".concat(k[0],"?sign=").concat(encodeURIComponent("".concat(T))),E.sign=decodeURIComponent(T),E.signature=decodeURIComponent(T)}}var M={url:p,header:c,name:"file",filePath:i,formData:t(t({},C),E),timeout:e.timeout||3e5};if(m){var D=M;D.name,M=t(t({},r(D,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=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}()}()}(vd);const _d=Le(vd.exports);var yd={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;ne.length)&&(t=e.length);for(var n=0,a=new Array(t);n=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;n1&&(c+=l),p){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}(),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==be?be:"undefined"!=typeof self?self:{},m={},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&&Oe&&(t=Oe),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==p&&p.crypto&&(t=p.crypto),!t)try{t=m}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>>2]>>>24-i%4*8&255;t[a+i>>>2]|=s<<24-(a+i)%4*8}else for(i=0;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>>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>>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>>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>>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>>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>>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>>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],m=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],C=e[t+9],E=e[t+10],k=e[t+11],I=e[t+12],S=e[t+13],T=e[t+14],M=e[t+15],D=i[0],N=i[1],w=i[2],b=i[3];D=l(D,N,w,b,r,7,s[0]),b=l(b,D,N,w,c,12,s[1]),w=l(w,b,D,N,m,17,s[2]),N=l(N,w,b,D,h,22,s[3]),D=l(D,N,w,b,g,7,s[4]),b=l(b,D,N,w,f,12,s[5]),w=l(w,b,D,N,v,17,s[6]),N=l(N,w,b,D,_,22,s[7]),D=l(D,N,w,b,y,7,s[8]),b=l(b,D,N,w,C,12,s[9]),w=l(w,b,D,N,E,17,s[10]),N=l(N,w,b,D,k,22,s[11]),D=l(D,N,w,b,I,7,s[12]),b=l(b,D,N,w,S,12,s[13]),w=l(w,b,D,N,T,17,s[14]),D=u(D,N=l(N,w,b,D,M,22,s[15]),w,b,c,5,s[16]),b=u(b,D,N,w,v,9,s[17]),w=u(w,b,D,N,k,14,s[18]),N=u(N,w,b,D,r,20,s[19]),D=u(D,N,w,b,f,5,s[20]),b=u(b,D,N,w,E,9,s[21]),w=u(w,b,D,N,M,14,s[22]),N=u(N,w,b,D,g,20,s[23]),D=u(D,N,w,b,C,5,s[24]),b=u(b,D,N,w,T,9,s[25]),w=u(w,b,D,N,h,14,s[26]),N=u(N,w,b,D,y,20,s[27]),D=u(D,N,w,b,S,5,s[28]),b=u(b,D,N,w,m,9,s[29]),w=u(w,b,D,N,_,14,s[30]),D=d(D,N=u(N,w,b,D,I,20,s[31]),w,b,f,4,s[32]),b=d(b,D,N,w,y,11,s[33]),w=d(w,b,D,N,k,16,s[34]),N=d(N,w,b,D,T,23,s[35]),D=d(D,N,w,b,c,4,s[36]),b=d(b,D,N,w,g,11,s[37]),w=d(w,b,D,N,_,16,s[38]),N=d(N,w,b,D,E,23,s[39]),D=d(D,N,w,b,S,4,s[40]),b=d(b,D,N,w,r,11,s[41]),w=d(w,b,D,N,h,16,s[42]),N=d(N,w,b,D,v,23,s[43]),D=d(D,N,w,b,C,4,s[44]),b=d(b,D,N,w,I,11,s[45]),w=d(w,b,D,N,M,16,s[46]),D=p(D,N=d(N,w,b,D,m,23,s[47]),w,b,r,6,s[48]),b=p(b,D,N,w,_,10,s[49]),w=p(w,b,D,N,T,15,s[50]),N=p(N,w,b,D,f,21,s[51]),D=p(D,N,w,b,I,6,s[52]),b=p(b,D,N,w,h,10,s[53]),w=p(w,b,D,N,E,15,s[54]),N=p(N,w,b,D,c,21,s[55]),D=p(D,N,w,b,y,6,s[56]),b=p(b,D,N,w,M,10,s[57]),w=p(w,b,D,N,v,15,s[58]),N=p(N,w,b,D,S,21,s[59]),D=p(D,N,w,b,g,6,s[60]),b=p(b,D,N,w,k,10,s[61]),w=p(w,b,D,N,m,15,s[62]),N=p(N,w,b,D,C,21,s[63]),i[0]=i[0]+D|0,i[1]=i[1]+N|0,i[2]=i[2]+w|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<>>32-i)+t}function u(e,t,n,a,o,i,s){var r=e+(t&a|n&~a)+o+s;return(r<>>32-i)+t}function d(e,t,n,a,o,i,s){var r=e+(t^n^a)+o+s;return(r<>>32-i)+t}function p(e,t,n,a,o,i,s){var r=e+(n^(t|~a))+o+s;return(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],p=n[7],m=0;m<64;m++){if(m<16)l[m]=0|e[t+m];else{var h=l[m-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,f=l[m-2],v=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;l[m]=g+l[m-7]+v+l[m-16]}var _=a&o^a&i^o&i,y=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),C=p+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&u^~r&d)+c[m]+l[m];p=d,d=u,u=r,r=s+C|0,s=i,i=o,o=a,a=C+(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]+p|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>>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>>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>>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>>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>>2]|=e[o]<<24-o%4*8;t.call(this,a,n)}else t.apply(this,arguments)}).prototype=e}}(), /** @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 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]),p=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,p,y,C,E,k,I,S,T,M,D,N=this._hash.words,w=u.words,b=d.words,L=i.words,P=s.words,A=c.words,R=l.words;for(k=r=N[0],I=p=N[1],S=y=N[2],T=C=N[3],M=E=N[4],n=0;n<80;n+=1)D=r+e[t+L[n]]|0,D+=n<16?m(p,y,C)+w[0]:n<32?h(p,y,C)+w[1]:n<48?g(p,y,C)+w[2]:n<64?f(p,y,C)+w[3]:v(p,y,C)+w[4],D=(D=_(D|=0,A[n]))+E|0,r=E,E=C,C=_(y,10),y=p,p=D,D=k+e[t+P[n]]|0,D+=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]:m(I,S,T)+b[4],D=(D=_(D|=0,R[n]))+M|0,k=M,M=T,T=_(S,10),S=I,I=D;D=N[1]+y+T|0,N[1]=N[2]+C+M|0,N[2]=N[3]+E+k|0,N[3]=N[4]+r+I|0,N[4]=N[0]+p+S|0,N[0]=D},_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 m(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<>>32-t}e.RIPEMD160=a._createHelper(p),e.HmacRIPEMD160=a._createHmacHelper(p)}(),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>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(N=n[o]).high^=s,N.low^=i}for(var r=0;r<24;r++){for(var p=0;p<5;p++){for(var m=0,h=0,g=0;g<5;g++)m^=(N=n[p+5*g]).high,h^=N.low;var f=d[p];f.high=m,f.low=h}for(p=0;p<5;p++){var v=d[(p+4)%5],_=d[(p+1)%5],y=_.high,C=_.low;for(m=v.high^(y<<1|C>>>31),h=v.low^(C<<1|y>>>31),g=0;g<5;g++)(N=n[p+5*g]).high^=m,N.low^=h}for(var E=1;E<25;E++){var k=(N=n[E]).high,I=N.low,S=c[E];S<32?(m=k<>>32-S,h=I<>>32-S):(m=I<>>64-S,h=k<>>64-S);var T=d[l[E]];T.high=m,T.low=h}var M=d[0],D=n[0];for(M.high=D.high,M.low=D.low,p=0;p<5;p++)for(g=0;g<5;g++){var N=n[E=p+5*g],w=d[E],b=d[(p+1)%5+5*g],L=d[(p+2)%5+5*g];N.high=w.high^~b.high&L.high,N.low=w.low^~b.low&L.low}N=n[0];var P=u[r];N.high^=P.high,N.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>>24)|4278255360&(p<<24|p>>>8),m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),l.push(m),l.push(p)}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(p),t.HmacSHA3=o._createHmacHelper(p)}(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],p=n[7],m=a.high,h=a.low,g=o.high,f=o.low,v=i.high,_=i.low,y=s.high,C=s.low,E=r.high,k=r.low,I=u.high,S=u.low,T=d.high,M=d.low,D=p.high,N=p.low,w=m,b=h,L=g,P=f,A=v,R=_,O=y,B=C,x=E,U=k,V=I,G=S,F=T,Y=M,H=D,Z=N,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>>0?1:0))+le+((j+=ue)>>>0>>0?1:0),X.high=J,X.low=j}var de,pe=x&V^~x&F,me=U&G^~U&Y,he=w&L^w&A^L&A,ge=b&P^b&R^P&R,fe=(w>>>28|b<<4)^(w<<30|b>>>2)^(w<<25|b>>>7),ve=(b>>>28|w<<4)^(b<<30|w>>>2)^(b<<25|w>>>7),_e=(x>>>14|U<<18)^(x>>>18|U<<14)^(x<<23|U>>>9),ye=(U>>>14|x<<18)^(U>>>18|x<<14)^(U<<23|x>>>9),Ce=c[q],Ee=Ce.high,ke=Ce.low,Ie=H+_e+((de=Z+ye)>>>0>>0?1:0),Se=ve+ge;H=F,Z=Y,F=V,Y=G,V=x,G=U,x=O+(Ie=(Ie=(Ie=Ie+pe+((de+=me)>>>0>>0?1:0))+Ee+((de+=ke)>>>0>>0?1:0))+J+((de+=j)>>>0>>0?1:0))+((U=B+de|0)>>>0>>0?1:0)|0,O=A,B=R,A=L,R=P,L=w,P=b,w=Ie+(fe+he+(Se>>>0>>0?1:0))+((b=de+Se|0)>>>0>>0?1:0)|0}h=a.low=h+b,a.high=m+w+(h>>>0>>0?1:0),f=o.low=f+P,o.high=g+L+(f>>>0

>>0?1:0),_=i.low=_+R,i.high=v+A+(_>>>0>>0?1:0),C=s.low=C+B,s.high=y+O+(C>>>0>>0?1:0),k=r.low=k+U,r.high=E+x+(k>>>0>>0?1:0),S=u.low=S+G,u.high=I+V+(S>>>0>>0?1:0),M=d.low=M+Y,d.high=T+F+(M>>>0>>0?1:0),N=p.low=N+Z,p.high=D+H+(N>>>0>>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}}),p=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>>2];e.sigBytes-=t}},h=(t.BlockCipher=l.extend({cfg:l.cfg.extend({mode:p,padding:m}),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>>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>>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,p[h]=_<<8|_>>>24,m[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;s6&&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>>24]]^d[a[l>>>16&255]]^p[a[l>>>8&255]]^m[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,p,m,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],p=e[t+3]^n[3],m=4,h=1;h>>24]^o[u>>>16&255]^i[d>>>8&255]^s[255&p]^n[m++],f=a[u>>>24]^o[d>>>16&255]^i[p>>>8&255]^s[255&l]^n[m++],v=a[d>>>24]^o[p>>>16&255]^i[l>>>8&255]^s[255&u]^n[m++],_=a[p>>>24]^o[l>>>16&255]^i[u>>>8&255]^s[255&d]^n[m++];l=g,u=f,d=v,p=_}g=(r[l>>>24]<<24|r[u>>>16&255]<<16|r[d>>>8&255]<<8|r[255&p])^n[m++],f=(r[u>>>24]<<24|r[d>>>16&255]<<16|r[p>>>8&255]<<8|r[255&l])^n[m++],v=(r[d>>>24]<<24|r[p>>>16&255]<<16|r[l>>>8&255]<<8|r[255&u])^n[m++],_=(r[p>>>24]<<24|r[l>>>16&255]<<16|r[u>>>8&255]<<8|r[255&d])^n[m++],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],p.call(this,4,252645135),p.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),p.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,p.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<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>>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,p=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=p,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>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>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>>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,p=u<<16|65535&l;for(a[0]^=l,a[1]^=d,a[2]^=u,a[3]^=p,a[4]^=l,a[5]^=d,a[6]^=u,a[7]^=p,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>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>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{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 Sd,Td,Md,Dd,Nd,wd,bd,Ld,Pd;!function(e){e.TUIStore="TUIStore",e.TUITranslate="TUITranslate",e.TUIConversation="TUIConversation",e.TUIChat="TUIChat",e.TUIGroup="TUIGroup",e.TUIUser="TUIUser",e.TUIFriend="TUIFriend"}(Sd||(Sd={})),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"}(Td||(Td={})),function(e){e[e.UNSUB_USER=-1]="UNSUB_USER"}(Md||(Md={})),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"}(Dd||(Dd={})),function(e){e.ADD="add",e.REMOVE="remove"}(Nd||(Nd={})),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"}(wd||(wd={})),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"}(bd||(bd={})),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 不匹配."}(Pd||(Pd={}));const Ad=function(e){return void 0===e},Rd=function(e){return e.startsWith("_")},Od=function(e){return/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e)},Bd=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},xd=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},Ud={"[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]":"[赞]"},Gd={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)},Fd=["messageList","conversationList","newMessageList"],Yd=["translateTextInfo","voiceToTextInfo"],Hd="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),Zd="undefined"!=typeof uni&&"undefined"==typeof window,qd=Hd||Zd,Jd="undefined"!=typeof uni,Xd=("undefined"!=typeof uni||"undefined"!=typeof window)&&!qd,Kd=Hd?wx:Jd?uni:window,zd=Xd&&window&&window.navigator&&window.navigator.userAgent||"",Wd=/Android/i.test(zd),Qd=/(?:Windows Phone)/.test(zd),$d=/(?:SymbianOS)/.test(zd),ep=/iPad/i.test(zd)||/iPhone/i.test(zd)||/iPod/i.test(zd),tp=Wd||Qd||$d||ep,np=Xd&&!tp;class ap{constructor(){this.global=Kd,this.isOfficial=!1}static getInstance(){return ap.instance||(ap.instance=new ap),ap.instance}initOfficial(e){this.isOfficial=e}getPlatform(){let e="";return np?e="pc":tp?e="h5":Hd?e="wechat":Zd&&!Hd&&(e="app"),e}}class op{constructor(){this.EVENT=ul.EVENT,this.TYPES=ul.TYPES,this.loginStatusPromise=new Map,this.userID="",this.isInited=!1}static getInstance(){return op.instance||(op.instance=new op),op.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,ap.getInstance().initOfficial(o),this.TUIStore.update(Td.APP,"isOfficial",o),this.TUIStore.update(Td.APP,"SDKVersion",ul.VERSION),this.eventCenter=new Id(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(Td.CHAT),this.TUIStore.reset(Td.CONV),this.TUIStore.reset(Td.GRP),this.TUIStore.reset(Td.USER),this.TUIStore.reset(Td.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=ul.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=Ed(e,["chat"]);Ad(t)?this.chat=ul.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":_d}),!0===n&&this.chat.registerPlugin({"tim-profanity-filter-plugin":Cd}),!Zd||Hd||Ad(a)||Ad(o)||this.chat.registerPlugin({"tim-push":a,pushConfig:o}),!Zd||Hd||Ad(i)||Ad(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(Gd).forEach((e=>{const t=Gd[e];this.chat.callExperimentalAPI("isCommercialAbilityEnabled",t).then((t=>{const{enabled:n=!1}=t.data;this.TUIStore.update(Td.APP,e,n)}))}))}}class ip{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 sp{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===Md.UNSUB_USER?this.store.userStatusList.delete(t):this.store.userStatusList.set(t,{statusType:n,customStatus:a})})):this.store.userStatusList.clear()}}class rp{getEngine(){return op.getInstance()}}const cp=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},lp=["[图片]","[语音]","[视频]","[文件]","[位置]","[地理位置]","[动画表情]","[自定义消息]","[群提示消息]","[聊天记录]"];class up extends rp{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=>{Rd(t)||(this[t]=e[t])}))}updateProperties(e){Object.keys(e).forEach((t=>{Rd(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=Od(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=Od(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=Od(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;o0&&(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 Bd(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=Bd(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=lp.includes(o.messageForShow)?n(`TUIChat.${o.messageForShow}`):o.messageForShow}else s=lp.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(cp(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 Hd||!t||t.startsWith("Emoji.")?Vd[e]||e:t}))}return n}}class dp{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 up?n.updateProperties(e):n=new up(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 pp extends rp{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=>{Rd(t)||(this[t]=e[t])}))}updateProperties(e){this._message=e,Object.keys(e).forEach((t=>{Rd(t)||(this[t]=e[t])}))}getMessage(){return this._message}modifyMessage(e){return e.type&&this._message.type!==e.type&&!e.payload?Promise.reject({code:bd.MISMATCH_TYPE_AND_PAYLOAD,message:Pd.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:Ad(this._signalingInfo)?(this._signalingInfo=this.getEngine().chat.getSignalingInfo(this._message),this._signalingInfo):this._signalingInfo}getMessageContent(){const e=this.messageHandlers[this.type];if(Ad(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 mp{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=>!Yd.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 pp||(n=this.getModel(e.ID),n?n.updateProperties(e):n=new pp(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{Rd(t)||(this[t]=e[t])}))}}class gp{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 hp?t:new hp(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 hp?e:new hp(e)))}}class fp{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 vp{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 _p{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 yp{constructor(){this.storeMap={[Td.APP]:new ip,[Td.USER]:new sp,[Td.CONV]:new dp,[Td.CHAT]:new mp,[Td.GRP]:new gp,[Td.FRIEND]:new vp,[Td.SEARCH]:new _p},this.task={}}static getInstance(){return yp.instance||(yp.instance=new yp),yp.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!==Td.CUSTOM||this.storeMap[e]||(this.storeMap[e]=new fp),null===(a=this.storeMap[e])||void 0===a||a.update(t,n),this.notify(e,t)}getData(e,t){var n;return e!==Td.CUSTOM||this.storeMap[e]||(this.storeMap[e]=new fp),null===(n=this.storeMap[e])||void 0===n?void 0:n.getData(t)}getConversationModel(e){var t;return null===(t=this.storeMap[Td.CONV])||void 0===t?void 0:t.getModel(e)}getMessageModel(e){var t;return null===(t=this.storeMap[Td.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);Fd.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 Cp(e){return(Cp="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 Ep(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kp(e){var t=function(e){if("object"!=Cp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cp(t)?t:t+""}function Ip(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,a=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};Ep(this,e),this.init(t,n)}return Sp(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||Rp,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;n1?t-1:0),a=1;a-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 Gp(e,t,n){var a=Vp(e,t,Object);a.obj[a.k]=n}function Fp(e,t){var n=Vp(e,t),a=n.obj,o=n.k;if(a)return a[o]}function Yp(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]):Yp(e[a],t[a],n):e[a]=t[a]);return e}function Hp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Zp={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function qp(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Zp[e]})):e}var jp="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Jp=[" ",",","?","!",";"];function Xp(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;ii+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?Xp(c,l,n):void 0}o=o[a[i]]}return o}}function Kp(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 zp(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ep(this,t),a=e.call(this),jp&&Bp.call(Tp(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 Sp(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=Fp(this.data,s);return r||!i||"string"!=typeof n?r:Xp(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),Gp(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=Fp(this.data,s)||{};a?Yp(r,n,o):r=zp(zp({},r),n),Gp(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?zp(zp({},{}),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}(),Qp={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 $p(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 em(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return Ep(this,t),a=e.call(this),jp&&Bp.call(Tp(a)),o=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i=n,s=Tp(a),o.forEach((function(e){i[e]&&(s[e]=i[e])})),a.options=r,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=Op.create("translator"),a}return Sp(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=Jp.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"!==Cp(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"===Cp(n)&&(n=em({},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,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var m=n.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(u).concat(m).concat(c),usedKey:c,exactUsedKey:c,usedLng:d,usedNS:u}:"".concat(u).concat(m).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,C=!this.i18nFormat||this.i18nFormat.handleAsObject;if(C&&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 E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,g,em(em({},n),{},{ns:l})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return i?(h.res=E,h):E}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,em(em({},n),{joinArrays:!1,ns:l})),I[T]===M&&(I[T]=g[T])}g=I}}else if(C&&"string"==typeof y&&"[object Array]"===_)(g=g.join(y))&&(g=this.extendTranslation(g,e,n,a));else{var D=!1,N=!1,w=void 0!==n.count&&"string"!=typeof n.count,b=t.hasDefaultValue(n),L=w?this.pluralResolver.getSuffix(d,n.count,n):"",P=n["defaultValue".concat(L)]||n.defaultValue;!this.isValidLookup(g)&&b&&(D=!0,g=P),this.isValidLookup(g)||(N=!0,g=c);var A=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N?void 0:g,R=b&&P!==g&&this.options.updateMissing;if(N||D||R){if(this.logger.log(R?"updateKey":"missingKey",d,u,c,R?P:g),s){var O=this.resolve(c,em(em({},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 B=[],x=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&x&&x[0])for(var U=0;U1&&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,p=d&&!r.ordinal&&0===r.count&&s.pluralResolver.shouldUseIntlApi(),m=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,!tm["".concat(h[0],"-").concat(e)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(i)&&(tm["".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),p&&c.push(l+h)),m){var g="".concat(l).concat(s.options.contextSeparator).concat(r.context);c.push(g),d&&(c.push(g+u),p&&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 am(e){return e.charAt(0).toUpperCase()+e.slice(1)}var om=function(){function e(t){Ep(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Op.create("languageUtils")}return Sp(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]=am(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]=am(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=am(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}(),im=[{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}],sm={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)}},rm=["v1","v2","v3"],cm={zero:0,one:1,two:2,few:3,many:4,other:5},lm=function(){function e(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ep(this,e),this.languageUtils=t,this.options=a,this.logger=Op.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={},im.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:sm[e.fc]}}))})),n)}return Sp(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 cm[e]-cm[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!rm.includes(this.options.compatibilityJSON)}}]),e}();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;t3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],c=(a=t,void 0!==(i=Fp(e,o=n))?i:Fp(a,o));return!c&&r&&"string"==typeof n&&void 0===(c=Xp(e,n,s))&&(c=Xp(t,n,s)),c}var mm=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ep(this,e),this.logger=Op.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Sp(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:qp,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Hp(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Hp(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?Hp(t.nestingPrefix):t.nestingPrefixEscaped||Hp("$t("),this.nestingSuffix=t.nestingSuffix?Hp(t.nestingSuffix):t.nestingSuffixEscaped||Hp(")"),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=pm(t,c,e,r.options.keySeparator,r.options.ignoreJSONStructure);return r.alwaysFormat?r.format(o,void 0,n,dm(dm(dm({},a),t),{},{interpolationkey:e})):o}var i=e.split(r.formatSeparator),s=i.shift().trim(),l=i.join(r.formatSeparator).trim();return r.format(pm(t,c,s,r.options.keySeparator,r.options.ignoreJSONStructure),l,n,dm(dm(dm({},a),t),{},{interpolationkey:s}))};this.resetRegExp();var d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,p=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(p){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=Up(i));var l=t.safeValue(i);if(e=e.replace(o[0],l),p?(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=dm(dm({},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=dm({},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=Up(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,dm(dm({},s),{},{interpolationkey:n[1].trim()}))}),a.trim())),e=e.replace(n[0],a),this.regexp.lastIndex=0}return e}}]),e}();function hm(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 gm(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Ep(this,e),this.logger=Op.create("formatter"),this.options=t,this.formats={number:fm((function(e,t){var n=new Intl.NumberFormat(e,gm({},t));return function(e){return n.format(e)}})),currency:fm((function(e,t){var n=new Intl.NumberFormat(e,gm(gm({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:fm((function(e,t){var n=new Intl.DateTimeFormat(e,gm({},t));return function(e){return n.format(e)}})),relativetime:fm((function(e,t){var n=new Intl.RelativeTimeFormat(e,gm({},t));return function(e){return n.format(e,t.range||"day")}})),list:fm((function(e,t){var n=new Intl.ListFormat(e,gm({},t));return function(e){return n.format(e)}}))},this.init(t)}return Sp(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()]=fm(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 Lp(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)?Lp(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,gm(gm(gm({},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 _m(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 ym(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return Ep(this,t),i=e.call(this),jp&&Bp.call(Tp(i)),i.backend=n,i.store=a,i.services=o,i.languageUtils=o.languageUtils,i.options=s,i.logger=Op.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 Sp(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,p;a=n.loaded,r=i,(l=(c=Vp(a,[o],Object)).obj)[u=c.k]=l[u]||[],l[u].push(r),p=e,void 0!==(d=n).pending[p]&&(delete d.pending[p],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&&o2&&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=ym(ym({},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 Em(){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"===Cp(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Cp(e[2])||"object"===Cp(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 km(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 Im(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 Sm(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Ep(this,t),n=e.call(this),jp&&Bp.call(Tp(n)),n.options=km(o),n.services={},n.logger=Op,n.modules={external:[]},a=Tp(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),Np(n,Tp(n));setTimeout((function(){n.init(o,i)}),0)}return n}return Sp(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=Em();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=Sm(Sm(Sm({},a),this.options),km(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Sm(Sm({},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?Op.init(o(this.modules.logger),this.options):Op.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=vm);var s=new om(this.options);this.store=new Wp(this.options.resources,this.options);var r=this.services;r.logger=Op,r.resourceStore=this.store,r.languageUtils=s,r.pluralResolver=new lm(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 mm(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new Cm(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;o1?n-1:0),o=1;o0&&"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=xp(),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]:Tm,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=xp();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Tm),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&&Qp.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-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var a=xp();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"!==Cp(o)){for(var s=arguments.length,r=new Array(s>2?s-2:0),c=2;c1&&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=xp();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=xp();"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 om(Em());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]:Tm,o=Sm(Sm(Sm({},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=Sm({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new nm(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var Dm=Mm.createInstance();Dm.createInstance=Mm.createInstance,Dm.createInstance,Dm.dir,Dm.init,Dm.loadResources,Dm.reloadResources,Dm.use,Dm.changeLanguage,Dm.getFixedT,Dm.t,Dm.exists,Dm.setDefaultNamespace,Dm.hasLoadedNamespace,Dm.loadNamespaces,Dm.loadLanguages;class Nm extends rp{constructor(){super(),this.languages=null}static getInstance(){return Nm.instance||(Nm.instance=new Nm),Nm.instance}provideLanguages(e){Hd||(this.languages=e,g("log","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","TUITranslateService.provideLanguages ok."))}useI18n(e){if(Hd)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};Dm.init({compatibilityJSON:"v3",lng:e||"zh",fallbackLng:"zh",detection:{order:["querystring","navigator"],caches:["localStorage","cookie"]},resources:t})}changeLanguage(e){return Dm.changeLanguage(e)}t(e){if(!this.languages){let t=e;return!Ad(e)&&e.indexOf(".")>-1&&(t=e.split(".").pop()||""),t}return Dm.t(e)}}class wm extends rp{constructor(){super(),this.serv="TUIConversationService"}static getInstance(){return wm.instance||(wm.instance=new wm),wm.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(Td.CONV,"conversationList",t),this.updateCurrentConversation()}onTotalUnreadCountUpdated(e){this.getEngine().TUIStore.update(Td.CONV,"totalUnreadCount",e)}onMessageReceived(e){const t=this.getEngine(),n=this.getEngine().TUIStore.getData(Td.CONV,"conversationList");let a=!1;for(let o=0;o0){this.getEngine().TUIStore.update(Td.CONV,"operationTypeMap",{conversationID:s,operationType:0}),a=!0;break}}}if(a){this.getEngine().TUIStore.update(Td.CONV,"conversationList",n);const e=this.getEngine().TUIStore.getData(Td.CONV,"currentConversationID")||"",t=this.findConversation(e);t&&this.getEngine().TUIStore.update(Td.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 kd(this,void 0,void 0,(function*(){const t=`${this.serv}.switchConversation`,n=this.getEngine();if(!e)return n.TUIStore.reset(Td.CHAT,["messageList","isCompleted","nextReqMessageID"]),n.TUIStore.update(Td.CONV,"currentConversationID",""),n.TUIStore.update(Td.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:bd.INVALID_CONV_ID,message:Pd.INVALID_CONV_ID});const a=n.TUIStore.getData(Td.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:bd.CONV_ID_SAME,message:Pd.CONV_ID_SAME});const o=yield this.getConversationModel(e);return Ad(o)?(g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",`${t} target conversation is not exist, conversationID:${e}`),Promise.reject({code:bd.CONV_NOT_EXIST,message:Pd.CONV_NOT_EXIST})):(a&&this.setMessageRead(a),e&&this.setMessageRead(e),n.TUIStore.reset(Td.CHAT,["messageList","isCompleted","nextReqMessageID"]),n.TUIStore.update(Td.CONV,"currentConversationID",e),n.TUIStore.update(Td.CONV,"currentConversation",o),Promise.resolve(o))}))}getConversationModel(e){return kd(this,void 0,void 0,(function*(){let t=this.findConversation(e);if(Ad(t))try{const n=yield this.getConversationProfile(e);n.data&&n.data.conversation&&(t=new up(n.data.conversation))}catch(n){t=void 0}return t}))}findConversation(e){let t;const n=this.getEngine().TUIStore.getData(Td.CONV,"conversationList");for(let a=0;a{const n=this.getEngine().TUIStore.getData(Td.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(Td.CONV,"currentConversationID",""),this.getEngine().TUIStore.update(Td.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(Td.CHAT,"messageList",[]),this.getEngine().TUIStore.update(Td.CHAT,"nextReqMessageID",""),this.getEngine().TUIStore.update(Td.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(Td.CONV,"conversationList");for(let a=0;ae.type!==this.getEngine().TYPES.CONV_SYSTEM))}}class bm{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(Td.USER,"userProfile");e.forEach((e=>{e.userID===n.userID&&t.TUIStore.update(Td.USER,"userProfile",e)}))}onBlacklistUpdated(e){const t=this.getEngine();this.getBlacklistProfile(e).then((e=>{t.TUIStore.update(Td.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{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 Ad(e)?t.chat.getMyProfile().then((e=>(t.TUIStore.update(Td.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 Lm(e,t,n=!0){var a,o;a=n?Am(e):e,o=t,qd?Kd.setStorageSync(a,o):Rm()&&localStorage.setItem(a,JSON.stringify(o))}function Pm(e,t=!0){try{return function(e){if(qd)return Kd.getStorageSync(e);if(Rm()){const t=localStorage.getItem(e);if("undefined"!==t)return JSON.parse(t)}}(t?Am(e):e)}catch(n){return void g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1","Storage.getStorageItem error:",n)}}function Am(e){return`chat_engine_${e}`}function Rm(){return navigator&&navigator.cookieEnabled&&localStorage}class Om{constructor(e){this.TUIUserService=e}getEngine(){return this.TUIUserService.getEngine()}init(){const e=this.getEngine(),t=Pm("displayOnlineStatus")||!1;e.TUIStore.update(Td.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(Td.CONV,{conversationList:()=>{const t=e.TUIStore.getData(Td.APP,"enabledOnlineStatus"),n=e.TUIStore.getData(Td.USER,"displayOnlineStatus");t&&n&&this.startToSubscribe()}})}onUserStatusUpdated(e){this.getEngine().TUIStore.update(Td.USER,"userStatusList",e)}switchUserStatus(e){const t=this.getEngine(),{displayOnlineStatus:n=!1}=e;t.TUIStore.update(Td.USER,"displayOnlineStatus",n),Lm("displayOnlineStatus",n);const a=t.TUIStore.getData(Td.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(Td.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:Md.UNSUB_USER})})),t.TUIStore.update(Td.USER,"userStatusList",o),e})).catch((e=>Promise.reject(e)))}startToSubscribe(){const e=this.getEngine(),t=e.TUIStore.getData(Td.CONV,"conversationList"),n=e.TUIStore.getData(Td.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 Bm extends rp{constructor(){super(),this.userProfileHandler=new bm(this),this.userStatusHandler=new Om(this)}static getInstance(){return Bm.instance||(Bm.instance=new Bm),Bm.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(Td.USER,"kickedOut",e.type)}onNetStateChange(e){this.getEngine().TUIStore.update(Td.USER,"netStateChange",e.state)}initMessageReadReceipt(){const e=Pm("displayMessageReadReceipt")||!0;this.getEngine().TUIStore.update(Td.USER,"displayMessageReadReceipt",e)}switchUserStatus(e){return this.userStatusHandler.switchUserStatus(e)}switchMessageReadStatus(e){this.getEngine().TUIStore.update(Td.USER,"displayMessageReadReceipt",e),Lm("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 xm{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:xd(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=Bd(e.payload.data);if(1!==(null==d?void 0:d.businessID))return"";const p=Bd(null==d?void 0:d.data),m=e.fromAccount||e.from,h=this.getEngine().TUIFriend.getFriendRemark([m]),g=this.getEngine().getMyUserID();let f=h[m]||e.nameCard||e.nick||m;switch(f=this.substringByLength(f),null==d?void 0:d.actionType){case 1:return"audioCall"!==(null===(t=null==p?void 0:p.data)||void 0===t?void 0:t.cmd)&&"videoCall"!==(null===(n=null==p?void 0:p.data)||void 0===n?void 0:n.cmd)||!(null==d?void 0:d.groupID)?"hangup"===(null===(a=null==p?void 0:p.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==p?void 0:p.call_end)}`:"switchToAudio"===(null===(o=null==p?void 0:p.data)||void 0===o?void 0:o.cmd)?`${this.t("message.custom.切换语音通话")}`:"switchToVideo"===(null===(i=null==p?void 0:p.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==p?void 0:p.data)||void 0===s?void 0:s.cmd)?`${this.t("message.custom.切换语音通话")}`:"switchToVideo"===(null===(r=null==p?void 0:p.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==p?void 0:p.line_busy)||"lineBusy"===(null==p?void 0:p.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==p?void 0:p.data)||void 0===c?void 0:c.cmd))return`${this.t("message.custom.切换语音通话")}`;if("switchToVideo"===(null===(l=null==p?void 0:p.data)||void 0===l?void 0:l.cmd))return`${this.t("message.custom.切换视频通话")}`;if(null==d?void 0:d.groupID){if(m===(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=Bd(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)):Ud[e]?(t.push({name:"img",src:"https://web.sdk.qcloud.com/im/assets/emoji-plugin/"+Ud[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 Um{constructor(e){this.TUIChatService=e,this.typingTo="",this.timer=null}getEngine(){return this.TUIChatService.getEngine()}clearTypingStatus(){this.getEngine().TUIStore.getData(Td.CHAT,"typingStatus")&&this.getEngine().TUIStore.update(Td.CHAT,"typingStatus",!1),this.timer&&clearTimeout(this.timer),this.timer=null}handleLastMessage(e){const t=this.getEngine(),n=t.TUIStore.getData(Td.CHAT,"typingStatus");if(e.type===this.getEngine().TYPES.MSG_CUSTOM&&"in"===e.flow){const a=Bd(e.payload.data);if(a.businessID===Dd.BUSINESS_ID){const{typingStatus:e,userAction:o}=a;if(e===Dd.STATUS_START||o===Dd.ACTION_START_ID)return n?(this.timer&&clearTimeout(this.timer),this.timer=null):t.TUIStore.update(Td.CHAT,"typingStatus",!0),this.timer=setTimeout((()=>{this.clearTypingStatus()}),3e4),t.TUIStore.getData(Td.CHAT,"typingStatus");e!==Dd.STATUS_END&&o!==Dd.ACTION_END_ID||this.clearTypingStatus()}}}filterTypingMessage(e=[]){return 0===e.length?[]:(this.getEngine().TUIStore.getData(Td.APP,"enableTyping")&&this.handleLastMessage(e[e.length-1]),e.filter((e=>e.type!==this.getEngine().TYPES.MSG_CUSTOM||Bd(e.payload.data).businessID!==Dd.BUSINESS_ID)))}createTypingMessage(e=Dd.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}=Dd;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(Dd.STATUS_START,t);this.getEngine().TUIChat.sendCustomMessage(e,{onlineUserOnly:!0})}else this.sendTypingEnd()}sendTypingEnd(){if(this.typingTo){const e=this.createTypingMessage(Dd.STATUS_END,this.typingTo);this.getEngine().TUIChat.sendCustomMessage(e,{onlineUserOnly:!0})}this.typingTo=""}}class Vm{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(Td.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(Td.APP,"enabledMessageReadReceipt"),a=t.TUIStore.getData(Td.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 Gm extends rp{constructor(){super(),this.serv="TUIChatService",this.messageHandler=new xm(this),this.typingHandler=new Um(this),this.readReceiptHandler=new Vm(this),this.isSwitching=!0,this.delayGetHoppingFunction=void 0,this.hoppingConfigMap=new Map}static getInstance(){return Gm.instance||(Gm.instance=new Gm),Gm.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(Td.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(Td.CONV,{currentConversationID:t=>{this.isSwitching=!0,this.delayGetHoppingFunction=void 0,this.hoppingConfigMap.clear(),e.TUIStore.reset(Td.CHAT),this.typingHandler.clearTypingStatus(),this.typingHandler.sendTypingEnd(),cp(t)||this.getMessageList().finally((()=>{this.isSwitching=!1,this.delayGetHoppingFunction&&this.delayGetHoppingFunction()}))}})}onMessageSource(){const e=this.getEngine();e.TUIStore.watch(Td.CHAT,{messageSource:t=>{const n=this.getStoreData(Td.CONV,"currentConversationID");if(!n||t&&t.conversationID!==n)return;if(Ad(t))return this.hoppingConfigMap.clear(),e.TUIStore.update(Td.CHAT,"messageList",[]),e.TUIStore.update(Td.CHAT,"nextReqMessageID",""),e.TUIStore.update(Td.CHAT,"isCompleted",!1),void this.getMessageList();const a=this.getStoreData(Td.CHAT,"messageList");a&&a.find((e=>t&&e.ID===t.ID))||(this.isSwitching?this.delayGetHoppingFunction=this.getMessageListHoppingForDown:this.getMessageListHoppingForDown())}})}getMessageListHoppingForDown(){const e=this.getStoreData(Td.CHAT,"messageList"),{conversationID:t,sequence:n,time:a,ID:o}=this.getStoreData(Td.CHAT,"messageSource");if(e&&e.find((e=>o&&e.ID===o)))return;const i=this.getEngine();i.TUIStore.update(Td.CHAT,"messageList",[]),i.TUIStore.update(Td.CHAT,"nextReqMessageID",""),i.TUIStore.update(Td.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(Td.CHAT,"messageSource")&&"unshift"!==t&&"edit"!==t)return;const n=this.getStoreData(Td.CHAT,"messageList"),a=this.updateTargetMessageList(e,n,t);this.getEngine().TUIStore.update(Td.CHAT,"messageList",a)}updateTargetMessageList(e,t,n=""){const a=this.getStoreData(Td.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(Td.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(Td.APP,"enableTyping")&&this.sendTyping(!0)}leaveTypingState(){this.getStoreData(Td.APP,"enableTyping")&&this.sendTyping(!1)}sendTyping(e){const t=this.getEngine(),n=this.getStoreData(Td.CONV,"currentConversationID");if(!n.startsWith(t.TYPES.CONV_C2C))return;const a=n.replace(t.TYPES.CONV_C2C,"");if(e){const e=this.getStoreData(Td.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(Td.CHAT,"quoteMessage",{message:e,type:"quote"}),e}replyMessage(e){return this.getEngine().TUIStore.update(Td.CHAT,"quoteMessage",{message:e,type:"reply"}),e}getCurrentConvInfo(){const{conversationID:e="",type:t}=this.getStoreData(Td.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=Bd(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?Bd(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)?Bd(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(Td.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(Td.CHAT,["quoteMessage"],!0),e)))}sendTextAtMessage(e,t){const n=this.getEngine(),{message:a,type:o}=this.getStoreData(Td.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(Td.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;re instanceof pp?e.getMessage():e))}sendForwardMessage(e,t,n){t=this.getOriginMessageList(t);const a=n||{},{needMerge:o=!1,params:i={},mergeInfo:s={}}=a,r=Ed(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{const{code:t=0,data:n={}}=e.code;throw t===wd.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===wd.MSG_MODIFY_DISABLED_IN_AVCHATROOM?g("warn","at node_modules/@tencentcloud/chat-uikit-engine/index.js:1",Ld.MSG_MODIFY_DISABLED_IN_AVCHATROOM):t===wd.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(Td.CONV,"currentConversationID"),nextReqMessageID:this.getStoreData(Td.CHAT,"nextReqMessageID")}){const t=this.getEngine();if(!t.chat.isReady())return Promise.reject({code:bd.GET_MSG_LIST_ERROR,message:Pd.GET_MSG_LIST_ERROR});if(this.getStoreData(Td.CHAT,"isCompleted"))return Promise.resolve({data:{messageList:[],nextReqMessageID:"",isCompleted:!0}});const n=this.getStoreData(Td.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(Td.CHAT,"userInfo");Object.keys(s).length>0&&this.updateLocalMessage(a,s),this.updateMessageList(a,"unshift"),t.TUIStore.update(Td.CHAT,"nextReqMessageID",o),t.TUIStore.update(Td.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(Td.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(Td.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(Td.USER,"targetLanguage",e)}translateText(e){const t=this.getStoreData(Td.USER,"targetLanguage"),n=Object.assign({targetLanguage:t,sourceLanguage:"auto"},e);return this.getEngine().chat.translateText(n)}searchCloudMessages(e){const t=this.getStoreData(Td.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=Ed(e,["messageList","conversationID"]),i=n.map((e=>new pp(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(Td.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;t0&&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(Td.CHAT,"userInfo");this.getEngine().TUIStore.update(Td.CHAT,"userInfo",Object.assign(t,e));const n=this.getStoreData(Td.CHAT,"messageList");n.length>0&&this.updateLocalMessage(n,e)&&this.getEngine().TUIStore.update(Td.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=Bd(u.data);if(1===(null==t?void 0:t.businessID)){const c=Bd(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(Td.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(Td.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 Fm extends rp{constructor(){super(),this.groupMap=new Map}static getInstance(){return Fm.instance||(Fm.instance=new Fm),Fm.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(Td.GRP,"groupList",e);const n=t.TUIStore.getData(Td.GRP,"currentGroupID");e.forEach((e=>{e.groupID===n&&t.TUIStore.update(Td.GRP,"currentGroup",e)}))}onGroupAttributesUpdated(e){const t=this.getEngine(),n=t.TUIStore.getData(Td.GRP,"currentGroupID");let a=t.TUIStore.getData(Td.GRP,"groupList");const{groupID:o,groupAttributes:i}=e;n===o&&t.TUIStore.update(Td.GRP,"currentGroupAttributes",i),a=a.map((e=>(e.groupID===o&&(e.groupAttributes=i),e))),t.TUIStore.update(Td.GRP,"groupList",a)}onGroupCounterUpdated(e){const t=this.getEngine(),n=t.TUIStore.getData(Td.GRP,"currentGroupID"),a=t.TUIStore.getData(Td.GRP,"currentGroupCounters")||{};let o=t.TUIStore.getData(Td.GRP,"groupList");const{groupID:i,key:s,value:r}=e;n===i&&(a[s]=r,t.TUIStore.update(Td.GRP,"currentGroupCounters",a)),o=o.map((e=>(e.groupID===i&&(e.groupCounters=Object.assign(Object.assign({},e.groupCounters),{[s]:r})),e))),t.TUIStore.update(Td.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(Td.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(Td.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 kd(this,void 0,void 0,(function*(){const t=this.getEngine().TUIStore.getData(Td.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(Td.GRP,["currentGroupID","currentGroup","currentGroupAttributes","currentGroupCounters","currentGroupMemberList"],!0)}switchGroup(e){return kd(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(Td.GRP,"currentGroup");return Promise.resolve(e)}const a=t.TUIStore.getData(Td.GRP,"currentGroupID");if(!e)return this.resetCurrentStore(),Promise.resolve({});if(a===e){const e=t.TUIStore.getData(Td.GRP,"currentGroup");return Promise.resolve(e)}this.resetCurrentStore(),t.TUIStore.update(Td.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(Td.GRP,"currentGroup");return Promise.resolve(i)}))}getGroupInfo(e){return kd(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(Td.GRP,"currentGroup",n.group),t.TUIStore.update(Td.GRP,"currentGroupAttributes",n.groupAttributes||{}),void t.TUIStore.update(Td.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(Td.GRP,"currentGroupAttributes",r);try{const n=yield this.getGroupCounters({groupID:e,keyList:[]}),{counters:o}=n.data;a.counters=o,t.TUIStore.update(Td.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=>kd(this,void 0,void 0,(function*(){if(t.TUIStore.getData(Td.GRP,"currentGroupID")===e.groupID){const{group:e}=n.data;t.TUIStore.update(Td.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(Td.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(Td.GRP,"currentGroupMemberList")||[]).filter((t=>!e.find((e=>e.userID===t.userID)))),...e];t.TUIStore.update(Td.GRP,"currentGroupMemberList",n)}addMemberList(e){return kd(this,void 0,void 0,(function*(){const t=this.getEngine().TUIStore.getData(Td.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(Td.GRP,"currentGroupMemberList").filter((t=>-1===e.indexOf(t.userID)));t.TUIStore.update(Td.GRP,"currentGroupMemberList",n)}getGroupMemberList(e){const t=this.getEngine();return t.chat.getGroupMemberList(e).then((n=>{if(t.TUIStore.getData(Td.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=>kd(this,void 0,void 0,(function*(){if(t.TUIStore.getData(Td.GRP,"currentGroupID")===e.groupID){const{successUserIDList:e,group:a}=n.data;t.TUIStore.update(Td.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(Td.GRP,"currentGroupID")===e.groupID){const{userIDList:e,group:a}=n.data;this.removeMemberList(e),t.TUIStore.update(Td.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 Ym extends rp{constructor(){super()}static getInstance(){return Ym.instance||(Ym.instance=new Ym),Ym.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(Td.FRIEND,"friendList",e)}onFriendApplicationListUpdated(e){const{friendApplicationList:t,unreadCount:n=0}=e,a=this.getEngine();a.TUIStore.update(Td.FRIEND,"friendApplicationList",t),a.TUIStore.update(Td.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(Td.FRIEND,"friendList"),n={};return e.forEach((e=>{for(let a=0;a0)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 Zm(e,t,n){const a=Object.create(null);Object.keys(n).forEach((n=>{if(!t[n])return;a[n]=t[n];const o=new Hm;t[n]=function(){const i=Array.from(arguments);return o.use((function(t,a){return e.isInited?a():Promise.reject({code:bd.NOT_INIT,message:`${n} | ${Pd.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 qm=op.getInstance();ap.getInstance();const jm=yp.getInstance(),Jm=Nm.getInstance(),Xm=wm.getInstance(),Km=Bm.getInstance(),zm=Gm.getInstance(),Wm=Fm.getInstance(),Qm=Ym.getInstance();qm.mount(Sd.TUIStore,jm),qm.mount(Sd.TUITranslate,Jm),qm.mount(Sd.TUIConversation,Xm),qm.mount(Sd.TUIUser,Km),qm.mount(Sd.TUIChat,zm),qm.mount(Sd.TUIGroup,Wm),qm.mount(Sd.TUIFriend,Qm),Zm(qm,qm,{logout:1,destroy:1}),Zm(qm,Xm,{deleteConversation:1,pinConversation:1,muteConversation:1,switchConversation:1,getConversationProfile:1,clearHistoryMessage:1}),Zm(qm,zm,{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}),Zm(qm,Wm,{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}),Zm(qm,Km,{switchUserStatus:1,switchMessageReadStatus:1,getUserProfile:1,updateMyProfile:1,addToBlacklist:1,removeFromBlacklist:1}),Zm(qm,Qm,{getFriendList:1,addFriend:1,deleteFriend:1,checkFriend:1,getFriendProfile:1,updateFriend:1,acceptFriendApplication:1,refuseFriendApplication:1,deleteFriendApplication:1,setFriendApplicationRead:1});const $m="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),eh="undefined"!=typeof uni&&"undefined"==typeof window,th="undefined"!=typeof uni,nh=("undefined"!=typeof uni||"undefined"!=typeof window)&&!($m||eh),ah=$m?wx:th?uni:"undefined"!=typeof window?window:{},oh=nh&&window&&window.navigator&&window.navigator.userAgent||"",ih=/Android/i.test(oh),sh=/(?:Windows Phone)/.test(oh),rh=/(?:SymbianOS)/.test(oh),ch=nh&&("ontouchstart"in window||navigator.maxTouchPoints>0)&&!!nh&&(!!/Tablet|Pad/i.test(oh)||(window.matchMedia("(orientation: portrait)").matches?window.innerWidth>=768&&window.innerHeight>=1024:window.innerWidth>=1024&&window.innerHeight>=768)),lh=/iPhone/i.test(oh)||/iPod/i.test(oh),uh=$m,dh=ih||sh||rh||lh||ch,ph=nh&&!dh,mh=eh&&!$m;function hh(){let e="";return ph?e="pc":dh?e="h5":uh?e="wechat":mh&&(e="app"),e}const gh=new Map;function fh(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(th){if(!t)return Promise.reject(new Error("getBoundingClientRect need instanceName in params."));const n=uni.createSelectorQuery().in(gh.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 vh(e,t){if(!e)return Promise.reject(new Error(`getScrollInfo get error selector ${typeof e}.`));if(!th&&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(th){if(!t)return Promise.reject(new Error("getScrollInfo need instanceName in params."));const n=uni.createSelectorQuery().in(gh.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 _h=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(){nh&&(this.eventCallback=e=>{this.listener&&this.listener(e)},document.addEventListener("mousedown",this.eventCallback))}listen(e){if(nh){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 yh;yh=3,g("warn","at TUIKit/adapter-vue.ts:13","[adapter-vue]: vue version is 3");const Ch="pc"===hh(),Eh="h5"===hh(),kh="wechat"===hh(),Ih="app"===hh(),Sh="undefined"!=typeof uni,Th=Eh||kh||Ih,Mh=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(Ch)&&"common-icon-container-mobile"]),style:e.normalizeStyle({padding:e.unref(i)}),onClick:c},[e.unref(Ih)?(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))}}),Dh=M(Mh,[["__scopeId","data-v-fea828e0"]]),Nh="/assets/search.980f6827.svg",wh="/assets/input-close.0b5e85b2.svg",bh=M(e.defineComponent({__name:"index",props:{placeholder:{type:String,default:()=>Jm.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((()=>{jm.watch(Td.SEARCH,{currentSearchInputValue:s,currentSearchingStatus:r})})),e.onUnmounted((()=>{jm.unwatch(Td.SEARCH,{currentSearchInputValue:s,currentSearchingStatus:r})}));const c=()=>{a.value!==o.value&&jm.update(Td.SEARCH,"currentSearchInputValue",{value:a.value,searchType:n.searchType})},l=()=>{i.value=!1,jm.update(Td.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:n.searchType}),jm.update(Td.SEARCH,"currentSearchInputValue",{value:"",searchType:n.searchType})},u=()=>{jm.update(Td.SEARCH,"currentSearchingStatus",{isSearching:!0,searchType:n.searchType})},d=()=>{var e;null==(e=null==ah?void 0:ah.hideKeyboard)||e.call(ah)};return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tui-search-input-container",!e.unref(Ch)&&"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(Ch)&&"tui-search-input-h5"])},[e.createElementVNode("div",{class:"tui-search-input-left"},[e.createVNode(Dh,{class:"icon",file:e.unref(Nh),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(Dh,{class:"icon",file:e.unref(wh),width:"14px",height:"14px"},null,8,["file"])])):e.createCommentVNode("",!0)],2),!e.unref(Ch)&&e.unref(i)&&"global"===n.searchType?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-search-input-cancel",!e.unref(Ch)&&"tui-search-input-h5-cancel"]),onClick:l},e.toDisplayString(e.unref(Jm).t("TUISearch.取消")),3)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-6d9c2069"]]),Lh={allMessage:{key:"allMessage",label:"全部",value:[qm.TYPES.MSG_TEXT,qm.TYPES.MSG_FILE,qm.TYPES.MSG_IMAGE,qm.TYPES.MSG_VIDEO,qm.TYPES.MSG_AUDIO,qm.TYPES.MSG_LOCATION,qm.TYPES.MSG_CUSTOM,qm.TYPES.MSG_MERGER]},textMessage:{key:"textMessage",label:"文本",value:[qm.TYPES.MSG_TEXT]},fileMessage:{key:"fileMessage",label:"文件",value:[qm.TYPES.MSG_FILE]},imageMessage:{key:"imageMessage",label:"图片/视频",value:[qm.TYPES.MSG_IMAGE,qm.TYPES.MSG_VIDEO]},otherMessage:{key:"otherMessage",label:"其他",value:[qm.TYPES.MSG_AUDIO,qm.TYPES.MSG_LOCATION,qm.TYPES.MSG_CUSTOM,qm.TYPES.MSG_MERGER]}};Object.keys(Lh).filter((e=>"all"!==e));const Ph={global:Lh.allMessage,conversation:Lh.textMessage},Ah=["allMessage","textMessage","fileMessage","otherMessage"],Rh=Object.keys(Lh).filter((e=>null==Ah?void 0:Ah.includes(e))).reduce(((e,t)=>(e[t]=Lh[t],e)),{}),Oh=["textMessage","fileMessage","imageMessage","otherMessage"],Bh=Object.keys(Lh).filter((e=>null==Oh?void 0:Oh.includes(e))).reduce(((e,t)=>(e[t]=Lh[t],e)),{}),xh=86400,Uh={all:{key:"all",label:"全部",value:{timePosition:0,timePeriod:0}},oneDay:{key:"today",label:"今天",value:{timePosition:0,timePeriod:xh}},threeDay:{key:"threeDays",label:"近三天",value:{timePosition:0,timePeriod:259200}},sevenDay:{key:"sevenDays",label:"近七天",value:{timePosition:0,timePeriod:604800}}},Vh=Uh.all;var Gh,Fh={exports:{}};function Yh(){return Gh||(Gh=1,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",p="date",m="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()1)return e(s[0])}else{var r=t.name;C[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[E]=!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()===m)},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)Zh()},date:{type:Hh.Dayjs,default:null},startDate:{type:Hh.Dayjs,default:null},endDate:{type:Hh.Dayjs,default:null}},emits:["pick"],setup(t,{emit:n}){const a=t,o=n,i=e.getCurrentInstance(),s=e.ref([[],[],[],[],[],[]]),r=e.ref(Zh(a.currentPanelDate||null)),c=e.ref(Zh(a.date||null)),l=e.ref(Zh(a.startDate||null)),u=e.ref(Zh(a.endDate||null)),d=e.computed((()=>Zh.weekdaysShort())),p=e.computed((()=>d.value.map((e=>e.substring(1))))),m=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=p.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=v&&(E="next-month"),d[r][e]={type:E,date:s,text:p,isSelected:h||g||y,isSelectedStart:g,isSelectedEnd:y,isInRange:C},_++}return d}));return e.watch((()=>[a.currentPanelDate,a.date,a.startDate,a.endDate]),(()=>{r.value=Zh(a.currentPanelDate||null),c.value=Zh(a.date||null),l.value=Zh(a.startDate||null),u.value=Zh(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(Ch)&&"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(p),(t=>(e.openBlock(),e.createElementBlock("th",{key:t,class:"tui-date-table-body-weeks-item","aria-label":t+"",scope:"col"},e.toDisplayString(e.unref(Jm).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"]]),Qh=M(e.defineComponent({__name:"date-picker-panel",props:{type:{type:String,default:"range"},date:{type:Hh.Dayjs,default:()=>Zh()},startDate:{type:Hh.Dayjs,default:null},endDate:{type:Hh.Dayjs,default:null},rangeType:{type:String,default:""},currentOtherPanelValue:{type:Hh.Dayjs,default:null}},emits:["pick","change"],setup(t,{emit:n}){const a=t,o=n,i=e=>e?["tui-date-picker-panel-"+e,!Ch&&"tui-date-picker-panel-h5-"+e]:["tui-date-picker-panel",!Ch&&"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"))})),p=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 m(e){o("pick",e)}function h(e,t){s.value=Zh(s.value.toDate()).add(t,e),o("change",s.value)}return e.onBeforeMount((()=>{switch(a.type){case"single":s.value=(a.date&&(null==(e=Zh(a.date))?void 0:e.isValid())?{date:null==a?void 0:a.date}:{date:Zh()}).date,o("change",s.value);break;case"range":s.value=(()=>{var e;switch(a.rangeType){case"left":return a.startDate&&Zh.isDayjs(a.startDate)?{date:null==a?void 0:a.startDate}:{date:Zh()};case"right":if(a.endDate&&Zh.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||Zh()).month();return{date:(a.startDate||Zh()).month(e+1)}}default:return{date:Zh()}}})().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(Dh,{file:e.unref("/assets/d-left-arrow.9b5f8cc0.svg"),width:"12px",height:"12px"},null,8,["file"])],2)):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([i("icon")]),onClick:n[1]||(n[1]=e=>h("month",-1))},[e.createVNode(Dh,{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(Jm).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(Dh,{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(Dh,{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(Wh,{type:a.type,date:a.date,startDate:a.startDate,endDate:a.endDate,currentPanelDate:e.unref(s),onPick:m},null,8,["type","date","startDate","endDate","currentPanelDate"])],2)],2)],34))}}),[["__scopeId","data-v-4ecd5d3b"]]),$h=M(e.defineComponent({__name:"index",props:{type:{type:String,default:"range"},rangeTableType:{type:String,default:"one"},startPlaceholder:{type:String,default:()=>Jm.t("开始时间")},endPlaceholder:{type:String,default:()=>Jm.t("开始时间")},popupPosition:{type:String,default:"bottom"},defaultSingleDate:{type:Hh.Dayjs,default:null,required:!1}},emits:["pick","change"],setup(t,{emit:n}){Zh.extend(jh),Zh.extend(Xh),Zh.extend(zh),Zh.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,p=o.endPlaceholder,m=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),!Ch&&t.push("tui-date-picker-h5-"+e)):(t.push("tui-date-picker"),!Ch&&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:m.value,rightCurrentPanel:m.value})}},_=e=>{m.value=e,a("change",{startDate:r.value,endDate:c.value,leftCurrentPanel:m.value,rightCurrentPanel:m.value})},y=e=>{h.value=e,a("change",{startDate:r.value,endDate:c.value,leftCurrentPanel:m.value,rightCurrentPanel:m.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(Sh),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(p),class:e.normalizeClass([f(["input-end"])]),style:{"pointer-events":"none"},type:"text",readonly:!0,disabled:e.unref(Sh),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(Qh,{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(Ch)&&"two"===t.rangeTableType?(e.openBlock(),e.createBlock(Qh,{key:0,type:o.type,rangeType:"right",date:e.unref(s),startDate:e.unref(r),endDate:e.unref(c),currentOtherPanelValue:e.unref(m),onPick:v,onChange:y},null,8,["type","date","startDate","endDate","currentOtherPanelValue"])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-b0775539"]]),eg="/assets/down-icon.50c12418.svg",tg="/assets/close-dark.c1b1ccca.svg",ng=M(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)?Bh:Rh)),s=e.ref(Ph[null==a?void 0:a.searchType]),r=e.ref(Vh),c=e.computed((()=>"contact"!==s.value.key&&"group"!==s.value.key)),l=e.computed((()=>Ch&&"global"===a.searchType&&!Sh?"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)||Ph[null==a?void 0:a.searchType])}function p(e){(null==e?void 0:e.searchType)===(null==a?void 0:a.searchType)&&(r.value=(null==e?void 0:e.value)||Vh)}e.onMounted((()=>{jm.watch(Td.SEARCH,{currentSearchMessageType:d,currentSearchMessageTime:p})})),e.onUnmounted((()=>{jm.unwatch(Td.SEARCH,{currentSearchMessageType:d,currentSearchMessageTime:p})}));const m=()=>{var e;"all"!==(null==(e=r.value)?void 0:e.key)?jm.update(Td.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}};jm.update(Td.SEARCH,"currentSearchMessageTime",{value:l,searchType:a.searchType})}},g=()=>{var e;u.value=!1,"all"===(null==(e=r.value)?void 0:e.key)&&jm.update(Td.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(Ch)&&"tui-search-container-h5",e.unref(Ch)&&`container-${a.popupPosition}`,`container-${a.searchType}`])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(Ch)&&`tui-search-container-${a.popupPosition}`,!e.unref(Ch)&&"tui-search-container-h5-main"])},["conversation"!==a.searchType||e.unref(Sh)?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(Jm).t("TUISearch.搜索会话内容")),1),e.createElementVNode("div",{class:"tui-search-header-close",onClick:f},[e.createVNode(Dh,{file:e.unref(tg),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 jm.update(Td.SEARCH,"currentSearchMessageType",{value:n,searchType:a.searchType});var n}},e.toDisplayString(e.unref(Jm).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(Uh),((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,jm.update(Td.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(m,["stop"])},[e.createTextVNode(e.toDisplayString(e.unref(Jm).t("TUISearch.选择时间")+": "+e.unref(Jm).t("TUISearch.全部"))+" ",1),e.createVNode(Dh,{file:e.unref(eg),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($h,{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(Dh,{class:"icon",file:e.unref(wh),width:"14px",height:"14px"},null,8,["file"])])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1},e.toDisplayString(e.unref(Jm).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"]]),ag={"[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]":"[赞]"},og={DELETE:"delete",ISPINNED:"ispinned",DISPINNED:"dispinned",MUTE:"mute",NOTMUTE:"notmute"},ig="isC2C",sg="isGroup",rg={SERVICE:"consultion",EVALUATE:"evaluation",LINK:"text_link",CALL:1,ORDER:"order"},cg={BASIC:"basic",BIG:"big",CUSTOM:"CUSTOM"},lg={LEFT:"left",TOP:"top"},ug={INPUT:"input",TEXTAREA:"textarea",SWITCH:"switch"},dg={SUBMIT:"submit",CANCEL:"cancel"},pg="https://web.sdk.qcloud.com/im/assets/face-elem/",mg=[{emojiGroupID:1,type:cg.BIG,url:pg,list:["yz00","yz01","yz02","yz03","yz04","yz05","yz06","yz07","yz08","yz09","yz10","yz11","yz12","yz13","yz14","yz15","yz16","yz17"]},{emojiGroupID:2,type:cg.BIG,url:pg,list:["ys00","ys01","ys02","ys03","ys04","ys05","ys06","ys07","ys08","ys09","ys10","ys11","ys12","ys13","ys14","ys15"]},{emojiGroupID:3,type:cg.BIG,url:pg,list:["gcs00","gcs01","gcs02","gcs03","gcs04","gcs05","gcs06","gcs07","gcs08","gcs09","gcs10","gcs11","gcs12","gcs13","gcs14","gcs15","gcs16"]}],hg={...Object.fromEntries(null==(t=Object.entries(ag))?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])))},gg="https://web.sdk.qcloud.com/im/assets/emoji-plugin/",fg={"[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"},vg=[{emojiGroupID:0,type:cg.BASIC,url:gg,list:Object.keys(fg)},...mg],_g=e=>kh?ag[e]:Jm.t(`Emoji.${e}`),yg=e=>{if(!e)return"";const t=/(\[.+?\])/g;let n=e;return t.test(e)&&(n=e.replace(t,(e=>fg[e]?_g(e):e))),n},Cg=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=gg+fg[r];c?n.push({type:"image",content:c,emojiKey:r}):n.push({type:"text",content:r}),o=s,t.lastIndex=o}return o[]},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(yg)(t.text)),3)))),128))],2))}}),[["__scopeId","data-v-ae182fbb"]]),kg=M(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"]]),Ig=e=>/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e),Sg=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",Mg=M(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)?Sg(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(rg).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(Ig)(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(rg).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(Dh,{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(rg).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(rg).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(Jm).t("message.custom.查看详情>>")),9,["href"])])):(e.openBlock(),e.createElementBlock("span",{key:4},e.toDisplayString(e.unref(l)),1))],32))}}),[["__scopeId","data-v-b32422fa"]]),Dg=M(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"]]),Ng="/assets/video-play.58b451c9.png",wg=M(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(Dh,{file:e.unref(Ng),class:"video-play"},null,8,["file"])])]))}}),[["__scopeId","data-v-1a98d7b0"]]),bg="success",Lg="warning",Pg="error",Ag="normal",Rg=e=>{ah.showToast({title:e.message||"Toast",duration:e.duration||1500,icon:Og(e.type)})},Og=e=>{if(!e)return"none";switch(e){case Pg:case Lg:return"none";case bg:return"success";default:return"none"}},Bg={[qm.TYPES.MSG_TEXT]:"[文本]",[qm.TYPES.MSG_IMAGE]:"[图片]",[qm.TYPES.MSG_AUDIO]:"[语音]",[qm.TYPES.MSG_VIDEO]:"[视频]",[qm.TYPES.MSG_FILE]:"[文件]",[qm.TYPES.MSG_CUSTOM]:"[自定义消息]",[qm.TYPES.MSG_SYSTEM]:"[系统消息]",[qm.TYPES.MSG_MERGER]:"[合并消息]",[qm.TYPES.MSG_LOCATION]:"[位置消息]"},xg=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}`);Xm.switchConversation(t).then((()=>{jm.update(Td.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:"global"}),jm.update(Td.SEARCH,"currentSearchInputValue",{value:"",searchType:"global"}),Sh&&(null==ah||ah.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),Rg({message:Jm.t("TUISearch.进入会话失败"),type:Pg,duration:1e3})}))},Ug=(e,t)=>{var n;if(!e||!t||!t.length)return[{text:e||"",isHighlight:!1}];const a=[];for(let c=0;c1){a.sort(((e,t)=>e[0]-t[0]));for(let e=1;e{const t=new Date(1e3*e);return`${t.getFullYear()}-${("0"+(t.getMonth()+1)).slice(-2)}-${("0"+t.getDate()).slice(-2)}`},Gg=M(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(qm.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=jm.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=jm.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!==qm.TYPES.MSG_TEXT&&c.push({text:Jm.t(`TUISearch.${Bg[t.type]}`),isHighlight:!1}),c.push(...Ug(r,n)),c}return[{text:`${null==e?void 0:e.messageCount}${Jm.t("TUISearch.条相关")}${Jm.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`${Jm.t("time.昨天")} ${s(a.getHours())}:${s(a.getMinutes())}`;if(i<=5184e5){const e=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a.getDay()];return`${Jm.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?xg(a.listItem):"info"!==a.displayType||(null==(e=a.listItem)?void 0:e.ID)?m():o("showResultDetail",!0,a.type,a.listItem)},p=e=>{u.value=e},m=()=>{o("navigateToChatPosition",a.listItem)};return(t,n)=>{return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["search-result-list-item",!e.unref(Ch)&&"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=>p(!0)),onMouseleave:n[1]||(n[1]=e=>p(!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(Eg,{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(kg,{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(Mg,{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)?Jm.t(`TUISearch.${Bg[a.type]}`):Jm.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(m,["stop"])},e.toDisplayString(e.unref(Jm).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(m,["stop"])},e.toDisplayString(e.unref(Jm).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(kg,{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(m,["stop"])},[t.listItem.type===e.unref(i).MSG_IMAGE?(e.openBlock(),e.createBlock(Dg,{key:0,messageContent:t.listItemContent},null,8,["messageContent"])):t.listItem.type===e.unref(i).MSG_VIDEO?(e.openBlock(),e.createBlock(wg,{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(Jm).t("TUISearch.定位到聊天位置")),1)])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],34);var a}}}),[["__scopeId","data-v-4eb143e0"]]),Fg=M(e.defineComponent({__name:"index",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["search-result-default",!e.unref(Ch)&&"search-result-default-h5"])},[e.createElementVNode("div",{class:"search-result-default-main"},[e.createVNode(Dh,{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(Jm).t("TUISearch.暂无搜索结果")),1)])],2))}),[["__scopeId","data-v-727e3884"]]),Yg=M(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"]]),Hg=M(e.defineComponent({__name:"index",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["search-result-loading",!e.unref(Ch)&&"search-result-loading-h5"])},[e.createVNode(Yg,{width:"40px",height:"40px"})],2))}),[["__scopeId","data-v-36180e9c"]]),Zg="/assets/right-icon.b206bd3e.svg";function qg(e){const t=jm.getData(Td.APP,"tasks");e in t&&!t[e]&&(t[e]=!0,jm.update(Td.APP,"tasks",t))}const jg=M(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=Ph[o.searchType])?void 0:n.value),r=e.ref(0),c=e.ref(0),l=e.ref("and"),u=e.ref(null==(a=Ph[o.searchType])?void 0:a.key),d=e.ref({}),p=e.ref([]),m=e.ref(0),h=e.ref(""),g=e.ref(),f=e.ref([]),v=e.ref(),_=e.ref([]),y=e.ref(!1),C=e.ref(!1),E=e.ref(!1),k=e.computed((()=>{var e,t,n;return!C.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=Ph[o.searchType])?void 0:n.key),s.value=(null==(a=null==e?void 0:e.value)?void 0:a.value)||(null==(i=Ph[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((()=>{jm.watch(Td.CONV,{currentConversationID:I}),jm.watch(Td.SEARCH,{currentSearchInputValue:S,currentSearchMessageType:T,currentSearchMessageTime:M})})),e.onUnmounted((()=>{jm.unwatch(Td.CONV,{currentConversationID:I}),jm.unwatch(Td.SEARCH,{currentSearchInputValue:S,currentSearchMessageType:T,currentSearchMessageTime:M})}));const D=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},zm.searchCloudMessages(n).then((e=>e)).catch((e=>(Rg({message:Jm.t("TUISearch.消息云端搜索失败:")+(null==e?void 0:e.message),type:Pg,duration:3e3}),null)))).then((t=>{var n,a,i,s,r,c,l,h,y,k;if(qg("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)?p.value=[...p.value,...t.data.searchResultList]:p.value=null==(n=null==t?void 0:t.data)?void 0:n.searchResultList,m.value=null==(a=null==t?void 0:t.data)?void 0:a.totalCount;const o="all"===u.value?"allMessage":u.value;(null==(i=null==p?void 0:p.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==p?void 0:p.value)?void 0:s.slice(0,3):null==p?void 0:p.value,cursor:(null==(r=null==t?void 0:t.data)?void 0:r.cursor)||null}}):null==d||delete d.value[o]}C.value=!1,E.value=!1}))},N=((e,t)=>{let n=null;return(...a)=>{null!==n&&(clearTimeout(n),n=null),n=setTimeout((()=>e(...a)),t)}})(D,500),w=()=>{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(C.value=!0,"conversation"===o.searchType)w(),D({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==p?void 0:p.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(C.value=!1);y.value=!1,w(),N()}else w()}),{immediate:!0});const b=()=>{var e;D({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&&jm.update(Td.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&&(E.value=!0,N({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":Ch?"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:Vg(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=Vg(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?(jm.update(Td.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:o.searchType}),Xm.switchConversation(null==e?void 0:e.conversationID).then((()=>{jm.update(Td.CHAT,"messageSource",e),Sh&&(null==ah||ah.navigateTo({url:"/TUIKit/components/TUIChat/index"}))}))):"conversation"===o.searchType&&(jm.update(Td.SEARCH,"isShowInConversationSearch",!1),jm.update(Td.CHAT,"messageSource",e),Sh&&(null==ah||ah.navigateBack()))},B=e=>`${u}-${e}`;return(t,n)=>e.unref(C)?(e.openBlock(),e.createBlock(Hg,{key:0,class:e.normalizeClass(["search-result-loading",!e.unref(Ch)&&"search-result-loading-h5"])},null,8,["class"])):e.unref(k)?(e.openBlock(),e.createBlock(Fg,{key:1,class:e.normalizeClass(["search-result-default",!e.unref(Ch)&&"search-result-default-h5"])},null,8,["class"])):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["tui-search-result",!e.unref(Ch)&&"tui-search-result-h5",e.unref(Ch)&&e.unref(y)&&"tui-search-result-with-border"])},["conversation"===o.searchType||!e.unref(Ch)&&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(Jm).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(Gg,{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?jm.update(Td.SEARCH,"currentSearchMessageType",{value:Lh[e.key],searchType:o.searchType}):D({cursor:(null==e?void 0:e.cursor)||void 0})})(t)},[e.createVNode(Dh,{class:"more-icon",file:e.unref(Nh),width:"12px",height:"12px"},null,8,["file"]),e.createElementVNode("div",{class:"more-text"},[e.createElementVNode("span",null,e.toDisplayString(e.unref(Jm).t("TUISearch.查看更多")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(Jm).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(E)?(e.openBlock(),e.createBlock(Hg,{key:0,class:e.normalizeClass(["search-result-loading",!e.unref(Ch)&&"search-result-loading-h5"])},null,8,["class"])):e.createCommentVNode("",!0),!e.unref(E)&&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(Jm).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(Jm).t("TUISearch.相关的")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(Jm).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(xg)({conversationID:e.unref(h)}))},[e.createElementVNode("span",null,e.toDisplayString(e.unref(Jm).t("TUISearch.进入聊天")),1),e.createVNode(Dh,{class:"enter-icon",file:e.unref(Zg),width:"14px",height:"14px"},null,8,["file"])])])):e.createCommentVNode("",!0),!e.unref(E)&&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:B(t.ID),class:e.normalizeClass(["list-item"])},[e.createVNode(Gg,{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:B(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:B(t.ID),class:e.normalizeClass(["list-group-item"])},[e.createVNode(Gg,{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(Dh,{class:"more-icon",file:e.unref(Nh),width:"12px",height:"12px"},null,8,["file"]),e.createElementVNode("div",{class:"more-text"},e.toDisplayString(e.unref(Jm).t("TUISearch.查看更多历史记录")),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-5a557b27"]]);class Jg{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 Xg{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(this.userID="",this.userSig="",this.TUICore.notifyEvent(zg.TUILogin.EVENT.LOGIN_STATE_CHANGED,zg.TUILogin.EVENT_SUB_KEY.USER_LOGOUT_SUCCESS),Promise.resolve(e))))}destroy(){return this.chat.destroy().then((e=>(this.userID="",this.userSig="",this.TUICore.notifyEvent(zg.TUILogin.EVENT.LOGIN_STATE_CHANGED,zg.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 uf)this.TUICore.getService(t)&&(null===(e=this.chat.callExperimentalAPI("isFeatureEnabledForStat",uf[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(zg.TUILogin.EVENT.LOGIN_STATE_CHANGED,zg.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(zg.TUILogin.EVENT.LOGIN_STATE_CHANGED,zg.TUILogin.EVENT_SUB_KEY.USER_KICKED_OFFLINE):this.TUICore.notifyEvent(zg.TUILogin.EVENT.LOGIN_STATE_CHANGED,zg.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":_d}),!0===n&&this.chat.registerPlugin({"tim-profanity-filter-plugin":Cd}),lf&&i&&s&&this.chat.registerPlugin({"tim-push":i,pushConfig:s}),lf&&a&&o&&this.chat.registerPlugin({"tim-offline-push-plugin":a,offlinePushConfig:o})}getStatScene(e){let t;return e&&Kg.indexOf(e)>-1&&(t=this.genStatScene(e)),t}genStatScene(e){let t="";return $g?(cf&&(t=`k-${e}-pc-uni`),rf&&(t=`k-${e}-h5-uni`),lf&&(t=`k-${e}-app-uni`),Wg&&(t=`k-${e}-mp-uni`),t):(cf&&(t=`k-${e}-pc`),rf&&(t=`k-${e}-h5`),t)}};class pf{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===zg.TUILogin.EVENT.LOGIN_STATE_CHANGED&&t===zg.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS){const{chat:e}=df.getInstance().getContext();e&&e.isReady()&&(n.onNotifyEvent(zg.TUILogin.EVENT.LOGIN_STATE_CHANGED,zg.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 mf=class e{constructor(){this.serviceManager=new Jg,this.extensionManager=new Xg,this.eventManager=new pf}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(),hf=df.getInstance(mf),gf=M(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,!Sh&&o.value&&_h.listen({domRefs:a.value,handler:r})},s=e.ref([]),r=()=>{o.value=!1};return e.onMounted((()=>{s.value=[...mf.getExtensionList(zg.TUISearch.EXTENSION.SEARCH_MORE.EXT_ID)],mf.callService({serviceName:zg.TUIConversation.SERVICE.NAME,method:zg.TUIConversation.SERVICE.METHOD.HIDE_CONVERSATION_HEADER,params:{}})})),e.watch((()=>o.value),(()=>{o.value&&jm.update(Td.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(Ch)&&"tui-search-more-h5"])},[e.createElementVNode("div",{class:"more",onClick:n[0]||(n[0]=e=>i())},[e.createVNode(Dh,{class:"more-icon",file:e.unref("/assets/search-more.751b65f1.svg"),width:e.unref(Ch)?"28px":"34px",height:e.unref(Ch)?"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(Dh,{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"]]),ff=M(e.defineComponent({__name:"index",props:{searchType:{default:()=>Sh?"conversation":"global"}},setup(t){const n=t,a=e.ref(),o=e.ref(""),i=e.ref(!1),s=e.ref(Sh),r=e.computed((()=>!Ch&&("global"===n.searchType&&i.value||"conversation"===n.searchType&&s.value))),c=e=>{jm.update(Td.SEARCH,"currentSearchInputValue",{value:"",searchType:e}),jm.update(Td.SEARCH,"currentSearchMessageType",{value:Ph[e],searchType:e}),jm.update(Td.SEARCH,"currentSearchMessageTime",{value:Vh,searchType:e})};function l(e){Sh||o.value===e||m(),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&&Ch&&e.isSearching&&_h.listen({domRefs:a.value,handler:p}),"global"===(null==e?void 0:e.searchType)&&Sh&&(e.isSearching?null==(t=null==ah?void 0:ah.hideTabBar())||t.catch((()=>{})):null==(o=null==ah?void 0:ah.showTabBar())||o.catch((()=>{}))))}function d(e){s.value=!!e,s.value&&c(n.searchType)}function p(){jm.update(Td.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:n.searchType})}function m(){jm.update(Td.SEARCH,"isShowInConversationSearch",!1)}return e.onMounted((()=>{["global","conversation"].forEach((e=>{c(e)})),jm.watch(Td.CONV,{currentConversationID:l}),jm.watch(Td.SEARCH,{currentSearchingStatus:u,isShowInConversationSearch:d})})),e.onUnmounted((()=>{jm.unwatch(Td.CONV,{currentConversationID:l}),jm.unwatch(Td.SEARCH,{currentSearchingStatus:u,isShowInConversationSearch:d})})),(t,n)=>"global"===t.searchType||("conversation"===t.searchType||!t.searchType&&e.unref(Sh))&&e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-search",!e.unref(Ch)&&"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(Ch)&&"tui-search-h5-global"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-search-global-header",!e.unref(Ch)&&"tui-search-h5-global-header"])},[e.createVNode(bh,{class:"search-input",searchType:t.searchType},null,8,["searchType"]),e.unref(Ch)||!e.unref(i)?(e.openBlock(),e.createBlock(gf,{key:0,class:"search-more",searchType:t.searchType},null,8,["searchType"])):e.createCommentVNode("",!0)],2),e.unref(i)?(e.openBlock(),e.createBlock(ng,{key:0,class:"search-container",popupPosition:"bottom",searchType:t.searchType},{result:e.withCtx((()=>[e.createVNode(jg,{class:"search-result",searchType:t.searchType},null,8,["searchType"])])),_:1},8,["searchType"])):e.createCommentVNode("",!0)],2)):"conversation"===t.searchType&&e.unref(s)||e.unref(Sh)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["tui-search-conversation",!e.unref(Ch)&&"tui-search-h5-conversation"])},[e.createVNode(ng,{class:"search-container",popupPosition:"aside",searchType:t.searchType?t.searchType:"conversation",onCloseInConversationSearch:m},{input:e.withCtx((()=>[e.createVNode(bh,{searchType:t.searchType?t.searchType:"conversation"},null,8,["searchType"])])),result:e.withCtx((()=>[e.createVNode(jg,{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"]]),vf=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),p=e.ref(!1);function m(e){d.value=!0,o("onLoad",e)}function h(e){u+=1,u>3||(Sh?p.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(Sh)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(p)?(e.openBlock(),e.createElementBlock("image",{key:1,class:"avatar-image",src:e.unref(a),onLoad:m,onError:h},null,40,["src"])):(e.openBlock(),e.createElementBlock("image",{key:0,class:"avatar-image",src:e.unref(r)||e.unref(a),onLoad:m,onError:h},null,40,["src"]))],64)):(e.openBlock(),e.createElementBlock("img",{key:1,class:"avatar-image",src:e.unref(r)||e.unref(a),onLoad:m,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))}}),_f=M(vf,[["__scopeId","data-v-35b53489"]]),yf=M(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"]]),Cf=M(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,p=e=>{e===a&&m()},m=()=>{s.value=!s.value,d("update:show",s.value)},h=()=>{d("submit"),m()};return(n,i)=>e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dialog",[e.unref(Ch)?"":"dialog-h5",t.center?"center":""]]),onClick:i[1]||(i[1]=e.withModifiers((e=>p(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=>p(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:m})])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["dialog-main-content",[e.unref(Sh)&&e.unref(Eh)?"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:m},e.toDisplayString(e.unref(Jm).t("component.取消")),1),e.createElementVNode("button",{class:"btn btn-default",onClick:h},e.toDisplayString(e.unref(Jm).t("component.确定")),1)])):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-07925a1b"]]),Ef=M(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=jm.getConversationModel((null==(o=s.selectedConversation)?void 0:o.conversationID)||""),p=e.ref(s.actionsMenuPosition);e.onMounted((()=>{e.nextTick((()=>{var e;if(Sh)(null==ah?void 0:ah.createSelectorQuery().in(r)).select("#conversation-actions-menu").boundingClientRect((e=>{var t;e&&(e.bottom>(null==(t=null==ah?void 0:ah.getWindowInfo)?void 0:t.call(ah).windowHeight)&&(p.value={...s.actionsMenuPosition,top:s.actionsMenuPosition.top-(s.actionsMenuPosition.conversationHeight||0)-e.height}),p.value.left+e.width+5>ah.getWindowInfo().windowWidth&&(p.value.left=ah.getWindowInfo().windowWidth-e.width-5)),l.value=!1})).exec();else{const t=null==(e=c.value)?void 0:e.getBoundingClientRect();Ch&&void 0!==s.actionsMenuPosition.left&&(p.value.left=s.actionsMenuPosition.left),t&&t.bottom>window.innerHeight&&(p.value.top=s.actionsMenuPosition.top-(s.actionsMenuPosition.conversationHeight||0)-t.height),l.value=!1}}))}));const m=e.computed((()=>{var e,t;return(null==(e=s.selectedConversation)?void 0:e.type)===qm.TYPES.CONV_C2C?"TUIConversation.删除后,将清空该聊天的消息记录":(null==(t=s.selectedConversation)?void 0:t.type)===qm.TYPES.CONV_GROUP?"TUIConversation.删除后,将清空该群聊的消息记录":""}));const h=e=>{const{name:t}=e,n=d;if(t&&n&&n.conversationID){switch(t){case og.DELETE:null==n||n.deleteConversation();break;case og.ISPINNED:case og.DISPINNED:null==n||n.pinConversation();break;case og.MUTE:case og.NOTMUTE:null==n||n.muteConversation()}i("closeConversationActionMenu")}},g=e=>{e||i("closeConversationActionMenu"),u.value=e};return(t,n)=>(e.openBlock(),e.createBlock(yf,{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(Ch)&&"actions-menu-pc","actions-menu",!e.unref(l)&&"cancel-hidden"]),style:e.normalizeStyle({top:`${e.unref(p).top}px`,left:`${e.unref(p).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(Jm).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(og).ISPINNED})),["stop"]))},e.toDisplayString(e.unref(Jm).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(og).DISPINNED})),["stop"]))},e.toDisplayString(e.unref(Jm).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(og).MUTE})),["stop"]))},e.toDisplayString(e.unref(Jm).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(og).NOTMUTE})),["stop"]))},e.toDisplayString(e.unref(Jm).t("TUIConversation.取消免打扰")),1)):e.createCommentVNode("",!0)],6),e.createVNode(Cf,{show:e.unref(u),center:!0,isHeaderShow:e.unref(Ch),onSubmit:n[5]||(n[5]=t=>h({name:e.unref(og).DELETE})),"onUpdate:show":g},{default:e.withCtx((()=>[e.createElementVNode("p",{class:"delDialog-title"},e.toDisplayString(e.unref(Jm).t(e.unref(m))),1)])),_:1},8,["show","isHeaderShow"])])),_:1}))}}),[["__scopeId","data-v-bded2c14"]]),kf=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(),p=e.ref({top:0,left:void 0,conversationHeight:void 0}),m=e.ref(!1),h=e.ref();let g=null;e.onMounted((()=>{jm.watch(Td.CONV,{currentConversationID:k,conversationList:E,currentConversation:C}),jm.watch(Td.USER,{displayOnlineStatus:I,userStatusList:S}),Sh||!lh||Ch||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((()=>{jm.unwatch(Td.CONV,{currentConversationID:k,conversationList:E,currentConversation:C}),jm.unwatch(Td.USER,{displayOnlineStatus:I,userStatusList:S})}));const f=e=>m.value&&e.type===qm.TYPES.CONV_C2C,v=(e,t,n,a)=>{a&&(e.preventDefault(),Sh)||(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(Sh){void 0===u.value&&o("getPassingRef",u);(null==ah?void 0:ah.createSelectorQuery().in(u.value)).select(`#convlistitem-${t}`).boundingClientRect((t=>{t&&(p.value={top:t.bottom+(Eh?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&&(p.value={top:t.bottom,left:Ch?e.clientX:void 0,conversationHeight:t.height}),c.value=!0}};function C(e){i.value=e}function E(e){l.value=e}function k(e){s.value=e}function I(e){m.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(Ef,{key:0,selectedConversation:e.unref(i),actionsMenuPosition:e.unref(p),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(Th)&&"tui-conversation-content-h5 disable-select"])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(Ch)&&"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 Xm.switchConversation(n);var n},onLongpress:e=>v(e,t,n),onContextmenu:e=>v(e,t,n,!0)},[e.createElementVNode("aside",{class:"left"},[e.createVNode(_f,{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(Jm).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(Dh,{key:0,file:e.unref("/assets/mute.81a6d6d5.svg")},null,8,["file"])):e.createCommentVNode("",!0)])])],42,["onClick","onLongpress","onContextmenu"])],10,["id"])))),128))],512))}}),If=M(kf,[["__scopeId","data-v-55e2625d"]]);class Sf{static getInstance(){return Sf.instance||(Sf.instance=new Sf),Sf.instance}getMenu(){const e=this.generateMenuList();return!Ch&&e.length>0?[{text:Jm.t("TUIConversation.发起会话"),data:{name:"all",children:e}}]:e}generateMenuList(){return[{icon:"/assets/icon-c2c.6e2af86f.svg",text:Jm.t("TUIConversation.发起单聊"),data:{name:ig},listener:{onClicked:this.createConversation.bind(this)}},{icon:"/assets/start-group.5f1c641f.svg",text:Jm.t("TUIConversation.发起群聊"),data:{name:sg},listener:{onClicked:this.createConversation.bind(this)}}]}createConversation(e){mf.callService({serviceName:zg.TUIConversation.SERVICE.NAME,method:zg.TUIConversation.SERVICE.METHOD.CREATE_CONVERSATION,params:e})}}const Tf=M(e.defineComponent({__name:"index",setup(t,{expose:n}){const a=e.ref([]),o=e.ref(),i=e.computed((()=>Sf.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(Dh,{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(Dh,{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"]]),Mf=M(e.defineComponent({__name:"index",setup(t){const n=e.ref(!1);return jm.watch(Td.USER,{netStateChange:e=>{n.value=e===qm.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(Jm).t("TUIConversation.网络异常,请您检查网络设置")),1)])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c92e96e1"]]),Df=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);jm.watch(Td.CONV,{totalUnreadCount:e=>{o.value=e}}),jm.watch(Td.CUSTOM,{isShowConversationHeader:e=>{l.value=!1!==e}});const u=e=>{null==ah||ah.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()},p=()=>{d()};y(d);const m=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:p,onTouchstart:m,onTouchend:h},[e.createVNode(ff,{searchType:"global"}),e.unref(l)?(e.openBlock(),e.createBlock(Tf,{key:0,ref_key:"headerRef",ref:i},null,512)):e.createCommentVNode("",!0),e.createVNode(Mf),e.createVNode(If,{ref_key:"conversationListDomRef",ref:s,class:"tui-conversation-list",onHandleSwitchConversation:u,onGetPassingRef:g},null,512)],32))}}),Nf=M(Df,[["__scopeId","data-v-eb168bf4"]]),wf=e.defineComponent({__name:"index",setup(t){const n=e.ref(),a=e.ref(!1),o=e=>{null==ah||ah.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(Jm.t("TUIChat.对方正在输入")):o(null==(t=n.value)?void 0:t.getShowName())}return e.onMounted((()=>{jm.watch(Td.CONV,{currentConversation:i}),jm.watch(Td.CHAT,{typingStatus:s})})),e.onUnmounted((()=>{jm.unwatch(Td.CONV,{currentConversation:i}),jm.unwatch(Td.CHAT,{typingStatus:s})})),C((()=>{var e;o(null==(e=n.value)?void 0:e.getShowName())})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{style:{display:"none"}}))}}),bf={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"}},Lf="/assets/back.b82bef7a.svg";function Pf(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]=Pf(o,t))})),n}const Af=e=>{var t;return e.type===qm.TYPES.MSG_CUSTOM&&"group_create"===(null==(t=null==e?void 0:e.getMessageContent())?void 0:t.businessID)};function Rf(){return jm.getData(Td.USER,"displayMessageReadReceipt")&&jm.getData(Td.APP,"enabledMessageReadReceipt")}function Of(e){return Object.assign({},e)}function Bf(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`${Jm.t("time.昨天")} ${s(a.getHours())}:${s(a.getMinutes())}`;if(i<=5184e5){const e=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a.getDay()];return`${Jm.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 xf=M(e.defineComponent({__name:"message-container",props:{sender:{default:""},avatar:{default:""},type:{},time:{}},setup(t){const n=t,a=qm.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(_f,{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(Bf)(1e3*n.time)),1)])])]))}}),[["__scopeId","data-v-4fbcde0e"]]),Uf=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(yf,{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"]))}}),Vf=M(Uf,[["__scopeId","data-v-edaf0f9f"]]),Gf=M(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||(Sh?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(yg)(t)),1)))),128))]),e.createElementVNode("div",{class:"record-footer"},e.toDisplayString(e.unref(Jm).t("TUIChat.聊天记录")),1)]),!o.disabled&&e.unref(Ch)?(e.openBlock(),e.createBlock(yf,{key:0,visible:e.unref(i),onOnOverlayClick:n[0]||(n[0]=e=>i.value=!1)},{default:e.withCtx((()=>[e.createVNode(Yf,{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(Eh)||e.unref(Sh)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Vf,{key:1,visible:e.unref(i),isFullScreen:!0,overlayColor:"transparent",popDirection:"right"},{default:e.withCtx((()=>[e.createVNode(Yf,{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"]]),Ff=e.defineComponent({__name:"index",props:{messageID:{default:""},isMounted:{type:Boolean,default:!1}},emits:["closeOverlay"],setup(t,{emit:n}){const a=n,o=t,i=qm.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 zm.downloadMergedMessages({payload:t,type:qm.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=jm.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 p(){r.value.pop(),r.value.length<1&&a("closeOverlay")}function m(e){let t="";return e.indexOf("@custom")>-1?t=""+e:(t=pg+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(Th)})},[e.createElementVNode("div",{class:"header-container"},[e.createElementVNode("span",{class:"back",onClick:p},[e.createVNode(Dh,{class:"close-icon",file:e.unref(Lf),size:"18px"},null,8,["file"]),e.unref(u)?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(e.unref(Jm).t("TUIChat.返回")),1)):(e.openBlock(),e.createElementBlock("span",{key:1},e.toDisplayString(e.unref(Jm).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(xf,{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(Cg)(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(Sh)?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e=>function(e){if(Sh){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(Dh,{class:"video-play-icon",file:e.unref(Ng)},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(Jm).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:m(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(Jm).t("TUIChat.[文件]")),1)):t.messageBody[0].type===e.unref(i).MSG_LOCATION?(e.openBlock(),e.createElementBlock("div",{key:6},e.toDisplayString(e.unref(Jm).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(Gf,{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(Jm).t("TUIChat.[自定义消息]")),1)):e.createCommentVNode("",!0)])),_:2},1032,["sender","avatar","type","time"])])))),128))],512)):e.createCommentVNode("",!0)],2))}}),Yf=M(Ff,[["__scopeId","data-v-d0eeb120"]]),Hf=M(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 Wm.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 Km.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){Wm.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})),jm.watch(Td.GRP,{groupSystemNoticeList:d})})),e.onUnmounted((()=>{jm.unwatch(Td.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(Jm).t("TUIChat.条入群申请")),1),e.createElementVNode("div",{class:"application-tips-btn",onClick:c},e.toDisplayString(e.unref(Jm).t("TUIChat.点击处理")),1)])):e.createCommentVNode("",!0),e.createVNode(Vf,{ref_key:"drawerDomInstanceRef",ref:a,visible:e.unref(i),zIndex:998,popDirection:e.unref(Th)?"bottom":"right",isFullScreen:e.unref(Th),overlayColor:e.unref(Th)?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(Ch)?(e.openBlock(),e.createBlock(Dh,{key:0,file:e.unref(tg),size:"16px"},null,8,["file"])):(e.openBlock(),e.createElementBlock("div",{key:1},e.toDisplayString(e.unref(Jm).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(_f,{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(Jm).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(Jm).t("TUIChat.同意")),9,["onClick"]),e.createElementVNode("div",{class:"reject",onClick:e=>u(t,"Reject",n)},e.toDisplayString(e.unref(Jm).t("TUIChat.拒绝")),9,["onClick"])])],2)))),128))])])])),_:1},8,["visible","popDirection","isFullScreen","overlayColor"])]))}}),[["__scopeId","data-v-50f8ddf9"]]),Zf=M(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(Ch)&&"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"]]),qf=155,jf=M(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=qf,o=qf*n/t):(a=qf*t/n,o=qf),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"]]),Jf=M(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 Rg({message:"暂不支持播放"});m()||(i.set("audio",uni.createInnerAudioContext()),function(){const e=m();if(!e)return;e.src=o.content.url,s.value=!1,e.onPlay(l),e.onStop(u),e.onEnded(d),e.onError(p)}()),s.value?c():function(){const e=m();e&&(e.play(),"in"===o.messageItem.flow&&a("setAudioPlayed",o.messageItem.ID))}()}function c(){const e=m();if(e)try{e.stop()}catch{}}function l(){s.value=!0}function u(){s.value=!1}function d(){s.value=!1}function p(){g("warn","at TUIKit/components/TUIChat/message-list/message-elements/message-audio.vue:156","audio played error")}function m(){return i.get("audio")}return e.onUnmounted((()=>{var e;const t=m();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(Dh,{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"]]),Xf=M(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(Jm).t("TUIChat.单击下载"),onClick:a},[e.createVNode(Dh,{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"]]),Kf=M(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"]]),zf=M(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=Sg(e.data),e.data===rg.SERVICE&&(i.value=Sg(e.extension))}));return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"custom"},[e.unref(s).businessID===e.unref(rg).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(Ig)(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(rg).EVALUATE?(e.openBlock(),e.createElementBlock("div",{key:1,class:"evaluate"},[e.createElementVNode("h1",null,e.toDisplayString(e.unref(Jm).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(Dh,{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(rg).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(rg).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(Jm).t("message.custom.查看详情>>")),9,["href"])])):(e.openBlock(),e.createElementBlock("span",{key:4,innerHTML:t.content.custom},null,8,["innerHTML"]))]))}}),[["__scopeId","data-v-bddf38f5"]]),Wf=M(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 Qf{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 Qf.instance||(Qf.instance=new Qf),Qf.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 $f=Qf.getInstance();$f.hideTUIChatFeatures.bind($f);const ev=M(e.defineComponent({__name:"index",props:{message:{default:()=>({})}},emits:["openReadUserPanel"],setup(t,{emit:n}){const a=n,o=t,i=$f.getFeatureConfig("ReadStatus"),s=qm.TYPES,r=e.ref(jm.getData(Td.USER,"displayMessageReadReceipt"));e.onMounted((()=>{jm.watch(Td.USER,{displayMessageReadReceipt:h})})),e.onUnmounted((()=>{jm.unwatch(Td.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:p}=jm.getConversationModel(l)||{};if((null==p?void 0:p.type)===s.GRP_AVCHATROOM||(null==p?void 0:p.type)===s.GRP_COMMUNITY)return!1;if(t===s.MSG_CUSTOM){const t=jm.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 Jm.t("TUIChat.已读");case 1:return Jm.t("TUIChat.未读");case 2:return Jm.t("TUIChat.全部已读");case 4:return`${e}${Jm.t("TUIChat.人已读")}`;default:return""}})),d=e.computed((()=>{const{conversationType:e}=o.message;return"C2C"===e?0!==l.value:"GROUP"===e&&2!==l.value})),p=e.computed((()=>o.message.needReadReceipt&&"GROUP"===o.message.conversationType&&(4===l.value||1===l.value)));function m(){p.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(p)}),onClick:m},[e.createElementVNode("span",null,e.toDisplayString(e.unref(u)),1)],2)),[[e.vShow,e.unref(c)]])}}),[["__scopeId","data-v-3007312d"]]);var tv=(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))(tv||{});const nv=M(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=jm.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=jm.getData(Td.CHAT,"messageList").some((e=>e.ID===t));if(t&&n)try{const e=await fh("#messageScrollList","messageList"),n=await fh("#tui-"+t,"messageList"),{scrollTop:o}=await vh("#messageScrollList","messageList"),s=n.top+o-e.top-i++%2,r=n.top{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 tv.TYPE_TEXT:t="[文本]";break;case tv.TYPE_CUSTOM:t="[自定义消息]";break;case tv.TYPE_IMAGE:t="[图片]";break;case tv.TYPE_SOUND:t="[音频]";break;case tv.TYPE_VIDEO:t="[视频]";break;case tv.TYPE_FILE:t="[文件]";break;case tv.TYPE_LOCATION:t="[地理位置]";break;case tv.TYPE_FACE:t="[动画表情]";break;case tv.TYPE_GROUP_TIPS:t="[群提示]";break;case tv.TYPE_MERGER:t="[聊天记录]";break;default:t="[消息]"}[tv.TYPE_TEXT,tv.TYPE_MERGER].includes(e.messageType)&&(n=e.messageAbstract);return n||Jm.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(Jm).t("TUIChat.引用内容已撤回")),1)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"max-double-line"},e.toDisplayString(e.unref(c).messageSender)+": "+e.toDisplayString(e.unref(yg)(e.unref(s))),1))],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-5258ce60"]]),av=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=jm.getMessageModel(e.ID);if(!t)return[];const{text:n}=t.getMessageContent()||{},a=[],o=await this.getNickList(t);for(let r=0;r"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)=>{zm.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=qm.TYPES.MSG_AT_ALL;if(n.includes(a)&&t.push(`@${Jm.t("TUIChat.所有人")}`),n.length>0){const{data:e}=await Km.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({})},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&&ov.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(Jm).t("TUIChat.翻译中"))+"... ",3)]))}}),[["__scopeId","data-v-937aa6a8"]]),sv=M(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{jm.watch(Td.CHAT,{translateTextInfo:c})})),e.onUnmounted((()=>{jm.unwatch(Td.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(iv,{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(Dh,{file:e.unref("/assets/check-sm.c3984331.svg"),size:"13px"},null,8,["file"]),e.createElementVNode("div",{class:"copyright-text"},e.toDisplayString(e.unref(Jm).t("TUIChat.由IM提供翻译支持")),1)])],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-8bab923c"]]),rv=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=jm.getMessageModel(e.ID);if(!t)return Promise.reject("message not found");const n=await zm.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}};rv.instance=void 0;const cv=rv.getInstance(),lv=M(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&&cv.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(Jm).t("TUIChat.转换中"))+"... ",3)]))}}),[["__scopeId","data-v-baaba9e9"]]),uv=M(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{jm.watch(Td.CHAT,{voiceToTextInfo:c})})),e.onUnmounted((()=>{jm.unwatch(Td.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(lv,{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"]]),dv=M(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(Dh,{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"]]),pv=M(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=qm.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])),p=e.computed((()=>[i.MSG_IMAGE,i.MSG_VIDEO,i.MSG_MERGER].includes(c.value.type))),m=e.computed((()=>{let e=Jm.t("TUIChat.涉及敏感内容")+", ";return"out"===c.value.flow?e+=Jm.t("TUIChat.发送失败"):e+=Jm.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(dv,{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(_f,{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(p)?"content-no-padding":"",e.unref(p)&&e.unref(h)?"blink-shadow":"",!e.unref(p)&&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(Ch)&&"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(m)),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(Dh,{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(ev,{class:"message-label align-self-bottom",message:e.unref(Of)(e.unref(c)),onOpenReadUserPanel:_},null,8,["message"])],2)])],2),e.createElementVNode("div",{class:"message-bubble-extra-content"},[e.createVNode(sv,{class:e.normalizeClass("out"===e.unref(c).flow?"reverse":"flex-row"),message:e.unref(c)},null,8,["class","message"]),e.createVNode(uv,{class:e.normalizeClass("out"===e.unref(c).flow?"reverse":"flex-row"),message:e.unref(c)},null,8,["class","message"]),e.createVNode(nv,{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"]]),mv=M(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"]]),hv=M(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,Bf(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"]]),gv=M(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(Dh,{key:0,class:"video-play",file:e.unref(Ng)},null,8,["file"])):e.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-4865446a"]]),fv="/assets/msg-copy.8d896bef.svg",vv=M(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=$f.getFeatureConfig(),r=qm.TYPES,c=e.ref([{key:"open",text:Jm.t("TUIChat.打开"),iconUrl:fv,renderCondition(){var e;return!(!s.DownloadFile||!l.value)&&(Ch&&((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 qm.TYPES.MSG_FILE:t=l.value.payload.fileUrl;break;case qm.TYPES.MSG_VIDEO:t=l.value.payload.remoteVideoUrl;break;case qm.TYPES.MSG_IMAGE:t=l.value.payload.imageInfoArray[0].url}null==window||window.open(t,"_blank")}},{key:"copy",text:Jm.t("TUIChat.复制"),iconUrl:fv,renderCondition:()=>!(!s.CopyMessage||!l.value)&&l.value.type===r.MSG_TEXT,clickEvent:async function(){var e,t;Sh&&(null==ah||ah.setClipboardData({data:yg(null==(t=null==(e=l.value)?void 0:e.payload)?void 0:t.text)}))}},{key:"revoke",text:Jm.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;jm.getMessageModel(l.value.ID).revokeMessage().then((()=>{qg("revokeMessage")})).catch((e=>{if(20016===e.code){const e=Jm.t("TUIChat.已过撤回时限");Rg({message:e,type:Pg})}}))}},{key:"delete",text:Jm.t("TUIChat.删除"),iconUrl:"/assets/msg-del.05341954.svg",renderCondition:()=>!(!s.DeleteMessage||!l.value)&&"success"===l.value.status,clickEvent:function(){if(!l.value)return;jm.getMessageModel(l.value.ID).deleteMessage()}},{key:"forward",text:Jm.t("TUIChat.转发"),iconUrl:"/assets/msg-forward.1907b7f9.svg",renderCondition:()=>!(!s.ForwardMessage||!l.value)&&"success"===l.value.status,clickEvent:function(){if(!l.value)return;jm.update(Td.CUSTOM,"singleForwardMessageID",l.value.ID)}},{key:"quote",text:Jm.t("TUIChat.引用"),iconUrl:"/assets/msg-quote.550cd8cb.svg",renderCondition(){if(!s.QuoteMessage||!l.value)return!1;const e=jm.getMessageModel(l.value.ID);return"success"===l.value.status&&!e.getSignalingInfo()},clickEvent:function(){if(!l.value)return;l.value.quoteMessage()}},{key:"translate",text:Jm.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(!jm.getData(Td.APP,"enabledTranslationPlugin"))return void Rg({message:Jm.t("TUIChat.请开通翻译功能"),type:Lg});if(!l.value)return;const e=c.value.findIndex((e=>"translate"===e.key));jm.update(Td.CHAT,"translateTextInfo",{conversationID:l.value.conversationID,messageID:l.value.ID,visible:!c.value[e].visible})}},{key:"convert",text:Jm.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(!jm.getData(Td.APP,"enabledVoiceToText"))return void Rg({message:Jm.t("TUIChat.请开通语音转文字功能")});if(!l.value)return;const e=c.value.findIndex((e=>"convert"===e.key));jm.update(Td.CHAT,"voiceToTextInfo",{conversationID:l.value.conversationID,messageID:l.value.ID,visible:!c.value[e].visible})}},{key:"multi-select",text:Jm.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((()=>{jm.watch(Td.CHAT,{translateTextInfo:p,voiceToTextInfo:m})})),e.onUnmounted((()=>{jm.unwatch(Td.CHAT,{translateTextInfo:p,voiceToTextInfo:m})})),e.watchEffect((()=>{l.value=jm.getMessageModel(i.messageItem.ID)}));const d=e.computed((()=>{for(let e=0;e"translate"===e.key));for(let a=0;a"convert"===e.key));for(let a=0;ae.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(Ch)?"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(Ch)?"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(Dh,{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"]]),_v=M(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(Jm).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(Jm).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(Jm).t("TUIChat.重新编辑")),1)):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-393e3607"]]),yv={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"},Cv={STAR:1,NUMBER:2},Ev="TIMCustomElem";function kv(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 Iv(e){var t;const n=kv(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 Sv=e=>{var t;const n=kv(null==(t=null==e?void 0:e.payload)?void 0:t.data);return Iv(e)&&n.src===yv.MENU},Tv=e=>{var t,n;const a=kv(null==(t=null==e?void 0:e.payload)?void 0:t.data),o=[yv.MENU,yv.BRANCH,yv.BRANCH_NUMBER,yv.FROM_INPUT,yv.PRODUCT_CARD,yv.ROBOT_MSG,yv.RICH_TEXT,yv.STREAM_TEXT],i=(null==e?void 0:e.type)===Ev,s=(null==a?void 0:a.src)&&!o.includes(null==a?void 0:a.src),r=(null==a?void 0:a.src)===yv.ROBOT&&-1!==["feedback","updateBotStatus"].indexOf(null==(n=null==a?void 0:a.content)?void 0:n.command);return i&&(s||r)};const Mv=(a=class{constructor(){__publicField(this,"customerServiceAccounts"),g("log","at TUIKit/tui-customer-service-plugin/server.ts:12","TUICustomerServer.init ok"),mf.registerService(zg.TUICustomerServicePlugin.SERVICE.NAME,this),mf.registerExtension(zg.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))&&(Iv(e)||Tv(e))}onGetExtension(e){if(e===zg.TUIContact.EXTENSION.CONTACT_LIST.EXT_ID)return[{weight:0,icon:"",text:"客服号",data:{name:"customer",accountList:this.customerServiceAccounts}}]}onCall(e,t){if(e===zg.TUICustomerServicePlugin.SERVICE.METHOD.ACTIVE_CONVERSATION)this.isCustomerConversation(t.conversationID)&&(mf.callService({serviceName:zg.TUIChat.SERVICE.NAME,method:zg.TUIChat.SERVICE.METHOD.SET_CHAT_TYPE,params:{chatType:"customerService"}}),mf.callService({serviceName:zg.TUIChat.SERVICE.NAME,method:zg.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(),Dv=Mv.isCustomerServicePluginMessage.bind(Mv);function Nv(e){var t;const n=Sg(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"===Sg(n.data).businessID)return!0}return!1}function wv(e){var t;const n=Sg(null==(t=null==e?void 0:e.payload)?void 0:t.data);return"group_room_message"===(null==n?void 0:n.businessID)}function bv(e){return e.type===qm.TYPES.MSG_CUSTOM&&(Nv(e)||Dv(e)||wv(e)||function(e){var t;const n=Sg(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))}Mv.setCustomerServiceAccounts.bind(Mv),Mv.getCustomerServiceAccounts.bind(Mv);const Lv=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 jm.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(pv,{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(Sh)?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"messageBubble",{key:0},void 0,!0)])),default:e.withCtx((()=>[e.unref(Sh)?e.renderSlot(t.$slots,"messageBubble",{key:0},void 0,!0):e.createCommentVNode("",!0)])),_:3},8,["messageItem","content","blinkMessageIDList","classNameList"])],32)):e.createCommentVNode("",!0)]))}}),Pv=M(Lv,[["__scopeId","data-v-b6903fb1"]]),Av=M(e.defineComponent({__name:"message-call-group",props:{message:{default:()=>({})},signalingInfo:{default:()=>({})},customContent:{default:()=>({})},blinkMessageIDList:{default:()=>[]}},setup(t){const n=t,a=qm.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"]]),Rv={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"}},Ov={title:"call",description:"you have a call",androidSound:"private_ring",androidOPPOChannelID:"tuikit",iOSSound:"01.caf"},Bv={[qm.TYPES.MSG_TEXT]:"[文本]",[qm.TYPES.MSG_FACE]:"[动画表情]",[qm.TYPES.MSG_IMAGE]:"[图片]",[qm.TYPES.MSG_FILE]:"[文件]",[qm.TYPES.MSG_AUDIO]:"[语音]",[qm.TYPES.MSG_VIDEO]:"[视频]",[qm.TYPES.MSG_LOCATION]:"[地理位置]",[qm.TYPES.MSG_MERGER]:"[聊天记录]",[qm.TYPES.MSG_CUSTOM]:"[自定义消息]"};var xv=(e=>(e.CHAT="chat",e.CALL="call",e))(xv||{});const Uv=((o=class{constructor(){this.name="OfflinePushInfoManager",this.offlinePushInfo={},this.offlinePushInfo={[xv.CHAT]:Rv,[xv.CALL]:Ov}}static getInstance(){return o.instance||(o.instance=new o),o.instance}getOfflinePushInfo(e){return Object.values(xv).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===qm.TYPES.CONV_C2C&&(n=(null==t?void 0:t.nick)||(null==t?void 0:t.userID)),n}genDesc(e,t){let n="";return e===qm.TYPES.MSG_TEXT&&(n=yg(t.text)),e===qm.TYPES.MSG_CUSTOM&&(n=t.description),n||Jm.t(`TUIChat.${Bv[e]}`)}create(e){var t;const{conversation:n,messageType:a="",payload:o={}}=e||{},i=jm.getData(Td.USER,"userProfile"),s={sender:n.type===qm.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===qm.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[xv.CHAT]}}}).instance=null,o).getInstance(),Vv=M(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(qm.TYPES),o=e.computed((()=>null!=n.signalingInfo)),i=e.computed((()=>{var e,t;switch(null==(t=Sg(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===qm.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;mf.callService({serviceName:zg.TUICalling.SERVICE.NAME,method:zg.TUICalling.SERVICE.METHOD.START_CALL,params:{userIDList:[s],type:null==(o=null==i?void 0:i.value)?void 0:o.type,callParams:{offlinePushInfo:Uv.getOfflinePushInfo(xv.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(Dh,{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 Gv;Gv=3;const Fv=p({__proto__:null,get vueVersion(){return 3}},[m]);var Yv=function(e,t){return(Yv=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 Hv,Zv=function(){return Zv=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=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 jv(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 Jv(e,t,n){if(n||2===arguments.length)for(var a,o=0,i=t.length;o=0&&Math.floor(t)===t&&isFinite(e)&&t<=4294967295}function I_(e){return null!==e&&"object"==typeof e}function S_(e){return"[object Object]"===function(e){return Object.prototype.toString.call(e)}(e)}function T_(e){return"function"==typeof e}function M_(e,t){return t=t||l_()}function D_(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 N_(e,t){return function(){for(var n=[],a=0;a1?n&&T_(t)?t():t:void 0}},isRaw:J_,isReactive:X_,isReadonly:function(e){return O_.has(e)},isRef:Y_,markRaw:function(e){if(!S_(e)&&!__(e)||!Object.isExtensible(e))return e;var t=$_();return t[j_]=!0,f_(e,"__ob__",t),R_.set(e,!0),e},nextTick:function(){for(var e,t=[],n=0;n({}),Zy=(e,t)=>{},qy=()=>{},jy=()=>{},Jy=e=>e;try{(null==(i=null==Yy?void 0:Yy.default)?void 0:i.version)&&(null==(r=null==(s=null==Yy?void 0:Yy.default)?void 0:s.version)?void 0:r.startsWith("2.7."))?Fy=2.7:(null==(c=null==Yy?void 0:Yy.default)?void 0:c.version)&&(null==(u=null==(l=null==Yy?void 0:Yy.default)?void 0:l.version)?void 0:u.startsWith("2."))?Fy=2:(Fy=3,Hy=null==Yy?void 0:Yy.createVNode,Zy=null==Yy?void 0:Yy.render,qy=null==Yy?void 0:Yy.defineProps,jy=null==Yy?void 0:Yy.defineEmits,Jy=null==Yy?void 0:Yy.withDefaults)}catch(TI){Fy=3,Hy=null==Yy?void 0:Yy.createVNode,Zy=null==Yy?void 0:Yy.render,qy=null==Yy?void 0:Yy.defineProps,jy=null==Yy?void 0:Yy.defineEmits,Jy=null==Yy?void 0:Yy.withDefaults}g("warn","at TUIKit/tui-customer-service-plugin/adapter-vue-web.ts:64",`[adapter-vue]: vue version is ${Fy}`);let Xy=Yy;2===Fy&&(Xy=Gy);const Ky=Object.freeze(Object.defineProperty({__proto__:null,get createVNode(){return Hy},get defineEmits(){return jy},get defineProps(){return qy},get render(){return Zy},get vue(){return Xy},get vueVersion(){return Fy},get withDefaults(){return Jy}},Symbol.toStringTag,{value:"Module"}));let zy=Fv;window&&!window.uni&&(zy={...Ky,...Xy});const Wy=zy,Qy="/assets/iconRight.ab6f6855.svg";hh(),hh(),hh();const $y="app"===hh();const eC=M({props:{src:{type:String,default:""},width:{type:String,default:"16px"},height:{type:String,default:"16px"}},setup:e=>({props:e,isApp:$y})},[["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:tC}=Wy;const nC=M({components:{Icon:eC},props:{payload:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:(e,{emit:t})=>({content:tC((()=>{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:Qy})},[["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 aC=M({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:oC}=Wy;const iC=M({props:{title:{type:String,default:""}},emits:["input-submit"],setup(e,{emit:t}){const n=oC(!1),a=oC("");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:sC}=Wy;const rC=M({components:{FormBranch:aC,FormInput:iC},props:{payload:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:(e,{emit:t})=>({content:sC((()=>{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:cC,toRefs:lC}=Wy;const uC=M({components:{Icon:eC},props:{payload:{type:Object,default:()=>({content:{title:"",items:[]}})}},emits:["sendMessage"],setup(e,{emit:t}){var n,a,o,i,s,r;const c=cC({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{...lC(c),handleContentListItemClick:e=>{t("sendMessage",{text:e.content})},imRobotGuess:"/assets/imRobotGuess.06ae9855.svg",refresh:"/assets/refresh.cddffc91.svg",iconRight:Qy,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 dC=M({props:{payload:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:e=>({props:e,isApp:$y,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 pC(){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 mC={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 hC=/[&<>"']/,gC=/[&<>"']/g,fC=/[<>"']|&(?!#?\w+;)/,vC=/[<>"']|&(?!#?\w+;)/g,_C={"&":"&","<":"<",">":">",'"':""","'":"'"},yC=e=>_C[e];function CC(e,t){if(t){if(hC.test(e))return e.replace(gC,yC)}else if(fC.test(e))return e.replace(vC,yC);return e}const EC=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function kC(e){return e.replace(EC,((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 IC=/(^|[^\[])\^/g;function SC(e,t){e=e.source||e,t=t||"";const n={replace:(t,a)=>(a=(a=a.source||a).replace(IC,"$1"),e=e.replace(t,a),n),getRegex:()=>new RegExp(e,t)};return n}const TC=/[^\w:]/g,MC=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function DC(e,t,n){if(e){let e;try{e=decodeURIComponent(kC(n)).replace(TC,"").toLowerCase()}catch(ui){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!MC.test(n)&&(n=function(e,t){NC[" "+e]||(wC.test(e)?NC[" "+e]=e+"/":NC[" "+e]=OC(e,"/",!0));e=NC[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(bC,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(LC,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(ui){return null}return n}const NC={},wC=/^[^:]+:\/*[^/]*$/,bC=/^([^:]+:)[\s\S]*$/,LC=/^([^:]+:\/*[^/]*)[\s\S]*$/;const PC={exec:function(){}};function AC(e){let t,n,a=1;for(;a{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.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function UC(e,t,n,a){const o=t.href,i=t.title?CC(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:CC(s)}}class VC{constructor(e){this.options=e||mC}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:OC(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=OC(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,p=t[1].trim();const m=p.length>1,h={type:"list",raw:"",ordered:m,start:m?+p.slice(0,-1):"",loose:!1,items:[]};p=m?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=m?p:"[*+-]");const g=new RegExp(`^( {0,3}${p})((?: [^\\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 p=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(s=1;s=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"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]):CC(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:RC(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({text:e})));for(s=e.header.length,a=0;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]):CC(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))return;const t=OC(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-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(e)?n.slice(1):n.slice(1,-1)),UC(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 UC(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=CC(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=CC(this.options.mangle?t(n[1]):n[1]),a="mailto:"+e):(e=CC(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=CC(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=CC(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]):CC(n[0]):n[0]:CC(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const GC={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:PC,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?'|\([^()]*\))/};GC.def=SC(GC.def).replace("label",GC._label).replace("title",GC._title).getRegex(),GC.bullet=/(?:[*+-]|\d{1,9}[.)])/,GC.listItemStart=SC(/^( *)(bull) */).replace("bull",GC.bullet).getRegex(),GC.list=SC(GC.list).replace(/bull/g,GC.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+GC.def.source+")").getRegex(),GC._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",GC._comment=/|$)/,GC.html=SC(GC.html,"i").replace("comment",GC._comment).replace("tag",GC._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),GC.paragraph=SC(GC._paragraph).replace("hr",GC.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",GC._tag).getRegex(),GC.blockquote=SC(GC.blockquote).replace("paragraph",GC.paragraph).getRegex(),GC.normal=AC({},GC),GC.gfm=AC({},GC.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),GC.gfm.table=SC(GC.gfm.table).replace("hr",GC.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",GC._tag).getRegex(),GC.pedantic=AC({},GC.normal,{html:SC("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",GC._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:PC,paragraph:SC(GC.normal._paragraph).replace("hr",GC.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",GC.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const FC={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:PC,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:PC,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),a+="&#"+n+";";return a}FC._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",FC.punctuation=SC(FC.punctuation).replace(/punctuation/g,FC._punctuation).getRegex(),FC.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,FC.escapedEmSt=/\\\*|\\_/g,FC._comment=SC(GC._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),FC.emStrong.lDelim=SC(FC.emStrong.lDelim).replace(/punct/g,FC._punctuation).getRegex(),FC.emStrong.rDelimAst=SC(FC.emStrong.rDelimAst,"g").replace(/punct/g,FC._punctuation).getRegex(),FC.emStrong.rDelimUnd=SC(FC.emStrong.rDelimUnd,"g").replace(/punct/g,FC._punctuation).getRegex(),FC._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,FC._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,FC._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])?)+(?![-_])/,FC.autolink=SC(FC.autolink).replace("scheme",FC._scheme).replace("email",FC._email).getRegex(),FC._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,FC.tag=SC(FC.tag).replace("comment",FC._comment).replace("attribute",FC._attribute).getRegex(),FC._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,FC._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,FC._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,FC.link=SC(FC.link).replace("label",FC._label).replace("href",FC._href).replace("title",FC._title).getRegex(),FC.reflink=SC(FC.reflink).replace("label",FC._label).getRegex(),FC.reflinkSearch=SC(FC.reflinkSearch,"g").replace("reflink",FC.reflink).replace("nolink",FC.nolink).getRegex(),FC.normal=AC({},FC),FC.pedantic=AC({},FC.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:SC(/^!?\[(label)\]\((.*?)\)/).replace("label",FC._label).getRegex(),reflink:SC(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",FC._label).getRegex()}),FC.gfm=AC({},FC.normal,{escape:SC(FC.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]*?(?:(?=[\\!!(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)+"["+xC("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)+"["+xC("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,HC))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,HC))){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,YC))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 qC{constructor(e){this.options=e||mC}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?'

'+(n?e:CC(e,!0))+"
\n":"
"+(n?e:CC(e,!0))+"
\n"}blockquote(e){return"
\n"+e+"
\n"}html(e){return e}heading(e,t,n,a){return this.options.headerIds?"'+e+"\n":""+e+"\n"}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const a=t?"ol":"ul";return"<"+a+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return"
  • "+e+"
  • \n"}checkbox(e){return" "}paragraph(e){return"

    "+e+"

    \n"}table(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return"\n"+e+"\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"}strong(e){return""+e+""}em(e){return""+e+""}codespan(e){return""+e+""}br(){return this.options.xhtml?"
    ":"
    "}del(e){return""+e+""}link(e,t,n){if(null===(e=DC(this.options.sanitize,this.options.baseUrl,e)))return n;let a='",a}image(e,t,n){if(null===(e=DC(this.options.sanitize,this.options.baseUrl,e)))return n;let a=''+n+'":">",a}text(e){return e}}class jC{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 JC{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 XC{constructor(e){this.options=e||mC,this.options.renderer=this.options.renderer||new qC,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new jC,this.slugger=new JC}static parse(e,t){return new XC(t).parse(e)}static parseInline(e,t){return new XC(t).parseInline(e)}parse(e,t=!0){let n,a,o,i,s,r,c,l,u,d,p,m,h,f,v,_,y,C,E,k="";const I=e.length;for(n=0;n0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=C+" "+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=C+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:C}):f+=C),f+=this.parse(v.tokens,h),u+=this.renderer.listitem(f,y,_);k+=this.renderer.list(u,p,m);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{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=ZC.lex(e,t);return t.walkTokens&&KC.walkTokens(n,t.walkTokens),XC.parse(n,t)}catch(ui){if(ui.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+CC(ui.message+"",!0)+"
    ";throw ui}}KC.options=KC.setOptions=function(e){var t;return AC(KC.defaults,e),t=KC.defaults,mC=t,KC},KC.getDefaults=pC,KC.defaults=mC,KC.use=function(...e){const t=AC({},...e),n=KC.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=KC.defaults.renderer||new qC;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=KC.defaults.tokenizer||new VC;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=KC.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}a&&(t.extensions=n),KC.setOptions(t)}))},KC.walkTokens=function(e,t){for(const n of e)switch(t.call(KC,n),n.type){case"table":for(const e of n.header)KC.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)KC.walkTokens(n.tokens,t);break;case"list":KC.walkTokens(n.items,t);break;default:KC.defaults.extensions&&KC.defaults.extensions.childTokens&&KC.defaults.extensions.childTokens[n.type]?KC.defaults.extensions.childTokens[n.type].forEach((function(e){KC.walkTokens(n[e],t)})):n.tokens&&KC.walkTokens(n.tokens,t)}},KC.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");BC(t=AC({},KC.defaults,t||{}));try{const n=ZC.lexInline(e,t);return t.walkTokens&&KC.walkTokens(n,t.walkTokens),XC.parseInline(n,t)}catch(ui){if(ui.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+CC(ui.message+"",!0)+"
    ";throw ui}},KC.Parser=XC,KC.parser=XC.parse,KC.Renderer=qC,KC.TextRenderer=jC,KC.Lexer=ZC,KC.lexer=ZC.lex,KC.Tokenizer=VC,KC.Slugger=JC,KC.parse=KC,KC.options,KC.setOptions,KC.use,KC.walkTokens,KC.parseInline,XC.parse,ZC.lex;const{computed:zC}=Wy;const WC=M({props:{payload:{type:Object,default:()=>({})}},setup(e){const t=zC((()=>{let t=KC.parse(e.payload.content);const n=new RegExp("({})}},setup(e){const t=QC(""),n=QC(""),a=QC(!1);let o=null,i=0;return tE((()=>{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})),$C((()=>{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{var t;a.value=1===(null==(t=null==e?void 0:e.payload)?void 0:t.isFinished)})),eE((()=>{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}=Wy;const oE=M({components:{MessageBranch:nC,MessageForm:rC,MessageProductCard:dC,MessageRichText:WC,MessageIMRobotWelcome:uC,MessageStream:nE},props:{message:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:(e,{emit:t})=>({payload:aE((()=>{var t,n;return e.message&&kv(null==(n=null==(t=e.message)?void 0:t.payload)?void 0:n.data)})),sendTextMessage:e=>{t("sendMessage",e)},CUSTOM_MESSAGE_SRC:yv})},[["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"),p=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(p,{payload:o.payload},null,8,["payload"])])):e.createCommentVNode("",!0)])}]]),{computed:iE,ref:sE,watchEffect:rE}=Wy;const cE=M({components:{Icon:eC},props:{ratingTemplate:{type:Object,default:()=>({})}},emits:["sendMessage"],setup(e,{emit:t}){const n=sE(!1),a=sE(""),o=sE(-1),i=sE(-1),s=sE(!1);rE((()=>{if(a.value=e.ratingTemplate.sessionId||"",null!=e.ratingTemplate.selected)for(let t=0;te.ratingTemplate.expireTime&&(s.value=!0)}));const r=iE((()=>{var t;return null==(t=e.ratingTemplate)?void 0:t.menu.map((e=>e.content))})),c=iE((()=>{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:yv.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:lE,ref:uE,watchEffect:dE}=Wy;const pE=M({props:{ratingTemplate:{type:Object,default:()=>({})}},emits:["sendMessage"],setup(e,{emit:t}){const n=uE(!1),a=uE(""),o=uE(-1),i=uE(-1),s=uE(!1),r=lE((()=>{var t;return null==(t=e.ratingTemplate)?void 0:t.menu.map((e=>e.content))})),c=lE((()=>{var t;return null==(t=e.ratingTemplate)?void 0:t.menu.map(((e,t)=>t))}));dE((()=>{if(a.value=e.ratingTemplate.sessionId||"",null!=e.ratingTemplate.selected)for(let t=0;te.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:yv.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:mE}=Wy;const hE=M({components:{MessageCustomerService:oE,MessageRating:M({components:{RatingStar:cE,RatingNumber:pE},props:{message:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:(e,{emit:t})=>({sendCustomMessage:e=>{t("sendMessage",e)},ratingTemplate:mE((()=>{const t=e.message&&kv(e.message.payload.data);return null==t?void 0:t.menuContent})),RATING_TEMPLATE_TYPE:Cv})},[["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=>{mf.callService({serviceName:zg.TUIChat.SERVICE.NAME,method:zg.TUIChat.SERVICE.METHOD.SEND_TEXT_MESSAGE,params:{payload:e}})},sendCustomMessage:e=>{mf.callService({serviceName:zg.TUIChat.SERVICE.NAME,method:zg.TUIChat.SERVICE.METHOD.SEND_CUSTOM_MESSAGE,params:{payload:e}})},isCustomerServiceMessage:Iv,isMessageRating:Sv})},[["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)])}]]),gE=M(e.defineComponent({__name:"message-customer-service",props:{message:{default:()=>({})}},setup(t){const n=t;return(t,a)=>(e.openBlock(),e.createBlock(hE,{message:n.message},null,8,["message"]))}}),[["__scopeId","data-v-f937f377"]]),fE=M(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(Sh)&&"room-default-uni","in"===n.message.flow?"room-default-in":"room-default-out"])},e.toDisplayString(e.unref(Jm).t("message.custom.自定义消息")),3))}}),[["__scopeId","data-v-42afa8f7"]]),vE=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((()=>jm.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 Nv(i.value)?t={pluginType:"call",showStyle:(null==(e=i.value)?void 0:e.conversationType)===qm.TYPES.CONV_GROUP?"tip":"bubble"}:wv(i.value)?t={pluginType:"room",showStyle:"bubble"}:Dv(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(Pv,{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(Av,{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(Vv,{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(gE,{key:1,message:a.message},null,8,["message"])):e.createCommentVNode("",!0),"room"===e.unref(c).pluginType?(e.openBlock(),e.createBlock(fE,{key:2,message:a.message},null,8,["message"])):e.createCommentVNode("",!0)])),_:1},8,["message","showStyle","bubbleClassNameList"]))}}),_E=M(vE,[["__scopeId","data-v-d3135755"]]),yE="/assets/icon-close.90eb4be2.svg",CE=M(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||(Sh?(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(),Sh?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(Jm).t("TUIChat.正在加载")),1)]),!0):e.renderSlot(t.$slots,"fetchEnd",{key:1},(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(Jm).t("TUIChat.加载结束")),1)]),!0)],512))}}),[["__scopeId","data-v-3bf21ef4"]]),EE=M(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),p=e.ref(!1),m=e.ref("unread"),h=e.ref({read:{tabName:Jm.t("TUIChat.已读"),count:void 0,memberList:[]},unread:{tabName:Jm.t("TUIChat.未读"),count:void 0,memberList:[]},close:{tabName:Jm.t("TUIChat.关闭"),count:void 0,memberList:[]}});async function g(e="all"){const t=jm.getMessageModel(o.message.ID);let n={},a={};"all"!==e&&"unread"!==e||(n=await zm.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 zm.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[m.value]&&!l.value&&(l.value=!0,"unread"===m.value||"read"===m.value)){const{unreadResult:e,readResult:t}=await g(m.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="",p.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&&(p.value=!0)}function y(e,t,n){h.value[e].count=t,h.value[e].memberList=n||[]}function C(){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(yf,{maskColor:"transparent",onOnOverlayClick:C},{default:e.withCtx((()=>[e.createElementVNode("div",{class:e.normalizeClass({"read-receipt-panel":!0,"read-receipt-panel-mobile":e.unref(Th),"read-receipt-panel-close-mobile":e.unref(Th)&&e.unref(u)})},[e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-text"},e.toDisplayString(e.unref(Jm).t("TUIChat.消息详情")),1),e.createElementVNode("div",{class:"header-close-icon"},[e.createVNode(Dh,{size:"12px",hotAreaSize:"8",file:e.unref(yE),onOnClick:C},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(m)}),onClick:e=>function(e){m.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(m)].count&&e.unref(d)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"empty-list-tip"}," - "+e.toDisplayString(e.unref(Jm).t("TUIChat.空"))+" - ",1)):e.unref(d)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},["unread"===e.unref(m)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(h)[e.unref(m)].memberList,(t=>(e.openBlock(),e.createElementBlock("div",{key:t.userID,class:"read-status-member-container"},[e.createVNode(_f,{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(m)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(h)[e.unref(m)].memberList,(t=>(e.openBlock(),e.createElementBlock("div",{key:t.userID,class:"read-status-member-container"},[e.createVNode(_f,{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(CE,{isFetching:e.unref(l),isTerminateObserve:e.unref(p),onOnExposed:f},null,8,["isFetching","isTerminateObserve"])])):e.createCommentVNode("",!0)])],2)])),_:1}))}}),[["__scopeId","data-v-21094d24"]]),kE=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),p=e.computed((()=>c.value?`${c.value}${Jm.t("TUIChat.条新消息")}`:Jm.t("TUIChat.回到最新位置")));function m(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=Sg(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!==jm.getData(Td.CHAT,"messageSource")&&jm.update(Td.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((()=>{jm.watch(Td.CHAT,{messageList:m,newMessageList:h}),jm.watch(Td.CONV,{currentConversation:g})})),e.onUnmounted((()=>{jm.unwatch(Td.CHAT,{messageList:m,newMessageList:h}),jm.unwatch(Td.CONV,{currentConversation:g})})),n({judgeScrollOverOneScreen:async function(e){var t,n,a,o,i;if(e.target)try{const{height:s}=await fh(`#${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(Dh,{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(p)),1)])):e.createCommentVNode("",!0)}}),IE=M(kE,[["__scopeId","data-v-97f4bdd3"]]),SE=M(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(Sh)?(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"]]),TE="Expected a function";function ME(e,t,n){let a=!0,o=!0;if("function"!=typeof e)throw new TypeError(TE);return n&&NE(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),DE(e,t,{leading:a,maxWait:t,trailing:o})}function DE(e,t,n){let a,o,i,s,r,c,l=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(TE);function m(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,p&&a?m(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?m(e):s}(c);if(d)return clearTimeout(r),r=setTimeout(g,t),m(c)}return void 0===r&&(r=setTimeout(g,t)),s}return t=t||0,n&&NE(n)&&(u=!!n.leading,d="maxWait"in n,i=d?Math.max(n.maxWait||0,t):i,p="trailing"in n?!!n.trailing:p),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 NE(e){const t=typeof e;return null!=e&&("object"==t||"function"==t)}const wE=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{Sh?ah.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=Sh?ah.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}};wE.instance=null,wE.CHAT_STORAGE_KEY="TUI_CHAT_STORAGE";const bE=wE.getInstance(),LE=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=jm.getData(Td.APP,"isOfficial"),p=(null==(o=e.getCurrentInstance())?void 0:o.proxy)||e.getCurrentInstance(),m=e.ref(),h=e.ref([]),g=e.ref(!1),f=e.ref(""),v=e.ref(""),_=e.ref(5e3),y=e.ref(qm.TYPES),C=e.ref(!1),E=e.ref(!1),k=e.ref([]),I=e.ref(),S=e.ref(),T=e.ref(""),M=e.ref(!1),D=e.ref(),N=e.ref({}),w=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,Rf()){const{groupProfile:t}=jm.getConversationModel(e)||{};r=null==t?void 0:t.type}Object.keys(N.value).length>0&&bE.setChatStorage("audioPlayedMapping",N.value)};e.onMounted((()=>{N.value=bE.getChatStorage("audioPlayedMapping")||{},jm.watch(Td.CHAT,{messageList:U,messageSource:G,isCompleted:Y}),jm.watch(Td.CONV,{currentConversationID:O}),function(e,t){gh.set(e,t)}("messageList",p),uni.$on("scroll-to-bottom",V)})),e.onUnmounted((()=>{jm.unwatch(Td.CHAT,{messageList:U,isCompleted:Y}),jm.unwatch(Td.CONV,{currentConversationID:O}),null==l||l.disconnect(),l=null,uni.$off("scroll-to-bottom"),Object.keys(N.value).length>0&&bE.setChatStorage("audioPlayedMapping",N.value)}));const B=ME((function(e){var t;null==(t=S.value)||t.judgeScrollOverOneScreen(e)}),500,{leading:!0});function x(e,t){(null==t?void 0:t.newAudioSrc)&&(w.value=t.newAudioSrc)}async function U(t){var n,a,o;null==l||l.disconnect(),m.value=t.filter((e=>!e.isDeleted)).map((e=>(e.vueForRenderKey=`${e.ID}`,e)));const i=null==(a=m.value)?void 0:a[(null==(n=m.value)?void 0:n.length)-1];I.value?F(I.value):C.value||(null==(o=S.value)?void 0:o.isScrollButtonVisible)&&"in"===(null==i?void 0:i.flow)||e.nextTick((()=>{R()})),Rf()&&e.nextTick((()=>async function(){if(!m.value||0===m.value.length)return;if(r===y.value.GRP_AVCHATROOM||r===y.value.GRP_COMMUNITY)return;null==l||l.disconnect(),l=uni.createIntersectionObserver(p,{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=m.value.find((t=>e.id.indexOf(t.ID)>-1));n&&n.needReadReceipt&&"in"===n.flow&&!(null==(t=n.readReceiptInfo)?void 0:t.isPeerRead)&&(zm.sendMessageReadReceipt([n]),u.add(e.id))}))}()))}async function V(){try{const{scrollHeight:e}=await vh("#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=m.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=m.value&&m.value.some((e=>e.ID===t));if(t&&n){const e=setTimeout((async()=>{try{const n=await fh("#messageScrollList","messageList"),a=await fh("#tui-"+t,"messageList"),{scrollTop:o}=await vh("#messageScrollList","messageList");K(a.top+o-n.top-c++%2),clearTimeout(e)}catch(TI){}}),500)}else Rg({message:Jm.t("TUIChat.无法定位到原消息"),type:Lg})}(t),await X(null==t?void 0:t.ID),I.value=void 0}))}function Y(e){g.value=e}const H=()=>{var t,n;C.value=!0;const a=(null==(n=null==(t=m.value)?void 0:t[0])?void 0:n.ID)||"";zm.getMessageList().then((()=>{e.nextTick((()=>{T.value=a;const e=setTimeout((()=>{T.value="",C.value=!1,clearTimeout(e)}),500)}))}))},Z=(e,t,n,a=!1)=>{s.isMultipleSelectMode||s.isNotInGroup||(a&&(E.value=!0),v.value=t.ID)};let q;const j=(e,t,n,a)=>{if(!s.isMultipleSelectMode&&!s.isNotInGroup&&Eh)switch(a){case"touchstart":q=setTimeout(o,500);break;case"touchend":clearTimeout(q),setTimeout((()=>{E.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){D.value=e,M.value=!0}function ee(e){N.value[e]=!0}return e.watch((()=>s.isMultipleSelectMode),(e=>{e||Q({type:"clearAll",messageID:""})})),n({oneByOneForwardMessage:function(){jm.update(Td.CUSTOM,"multipleForwardMessageID",{isMergeForward:!1,messageIDList:h.value})},mergeForwardMessage:function(){jm.update(Td.CUSTOM,"multipleForwardMessageID",{isMergeForward:!0,messageIDList:h.value})},scrollToLatestMessage:V}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"tui-chat":!0,"tui-chat-h5":e.unref(Th)}),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(Jm).t("TUIChat.【安全提示】本 APP 仅用于体验腾讯云即时通信 IM 产品功能,不可用于业务洽谈与拓展。请勿轻信汇款、中奖等涉及钱款的信息,勿轻易拨打陌生电话,谨防上当受骗。")),1),e.createElementVNode("a",{onClick:n[0]||(n[0]=t=>{e.unref(bf).complaint})},e.toDisplayString(e.unref(Jm).t("TUIChat.点此投诉")),1)])):e.createCommentVNode("",!0),t.isGroup?(e.openBlock(),e.createBlock(Hf,{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(B)&&e.unref(B)(...t))},[e.unref(g)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",{key:0,class:"message-more",onClick:H},e.toDisplayString(e.unref(Jm).t("TUIChat.查看更多")),1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),((a,o)=>(e.openBlock(),e.createElementBlock("li",{id:`tui-${a.ID}`,key:a.vueForRenderKey,class:e.normalizeClass("message-li "+a.flow)},[e.createVNode(hv,{currTime:a.time,prevTime:o>0?e.unref(m)[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(Af)(a)?(e.openBlock(),e.createBlock(Wf,{key:0,content:a.getMessageContent()},null,8,["content"])):a.isRevoked||e.unref(bv)(a)?!a.isRevoked&&e.unref(bv)(a)?(e.openBlock(),e.createBlock(_E,{key:2,message:a,onResendMessage:J,onHandleToggleMessageItem:Z,onHandleH5LongPress:j},null,8,["message"])):(e.openBlock(),e.createBlock(_v,{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(pv,{messageItem:e.unref(Pf)(a),content:a.getMessageContent(),isAudioPlayed:e.unref(N)[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(Zf,{key:0,content:a.getMessageContent()},null,8,["content"])):a.type===e.unref(y).MSG_IMAGE?(e.openBlock(),e.createBlock(SE,{key:1,content:a.getMessageContent(),messageItem:e.unref(Pf)(a)},{default:e.withCtx((()=>[e.createVNode(jf,{content:a.getMessageContent(),messageItem:a,onPreviewImage:e=>(e=>{if(!m.value)return;const t=[],n=m.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(SE,{key:2,content:a.getMessageContent(),messageItem:e.unref(Pf)(a)},{default:e.withCtx((()=>[e.createVNode(gv,{content:a.getMessageContent(),messageItem:a},null,8,["content","messageItem"])])),_:2},1032,["content","messageItem"])):a.type===e.unref(y).MSG_AUDIO?(e.openBlock(),e.createBlock(Jf,{key:3,content:a.getMessageContent(),messageItem:a,broadcastNewAudioSrc:e.unref(w),onSetAudioPlayed:ee,onGetGlobalAudioContext:x},null,8,["content","messageItem","broadcastNewAudioSrc"])):a.type===e.unref(y).MSG_MERGER?(e.openBlock(),e.createBlock(Gf,{key:4,renderData:a.payload,messageItem:a,onAssignMessageIDInUniapp:$},null,8,["renderData","messageItem"])):a.type===e.unref(y).MSG_FILE?(e.openBlock(),e.createBlock(Xf,{key:5,content:a.getMessageContent()},null,8,["content"])):a.type===e.unref(y).MSG_FACE?(e.openBlock(),e.createBlock(Kf,{key:6,content:a.getMessageContent()},null,8,["content"])):a.type===e.unref(y).MSG_LOCATION?(e.openBlock(),e.createBlock(mv,{key:7,content:a.getMessageContent()},null,8,["content"])):a.type===e.unref(y).MSG_CUSTOM?(e.openBlock(),e.createBlock(zf,{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(vv,{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(IE,{ref_key:"scrollButtonInstanceRef",ref:S,onScrollToLatestMessage:V},null,512),e.unref(P)?(e.openBlock(),e.createBlock(Cf,{key:2,show:e.unref(P),isH5:!e.unref(Ch),center:!0,isHeaderShow:e.unref(Ch),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(Jm).t("TUIChat.确认重发该消息?")),1)])),_:1},8,["show","isH5","isHeaderShow"])):e.createCommentVNode("",!0),e.unref(L)?(e.openBlock(),e.createBlock(EE,{key:3,message:Object.assign({},e.unref(b)),onSetReadReceiptPanelVisible:z},null,8,["message"])):e.createCommentVNode("",!0),e.createVNode(Vf,{visible:e.unref(M),overlayColor:"transparent",popDirection:"right"},{default:e.withCtx((()=>[e.createVNode(Yf,{style:{height:"100%"},isMounted:e.unref(M),messageID:e.unref(D),onCloseOverlay:n[6]||(n[6]=e=>M.value=!1)},null,8,["isMounted","messageID"])])),_:1},8,["visible"])])],2))}}),PE=M(LE,[["__scopeId","data-v-e1c11e4a"]]),AE=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}};Xm.setConversationDraft(s),jm.update(Td.CHAT,"quoteMessage",{message:void 0,type:"quote"})}}getStore(e,t){const n=jm.getConversationModel(e);if(n){if(n.conversationID&&n.draftText){const e=Sg(n.draftText);jm.update(Td.CHAT,"quoteMessage",{message:this.quoteMessageMap.get(e.messageID)||void 0,type:e.type}),t(e.html)}Xm.setConversationDraft({conversationID:n.conversationID})}}generateAbstract(e){let t="";return null==e||e.forEach((e=>{switch(e.type){case"text":t+=yg(e.payload.text||"");break;case"image":t+=Jm.t("TUIChat.图片");break;case"video":t+=Jm.t("TUIChat.视频");break;case"file":t+=Jm.t("TUIChat.文件")}})),t}isEditorNotEmpty(e){return e&&!e.includes("is-empty")&&"

    "!==e}};AE.instance=null;const RE=AE.getInstance(),OE=new Map([[3123,"文本包含本地审核拦截词"],[4004,"图片消息失败,无效的图片格式"],[4005,"文件消息失败,禁止发送违规封禁的文件"],[7004,"文件不存在,请检查文件路径是否正确"],[7005,"文件大小超出了限制,如果上传文件,最大限制是100MB"],[8001,"消息长度超出限制,消息长度不要超过12K"],[80001,"消息或者资料中文本存在敏感内容,发送失败"],[80004,"消息中图片存在敏感内容,发送失败"]]),BE=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(),p=e.ref(""),m=e.ref();e.onMounted((()=>{jm.watch(Td.CONV,{currentConversation:E}),jm.watch(Td.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((()=>{p.value&&RE.setStore(p.value,s.value,s.value,m.value),uni.$off("insertEmoji"),uni.$off("send-message-in-emoji-picker"),jm.unwatch(Td.CONV,{currentConversation:E}),jm.unwatch(Td.CHAT,{quoteMessage:k}),c.value=!0,d.value=null,p.value="",m.value=null,f()}));const h=()=>{const e=g();f(),(async(e,t)=>{jm.getData(Td.CHAT,"messageSource")&&jm.update(Td.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:Rf()};let u;const d={offlinePushInfo:{}},p={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},p.messageType=qm.TYPES.MSG_TEXT,d.offlinePushInfo=Uv.create(p),(null==(i=e.payload)?void 0:i.atUserList)?(l.payload.atUserList=e.payload.atUserList,await zm.sendTextAtMessage(l,d)):await zm.sendTextMessage(l,d);break;case"image":l.payload={file:null==(s=e.payload)?void 0:s.file},p.messageType=qm.TYPES.MSG_IMAGE,d.offlinePushInfo=Uv.create(p),await zm.sendImageMessage(l,d);break;case"video":l.payload={file:null==(r=e.payload)?void 0:r.file},p.messageType=qm.TYPES.MSG_VIDEO,d.offlinePushInfo=Uv.create(p),await zm.sendVideoMessage(l,d);break;case"file":l.payload={file:null==(c=e.payload)?void 0:c.file},p.messageType=qm.TYPES.MSG_FILE,d.offlinePushInfo=Uv.create(p),await zm.sendFileMessage(l,d)}qg("sendMessage")}catch(TI){Rg({message:OE.get(null==TI?void 0:TI.code)?Jm.t(`TUIChat.${OE.get(TI.code)}`):null==TI?void 0:TI.message,type:Pg}),jm.getData(Td.CHAT,"quoteMessage")&&jm.update(Td.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=>hg[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)},C=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==ah||ah.hideKeyboard(),i("onAt",!0))};function E(e){const t=p.value;d.value=e,p.value=null==e?void 0:e.conversationID,t!==p.value&&(t&&RE.setStore(t,s.value,s.value,m.value),f(),p.value&&RE.getStore(p.value,v))}function k(e){m.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(Ch)})},[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:C,onBlur:_,onFocus:y},null,40,["placeholder"]),[[e.vModelText,e.unref(s)]])],2))}}),xE=M(BE,[["__scopeId","data-v-4a88add0"]]),UE=M(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:()=>Jm.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((()=>{Eh&&!Sh&&a.closeByClickOutside&&_h.listen({domRefs:i.value,handler:s})}));break;case!1:o("onClose",i)}}));const s=()=>{(Sh||Eh)&&o("onClose",i)},r=()=>{o("onSubmit"),s()};return(n,o)=>a.show?(e.openBlock(),e.createElementBlock("div",{key:0},[e.unref(Ch)?e.renderSlot(n.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["bottom-popup",e.unref(Sh)&&"bottom-popup-uni",!e.unref(Ch)&&"bottom-popup-h5",!e.unref(Ch)&&a.modal&&"bottom-popup-modal"]),onClick:s},[e.createElementVNode("div",{ref_key:"dialogRef",ref:i,class:e.normalizeClass(["bottom-popup-main",!e.unref(Ch)&&"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(Jm).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"]]),VE=M(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),p=e.ref({left:0,top:0}),m=e.ref(0),h=e.ref(""),g={userID:qm.TYPES.MSG_AT_ALL,nick:"所有人",isAll:!0,avatar:"https://web.sdk.qcloud.com/im/assets/images/at.svg"};jm.watch(Td.CONV,{currentConversationID:e=>{var t,n;if(e!==h.value)if(h.value=e,c.value=[],l.value=[],u.value=[],d.value=!1,jm.update(Td.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);Wm.switchGroup(e)}else Wm.switchGroup("")}}),jm.watch(Td.GRP,{currentGroupMemberList:e=>{c.value=e,l.value=[g,...c.value],u.value=l.value,jm.update(Td.CUSTOM,"memberList",c.value)}});const f=e=>{d.value&&(r.value=e,r.value&&o("onAtListOpen"))};ah.toggleAtList=f,ah.handleAtListPosition=e=>{p.value=e},ah.setCurrentSelectIndex=e=>{var t,n;m.value=e,null==(n=null==(t=s.value)?void 0:t[m.value])||n.scrollIntoView(!1)},ah.setShowMemberList=e=>{u.value=e},n({toggleAtList:f}),e.watch((()=>[p.value,null==i?void 0:i.value]),(()=>{var e;!Eh&&(null==i?void 0:i.value)&&(null==(e=null==i?void 0:i.value)?void 0:e.style)&&(i.value.style.left=p.value.left+"px",i.value.style.top=p.value.top-i.value.clientHeight+"px")}));const v=()=>{r.value=!1,u.value=l.value,p.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(UE,{show:e.unref(r),onOnClose:v},{default:e.withCtx((()=>[e.createElementVNode("div",{ref_key:"MessageInputAt",ref:i,class:e.normalizeClass([e.unref(Ch)?"message-input-at":"message-input-at-h5"])},[e.createElementVNode("div",{ref:"dialog",class:"member-list"},[e.unref(Ch)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("header",{key:0,class:"member-list-title"},[e.createElementVNode("span",{class:"title"},e.toDisplayString(e.unref(Jm).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(m)&&"selected"]]),onClick:e=>(e=>{var t;if(Ch&&ah.selectItem)ah.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"]]),GE=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==ah?void 0:ah.getRecorderManager(),p=e.ref(!1),m=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 C(){k(),E()}function E(){p.value=!1,m.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(D),d.onStop(N),d.onError(w),jm.watch(Td.CONV,{currentConversation:y})})),e.onUnmounted((()=>{jm.unwatch(Td.CONV,{currentConversation:y})}));const T=ME((function(e){if(p.value){const t=e.changedTouches[e.changedTouches.length-1].pageY;c<0&&(c=t);const n=c-t;n>150?(m.value="抬起取消",h.value="松开手指 取消发送",r=!0):n>50?(m.value="抬起发送",h.value="继续上滑可取消",r=!1):(m.value="抬起发送",h.value="正在录音",r=!1)}}),100);function M(){l=!1,d.stop()}function D(){if(!l)return u=!0,void d.stop();i=setInterval((()=>{s+=1}),1e3),m.value="抬起发送",p.value=!0}function N(e){var t,n,a,o,c;if(u)return u=!1,void C();if(r||!p.value)return void C();clearInterval(i);const l=e.tempFilePath,d=e.duration?e.duration:1e3*s,m=e.fileSize?e.fileSize:48*s/8*1024;if(d<1e3)Rg({message:"录音时间太短",type:Ag,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:m}},needReadReceipt:Rf()};null==zm||zm.sendAudioMessage(e)}C()}function w(){k({hasError:!0}),E()}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"message-input-audio":!0,"message-input-audio-open":e.unref(g)})},[e.createVNode(Dh,{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(Jm).t(`TUIChat.${e.unref(m)}`)),1),e.unref(p)?(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(Jm).t(`TUIChat.${e.unref(h)}`)),1)])):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],2))}}),FE=M(GE,[["__scopeId","data-v-32f4d289"]]),YE=M(e.defineComponent({__name:"index",props:{displayType:{default:"editor"}},setup(t){const n=t,a=qm.TYPES,o=e.ref();e.onMounted((()=>{jm.watch(Td.CHAT,{quoteMessage:r})})),e.onUnmounted((()=>{jm.unwatch(Td.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=yg(null==(t=o.value.payload)?void 0:t.text);break;case a.MSG_IMAGE:n=Jm.t("TUIChat.图片");break;case a.MSG_AUDIO:n=Jm.t("TUIChat.语音");break;case a.MSG_VIDEO:n=Jm.t("TUIChat.视频");break;case a.MSG_FILE:n=Jm.t("TUIChat.文件");break;case a.MSG_CUSTOM:n=Jm.t("TUIChat.自定义");break;case a.MSG_FACE:n=Jm.t("TUIChat.表情");break;case a.MSG_MERGER:n=Jm.t("TUIChat.聊天记录");break;default:n=Jm.t("TUIChat.消息")}return n}));function s(){jm.update(Td.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(Sh),"input-quote-container-h5":e.unref(Eh)})},[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(Dh,{class:"input-quote-close-icon",file:e.unref(yE),width:"11px",height:"11px",onOnClick:s},null,8,["file"])])],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-5f71863a"]]),HE=M(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=$f.getFeatureConfig(),p=e.ref(d.InputVoice),m=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((()=>{jm.watch(Td.CONV,{currentConversation:k}),jm.watch(Td.CHAT,{quoteMessage:I})})),e.onUnmounted((()=>{jm.unwatch(Td.CONV,{currentConversation:k}),jm.unwatch(Td.CHAT,{quoteMessage:I})})),e.watch((()=>i.inputToolbarDisplayType),(e=>{"none"!==e&&g("editor")}));const v=(e,t)=>{((e,t)=>{e||t?zm.leaveTypingState():zm.enterTypingState()})(e,t)},_=e=>{var t;null==(t=null==r?void 0:r.value)||t.toggleAtList(e)},y=()=>{Eh&&o("changeToolbarDisplayType","none")},C=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))},E=()=>{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)===qm.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(Ch)&&"message-input-h5"])},[e.createElementVNode("div",{class:"audio-main-content-line"},[(e.unref(kh)||e.unref(Ih))&&e.unref(p)?(e.openBlock(),e.createBlock(FE,{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(xE,{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(VE,{key:1,ref_key:"messageInputAtRef",ref:r,onInsertAt:C,onOnAtListOpen:E},null,512)):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createBlock(Dh,{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(Dh,{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(YE,{style:{minWidth:0},displayType:e.unref(u)},null,8,["displayType"])])],2))}}),[["__scopeId","data-v-de604828"]]),ZE=M(e.defineComponent({__name:"index",emits:["oneByOneForwardMessage","mergeForwardMessage","toggleMultipleSelectMode"],setup(t,{emit:n}){const a=n,o=e.ref(Th?"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(Th)})},[e.createElementVNode("div",{class:"forward-button",onClick:i},[e.createVNode(Dh,{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(Th)})},e.toDisplayString(e.unref(Jm).t("TUIChat.逐条转发")),3)]),e.createElementVNode("div",{class:"forward-button",onClick:s},[e.createVNode(Dh,{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(Th)})},e.toDisplayString(e.unref(Jm).t("TUIChat.合并转发")),3)]),e.createElementVNode("div",{class:"forward-button",onClick:r},[e.createVNode(Dh,{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(Th)})},e.toDisplayString(e.unref(Jm).t("TUIChat.取消")),3)])],2))}}),[["__scopeId","data-v-0ac28d32"]]),qE="/assets/selected.1c6e50da.svg",jE=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-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,p=e.computed((()=>o.value.filter((e=>!e.isDisabled)))),m=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===p.value.length?s.value=[]:s.value=[...p.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(Ch)?"":"transfer-h5",e.unref(Th)?"transfer-h5-wechat":""]])},[e.unref(Ch)?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(Dh,{class:"icon",file:e.unref(Lf),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(Ch)&&e.unref(r)?(e.openBlock(),e.createElementBlock("input",{key:0,type:"text",value:e.unref(u),placeholder:e.unref(Jm).t("component.请输入userID"),enterkeyhint:"search",class:e.normalizeClass([e.unref(Sh)?"left-uniapp-input":""]),onKeyup:e.withKeys(m,["enter"])},null,42,["value","placeholder"])):e.createCommentVNode("",!0),!e.unref(Ch)&&e.unref(r)?(e.openBlock(),e.createElementBlock("input",{key:1,type:"text",placeholder:e.unref(Jm).t("component.请输入userID"),enterkeyhint:"search",value:e.unref(u),class:e.normalizeClass([e.unref(Sh)?"left-uniapp-input":""]),onBlur:m,onConfirm:m},null,42,["placeholder","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("main",{class:"transfer-left-main"},[e.createElementVNode("ul",{class:"transfer-list"},[e.unref(p).length>1&&!t.isRadio?(e.openBlock(),e.createElementBlock("li",{key:0,class:"transfer-list-item",onClick:g},[e.unref(s).length===e.unref(p).length?(e.openBlock(),e.createBlock(Dh,{key:0,file:e.unref(qE),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(Jm).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(Dh,{key:0,file:e.unref(qE),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(Jm).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(Jm).t("component.查看更多")),1)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",{class:"right"},[e.unref(Ch)?(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(Ch)?(e.openBlock(),e.createElementBlock("p",{key:0,class:"transfer-text"},e.toDisplayString(e.unref(Jm).t("component.已选中"))+e.toDisplayString(e.unref(s).length)+e.toDisplayString(e.unref(Jm).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(Ch)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"name"},e.toDisplayString(t.nick||t.userID),1)):e.createCommentVNode("",!0)],64))]),e.unref(Ch)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:e=>h(t)},[e.createVNode(Dh,{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(Jm).t("component.取消")),1),e.unref(s).length>0?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn",onClick:f},e.toDisplayString(e.unref(Jm).t("component.完成")),1)):(e.openBlock(),e.createElementBlock("button",{key:1,class:"btn btn-no",onClick:f},e.toDisplayString(e.unref(Jm).t("component.完成")),1))])])])],2))}}),JE=M(jE,[["__scopeId","data-v-1c77cba1"]]),XE=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],p())}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,p()):Rg({message:Jm.t("TUIChat.未选择消息"),type:Pg})}function u(){jm.update(Td.CUSTOM,"singleForwardMessageID",void 0),jm.update(Td.CUSTOM,"multipleForwardMessageID",void 0)}function d(){u(),s.value=!1}function p(){!function(){const e=jm.getData(Td.CONV,"conversationList");r.value=e.map((e=>({userID:e.conversationID,nick:e.getShowName(),avatar:e.getAvatar()})))}(),s.value=!0}function m(e){if(0===(null==e?void 0:e.length))return;const t=e.map((e=>jm.getConversationModel(e.userID))),n=o.map((e=>jm.getMessageModel(e))).sort(((e,t)=>e.time-t.time)),s=t.map((e=>{const t={conversation:e,messageType:qm.TYPES.MSG_MERGER};return zm.sendForwardMessage([e],n,{needMerge:i,offlinePushInfo:Uv.create(t),params:{needReadReceipt:Rf()}})}));Promise.allSettled(s).then((e=>{for(const t of e){const{status:e}=t;if("rejected"===e){const e=80001===t.reason.code?Jm.t("TUIChat.内容包含敏感词汇"):t.reason.message;Rg({message:e,type:Pg});break}}})),d(),a("toggleMultipleSelectMode",!1)}return e.onMounted((()=>{jm.watch(Td.CUSTOM,{singleForwardMessageID:c,multipleForwardMessageID:l})})),e.onUnmounted((()=>{jm.unwatch(Td.CUSTOM,{singleForwardMessageID:c,multipleForwardMessageID:l}),u()})),(t,n)=>(e.openBlock(),e.createBlock(yf,{visible:e.unref(s),useMask:!1},{default:e.withCtx((()=>[e.createVNode(JE,{title:e.unref(Jm).t("TUIChat.转发"),isSearch:!1,isCustomItem:!1,list:e.unref(r),isHiddenBackIcon:e.unref(Sh),onCancel:d,onSubmit:m},null,8,["title","list","isHiddenBackIcon"])])),_:1},8,["visible"]))}}),KE=M(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"===$f.getTheme()),r=e.ref(!1),c=e.ref(),l=e.ref(),u=()=>{i("onIconClick",l),Ch&&_h.listen({domRefs:c.value,handler:d}),o.needDialog&&p(!r.value)},d=()=>{r.value=!1,i("onDialogClose",l)},p=e=>{if(r.value!==e)switch(r.value=e,e){case!0:i("onDialogShow",l);break;case!1:i("onDialogClose",l)}},m=()=>{r.value=!1};return n({toggleDialogDisplay:p}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"toolbarItemRef",ref:c,class:e.normalizeClass(["toolbar-item-container",!e.unref(Ch)&&"toolbar-item-container-h5",e.unref(Sh)&&"toolbar-item-container-uni"])},[e.createElementVNode("div",{class:e.normalizeClass(["toolbar-item-container-icon",e.unref(Sh)&&"toolbar-item-container-uni-icon"]),onClick:u},[e.createVNode(Dh,{file:o.iconFile,class:"icon",width:o.iconWidth,height:o.iconHeight},null,8,["file","width","height"])],2),e.unref(Sh)?(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(Ch)&&"toolbar-item-container-h5-dialog",e.unref(Sh)&&"toolbar-item-container-uni-dialog"])},[o.needBottomPopup&&!e.unref(Ch)?(e.openBlock(),e.createBlock(UE,{key:0,class:"toolbar-bottom-popup",show:e.unref(r),onTouchmove:n[0]||(n[0]=e.withModifiers((()=>{}),["stop","prevent"])),onOnClose:m},{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"]]),zE="/assets/camera-uni.e7fd6e1a.png",WE=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"===$f.getTheme()?"/assets/image-dark.44be7480.svg":"/assets/image-light.ef346b4b.svg",title:"图片"},uni_album:{icon:"/assets/image-uni.3e951cbb.png",title:"图片"},uni_camera:{icon:zE,title:"拍照"}};jm.watch(Td.CONV,{currentConversation:e=>{o.value=e}});const s=e.computed((()=>Sh?"camera"===n.imageSourceType?i.uni_camera:i.uni_album:i.web_album)),r=()=>{var e;Sh?kh&&(null==ah?void 0:ah.chooseMedia)?null==ah||ah.chooseMedia({count:1,mediaType:["image"],sizeType:["original","compressed"],sourceType:[n.imageSourceType],success:function(e){l(e)}}):null==ah||ah.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:Rf()},c={conversation:o.value,payload:r.payload,messageType:qm.TYPES.MSG_IMAGE},l={offlinePushInfo:Uv.create(c)};zm.sendImageMessage(r,l)};return(t,n)=>(e.openBlock(),e.createBlock(KE,{iconFile:e.unref(s).icon,title:e.unref(s).title,iconWidth:e.unref(Sh)?"32px":"20px",iconHeight:e.unref(Sh)?"25px":"18px",needDialog:!1,onOnIconClick:r},{default:e.withCtx((()=>[e.unref(Sh)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["image-upload",!e.unref(Ch)&&"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"]))}}),QE=M(WE,[["__scopeId","data-v-85be0b12"]]),$E="/assets/video-uni.0b4d3e53.png",ek=e.defineComponent({__name:"index",props:{videoSourceType:{type:String,default:"album"}},setup(t){const n=t,a=e.ref(),o=e.ref();jm.watch(Td.CONV,{currentConversation:e=>{o.value=e}});const i=()=>{if(!Sh){return"dark"===$f.getTheme()?"/assets/video-dark.0bbf3476.svg":"/assets/video-light.c7253748.svg"}switch(n.videoSourceType){case"album":default:return $E;case"camera":return zE}},s=()=>{var e,t;Sh?kh&&(null==ah?void 0:ah.chooseMedia)?null==ah||ah.chooseMedia({mediaType:["video"],count:1,sourceType:[n.videoSourceType],maxDuration:60,success:function(e){c(e)}}):null==ah||ah.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:Rf()},c={conversation:o.value,payload:r.payload,messageType:qm.TYPES.MSG_VIDEO},l={offlinePushInfo:Uv.create(c)};zm.sendVideoMessage(r,l)};return(t,o)=>(e.openBlock(),e.createBlock(KE,{iconFile:i(),title:Sh&&"camera"===n.videoSourceType?"录制":"视频",needDialog:!1,iconWidth:e.unref(Sh)?"32px":"20px",iconHeight:e.unref(Sh)?"album"===n.videoSourceType?"20px":"25px":"18px",onOnIconClick:s},{default:e.withCtx((()=>[e.createElementVNode("div",{class:e.normalizeClass(["video-upload",!e.unref(Ch)&&"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"]))}}),tk=M(ek,[["__scopeId","data-v-d124a627"]]),nk={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"}},ak=M(e.defineComponent({__name:"index",props:{starTotal:{type:Number,default:5}},emits:["onDialogPopupShowOrHide"],setup(t,{emit:n}){const a="dark"===$f.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();jm.watch(Td.CONV,{currentConversation:e=>{u.value=e}});const d=e.computed((()=>l.value.length||c.value>=0)),p=()=>{i("onDialogPopupShowOrHide",!0)},m=()=>{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:rg.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:Rf()},p={conversation:u.value,payload:d.payload,messageType:qm.TYPES.MSG_CUSTOM},m={offlinePushInfo:Uv.create(p)};zm.sendCustomMessage(d,m),null==(i=null==s?void 0:s.value)||i.toggleDialogDisplay(!1)};return(t,n)=>(e.openBlock(),e.createBlock(KE,{ref_key:"container",ref:s,iconFile:e.unref(a),title:"评价",needBottomPopup:!0,iconWidth:e.unref(Sh)?"26px":"20px",iconHeight:e.unref(Sh)?"26px":"20px",onOnDialogShow:p,onOnDialogClose:m},{default:e.withCtx((()=>[e.createElementVNode("div",{class:e.normalizeClass(["evaluate",!e.unref(Ch)&&"evaluate-h5"])},[e.createElementVNode("div",{class:e.normalizeClass(["evaluate-header",!e.unref(Ch)&&"evaluate-h5-header"])},[e.createElementVNode("div",{class:e.normalizeClass(["evaluate-header-content",!e.unref(Ch)&&"evaluate-h5-header-content"])},e.toDisplayString(e.unref(Jm).t("Evaluate.请对本次服务进行评价")),3),e.unref(Ch)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["evaluate-header-close",!e.unref(Ch)&&"evaluate-h5-header-close"]),onClick:e.withModifiers(h,["stop"])},e.toDisplayString(e.unref(Jm).t("关闭")),3))],2),e.createElementVNode("div",{class:e.normalizeClass(["evaluate-content",!e.unref(Ch)&&"evaluate-h5-content"])},[e.createElementVNode("ul",{class:e.normalizeClass(["evaluate-content-list",!e.unref(Ch)&&"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(Ch)&&"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(Dh,{key:0,file:e.unref(Tg),width:e.unref(Ch)?"20px":"30px",height:e.unref(Ch)?"20px":"30px"},null,8,["file","width","height"])):(e.openBlock(),e.createBlock(Dh,{key:1,file:e.unref("/assets/star.8a9a7e2e.png"),width:e.unref(Ch)?"20px":"30px",height:e.unref(Ch)?"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(Ch)&&"evaluate-h5-content-text"])},null,2),[[e.vModelText,e.unref(l)]]),e.createElementVNode("div",{class:e.normalizeClass(["evaluate-content-button",!e.unref(Ch)&&"evaluate-h5-content-button"])},[e.createElementVNode("button",{class:e.normalizeClass(["btn",e.unref(d)?"btn-valid":"btn-invalid"]),onClick:f},e.toDisplayString(e.unref(Jm).t("Evaluate.提交评价")),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["evaluate-adv",!e.unref(Ch)&&"evaluate-h5-adv"])},[e.createTextVNode(e.toDisplayString(e.unref(Jm).t("Evaluate.服务评价工具"))+" "+e.toDisplayString("("+e.unref(Jm).t("Evaluate.使用"))+" ",1),e.createElementVNode("a",{onClick:n[1]||(n[1]=t=>{return e.unref(nk).customMessage,void((Ch||Eh)&&window.open(null==(n=null==nk?void 0:nk.customMessage)?void 0:n.url));var n})},e.toDisplayString(e.unref(Jm).t(`Evaluate.${e.unref(nk).customMessage.label}`)),1),e.createTextVNode(" "+e.toDisplayString(e.unref(Jm).t("Evaluate.搭建")+")"),1)],2)],2)])),_:1},8,["iconFile","iconWidth","iconHeight"]))}}),[["__scopeId","data-v-a4a0412f"]]),ok=[{value:"在吗?在吗?在吗?重要的话说三遍。"},{value:"好久没聊天了,快来和我说说话~"},{value:"好的,就这么说定了。"},{value:"感恩的心,感谢有你。"},{value:"糟糕!是心动的感觉!"},{value:"心疼地抱抱自己,我太难了!"},{value:"没关系,别在意,事情过去就过去了。"},{value:"早上好,今天也是让人期待的一天呢!"},{value:"熬夜有什么用,又没人陪你聊天,早点休息吧。"}],ik=M(e.defineComponent({__name:"index",emits:["onDialogPopupShowOrHide"],setup(t,{emit:n}){const a="dark"===$f.getTheme()?"/assets/words-dark.cda35c0a.svg":"/assets/words-light.97e1bc17.svg",o=n,i=e.ref(),s=e.ref();jm.watch(Td.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(KE,{ref_key:"container",ref:s,iconFile:e.unref(a),title:"常用语",needBottomPopup:!0,iconWidth:e.unref(Sh)?"26px":"20px",iconHeight:e.unref(Sh)?"26px":"20px",onOnDialogShow:c,onOnDialogClose:l},{default:e.withCtx((()=>[e.createElementVNode("div",{class:e.normalizeClass(["words",!e.unref(Ch)&&"words-h5"])},[e.createElementVNode("div",{class:e.normalizeClass(["words-header",!e.unref(Ch)&&"words-h5-header"])},[e.createElementVNode("span",{class:e.normalizeClass(["words-header-title",!e.unref(Ch)&&"words-h5-header-title"])},e.toDisplayString(e.unref(Jm).t("Words.常用语-快捷回复工具")),3),e.unref(Ch)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["words-header-close",!e.unref(Ch)&&"words-h5-header-close"]),onClick:r}," 关闭 ",2))],2),e.createElementVNode("ul",{class:e.normalizeClass(["words-list",!e.unref(Ch)&&"words-h5-list"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ok),((t,n)=>(e.openBlock(),e.createElementBlock("li",{key:n,class:e.normalizeClass(["words-list-item",!e.unref(Ch)&&"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:Jm.t(`Words.${e.value}`)},needReadReceipt:Rf()};zm.sendTextMessage(l),null==(c=null==s?void 0:s.value)||c.toggleDialogDisplay(!1)})(t)},e.toDisplayString(e.unref(Jm).t(`Words.${t.value}`)),11,["onClick"])))),128))],2)],2)])),_:1},8,["iconFile","iconWidth","iconHeight"]))}}),[["__scopeId","data-v-1cf1abee"]]),sk=M(e.defineComponent({__name:"emoji-picker-dialog",emits:["insertEmoji","onClose","sendMessage"],setup(t,{emit:n}){var a;const o="dark"===$f.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=$f.getFeatureConfig(),d=e.ref(vg.filter((e=>e.type===cg.BASIC?u.InputEmoji:e.type===cg.BIG?u.InputStickers:void 0))),p=e.ref(null==d?void 0:d.value[0]),m=e.ref(null==(a=null==d?void 0:d.value[0])?void 0:a.list);e.onMounted((()=>{jm.watch(Td.CONV,{currentConversation:f})})),e.onUnmounted((()=>{jm.unwatch(Td.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:Rf()};zm.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(Ch)})},[e.createElementVNode("ul",{ref_key:"emojiPickerListRef",ref:l,class:e.normalizeClass(["emoji-picker-list",!e.unref(Ch)&&"emoji-picker-h5-list"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),((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:_g(e)},type:null==(n=null==p?void 0:p.value)?void 0:n.type};switch(null==(a=null==p?void 0:p.value)?void 0:a.type){case cg.BASIC:s.url=(null==(o=null==p?void 0:p.value)?void 0:o.url)+fg[e],Sh?uni.$emit("insert-emoji",s):i("insertEmoji",s);break;case cg.BIG:case cg.CUSTOM:h(t,p.value)}Ch&&i("onClose")})(t,n)},[e.unref(p).type===e.unref(cg).BASIC?(e.openBlock(),e.createElementBlock("img",{key:0,class:"emoji",src:e.unref(p).url+e.unref(fg)[t]},null,8,["src"])):e.unref(p).type===e.unref(cg).BIG?(e.openBlock(),e.createElementBlock("img",{key:1,class:"emoji-big",src:e.unref(p).url+t+"@2x.png"},null,8,["src"])):(e.openBlock(),e.createElementBlock("img",{key:2,class:"emoji-custom emoji-big",src:e.unref(p).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,p.value=null==d?void 0:d.value[e],m.value=null==(t=null==d?void 0:d.value[e])?void 0:t.list,Sh||(null==l?void 0:l.value)&&(l.value.scrollTop=0)})(n)},[t.type===e.unref(cg).BASIC?(e.openBlock(),e.createBlock(Dh,{key:0,class:"icon",file:e.unref(o)},null,8,["file"])):t.type===e.unref(cg).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(Sh)?(e.openBlock(),e.createElementBlock("li",{key:0,class:"send-btn",onClick:g}," 发送 ")):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-95b76fa1"]]),rk=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:"发起群视频"},p=e.computed((()=>d[o.type]?d[o.type]:""));Km.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,Wm.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 m=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(Cf,{show:e.unref(s),isH5:!e.unref(Ch),isHeaderShow:!1,isFooterShow:!1,background:!1,"onUpdate:show":f},{default:e.withCtx((()=>[e.createVNode(JE,{isSearch:!0,title:e.unref(p),list:e.unref(l),isH5:!e.unref(Ch),isRadio:!1,onSearch:m,onSubmit:h,onCancel:g},null,8,["title","list","isH5"])])),_:1},8,["show","isH5"]))}}),ck=M(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=$f.getFeatureConfig(),d=e.ref(8),p=e.ref(0);e.onMounted((()=>{jm.watch(Td.CUSTOM,{activeConversation:m})})),e.onUnmounted((()=>{jm.unwatch(Td.CUSTOM,{activeConversation:m})}));const m=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),p.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=jm.getConversationModel(e),o.value=e.startsWith(qm.TYPES.CONV_GROUP))},h=()=>{const e=$f.getChatType(),t={chatType:e};e===zg.TUIChat.TYPE.CUSTOMER_SERVICE&&(t.filterVoice=!0,t.filterVideo=!0,qg("customerService")),c.value=[...mf.getExtensionList(zg.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,p,m;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)===qm.TYPES.CONV_C2C?null==(p=null==(l=null==e?void 0:e.listener)?void 0:l.onClicked)||p.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:Uv.getOfflinePushInfo(xv.CALL)}}):o.value&&(r.value=e,(null==(m=null==s?void 0:s.value)?void 0:m.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:Uv.getOfflinePushInfo(xv.CALL)}}),r.value=null},C=()=>{r.value=null},E=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(sk)])):(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(QE,{key:0,imageSourceType:"camera"})):e.createCommentVNode("",!0),e.unref(u).InputImage?(e.openBlock(),e.createBlock(QE,{key:1,imageSourceType:"album"})):e.createCommentVNode("",!0),e.unref(u).InputVideo?(e.openBlock(),e.createBlock(tk,{key:2,videoSourceType:"album"})):e.createCommentVNode("",!0),e.unref(u).InputVideo?(e.openBlock(),e.createBlock(tk,{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(p)),((t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n},[t?(e.openBlock(),e.createBlock(KE,{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(ak,{key:0,onOnDialogPopupShowOrHide:E})):e.unref(u).InputQuickReplies?(e.openBlock(),e.createBlock(ik,{key:1,onOnDialogPopupShowOrHide:E})):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(ak,{key:0,onOnDialogPopupShowOrHide:E})):e.createCommentVNode("",!0),e.unref(u).InputQuickReplies?(e.openBlock(),e.createBlock(ik,{key:1,onOnDialogPopupShowOrHide:E})):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(p)),((t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n},[t?(e.openBlock(),e.createBlock(KE,{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(ik,{key:0,onOnDialogPopupShowOrHide:E})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(u).InputEvaluation?(e.openBlock(),e.createBlock(ak,{key:0,onOnDialogPopupShowOrHide:E})):e.createCommentVNode("",!0),e.unref(u).InputQuickReplies?(e.openBlock(),e.createBlock(ik,{key:1,onOnDialogPopupShowOrHide:E})):e.createCommentVNode("",!0)],64))])):e.createCommentVNode("",!0)],8,["indicator-dots"])])),e.createVNode(rk,{ref_key:"userSelectorRef",ref:s,type:e.unref(i),currentConversation:e.unref(a),isGroup:e.unref(o),onSubmit:y,onCancel:C},null,8,["type","currentConversation","isGroup"])]))}}),[["__scopeId","data-v-f8681e06"]]),lk=M(e.defineComponent({__name:"index",emits:["closeChat"],setup(t,{emit:n}){C((e=>{(e=>{const{chat:t}=hf.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.");Xm.switchConversation(t)}})(e)})),k((()=>{var e;(e=!1,e?hf.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(),p=e.ref(),m=e.ref([]),h=$f.getFeatureConfig();e.onMounted((()=>{jm.watch(Td.CONV,{currentConversationID:L,currentConversation:b})})),e.onUnmounted((()=>{jm.unwatch(Td.CONV,{currentConversationID:L,currentConversation:b}),_()}));const f=e.computed((()=>!Sh||"none"!==u.value)),v=e.computed((()=>{let e="";switch(r.value){case 4:e=Jm.t("TUIChat.您已被管理员移出群聊");break;case 5:e=Jm.t("TUIChat.该群聊已被解散");break;default:e=Jm.t("TUIChat.您已退出该群聊")}return e})),_=()=>{Xm.switchConversation("")},y=e=>{a("closeChat",e),_()},E=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=()=>{m.value[0].listener.onClicked({groupID:o.value})};function T(e){u.value=u.value===e?"none":e,"none"!==u.value&&Sh&&uni.$emit("scroll-to-bottom")}function M(){var e;null==(e=p.value)||e.scrollToLatestMessage()}function D(e){l.value=void 0===e?!l.value:e}function N(){var e;null==(e=p.value)||e.mergeForwardMessage()}function w(){var e;null==(e=p.value)||e.oneByOneForwardMessage()}function b(e){(null==e?void 0:e.operationType)>0?(m.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=qm.TYPES.CONV_C2C;if(e.startsWith(qm.TYPES.CONV_GROUP)&&(t=qm.TYPES.CONV_GROUP,i.value=!0,o.value=e.replace(qm.TYPES.CONV_GROUP,"")),m.value=[],l.value=!1,$f.setChatType(t),mf.notifyEvent(zg.TUIChat.EVENT.CHAT_STATE_CHANGED,zg.TUIChat.EVENT_SUB_KEY.CHAT_OPENED,{groupID:o.value}),mf.callService({serviceName:zg.TUICustomerServicePlugin.SERVICE.NAME,method:zg.TUICustomerServicePlugin.SERVICE.METHOD.ACTIVE_CONVERSATION,params:{conversationID:e}}),$f.getChatType()===zg.TUIChat.TYPE.ROOM&&!0===$f.getFeatureConfig(zg.TUIChat.FEATURE.InputVoice))return $f.setTheme("light"),void(c.value="");$f.getChatType()===zg.TUIChat.TYPE.GROUP&&(m.value=mf.getExtensionList(zg.TUIChat.EXTENSION.CHAT_HEADER.EXT_ID)),jm.update(Td.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(Ch)&&"tui-chat-h5"])},[e.unref(c)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-chat-default",!e.unref(Ch)&&"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(Ch)&&"tui-chat-h5"])},[e.createVNode(wf,{class:e.normalizeClass(["tui-chat-header",!e.unref(Ch)&&"tui-chat-H5-header",e.unref(Sh)&&"tui-chat-uniapp-header"]),headerExtensionList:e.unref(m),onCloseChat:y},null,8,["class","headerExtensionList"]),e.createVNode(XE,{onToggleMultipleSelectMode:D}),e.createVNode(PE,{ref_key:"messageListRef",ref:p,class:e.normalizeClass(["tui-chat-message-list",!e.unref(Ch)&&"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:D},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(Th)})},e.toDisplayString(e.unref(v)),3)):e.unref(l)?(e.openBlock(),e.createBlock(ZE,{key:1,onOneByOneForwardMessage:w,onMergeForwardMessage:N,onToggleMultipleSelectMode:D})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.unref(f)?(e.openBlock(),e.createBlock(ck,{key:0,class:e.normalizeClass(["tui-chat-message-input-toolbar",!e.unref(Ch)&&"tui-chat-h5-message-input-toolbar",e.unref(Sh)&&"tui-chat-uni-message-input-toolbar"]),displayType:e.unref(u),onInsertEmoji:E,onChangeToolbarDisplayType:T,onScrollToLatestMessage:M},null,8,["class","displayType"])):e.createCommentVNode("",!0),e.createVNode(HE,{ref_key:"messageInputRef",ref:d,class:e.normalizeClass(["tui-chat-message-input",!e.unref(Ch)&&"tui-chat-h5-message-input",e.unref(Sh)&&"tui-chat-uni-message-input",e.unref(kh)&&"tui-chat-wx-message-input"]),enableAt:e.unref(h).InputMention,isMuted:!1,muteText:e.unref(Jm).t("TUIChat.您已被管理员禁言"),placeholder:e.unref(Jm).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(Sh)&&e.unref(i)&&e.unref(m).length>0?(e.openBlock(),e.createElementBlock("div",{key:2,class:"group-profile",onClick:S},e.toDisplayString(e.unref(m)[0].text),1)):e.createCommentVNode("",!0)],2)]))}}),[["__scopeId","data-v-656be517"]]),uk=M(e.defineComponent({__name:"video-play",setup(t){const n=e.ref(),a=e.ref(!1),o=e.ref();return C((e=>{const t=decodeURIComponent(null==e?void 0:e.videoUrl);n.value=t,a.value=!0})),E((()=>{a.value=!0,o.value=ah.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"]]),dk=e.defineComponent({__name:"web-view",setup(t){const n=e.ref("");return C((e=>{n.value=e&&e.url})),(t,a)=>(e.openBlock(),e.createElementBlock("web-view",{src:e.unref(n)},null,8,["src"]))}}),pk=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(Cf,{show:!0,isH5:!e.unref(Ch),isHeaderShow:!1,isFooterShow:!1,background:!1,"onUpdate:show":i},{default:e.withCtx((()=>[e.createVNode(JE,{isSearch:o.isNeedSearch,title:o.title,list:o.userList,isH5:!e.unref(Ch),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 mk{constructor(){mf.registerService(zg.TUIContact.SERVICE.NAME,this),this.onCallParamsMap=new Map,this.onCallCallbackMap=new Map,this.constants=zg}static getInstance(){return mk.instance||(mk.instance=new mk),mk.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===zg.TUIContact.SERVICE.METHOD.SELECT_FRIEND&&(jm.update(Td.CUSTOM,"isShowSelectFriendComponent",!0),Sh&&(null==ah||ah.reLaunch({url:"/TUIKit/components/TUIContact/index"})))}}const hk=e.defineComponent({__name:"index",setup(t){const n=mk.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=mf.getService(a.TUISearch.SERVICE.NAME),r.value?o.value=t:g("warn","at TUIKit/components/TUIContact/select-friend/index.vue:41","请添加 TUISearch 组件")),Qm.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=>{jm.update(Td.CUSTOM,"isShowSelectFriendComponent",!1);const t=n.getOnCallCallback(a.TUIContact.SERVICE.METHOD.SELECT_FRIEND);t&&t(e)},u=()=>{Rg({message:Jm.t("TUIGroup.该用户不存在"),type:Pg}),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(pk,{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"]))}}),gk=M(e.defineComponent({__name:"index",setup(t){const n=Jm.t("TUIContact.输入ID"),a=e.ref(!1),o=e.ref(""),i=e.ref({user:{label:"联系人",list:[]},group:{label:"群聊",list:[]}}),s=DE((function(e){a.value=e}),200),r=async()=>{o.value&&(mf.callService({serviceName:zg.TUISearch.SERVICE.NAME,method:zg.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)})),mf.callService({serviceName:zg.TUISearch.SERVICE.NAME,method:zg.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),(()=>{jm.update(Td.CUSTOM,"currentContactSearchResult",i.value)}),{deep:!0,immediate:!0}),e.watch((()=>a.value),(()=>{jm.update(Td.CUSTOM,"currentContactSearchingStatus",a.value),a.value&&(o.value="",i.value.user.list=[],i.value.group.list=[])}),{deep:!0,immediate:!0}),ah.updateContactSearch=r,ah.closeSearching=()=>{a.value=!1},(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tui-contact-search",!e.unref(Ch)&&"tui-contact-search-h5"])},[e.unref(a)&&e.unref(Ch)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-contact-search-header",!e.unref(Ch)&&"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(Ch)&&"tui-contact-search-h5-header-icon"]),onClick:i[0]||(i[0]=e.withModifiers((t=>e.unref(s)(!e.unref(a))),["stop"]))},[e.createVNode(Dh,{file:e.unref(a)?e.unref(Lf):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(Ch)&&"tui-contact-search-h5-header-title"])},e.toDisplayString(e.unref(Jm).t("TUIContact.添加好友/群聊")),3)],2)),e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["tui-contact-search-main",!e.unref(Ch)&&"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(Jm).t("取消")),1)],2)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-277cade1"]]),fk=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"},vk=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)||""},_k=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)||""},yk=e=>{var t,n;return(null==e?void 0:e.type)===(null==(t=null==qm?void 0:qm.TYPES)?void 0:t.SNS_APPLICATION_SENT_TO_ME)||(null==e?void 0:e.type)===(null==(n=null==qm?void 0:qm.TYPES)?void 0:n.SNS_APPLICATION_SENT_BY_ME)},Ck=e=>{const t=(null==e?void 0:e.groupID)?`GROUP${null==e?void 0:e.groupID}`:`C2C${null==e?void 0:e.userID}`;Xm.switchConversation(t).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:200","switch conversation failed:",e),Rg({message:Jm.t("TUIContact.进入会话失败"),type:Pg})}))},Ek=e=>{Qm.acceptFriendApplication({userID:e,type:qm.TYPES.SNS_APPLICATION_AGREE_AND_ADD}).then((()=>{Rg({message:Jm.t("TUIContact.添加好友成功"),type:bg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:222","accept friend application failed:",e),Rg({message:Jm.t("TUIContact.同意好友申请失败"),type:Pg})}))},kk=(e,t)=>{Wm.joinGroup({groupID:e,applyMessage:t}).then((e=>{var t;switch(null==(t=null==e?void 0:e.data)?void 0:t.status){case qm.TYPES.JOIN_STATUS_WAIT_APPROVAL:Rg({message:Jm.t("TUIContact.等待管理员同意"),type:bg});break;case qm.TYPES.JOIN_STATUS_SUCCESS:Rg({message:Jm.t("TUIContact.加群成功"),type:bg});break;case qm.TYPES.JOIN_STATUS_ALREADY_IN_GROUP:Rg({message:Jm.t("TUIContact.您已是群成员"),type:bg})}})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:316","join group failed:",e),Rg({message:"申请入群失败",type:Pg})}))},Ik=M(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={[qm.TYPES.GRP_WORK]:"Work",[qm.TYPES.GRP_AVCHATROOM]:"AVChatRoom",[qm.TYPES.GRP_PUBLIC]:"Public",[qm.TYPES.GRP_MEETING]:"Meeting",[qm.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==qm?void 0:qm.TYPES)?void 0:t.SNS_APPLICATION_SENT_TO_ME)||(null==(a=n.item)?void 0:a.type)===(null==(o=null==qm?void 0:qm.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==qm?void 0:qm.TYPES)?void 0:t.SNS_APPLICATION_SENT_BY_ME)?{style:"text",label:"等待验证"}:(null==(a=n.item)?void 0:a.type)===(null==(o=null==qm?void 0:qm.TYPES)?void 0:o.SNS_APPLICATION_SENT_TO_ME)&&{style:"button",label:"同意",onClick:()=>{var e;Ek(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)===qm.TYPES.USER_STATUS_ONLINE)}),{immediate:!0,deep:!0}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tui-contact-list-card",!e.unref(Ch)&&"tui-contact-list-card-h5"])},[e.createElementVNode("div",{class:"tui-contact-list-card-left"},[e.createVNode(_f,{class:"tui-contact-list-card-left-avatar",useSkeletonAnimation:"",url:e.unref(fk)(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(vk)(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(Jm).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(Jm).t(`TUIContact.${e.unref(c).label}`)),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-e4c5c96e"]]),Sk=M(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)}jm.update(Td.CUSTOM,"currentContactInfo",a.value)}function d(e){r.value=e}function p(e){(null==e?void 0:e.size)>0&&(c.value=Object.fromEntries(null==e?void 0:e.entries()))}function m(e){if(!e)return;const t=zg.TUIContact.EXTENSION.CONTACT_LIST.EXT_ID,n=mf.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||{};Km.getUserProfile({userIDList:a}).then((e=>{if(e.data.length>0){const n={title:t,list:e.data.map(((e,t)=>({...e,renderKey:C("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=C(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)})))||{},jm.update(Td.CUSTOM,"currentContactInfo",a.value))}(o.value[e].list,e)}function C(e,t,n){return`${e}-${t.userID||t.groupID||"index"+n}`}function E(e){s.value=e}function k(e){i.value=e,jm.update(Td.CUSTOM,"currentContactInfo",{}),jm.update(Td.CUSTOM,"currentContactListKey","")}function I(e){a.value=e}function S(e){n.value=e}return e.onMounted((()=>{jm.watch(Td.APP,{enabledCustomerServicePlugin:m}),jm.watch(Td.GRP,{groupList:h}),jm.watch(Td.USER,{userBlacklist:g,displayOnlineStatus:d,userStatusList:p}),jm.watch(Td.FRIEND,{friendList:v,friendApplicationList:_,friendApplicationUnreadCount:f}),jm.watch(Td.CUSTOM,{currentContactSearchingStatus:k,currentContactSearchResult:E,currentContactListKey:S,currentContactInfo:I})})),e.onUnmounted((()=>{jm.unwatch(Td.APP,{enabledCustomerServicePlugin:m}),jm.unwatch(Td.GRP,{groupList:h}),jm.unwatch(Td.USER,{userBlacklist:g,displayOnlineStatus:d,userStatusList:p}),jm.unwatch(Td.FRIEND,{friendList:v,friendApplicationList:_,friendApplicationUnreadCount:f}),jm.unwatch(Td.CUSTOM,{currentContactSearchingStatus:k,currentContactSearchResult:E,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(Jm).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(Ik,{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(Jm).t("TUIContact.无搜索结果")),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass(["tui-contact-list",!e.unref(Ch)&&"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={},jm.update(Td.CUSTOM,"currentContactListKey",""),jm.update(Td.CUSTOM,"currentContactInfo",{})):(n.value=e,jm.update(Td.CUSTOM,"currentContactListKey",e),"friendApplicationList"===e&&Qm.setFriendApplicationRead())}(o)},[e.createElementVNode("div",{class:"tui-contact-list-item-header-left"},[e.createVNode(Dh,{file:e.unref(n)===o?e.unref(eg):e.unref(Zg),width:"16px",height:"16px"},null,8,["file"]),e.createElementVNode("div",null,e.toDisplayString(e.unref(Jm).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(Ik,{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:lg.LEFT,editable:!0,editType:ug.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?Rg({message:Jm.t("TUIContact.修改备注失败: 备注长度不得超过 96 字节"),type:Pg}):Qm.updateFriend({userID:e,remark:t}).then((()=>{Rg({message:Jm.t("TUIContact.修改备注成功"),type:bg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:138","update friend remark failed:",e),Rg({message:Jm.t("TUIContact.修改备注失败"),type:Pg})}))})(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:lg.LEFT,editable:!0,editType:ug.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,Km.removeFromBlacklist({userIDList:[a]}).then((()=>{o&&o()})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:353","remove from blacklist failed:",e),Rg({message:Jm.t("TUIContact.移除黑名单失败"),type:Pg})}))):(((e,t)=>{Km.addToBlacklist({userIDList:[e]}).then((()=>{t&&t()})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:333","add to blacklist failed:",e),Rg({message:Jm.t("TUIContact.加入黑名单失败"),type:Pg})}))})(null==(n=null==e?void 0:e.contactInfoData)?void 0:n.userID),jm.update(Td.CUSTOM,"currentContactListKey","blackList"))}},setWords:{key:"setWords",label:"请填写验证信息",data:"",labelPosition:lg.TOP,editable:!0,editType:ug.TEXTAREA,editing:!0},displayWords:{key:"displayWords",label:"验证信息",data:"",labelPosition:lg.LEFT,editable:!1}},Mk={dismissGroup:{key:"dismissGroup",label:"解散群聊",type:dg.CANCEL,onClick:e=>{var t,n;n=null==(t=null==e?void 0:e.contactInfoData)?void 0:t.groupID,Wm.dismissGroup(n).then((()=>{Rg({message:Jm.t("TUIContact.解散群聊成功"),type:bg}),(null==ah?void 0:ah.updateContactSearch)&&(null==ah||ah.updateContactSearch())})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:259","dismiss group failed:",e),Rg({message:Jm.t("TUIContact.解散群聊失败"),type:Pg})}))}},quitGroup:{key:"quitGroup",label:"退出群聊",type:dg.CANCEL,onClick:e=>{var t,n;n=null==(t=null==e?void 0:e.contactInfoData)?void 0:t.groupID,Wm.quitGroup(n).then((()=>{Rg({message:Jm.t("TUIContact.退出群组成功"),type:bg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:277","quit group failed:",e),Rg({message:Jm.t("TUIContact.退出群组失败"),type:Pg})}))}},joinGroup:{key:"joinGroup",label:"发送申请",type:dg.SUBMIT,onClick:e=>{var t,n;kk(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:dg.SUBMIT,onClick:e=>{var t;kk(null==(t=null==e?void 0:e.contactInfoData)?void 0:t.groupID)}},enterGroupConversation:{key:"enterGroupConversation",label:"进入群聊",type:dg.SUBMIT,onClick:e=>{Ck(null==e?void 0:e.contactInfoData)}},addFriend:{key:"addFriend",label:"发送申请",type:dg.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},Qm.addFriend(o).then((()=>{Rg({message:Jm.t("TUIContact.申请已发送"),type:bg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:185","delete friend failed:",e),Rg({message:Jm.t("TUIContact.申请发送失败"),type:Pg})}))}},deleteFriend:{key:"deleteFriend",label:"删除好友",type:dg.CANCEL,onClick:e=>{var t,n;n=null==(t=null==e?void 0:e.contactInfoData)?void 0:t.userID,Qm.deleteFriend({userIDList:[n],type:qm.TYPES.SNS_DELETE_TYPE_BOTH}).then((e=>{const{successUserIDList:t}=e.data;t[0].userID===n?Rg({message:Jm.t("TUIContact.删除好友成功"),type:bg}):Rg({message:Jm.t("TUIContact.删除好友失败"),type:Pg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:167","delete friend failed:",e),Rg({message:Jm.t("TUIContact.删除好友失败"),type:Pg})}))}},enterC2CConversation:{key:"enterC2CConversation",label:"发送消息",type:dg.SUBMIT,onClick:e=>{Ck(null==e?void 0:e.contactInfoData)}},acceptFriendApplication:{key:"acceptFriendApplication",label:"同意",type:dg.SUBMIT,onClick:e=>{var t;Ek(null==(t=null==e?void 0:e.contactInfoData)?void 0:t.userID),jm.update(Td.CUSTOM,"currentContactListKey","friendList")}},refuseFriendApplication:{key:"refuseFriendApplication",label:"拒绝",type:dg.CANCEL,onClick:e=>{var t,n;n=null==(t=null==e?void 0:e.contactInfoData)?void 0:t.userID,Qm.refuseFriendApplication(n).then((()=>{Rg({message:Jm.t("TUIContact.拒绝成功"),type:bg})})).catch((e=>{g("warn","at TUIKit/components/TUIContact/utils/index.ts:240","accept friend application failed:",e),Rg({message:Jm.t("TUIContact.拒绝好友申请失败"),type:Pg})}))}}},Dk="/assets/edit.5adfff7a.svg",Nk=M(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"]]),wk=M(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((()=>yk(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)})),p=e.computed((()=>{var e;return!c.value&&(null==(e=m.value)?void 0:e.findIndex((e=>{var t;return(null==e?void 0:e.userID)===(null==(t=o.value)?void 0:t.userID)})))>=0})),m=e.ref([]);e.onMounted((()=>{jm.watch(Td.CUSTOM,{currentContactInfo:_}),jm.watch(Td.USER,{userBlacklist:v})})),e.onUnmounted((()=>{jm.unwatch(Td.CUSTOM,{currentContactInfo:_}),jm.unwatch(Td.USER,{userBlacklist:v})}));const h=()=>{jm.update(Td.CUSTOM,"currentContactInfo",{}),jm.update(Td.CUSTOM,"currentContactSearchingStatus",!1),(null==ah?void 0:ah.closeSearching)&&(null==ah||ah.closeSearching())},f=e=>{e.editSubmitHandler&&e.editSubmitHandler({item:e,contactInfoData:o.value,isBothFriend:u.value,isInBlackList:p.value})};function v(e){m.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=Pf(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 yk(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):Qm.checkFriend({userIDList:[null==n?void 0:n.userID],type:qm.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 qm.TYPES.SNS_TYPE_NO_RELATION:case qm.TYPES.SNS_TYPE_A_WITH_B:case qm.TYPES.SNS_TYPE_B_WITH_A:e(!1);break;case qm.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&&!p.value||c.value&&!d.value&&(null==(e=o.value)?void 0:e.type)!==(null==(t=null==qm?void 0:qm.TYPES)?void 0:t.GRP_AVCHATROOM))&&(Tk.setWords.data="",s.value.push(Tk.setWords)),c.value||p.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&&!p.value||(Tk.blackList.data=p.value||!1,s.value.push(Tk.blackList)))})(),(()=>{var e,t,n,a,i,s,m,h,g,f,v,_,y,C,E;p.value||(l.value?(null==(e=o.value)?void 0:e.type)===(null==(t=null==qm?void 0:qm.TYPES)?void 0:t.SNS_APPLICATION_SENT_TO_ME)&&(null==(n=null==r?void 0:r.value)||n.push(Mk.refuseFriendApplication),null==(a=null==r?void 0:r.value)||a.push(Mk.acceptFriendApplication)):c.value&&d.value?("Owner"===(null==(s=null==(i=o.value)?void 0:i.selfInfo)?void 0:s.role)?null==(m=null==r?void 0:r.value)||m.push(Mk.dismissGroup):null==(h=null==r?void 0:r.value)||h.push(Mk.quitGroup),null==(g=null==r?void 0:r.value)||g.push(Mk.enterGroupConversation)):!c.value&&u.value?(null==(f=null==r?void 0:r.value)||f.push(Mk.deleteFriend),null==(v=null==r?void 0:r.value)||v.push(Mk.enterC2CConversation)):c.value?null==(C=null==r?void 0:r.value)||C.push((null==(_=o.value)?void 0:_.type)===(null==(y=null==qm?void 0:qm.TYPES)?void 0:y.GRP_AVCHATROOM)?Mk.joinAVChatGroup:Mk.joinGroup):null==(E=null==r?void 0:r.value)||E.push(Mk.addFriend))})(),e.infoKeyList&&(s.value=e.infoKeyList.map((e=>Tk[e]))),e.btnKeyList&&(r.value=e.btnKeyList.map((e=>Mk[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(Ch)&&"tui-contact-info-h5"])},[e.unref(Ch)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tui-contact-info-header",!e.unref(Ch)&&"tui-contact-info-h5-header"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-header-icon",!e.unref(Ch)&&"tui-contact-info-h5-header-icon"]),onClick:h},[e.createVNode(Dh,{file:e.unref(Lf)},null,8,["file"])],2),e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-header-title",!e.unref(Ch)&&"tui-contact-info-h5-header-title"])},e.toDisplayString(e.unref(Jm).t("TUIContact.添加好友/群聊")),3)],2)),e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-basic",!e.unref(Ch)&&"tui-contact-info-h5-basic"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-basic-text",!e.unref(Ch)&&"tui-contact-info-h5-basic-text"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-basic-text-name",!e.unref(Ch)&&"tui-contact-info-h5-basic-text-name"])},e.toDisplayString(e.unref(_k)(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(Ch)&&"tui-contact-info-h5-basic-text-other"])},e.toDisplayString(`${e.unref(Jm).t(`TUIContact.${t.label}`)}:\n ${t.data}`),3)))),128))],2),e.createElementVNode("img",{class:e.normalizeClass(["tui-contact-info-basic-avatar",!e.unref(Ch)&&"tui-contact-info-h5-basic-avatar"]),src:e.unref(fk)(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(Ch)&&"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(Ch)&&"tui-contact-info-h5-more-item",t.labelPosition===e.unref(lg).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(Ch)&&"tui-contact-info-h5-more-item-label"])},e.toDisplayString(`${e.unref(Jm).t(`TUIContact.${t.label}`)}`),3),e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-more-item-content",!e.unref(Ch)&&"tui-contact-info-h5-more-item-content"])},[t.editing?t.editType===e.unref(ug).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(Ch)&&"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(ug).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(Ch)&&"tui-contact-info-h5-more-item-content-textarea"]),"confirm-type":"done"},null,10,["onUpdate:modelValue"])),[[e.vModelText,t.data]]):t.editType===e.unref(ug).SWITCH?(e.openBlock(),e.createElementBlock("div",{key:3,onClick:e=>f(t)},[e.createVNode(Nk,{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(Ch)&&"tui-contact-info-h5-more-item-content-text"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-info-more-item-content-text-data",!e.unref(Ch)&&"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(Ch)&&"tui-contact-info-h5-more-item-content-text-icon"]),onClick:e=>(e=>{e.editing=!0})(t)},[e.createVNode(Dh,{file:e.unref(Dk),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(Ch)&&"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(Ch)&&"tui-contact-info-h5-button-item",t.type===e.unref(dg).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(Jm).t(`TUIContact.${t.label}`)),11,["onClick"])))),128))],2)],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-68a46040"]]),bk=M(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)})),jm.watch(Td.CUSTOM,{isShowSelectFriendComponent:e=>{var t;if(!Sh&&"selectFriend"===(null==o?void 0:o.displayType))return s.value=e,void(r.value=!1);e?(s.value=!0,Sh&&(i.value="selectFriend",null==ah||ah.hideTabBar())):(s.value=!1,Sh&&(i.value=o.displayType,null==(t=null==ah?void 0:ah.showTabBar())||t.catch((()=>{}))))},currentContactInfo:e=>{var t;c.value=Ch||e&&"object"==typeof e&&(null==(t=Object.keys(e))?void 0:t.length)>0}});const l=e=>{Sh&&(null==ah||ah.navigateTo({url:"/TUIKit/components/TUIChat/index"})),a("switchConversation",e)};return(t,n)=>e.unref(s)?(e.openBlock(),e.createBlock(hk,{key:0})):e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["tui-contact",!e.unref(Ch)&&"tui-contact-h5"])},[e.createElementVNode("div",{class:e.normalizeClass(["tui-contact-left",!e.unref(Ch)&&"tui-contact-h5-left"])},[e.createVNode(gk),e.createVNode(Sk,{class:e.normalizeClass(["tui-contact-left-list",!e.unref(Ch)&&"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(Ch)&&"tui-contact-h5-right"])},[e.createVNode(wk,{onSwitchConversation:l})],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-8f969de8"]]),Lk=[{icon:"https://web.sdk.qcloud.com/im/assets/images/Public.svg",label:"陌生人社交群(Public)",type:qm.TYPES.GRP_PUBLIC,detail:"类似 QQ 群,创建后群主可以指定群管理员,用户搜索群 ID 发起加群申请后,需要群主或管理员审批通过才能入群。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/Meeting.svg",label:"临时会议群(Meeting)",type:qm.TYPES.GRP_MEETING,detail:"创建后可以随意进出,且支持查看入群前消息;适合用于音视频会议场景、在线教育场景等与实时音视频产品结合的场景。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/Work.svg",label:"好友工作群(Work)",type:qm.TYPES.GRP_WORK,detail:"类似普通微信群,创建后仅支持已在群内的好友邀请加群,且无需被邀请方同意或群主审批。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/AVChatroom.svg",label:"直播群(AVChatroom)",type:qm.TYPES.GRP_AVCHATROOM,detail:"创建后可以随意进出,没有群成员数量上限,但不支持历史消息存储;适合与直播产品结合,用于弹幕聊天场景。详见",src:"产品文档"},{icon:"https://web.sdk.qcloud.com/im/assets/images/Community.png",label:"社群(Community)",type:qm.TYPES.GRP_COMMUNITY,detail:"创建后可以随意进出,最多支持100000人,支持历史消息存储,用户搜索群 ID 发起加群申请后,无需管理员审批即可进群。详见",src:"产品文档"}],Pk=e=>Lk.filter((t=>t.type===e))[0],Ak=M(e.defineComponent({__name:"index",props:{groupType:{type:String,default:""}},emits:["selectType"],setup(t,{emit:n}){const a=t,o=Lk,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(Dh,{class:"icon",file:t.icon},null,8,["file"]),e.createElementVNode("span",{class:"select-item-label"},e.toDisplayString(e.unref(Jm).t(`TUIGroup.${t.label}`)),1)]),e.unref(i)===t.type?(e.openBlock(),e.createBlock(Dh,{key:0,file:e.unref(qE)},null,8,["file"])):e.createCommentVNode("",!0)]),e.createElementVNode("span",{class:"select-item-detail"},e.toDisplayString(e.unref(Jm).t(`TUIGroup.${t.detail}`)),1),e.createElementVNode("a",{class:"link",href:e.unref(nk).product.url,target:"_blank",onClick:n[0]||(n[0]=t=>{return n=e.unref(nk).product.url,void(Sh||null==ah||ah.open(n));var n})},e.toDisplayString(e.unref(Jm).t(`TUIGroup.${t.src}`)),9,["href"])])],10,["onClick"])))),128))]))}}),[["__scopeId","data-v-df441dd8"]]);class Rk{constructor(){mf.registerService(zg.TUIGroup.SERVICE.NAME,this),mf.registerExtension(zg.TUIChat.EXTENSION.CHAT_HEADER.EXT_ID,this),this.onCallParamsMap=new Map,this.onCallCallbackMap=new Map,this.constants=zg}static getInstance(){return Rk.instance||(Rk.instance=new Rk),Rk.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 zg.TUIGroup.SERVICE.METHOD.CREATE_GROUP:jm.update(Td.GRP,"isShowCreateComponent",!0),Sh&&(null==ah||ah.reLaunch({url:"/TUIKit/components/TUIGroup/index"}));break;case zg.TUIGroup.SERVICE.METHOD.OPEN_GROUP_MANAGEMENT:Wm.switchGroup(t.groupID),jm.update(Td.GRP,"isShowManageComponent",!0),Sh&&(null==ah||ah.navigateTo({url:"/TUIKit/components/TUIGroup/index"}));break;case zg.TUIGroup.SERVICE.METHOD.SELECT_GROUP_MEMBER:Wm.switchGroup(t.groupID),jm.update(Td.GRP,"isShowSelectComponent",!0),Sh&&(null==ah||ah.navigateTo({url:"/TUIKit/components/TUIGroup/index"}))}}onGetExtension(e){const t=[];if(e===zg.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){mf.callService({serviceName:zg.TUIGroup.SERVICE.NAME,method:zg.TUIGroup.SERVICE.METHOD.OPEN_GROUP_MANAGEMENT,params:e,callback:()=>{Sh&&(null==ah||ah.navigateBack())}})}}const Ok=M(e.defineComponent({__name:"index",setup(t){const n=Rk.getInstance(),a=n.constants,o=e.reactive({profile:{groupID:"",name:"",type:Lk[0].type,avatar:Lk[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((()=>Pk(o.profile.type))),s=e.computed((()=>{let e="添加群聊";return o.isEdit&&(e=o.groupConfig.title),Jm.t(`TUIGroup.${e}`)})),r=e.computed((()=>{const e={name:Jm.t("TUIGroup.群名称"),key:"name",placeholder:Jm.t("TUIGroup.请输入群名称")},t={name:`${Jm.t("TUIGroup.群ID")}(${Jm.t("TUIGroup.选填")})`,key:"groupID",placeholder:Jm.t("TUIGroup.请输入群ID")};return o.profile.type===qm.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=Pk(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===qm.TYPES.GRP_COMMUNITY&&delete e.groupID;const t=await Wm.createGroup(e),{type:n}=t.data.group;n===qm.TYPES.GRP_AVCHATROOM&&await Wm.joinGroup({groupID:t.data.group.groupID,applyMessage:""}),m(t.data.group),Rg({message:Jm.t("TUIGroup.群组创建成功"),type:bg})}catch(t){Rg({message:t.message,type:Pg})}})(e)},d=()=>{if(o.isEdit)return o.isEdit=!o.isEdit;m(null)},p=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"}},m=e=>{jm.update(Td.GRP,"isShowCreateComponent",!1);const t=n.getOnCallCallback(a.TUIGroup.SERVICE.METHOD.CREATE_GROUP);t&&t(e)};return(t,n)=>(e.openBlock(),e.createBlock(Cf,{show:!0,isH5:!e.unref(Ch),isHeaderShow:!1,isFooterShow:!1,background:!1,"onUpdate:show":d},{default:e.withCtx((()=>[e.createElementVNode("div",{class:e.normalizeClass(["group",[e.unref(Ch)?"":"group-h5"]])},[e.createElementVNode("div",{class:"group-box"},[e.createElementVNode("header",{class:"group-box-header"},[e.createVNode(Dh,{file:e.unref(Ch)?e.unref(yE):e.unref(Lf),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(Jm).t(`TUIGroup.${e.unref(o).groupConfig.placeholder}`)},null,8,["placeholder"])),[[e.vModelText,e.unref(o).groupConfig.value]]):(e.openBlock(),e.createBlock(Ak,{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(Jm).t("TUIGroup.群头像")),1),e.createVNode(_f,{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(Ch)?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=>p(t.key)},[e.createElementVNode("p",{class:"content"},e.toDisplayString(e.unref(o).profile[t.key]),1),e.createVNode(Dh,{file:e.unref(Zg)},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(Jm).t("TUIGroup.群类型")),1),e.unref(Ch)?(e.openBlock(),e.createBlock(Ak,{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=>p("type"))},[e.createElementVNode("p",{class:"content"},e.toDisplayString(e.unref(i).label),1),e.createVNode(Dh,{file:e.unref(Zg)},null,8,["file"])]))]),e.unref(Ch)?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(nk).product.url,target:"view_window"},e.toDisplayString(e.unref(Jm).t(`TUIGroup.${e.unref(i).src}`)),9,["href"])]))])])])),e.createElementVNode("footer",{class:"group-profile-footer"},[e.unref(Ch)&&!e.unref(o).isEdit?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn-default",onClick:d},e.toDisplayString(e.unref(Jm).t("TUIGroup.取消")),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"btn-submit",disabled:e.unref(c),onClick:u},e.toDisplayString(e.unref(Jm).t("TUIGroup.确认")),9,["disabled"])])])],2)])),_:1},8,["isH5"]))}}),[["__scopeId","data-v-c9c12286"]]),Bk=M(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(kh)&&s),["self"]))},[e.renderSlot(t.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-b12cc795"]]),xk=M(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="",Rg({message:Jm.t("TUIGroup.群名称修改成功"),type:bg})),u()):Rg({message:Jm.t("TUIGroup.群名称不能为空"),type:Pg})},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(Jm).t("TUIGroup.群名称")),1),e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({"edit-h5":e.unref(Th)})},[e.createElementVNode("main",{class:"edit-h5-main"},[e.unref(Ch)?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(Jm).t("TUIGroup.修改群聊名称")),1),e.createElementVNode("span",null,e.toDisplayString(e.unref(Jm).t("TUIGroup.修改群聊名称后,将在群内通知其他成员")),1)]),e.createElementVNode("span",{class:"close",onClick:u},e.toDisplayString(e.unref(Jm).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(Ch)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:1,class:"tip"},e.toDisplayString(e.unref(Jm).t("TUIGroup.仅限中文、字母、数字和下划线,2-20个字")),1))]),e.unref(Ch)?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(Jm).t("确认")),1)]))])],2)):e.createCommentVNode("",!0),e.unref(s)&&e.unref(Ch)?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(Dh,{key:0,class:"icon",file:e.unref(Dk),width:"14px",height:"14px"},null,8,["file"])):e.createCommentVNode("",!0)]))]))}}),[["__scopeId","data-v-5f0c4190"]]),Uk=M(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?Rg({message:Jm.t("TUIGroup.群公告字数超出限制,最大长度为150"),type:Pg}):(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(Sh)?(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(Jm).t("TUIGroup.群公告")),1)]),e.createElementVNode("span",{class:"close",onClick:n[2]||(n[2]=e=>{c("close","notification")})},e.toDisplayString(e.unref(Jm).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(Sh)?"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(Jm).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(Jm).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(Jm).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(Jm).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(Jm).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(Jm).t("TUIGroup.编辑")),1))])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-bd710001"]]),Vk="/assets/del-icon.c693da44.svg",Gk=M(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 qm.TYPES.GRP_MBR_ROLE_ADMIN:t=Jm.t("TUIGroup.管理员");break;case qm.TYPES.GRP_MBR_ROLE_OWNER:t=Jm.t("TUIGroup.群主")}return t&&(t=`(${t})`),e.userID===r.value.userID&&(t+=` (${Jm.t("TUIGroup.我")})`),t},u=()=>{c("more")},d=e=>{c("del",[e])},p=e=>{c("handleMemberProfileShow",e)};return(t,n)=>e.unref(Sh)?(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(Jm).t("TUIGroup.群成员")),1)]),e.createElementVNode("span",{class:"close",onClick:n[0]||(n[0]=e=>{c("close","member")})},e.toDisplayString(e.unref(Jm).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=>p(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(Dh,{key:0,file:e.unref(Vk),width:"16px",height:"16px"},null,8,["file"])):e.createCommentVNode("",!0)],8,["onClick"])])))),128)),e.unref(i).length(e.openBlock(),e.createElementBlock("li",{key:n,class:"list-item"},[e.createElementVNode("aside",{class:"aside",onClick:e=>p(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(Dh,{key:0,file:e.unref(Vk),width:"16px",height:"16px"},null,8,["file"])):e.createCommentVNode("",!0)],8,["onClick"])])))),128)),e.unref(i).length({})}},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 Km.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}`;Xm.getConversationProfile(n).then((e=>{Xm.switchConversation(e.data.conversation.conversationID).then((()=>{jm.update(Td.GRP,"isShowManageComponent",!1),Sh&&(null==ah||ah.navigateBack())}))})).catch((e=>{g("warn","at TUIKit/components/TUIGroup/manage-group/manage-profile.vue:147","获取会话资料失败",e.code,e.msg)}))},c=async()=>{i.value.userID&&Qm.checkFriend({userIDList:[i.value.userID],type:qm.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===qm.TYPES.SNS_TYPE_BOTH_WAY}))},l=()=>o.value||!jm.getData(Td.APP,"isOfficial");return(t,n)=>e.unref(Sh)?(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(Jm).t("TUIGroup.群成员")),1)]),e.createElementVNode("span",{class:"close",onClick:n[1]||(n[1]=e=>{s("close","profile")})},e.toDisplayString(e.unref(Jm).t("关闭")),1)]),e.createElementVNode("div",{class:"edit-h5-profile"},[e.createElementVNode("div",{class:"memeber-profile-main"},[e.createVNode(_f,{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(Jm).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(Jm).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(Jm).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(Jm).t("TUIContact.发送消息")),1)):e.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-1467def5"]]),Yk=M(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"]]),Hk="/assets/plus.f3b9aa49.svg",Zk="/assets/minus.887a634f.svg",qk=M(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")},p=()=>{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(Jm).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(Dh,{file:e.unref(Hk),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(Dh,{file:e.unref(Zk),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(Jm).t("TUIGroup.全员禁言")),1),e.createElementVNode("div",{class:"admin-mute-all-content"},e.toDisplayString(e.unref(Jm).t("TUIGroup.全员禁言开启后,只允许群主和管理员发言。")),1)]),e.createVNode(Yk,{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(Jm).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(Dh,{file:e.unref(Hk),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:p},[e.createVNode(Dh,{file:e.unref(Zk),width:"16px",height:"16px"},null,8,["file"])])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-2a5ca315"]]),jk=e.defineComponent({__name:"index",props:{groupID:{type:String,default:""},groupCurrentTab:{type:String,default:""}},setup(t){const n=Rk.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:[]}),p=e.ref({}),m=e.ref({[qm.TYPES.GRP_WORK]:"好友工作群",[qm.TYPES.GRP_PUBLIC]:"陌生人社交群",[qm.TYPES.GRP_MEETING]:"临时会议群",[qm.TYPES.GRP_AVCHATROOM]:"直播群",[qm.TYPES.GRP_COMMUNITY]:"社群",[qm.TYPES.JOIN_OPTIONS_FREE_ACCESS]:"自由加入",[qm.TYPES.JOIN_OPTIONS_NEED_PERMISSION]:"需要验证",[qm.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([]),C=e.ref(!1),E=e.ref([]),k=e.ref([]),I=e.ref(),S=e.ref(""),T=e.ref("");e.onMounted((()=>{e.nextTick((()=>{i.value&&_h.listen({domRefs:i.value,handler:Q})}))})),jm.watch(Td.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=>{E.value=e,h.value={admin:[],member:[],muteMember:[]},Array.from(e).map((e=>{switch(null==e?void 0:e.role){case qm.TYPES.GRP_MBR_ROLE_ADMIN:h.value.admin.push(e);break;case qm.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))}}),jm.watch(Td.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})),D=e.computed((()=>{var e,t;return(null==(t=null==(e=I.value)?void 0:e.selfInfo)?void 0:t.role)===qm.TYPES.GRP_MBR_ROLE_OWNER})),N=e.computed((()=>{var e,t;return(null==(t=null==(e=I.value)?void 0:e.selfInfo)?void 0:t.role)===qm.TYPES.GRP_MBR_ROLE_OWNER})),w=e.computed((()=>{var e;return(null==(e=I.value)?void 0:e.type)===qm.TYPES.GRP_WORK})),b=e.computed((()=>!(w.value||!D.value&&!N.value))),L=e.computed((()=>{var e;return!((null==(e=null==I?void 0:I.value)?void 0:e.type)===qm.TYPES.GRP_AVCHATROOM)})),P=async e=>{const{key:t,value:n}=e,a={groupID:I.value.groupID,[t]:n};Wm.updateGroupProfile(a).then((e=>{I.value=e.data.group,r.value=""})).catch((e=>{Rg({message:null==e?void 0:e.message,type:Pg})}))},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 B()).filter((e=>e.userID&&n.indexOf(e.userID)<0)),f.value="添加成员";break;case"remove":_.value=!1,g.value=E.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},B=async()=>(await Qm.getFriendList()).data.map((e=>null==e?void 0:e.profile)).filter((e=>!d.value.list.some((t=>t.userID===e.userID)))),x=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===qm.TYPES.GRP_MBR_ROLE_OWNER&&o!==qm.TYPES.GRP_WORK})),U=e.computed((()=>{var e;return(null==(e=null==I?void 0:I.value)?void 0:e.type)===qm.TYPES.GRP_WORK})),V=e.computed((()=>{var e,t;let n=3;return U.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=>{p.value=e,A("profile")},F=e=>{"remove"===c.value?(k.value=e,C.value=!C.value):q(e,c.value),l.value=!1},Y=()=>{Sh?null==ah||ah.switchTab({url:"/TUIKit/components/TUIConversation/index"}):(Q(),Xm.switchConversation())},H=e=>{P({key:"muteAllMembers",value:e}),e?(qg("muteGroup"),Rg({message:Jm.t("TUIGroup.禁言设置成功"),type:bg})):Rg({message:Jm.t("TUIGroup.取消禁言成功"),type:bg})},Z=async e=>{var t,n;let a={},o={};const i={groupID:u.value,userIDList:[e]};switch(c.value){case"add":try{o=await Wm.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=Jm.t("TUIGroup.该用户不存在");Rg({message:t,type:Pg})}break;case"remove":try{if(a=await Wm.getGroupMemberProfile(i),0===a.data.memberList.length){const e=Jm.t("TUIGroup.该用户不在群组内");Rg({message:e,type:Pg})}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=Jm.t("TUIGroup.该用户不存在");Rg({message:t,type:Pg})}}},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 Wm.addGroupMember(t)},J=async e=>{const t={groupID:u.value,newOwnerID:e},n=await Wm.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 Wm.setGroupMemberMuteTime(n)},K=async e=>{let t="";switch(e.role){case qm.TYPES.GRP_MBR_ROLE_ADMIN:t=qm.TYPES.GRP_MBR_ROLE_MEMBER;break;case qm.TYPES.GRP_MBR_ROLE_MEMBER:t=qm.TYPES.GRP_MBR_ROLE_ADMIN}const n={groupID:u.value,userID:e.userID,role:t};await Wm.setGroupMemberRole(n)},z=async e=>{const t={groupID:u.value,userIDList:e,reason:""};await Wm.deleteGroupMember(t)},W=()=>{s.value?A(""):Q()},Q=()=>{jm.update(Td.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(Sh)&&"admin"!==e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("header",{key:0,class:"manage-header"},[e.createVNode(Dh,{file:e.unref(Lf),onOnClick:W},null,8,["file"]),e.createElementVNode("div",{class:"manage-header-content"},e.toDisplayString(e.unref(Jm).t(`TUIGroup.${e.unref(M)}`)),1),e.createElementVNode("div")])),!e.unref(s)||e.unref(Sh)&&"admin"!=e.unref(s)?(e.openBlock(),e.createElementBlock("main",{key:1,class:"main"},[e.createVNode(xk,{class:"space-top",isAuthor:e.unref(D)||e.unref(N)||e.unref(w),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(Jm).t("TUIGroup.群成员")),1),e.createElementVNode("div",{class:"user-info-header-right"},[e.createElementVNode("span",{class:"span"},e.toDisplayString(e.unref(I).memberCount||e.unref(E).length)+" "+e.toDisplayString(e.unref(Jm).t("TUIGroup.人")),1),e.createVNode(Dh,{file:e.unref(Zg)},null,8,["file"])])]),e.createElementVNode("ol",{class:"user-info-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(E).slice(0,e.unref(V)),((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(U)?(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(Jm).t("TUIGroup.群公告")),1),e.createElementVNode("article",{class:"article"},e.toDisplayString(e.unref(I).notification),1)]),e.createVNode(Dh,{file:e.unref(Zg),class:"end"},null,8,["file"])]),(e.unref(N)||e.unref(D))&&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(Jm).t("TUIGroup.群管理")),1),e.createVNode(Dh,{file:e.unref(Zg)},null,8,["file"])])):e.createCommentVNode("",!0),e.createElementVNode("li",{class:"list-item"},[e.createElementVNode("label",{class:"label"},e.toDisplayString(e.unref(Jm).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(Jm).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(Jm).t("TUIGroup.群类型")),1),e.createElementVNode("span",{class:"span"},e.toDisplayString(e.unref(Jm).t(`TUIGroup.${e.unref(m)[e.unref(I).type]}`)),1)]),e.createElementVNode("li",{class:"list-item"},[e.createElementVNode("label",{class:"label"},e.toDisplayString(e.unref(Jm).t("TUIGroup.加群方式")),1),e.createElementVNode("span",{class:"span"},e.toDisplayString(e.unref(Jm).t(`TUIGroup.${e.unref(m)[e.unref(I).joinOption]}`)),1)])]),e.createElementVNode("ul",{class:"footer list space-top"},["Owner"===e.unref(S)&&e.unref(E).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(Jm).t("TUIGroup.转让群组")),1)):e.createCommentVNode("",!0),e.unref(x)?(e.openBlock(),e.createElementBlock("li",{key:1,class:"list-item",onClick:n[7]||(n[7]=e.withModifiers((t=>(async e=>{await Wm.dismissGroup(e.groupID),qg("dismissGroup"),Rg({message:Jm.t("TUIGroup.群组解散成功"),type:bg}),Y()})(e.unref(I))),["stop"]))},e.toDisplayString(e.unref(Jm).t("TUIGroup.解散群聊")),1)):(e.openBlock(),e.createElementBlock("li",{key:2,class:"list-item",onClick:n[8]||(n[8]=e.withModifiers((t=>(async e=>{await Wm.quitGroup(e.groupID),Y()})(e.unref(I))),["stop"]))},e.toDisplayString(e.unref(Jm).t("TUIGroup.退出群组")),1))])])):e.createCommentVNode("",!0),"member"===e.unref(s)?(e.openBlock(),e.createBlock(Gk,{key:2,self:e.unref(I).selfInfo,list:e.unref(E),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 Wm.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(Fk,{key:3,userInfo:e.unref(p),onClose:n[11]||(n[11]=e=>A(""))},null,8,["userInfo"])):e.createCommentVNode("",!0),"notification"===e.unref(s)?(e.openBlock(),e.createBlock(Uk,{key:4,isAuthor:e.unref(D)||e.unref(N)||e.unref(w),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(qk,{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(N)]]):e.createCommentVNode("",!0),e.createVNode(Bk,{show:e.unref(l),"onUpdate:show":n[18]||(n[18]=e=>l.value=e)},{default:e.withCtx((()=>[e.createVNode(JE,{title:e.unref(Jm).t(`TUIGroup.${e.unref(f)}`),list:e.unref(g),isSearch:e.unref(v),isRadio:e.unref(_),selectedList:e.unref(y),isH5:!e.unref(Ch),onSubmit:F,onCancel:R,onSearch:Z},null,8,["title","list","isSearch","isRadio","selectedList","isH5"])])),_:1},8,["show"]),e.createVNode(Cf,{class:"deleted-dialog",title:e.unref(Jm).t("TUIGroup.删除成员"),show:e.unref(C),isH5:!e.unref(Ch),center:!0,isHeaderShow:e.unref(Ch),onSubmit:n[19]||(n[19]=t=>q(e.unref(k),"remove")),"onUpdate:show":n[20]||(n[20]=e=>C.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(Jm).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(Jm).t("TUIGroup.确定从群聊中删除所选成员?")),1)):e.createCommentVNode("",!0)])),_:1},8,["title","show","isH5","isHeaderShow"])],512))}}),Jk=M(jk,[["__scopeId","data-v-227e769d"]]),Xk=e.defineComponent({__name:"index",setup(t){const n=Rk.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=mf.getService(a.TUISearch.SERVICE.NAME),l.value?o.value=t:g("warn","at TUIKit/components/TUIGroup/select-member/index.vue:48","请添加 TUISearch 组件"))})),jm.watch(Td.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 Wm.getGroupMemberList(e)},d=e=>{jm.update(Td.GRP,"isShowSelectComponent",!1);const t=n.getOnCallCallback(a.TUIGroup.SERVICE.METHOD.SELECT_GROUP_MEMBER);t&&t(e)},p=()=>{Rg({message:Jm.t("TUIGroup.该用户不存在"),type:Pg}),s.value=[...i.value]},m=async e=>{if(!e)return s.value=i.value;try{const t=await l.value.searchGroupMember(e);if(!t.data[0])return p();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 p()}};return(t,n)=>(e.openBlock(),e.createBlock(pk,{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:m,onComplete:d},null,8,["isRadio","isNeedSearch","title","userList","total"]))}}),Kk=M(e.defineComponent({__name:"index",setup(t){const n=e.ref(!1),a=e.ref(!1),o=e.ref(!1);return jm.watch(Td.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(Ok,{key:0})):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createBlock(Jk,{key:1})):e.createCommentVNode("",!0),e.unref(o)?(e.openBlock(),e.createBlock(Xk,{key:2})):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-3ff2cd9d"]]);__definePage("pages/news/ce",D),__definePage("pages/login/open",De),__definePage("pages/login/loginPhone",Tn),__definePage("pages/shop/shop",fa),__definePage("pages/merchant/business-operator/index",za),__definePage("pages/merchant/order/index",Wa),__definePage("pages/merchant/commodity-release/index",$r),__definePage("pages/merchant/specifications/index",tc),__definePage("pages/shop/search/index",lc),__definePage("pages/shop/commodity/index",Pc),__definePage("pages/shop/continue-pay/index",xc),__definePage("pages/shop/store/index",Gc),__definePage("pages/shop/order/index",Hc),__definePage("pages/shop/sales/index",Zc),__definePage("pages/shop/refund/index",qc),__definePage("pages/shop/money-whereabouts/index",Xc),__definePage("pages/shop/after-sales/index",zc),__definePage("pages/shop/transaction-completed/index",Wc),__definePage("pages/shop/waiting-delivery/index",Qc),__definePage("pages/shop/logistics-state/index",$c),__definePage("pages/news/news",fl),__definePage("pages/news/group-chat-list/index",vl),__definePage("pages/news/group-chat/index",Il),__definePage("pages/news/question-answer/index",Ll),__definePage("pages/news/red-envelope/index",Al),__definePage("pages/mine/mine",xl),__definePage("pages/mine/set-up/index",Ul),__definePage("pages/mine/userinfo",Vl),__definePage("pages/mine/switch-accounts/index",Gl),__definePage("pages/mine/pay-use/index",Yl),__definePage("pages/mine/real-name-authentication/index",Hl),__definePage("pages/mine/delivery-address/index",eu),__definePage("pages/mine/balance/index",nu),__definePage("pages/mine/balance-details/index",au),__definePage("pages/mine/historical-browsing/index",ou),__definePage("pages/mine/browsed/index",su),__definePage("pages/mine/collection/index",cu),__definePage("pages/mine/target-store/index",uu),__definePage("pages/mine/coupon/index",du),__definePage("pages/mine/homepage",yu),__definePage("pages/release/video",Cu),__definePage("pages/index/wallet",ku),__definePage("pages/index/myTeam",Tu),__definePage("pages/index/search",Mu),__definePage("pages/index/videoHome",Nu),__definePage("pages/index/report",wu),__definePage("pages/mine/collectsVideo",bu),__definePage("pages/index/promotion",Lu),__definePage("pages/index/myQrCode",Pu),__definePage("pages/index/deal",Ru),__definePage("pages/index/durian",Vu),__definePage("pages/index/durainActivation",Gu),__definePage("pages/index/trade",Fu),__definePage("pages/index/orchard",Yu),__definePage("pages/index/durianLog",Hu),__definePage("pages/index/pushVideo",Zu),__definePage("pages/login/register",qu),__definePage("pages/login/invite",ju),__definePage("pages/login/forget",Ju),__definePage("pages/login/retrieve",Xu),__definePage("pages/shop/settle",Ku),__definePage("pages/index/integral",Wu),__definePage("pages/index/integralLog",Qu),__definePage("pages/index/integralMall",$u),__definePage("pages/index/appeal",ed),__definePage("pages/index/beInvited",td),__definePage("pages/news/newFriend",nd),__definePage("pages/news/newAttention",ad),__definePage("pages/news/newFans",od),__definePage("pages/news/message",id),__definePage("pages/index/article",sd),__definePage("pages/index/topUp",rd),__definePage("pages/news/addFriend",cd),__definePage("pages/news/redPacket",ld),__definePage("pages/news/applyFriend",ud),__definePage("pages/news/myQr",md),__definePage("pages/mine/teen",hd),__definePage("pages/login/lock",gd),__definePage("pages/index/pushVideoCollects",fd),__definePage("TUIKit/components/TUIConversation/index",Nf),__definePage("TUIKit/components/TUIChat/index",lk),__definePage("TUIKit/components/TUIChat/video-play",uk),__definePage("TUIKit/components/TUIChat/web-view",dk),__definePage("TUIKit/components/TUIContact/index",bk),__definePage("TUIKit/components/TUIGroup/index",Kk),__definePage("TUIKit/components/TUISearch/index",ff);const zk={onLaunch(){this.init()},methods:{init(){Promise.all([this.getUserinfo(),this.getAlarm()]).then((e=>{Te.setAlarm(e[1])}))},getUserinfo:()=>new Promise(((e,t)=>{const n=uni.getStorageSync("token"),a=uni.getStorageSync("userinfo");n?(a&&ke.commit("setState",{key:"userinfo",value:a}),Te.getUserinfo((t=>{e(t),Te.loginTencent(t),Te.loginAccountManagement(t)}))):t()})),getAlarm:()=>new Promise(((e,t)=>{uni.getStorageSync("token")?Se.video.getAlarm().then((t=>{if(200==t.code){const n=t.data;if(!n)return;const a=n[n.length-1];if((new Date).getTime()>new Date(a.endTime).getTime())return;return g("log","at App.vue:69","current",a),void e(a)}})):t()}))}};class Wk{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 Qk={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"}}},$k="CHINA",eI={HOST:{CURRENT:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://events.im.qcloud.com"},setCurrent(e=$k){this.CURRENT=Qk.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 Wk(0,Math.pow(2,1)).toString(),new Wk(0,Math.pow(2,2)).toString(),new Wk(0,Math.pow(2,3)).toString(),new Wk(0,Math.pow(2,4)).toString(),new Wk(0,Math.pow(2,6)).toString(),new Wk(0,Math.pow(2,7)).toString(),new Wk(0,Math.pow(2,9)).toString(),new Wk(0,Math.pow(2,10)).toString(),new Wk(0,Math.pow(2,11)).toString(),new Wk(0,Math.pow(2,13)).toString(),new Wk(0,Math.pow(2,15)).toString(),new Wk(Math.pow(2,6)).toString(),new Wk(Math.pow(2,7)).toString(),new Wk(Math.pow(2,8)).toString(),new Wk(Math.pow(2,9)).toString(),new Wk(Math.pow(2,10)).toString(),new Wk(Math.pow(2,16)).toString(),new Wk(Math.pow(2,20)).toString();const tI=(eI.HOST.setCurrent($k),"undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting)),nI=(tI&&wx.createGamePortal,"undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting)),aI="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),oI="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),iI="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),sI="undefined"!=typeof jd&&"function"==typeof jd.getSystemInfoSync,rI="undefined"!=typeof uni&&"undefined"==typeof window&&!0;tI&&wx.miniapp;const cI=tI||nI||aI||oI||iI||rI||sI,lI="undefined"!=typeof global&&(void 0!==global.nativeModuleProxy||void 0!==global.ReactNative),uI="undefined"!=typeof uni?!cI:"undefined"!=typeof window&&!cI&&!lI,dI=(nI?qq:aI?tt:oI?swan:iI?my:tI?wx:rI?uni:sI&&jd,uI&&window&&window.navigator&&window.navigator.userAgent||"");let pI,mI;!function(){var e=dI.match(/OS (\d+)_/i);e&&e[1]&&e[1]}(),function(){var e,t,n=dI.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(dI)||-1{},EI.mount("#app")}(Vue);