@rongcloud/im-kit 5.36.0 → 5.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +46 -3
- package/dist/index.esm.js +7467 -7231
- package/dist/index.umd.js +138 -150
- package/package.json +3 -3
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Qv=Object.defineProperty;var Yv=(Oe,j,f)=>j in Oe?Qv(Oe,j,{enumerable:!0,configurable:!0,writable:!0,value:f}):Oe[j]=f;var K=(Oe,j,f)=>(Yv(Oe,typeof j!="symbol"?j+"":j,f),f),yc=(Oe,j,f)=>{if(!j.has(Oe))throw TypeError("Cannot "+f)};var Cn=(Oe,j,f)=>(yc(Oe,j,"read from private field"),f?f.call(Oe):j.get(Oe)),Qi=(Oe,j,f)=>{if(j.has(Oe))throw TypeError("Cannot add the same private member more than once");j instanceof WeakSet?j.add(Oe):j.set(Oe,f)},Zr=(Oe,j,f,gi)=>(yc(Oe,j,"write to private field"),gi?gi.call(Oe,f):j.set(Oe,f),f);var q0=(Oe,j,f)=>(yc(Oe,j,"access private method"),f);(function(Oe,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("@rongcloud/engine"),require("@rongcloud/imlib-next")):typeof define=="function"&&define.amd?define(["exports","@rongcloud/engine","@rongcloud/imlib-next"],j):(Oe=typeof globalThis<"u"?globalThis:Oe||self,j(Oe.RongIMKit={},Oe.RCEngine,Oe.RongIMLib))})(this,function(Oe,j,f){var jr,fi,hi,Kr,ma,Z0;"use strict";const gi=e=>{let t;if(typeof e=="object"&&e!==null)if(Array.isArray(e)){t=[];for(let s in e)t.push(gi(e[s]))}else{t={};for(let s in e)t[s]=gi(e[s])}else t=e;return t},W0=e=>{let t;try{t=gi(e)}catch{t=JSON.parse(JSON.stringify(e))}return t},Ca=e=>JSON.parse(JSON.stringify(e));function Sc(e){let t=!1;const s=()=>e instanceof HTMLElement?e:e.value||null,n=a=>{a.preventDefault(),a.stopPropagation()},i=a=>{["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "].includes(a.key)&&(a.preventDefault(),a.stopPropagation())};return{disableScroll:()=>{if(t)return;t=!0;const a=s();a&&(a.addEventListener("wheel",n,{passive:!1}),a.addEventListener("touchmove",n,{passive:!1}),a.addEventListener("keydown",i,{passive:!1}))},enableScroll:()=>{if(!t)return;t=!1;const a=s();a&&(a.removeEventListener("wheel",n),a.removeEventListener("touchmove",n),a.removeEventListener("keydown",i))},get isScrollDisabled(){return t}}}function Vn(e){if(e==null)return"#000000";if(typeof e=="string"){const t=e.trim();return t.startsWith("#")?t.toLowerCase():`#${t.toLowerCase()}`}return`#${e.toString(16).padStart(6,"0")}`}const Q0=[f.ConversationType.PRIVATE,f.ConversationType.GROUP,f.ConversationType.SYSTEM],$n=e=>{if(!e)return!0;const{targetId:t,conversationType:s,channelId:n}=e;return!t||typeof t!="string"||Q0.indexOf(s)===-1||!!n&&typeof n!="string"},_t=(e,t)=>e.targetId===t.targetId&&e.conversationType===t.conversationType&&e.channelId===t.channelId,St=e=>`[${e.targetId}][${e.conversationType}][${e.channelId||""}]`,Tc=e=>e.conversationType===f.ConversationType.PRIVATE||e.conversationType===f.ConversationType.GROUP,Y0=function(e,t,s){const n=e<t,i=n?t/e:e/t;let r,o=0,a=0,l,c;const u=function(){return n?(r=e/100,l=100,c=t/r,a=(c-s.maxHeight)/2):(r=t/100,c=100,l=e/r,o=(l-s.maxWidth)/2),{w:l,h:c,x:-o,y:-a}},d=function(){return n?(r=t/s.maxHeight,c=s.maxHeight,l=e/r):(r=e/s.maxWidth,l=s.maxWidth,c=t/r),{w:l,h:c,x:-o,y:-a}};return i>s.scale?u():d()},Ic=e=>{const t=document.createElement("canvas"),s=t.getContext("2d"),n=160,i=160,r=2.4,o=Y0(e.width,e.height,{maxHeight:n,maxWidth:i,scale:r});t.width=Math.min(o.w,i),t.height=Math.min(o.h,n),s.drawImage(e,o.x,o.y,o.w,o.h);let a=t.toDataURL("image/png",.5);const l=/data:image\/[^;]+;base64,/;return a=a.replace(l,""),a},_i=e=>{e||(e=Date.now());const t=new Date(e),s=`${t.getFullYear()}`,n=`${t.getMonth()+1}`,i=`${t.getDate()}`,r=t.getDay();let o=`${t.getHours()}`;o.length<2&&(o=`0${o}`);let a=`${t.getMinutes()}`;return a.length<2&&(a=`0${a}`),{year:s,month:n,day:i,hour:o,minute:a,weekDay:r}},J0=e=>{const t=Math.floor(e/60),s=Math.floor(t/60),n=Math.floor(s/24);return e<60?`0:${e.toString().padStart(2,"0")}`:(e=Math.floor(e),`${n>0?`${n}d `:""}${s>0?`${(s%24).toString().padStart(2,"0").trim()}:`:""}${t>0?`${(t%60).toString().padStart(2,"0")}:`:""}${(e%60).toString().padStart(2,"0")}`.trim())},X0=e=>e<1024?e+" B":e<1024*1024?(e/1024).toFixed(2)+" KB":e<1024*1024*1024?(e/(1024*1024)).toFixed(2)+" MB":e<1024*1024*1024*1024?(e/(1024*1024*1024)).toFixed(2)+" GB":(e/(1024*1024*1024*1024)).toFixed(2)+" TB",ef=(e,t=40,s=8)=>{if(!e||e.length<=t)return e;const n=t-s-3;return n<=0?e:`${e.slice(0,n)}...${e.slice(-s)}`},tf=e=>new Promise(t=>{const s=document.createElement("video");let n=!1;const i=d=>{n||(n=!0,t(d))},r=()=>{s.pause(),s.src="",s.removeAttribute("src"),s.load()},o=URL.createObjectURL(e);let a=!1;const l=()=>{r(),URL.revokeObjectURL(o)},c=()=>{if(n)return;const{duration:d,videoHeight:h,videoWidth:p}=s;if(d>120){l(),i(null);return}if(!p||!h){l(),i(null);return}s.width=p,s.height=h;const _=Ic(s);l(),i(new f.SightMessage({name:e.name,size:e.size,duration:d,content:_,sightUrl:""}))},u=()=>{if(a)return;a=!0;const d=s;typeof d.requestVideoFrameCallback=="function"?d.requestVideoFrameCallback(()=>c()):requestAnimationFrame(()=>requestAnimationFrame(c))};s.onloadeddata=()=>{u()},s.onerror=()=>{l(),i(null)},s.playsInline=!0,s.muted=!0,s.preload="auto",s.src=o,s.play()}),sf=e=>new Promise(t=>{const s=new Image,n=URL.createObjectURL(e);s.onload=()=>t(new f.GIFMessage({gifDataSize:e.size,remoteUrl:n,width:s.width,height:s.height})),s.onerror=i=>{URL.revokeObjectURL(n),t(null)},s.src=n}),nf=e=>new Promise(t=>{const s=new Image,n=URL.createObjectURL(e);s.onload=()=>{const i=Ic(s);t(new f.ImageMessage({content:i,imageUri:n}))},s.onerror=()=>{t(null),URL.revokeObjectURL(n)},s.src=n}),wc=async e=>{let t=null;switch(e.type){case"video/mp4":t=await tf(e);break;case"image/gif":e.size<2*1024*1024&&(t=await sf(e));break;case"image/jpeg":case"image/jpg":case"image/png":e.size<100*1024*1024&&(t=await nf(e));break}return t||new f.FileMessage({name:e.name,size:e.size,type:e.type,fileUrl:""})},Rc=e=>e?/data:image\/[^;]+;base64,/.test(e)?e:`data:image/png;base64,${e}`:void 0,mi=e=>({...e,transactionId:NaN,progress:100,file:void 0}),rf=e=>{const t="(?:(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)",s="(?!@)(?:[a-z0-9-@_]{1,36}\\.)+[a-z]{2,6}",n="(?:\\:\\d{1,5})?",i="(?:localhost)",r="(?:(?:/[a-zA-Z0-9.,;?\\'+&%$#=~_\\-!()*\\|\\/]*)?)",o=new RegExp("(((https?)://(?:("+t+")|("+s+")|"+i+")"+n+r+"))","ig"),a=e.match(o),l=new RegExp("([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+.[a-zA-Z0-9_-]+)","ig"),c=e.match(l),u=[];if(a==null||a.forEach(_=>{u.push({type:"url",val:_,index:e.indexOf(_,0)})}),c==null||c.forEach(_=>{u.push({type:"mail",val:_,index:e.indexOf(_,0)})}),u.length<=0)return{type:0,content:[{content:e,type:"text"}],position:[]};const d=[];let h=0;const p=[];return u.sort((_,m)=>_.index-m.index),u.forEach(_=>{const m=e.indexOf(_.val,h);m>h&&d.push({content:e.substring(h,m),type:"text"}),d.push({content:_.val,type:_.type}),p.push(d.length),h=m+_.val.length}),h<e.length&&d.push({content:e.substring(h),type:"text"}),{type:1,content:d,position:p}};function yn(e,t){let s=e.length;for(let n=s-1;n>-1;n--)if(t(e[n]))return n;return-1}const ps=()=>typeof window<"u"&&window.innerWidth<=768;class ie{constructor(t,s){K(this,"_resolve",!1);K(this,"_promise");K(this,"_stopped",!1);K(this,"_defaultPrevented",!1);K(this,"data");this.type=t,this.data=s}isImmediatePropagationStopped(){return this._stopped}stopImmediatePropagation(){this._stopped=!0}isDefaultPrevented(){return this._defaultPrevented}preventDefault(){this._defaultPrevented=!0}sendResult(t){if(typeof this._resolve=="function"){this._resolve(t),this._resolve=!0;return}const s=this._resolve?"Cannot resubmit.":"There is no transaction waiting event result.";console.error(s,"event type:",this.type)}async awaitResult(){return this._promise||(this._promise=new Promise(t=>{this._resolve=t})),this._promise}clone(t){const s=new ie(this.type,W0(this.data));return s.sendResult=this.sendResult.bind(this),s}}var Sn=(e=>(e[e.CANCEL=0]="CANCEL",e[e.CONFIRM=1]="CONFIRM",e))(Sn||{});class Yi extends ie{constructor(t,s){super("CONNECTION_STATUS_CHANGE",{status:t,code:s})}}var Fn=(e=>(e.SINGLE="single",e.MERGE="merge",e))(Fn||{}),Y=(e=>(e.USER_PROFILES_UPDATE="USER_PROFILES_UPDATE",e.GROUP_PROFILES_UPDATE="GROUP_PROFILES_UPDATE",e.GROUP_MEMBERS_UPDATE="GROUP_MEMBERS_UPDATE",e.INIT_USER_CACHE="INIT_USER_CACHE",e.DESTROY_USER_CACHE="DESTROY_USER_CACHE",e.SYSTEM_PROFILES_UPDATE="SYSTEM_PROFILES_UPDATE",e.CONVERSATION_ITEM_CHANGE="CONVERSATION_ITEM_CHANGE",e.CONVERSATION_LIST_RESET="CONVERSATION_LIST_RESET",e.CONVERSATION_ITEM_ORDER_CHANGE="CONVERSATION_ITEM_ORDER_CHANGE",e.CONVERSATIN_ITEM_REMOVE="CONVERSATIN_ITEM_REMOVE",e.MESSAGE_STATE_CHANGE="MESSAGE_STATE_CHANGE",e.INSERT_NEW_MESSAGES="INSERT_NEW_MESSAGES",e.FILE_UPLOAD_PROGRESS="FILE_UPLOAD_PROGRESS",e.LANGUAGE_CHANGE="LANGUAGE_CHANGE",e.AUDIO_PLAY_EVENT="AUDIO_PLAY_EVENT",e.SET_TEXTAREA_VALUE_EVENT="SET_TEXTAREA_VALUE_EVENT",e.ADJUST_MESSAGE_LIST_SCROLL="ADJUST_MESSAGE_LIST_SCROLL",e.SPEECH_TO_TEXT_STATE_CHANGE="SPEECH_TO_TEXT_STATE_CHANGE",e.RECV_NEW_MESSAGES="RECV_NEW_MESSAGES",e.CONNECTION_STATUS_CHANGE="CONNECTION_STATUS_CHANGE",e.CONVERSATION_BAR_SWITCH_CHANGE="CONVERSATION_BAR_SWITCH_CHANGE",e.CONVERSATION_DETAIL_BACK_SWITCH_CHANGE="CONVERSATION_DETAIL_BACK_SWITCH_CHANGE",e.CONVERSATION_BAR_TITLE_CHANGE="CONVERSATION_BAR_TITLE_CHANGE",e.TOAST_EVENT="TOAST_EVENT",e))(Y||{}),ge=(e=>(e.CONFIRM_EVENT="CONFIRM_EVENT",e.ALERT_EVENT="ALERT_EVENT",e.DELETE_MESSAGE_MODAL_EVENT="DELETE_MESSAGE_MODAL_EVENT",e.MEDIA_MESSAGE_MODAL_EVENT="MEDIA_MESSAGE_MODAL_EVENT",e.COMBINE_MESSAGE_MODAL_EVENT="COMBINE_MESSAGE_MODAL_EVENT",e.FORWARDING_EVENT="FORWARDING_EVENT",e.TAKE_PHOTO_MODAL_EVENT="TAKE_PHOTO_MODAL_EVENT",e.UNSCHEDULED_MESSAGES="UNSCHEDULED_MESSAGES",e.CONVERSATION_EXTENSION_CLICK="CONVERSATION_EXTENSION_CLICK",e.BEFORE_SYSTEM_CONVERSATION_OPEN="BEFORE_SYSTEM_CONVERSATION_OPEN",e.CONVERSATION_MENU_ITEM_CLICK="CONVERSATION_MENU_ITEM_CLICK",e.INPUT_MENU_ITEM_CLICK="INPUT_MENU_ITEM_CLICK",e.CONVERSATION_SELECTED="CONVERSATION_SELECTED",e.CONVERSATION_ICON_CLICK="CONVERSATION_ICON_CLICK",e.CONVERSATION_NAVI_CLICK="CONVERSATION_NAVI_CLICK",e.MESSAGE_MENU_ITEM_CLICK="MESSAGE_MENU_ITEM_CLICK",e.MESSAGE_LINK_CLICK="MESSAGE_LINK_CLICK",e.DOWNLOAD_LINK_EVENT="DOWNLOAD_LINK_EVENT",e.FILE_SEND_FAILED_EVENT="FILE_SEND_FAILED_EVENT",e.MESSAGES_DELETED="MESSAGES_DELETED",e.TOAST_EVENT="TOAST_EVENT",e))(ge||{});class Mc{constructor(){K(this,"_listeners",new Map)}addEventListener(t,s,n){const i=this._listeners.get(t);i?i.push({target:n,listener:s}):this._listeners.set(t,[{target:n,listener:s}])}onceEventListener(t,s,n){const i=this._listeners.get(t);i?i.push({target:n,listener:s,once:!0}):this._listeners.set(t,[{target:n,listener:s,once:!0}])}removeEventListener(t,s,n){const i=this._listeners.get(t);if(i){const r=i.findIndex(o=>o.listener===s&&o.target===n);r!==-1&&i.splice(r,1)}}removeEventListeners(t){this._listeners.delete(t)}removeAllEventListeners(){this._listeners.clear()}dispatchEvent(t,s=!0){s?setTimeout(()=>this._handleDispatchEvent(t),0):this._handleDispatchEvent(t)}_handleDispatchEvent(t){const s=t,n=this._listeners.get(s.type);if(!(!n||n.length===0))for(const{target:i,once:r,listener:o}of n){if(s.isImmediatePropagationStopped())return;try{o.call(i,s)}catch(a){console.error(a)}r&&this.removeEventListener(s.type,o,i)}}}var xt=(e=>(e.SHOW_CONNECTION_STATUS="SHOW_CONNECTION_STATUS",e.SHOW_MESSAGE_STATE="SHOW_MESSAGE_STATE",e.FOCUS_ON_LATEST_MESSAGE="FOCUS_ON_LATEST_MESSAGE",e.AT_ALL="AT_ALL",e.SHOW_USER_ONLINE_STATE="SHOW_USER_ONLINE_STATE",e.PROMPT_SENDER_WHEN_QUOTE_MESSAGE="PROMPT_SENDER_WHEN_QUOTE_MESSAGE",e.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION="DELETE_MESSAGES_WHILE_DELETE_CONVERSATION",e))(xt||{}),B=(e=>(e.D="L_DEBUG_O",e.A_INIT_O="A_INIT_O",e.A_SET_COMMAND_SWITCH_O="L_SET_COMMAND_SWITCH_O",e.A_REGISTER_CUSTOM_ELEMENT_O="A_REGISTER_CUSTOM_ELEMENT_O",e.L_REGISTER_DOM_ELEMENTS_O="L_REGISTER_DOM_ELEMENTS_O",e.A_REGISTER_MESSAGE_TYPE_O="A_REGISTER_MESSAGE_TYPE_O",e.A_SET_CUSTOM_SERVICE_O="A_SET_CUSTOM_SERVICE_O",e.A_SET_CUSTOM_LANGUAGE_PACK_O="A_SET_CUSTOM_LANGUAGE_PACK_O",e.A_CLONE_LANGUAGE_ENTRIES_O="A_CLONE_LANGUAGE_ENTRIES_O",e.A_REGISTER_LANGUAGE_PACK_O="A_REGISTER_LANGUAGE_PACK_O",e.A_SET_LANGUAGE_O="A_SET_LANGUAGE_O",e.A_READY_O="A_READY_O",e.L_REQ_USER_PROFILE_HOOK_T="L_REQ_USER_PROFILE_HOOK_T",e.L_REQ_USER_PROFILE_HOOK_R="L_REQ_USER_PROFILE_HOOK_R",e.L_REQ_USER_PROFILE_HOOK_E="L_REQ_USER_PROFILE_HOOK_E",e.L_GET_DEFAULT_USER_PROFILE_HOOK_E="L_GET_DEFAULT_USER_PROFILE_HOOK_E",e.L_GET_DEFAULT_USER_PROFILE_HOOK_O="L_GET_DEFAULT_USER_PROFILE_HOOK_O",e.A_UPDATE_USER_PROFILE_E="A_UPDATE_USER_PROFILE_E",e.A_UPDATE_USER_PROFILE_T="A_UPDATE_USER_PROFILE_T",e.A_UPDATE_USER_PROFILE_R="A_UPDATE_USER_PROFILE_R",e.A_UPDATE_USER_ONLINE_STATE_R="A_UPDATE_USER_ONLINE_STATE_R",e.A_UPDATE_USER_ONLINE_STATE_T="A_UPDATE_USER_ONLINE_STATE_T",e.L_GET_DEFAULT_GROUP_PROFILE_HOOK_O="L_GET_DEFAULT_GROUP_PROFILE_HOOK_O",e.L_GET_DEFAULT_GROUP_PROFILE_HOOK_E="L_GET_DEFAULT_GROUP_PROFILE_HOOK_E",e.L_REQ_GROUP_PROFILE_HOOK_T="L_REQ_GROUP_PROFILE_HOOK_T",e.L_REQ_GROUP_PROFILE_HOOK_E="L_REQ_GROUP_PROFILE_HOOK_E",e.L_REQ_GROUP_PROFILE_HOOK_R="L_REQ_GROUP_PROFILE_HOOK_R",e.A_UPDATE_GROUP_PROFILE_T="A_UPDATE_GROUP_PROFILE_T",e.A_UPDATE_GROUP_PROFILE_E="A_UPDATE_GROUP_PROFILE_E",e.A_UPDATE_GROUP_PROFILE_R="A_UPDATE_GROUP_PROFILE_R",e.L_REQ_GROUP_MEMBERS_HOOK_T="L_REQ_GROUP_MEMBERS_HOOK_T",e.L_REQ_GROUP_MEMBERS_HOOK_E="L_REQ_GROUP_MEMBERS_HOOK_E",e.L_REQ_GROUP_MEMBERS_HOOK_R="L_REQ_GROUP_MEMBERS_HOOK_R",e.A_UPDATE_GROUP_MEMBERS_T="A_UPDATE_GROUP_MEMBERS_T",e.A_UPDATE_GROUP_MEMBERS_E="A_UPDATE_GROUP_MEMBERS_E",e.A_UPDATE_GROUP_MEMBERS_R="A_UPDATE_GROUP_MEMBERS_R",e.A_ADD_GROUP_MEMBERS_T="A_ADD_GROUP_MEMBERS_T",e.A_ADD_GROUP_MEMBERS_E="A_ADD_GROUP_MEMBERS_E",e.A_ADD_GROUP_MEMBERS_R="A_ADD_GROUP_MEMBERS_R",e.A_REMOVE_GROUP_MEMBERS_T="A_REMOVE_GROUP_MEMBERS_T",e.A_REMOVE_GROUP_MEMBERS_E="A_REMOVE_GROUP_MEMBERS_E",e.A_REMOVE_GROUP_MEMBERS_R="A_REMOVE_GROUP_MEMBERS_R",e.L_REQ_USER_ONLINE_HOOK_T="L_REQ_USER_ONLINE_HOOK_T",e.L_REQ_USER_ONLINE_HOOK_E="L_REQ_USER_ONLINE_HOOK_E",e.L_REQ_USER_ONLINE_HOOK_R="L_REQ_USER_ONLINE_HOOK_R",e.L_REQ_SYSTEM_PROFILE_HOOK_T="L_REQ_SYSTEM_PROFILE_HOOK_T",e.L_REQ_SYSTEM_PROFILE_HOOK_E="L_REQ_SYSTEM_PROFILE_HOOK_E",e.L_REQ_SYSTEM_PROFILE_HOOK_R="L_REQ_SYSTEM_PROFILE_HOOK_R",e.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O="L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O",e.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E="L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E",e.L_GET_TAGS_FROM_LIB_E="L_GET_TAGS_FROM_LIB_E",e.A_ADD_UNVERIFIED_TAG_O="A_ADD_UNVERIFIED_TAG_O",e.A_ADD_UNVERIFIED_TAG_E="A_ADD_UNVERIFIED_TAG_E",e.A_ADD_TAG_E="A_ADD_TAG_E",e.A_UPDATE_TAG_E="A_UPDATE_TAG_E",e.A_REMOVE_TAG_E="A_REMOVE_TAG_E",e.A_SET_INPUT_MENU_E="A_SET_INPUT_MENU_E",e.A_SET_MESSAGE_BUBBLE_CFG_E="A_SET_MESSAGE_BUBBLE_CFG_E",e.A_SET_CONVERSATION_ITEM_CFG_E="A_SET_CONVERSATION_ITEM_CFG_E",e.A_UPDATE_USER_ONLINE_STATE_E="A_UPDATE_USER_ONLINE_STATE_E",e.A_OPEN_CONVERSATION_E="A_OPEN_CONVERSATION_E",e.A_REMOVE_CONVERSATION_E="A_REMOVE_CONVERSATION_E",e.A_SEND_MESSAGE_E="A_SEND_MESSAGE_E",e.A_INSERT_MESSAGE_E="A_INSERT_MESSAGE_E",e.A_SET_CONVERSATION_EXTENSION_E="A_SET_CONVERSATION_EXTENSION_E",e.L_PUSH_2_QUEUE_O="L_PUSH_2_QUEUE_O",e.L_TASK_QUEUE_EXECUTE_O="L_PICK_ITEM_FROM_QUEUE_O",e.L_SEND_MSG_T="L_SEND_MSG_T",e.L_SEND_MSG_R="L_SEND_MSG_R",e.L_UPLOAD_FILE_T="L_UPLOAD_FILE_T",e.L_UPLOAD_FILE_R="L_UPLOAD_FILE_R",e.L_UPLOAD_FILE_O="L_UPLOAD_FILE_O",e.A_SET_CHAT_EMOJI_LIBRARY_E="A_SET_CHAT_EMOJI_LIBRARY_E",e.L_GET_PUSH_CONFIG_HOOK_E="L_GET_PUSH_CONFIG_HOOK_E",e.L_SET_RECALL_DURATION_E="L_SET_RECALL_DURATION_E",e.L_SEND_READ_RECEIPT_MESSAGEV4_T="L_SEND_READ_RECEIPT_MESSAGEV4_T",e.L_SEND_READ_RECEIPT_MESSAGEV4_R="L_SEND_READ_RECEIPT_MESSAGEV4_R",e.L_PARSE_CONVERSATION_E="L_PARSE_CONVERSATION_E",e.L_GET_CONVERSATION_E="L_GET_CONVERSATION_E",e.L_V5_RECEIPT_RESPONSE_E="L_V5_RECEIPT_RESPONSE_E",e.L_HANDLE_READ_RECEIPT_V5_E="L_HANDLE_READ_RECEIPT_V5_E",e.L_GET_READ_RECEIPT_INFO_V5_E="L_GET_READ_RECEIPT_INFO_V5_E",e.L_V5_RECEIPT_RESPONSE_O="L_V5_RECEIPT_RESPONSE_O",e.L_SEND_V5_RECEIPT_T="L_SEND_V5_RECEIPT_T",e.L_SEND_V5_RECEIPT_R="L_SEND_V5_RECEIPT_R",e.L_SEND_V5_RECEIPT_O="L_SEND_V5_RECEIPT_O",e.L_SEND_V5_RECEIPT_E="L_SEND_V5_RECEIPT_E",e.L_STT_REQUEST_T="L_STT_REQUEST_T",e.L_STT_REQUEST_R="L_STT_REQUEST_R",e.L_STT_REQUEST_E="L_STT_REQUEST_E",e.L_STT_RESPONSE_O="L_STT_RESPONSE_O",e.L_STT_RESPONSE_R="L_STT_RESPONSE_R",e.L_STT_RESPONSE_E="L_STT_RESPONSE_E",e))(B||{});class of{constructor(t){K(this,"_commands",new Map);K(this,"_conversationBarTitle");K(this,"_conversationBarSwitch",!0);K(this,"_conversationDetailBackSwitch",!0);K(this,"_extensions",[]);K(this,"_pushConfigHook");this.logger=t,this._init()}_init(){this._commands.set(xt.SHOW_CONNECTION_STATUS,!0),this._commands.set(xt.SHOW_MESSAGE_STATE,!1),this._commands.set(xt.FOCUS_ON_LATEST_MESSAGE,!0),this._commands.set(xt.AT_ALL,!1),this._commands.set(xt.SHOW_USER_ONLINE_STATE,!1),this._commands.set(xt.PROMPT_SENDER_WHEN_QUOTE_MESSAGE,!1),this._commands.set(xt.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION,!0)}setCommandSwitch(t,s){this.logger.info(B.A_SET_COMMAND_SWITCH_O,`command: ${t}, enable: ${!!s}`),this._commands.set(t,!!s)}getCommandSwitch(t){return!!this._commands.get(t)}setConversationBarTitle(t){this._conversationBarSwitch&&(this._conversationBarTitle=t)}setConversationBarSwitch(t){this._conversationBarSwitch=t}setConversationDetailBackSwitch(t){this._conversationDetailBackSwitch=t}getConversationBarSwitch(){return this._conversationBarSwitch}getConversationDetailBackSwitch(){return this._conversationDetailBackSwitch}getConversationBarTitle(){return this._conversationBarTitle}getConversationExtension(){return this._extensions}setConversationExtension(t){this._extensions.splice(0,this._extensions.length,...t)}setPushConfigHook(t){this._pushConfigHook=t}getPushConfig(t){if(!this._pushConfigHook)return;let s;try{s=this._pushConfigHook({...t})}catch(n){this.logger.error(B.L_GET_PUSH_CONFIG_HOOK_E,JSON.stringify({messageType:t.messageType,error:n==null?void 0:n.message})),console.error(n)}return s}destroy(){this._commands.clear()}}let ya;const af=e=>(ya||(ya={set:(t,s)=>{e.localStorage.setItem(t,JSON.stringify(s))},get:t=>{let s;try{s=JSON.parse(e.localStorage.getItem(t))}catch{s=null}return s},remove:t=>e.localStorage.removeItem(t),getKeys:()=>{const t=[];for(const s in e.localStorage)t.push(s);return t}}),ya);class lf{constructor(t){K(this,"_caches",{});t&&(this._caches=t)}set(t,s){this._caches[t]=s}remove(t){const s=this.get(t);return delete this._caches[t],s}get(t){return this._caches[t]}getKeys(){const t=[];for(const s in this._caches)t.push(s);return t}}class cf{constructor(t,s){K(this,"_cache");K(this,"_storageKey");K(this,"_rootStorage");this._rootStorage=af(t);const n=this._rootStorage.get(s)||{};this._cache=new lf({[s]:n}),this._storageKey=s}_get(){const t=this._storageKey;return this._cache.get(t)||{}}_set(t){const s=this._storageKey;t=t||{},this._cache.set(s,t),this._rootStorage.set(s,t)}set(t,s){const n=this._get();n[t]=s,this._set(n)}remove(t){const s=this._get();delete s[t],this._set(s)}clear(){const t=this._storageKey;this._rootStorage.remove(t),this._cache.remove(t)}get(t){return this._get()[t]}getKeys(){const t=this._get(),s=[];for(const n in t)s.push(n);return s}getValues(){return this._get()||{}}}const uf=(e,t)=>`im-kit-${e}-${t}`,Ji={lrt:{keyName:"lastReadTime",defaultVal:0},srrt:{keyName:"sendReadReceiptTime",defaultVal:0}},Oc={};for(const e in Ji){const{keyName:t}=Ji[e];Oc[t]=e}class df{constructor(t,s,n,i){K(this,"_localStore");this.logger=i,this._localStore=new cf(t,uf(s,n))}_getStoreKey(t,s,n){return`${n}_${t}_${s}`}get(t,s,n=""){const i=this._getStoreKey(t,s,n),r=this._localStore.get(i)||{},o={};for(const a in Ji){const{keyName:l,defaultVal:c}=Ji[a];o[l]=r[a]||Ca(c)}return o}set(t,s,n,i){const r=this._getStoreKey(t,s,i),o=this._localStore.get(r)||{};for(const a in n){const l=Oc[a],c=n[a];if(j.isUndefined(l)||j.isUndefined(c))continue;const{defaultVal:u}=Ji[l];c===u?delete o[l]:o[l]=c}if(j.notEmptyObject(o)){this._localStore.set(r,o);return}this._localStore.remove(r)}remove(t,s,n){const i=this._getStoreKey(t,s,n);this._localStore.remove(i)}}class Ss{constructor(t){K(this,"logger");K(this,"store");this.ctx=t,this.logger=t.logger,this.store=t.store,this.ctx.addEventListener(Y.DESTROY_USER_CACHE,this._onDestroyUserCache,this),this.ctx.addEventListener(Y.INIT_USER_CACHE,this._onInitUserCache,this),this._onInit()}_onInit(){}}class Sa{constructor(t,s,n){K(this,"_cache",new Map);K(this,"logger");K(this,"store");K(this,"_requesting",new Map);K(this,"_waitingList",new Set);K(this,"_waitingPromise");this._ctx=t,this._hook=s,this._defaultHook=n,this.logger=t.logger,this.store=t.store}async _push2Waiting(t){this._waitingPromise?t.forEach(s=>this._waitingList.add(s)):(this._waitingList=new Set(t),this._waitingPromise=new Promise(s=>{setTimeout(()=>{const n=[...this._waitingList];this._waitingList.clear(),this._request(n),this._waitingPromise=void 0,s()},200)})),await this._waitingPromise,await Promise.all(t.map(s=>this._requesting.get(s)))}async _request(t){const s=this.logger.createTraceId();let n;try{this.logger.info(this.ReqStartTag,t.join(","),s),n=this._hook(t),t.forEach(a=>{this._requesting.set(a,n)})}catch(a){this.logger.error(this.ReqFailedTag,a.message,s);return}const i=await n;if(!(i instanceof Array)){this.logger.error(this.ReqFailedTag,"result must be a Array",s);return}const r=[],o=i.filter((a,l)=>{const c=!this._isInvalid(a);if(!c)this.logger.warn(this.ReqFailedTag,`invalid value in position ${l}`,s),console.error(`invalid value in position ${l}: `,a);else{const{cached:u,changed:d}=this._checkAndUpdateCacheData(a);d&&r.push(u)}return c});r.length>0&&this._dispatchUpdateEvent(r),this.logger.info(this.ReqSuccessTag,`valid value length: ${o.length}`,s)}async reqData(t,s=!1){if(t.length===0)return[];const n=s?t.slice():t.filter(o=>{const a=this._cache.get(o);return!a||a.usingDefault});if(n.length===0)return this.getCache(t,!0);const i=[],r=[];return n.forEach(o=>{const a=this._requesting.get(o);a?i.includes(a)||i.push(a):r.push(o)}),r.length>0&&i.push(this._push2Waiting(r)),i.length>0&&await Promise.all(i),this.getCache(t,!0)}getCache(t,s){if(t.length===0)return[];const n=[],i=t.map(r=>{const o=this._cache.get(r);if(o)return o.usingDefault&&n.push(r),o;n.push(r);const a=this._getDefaultCache(r);return this._cache.set(r,a),a});return!s&&n.length>0&&this.reqData(n,!0),i}_getDefaultCache(t){let s;if(this._defaultHook){this.logger.info(this.GetDefaultTag,`id: ${t}`);try{s=this._defaultHook(t)}catch(i){this.logger.error(this.GetDefaultErrorTag,i.message)}s&&this._isInvalid(s)&&(this.logger.error(this.GetDefaultErrorTag,`id: ${t}`),s=void 0)}return this._createDefaultCache(t,s)}clear(){this._cache.clear()}}const ff=`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1
|
+
var Uv=Object.defineProperty;var Nv=(Oe,j,f)=>j in Oe?Uv(Oe,j,{enumerable:!0,configurable:!0,writable:!0,value:f}):Oe[j]=f;var q=(Oe,j,f)=>(Nv(Oe,typeof j!="symbol"?j+"":j,f),f),Rc=(Oe,j,f)=>{if(!j.has(Oe))throw TypeError("Cannot "+f)};var yn=(Oe,j,f)=>(Rc(Oe,j,"read from private field"),f?f.call(Oe):j.get(Oe)),Zi=(Oe,j,f)=>{if(j.has(Oe))throw TypeError("Cannot add the same private member more than once");j instanceof WeakSet?j.add(Oe):j.set(Oe,f)},Yo=(Oe,j,f,it)=>(Rc(Oe,j,"write to private field"),it?it.call(Oe,f):j.set(Oe,f),f);var J2=(Oe,j,f)=>(Rc(Oe,j,"access private method"),f);(function(Oe,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("@rongcloud/engine"),require("@rongcloud/imlib-next")):typeof define=="function"&&define.amd?define(["exports","@rongcloud/engine","@rongcloud/imlib-next"],j):(Oe=typeof globalThis<"u"?globalThis:Oe||self,j(Oe.RongIMKit={},Oe.RCEngine,Oe.RongIMLib))})(this,function(Oe,j,f){var Ko,hi,pi,zo,ya,X2;"use strict";var it=(e=>(e[e.LOADING=0]="LOADING",e[e.DELETED=f.QuoteMessageStatus.DELETED]="DELETED",e[e.RECALLED=f.QuoteMessageStatus.RECALLED]="RECALLED",e[e.LOAD_ERROR=4]="LOAD_ERROR",e[e.LOADED=5]="LOADED",e))(it||{});const Ia=e=>{let t;if(typeof e=="object"&&e!==null)if(Array.isArray(e)){t=[];for(let s in e)t.push(Ia(e[s]))}else{t={};for(let s in e)t[s]=Ia(e[s])}else t=e;return t},eh=e=>{let t;try{t=Ia(e)}catch{t=JSON.parse(JSON.stringify(e))}return t},Ra=e=>JSON.parse(JSON.stringify(e));function wc(e){let t=!1;const s=()=>e instanceof HTMLElement?e:e.value||null,n=a=>{a.preventDefault(),a.stopPropagation()},i=a=>{["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "].includes(a.key)&&(a.preventDefault(),a.stopPropagation())};return{disableScroll:()=>{if(t)return;t=!0;const a=s();a&&(a.addEventListener("wheel",n,{passive:!1}),a.addEventListener("touchmove",n,{passive:!1}),a.addEventListener("keydown",i,{passive:!1}))},enableScroll:()=>{if(!t)return;t=!1;const a=s();a&&(a.removeEventListener("wheel",n),a.removeEventListener("touchmove",n),a.removeEventListener("keydown",i))},get isScrollDisabled(){return t}}}function Fn(e){if(e==null)return"#000000";if(typeof e=="string"){const t=e.trim();return t.startsWith("#")?t.toLowerCase():`#${t.toLowerCase()}`}return`#${e.toString(16).padStart(6,"0")}`}const th=[f.ConversationType.PRIVATE,f.ConversationType.GROUP,f.ConversationType.SYSTEM],$n=e=>{if(!e)return!0;const{targetId:t,conversationType:s,channelId:n}=e;return!t||typeof t!="string"||th.indexOf(s)===-1||!!n&&typeof n!="string"},Et=(e,t)=>e.targetId===t.targetId&&e.conversationType===t.conversationType&&e.channelId===t.channelId,vt=e=>`[${e.targetId}][${e.conversationType}][${e.channelId||""}]`,Mc=e=>e.conversationType===f.ConversationType.PRIVATE||e.conversationType===f.ConversationType.GROUP,sh=function(e,t,s){const n=e<t,i=n?t/e:e/t;let o,r=0,a=0,l,c;const u=function(){return n?(o=e/100,l=100,c=t/o,a=(c-s.maxHeight)/2):(o=t/100,c=100,l=e/o,r=(l-s.maxWidth)/2),{w:l,h:c,x:-r,y:-a}},d=function(){return n?(o=t/s.maxHeight,c=s.maxHeight,l=e/o):(o=e/s.maxWidth,l=s.maxWidth,c=t/o),{w:l,h:c,x:-r,y:-a}};return i>s.scale?u():d()},Oc=e=>{const t=document.createElement("canvas"),s=t.getContext("2d"),n=160,i=160,o=2.4,r=sh(e.width,e.height,{maxHeight:n,maxWidth:i,scale:o});t.width=Math.min(r.w,i),t.height=Math.min(r.h,n),s.drawImage(e,r.x,r.y,r.w,r.h);let a=t.toDataURL("image/png",.5);const l=/data:image\/[^;]+;base64,/;return a=a.replace(l,""),a},gi=e=>{e||(e=Date.now());const t=new Date(e),s=`${t.getFullYear()}`,n=`${t.getMonth()+1}`,i=`${t.getDate()}`,o=t.getDay();let r=`${t.getHours()}`;r.length<2&&(r=`0${r}`);let a=`${t.getMinutes()}`;return a.length<2&&(a=`0${a}`),{year:s,month:n,day:i,hour:r,minute:a,weekDay:o}},nh=e=>{const t=Math.floor(e/60),s=Math.floor(t/60),n=Math.floor(s/24);return e<60?`0:${e.toString().padStart(2,"0")}`:(e=Math.floor(e),`${n>0?`${n}d `:""}${s>0?`${(s%24).toString().padStart(2,"0").trim()}:`:""}${t>0?`${(t%60).toString().padStart(2,"0")}:`:""}${(e%60).toString().padStart(2,"0")}`.trim())},ih=e=>e<1024?e+" B":e<1024*1024?(e/1024).toFixed(2)+" KB":e<1024*1024*1024?(e/(1024*1024)).toFixed(2)+" MB":e<1024*1024*1024*1024?(e/(1024*1024*1024)).toFixed(2)+" GB":(e/(1024*1024*1024*1024)).toFixed(2)+" TB",oh=(e,t=40,s=8)=>{if(!e||e.length<=t)return e;const n=t-s-3;return n<=0?e:`${e.slice(0,n)}...${e.slice(-s)}`},rh=e=>new Promise(t=>{const s=document.createElement("video");let n=!1;const i=d=>{n||(n=!0,t(d))},o=()=>{s.pause(),s.src="",s.removeAttribute("src"),s.load()},r=URL.createObjectURL(e);let a=!1;const l=()=>{o(),URL.revokeObjectURL(r)},c=()=>{if(n)return;const{duration:d,videoHeight:h,videoWidth:p}=s;if(d>120){l(),i(null);return}if(!p||!h){l(),i(null);return}s.width=p,s.height=h;const _=Oc(s);l(),i(new f.SightMessage({name:e.name,size:e.size,duration:d,content:_,sightUrl:""}))},u=()=>{if(a)return;a=!0;const d=s;typeof d.requestVideoFrameCallback=="function"?d.requestVideoFrameCallback(()=>c()):requestAnimationFrame(()=>requestAnimationFrame(c))};s.onloadeddata=()=>{u()},s.onerror=()=>{l(),i(null)},s.playsInline=!0,s.muted=!0,s.preload="auto",s.src=r,s.play()}),ah=e=>new Promise(t=>{const s=new Image,n=URL.createObjectURL(e);s.onload=()=>t(new f.GIFMessage({gifDataSize:e.size,remoteUrl:n,width:s.width,height:s.height})),s.onerror=i=>{URL.revokeObjectURL(n),t(null)},s.src=n}),lh=e=>new Promise(t=>{const s=new Image,n=URL.createObjectURL(e);s.onload=()=>{const i=Oc(s);t(new f.ImageMessage({content:i,imageUri:n}))},s.onerror=()=>{t(null),URL.revokeObjectURL(n)},s.src=n}),ch=async e=>{let t=null;switch(e.type){case"video/mp4":t=await rh(e);break;case"image/gif":e.size<2*1024*1024&&(t=await ah(e));break;case"image/jpeg":case"image/jpg":case"image/png":e.size<100*1024*1024&&(t=await lh(e));break}return t||new f.FileMessage({name:e.name,size:e.size,type:e.type,fileUrl:""})},uh=e=>e?/data:image\/[^;]+;base64,/.test(e)?e:`data:image/png;base64,${e}`:void 0,bc=e=>{const t=e.quoteMessageStatus===f.QuoteMessageStatus.DELETED||e.quoteMessageStatus===f.QuoteMessageStatus.RECALLED?e.quoteMessageStatus:it.LOADING;return{...e,status:t}},Lc=(e,t,s)=>{const{objName:n,referMsgUid:i,referMsgUserId:o,referMsgStatus:r,referMsg:a}=e;let l,c;switch(r){case f.ReferenceMessageStatus.DELETE:l=f.QuoteMessageStatus.DELETED,c=it.DELETED;break;case f.ReferenceMessageStatus.RECALLED:l=f.QuoteMessageStatus.RECALLED,c=it.RECALLED;break;default:l=f.QuoteMessageStatus.DELETED,c=it.LOADED;break}let u;return c===it.LOADED&&(u={...t,senderUserId:o,content:a,messageType:n,messageUId:i,messageDirection:s}),{objectName:n,senderId:o,messageUId:i,quoteMessageStatus:l,status:c,quoteMessage:u}},_i=e=>{const{quoteInfo:t,content:s,messageDirection:n,senderUserId:i,...o}=e,r={...o,content:s,messageDirection:n,senderUserId:i,transactionId:NaN,progress:100};if(r.messageType===f.MessageType.REFERENCE){const{referMsgUserId:a}=s,l=i===a?n:2-(n-1);r.quoteInfo=Lc(s,e,l)}else t&&(r.quoteInfo=bc(t));return r},dh=e=>{const t="(?:(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)",s="(?!@)(?:[a-z0-9-@_]{1,36}\\.)+[a-z]{2,6}",n="(?:\\:\\d{1,5})?",i="(?:localhost)",o="(?:(?:/[a-zA-Z0-9.,;?\\'+&%$#=~_\\-!()*\\|\\/]*)?)",r=new RegExp("(((https?)://(?:("+t+")|("+s+")|"+i+")"+n+o+"))","ig"),a=e.match(r),l=new RegExp("([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+.[a-zA-Z0-9_-]+)","ig"),c=e.match(l),u=[];if(a==null||a.forEach(_=>{u.push({type:"url",val:_,index:e.indexOf(_,0)})}),c==null||c.forEach(_=>{u.push({type:"mail",val:_,index:e.indexOf(_,0)})}),u.length<=0)return{type:0,content:[{content:e,type:"text"}],position:[]};const d=[];let h=0;const p=[];return u.sort((_,m)=>_.index-m.index),u.forEach(_=>{const m=e.indexOf(_.val,h);m>h&&d.push({content:e.substring(h,m),type:"text"}),d.push({content:_.val,type:_.type}),p.push(d.length),h=m+_.val.length}),h<e.length&&d.push({content:e.substring(h),type:"text"}),{type:1,content:d,position:p}};function Sn(e,t){let s=e.length;for(let n=s-1;n>-1;n--)if(t(e[n]))return n;return-1}const gs=()=>typeof window<"u"&&window.innerWidth<=768;class ne{constructor(t,s){q(this,"_resolve",!1);q(this,"_promise");q(this,"_stopped",!1);q(this,"_defaultPrevented",!1);q(this,"data");this.type=t,this.data=s}isImmediatePropagationStopped(){return this._stopped}stopImmediatePropagation(){this._stopped=!0}isDefaultPrevented(){return this._defaultPrevented}preventDefault(){this._defaultPrevented=!0}sendResult(t){if(typeof this._resolve=="function"){this._resolve(t),this._resolve=!0;return}const s=this._resolve?"Cannot resubmit.":"There is no transaction waiting event result.";console.error(s,"event type:",this.type)}async awaitResult(){return this._promise||(this._promise=new Promise(t=>{this._resolve=t})),this._promise}clone(t){const s=new ne(this.type,eh(this.data));return s.sendResult=this.sendResult.bind(this),s}}var Tn=(e=>(e[e.CANCEL=0]="CANCEL",e[e.CONFIRM=1]="CONFIRM",e))(Tn||{});class Yi extends ne{constructor(t,s){super("CONNECTION_STATUS_CHANGE",{status:t,code:s})}}var Hn=(e=>(e.SINGLE="single",e.MERGE="merge",e))(Hn||{}),Z=(e=>(e.USER_PROFILES_UPDATE="USER_PROFILES_UPDATE",e.GROUP_PROFILES_UPDATE="GROUP_PROFILES_UPDATE",e.GROUP_MEMBERS_UPDATE="GROUP_MEMBERS_UPDATE",e.INIT_USER_CACHE="INIT_USER_CACHE",e.DESTROY_USER_CACHE="DESTROY_USER_CACHE",e.SYSTEM_PROFILES_UPDATE="SYSTEM_PROFILES_UPDATE",e.CONVERSATION_ITEM_CHANGE="CONVERSATION_ITEM_CHANGE",e.CONVERSATION_LIST_RESET="CONVERSATION_LIST_RESET",e.CONVERSATION_ITEM_ORDER_CHANGE="CONVERSATION_ITEM_ORDER_CHANGE",e.CONVERSATIN_ITEM_REMOVE="CONVERSATIN_ITEM_REMOVE",e.MESSAGE_STATE_CHANGE="MESSAGE_STATE_CHANGE",e.INSERT_NEW_MESSAGES="INSERT_NEW_MESSAGES",e.FILE_UPLOAD_PROGRESS="FILE_UPLOAD_PROGRESS",e.LANGUAGE_CHANGE="LANGUAGE_CHANGE",e.AUDIO_PLAY_EVENT="AUDIO_PLAY_EVENT",e.SET_TEXTAREA_VALUE_EVENT="SET_TEXTAREA_VALUE_EVENT",e.ADJUST_MESSAGE_LIST_SCROLL="ADJUST_MESSAGE_LIST_SCROLL",e.SPEECH_TO_TEXT_STATE_CHANGE="SPEECH_TO_TEXT_STATE_CHANGE",e.RECV_NEW_MESSAGES="RECV_NEW_MESSAGES",e.CONNECTION_STATUS_CHANGE="CONNECTION_STATUS_CHANGE",e.CONVERSATION_BAR_SWITCH_CHANGE="CONVERSATION_BAR_SWITCH_CHANGE",e.CONVERSATION_DETAIL_BACK_SWITCH_CHANGE="CONVERSATION_DETAIL_BACK_SWITCH_CHANGE",e.CONVERSATION_BAR_TITLE_CHANGE="CONVERSATION_BAR_TITLE_CHANGE",e.TOAST_EVENT="TOAST_EVENT",e))(Z||{}),ge=(e=>(e.CONFIRM_EVENT="CONFIRM_EVENT",e.ALERT_EVENT="ALERT_EVENT",e.DELETE_MESSAGE_MODAL_EVENT="DELETE_MESSAGE_MODAL_EVENT",e.MEDIA_MESSAGE_MODAL_EVENT="MEDIA_MESSAGE_MODAL_EVENT",e.COMBINE_MESSAGE_MODAL_EVENT="COMBINE_MESSAGE_MODAL_EVENT",e.FORWARDING_EVENT="FORWARDING_EVENT",e.TAKE_PHOTO_MODAL_EVENT="TAKE_PHOTO_MODAL_EVENT",e.UNSCHEDULED_MESSAGES="UNSCHEDULED_MESSAGES",e.CONVERSATION_EXTENSION_CLICK="CONVERSATION_EXTENSION_CLICK",e.BEFORE_SYSTEM_CONVERSATION_OPEN="BEFORE_SYSTEM_CONVERSATION_OPEN",e.CONVERSATION_MENU_ITEM_CLICK="CONVERSATION_MENU_ITEM_CLICK",e.INPUT_MENU_ITEM_CLICK="INPUT_MENU_ITEM_CLICK",e.CONVERSATION_SELECTED="CONVERSATION_SELECTED",e.CONVERSATION_ICON_CLICK="CONVERSATION_ICON_CLICK",e.CONVERSATION_NAVI_CLICK="CONVERSATION_NAVI_CLICK",e.MESSAGE_MENU_ITEM_CLICK="MESSAGE_MENU_ITEM_CLICK",e.MESSAGE_LINK_CLICK="MESSAGE_LINK_CLICK",e.DOWNLOAD_LINK_EVENT="DOWNLOAD_LINK_EVENT",e.FILE_SEND_FAILED_EVENT="FILE_SEND_FAILED_EVENT",e.MESSAGES_DELETED="MESSAGES_DELETED",e.TOAST_EVENT="TOAST_EVENT",e))(ge||{});class Ac{constructor(){q(this,"_listeners",new Map)}addEventListener(t,s,n){const i=this._listeners.get(t);i?i.push({target:n,listener:s}):this._listeners.set(t,[{target:n,listener:s}])}onceEventListener(t,s,n){const i=this._listeners.get(t);i?i.push({target:n,listener:s,once:!0}):this._listeners.set(t,[{target:n,listener:s,once:!0}])}removeEventListener(t,s,n){const i=this._listeners.get(t);if(i){const o=i.findIndex(r=>r.listener===s&&r.target===n);o!==-1&&i.splice(o,1)}}removeEventListeners(t){this._listeners.delete(t)}removeAllEventListeners(){this._listeners.clear()}dispatchEvent(t,s=!0){s?setTimeout(()=>this._handleDispatchEvent(t),0):this._handleDispatchEvent(t)}_handleDispatchEvent(t){const s=t,n=this._listeners.get(s.type);if(!(!n||n.length===0))for(const{target:i,once:o,listener:r}of n){if(s.isImmediatePropagationStopped())return;try{r.call(i,s)}catch(a){console.error(a)}o&&this.removeEventListener(s.type,r,i)}}}var It=(e=>(e.SHOW_CONNECTION_STATUS="SHOW_CONNECTION_STATUS",e.SHOW_MESSAGE_STATE="SHOW_MESSAGE_STATE",e.FOCUS_ON_LATEST_MESSAGE="FOCUS_ON_LATEST_MESSAGE",e.AT_ALL="AT_ALL",e.SHOW_USER_ONLINE_STATE="SHOW_USER_ONLINE_STATE",e.PROMPT_SENDER_WHEN_QUOTE_MESSAGE="PROMPT_SENDER_WHEN_QUOTE_MESSAGE",e.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION="DELETE_MESSAGES_WHILE_DELETE_CONVERSATION",e.USE_QUOTE_MESSAGE_V2="USE_QUOTE_MESSAGE_V2",e))(It||{}),B=(e=>(e.D="L_DEBUG_O",e.A_INIT_O="A_INIT_O",e.A_SET_COMMAND_SWITCH_O="L_SET_COMMAND_SWITCH_O",e.A_REGISTER_CUSTOM_ELEMENT_O="A_REGISTER_CUSTOM_ELEMENT_O",e.L_REGISTER_DOM_ELEMENTS_O="L_REGISTER_DOM_ELEMENTS_O",e.A_REGISTER_MESSAGE_TYPE_O="A_REGISTER_MESSAGE_TYPE_O",e.A_SET_CUSTOM_SERVICE_O="A_SET_CUSTOM_SERVICE_O",e.A_SET_CUSTOM_LANGUAGE_PACK_O="A_SET_CUSTOM_LANGUAGE_PACK_O",e.A_CLONE_LANGUAGE_ENTRIES_O="A_CLONE_LANGUAGE_ENTRIES_O",e.A_REGISTER_LANGUAGE_PACK_O="A_REGISTER_LANGUAGE_PACK_O",e.A_SET_LANGUAGE_O="A_SET_LANGUAGE_O",e.A_READY_O="A_READY_O",e.L_REQ_USER_PROFILE_HOOK_T="L_REQ_USER_PROFILE_HOOK_T",e.L_REQ_USER_PROFILE_HOOK_R="L_REQ_USER_PROFILE_HOOK_R",e.L_REQ_USER_PROFILE_HOOK_E="L_REQ_USER_PROFILE_HOOK_E",e.L_GET_DEFAULT_USER_PROFILE_HOOK_E="L_GET_DEFAULT_USER_PROFILE_HOOK_E",e.L_GET_DEFAULT_USER_PROFILE_HOOK_O="L_GET_DEFAULT_USER_PROFILE_HOOK_O",e.A_UPDATE_USER_PROFILE_E="A_UPDATE_USER_PROFILE_E",e.A_UPDATE_USER_PROFILE_T="A_UPDATE_USER_PROFILE_T",e.A_UPDATE_USER_PROFILE_R="A_UPDATE_USER_PROFILE_R",e.A_UPDATE_USER_ONLINE_STATE_R="A_UPDATE_USER_ONLINE_STATE_R",e.A_UPDATE_USER_ONLINE_STATE_T="A_UPDATE_USER_ONLINE_STATE_T",e.L_GET_DEFAULT_GROUP_PROFILE_HOOK_O="L_GET_DEFAULT_GROUP_PROFILE_HOOK_O",e.L_GET_DEFAULT_GROUP_PROFILE_HOOK_E="L_GET_DEFAULT_GROUP_PROFILE_HOOK_E",e.L_REQ_GROUP_PROFILE_HOOK_T="L_REQ_GROUP_PROFILE_HOOK_T",e.L_REQ_GROUP_PROFILE_HOOK_E="L_REQ_GROUP_PROFILE_HOOK_E",e.L_REQ_GROUP_PROFILE_HOOK_R="L_REQ_GROUP_PROFILE_HOOK_R",e.A_UPDATE_GROUP_PROFILE_T="A_UPDATE_GROUP_PROFILE_T",e.A_UPDATE_GROUP_PROFILE_E="A_UPDATE_GROUP_PROFILE_E",e.A_UPDATE_GROUP_PROFILE_R="A_UPDATE_GROUP_PROFILE_R",e.L_REQ_GROUP_MEMBERS_HOOK_T="L_REQ_GROUP_MEMBERS_HOOK_T",e.L_REQ_GROUP_MEMBERS_HOOK_E="L_REQ_GROUP_MEMBERS_HOOK_E",e.L_REQ_GROUP_MEMBERS_HOOK_R="L_REQ_GROUP_MEMBERS_HOOK_R",e.A_UPDATE_GROUP_MEMBERS_T="A_UPDATE_GROUP_MEMBERS_T",e.A_UPDATE_GROUP_MEMBERS_E="A_UPDATE_GROUP_MEMBERS_E",e.A_UPDATE_GROUP_MEMBERS_R="A_UPDATE_GROUP_MEMBERS_R",e.A_ADD_GROUP_MEMBERS_T="A_ADD_GROUP_MEMBERS_T",e.A_ADD_GROUP_MEMBERS_E="A_ADD_GROUP_MEMBERS_E",e.A_ADD_GROUP_MEMBERS_R="A_ADD_GROUP_MEMBERS_R",e.A_REMOVE_GROUP_MEMBERS_T="A_REMOVE_GROUP_MEMBERS_T",e.A_REMOVE_GROUP_MEMBERS_E="A_REMOVE_GROUP_MEMBERS_E",e.A_REMOVE_GROUP_MEMBERS_R="A_REMOVE_GROUP_MEMBERS_R",e.L_REQ_USER_ONLINE_HOOK_T="L_REQ_USER_ONLINE_HOOK_T",e.L_REQ_USER_ONLINE_HOOK_E="L_REQ_USER_ONLINE_HOOK_E",e.L_REQ_USER_ONLINE_HOOK_R="L_REQ_USER_ONLINE_HOOK_R",e.L_REQ_SYSTEM_PROFILE_HOOK_T="L_REQ_SYSTEM_PROFILE_HOOK_T",e.L_REQ_SYSTEM_PROFILE_HOOK_E="L_REQ_SYSTEM_PROFILE_HOOK_E",e.L_REQ_SYSTEM_PROFILE_HOOK_R="L_REQ_SYSTEM_PROFILE_HOOK_R",e.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O="L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O",e.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E="L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E",e.L_GET_TAGS_FROM_LIB_E="L_GET_TAGS_FROM_LIB_E",e.A_ADD_UNVERIFIED_TAG_O="A_ADD_UNVERIFIED_TAG_O",e.A_ADD_UNVERIFIED_TAG_E="A_ADD_UNVERIFIED_TAG_E",e.A_ADD_TAG_E="A_ADD_TAG_E",e.A_UPDATE_TAG_E="A_UPDATE_TAG_E",e.A_REMOVE_TAG_E="A_REMOVE_TAG_E",e.A_SET_INPUT_MENU_E="A_SET_INPUT_MENU_E",e.A_SET_MESSAGE_BUBBLE_CFG_E="A_SET_MESSAGE_BUBBLE_CFG_E",e.A_SET_CONVERSATION_ITEM_CFG_E="A_SET_CONVERSATION_ITEM_CFG_E",e.A_UPDATE_USER_ONLINE_STATE_E="A_UPDATE_USER_ONLINE_STATE_E",e.A_OPEN_CONVERSATION_E="A_OPEN_CONVERSATION_E",e.A_REMOVE_CONVERSATION_E="A_REMOVE_CONVERSATION_E",e.A_SEND_MESSAGE_E="A_SEND_MESSAGE_E",e.A_INSERT_MESSAGE_E="A_INSERT_MESSAGE_E",e.A_SET_CONVERSATION_EXTENSION_E="A_SET_CONVERSATION_EXTENSION_E",e.L_PUSH_2_QUEUE_O="L_PUSH_2_QUEUE_O",e.L_TASK_QUEUE_EXECUTE_O="L_PICK_ITEM_FROM_QUEUE_O",e.L_SEND_MSG_T="L_SEND_MSG_T",e.L_SEND_MSG_R="L_SEND_MSG_R",e.L_UPLOAD_FILE_T="L_UPLOAD_FILE_T",e.L_UPLOAD_FILE_R="L_UPLOAD_FILE_R",e.L_UPLOAD_FILE_O="L_UPLOAD_FILE_O",e.A_SET_CHAT_EMOJI_LIBRARY_E="A_SET_CHAT_EMOJI_LIBRARY_E",e.L_GET_PUSH_CONFIG_HOOK_E="L_GET_PUSH_CONFIG_HOOK_E",e.L_SET_RECALL_DURATION_E="L_SET_RECALL_DURATION_E",e.L_SEND_READ_RECEIPT_MESSAGEV4_T="L_SEND_READ_RECEIPT_MESSAGEV4_T",e.L_SEND_READ_RECEIPT_MESSAGEV4_R="L_SEND_READ_RECEIPT_MESSAGEV4_R",e.L_PARSE_CONVERSATION_E="L_PARSE_CONVERSATION_E",e.L_GET_CONVERSATION_E="L_GET_CONVERSATION_E",e.L_V5_RECEIPT_RESPONSE_E="L_V5_RECEIPT_RESPONSE_E",e.L_HANDLE_READ_RECEIPT_V5_E="L_HANDLE_READ_RECEIPT_V5_E",e.L_GET_READ_RECEIPT_INFO_V5_E="L_GET_READ_RECEIPT_INFO_V5_E",e.L_V5_RECEIPT_RESPONSE_O="L_V5_RECEIPT_RESPONSE_O",e.L_SEND_V5_RECEIPT_T="L_SEND_V5_RECEIPT_T",e.L_SEND_V5_RECEIPT_R="L_SEND_V5_RECEIPT_R",e.L_SEND_V5_RECEIPT_O="L_SEND_V5_RECEIPT_O",e.L_SEND_V5_RECEIPT_E="L_SEND_V5_RECEIPT_E",e.L_STT_REQUEST_T="L_STT_REQUEST_T",e.L_STT_REQUEST_R="L_STT_REQUEST_R",e.L_STT_REQUEST_E="L_STT_REQUEST_E",e.L_STT_RESPONSE_O="L_STT_RESPONSE_O",e.L_STT_RESPONSE_R="L_STT_RESPONSE_R",e.L_STT_RESPONSE_E="L_STT_RESPONSE_E",e.A_SET_QUOTE_ENABLE_MESSAGE_TYPE_LIST_O="A_SET_QUOTE_ENABLE_MESSAGE_TYPE_LIST_O",e))(B||{});class fh{constructor(t){q(this,"_commands",new Map);q(this,"_conversationBarTitle");q(this,"_conversationBarSwitch",!0);q(this,"_conversationDetailBackSwitch",!0);q(this,"_extensions",[]);q(this,"_pushConfigHook");this.logger=t,this._init()}_init(){this._commands.set(It.SHOW_CONNECTION_STATUS,!0),this._commands.set(It.SHOW_MESSAGE_STATE,!1),this._commands.set(It.FOCUS_ON_LATEST_MESSAGE,!0),this._commands.set(It.AT_ALL,!1),this._commands.set(It.SHOW_USER_ONLINE_STATE,!1),this._commands.set(It.PROMPT_SENDER_WHEN_QUOTE_MESSAGE,!1),this._commands.set(It.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION,!0),this._commands.set(It.USE_QUOTE_MESSAGE_V2,!1)}setCommandSwitch(t,s){this.logger.info(B.A_SET_COMMAND_SWITCH_O,`command: ${t}, enable: ${!!s}`),this._commands.set(t,!!s)}getCommandSwitch(t){return!!this._commands.get(t)}setConversationBarTitle(t){this._conversationBarSwitch&&(this._conversationBarTitle=t)}setConversationBarSwitch(t){this._conversationBarSwitch=t}setConversationDetailBackSwitch(t){this._conversationDetailBackSwitch=t}getConversationBarSwitch(){return this._conversationBarSwitch}getConversationDetailBackSwitch(){return this._conversationDetailBackSwitch}getConversationBarTitle(){return this._conversationBarTitle}getConversationExtension(){return this._extensions}setConversationExtension(t){this._extensions.splice(0,this._extensions.length,...t)}setPushConfigHook(t){this._pushConfigHook=t}getPushConfig(t){if(!this._pushConfigHook)return;let s;try{s=this._pushConfigHook({...t})}catch(n){this.logger.error(B.L_GET_PUSH_CONFIG_HOOK_E,JSON.stringify({messageType:t.messageType,error:n==null?void 0:n.message})),console.error(n)}return s}destroy(){this._commands.clear()}}let wa;const hh=e=>(wa||(wa={set:(t,s)=>{e.localStorage.setItem(t,JSON.stringify(s))},get:t=>{let s;try{s=JSON.parse(e.localStorage.getItem(t))}catch{s=null}return s},remove:t=>e.localStorage.removeItem(t),getKeys:()=>{const t=[];for(const s in e.localStorage)t.push(s);return t}}),wa);class ph{constructor(t){q(this,"_caches",{});t&&(this._caches=t)}set(t,s){this._caches[t]=s}remove(t){const s=this.get(t);return delete this._caches[t],s}get(t){return this._caches[t]}getKeys(){const t=[];for(const s in this._caches)t.push(s);return t}}class gh{constructor(t,s){q(this,"_cache");q(this,"_storageKey");q(this,"_rootStorage");this._rootStorage=hh(t);const n=this._rootStorage.get(s)||{};this._cache=new ph({[s]:n}),this._storageKey=s}_get(){const t=this._storageKey;return this._cache.get(t)||{}}_set(t){const s=this._storageKey;t=t||{},this._cache.set(s,t),this._rootStorage.set(s,t)}set(t,s){const n=this._get();n[t]=s,this._set(n)}remove(t){const s=this._get();delete s[t],this._set(s)}clear(){const t=this._storageKey;this._rootStorage.remove(t),this._cache.remove(t)}get(t){return this._get()[t]}getKeys(){const t=this._get(),s=[];for(const n in t)s.push(n);return s}getValues(){return this._get()||{}}}const _h=(e,t)=>`im-kit-${e}-${t}`,Ji={lrt:{keyName:"lastReadTime",defaultVal:0},srrt:{keyName:"sendReadReceiptTime",defaultVal:0}},xc={};for(const e in Ji){const{keyName:t}=Ji[e];xc[t]=e}class mh{constructor(t,s,n,i){q(this,"_localStore");this.logger=i,this._localStore=new gh(t,_h(s,n))}_getStoreKey(t,s,n){return`${n}_${t}_${s}`}get(t,s,n=""){const i=this._getStoreKey(t,s,n),o=this._localStore.get(i)||{},r={};for(const a in Ji){const{keyName:l,defaultVal:c}=Ji[a];r[l]=o[a]||Ra(c)}return r}set(t,s,n,i){const o=this._getStoreKey(t,s,i),r=this._localStore.get(o)||{};for(const a in n){const l=xc[a],c=n[a];if(j.isUndefined(l)||j.isUndefined(c))continue;const{defaultVal:u}=Ji[l];c===u?delete r[l]:r[l]=c}if(j.notEmptyObject(r)){this._localStore.set(o,r);return}this._localStore.remove(o)}remove(t,s,n){const i=this._getStoreKey(t,s,n);this._localStore.remove(i)}}class Ts{constructor(t){q(this,"logger");q(this,"store");this.ctx=t,this.logger=t.logger,this.store=t.store,this.ctx.addEventListener(Z.DESTROY_USER_CACHE,this._onDestroyUserCache,this),this.ctx.addEventListener(Z.INIT_USER_CACHE,this._onInitUserCache,this),this._onInit()}_onInit(){}}class Ma{constructor(t,s,n){q(this,"_cache",new Map);q(this,"logger");q(this,"store");q(this,"_requesting",new Map);q(this,"_waitingList",new Set);q(this,"_waitingPromise");this._ctx=t,this._hook=s,this._defaultHook=n,this.logger=t.logger,this.store=t.store}async _push2Waiting(t){this._waitingPromise?t.forEach(s=>this._waitingList.add(s)):(this._waitingList=new Set(t),this._waitingPromise=new Promise(s=>{setTimeout(()=>{const n=[...this._waitingList];this._waitingList.clear(),this._request(n),this._waitingPromise=void 0,s()},200)})),await this._waitingPromise,await Promise.all(t.map(s=>this._requesting.get(s)))}async _request(t){const s=this.logger.createTraceId();let n;try{this.logger.info(this.ReqStartTag,t.join(","),s),n=this._hook(t),t.forEach(a=>{this._requesting.set(a,n)})}catch(a){this.logger.error(this.ReqFailedTag,a.message,s);return}const i=await n;if(!(i instanceof Array)){this.logger.error(this.ReqFailedTag,"result must be a Array",s);return}const o=[],r=i.filter((a,l)=>{const c=!this._isInvalid(a);if(!c)this.logger.warn(this.ReqFailedTag,`invalid value in position ${l}`,s),console.error(`invalid value in position ${l}: `,a);else{const{cached:u,changed:d}=this._checkAndUpdateCacheData(a);d&&o.push(u)}return c});o.length>0&&this._dispatchUpdateEvent(o),this.logger.info(this.ReqSuccessTag,`valid value length: ${r.length}`,s)}async reqData(t,s=!1){if(t.length===0)return[];const n=s?t.slice():t.filter(r=>{const a=this._cache.get(r);return!a||a.usingDefault});if(n.length===0)return this.getCache(t,!0);const i=[],o=[];return n.forEach(r=>{const a=this._requesting.get(r);a?i.includes(a)||i.push(a):o.push(r)}),o.length>0&&i.push(this._push2Waiting(o)),i.length>0&&await Promise.all(i),this.getCache(t,!0)}getCache(t,s){if(t.length===0)return[];const n=[],i=t.map(o=>{const r=this._cache.get(o);if(r)return r.usingDefault&&n.push(o),r;n.push(o);const a=this._getDefaultCache(o);return this._cache.set(o,a),a});return!s&&n.length>0&&this.reqData(n,!0),i}_getDefaultCache(t){let s;if(this._defaultHook){this.logger.info(this.GetDefaultTag,`id: ${t}`);try{s=this._defaultHook(t)}catch(i){this.logger.error(this.GetDefaultErrorTag,i.message)}s&&this._isInvalid(s)&&(this.logger.error(this.GetDefaultErrorTag,`id: ${t}`),s=void 0)}return this._createDefaultCache(t,s)}clear(){this._cache.clear()}}const Eh=`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<circle cx="16" cy="16" r="16" fill="#C4B7FF"/>
|
|
3
3
|
<path d="M22.9954 13.7373C22.9954 12.131 21.8033 10.7873 20.2483 10.5629C19.996 10.5265 19.7881 10.7367 19.7881 10.9917C19.7881 11.2466 19.9969 11.4484 20.2467 11.4997C21.2896 11.7137 22.0721 12.6431 22.0721 13.7495C22.0721 14.8558 21.2896 15.7758 20.2467 15.9876C19.9969 16.0383 19.7881 16.2401 19.7881 16.4951C19.7881 16.75 19.996 16.9602 20.2483 16.9236C21.8033 16.6974 22.9954 15.3437 22.9954 13.7373Z" fill="#020814"/>
|
|
4
4
|
<path d="M24.9999 19.6052C24.9999 18.451 24.0645 17.5156 22.9103 17.5156H22.7466C22.5017 17.5156 22.3032 17.7141 22.3032 17.959C22.3032 18.2039 22.5017 18.4024 22.7466 18.4024H22.9103C23.5785 18.4024 24.1252 18.9491 24.1252 19.6173C24.1252 20.2855 23.5785 20.8322 22.9103 20.8322H22.7345C22.4963 20.8322 22.3032 21.0253 22.3032 21.2635C22.3032 21.5017 22.4963 21.6947 22.7345 21.6947H22.9103C24.0645 21.6947 24.9999 20.7593 24.9999 19.6052Z" fill="#020814"/>
|
|
@@ -6,25 +6,25 @@ var Qv=Object.defineProperty;var Yv=(Oe,j,f)=>j in Oe?Qv(Oe,j,{enumerable:!0,con
|
|
|
6
6
|
<path d="M7.00009 19.6052C7.00009 18.451 7.93555 17.5156 9.08968 17.5156H9.25338C9.49828 17.5156 9.69681 17.7141 9.69681 17.959C9.69681 18.2039 9.49828 18.4024 9.25338 18.4024H9.08968C8.4215 18.4024 7.8748 18.9491 7.8748 19.6173C7.8748 20.2855 8.4215 20.8322 9.08968 20.8322H9.26553C9.50372 20.8322 9.69681 21.0253 9.69681 21.2635C9.69681 21.5017 9.50372 21.6947 9.26553 21.6947H9.08968C7.93555 21.6947 7.00009 20.7593 7.00009 19.6052Z" fill="#020814"/>
|
|
7
7
|
<path d="M15.946 17.1026C13.8922 17.1026 12.2323 15.4286 12.2323 13.3889C12.2323 11.3492 13.8922 9.66113 15.946 9.66113C17.9997 9.66113 19.6597 11.3351 19.6597 13.3748C19.6597 15.4145 17.9997 17.1026 15.946 17.1026ZM15.946 10.7302C14.483 10.7302 13.3014 11.9119 13.3014 13.3748C13.3014 14.8378 14.4971 16.0335 15.946 16.0335C17.4089 16.0335 18.5906 14.8519 18.5906 13.3889C18.5906 11.9259 17.4089 10.7302 15.946 10.7302ZM19.5612 22.5887H12.3448C11.0085 22.5887 9.92529 21.5055 9.92529 20.1692C9.92529 18.8328 11.0085 17.7497 12.3448 17.7497H19.5612C20.8975 17.7497 21.9807 18.8328 21.9807 20.1692C21.9807 21.5055 20.8975 22.5887 19.5612 22.5887ZM12.3448 18.7765C11.5711 18.7765 10.9381 19.4096 10.9381 20.1832C10.9381 20.9569 11.5711 21.5899 12.3448 21.5899H19.5612C20.3349 21.5899 20.9679 20.9569 20.9679 20.1832C20.9679 19.4096 20.3349 18.7765 19.5612 18.7765H12.3448Z" fill="#020814"/>
|
|
8
8
|
</svg>
|
|
9
|
-
`,
|
|
9
|
+
`,vh=`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
10
|
<circle cx="16" cy="16" r="16" fill="#D2E1FE"/>
|
|
11
11
|
<path d="M15.952 17.216C13.616 17.216 11.728 15.312 11.728 12.992C11.728 10.672 13.616 8.75195 15.952 8.75195C18.288 8.75195 20.176 10.656 20.176 12.976C20.176 15.296 18.288 17.216 15.952 17.216ZM15.952 9.96795C14.288 9.96795 12.944 11.312 12.944 12.976C12.944 14.64 14.304 16 15.952 16C17.616 16 18.96 14.656 18.96 12.992C18.96 11.328 17.616 9.96795 15.952 9.96795ZM20.064 23.456H11.856C10.336 23.456 9.104 22.224 9.104 20.704C9.104 19.184 10.336 17.952 11.856 17.952H20.064C21.584 17.952 22.816 19.184 22.816 20.704C22.816 22.224 21.584 23.456 20.064 23.456ZM11.856 19.12C10.976 19.12 10.256 19.84 10.256 20.72C10.256 21.6 10.976 22.32 11.856 22.32H20.064C20.944 22.32 21.664 21.6 21.664 20.72C21.664 19.84 20.944 19.12 20.064 19.12H11.856Z" fill="#020814"/>
|
|
12
12
|
</svg>
|
|
13
|
-
`,
|
|
13
|
+
`,Ch=`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14
14
|
<circle cx="16" cy="16" r="16" fill="#FFCB82"/>
|
|
15
15
|
<path d="M18.1627 23.3216C17.9241 23.3211 17.69 23.2566 17.4848 23.1349L12.7916 20.3783C12.7359 20.3457 12.6725 20.3285 12.608 20.3285H10.3391C9.98405 20.328 9.64369 20.1868 9.39266 19.9358C9.14163 19.6848 9.00041 19.3444 9 18.9894V13.3519C9.00005 12.9968 9.14113 12.6563 9.3922 12.4052C9.64328 12.1542 9.98379 12.0131 10.3389 12.013H10.3482L12.5836 12.0285H12.5859C12.6509 12.0284 12.7147 12.011 12.7707 11.9779L17.4803 9.18705C17.6836 9.06656 17.9152 9.00204 18.1516 9.00005C18.388 8.99806 18.6206 9.05866 18.826 9.17571C19.0313 9.29276 19.2021 9.46208 19.3208 9.66647C19.4395 9.87086 19.502 10.103 19.502 10.3394V21.98C19.5011 22.3351 19.3598 22.6755 19.1088 22.9267C18.8579 23.178 18.5178 23.3198 18.1627 23.3212V23.3216ZM10.3391 12.9896C10.243 12.9896 10.1508 13.0278 10.0828 13.0957C10.0148 13.1636 9.97661 13.2558 9.97656 13.3519V18.9894C9.97672 19.0855 10.015 19.1776 10.0829 19.2456C10.1509 19.3135 10.243 19.3517 10.3391 19.3519H12.6088C12.8472 19.3519 13.0813 19.4155 13.2869 19.5363L17.9799 22.2929C18.035 22.3255 18.0977 22.3428 18.1616 22.3433C18.2256 22.3438 18.2886 22.3273 18.3441 22.2955C18.3997 22.2638 18.4458 22.2179 18.4779 22.1626C18.51 22.1072 18.5268 22.0444 18.5268 21.9804V10.3398C18.5268 10.2758 18.51 10.213 18.4779 10.1576C18.4458 10.1023 18.3997 10.0564 18.3441 10.0247C18.2886 9.99292 18.2256 9.97645 18.1616 9.97691C18.0977 9.97737 18.035 9.99475 17.9799 10.0273L13.2686 12.8179C13.0592 12.9419 12.8201 13.0066 12.5768 13.005L10.3416 12.9896H10.3391Z" fill="#020814" stroke="#020814" stroke-width="0.3"/>
|
|
16
16
|
<path d="M20.89 19.984C20.8127 19.9841 20.7376 19.9579 20.6771 19.9098C20.6165 19.8616 20.5741 19.7944 20.5567 19.719C20.5394 19.6436 20.5481 19.5646 20.5814 19.4948C20.6148 19.425 20.6708 19.3686 20.7404 19.3348C21.1965 19.1133 21.5767 18.7059 21.84 18.1567C22.0957 17.6237 22.2178 16.9962 22.1838 16.3895C22.1537 15.8506 22.0021 15.3544 21.7457 14.9557C21.466 14.52 21.0723 14.21 20.5756 14.0342C20.4901 14.004 20.4201 13.941 20.3811 13.8592C20.3421 13.7774 20.3371 13.6834 20.3674 13.5979C20.3976 13.5124 20.4606 13.4425 20.5424 13.4034C20.6242 13.3644 20.7182 13.3595 20.8037 13.3897C21.4291 13.6074 21.9634 14.0288 22.3209 14.5862C22.641 15.0844 22.8287 15.6948 22.8664 16.3512C22.9066 17.071 22.7611 17.8171 22.4562 18.4522C22.1254 19.1422 21.6359 19.66 21.039 19.9497C20.9926 19.9723 20.9417 19.984 20.89 19.984Z" fill="#020814" stroke="#020814" stroke-width="0.5"/>
|
|
17
17
|
</svg>
|
|
18
|
-
`,
|
|
18
|
+
`,yh=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
19
19
|
<path d="M6.92969 13.056C6.92969 13.7 7.45969 14.222 8.11569 14.222C8.77069 14.222 9.30169 13.7 9.30169 13.056H10.0927C10.0927 14.13 9.20769 15 8.11569 15C7.02369 15 6.13869 14.13 6.13869 13.056H6.92969ZM12.0397 4.344C12.3247 4.944 12.4737 5.596 12.4737 6.258V9.175C12.4737 9.245 12.4937 9.315 12.5297 9.377L13.6367 11.173C13.7061 11.2918 13.7429 11.4268 13.7434 11.5644C13.7438 11.702 13.7079 11.8372 13.6393 11.9565C13.5707 12.0757 13.4718 12.1747 13.3526 12.2435C13.2335 12.3122 13.0983 12.3483 12.9607 12.348H3.89569L4.68669 11.57H12.9607L11.8527 9.77C11.7387 9.58958 11.6783 9.38044 11.6787 9.167V6.257C11.6787 5.807 11.5977 5.361 11.4387 4.939L12.0397 4.344ZM11.8467 2.239C11.9288 2.15692 12.0401 2.1108 12.1562 2.1108C12.2723 2.1108 12.3836 2.15692 12.4657 2.239C12.5478 2.32108 12.5939 2.43242 12.5939 2.5485C12.5939 2.66459 12.5478 2.77592 12.4657 2.858L3.18569 12.138C3.14511 12.1787 3.09691 12.211 3.04384 12.2331C2.99077 12.2552 2.93387 12.2666 2.8764 12.2667C2.81892 12.2668 2.76198 12.2556 2.70884 12.2337C2.6557 12.2117 2.6074 12.1796 2.56669 12.139C2.52598 12.0984 2.49366 12.0502 2.47158 11.9972C2.4495 11.9441 2.43808 11.8872 2.43799 11.8297C2.4379 11.7722 2.44913 11.7153 2.47104 11.6622C2.49295 11.609 2.52511 11.5607 2.56569 11.52L11.8467 2.239ZM8.07969 1C8.18469 1 8.28569 1.041 8.35969 1.114C8.39631 1.14984 8.42543 1.19262 8.44534 1.23983C8.46526 1.28705 8.47557 1.33776 8.47569 1.389V1.856C9.19869 1.914 9.89569 2.156 10.4957 2.556L9.93569 3.116C9.45583 2.82552 8.91258 2.65599 8.35269 2.622H8.11269C6.14569 2.622 4.55269 4.189 4.55269 6.122L4.56469 8.392L3.77369 9.171V6.106C3.77802 5.52052 3.90278 4.9422 4.14018 4.407C4.37759 3.8718 4.72258 3.39117 5.15369 2.995C5.85095 2.35177 6.73945 1.95423 7.68369 1.863V1.39C7.68369 1.287 7.72669 1.188 7.80069 1.115C7.87505 1.04162 7.97522 1.00033 8.07969 1Z" fill="#7C838E" stroke="#7C838E" stroke-width="0.342857"/>
|
|
20
20
|
</svg>
|
|
21
|
-
`,
|
|
21
|
+
`,Sh=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
22
22
|
<path d="M14.325 5.95002L10.0781 1.70939C9.96563 1.59689 9.82032 1.54221 9.67344 1.54221C9.52657 1.54221 9.37969 1.59689 9.26876 1.70939L6.49219 4.48283C6.28126 4.45939 6.07032 4.44846 5.85782 4.44846C4.59688 4.44846 3.33438 4.86252 2.29844 5.69221C2.03282 5.90314 2.01094 6.30158 2.25157 6.54221L5.38282 9.66877L1.67032 13.375C1.62501 13.4203 1.59688 13.4797 1.59063 13.5438L1.53282 14.1844C1.51719 14.3469 1.64688 14.4844 1.80626 14.4844C1.81563 14.4844 1.82344 14.4844 1.83282 14.4828L2.47344 14.425C2.53751 14.4203 2.59688 14.3906 2.64219 14.3453L6.35469 10.6375L9.48594 13.7641C9.59844 13.8766 9.74376 13.9313 9.89063 13.9313C10.0578 13.9313 10.2234 13.8594 10.3375 13.7172C11.3078 12.5078 11.7109 10.9922 11.5469 9.52814L14.3234 6.75627C14.5484 6.53439 14.5484 6.17346 14.325 5.95002ZM10.6703 8.65471L10.2484 9.07658L10.3141 9.66877C10.3781 10.2485 10.3313 10.825 10.1734 11.3844C10.0797 11.711 9.95313 12.0235 9.79063 12.3172L3.70313 6.23752C3.92501 6.11564 4.15626 6.01252 4.39844 5.92971C4.86719 5.76721 5.35782 5.68752 5.85782 5.68752C6.02344 5.68752 6.19063 5.69533 6.35626 5.71564L6.94844 5.78127L9.67501 3.05783L12.975 6.35314L10.6703 8.65471Z" fill="#7C838E"/>
|
|
23
23
|
</svg>
|
|
24
|
-
`,
|
|
24
|
+
`,Th=`<svg width="13" height="10" viewBox="0 0 13 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
25
25
|
<path d="M10.4464 1.00743C10.9346 0.530944 11.7166 0.540543 12.1929 1.02886C12.669 1.51697 12.6594 2.29858 12.1714 2.77483L5.5787 9.20931C5.05539 9.72006 4.22159 9.72461 3.69274 9.21961L1.12127 6.76413C0.628033 6.29313 0.610061 5.51144 1.08113 5.01828C1.55212 4.5252 2.33363 4.50725 2.82675 4.97818L4.26713 6.35373C4.46506 6.54275 4.77714 6.54104 4.97299 6.34987L10.4464 1.00743Z" fill="white"/>
|
|
26
26
|
</svg>
|
|
27
|
-
`,
|
|
27
|
+
`,Ih=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
28
28
|
<g clip-path="url(#clip0_235_4141)">
|
|
29
29
|
<path d="M6.49384 12.7875C4.87365 12.7875 3.25347 12.1705 2.02015 10.9372C-0.446494 8.47029 -0.446494 4.45619 2.02015 1.98931C4.48656 -0.477098 8.50089 -0.478018 10.9678 1.98931C13.4344 4.45619 13.4344 8.47029 10.9678 10.9372C9.73444 12.1705 8.11403 12.7875 6.49384 12.7875ZM6.49384 1.45585C5.21104 1.45585 3.92801 1.94421 2.95152 2.92069C0.998325 4.87389 0.998325 8.05259 2.95152 10.0058C4.90495 11.9585 8.08296 11.9594 10.0364 10.0058C11.9896 8.05259 11.9896 4.87389 10.0364 2.92069C9.05967 1.94421 7.77687 1.45585 6.49384 1.45585Z" fill="#41464F"/>
|
|
30
30
|
<path d="M15.2108 15.8391C15.0423 15.8391 14.8736 15.7749 14.7452 15.6463L10.2862 11.1868C10.0289 10.9296 10.0289 10.5128 10.2862 10.2555C10.5435 9.99818 10.9603 9.99818 11.2176 10.2555L15.6766 14.7147C15.9339 14.972 15.9339 15.3887 15.6766 15.646C15.6155 15.7073 15.5429 15.7559 15.4629 15.789C15.383 15.8222 15.2973 15.8392 15.2108 15.8391Z" fill="#41464F"/>
|
|
@@ -35,207 +35,195 @@ var Qv=Object.defineProperty;var Yv=(Oe,j,f)=>j in Oe?Qv(Oe,j,{enumerable:!0,con
|
|
|
35
35
|
</clipPath>
|
|
36
36
|
</defs>
|
|
37
37
|
</svg>
|
|
38
|
-
`,
|
|
38
|
+
`,Rh=`<svg width="15" height="9" viewBox="0 0 15 9" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
39
39
|
<path d="M13.7551 0.143687H12.4318H10.2877H7.74159H5.12847H2.81687H1.1753C0.907286 0.143687 0.689527 0.205107 0.522019 0.327945C0.354512 0.450784 0.240048 0.607124 0.178629 0.796966C0.11721 0.986807 0.114418 1.19619 0.170254 1.42512C0.22609 1.65405 0.348928 1.88018 0.53877 2.10352C0.951955 2.55021 1.38747 3.01923 1.84533 3.51059C2.30318 4.00194 2.7722 4.49888 3.25239 5.0014L4.65945 6.50897C5.13964 7.01149 5.59749 7.49726 6.03301 7.96628C6.23402 8.17846 6.47411 8.3348 6.75329 8.4353C7.03247 8.53581 7.32003 8.58327 7.61596 8.57768C7.91189 8.5721 8.20223 8.50789 8.487 8.38505C8.77176 8.26221 9.02023 8.08912 9.2324 7.86578C10.0029 7.06174 10.807 6.1907 11.6445 5.25266C12.482 4.31462 13.3587 3.30958 14.2744 2.23753C14.4866 1.98068 14.6317 1.72663 14.7099 1.47537C14.7881 1.22411 14.802 1.00077 14.7518 0.805341C14.7015 0.609916 14.5898 0.450784 14.4168 0.327945C14.2437 0.205107 14.0231 0.143687 13.7551 0.143687Z" fill="#0099FF"/>
|
|
40
40
|
</svg>
|
|
41
|
-
`,
|
|
41
|
+
`,kc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
42
42
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
43
43
|
<path d="M16.0065 14.997L21.2996 9.70389C21.5668 9.43671 21.5668 8.99621 21.2996 8.72903L21.2707 8.70014C21.0035 8.43296 20.563 8.43296 20.2959 8.70014L15.0027 14.0005L9.70955 8.70014C9.44237 8.43296 9.00187 8.43296 8.73469 8.70014L8.7058 8.72903C8.4314 8.99621 8.4314 9.43671 8.7058 9.70389L13.999 14.997L8.7058 20.2902C8.43862 20.5574 8.43862 20.9979 8.7058 21.2651L8.73469 21.294C9.00187 21.5611 9.44237 21.5611 9.70955 21.294L15.0027 16.0008L20.2959 21.294C20.563 21.5611 21.0035 21.5611 21.2707 21.294L21.2996 21.2651C21.5668 20.9979 21.5668 20.5574 21.2996 20.2902L16.0065 14.997Z" fill="#41464F" stroke="#41464F" stroke-width="0.3"/>
|
|
44
44
|
</svg>
|
|
45
|
-
`,
|
|
45
|
+
`,Uc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
46
46
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
47
47
|
<path d="M21.2222 20.9969C21.4285 20.9969 21.6263 21.0788 21.7722 21.2247C21.9181 21.3706 22 21.5684 22 21.7747C22 21.9809 21.9181 22.1788 21.7722 22.3246C21.6263 22.4705 21.4285 22.5524 21.2222 22.5524H8.77778C8.5715 22.5524 8.37367 22.4705 8.22781 22.3246C8.08194 22.1788 8 21.9809 8 21.7747C8 21.5684 8.08194 21.3706 8.22781 21.2247C8.37367 21.0788 8.5715 20.9969 8.77778 20.9969H21.2222ZM15 7C15.2063 7 15.4041 7.08194 15.55 7.22781C15.6958 7.37367 15.7778 7.5715 15.7778 7.77778V17.1726L19.5033 13.447C19.6432 13.3072 19.831 13.226 20.0286 13.2197C20.2262 13.2135 20.4188 13.2827 20.5671 13.4134C20.7155 13.544 20.8086 13.7263 20.8274 13.9231C20.8462 14.1199 20.7894 14.3165 20.6684 14.4729L20.6031 14.546L15.5468 19.6054C15.4129 19.7395 15.2348 19.8201 15.0458 19.8321C14.8568 19.8441 14.6698 19.7868 14.5201 19.6708L14.447 19.6062L9.39533 14.5631C9.25531 14.4234 9.17378 14.2356 9.16732 14.0379C9.16087 13.8402 9.22997 13.6475 9.36058 13.4989C9.49119 13.3504 9.67349 13.2572 9.87038 13.2383C10.0673 13.2194 10.264 13.2762 10.4204 13.3972L10.4936 13.4618L14.2222 17.1827V7.77778C14.2222 7.5715 14.3042 7.37367 14.45 7.22781C14.5959 7.08194 14.7937 7 15 7Z" fill="#41464F"/>
|
|
48
48
|
</svg>
|
|
49
|
-
`,
|
|
49
|
+
`,Nc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
50
50
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
51
51
|
<path d="M15.7116 15.7087L23.1973 15.7087C23.5751 15.7087 23.8866 15.3972 23.8866 15.0193L23.8866 14.9785C23.8866 14.6006 23.5751 14.2891 23.1973 14.2891L15.7065 14.2943L15.7116 6.8035C15.7116 6.42564 15.4002 6.11417 15.0223 6.11417H14.9815C14.5985 6.10906 14.287 6.42054 14.2921 6.8035L14.2921 14.2891L6.80647 14.2891C6.42861 14.2891 6.11714 14.6006 6.11714 14.9785L6.11714 15.0193C6.11714 15.3972 6.42861 15.7087 6.80647 15.7087L14.2921 15.7087L14.2921 23.1943C14.2921 23.5722 14.6036 23.8836 14.9815 23.8836H15.0223C15.4002 23.8836 15.7116 23.5722 15.7116 23.1943L15.7116 15.7087Z" fill="#41464F" stroke="#41464F" stroke-width="0.3"/>
|
|
52
52
|
</svg>
|
|
53
|
-
`,
|
|
53
|
+
`,Dc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
54
54
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
55
55
|
<path d="M23.1974 15.7086L15.7117 15.7086L14.2922 15.7086H6.80655C6.42869 15.7086 6.11721 15.3971 6.11721 15.0193L6.11721 14.9784C6.11721 14.6006 6.42869 14.2891 6.80655 14.2891L14.2922 14.2891L15.7066 14.2942L23.1974 14.2891C23.5752 14.2891 23.8867 14.6006 23.8867 14.9784V15.0193C23.8867 15.3971 23.5752 15.7086 23.1974 15.7086Z" fill="#41464F" stroke="#41464F" stroke-width="0.3"/>
|
|
56
56
|
</svg>
|
|
57
|
-
`,
|
|
57
|
+
`,wh=`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
58
58
|
<path d="M0.570362 5.55844L3.13238 7.36772C3.40259 7.55765 3.77288 7.52766 4.00306 7.29775L7.68596 3.61921C7.87611 3.42928 8.19636 3.42928 8.38651 3.61921C8.57666 3.80913 8.57666 4.12901 8.38651 4.31893L4.70362 7.99748C4.47343 8.22738 4.4334 8.59724 4.63356 8.86713L6.44499 11.4261C7.08549 12.3358 8.48659 12.1258 8.83687 11.0663L11.9293 1.78993C12.2796 0.730354 11.2688 -0.279246 10.2079 0.0706154L0.930646 3.16939C-0.130189 3.51925 -0.330346 4.91869 0.570362 5.55844Z" fill="white"/>
|
|
59
59
|
</svg>
|
|
60
|
-
`,
|
|
60
|
+
`,Pc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
61
61
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
62
62
|
<path d="M12.1133 8.06641H17.8545C17.8597 8.06706 17.8856 8.07208 17.9355 8.10742C17.9978 8.15153 18.0689 8.22385 18.1426 8.31934C18.2907 8.51132 18.3903 8.72221 18.4072 8.75977L18.4121 8.77051L18.418 8.78125L18.8398 9.62207L18.8438 9.62793L18.8623 9.66406L19.0205 9.96973H22.6367C22.9218 9.96973 23.1504 10.2008 23.1504 10.4775V22.3994C23.1504 22.6766 22.9217 22.9082 22.6367 22.9082H7.33008C7.04513 22.9082 6.81641 22.6766 6.81641 22.3994V10.4775C6.81643 10.2008 7.04503 9.96973 7.33008 9.96973H10.9473L11.1055 9.66406L11.124 9.62793L11.127 9.62207L11.5547 8.77148L11.5615 8.75977L11.5674 8.74707C11.5674 8.74704 11.5911 8.69352 11.6348 8.61426C11.6796 8.53289 11.7413 8.43153 11.8145 8.33496C11.8895 8.23589 11.9636 8.15914 12.0293 8.11133C12.0945 8.0639 12.1201 8.06641 12.1133 8.06641Z" stroke="#020814" stroke-width="1.13337"/>
|
|
63
63
|
<circle cx="14.9998" cy="16.2162" r="2.45563" stroke="#020814" stroke-width="1.13337"/>
|
|
64
64
|
</svg>
|
|
65
|
-
`,
|
|
65
|
+
`,Vc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
66
66
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
67
67
|
<path d="M9.58301 8.05371H20.417C21.6274 8.05388 22.5711 8.99756 22.5713 10.208V21.042C22.5711 22.2524 21.6274 23.1961 20.417 23.1963H9.58301C8.37256 23.1961 7.42888 22.2524 7.42871 21.042V10.208C7.42888 8.99756 8.37256 8.05388 9.58301 8.05371Z" stroke="#020814" stroke-width="1.10795"/>
|
|
68
68
|
<path d="M12.7051 11.8972C12.9571 11.8973 13.2066 11.9473 13.4395 12.0437C13.6724 12.1402 13.8842 12.2815 14.0625 12.4597C14.1964 12.5936 14.3095 12.7465 14.3984 12.9128L14.4795 13.0828L14.543 13.2605C14.5977 13.4408 14.625 13.629 14.625 13.8181C14.625 14.0701 14.5759 14.3197 14.4795 14.5525C14.383 14.7855 14.2408 14.9972 14.0625 15.1755C13.8842 15.3539 13.6725 15.496 13.4395 15.5925C13.2066 15.6889 12.957 15.738 12.7051 15.738C12.4529 15.738 12.2027 15.689 11.9697 15.5925C11.7367 15.496 11.525 15.3539 11.3467 15.1755C11.1685 14.9973 11.0271 14.7854 10.9307 14.5525C10.8342 14.3196 10.7842 14.0702 10.7842 13.8181C10.7842 13.5659 10.8342 13.3158 10.9307 13.0828C11.0272 12.8498 11.1684 12.638 11.3467 12.4597C11.525 12.2814 11.7368 12.1402 11.9697 12.0437C12.2027 11.9472 12.4529 11.8972 12.7051 11.8972Z" stroke="#020814" stroke-width="0.886364"/>
|
|
69
69
|
<path d="M11.3822 21.3889C11.2421 21.6411 10.9325 21.7446 10.6688 21.6274L10.6472 21.6178C10.3779 21.4981 10.2567 21.1829 10.3763 20.9136C11.5138 18.2595 13.3555 16.9053 15.793 16.7428C17.8513 16.6345 19.368 16.0386 20.2888 14.9553L20.3157 14.9246C20.5105 14.7019 20.8487 14.6786 21.0723 14.8724C21.2974 15.0675 21.321 15.4084 21.1248 15.6326L21.1013 15.6595C19.9638 16.9595 18.1763 17.7178 15.8472 17.8261C13.843 17.9345 12.3805 19.072 11.4055 21.347L11.3822 21.3889Z" fill="#020814"/>
|
|
70
70
|
</svg>
|
|
71
|
-
`,
|
|
71
|
+
`,Fc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
72
72
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
73
73
|
<path d="M14.8302 22.7855C19.2238 22.7855 22.7855 19.2238 22.7855 14.8302C22.7855 10.4367 19.2238 6.875 14.8302 6.875C10.4367 6.875 6.875 10.4367 6.875 14.8302C6.875 19.2238 10.4367 22.7855 14.8302 22.7855Z" stroke="#020814" stroke-width="0.993306" stroke-linejoin="round"/>
|
|
74
74
|
<path d="M11.5365 13.3759C11.5365 13.8597 11.9287 14.2518 12.4124 14.2518C12.8962 14.2518 13.2884 13.8597 13.2884 13.3759C13.2884 12.8922 12.8962 12.5 12.4124 12.5C11.9287 12.5 11.5365 12.8922 11.5365 13.3759ZM16.7918 13.3759C16.7918 13.8597 17.184 14.2518 17.6677 14.2518C18.1515 14.2518 18.5437 13.8597 18.5437 13.3759C18.5437 12.8922 18.1515 12.5 17.6677 12.5C17.184 12.5 16.7918 12.8922 16.7918 13.3759ZM15.0399 19.0689C13.8139 19.0689 12.5876 18.4551 11.8869 17.4923C11.6235 17.1419 11.4496 16.7046 11.2731 16.3543C11.1862 16.0909 11.36 15.8288 11.5366 15.7405C11.8 15.6536 11.9739 15.8274 12.0621 16.0039C12.1491 16.3542 12.3256 16.6178 12.4994 16.8799C13.2002 17.7558 14.0761 18.1945 15.0386 18.1945C16.0014 18.1945 16.9657 17.7572 17.4912 16.9682C17.6664 16.7047 17.8416 16.3557 17.9285 16.0922C18.0168 15.8288 18.2789 15.7419 18.454 15.8288C18.7174 15.9157 18.8044 16.1791 18.7174 16.3543C18.6293 16.7916 18.3672 17.1419 18.1036 17.4923C17.4924 18.4564 16.2663 19.0689 15.0399 19.0689Z" fill="#020814" stroke="#020814" stroke-width="0.1875"/>
|
|
75
75
|
</svg>
|
|
76
|
-
`,
|
|
76
|
+
`,Mh=`<svg width="24" height="23" viewBox="0 0 24 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
77
77
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.9775 22.1738C11.1802 22.1738 10.5365 21.5302 10.5365 20.7328V12.567H2.37071C1.57334 12.567 0.929688 11.9233 0.929688 11.126C0.929688 10.3286 1.57334 9.68495 2.37071 9.68495H10.5365V1.51915C10.5365 0.721782 11.1802 0.078125 11.9775 0.078125C12.7749 0.078125 13.4186 0.721782 13.4186 1.51915V9.68495H21.5844C22.3817 9.68495 23.0254 10.3286 23.0254 11.126C23.0254 11.9233 22.3817 12.567 21.5844 12.567H13.4186V20.7328C13.4186 21.5302 12.7749 22.1738 11.9775 22.1738Z" fill="#0099FF"/>
|
|
78
78
|
</svg>
|
|
79
|
-
|
|
79
|
+
`,$c=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
80
80
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
81
81
|
<path d="M10.5645 6.8125H19.4355C19.764 6.81251 20.0891 6.87729 20.3926 7.00293C20.6961 7.12867 20.9727 7.31259 21.2051 7.54492C21.4374 7.77726 21.6213 8.05386 21.7471 8.35742C21.8727 8.66086 21.9375 8.98603 21.9375 9.31445V19.8545C21.9375 20.1831 21.8728 20.5089 21.7471 20.8125C21.6214 21.1159 21.4373 21.3918 21.2051 21.624C20.9727 21.8564 20.6961 22.0403 20.3926 22.166C20.0891 22.2917 19.764 22.3564 19.4355 22.3564H10.5645C10.236 22.3564 9.9109 22.2917 9.60742 22.166C9.30386 22.0403 9.02726 21.8564 8.79492 21.624C8.56272 21.3918 8.37863 21.1159 8.25293 20.8125C8.12719 20.5089 8.0625 20.1831 8.0625 19.8545V9.31445C8.06251 8.98603 8.12729 8.66086 8.25293 8.35742C8.37867 8.05386 8.56259 7.77726 8.79492 7.54492C9.02726 7.31259 9.30386 7.12867 9.60742 7.00293C9.91086 6.87729 10.236 6.81251 10.5645 6.8125Z" stroke="#020814" stroke-width="1.125"/>
|
|
82
82
|
<path d="M11.3707 12.7823H15.403C15.5741 12.7823 15.7382 12.7143 15.8592 12.5933C15.9802 12.4723 16.0482 12.3082 16.0482 12.1371C16.0482 11.966 15.9802 11.8019 15.8592 11.6809C15.7382 11.5599 15.5741 11.4919 15.403 11.4919H11.3707C11.1996 11.4919 11.0355 11.5599 10.9145 11.6809C10.7936 11.8019 10.7256 11.966 10.7256 12.1371C10.7256 12.3082 10.7936 12.4723 10.9145 12.5933C11.0355 12.7143 11.1996 12.7823 11.3707 12.7823Z" fill="#020814"/>
|
|
83
83
|
<path d="M11.3709 16.0079H18.6289C18.7137 16.0079 18.7976 15.9912 18.8758 15.9588C18.9541 15.9264 19.0253 15.8788 19.0852 15.8189C19.1451 15.759 19.1926 15.6879 19.2251 15.6096C19.2575 15.5313 19.2742 15.4474 19.2742 15.3627C19.2742 15.278 19.2575 15.1941 19.2251 15.1158C19.1926 15.0375 19.1451 14.9664 19.0852 14.9065C19.0253 14.8465 18.9541 14.799 18.8758 14.7666C18.7976 14.7342 18.7137 14.7175 18.6289 14.7175H11.3709C11.2861 14.7175 11.2022 14.7342 11.1239 14.7666C11.0456 14.799 10.9745 14.8465 10.9146 14.9065C10.8547 14.9664 10.8071 15.0375 10.7747 15.1158C10.7423 15.1941 10.7256 15.278 10.7256 15.3627C10.7256 15.4474 10.7423 15.5313 10.7747 15.6096C10.8071 15.6879 10.8547 15.759 10.9146 15.8189C10.9745 15.8788 11.0456 15.9264 11.1239 15.9588C11.2022 15.9912 11.2861 16.0079 11.3709 16.0079Z" fill="#020814"/>
|
|
84
84
|
</svg>
|
|
85
|
-
`,
|
|
85
|
+
`,Hc=`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
86
86
|
<path d="M0.569914 5.56064L3.12991 7.37064C3.39991 7.56064 3.76991 7.53064 3.99991 7.30064L7.67991 3.62064C7.86991 3.43064 8.18991 3.43064 8.37991 3.62064C8.56991 3.81064 8.56991 4.13064 8.37991 4.32064L4.69991 8.00064C4.46991 8.23064 4.42991 8.60064 4.62991 8.87064L6.43991 11.4306C7.07991 12.3406 8.47991 12.1306 8.82991 11.0706L11.9199 1.79064C12.2699 0.730643 11.2599 -0.279357 10.1999 0.0706434L0.929914 3.17064C-0.130086 3.52064 -0.330086 4.92064 0.569914 5.56064Z" fill="#CCCCCC"/>
|
|
87
87
|
</svg>
|
|
88
|
-
`,
|
|
88
|
+
`,Oh=`<svg width="24" height="23" viewBox="0 0 24 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
89
89
|
<path d="M11.7722 18.572L11.7707 18.572C11.7637 18.572 11.7565 18.5721 11.7492 18.5722C11.7431 18.5722 11.7369 18.5723 11.7305 18.5724L11.7209 18.5725C11.7099 18.5726 11.6985 18.5727 11.687 18.5727C9.54072 18.5727 8.01707 17.6033 7.02388 16.6169C6.03227 15.6321 5.56502 14.6267 5.52498 14.5378C5.33961 14.127 5.52182 13.6447 5.93196 13.4591L5.93224 13.459C6.34282 13.2745 6.82354 13.4557 7.0099 13.8635L7.00993 13.8636C7.03616 13.9211 7.40015 14.6941 8.163 15.4512C8.92441 16.2068 10.078 16.9419 11.6898 16.9419C11.6994 16.9419 11.7092 16.9417 11.7201 16.9416L11.7205 16.9416L11.7722 18.572ZM11.7722 18.572C16.2412 18.5194 17.9935 14.7027 18.0683 14.5343C18.2522 14.1225 18.0666 13.6406 17.6557 13.4575C17.2421 13.2722 16.762 13.4593 16.5795 13.8695C16.5508 13.9319 15.1674 16.9009 11.7538 16.9412L11.7722 18.572ZM0.656307 11.5242C0.656307 17.6828 5.64829 22.6747 11.8069 22.6747C17.9651 22.6747 22.9571 17.6828 22.9571 11.5242C22.9571 5.36557 17.9651 0.373592 11.8069 0.373592C5.64829 0.373592 0.656307 5.36557 0.656307 11.5242ZM2.28714 11.5242C2.28714 6.27482 6.55754 2.00443 11.8069 2.00443C17.0559 2.00443 21.3263 6.27482 21.3263 11.5242C21.3263 16.7732 17.0559 21.0439 11.8069 21.0439C6.55754 21.0439 2.28714 16.7732 2.28714 11.5242ZM13.7399 9.45679C13.7399 10.2855 14.4114 10.9581 15.2409 10.9581C16.0701 10.9581 16.7419 10.2855 16.7419 9.45679C16.7419 8.6287 16.07 7.9565 15.2409 7.9565C14.4115 7.9565 13.7399 8.62873 13.7399 9.45679ZM6.84982 9.45679C6.84982 10.2855 7.52128 10.9581 8.35081 10.9581C9.17997 10.9581 9.85179 10.2855 9.85179 9.45679C9.85179 8.6287 9.17989 7.9565 8.35081 7.9565C7.52136 7.9565 6.84982 8.62873 6.84982 9.45679Z" fill="#A1AABF" stroke="#A1AABF" stroke-width="0.252815"/>
|
|
90
90
|
</svg>
|
|
91
|
-
`,
|
|
91
|
+
`,bh=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
92
92
|
<path d="M10.8822 2.33447C10.8903 2.33447 10.8969 2.33587 10.9007 2.3374C10.904 2.33875 10.9079 2.34173 10.9134 2.34717H10.9144L15.6917 7.11865C15.7087 7.13617 15.7067 7.1594 15.6927 7.17334L15.6898 7.17627L12.5667 10.2944L12.3616 10.4985L12.3939 10.7856C12.5613 12.28 12.1495 13.8247 11.1615 15.0562C11.1559 15.0631 11.1511 15.0669 11.1468 15.0688C11.1419 15.0711 11.1352 15.0727 11.1273 15.0728C11.1195 15.0728 11.1135 15.0713 11.1097 15.0698L11.096 15.0601L7.57259 11.5425L7.14876 11.1196L6.72493 11.5425L2.62141 15.6392L2.35286 15.6636L2.37727 15.397L6.47981 11.3022L6.90462 10.8774L6.47981 10.4526L2.95735 6.93506H2.95638C2.94819 6.92654 2.94391 6.91545 2.94466 6.90186C2.94549 6.88815 2.95157 6.87968 2.9593 6.87354L2.96126 6.87158C4.01592 6.02707 5.30258 5.604 6.59016 5.604C6.80849 5.60401 7.02375 5.6154 7.23763 5.63916L7.52376 5.67139L7.72786 5.46729L10.8509 2.34717L10.8548 2.34424C10.8576 2.3414 10.8602 2.33976 10.8636 2.33838C10.8676 2.33677 10.874 2.33453 10.8822 2.33447Z" stroke="#41464F" stroke-width="1.2"/>
|
|
93
93
|
</svg>
|
|
94
|
-
`,
|
|
94
|
+
`,Lh=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
95
95
|
<path d="M6.33852 10.6891L3.12099 7.4764C2.87373 7.22914 2.89621 6.81972 3.16915 6.60297C3.68867 6.18689 4.26364 5.87253 4.86681 5.65971C5.49953 5.43647 6.16328 5.32495 6.8266 5.32495C7.04496 5.32495 7.26171 5.33619 7.47846 5.36028L10.3315 2.51042C10.4455 2.39482 10.5964 2.33862 10.7474 2.33862C10.8983 2.33862 11.0476 2.39482 11.1632 2.51042L15.5271 6.86789C15.7567 7.09748 15.7567 7.46837 15.5255 7.69636L12.6724 10.5446M7.33717 11.6846L10.5547 14.8973C10.6703 15.0129 10.8196 15.0691 10.9705 15.0691" stroke="#41464F" stroke-width="1.125"/>
|
|
96
96
|
<path d="M14.9394 12.0909L13.6821 13.3482L12.4249 12.091C12.3326 11.9988 12.1833 11.9987 12.091 12.091C11.9991 12.1829 11.999 12.3325 12.0912 12.4247L13.3483 13.682L12.0911 14.9392C11.999 15.0313 11.999 15.181 12.0911 15.2731C12.1833 15.3653 12.3328 15.3652 12.4249 15.2731L13.6821 14.0159L14.9393 15.2732C15.0314 15.3653 15.1812 15.3651 15.2732 15.2732C15.3655 15.1809 15.3653 15.0314 15.2732 14.9393L14.0159 13.6821L15.2731 12.425C15.3654 12.3327 15.3653 12.1833 15.2731 12.0911C15.1808 11.9989 15.0315 11.9988 14.9394 12.0909Z" fill="#41464F" stroke="#41464F" stroke-width="0.75"/>
|
|
97
97
|
<path d="M6.97821 11.3252L2.28485 16.0186L1.95868 16.0479L1.98798 15.7227L6.71356 11.0625L6.97821 11.3252Z" stroke="#41464F" stroke-width="1.125"/>
|
|
98
98
|
</svg>
|
|
99
|
-
`,
|
|
99
|
+
`,Ah=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
100
100
|
<path d="M15.0637 12.9112L13.9949 10.77C13.9165 10.6141 13.8754 10.442 13.8749 10.2675V7.38749C13.8838 6.16141 13.4411 4.97495 12.6312 4.0544C11.8213 3.13384 10.7009 2.5436 9.48369 2.39624H9.37494V1.64624C9.37494 1.54678 9.33543 1.4514 9.2651 1.38108C9.19478 1.31075 9.09939 1.27124 8.99994 1.27124C8.90048 1.27124 8.8051 1.31075 8.73477 1.38108C8.66445 1.4514 8.62494 1.54678 8.62494 1.64624V2.39624C7.40194 2.49059 6.25947 3.04252 5.4254 3.94193C4.59133 4.84134 4.12696 6.02211 4.12494 7.24874V10.2675C4.12446 10.442 4.08338 10.6141 4.00494 10.77L2.93619 12.9112C2.87851 13.0257 2.85113 13.153 2.85665 13.2811C2.86218 13.4091 2.90042 13.5336 2.96774 13.6427C3.03506 13.7517 3.12921 13.8417 3.24119 13.9041C3.35318 13.9664 3.47927 13.999 3.60744 13.9987H14.3924C14.5206 13.999 14.6467 13.9664 14.7587 13.9041C14.8707 13.8417 14.9648 13.7517 15.0321 13.6427C15.0994 13.5336 15.1377 13.4091 15.1432 13.2811C15.1487 13.153 15.1214 13.0257 15.0637 12.9112ZM3.60744 13.2487L4.67619 11.1075C4.80686 10.8468 4.87492 10.5591 4.87494 10.2675V7.26749C4.87577 6.69124 4.99734 6.12156 5.2318 5.59516C5.46625 5.06876 5.8084 4.59733 6.23619 4.21124C6.98769 3.51376 7.97464 3.12541 8.99994 3.12374C9.13892 3.12267 9.27786 3.12893 9.41619 3.14249C10.4474 3.27213 11.395 3.77621 12.0788 4.55888C12.7626 5.34155 13.1349 6.34823 13.1249 7.38749V10.2675C13.125 10.5591 13.193 10.8468 13.3237 11.1075L14.3924 13.2487H3.60744Z" fill="#41464F" stroke="#41464F" stroke-width="0.5"/>
|
|
101
101
|
<path d="M9.13013 15.9997C8.39213 15.9997 7.79588 15.4125 7.79588 14.688H6.90601C6.90601 15.8962 7.90163 16.875 9.13013 16.875C10.3586 16.875 11.3543 15.8962 11.3543 14.688H10.4644C10.4644 15.4125 9.86701 15.9997 9.13013 15.9997Z" fill="#41464F" stroke="#41464F" stroke-width="0.385714"/>
|
|
102
102
|
</svg>
|
|
103
|
-
`,
|
|
103
|
+
`,xh=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
104
104
|
<path d="M7.7959 14.688C7.7959 15.4125 8.39215 15.9998 9.13015 15.9998C9.86702 15.9998 10.4644 15.4125 10.4644 14.688H11.3543C11.3543 15.8962 10.3586 16.875 9.13015 16.875C7.90165 16.875 6.90602 15.8962 6.90602 14.688H7.7959ZM13.5446 4.887C13.8653 5.562 14.0329 6.2955 14.0329 7.04025V10.3219C14.0329 10.4006 14.0554 10.4794 14.0959 10.5491L15.3413 12.5696C15.4194 12.7033 15.4608 12.8552 15.4613 13.0099C15.4618 13.1647 15.4214 13.3169 15.3442 13.451C15.267 13.5852 15.1558 13.6966 15.0217 13.7739C14.8877 13.8513 14.7355 13.8918 14.5808 13.8915H4.38265L5.27252 13.0162H14.5808L13.3343 10.9913C13.206 10.7883 13.1381 10.553 13.1385 10.3129V7.03912C13.1385 6.53287 13.0474 6.03113 12.8685 5.55638L13.5446 4.887ZM13.3275 2.51888C13.4199 2.42653 13.5451 2.37465 13.6757 2.37465C13.8063 2.37465 13.9316 2.42653 14.0239 2.51888C14.1162 2.61122 14.1681 2.73647 14.1681 2.86706C14.1681 2.99766 14.1162 3.1229 14.0239 3.21525L3.5839 13.6552C3.53825 13.701 3.48402 13.7374 3.42432 13.7622C3.36462 13.7871 3.30061 13.7999 3.23594 13.8C3.17128 13.8001 3.10723 13.7875 3.04745 13.7629C2.98766 13.7382 2.93332 13.702 2.88752 13.6564C2.84173 13.6107 2.80537 13.5565 2.78052 13.4968C2.75568 13.4371 2.74284 13.3731 2.74274 13.3084C2.74263 13.2438 2.75527 13.1797 2.77992 13.1199C2.80457 13.0601 2.84075 13.0058 2.8864 12.96L13.3275 2.51888ZM9.08965 1.125C9.20777 1.125 9.3214 1.17112 9.40465 1.25325C9.44585 1.29357 9.4786 1.3417 9.50101 1.39481C9.52342 1.44793 9.53502 1.50498 9.53515 1.56263V2.088C10.3485 2.15325 11.1326 2.4255 11.8076 2.8755L11.1776 3.5055C10.6378 3.17871 10.0267 2.98799 9.39677 2.94975H9.12677C6.9139 2.94975 5.12177 4.71263 5.12177 6.88725L5.13527 9.441L4.2454 10.3174V6.86925C4.25028 6.21059 4.39062 5.55997 4.65771 4.95787C4.92479 4.35577 5.3129 3.81506 5.7979 3.36937C6.58232 2.64575 7.58188 2.19851 8.64415 2.09588V1.56375C8.64415 1.44787 8.69252 1.3365 8.77577 1.25438C8.85943 1.17182 8.97212 1.12537 9.08965 1.125Z" fill="#41464F" stroke="#41464F" stroke-width="0.385714"/>
|
|
105
105
|
</svg>
|
|
106
|
-
`,
|
|
106
|
+
`,kh=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
107
107
|
<path d="M16.3516 2.41907H11.767H2.9253C2.7462 2.41907 2.57444 2.49022 2.44779 2.61686C2.32115 2.7435 2.25 2.91527 2.25 3.09437V15.5809L5.25697 13.2179H15.0747C15.2536 13.2179 15.4252 13.1468 15.5518 13.0204C15.6785 12.894 15.7497 12.7225 15.75 12.5436V6.40103V2.54978" stroke="#41464F" stroke-width="1.2"/>
|
|
108
108
|
<path d="M12.0164 5.70605C12.206 5.51745 12.5124 5.51748 12.702 5.70605C12.8918 5.89488 12.8918 6.20078 12.702 6.38965L8.27618 10.7939C8.18148 10.8882 8.05721 10.9355 7.93341 10.9355C7.80952 10.9355 7.68444 10.8891 7.58966 10.7949V10.7939L5.29767 8.5127C5.10787 8.32382 5.10784 8.01793 5.29767 7.8291C5.46348 7.66417 5.71879 7.64307 5.90704 7.7666L5.98322 7.8291L7.93243 9.76855L12.0164 5.70605Z" fill="#41464F" stroke="#41464F" stroke-width="0.189873"/>
|
|
109
109
|
</svg>
|
|
110
|
-
`,
|
|
110
|
+
`,Uh=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
111
111
|
<path d="M15.75 6.40103V12.5436C15.7497 12.7225 15.6785 12.894 15.5519 13.0204C15.4252 13.1468 15.2536 13.2179 15.0747 13.2179H5.25697L2.25 15.5809V3.09437C2.25 2.91527 2.32115 2.7435 2.44779 2.61686C2.57444 2.49022 2.7462 2.41907 2.9253 2.41907H11.767" stroke="#41464F" stroke-width="1.2"/>
|
|
112
112
|
<circle cx="15.0004" cy="3" r="1.5" fill="#41464F"/>
|
|
113
113
|
</svg>
|
|
114
|
-
`,
|
|
114
|
+
`,Nh=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
115
115
|
<path d="M13.1998 14.1491C13.1998 14.3924 13.1032 14.6256 12.9312 14.7976C12.7592 14.9696 12.5259 15.0662 12.2827 15.0662H5.68249C5.43946 15.0656 5.20657 14.9688 5.03472 14.7969C4.86287 14.6251 4.76604 14.3922 4.76538 14.1491V4.42424H13.1998V14.1491ZM6.5971 2.78045C6.59676 2.75568 6.60139 2.73109 6.61071 2.70813C6.62004 2.68518 6.63387 2.66433 6.65139 2.64681C6.66891 2.62929 6.68976 2.61546 6.71271 2.60614C6.73567 2.59681 6.76026 2.59218 6.78503 2.59252H11.1902C11.2149 2.59218 11.2395 2.59681 11.2625 2.60614C11.2854 2.61546 11.3063 2.62929 11.3238 2.64681C11.3413 2.66433 11.3552 2.68518 11.3645 2.70813C11.3738 2.73109 11.3784 2.75568 11.3781 2.78045V3.3217H6.5971V2.78045ZM15.9486 3.3217H12.4706V2.78045C12.4706 2.44085 12.3357 2.11517 12.0956 1.87503C11.8555 1.6349 11.5298 1.5 11.1902 1.5H6.78503C6.44584 1.50132 6.12092 1.63665 5.88107 1.87649C5.64123 2.11634 5.5059 2.44126 5.50458 2.78045V3.3217H2.01655C1.87644 3.33114 1.74515 3.39345 1.64925 3.49603C1.55335 3.59861 1.5 3.73379 1.5 3.87422C1.5 4.01464 1.55335 4.14983 1.64925 4.25241C1.74515 4.35498 1.87644 4.4173 2.01655 4.42674H3.66284V14.1491C3.66284 14.4144 3.71508 14.677 3.81657 14.922C3.91807 15.1671 4.06684 15.3897 4.25438 15.5772C4.44192 15.7648 4.66457 15.9136 4.9096 16.015C5.15464 16.1165 5.41726 16.1688 5.68249 16.1688H12.2827C12.5479 16.1688 12.8105 16.1165 13.0556 16.015C13.3006 15.9136 13.5233 15.7648 13.7108 15.5772C13.8983 15.3897 14.0471 15.1671 14.1486 14.922C14.2501 14.677 14.3023 14.4144 14.3023 14.1491V4.42424H15.9486C16.0948 4.42424 16.2351 4.36616 16.3384 4.26277C16.4418 4.15939 16.4999 4.01917 16.4999 3.87297C16.5013 3.8002 16.4879 3.7279 16.4607 3.6604C16.4335 3.59291 16.3929 3.53159 16.3415 3.48013C16.29 3.42867 16.2287 3.38811 16.1612 3.36089C16.0937 3.33366 16.0214 3.32034 15.9486 3.3217ZM8.98259 13.4099C9.0552 13.4099 9.12709 13.3956 9.19413 13.3677C9.26118 13.3399 9.32206 13.299 9.37329 13.2476C9.42451 13.1961 9.46506 13.1351 9.49262 13.0679C9.52017 13.0007 9.53419 12.9288 9.53386 12.8562V6.98513C9.53386 6.83893 9.47578 6.69871 9.3724 6.59533C9.26901 6.49194 9.1288 6.43386 8.98259 6.43386C8.83638 6.43386 8.69617 6.49194 8.59278 6.59533C8.4894 6.69871 8.43132 6.83893 8.43132 6.98513V12.8562C8.43099 12.9288 8.44501 13.0007 8.47256 13.0679C8.50012 13.1351 8.54067 13.1961 8.5919 13.2476C8.64312 13.299 8.704 13.3399 8.77105 13.3677C8.8381 13.3956 8.90999 13.4099 8.98259 13.4099ZM6.40916 13.4099C6.55603 13.4099 6.69689 13.3516 6.80074 13.2477C6.90459 13.1439 6.96294 13.003 6.96294 12.8562V6.98513C6.96804 6.90945 6.95753 6.83352 6.93208 6.76206C6.90662 6.6906 6.86675 6.62513 6.81494 6.56972C6.76314 6.5143 6.7005 6.47012 6.63091 6.43992C6.56133 6.40971 6.48628 6.39413 6.41042 6.39413C6.33456 6.39413 6.25951 6.40971 6.18992 6.43992C6.12033 6.47012 6.05769 6.5143 6.00589 6.56972C5.95408 6.62513 5.91421 6.6906 5.88876 6.76206C5.8633 6.83352 5.85279 6.90945 5.85789 6.98513V12.8562C5.86167 13.0014 5.92088 13.1397 6.02339 13.2427C6.1259 13.3457 6.26393 13.4055 6.40916 13.4099ZM11.556 13.4099C11.7025 13.4093 11.8427 13.3506 11.946 13.2469C12.0493 13.1431 12.1073 13.0026 12.1073 12.8562V6.98513C12.1124 6.90945 12.1019 6.83352 12.0764 6.76206C12.051 6.6906 12.0111 6.62513 11.9593 6.56972C11.9075 6.5143 11.8448 6.47012 11.7753 6.43992C11.7057 6.40971 11.6306 6.39413 11.5548 6.39413C11.4789 6.39413 11.4039 6.40971 11.3343 6.43992C11.2647 6.47012 11.202 6.5143 11.1502 6.56972C11.0984 6.62513 11.0586 6.6906 11.0331 6.76206C11.0076 6.83352 10.9971 6.90945 11.0022 6.98513V12.8562C11.0022 13.003 11.0606 13.1439 11.1644 13.2477C11.2683 13.3516 11.4091 13.4099 11.556 13.4099Z" fill="#41464F"/>
|
|
116
116
|
</svg>
|
|
117
|
-
`,
|
|
117
|
+
`,Gc=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
118
118
|
<path d="M13.1998 14.1491C13.1998 14.3924 13.1032 14.6256 12.9312 14.7976C12.7592 14.9696 12.5259 15.0662 12.2827 15.0662H5.68249C5.43946 15.0656 5.20657 14.9688 5.03472 14.7969C4.86287 14.6251 4.76604 14.3922 4.76538 14.1491V4.42424H13.1998V14.1491ZM6.5971 2.78045C6.59676 2.75568 6.60139 2.73109 6.61071 2.70813C6.62004 2.68518 6.63387 2.66433 6.65139 2.64681C6.66891 2.62929 6.68976 2.61546 6.71271 2.60614C6.73567 2.59681 6.76026 2.59218 6.78503 2.59252H11.1902C11.2149 2.59218 11.2395 2.59681 11.2625 2.60614C11.2854 2.61546 11.3063 2.62929 11.3238 2.64681C11.3413 2.66433 11.3552 2.68518 11.3645 2.70813C11.3738 2.73109 11.3784 2.75568 11.3781 2.78045V3.3217H6.5971V2.78045ZM15.9486 3.3217H12.4706V2.78045C12.4706 2.44085 12.3357 2.11517 12.0956 1.87503C11.8555 1.6349 11.5298 1.5 11.1902 1.5H6.78503C6.44584 1.50132 6.12092 1.63665 5.88107 1.87649C5.64123 2.11634 5.5059 2.44126 5.50458 2.78045V3.3217H2.01655C1.87644 3.33114 1.74515 3.39345 1.64925 3.49603C1.55335 3.59861 1.5 3.73379 1.5 3.87422C1.5 4.01464 1.55335 4.14983 1.64925 4.25241C1.74515 4.35498 1.87644 4.4173 2.01655 4.42674H3.66284V14.1491C3.66284 14.4144 3.71508 14.677 3.81657 14.922C3.91807 15.1671 4.06684 15.3897 4.25438 15.5772C4.44192 15.7648 4.66457 15.9136 4.9096 16.015C5.15464 16.1165 5.41726 16.1688 5.68249 16.1688H12.2827C12.5479 16.1688 12.8105 16.1165 13.0556 16.015C13.3006 15.9136 13.5233 15.7648 13.7108 15.5772C13.8983 15.3897 14.0471 15.1671 14.1486 14.922C14.2501 14.677 14.3023 14.4144 14.3023 14.1491V4.42424H15.9486C16.0948 4.42424 16.2351 4.36616 16.3384 4.26277C16.4418 4.15939 16.4999 4.01917 16.4999 3.87297C16.5013 3.8002 16.4879 3.7279 16.4607 3.6604C16.4335 3.59291 16.3929 3.53159 16.3415 3.48013C16.29 3.42867 16.2287 3.38811 16.1612 3.36089C16.0937 3.33366 16.0214 3.32034 15.9486 3.3217ZM8.98259 13.4099C9.0552 13.4099 9.12709 13.3956 9.19413 13.3677C9.26118 13.3399 9.32206 13.299 9.37329 13.2476C9.42451 13.1961 9.46506 13.1351 9.49262 13.0679C9.52017 13.0007 9.53419 12.9288 9.53386 12.8562V6.98513C9.53386 6.83893 9.47578 6.69871 9.3724 6.59533C9.26901 6.49194 9.1288 6.43386 8.98259 6.43386C8.83638 6.43386 8.69617 6.49194 8.59278 6.59533C8.4894 6.69871 8.43132 6.83893 8.43132 6.98513V12.8562C8.43099 12.9288 8.44501 13.0007 8.47256 13.0679C8.50012 13.1351 8.54067 13.1961 8.5919 13.2476C8.64312 13.299 8.704 13.3399 8.77105 13.3677C8.8381 13.3956 8.90999 13.4099 8.98259 13.4099ZM6.40916 13.4099C6.55603 13.4099 6.69689 13.3516 6.80074 13.2477C6.90459 13.1439 6.96294 13.003 6.96294 12.8562V6.98513C6.96804 6.90945 6.95753 6.83352 6.93208 6.76206C6.90662 6.6906 6.86675 6.62513 6.81494 6.56972C6.76314 6.5143 6.7005 6.47012 6.63091 6.43992C6.56133 6.40971 6.48628 6.39413 6.41042 6.39413C6.33456 6.39413 6.25951 6.40971 6.18992 6.43992C6.12033 6.47012 6.05769 6.5143 6.00589 6.56972C5.95408 6.62513 5.91421 6.6906 5.88876 6.76206C5.8633 6.83352 5.85279 6.90945 5.85789 6.98513V12.8562C5.86167 13.0014 5.92088 13.1397 6.02339 13.2427C6.1259 13.3457 6.26393 13.4055 6.40916 13.4099ZM11.556 13.4099C11.7025 13.4093 11.8427 13.3506 11.946 13.2469C12.0493 13.1431 12.1073 13.0026 12.1073 12.8562V6.98513C12.1124 6.90945 12.1019 6.83352 12.0764 6.76206C12.051 6.6906 12.0111 6.62513 11.9593 6.56972C11.9075 6.5143 11.8448 6.47012 11.7753 6.43992C11.7057 6.40971 11.6306 6.39413 11.5548 6.39413C11.4789 6.39413 11.4039 6.40971 11.3343 6.43992C11.2647 6.47012 11.202 6.5143 11.1502 6.56972C11.0984 6.62513 11.0586 6.6906 11.0331 6.76206C11.0076 6.83352 10.9971 6.90945 11.0022 6.98513V12.8562C11.0022 13.003 11.0606 13.1439 11.1644 13.2477C11.2683 13.3516 11.4091 13.4099 11.556 13.4099Z" fill="#41464F"/>
|
|
119
119
|
</svg>
|
|
120
|
-
`,
|
|
120
|
+
`,Dh=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
121
121
|
<path d="M6.82895 1.5H15.1184C15.4848 1.5 15.8362 1.64556 16.0953 1.90466C16.3544 2.16375 16.5 2.51516 16.5 2.88158V11.1711C16.5 11.5375 16.3544 11.8889 16.0953 12.148C15.8362 12.4071 15.4848 12.5526 15.1184 12.5526H6.82895C6.46253 12.5526 6.11112 12.4071 5.85202 12.148C5.59293 11.8889 5.44737 11.5375 5.44737 11.1711V2.88158C5.44737 2.51516 5.59293 2.16375 5.85202 1.90466C6.11112 1.64556 6.46253 1.5 6.82895 1.5ZM6.82895 2.68421C6.7766 2.68421 6.7264 2.705 6.68939 2.74202C6.65237 2.77903 6.63158 2.82923 6.63158 2.88158V11.1711C6.63158 11.197 6.63668 11.2226 6.6466 11.2466C6.65652 11.2705 6.67106 11.2923 6.68939 11.3106C6.70771 11.3289 6.72947 11.3435 6.75342 11.3534C6.77736 11.3633 6.80303 11.3684 6.82895 11.3684H15.1184C15.1708 11.3684 15.221 11.3476 15.258 11.3106C15.295 11.2736 15.3158 11.2234 15.3158 11.1711V2.88158C15.3158 2.82923 15.295 2.77903 15.258 2.74202C15.221 2.705 15.1708 2.68421 15.1184 2.68421H6.82895ZM11.3684 13.7368C11.3684 13.5798 11.4308 13.4292 11.5418 13.3182C11.6529 13.2071 11.8035 13.1447 11.9605 13.1447C12.1176 13.1447 12.2682 13.2071 12.3792 13.3182C12.4902 13.4292 12.5526 13.5798 12.5526 13.7368V15.1184C12.5526 15.4848 12.4071 15.8362 12.148 16.0953C11.8889 16.3544 11.5375 16.5 11.1711 16.5H2.88158C2.51516 16.5 2.16375 16.3544 1.90466 16.0953C1.64556 15.8362 1.5 15.4848 1.5 15.1184V6.82895C1.5 6.46253 1.64556 6.11112 1.90466 5.85202C2.16375 5.59293 2.51516 5.44737 2.88158 5.44737H4.26316C4.42019 5.44737 4.5708 5.50975 4.68184 5.62079C4.79288 5.73183 4.85526 5.88244 4.85526 6.03947C4.85526 6.19651 4.79288 6.34711 4.68184 6.45816C4.5708 6.5692 4.42019 6.63158 4.26316 6.63158H2.88158C2.82923 6.63158 2.77903 6.65237 2.74202 6.68939C2.705 6.7264 2.68421 6.7766 2.68421 6.82895V15.1184C2.68421 15.1708 2.705 15.221 2.74202 15.258C2.77903 15.295 2.82923 15.3158 2.88158 15.3158H11.1711C11.2234 15.3158 11.2736 15.295 11.3106 15.258C11.3476 15.221 11.3684 15.1708 11.3684 15.1184V13.7368Z" fill="#41464F"/>
|
|
122
122
|
</svg>
|
|
123
|
-
`,
|
|
123
|
+
`,Ph=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
124
124
|
<path d="M9 14.4245L10.9395 12.5756C11.0432 12.4767 11.181 12.4215 11.3244 12.4215H15.3843V4.1157H2.6157V12.4215H6.67562C6.81895 12.4215 6.95679 12.4767 7.06054 12.5756L9 14.4245ZM9.38492 15.599C9.16943 15.8045 8.83057 15.8045 8.61508 15.599L6.45232 13.5372H2.05785C1.74976 13.5372 1.5 13.2874 1.5 12.9793V3.55785C1.5 3.24976 1.74976 3 2.05785 3H15.9421C16.2502 3 16.5 3.24976 16.5 3.55785V12.9793C16.5 13.2874 16.2502 13.5372 15.9421 13.5372H11.5477L9.38492 15.599ZM5.96281 9.13636C5.48355 9.13636 5.09504 8.74785 5.09504 8.26859C5.09504 7.78934 5.48355 7.40083 5.96281 7.40083C6.44207 7.40083 6.83058 7.78934 6.83058 8.26859C6.83058 8.74785 6.44207 9.13636 5.96281 9.13636ZM9 9.13636C8.52074 9.13636 8.13223 8.74785 8.13223 8.26859C8.13223 7.78934 8.52074 7.40083 9 7.40083C9.47926 7.40083 9.86777 7.78934 9.86777 8.26859C9.86777 8.74785 9.47926 9.13636 9 9.13636ZM12.0372 9.13636C11.5579 9.13636 11.1694 8.74785 11.1694 8.26859C11.1694 7.78934 11.5579 7.40083 12.0372 7.40083C12.5164 7.40083 12.905 7.78934 12.905 8.26859C12.905 8.74785 12.5164 9.13636 12.0372 9.13636Z" fill="#41464F"/>
|
|
125
125
|
</svg>
|
|
126
|
-
`,
|
|
126
|
+
`,Vh=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
127
127
|
<path d="M15.435 12.8544C15.3582 12.9824 15.2338 13.0745 15.089 13.1107C14.9443 13.1469 14.7911 13.1241 14.6632 13.0473C14.5352 12.9705 14.443 12.846 14.4069 12.7013C14.3707 12.5565 14.3935 12.4034 14.4703 12.2754C15.0642 11.2862 15.377 10.1538 15.375 9C15.375 5.47912 12.5209 2.625 9 2.625C5.47913 2.625 2.625 5.47912 2.625 9C2.625 12.5209 5.47913 15.375 9 15.375C10.1536 15.377 11.2859 15.0644 12.2751 14.4707C12.3384 14.4327 12.4086 14.4075 12.4817 14.3967C12.5547 14.3858 12.6292 14.3894 12.7009 14.4073C12.7726 14.4252 12.84 14.4571 12.8993 14.5011C12.9587 14.545 13.0088 14.6003 13.0468 14.6636C13.0848 14.727 13.11 14.7972 13.1208 14.8702C13.1317 14.9433 13.1281 15.0178 13.1102 15.0895C13.0923 15.1611 13.0604 15.2286 13.0164 15.2879C12.9725 15.3473 12.9172 15.3974 12.8539 15.4354C11.6899 16.134 10.3575 16.5021 9 16.5C4.85794 16.5 1.5 13.1421 1.5 9C1.5 4.85794 4.85794 1.5 9 1.5C13.1421 1.5 16.5 4.85794 16.5 9C16.5 10.3762 16.1282 11.6994 15.435 12.8544ZM6.58444 8.60362L8.067 10.08L11.4144 6.7275C11.5199 6.62193 11.6629 6.56256 11.8121 6.56245C11.9613 6.56235 12.1044 6.62151 12.21 6.72694C12.3156 6.83236 12.3749 6.9754 12.375 7.1246C12.3752 7.2738 12.316 7.41693 12.2106 7.5225L8.46619 11.2725C8.36087 11.378 8.21798 11.4374 8.06892 11.4376C7.91986 11.4378 7.77681 11.3788 7.67119 11.2736L5.79056 9.40069C5.73755 9.34871 5.69535 9.28675 5.66639 9.21839C5.63744 9.15003 5.62231 9.07661 5.62186 9.00237C5.62142 8.92813 5.63568 8.85453 5.66382 8.78583C5.69196 8.71713 5.73342 8.65467 5.78581 8.60207C5.8382 8.54947 5.90049 8.50776 5.96908 8.47935C6.03767 8.45093 6.1112 8.43638 6.18545 8.43652C6.25969 8.43667 6.33317 8.45151 6.40165 8.48019C6.47013 8.50887 6.53225 8.55082 6.58444 8.60362Z" fill="#41464F"/>
|
|
128
128
|
</svg>
|
|
129
|
-
|
|
129
|
+
`,Bc=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
130
130
|
<path d="M15.3146 9.39413C15.3146 9.23711 15.377 9.08652 15.4881 8.97548C15.5991 8.86445 15.7497 8.80207 15.9067 8.80207C16.0637 8.80207 16.2143 8.86445 16.3254 8.97548C16.4364 9.08652 16.4988 9.23711 16.4988 9.39413V14.3279C16.4988 15.5268 15.5268 16.4988 14.3279 16.4988H3.67087C2.47196 16.4988 1.5 15.5268 1.5 14.3279V4.26297C1.5 3.06406 2.47196 2.0921 3.67087 2.0921H8.80203C8.95905 2.0921 9.10964 2.15448 9.22068 2.26551C9.33171 2.37654 9.39408 2.52713 9.39408 2.68416C9.39408 2.84118 9.33171 2.99177 9.22068 3.1028C9.10964 3.21384 8.95905 3.27621 8.80203 3.27621H3.67087C3.40917 3.27621 3.15818 3.38018 2.97313 3.56523C2.78807 3.75028 2.68411 4.00127 2.68411 4.26297V14.3279C2.68411 14.5896 2.78807 14.8406 2.97313 15.0257C3.15818 15.2107 3.40917 15.3147 3.67087 15.3147H14.3279C14.5896 15.3147 14.8406 15.2107 15.0256 15.0257C15.2107 14.8406 15.3146 14.5896 15.3146 14.3279V9.39413ZM14.5365 4.26297L12.8752 2.49786C12.7676 2.38349 12.7098 2.23106 12.7146 2.0741C12.7193 1.91714 12.7863 1.7685 12.9006 1.66089C13.015 1.55327 13.1674 1.4955 13.3244 1.50027C13.4814 1.50505 13.63 1.57198 13.7376 1.68635L16.3379 4.44928C16.6935 4.82701 16.4255 5.44709 15.9067 5.44709H12.9348C11.4237 5.44709 10.1835 6.76461 10.1835 8.40737V11.9597C10.1835 12.1167 10.1211 12.2673 10.0101 12.3784C9.89905 12.4894 9.74846 12.5518 9.59144 12.5518C9.43441 12.5518 9.28382 12.4894 9.17279 12.3784C9.06176 12.2673 8.99938 12.1167 8.99938 11.9597V8.40737C8.99938 6.12618 10.7531 4.26297 12.9348 4.26297H14.5365Z" fill="#41464F"/>
|
|
131
131
|
</svg>
|
|
132
|
-
`,
|
|
132
|
+
`,Fh=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
133
133
|
<path d="M16.4182 15.6966L13.6824 9.83897C13.6381 9.76494 13.5754 9.70365 13.5004 9.66109C13.4254 9.61853 13.3406 9.59616 13.2544 9.59616C13.1682 9.59616 13.0834 9.61853 13.0084 9.66109C12.9334 9.70365 12.8707 9.76494 12.8265 9.83897L10.1664 15.6966C10.1332 15.7544 10.1127 15.8185 10.1061 15.8848C10.0996 15.9511 10.1073 16.018 10.1286 16.0811C10.1499 16.1442 10.1843 16.2021 10.2297 16.2509C10.275 16.2997 10.3302 16.3383 10.3916 16.3641C10.5069 16.4132 10.6365 16.4162 10.7539 16.3724C10.8712 16.3287 10.9673 16.2416 11.0223 16.1291L11.9615 14.1072H14.6223L15.5631 16.1291C15.6404 16.2973 15.8101 16.4039 15.9955 16.4016C16.0607 16.4151 16.1279 16.4151 16.193 16.4016C16.26 16.3769 16.3204 16.3372 16.3698 16.2855C16.4191 16.2339 16.456 16.1717 16.4777 16.1037C16.4995 16.0357 16.5054 15.9636 16.4951 15.8929C16.4848 15.8223 16.4585 15.7549 16.4182 15.6959V15.6966ZM12.385 13.1297L13.325 11.1551L14.265 13.1297H12.385ZM13.5697 6.02196C13.8926 6.56403 14.0728 7.17818 14.096 7.80884L13.4286 7.25326C13.3311 7.17729 13.2076 7.14266 13.0848 7.15683C12.962 7.17099 12.8497 7.23282 12.772 7.32899C12.6944 7.42516 12.6576 7.54798 12.6696 7.67101C12.6816 7.79404 12.7414 7.90744 12.8362 7.98678L14.2462 9.14299C14.327 9.21319 14.4313 9.25021 14.5382 9.2466C14.6476 9.24961 14.7543 9.21279 14.8386 9.14299L16.2681 7.98678C16.3648 7.90922 16.427 7.79658 16.441 7.67339C16.4551 7.55021 16.4199 7.42645 16.3431 7.32909C16.2638 7.23149 16.1494 7.16894 16.0244 7.1549C15.8994 7.14086 15.7739 7.17645 15.6749 7.25401L15.0368 7.77956C15.0048 6.55237 14.4941 5.38637 13.6137 4.53083C12.7333 3.67529 11.5532 3.19809 10.3256 3.20125C10.2009 3.20125 10.0814 3.25077 9.99324 3.33891C9.9051 3.42705 9.85558 3.54659 9.85558 3.67124C9.85558 3.79589 9.9051 3.91544 9.99324 4.00358C10.0814 4.09172 10.2009 4.14124 10.3256 4.14124C10.9835 4.14371 11.6292 4.31868 12.1983 4.64869C12.7674 4.97871 13.24 5.45222 13.569 6.02196H13.5697ZM9.50796 15.4241C8.53284 15.4247 7.59559 15.0466 6.89386 14.3695C6.19213 13.6924 5.78077 12.7693 5.74651 11.7948L6.41471 12.3399C6.45267 12.4047 6.5056 12.4594 6.56908 12.4996C6.63256 12.5397 6.70473 12.564 6.77955 12.5705C6.85437 12.577 6.92966 12.5655 6.99911 12.5369C7.06857 12.5084 7.13016 12.4636 7.17873 12.4063C7.2273 12.349 7.26144 12.2809 7.27828 12.2077C7.29513 12.1345 7.29418 12.0584 7.27554 11.9856C7.25689 11.9129 7.22108 11.8456 7.17111 11.7896C7.12113 11.7335 7.05845 11.6902 6.98832 11.6634L5.58734 10.4599C5.5036 10.3919 5.39902 10.3548 5.29116 10.3548C5.1833 10.3548 5.07872 10.3919 4.99497 10.4599L3.55721 11.6634C3.46047 11.7409 3.3983 11.8536 3.38424 11.9768C3.37018 12.1 3.40536 12.2237 3.48213 12.3211C3.57222 12.4314 3.70662 12.4968 3.84851 12.4998C3.95739 12.4984 4.06294 12.4621 4.14958 12.3962L4.78925 11.8706C4.83074 13.0893 5.34414 14.2441 6.22107 15.0913C7.098 15.9386 8.26984 16.4119 9.48919 16.4114C9.55104 16.4115 9.6123 16.3994 9.66946 16.3757C9.72661 16.3521 9.77855 16.3175 9.82228 16.2737C9.86601 16.23 9.90068 16.1781 9.92431 16.1209C9.94793 16.0637 9.96004 16.0025 9.95994 15.9406C9.96494 15.8769 9.95717 15.8129 9.93708 15.7522C9.917 15.6916 9.885 15.6356 9.84297 15.5875C9.80094 15.5393 9.74972 15.5001 9.69232 15.4721C9.63492 15.444 9.5725 15.4277 9.50871 15.4241H9.50796ZM6.95303 8.52359C6.84622 8.52123 6.74469 8.47672 6.67056 8.39979C6.59644 8.32285 6.55575 8.21973 6.55736 8.11291V3.95805C6.55736 3.73131 6.73605 3.54661 6.95303 3.54661C7.17001 3.54661 7.34794 3.73131 7.34794 3.95805V8.11291C7.34794 8.33815 7.17076 8.52359 6.95303 8.52359ZM8.61227 7.45447C8.50547 7.45191 8.40401 7.40721 8.33002 7.33014C8.25604 7.25306 8.21554 7.14986 8.21736 7.04304V5.17057C8.21736 4.94383 8.39604 4.75914 8.61302 4.75914C8.83 4.75914 9.00794 4.94383 9.00794 5.17057V7.04229C9.00956 7.14905 8.96899 7.25214 8.89505 7.32918C8.82111 7.40621 8.71976 7.45096 8.61302 7.45372L8.61227 7.45447ZM1.89496 7.45447C1.78822 7.45171 1.68688 7.40696 1.61294 7.32993C1.539 7.25289 1.49843 7.1498 1.50005 7.04304V5.17057C1.50005 4.94383 1.67798 4.75914 1.89496 4.75914C2.11269 4.75914 2.29063 4.94383 2.29063 5.17057V7.04229C2.31015 7.26752 2.13221 7.45372 1.89496 7.45372V7.45447ZM3.57448 8.54462C3.4676 8.54205 3.36607 8.49739 3.29197 8.42033C3.21787 8.34328 3.1772 8.24007 3.17881 8.13318V3.97832C3.1772 3.87142 3.21787 3.76822 3.29197 3.69117C3.36607 3.61411 3.4676 3.56945 3.57448 3.56688C3.68122 3.56964 3.78256 3.61439 3.8565 3.69143C3.93044 3.76846 3.97101 3.87155 3.96939 3.97832V8.13318C3.97101 8.23995 3.93044 8.34304 3.8565 8.42007C3.78256 8.49711 3.68122 8.54186 3.57448 8.54462ZM5.25399 9.75789C5.14719 9.75533 5.04573 9.71064 4.97175 9.63356C4.89776 9.55648 4.85726 9.45328 4.85908 9.34646V2.66143C4.85908 2.43469 5.03626 2.25 5.25399 2.25C5.47172 2.25 5.64891 2.43469 5.64891 2.66143V9.34646C5.65072 9.45328 5.61022 9.55648 5.53624 9.63356C5.46226 9.71064 5.3608 9.75533 5.25399 9.75789Z" fill="#41464F" stroke="#41464F" stroke-width="0.15"/>
|
|
134
134
|
</svg>
|
|
135
|
-
|
|
135
|
+
`,$h=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
136
136
|
<path d="M5.29102 10.3545C5.39888 10.3545 5.50414 10.392 5.58789 10.46L6.98828 11.6631C7.05842 11.6899 7.12093 11.734 7.1709 11.79C7.22075 11.846 7.25674 11.9128 7.27539 11.9854C7.29404 12.0581 7.29516 12.1348 7.27832 12.208C7.26145 12.2811 7.22722 12.349 7.17871 12.4062C7.13014 12.4635 7.06847 12.5085 6.99902 12.5371C6.92962 12.5656 6.85405 12.5768 6.7793 12.5703C6.70473 12.5638 6.63264 12.54 6.56934 12.5C6.50589 12.4599 6.45299 12.4046 6.41504 12.3398L5.74609 11.7949C5.78037 12.7692 6.19208 13.6921 6.89355 14.3691C7.59529 15.0462 8.53367 15.4244 9.50879 15.4238C9.57252 15.4274 9.63503 15.4437 9.69238 15.4717C9.74978 15.4997 9.80074 15.5398 9.84277 15.5879C9.88472 15.6359 9.91743 15.6914 9.9375 15.752C9.95756 15.8125 9.96493 15.8768 9.95996 15.9404C9.96006 16.0023 9.94843 16.0639 9.9248 16.1211C9.9012 16.1782 9.86595 16.2297 9.82227 16.2734C9.7786 16.3171 9.72698 16.3524 9.66992 16.376C9.61276 16.3996 9.5511 16.4112 9.48926 16.4111C8.26991 16.4116 7.09764 15.939 6.2207 15.0918C5.34388 14.2447 4.83066 13.0896 4.78906 11.8711L4.14941 12.3965C4.06284 12.4623 3.95736 12.4986 3.84863 12.5C3.70683 12.497 3.57252 12.4315 3.48242 12.3213C3.40565 12.2239 3.3707 12.0998 3.38477 11.9766C3.39889 11.8535 3.46095 11.7406 3.55762 11.6631L4.99512 10.46C5.07881 10.392 5.18323 10.3545 5.29102 10.3545ZM11.8398 14.3691L11.0225 16.1289C10.9675 16.2414 10.8712 16.3283 10.7539 16.3721C10.6366 16.4158 10.5068 16.4133 10.3916 16.3643C10.3302 16.3384 10.2748 16.2998 10.2295 16.251C10.1842 16.2022 10.1502 16.1441 10.1289 16.0811C10.1076 16.0179 10.0999 15.9511 10.1064 15.8848C10.113 15.8185 10.1328 15.754 10.166 15.6963L11.1133 13.6123L11.8398 14.3691ZM13.2324 9.5498C13.3186 9.5498 13.4035 9.57272 13.4785 9.61523C13.5535 9.65779 13.6169 9.71894 13.6611 9.79297L15.501 13.7568L13.6611 11.9102L13.1533 11.3926L12.4131 10.665L12.8047 9.79297C12.8489 9.71894 12.9123 9.65779 12.9873 9.61523C13.0621 9.57281 13.1464 9.54988 13.2324 9.5498ZM13.1621 11.4004L13.6436 11.8799L13.3359 11.1348L13.1621 11.4004ZM5.64941 8.13281V9.34668C5.65117 9.45342 5.61006 9.55677 5.53613 9.63379C5.46217 9.71074 5.36062 9.75525 5.25391 9.75781C5.14718 9.75521 5.04562 9.71079 4.97168 9.63379C4.89775 9.55677 4.85762 9.45342 4.85938 9.34668V7.33008L5.64941 8.13281ZM10.3252 3.20117C11.5528 3.19801 12.7329 3.67572 13.6133 4.53125C14.4936 5.38673 15.0051 6.5522 15.0371 7.7793L15.6748 7.25391C15.7738 7.17635 15.8994 7.14123 16.0244 7.15527C16.1493 7.16931 16.2635 7.23162 16.3428 7.3291C16.4195 7.42647 16.4555 7.55064 16.4414 7.67383C16.4273 7.79666 16.3649 7.90887 16.2686 7.98633L14.8389 9.14258C14.7546 9.21238 14.6474 9.25008 14.5381 9.24707C14.4312 9.25061 14.3268 9.21272 14.2461 9.14258L12.8359 7.98633C12.7414 7.907 12.6819 7.79375 12.6699 7.6709C12.6579 7.5479 12.6948 7.42525 12.7725 7.3291C12.8501 7.233 12.9622 7.17138 13.085 7.15723C13.2077 7.14308 13.3312 7.17704 13.4287 7.25293L14.0957 7.80859C14.0753 7.25692 13.9356 6.71771 13.6846 6.22852L13.5693 6.02148C13.2404 5.45184 12.7673 4.97841 12.1982 4.64844C11.6292 4.3185 10.983 4.14407 10.3252 4.1416C10.2007 4.14149 10.0812 4.09188 9.99316 4.00391C9.90502 3.91577 9.85547 3.79555 9.85547 3.6709C9.85556 3.5464 9.90513 3.42692 9.99316 3.33887C10.0812 3.25083 10.2007 3.20129 10.3252 3.20117ZM3.96973 6.375V8.13281C3.97134 8.23957 3.93037 8.34289 3.85645 8.41992C3.7825 8.49695 3.68096 8.54217 3.57422 8.54492C3.46746 8.54228 3.36602 8.4969 3.29199 8.41992C3.21803 8.34289 3.1771 8.2396 3.17871 8.13281V5.625L3.96973 6.375ZM1.89551 4.75879C2.11302 4.75906 2.29102 4.94433 2.29102 5.1709V7.04199C2.31052 7.26708 2.13252 7.45385 1.89551 7.4541L1.81641 7.44434C1.7395 7.427 1.66871 7.38773 1.61328 7.33008C1.53934 7.25305 1.49838 7.14973 1.5 7.04297V5.1709C1.5 4.94416 1.67853 4.75879 1.89551 4.75879ZM8.61328 4.75879C8.83017 4.7589 9.00781 4.94423 9.00781 5.1709V7.04199C9.00859 7.09345 8.99928 7.14416 8.98145 7.19141L8.21777 6.40723V5.1709C8.21777 4.94416 8.3963 4.75879 8.61328 4.75879ZM6.95312 3.54688C7.17008 3.54689 7.34764 3.7313 7.34766 3.95801V5.54199L6.55762 4.75879V3.95801C6.55764 3.73129 6.73616 3.54688 6.95312 3.54688ZM5.25391 2.25C5.47154 2.25 5.64926 2.43453 5.64941 2.66113V3.73047L4.85938 2.97168V2.66113C4.85953 2.43458 5.03634 2.25008 5.25391 2.25Z" fill="#41464F"/>
|
|
137
137
|
<line x1="2.82577" y1="3.06445" x2="15.5303" y2="15.769" stroke="#41464F" stroke-width="1.125" stroke-linecap="round"/>
|
|
138
138
|
</svg>
|
|
139
|
-
`,
|
|
139
|
+
`,Hh=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
140
140
|
<path d="M4.1713 6.63079L6.1603 8.49454C6.45182 8.78922 6.75182 9.26682 6.4603 9.56142C6.16855 9.85602 5.77075 9.85602 5.47915 9.56142L2.4322 6.47577C2.20082 6.24267 2.18395 5.86947 2.41532 5.63637L5.47922 2.50257C5.77082 2.20797 6.1687 2.20797 6.4603 2.50257C6.7519 2.79717 6.4519 3.27484 6.1603 3.56937L4.19717 5.50579H10.8923C13.5855 5.50579 15.7499 7.84159 15.7499 10.5285C15.7499 13.2154 13.5854 15.7817 10.8923 15.7817H3.75212C3.34225 15.7817 2.99837 15.5914 2.99837 15.1817C2.99837 14.7719 3.34225 14.6566 3.75212 14.6566H10.8329C12.6392 14.6566 14.6247 12.3306 14.6247 10.5285C14.6247 8.72629 12.6392 6.63094 10.8329 6.63094H4.1713V6.63079Z" fill="#41464F"/>
|
|
141
141
|
</svg>
|
|
142
|
-
`,
|
|
142
|
+
`,Gh=`<svg width="29" height="34" viewBox="0 0 29 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
143
143
|
<path d="M1.6875 0C1.2654 0 0.8154 0.16875 0.50625 0.50625C0.19665 0.84375 0 1.26585 0 1.6875V32.0625C0 32.4846 0.16875 32.9346 0.50625 33.2437C0.84375 33.5812 1.26585 33.75 1.6875 33.75H26.4375C26.8596 33.75 27.3096 33.5812 27.6187 33.2437C27.9562 32.9062 28.125 32.4841 28.125 32.0625V9.5625L18.5625 0H1.6875Z" fill="#7DAAFF"/>
|
|
144
144
|
<path d="M28.125 9.5625H20.25C19.8279 9.5625 19.3779 9.39375 19.0688 9.05625C18.7313 8.74665 18.5625 8.29665 18.5625 7.875V0L28.125 9.5625Z" fill="white" fill-opacity="0.5"/>
|
|
145
145
|
</svg>
|
|
146
|
-
`,
|
|
146
|
+
`,Bh=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
147
147
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#02DBDB"/>
|
|
148
148
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
149
149
|
<path d="M36.8735 20.3282L25.0626 22.3012C25.0243 22.3073 24.9886 22.3185 24.9538 22.3318H24.5272C24.2363 22.3318 24.0051 22.5645 24.0051 22.8514V36.3531C23.5443 36.0866 23.0084 35.9346 22.4373 35.9346C20.7057 35.9346 19.3018 37.335 19.3018 39.063C19.3018 40.791 20.7057 42.1914 22.4373 42.1914C24.1689 42.1914 25.5729 40.791 25.5729 39.063C25.5729 38.9364 25.5652 38.8118 25.5509 38.6904C25.5652 38.6424 25.5729 38.5924 25.5729 38.5393V27.5588L36.5474 25.6235V33.2236C36.0865 32.9582 35.5506 32.8051 34.9796 32.8051C33.2479 32.8051 31.844 34.2065 31.844 35.9345C31.844 37.6616 33.2479 39.063 34.9796 39.063C36.7112 39.063 38.1151 37.6616 38.1151 35.9345C38.1151 35.808 38.1075 35.6834 38.0932 35.561C38.1075 35.513 38.1151 35.4629 38.1151 35.4099V20.811C38.1151 20.5558 37.9299 20.3424 37.6859 20.2996C37.6007 20.2465 37.4935 20.2251 37.3756 20.2445L37.098 20.2914H37.0694C37 20.2914 36.9337 20.3047 36.8735 20.3282Z" fill="white"/>
|
|
150
150
|
</svg>
|
|
151
|
-
`,
|
|
151
|
+
`,jh=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
152
152
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#8CD167"/>
|
|
153
153
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
154
154
|
<path d="M29.3858 28.1802L25.5663 21.8514C25.4303 21.6289 25.1893 21.4929 24.9297 21.4929H22.5564C22.4142 21.4929 22.2783 21.53 22.1608 21.6103C21.8147 21.8267 21.7097 22.284 21.9322 22.6363L27.0187 30.6956L21.8642 38.9033C21.79 39.0207 21.7529 39.1567 21.7529 39.2989C21.7529 39.7068 22.0867 40.0405 22.4946 40.0405H24.6268C24.8864 40.0405 25.1213 39.9045 25.2573 39.6882L29.1324 33.415L32.9828 39.682C33.1188 39.9045 33.3599 40.0343 33.6133 40.0343H35.9309C36.0731 40.0343 36.209 39.9911 36.3327 39.9169C36.6788 39.6944 36.7777 39.2371 36.5552 38.8909L31.3636 30.8316L36.6355 22.6425C36.7097 22.5251 36.7529 22.3829 36.7529 22.2408C36.7529 21.8328 36.4192 21.4991 36.0113 21.4991H33.8048C33.5453 21.4991 33.3042 21.6351 33.1683 21.8576L29.3858 28.1802Z" fill="white"/>
|
|
155
155
|
</svg>
|
|
156
|
-
|
|
156
|
+
`,qh=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
157
157
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#526AF0"/>
|
|
158
158
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
159
159
|
<path d="M40 20.9375H17.5C16.9823 20.9375 16.5625 21.3573 16.5625 21.875V40.625C16.5625 41.1427 16.9823 41.5625 17.5 41.5625H40C40.5177 41.5625 40.9375 41.1427 40.9375 40.625V21.875C40.9375 21.3573 40.5177 20.9375 40 20.9375ZM39.0625 22.8125V36.6409L32.4062 31.6487C31.9091 31.2761 31.2162 31.2761 30.719 31.6487L27.831 33.8144L23.9805 30.7341C23.4979 30.3477 22.83 30.3184 22.3161 30.6641L18.4375 33.2721V22.8125H39.0625ZM18.4375 39.6875V35.532L23.077 32.4125L27.7943 36.1859L31.5625 33.3594L39.0625 38.9844V39.6875H18.4375Z" fill="white"/>
|
|
160
160
|
<path d="M34.375 30.3125C35.926 30.3125 37.1875 29.051 37.1875 27.5C37.1875 25.949 35.926 24.6875 34.375 24.6875C32.824 24.6875 31.5625 25.949 31.5625 27.5C31.5625 29.051 32.824 30.3125 34.375 30.3125ZM34.375 26.5625C34.8918 26.5625 35.3125 26.9832 35.3125 27.5C35.3125 28.0168 34.8918 28.4375 34.375 28.4375C33.8582 28.4375 33.4375 28.0168 33.4375 27.5C33.4375 26.9832 33.8582 26.5625 34.375 26.5625Z" fill="white"/>
|
|
161
161
|
</svg>
|
|
162
|
-
`,
|
|
163
|
-
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#
|
|
162
|
+
`,Kh=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
163
|
+
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#7D66FF"/>
|
|
164
164
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
165
165
|
<path d="M20.7544 33.3423C18.9575 33.3423 17.5 31.8848 17.5 30.0879C17.5 28.291 18.9575 26.8335 20.7544 26.8335C22.5513 26.8335 24.0088 28.291 24.0088 30.0879C24.0088 31.8848 22.5513 33.3423 20.7544 33.3423ZM30 33.3423C28.2031 33.3423 26.7456 31.8848 26.7456 30.0879C26.7456 28.291 28.2031 26.8335 30 26.8335C31.7969 26.8335 33.2544 28.291 33.2544 30.0879C33.2544 31.8848 31.7969 33.3423 30 33.3423ZM39.2456 33.3423C37.4487 33.3423 35.9912 31.8848 35.9912 30.0879C35.9912 28.291 37.4487 26.8335 39.2456 26.8335C41.0425 26.8335 42.5 28.291 42.5 30.0879C42.5 31.8848 41.0425 33.3423 39.2456 33.3423Z" fill="white"/>
|
|
166
166
|
</svg>
|
|
167
|
-
`,
|
|
167
|
+
`,zh=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
168
168
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#FF5F59"/>
|
|
169
169
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
170
170
|
<path d="M40.7806 49.4068C37.8271 49.4068 35.2021 44.3443 33.7959 41.063C31.4529 40.0783 28.8744 39.188 26.3904 38.5783C24.1869 40.0318 20.4834 42.188 17.6244 42.188C15.8431 42.188 14.5771 41.297 14.1084 39.7505C13.7334 38.4845 14.0619 37.5943 14.4369 37.1255C15.1869 36.0943 16.7341 35.5783 19.0779 35.5783C20.9529 35.5783 23.3431 35.9068 26.0154 36.563C27.7494 35.3443 29.4834 33.938 31.0306 32.438C30.3271 29.1568 29.5771 23.8595 31.4994 21.422C32.4369 20.2505 33.8904 19.8755 35.6244 20.3908C37.5466 20.9533 38.2494 22.1255 38.4841 23.0158C39.2806 26.2033 35.6244 30.5158 33.1396 33.047C33.7021 35.2505 34.4056 37.547 35.2966 39.6568C38.8591 41.2505 43.0771 43.5943 43.5466 46.1728C43.7341 47.063 43.4521 47.9068 42.7494 48.6103C42.1396 49.1255 41.4834 49.4068 40.7806 49.4068ZM36.4209 42.2818C38.2029 45.8915 39.8904 47.579 40.7806 47.579C40.9216 47.579 41.1091 47.5318 41.3904 47.297C41.7181 46.9693 41.7181 46.7345 41.6709 46.547C41.4834 45.6095 39.9834 44.063 36.4209 42.2818ZM19.0779 37.4533C16.7806 37.4533 16.1244 38.0158 15.9369 38.2505C15.8896 38.3443 15.7021 38.579 15.8896 39.2353C16.0306 39.7978 16.4056 40.3603 17.6244 40.3603C19.1244 40.3603 21.2806 39.5158 23.8119 38.0158C21.9834 37.6408 20.3896 37.4533 19.0771 37.4533H19.0779ZM28.3591 37.1728C29.8591 37.5943 31.4056 38.1103 32.8591 38.6728C32.3431 37.313 31.9216 35.9068 31.5466 34.5478C30.5053 35.4481 29.4425 36.3234 28.3591 37.1728ZM34.1716 22.0318C33.6556 22.0318 33.2806 22.2193 32.9521 22.5943C31.9681 23.813 31.8744 26.9068 32.6244 30.8443C35.4841 27.797 37.0306 24.9845 36.6556 23.4845C36.6084 23.2505 36.4209 22.5943 35.1084 22.2193C34.7334 22.0783 34.4529 22.0318 34.1709 22.0318H34.1716Z" fill="white"/>
|
|
171
171
|
</svg>
|
|
172
|
-
`,
|
|
172
|
+
`,Qh=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
173
173
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#FF5F59"/>
|
|
174
174
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
175
175
|
<path d="M23.8582 20.7605C23.5409 20.7605 23.2812 21.0201 23.2812 21.3374V41.2413C23.2812 41.5586 23.5409 41.8182 23.8582 41.8182H26.2019C26.5192 41.8182 26.7788 41.5586 26.7788 41.2413V34.3542H31.3437C35.6274 34.3542 38.2812 31.549 38.2812 27.5682C38.2812 23.6379 35.6635 20.7677 31.3582 20.7677H23.8582V20.7605ZM34.7187 27.561C34.7187 30.6908 32.8077 31.4768 29.5841 31.4768H26.7788V23.6595H30.8317C33.2692 23.6595 34.7187 25.0802 34.7187 27.561Z" fill="white"/>
|
|
176
176
|
</svg>
|
|
177
|
-
`,
|
|
177
|
+
`,Wh=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
178
178
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#59B7FF"/>
|
|
179
179
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
180
180
|
<rect x="15" y="25" width="20" height="3.75" rx="1.875" fill="white"/>
|
|
181
181
|
<rect x="15" y="35" width="30" height="3.75" rx="1.875" fill="white"/>
|
|
182
182
|
</svg>
|
|
183
|
-
`,
|
|
183
|
+
`,Zh=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
184
184
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#B459FF"/>
|
|
185
185
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
186
186
|
<path d="M37.444 32.1272L25.6398 39.9967C24.3964 40.8231 23.3765 40.2796 23.3765 38.7832V22.4486C23.3765 20.9522 24.3964 20.4049 25.6398 21.2388L37.444 29.112C38.6873 29.9347 38.6873 31.2971 37.444 32.1272Z" fill="white"/>
|
|
187
187
|
</svg>
|
|
188
|
-
`,
|
|
188
|
+
`,Yh=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
189
189
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#297BFF"/>
|
|
190
190
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
191
191
|
<path d="M29.5003 29.7974L32.7548 41.9377C32.7969 42.0949 32.8898 42.2339 33.0189 42.3329C33.148 42.432 33.3062 42.4857 33.469 42.4857H35.4274C35.59 42.4857 35.748 42.4321 35.8771 42.3332C36.0062 42.2343 36.0991 42.0957 36.1414 41.9387L40.7245 24.9309C40.7414 24.8681 40.75 24.8035 40.75 24.7385C40.75 24.3301 40.4189 23.999 40.0105 23.999H37.8183C37.6509 23.999 37.4886 24.0558 37.3577 24.16C37.2268 24.2642 37.1351 24.4097 37.0976 24.5727L34.2759 36.842L31.2096 24.5594C31.1696 24.3994 31.0773 24.2573 30.9473 24.1558C30.8174 24.0542 30.6572 23.999 30.4922 23.999H28.5085C28.3435 23.999 28.1833 24.0542 28.0533 24.1557C27.9233 24.2573 27.8309 24.3994 27.791 24.5594L24.7308 36.8178L21.8903 24.5714C21.8525 24.4087 21.7608 24.2635 21.63 24.1595C21.4992 24.0556 21.337 23.999 21.1699 23.999H18.9897C18.9248 23.999 18.8603 24.0075 18.7977 24.0244C18.4033 24.1303 18.1695 24.536 18.2755 24.9304L22.8462 41.9382C22.8885 42.0953 22.9813 42.234 23.1104 42.333C23.2395 42.432 23.3976 42.4857 23.5603 42.4857H25.5316C25.6943 42.4857 25.8525 42.432 25.9817 42.3329C26.1108 42.2339 26.2036 42.0949 26.2458 41.9377L29.5003 29.7974Z" fill="white"/>
|
|
192
192
|
</svg>
|
|
193
|
-
`,
|
|
193
|
+
`,Jh=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
194
194
|
<path d="M57.0557 39.1914C57.0564 38.1279 56.8473 37.0747 56.4404 36.092C56.0335 35.1094 55.4367 34.2168 54.6843 33.4651C53.9319 32.7135 53.0386 32.1176 52.0556 31.7117C51.0726 31.3058 50.0192 31.0977 48.9557 31.0995H38.1557C33.6831 31.0995 30.0557 34.7377 30.0557 39.1914V55.3995H48.9557C53.4282 55.3995 57.0557 51.7612 57.0557 47.3076V39.1914ZM40.8557 41.8995V44.5995H38.1557V41.8995H40.8557ZM48.9557 41.8995V44.5995H46.2557V41.8995H48.9557Z" fill="#C9D2E8"/>
|
|
195
195
|
<path d="M2.94532 16.3548C2.94428 14.8099 3.248 13.28 3.83907 11.8527C4.43015 10.4254 5.29697 9.12864 6.3899 8.0368C7.48283 6.94496 8.78041 6.07944 10.2083 5.48979C11.6362 4.90015 13.1664 4.59796 14.7113 4.60054H30.3993C36.8961 4.60054 42.1653 9.88543 42.1653 16.3548V39.8985H14.7113C8.21451 39.8985 2.94532 34.6136 2.94532 28.1443V16.3548ZM26.4773 20.2885V24.2105H30.3993V20.2885H26.4773ZM14.7113 20.2885V24.2105H18.6333V20.2885H14.7113Z" fill="#0047FF"/>
|
|
196
196
|
</svg>
|
|
197
|
-
`,
|
|
197
|
+
`,Xh=`<svg width="13" height="12" viewBox="0 0 13 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
198
198
|
<path d="M11.3644 9.20443L8.83787 8.22025C8.83787 8.22025 8.3554 8.03316 8.16893 7.8501C8.04885 7.73095 8.05723 7.45326 8.16365 7.09645C8.27008 6.73995 9.56483 5.29161 9.56483 3.97575C9.56483 1.94441 8.22819 0.296875 6.58096 0.296875C4.93343 0.296875 3.59833 1.94441 3.59833 3.97575C3.59833 5.23638 4.75254 6.73871 4.89464 7.01082C5.03706 7.28447 5.00262 7.70086 4.89061 7.82621C4.72182 8.01578 4.10408 8.20505 4.10408 8.20505L1.82638 9.21963C1.29427 9.41014 0.876953 9.91184 0.876953 10.479V10.7471C0.876953 11.3648 1.37866 11.7434 1.99517 11.7434H11.1931C11.8096 11.7434 12.3123 11.3648 12.3123 10.7471V10.479C12.3138 9.91153 11.8965 9.39462 11.3644 9.20443Z" fill="#BCBCBC"/>
|
|
199
199
|
</svg>
|
|
200
|
-
`,
|
|
200
|
+
`,e0=`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
201
201
|
<path d="M10.0626 1.54947L8.97368 0.460596L5.15078 4.28331L1.30478 0.4375L0.21582 1.52641L4.06183 5.37222L0.227398 9.20648L1.31632 10.2954L5.15077 6.46113L8.97367 10.2839L10.0626 9.19497L6.23973 5.37222L10.0626 1.54947Z" fill="white"/>
|
|
202
202
|
</svg>
|
|
203
|
-
`,
|
|
203
|
+
`,t0=`<svg width="13" height="11" viewBox="0 0 13 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
204
204
|
<path d="M8.91047 3.14917H2.36044L3.89083 1.61878C4.13568 1.37391 4.13568 1.00662 3.89083 0.761769C3.64597 0.516917 3.27867 0.516903 3.0338 0.761769L0.462758 3.33281C0.401552 3.39402 0.340332 3.45524 0.340332 3.57767V3.82253C0.340332 3.88375 0.340332 3.94496 0.401552 3.94496L0.462758 4.00618C0.462758 4.0674 0.523978 4.0674 0.585198 4.1286L3.15624 6.0875C3.27867 6.14871 3.40109 6.20993 3.52353 6.20993C3.70718 6.20993 3.89083 6.14871 4.01325 5.96506C4.1969 5.72021 4.1969 5.2917 3.89083 5.10805L2.72773 4.37347H8.9717C10.2572 4.37347 11.3591 5.41412 11.3591 6.76087C11.3591 8.10761 10.2572 9.14827 8.91047 9.14827H4.56419C4.1969 9.14827 3.95203 9.39313 3.95203 9.76042C3.95203 10.1277 4.1969 10.3726 4.56419 10.3726H8.91047C10.8694 10.3726 12.5222 8.78097 12.5222 6.76087C12.5222 4.74076 10.9306 3.14917 8.91047 3.14917Z" fill="white"/>
|
|
205
205
|
</svg>
|
|
206
|
-
`,
|
|
206
|
+
`,s0=`<svg width="20" height="19" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
207
207
|
<path d="M5.32359 5.34793H5.32361C5.49247 5.34791 5.6569 5.29379 5.79277 5.19352C5.92865 5.09325 6.02884 4.95209 6.07866 4.79073L6.72513 2.6996L6.72514 2.69956C6.73276 2.67489 6.74807 2.65332 6.76883 2.63799C6.7896 2.62266 6.81473 2.61438 6.84054 2.61437H13.1586C13.1844 2.61438 13.2096 2.62266 13.2303 2.63799C13.2511 2.65332 13.2664 2.6749 13.274 2.69956L13.274 2.69959L13.9205 4.791C13.9704 4.9523 14.0706 5.0934 14.2065 5.19362C14.3423 5.29385 14.5067 5.34792 14.6756 5.34793H16.6057C16.7412 5.34793 16.8754 5.37463 17.0006 5.42649C17.1258 5.47835 17.2396 5.55437 17.3354 5.65021C17.4313 5.74604 17.5073 5.85981 17.5592 5.98502C17.611 6.11023 17.6377 6.24443 17.6377 6.37996V15.4918C17.6377 15.6274 17.611 15.7616 17.5592 15.8868C17.5073 16.012 17.4313 16.1258 17.3354 16.2216C17.2396 16.3174 17.1258 16.3934 17.0006 16.4453C16.8754 16.4972 16.7412 16.5239 16.6057 16.5239H3.39346C3.25794 16.5239 3.12374 16.4972 2.99852 16.4453L2.95759 16.5441L2.99852 16.4453C2.87331 16.3934 2.75954 16.3174 2.66371 16.2216C2.56788 16.1258 2.49186 16.012 2.44 15.8868C2.38813 15.7616 2.36144 15.6274 2.36144 15.4918V6.37996C2.36144 6.24443 2.38813 6.11023 2.44 5.98502C2.49186 5.85981 2.56788 5.74604 2.66371 5.65021C2.75954 5.55437 2.87331 5.47835 2.99852 5.42649C3.12374 5.37463 3.25794 5.34793 3.39346 5.34793H5.32359ZM5.21479 2.23276L5.31698 2.26435L5.21479 2.23277L4.74058 3.76723H3.39346C1.95052 3.76723 0.780734 4.93702 0.780734 6.37996V15.4918C0.780734 16.9348 1.95052 18.1046 3.39346 18.1046H16.6057C18.0486 18.1046 19.2184 16.9348 19.2184 15.4918V6.37996C19.2184 4.93702 18.0486 3.76723 16.6057 3.76723H15.2586L14.7844 2.23277C14.677 1.88545 14.4613 1.58164 14.1687 1.36586C13.8762 1.15007 13.5222 1.03366 13.1587 1.03366H6.84049C6.47697 1.03366 6.12299 1.15007 5.83044 1.36586C5.53789 1.58164 5.32213 1.88545 5.21479 2.23276ZM6.47566 10.4803C6.47566 12.4264 8.05343 14.0042 9.99958 14.0042C11.9457 14.0042 13.5235 12.4264 13.5235 10.4803C13.5235 8.53416 11.9457 6.95639 9.99958 6.95639C8.05343 6.95639 6.47566 8.53416 6.47566 10.4803ZM11.3736 11.8544C11.0092 12.2188 10.515 12.4235 9.99958 12.4235C9.48421 12.4235 8.98994 12.2188 8.62552 11.8544C8.2611 11.4899 8.05637 10.9957 8.05637 10.4803C8.05637 9.96493 8.2611 9.47067 8.62552 9.10625C8.98994 8.74182 9.48421 8.53709 9.99958 8.53709C10.515 8.53709 11.0092 8.74182 11.3736 9.10625C11.7381 9.47067 11.9428 9.96493 11.9428 10.4803C11.9428 10.9957 11.7381 11.4899 11.3736 11.8544Z" fill="white" stroke="#0099FF" stroke-width="0.213922"/>
|
|
208
208
|
</svg>
|
|
209
|
-
`,
|
|
209
|
+
`,Oa=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
210
210
|
<path d="M12.8671 11.9976L17.4274 7.43731C17.6576 7.20712 17.6576 6.82762 17.4274 6.59743L17.4025 6.57255C17.1723 6.34235 16.7928 6.34235 16.5626 6.57255L12.0024 11.139L7.4421 6.57255C7.21191 6.34235 6.83241 6.34235 6.60222 6.57255L6.57733 6.59743C6.34092 6.82762 6.34092 7.20712 6.57733 7.43731L11.1376 11.9976L6.57733 16.5578C6.34714 16.788 6.34714 17.1675 6.57733 17.3977L6.60222 17.4226C6.83241 17.6528 7.21191 17.6528 7.4421 17.4226L12.0024 12.8623L16.5626 17.4226C16.7928 17.6528 17.1723 17.6528 17.4025 17.4226L17.4274 17.3977C17.6576 17.1675 17.6576 16.788 17.4274 16.5578L12.8671 11.9976Z" fill="#020814"/>
|
|
211
211
|
</svg>
|
|
212
|
-
`,
|
|
213
|
-
<path d="M5.79926 11.9556V13.5689H4.63414V11.9999C2.08797 11.8042 0.0800781 9.71316 0.0800781 7.35262C0.0800781 7.19812 0.141455 7.04994 0.250706 6.94069C0.359957 6.83144 0.508133 6.77006 0.662638 6.77006C0.817142 6.77006 0.965319 6.83144 1.07457 6.94069C1.18382 7.04994 1.2452 7.19812 1.2452 7.35262C1.2452 9.18575 2.9354 10.8495 5.02407 10.8495C7.11274 10.8495 8.80216 9.18497 8.80216 7.35262C8.80215 7.27611 8.81721 7.20035 8.84648 7.12966C8.87575 7.05897 8.91866 6.99474 8.97276 6.94063C9.02686 6.88653 9.09108 6.84361 9.16177 6.81433C9.23245 6.78505 9.30821 6.76998 9.38472 6.76998C9.46123 6.76998 9.53699 6.78505 9.60768 6.81433C9.67836 6.84361 9.74259 6.88653 9.79669 6.94063C9.85078 6.99474 9.89369 7.05897 9.92296 7.12966C9.95223 7.20035 9.96729 7.27611 9.96728 7.35262C9.96728 9.59276 8.15979 11.5906 5.79926 11.9556ZM5.04504 0.125C5.66306 0.125 6.25576 0.370507 6.69277 0.807511C7.12977 1.24452 7.37528 1.83722 7.37528 2.45524V7.11572C7.37528 7.42173 7.31501 7.72474 7.1979 8.00746C7.08079 8.29018 6.90915 8.54706 6.69277 8.76344C6.47639 8.97983 6.2195 9.15147 5.93678 9.26858C5.65407 9.38568 5.35105 9.44595 5.04504 9.44595C4.73903 9.44595 4.43601 9.38568 4.1533 9.26858C3.87058 9.15147 3.6137 8.97983 3.39731 8.76344C3.18093 8.54706 3.00929 8.29018 2.89218 8.00746C2.77507 7.72474 2.7148 7.42173 2.7148 7.11572V2.45524C2.7148 1.83722 2.96031 1.24452 3.39731 0.807511C3.83432 0.370507 4.42702 0.125 5.04504 0.125Z" fill="#0099FF"/>
|
|
214
|
-
</svg>
|
|
215
|
-
`,Jf=`<svg width="10" height="14" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
216
|
-
<path d="M5.79926 11.9556V13.5689H4.63414V11.9999C2.08797 11.8042 0.0800781 9.71316 0.0800781 7.35262C0.0800781 7.19812 0.141455 7.04994 0.250706 6.94069C0.359957 6.83144 0.508133 6.77006 0.662638 6.77006C0.817142 6.77006 0.965319 6.83144 1.07457 6.94069C1.18382 7.04994 1.2452 7.19812 1.2452 7.35262C1.2452 9.18575 2.9354 10.8495 5.02407 10.8495C7.11274 10.8495 8.80216 9.18497 8.80216 7.35262C8.80215 7.27611 8.81721 7.20035 8.84648 7.12966C8.87575 7.05897 8.91866 6.99474 8.97276 6.94063C9.02686 6.88653 9.09108 6.84361 9.16177 6.81433C9.23245 6.78505 9.30821 6.76998 9.38472 6.76998C9.46123 6.76998 9.53699 6.78505 9.60768 6.81433C9.67836 6.84361 9.74259 6.88653 9.79669 6.94063C9.85078 6.99474 9.89369 7.05897 9.92296 7.12966C9.95223 7.20035 9.96729 7.27611 9.96728 7.35262C9.96728 9.59276 8.15979 11.5906 5.79926 11.9556ZM5.04504 0.125C5.66306 0.125 6.25576 0.370507 6.69277 0.807511C7.12977 1.24452 7.37528 1.83722 7.37528 2.45524V7.11572C7.37528 7.42173 7.31501 7.72474 7.1979 8.00746C7.08079 8.29018 6.90915 8.54706 6.69277 8.76344C6.47639 8.97983 6.2195 9.15147 5.93678 9.26858C5.65407 9.38568 5.35105 9.44595 5.04504 9.44595C4.73903 9.44595 4.43601 9.38568 4.1533 9.26858C3.87058 9.15147 3.6137 8.97983 3.39731 8.76344C3.18093 8.54706 3.00929 8.29018 2.89218 8.00746C2.77507 7.72474 2.7148 7.42173 2.7148 7.11572V2.45524C2.7148 1.83722 2.96031 1.24452 3.39731 0.807511C3.83432 0.370507 4.42702 0.125 5.04504 0.125Z" fill="white"/>
|
|
217
|
-
</svg>
|
|
218
|
-
`,Xf=`<svg width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
219
|
-
<path d="M14.5782 4.03836C14.5685 3.93235 14.5195 3.83378 14.441 3.76192C14.3624 3.69006 14.2599 3.65008 14.1534 3.64978H12.8722V2.08652C12.8716 1.97389 12.8265 1.86606 12.7467 1.78662C12.6668 1.70717 12.5588 1.66258 12.4461 1.66258H6.24677L5.10574 0.400547C5.06096 0.350645 5.00464 0.312465 4.9417 0.289342C4.89091 0.268848 4.8367 0.25815 4.78193 0.257813H1.37334C1.26063 0.257812 1.15252 0.302467 1.07266 0.382003C0.992805 0.461539 0.947716 0.569476 0.947266 0.682182L0.947266 10.8589C0.947941 10.9715 0.993129 11.0792 1.07296 11.1586C1.15279 11.2379 1.26078 11.2825 1.37334 11.2825H11.7998C11.8911 11.2859 11.981 11.26 12.0565 11.2084C12.1319 11.1569 12.1887 11.0825 12.2186 10.9961L14.5595 4.2318C14.5808 4.16661 14.5867 4.10142 14.5782 4.03836ZM3.71674 3.64978H3.69416C3.51862 3.65106 3.3533 3.76141 3.29365 3.93611L1.79984 8.25479V1.1057H4.59701L5.73718 2.36602C5.79999 2.43566 5.88428 2.4823 5.97664 2.49853C6.00731 2.50705 6.04055 2.51046 6.07378 2.51046H12.0218V3.64978H3.71674Z" fill="#0099FF"/>
|
|
220
|
-
</svg>
|
|
221
|
-
`,eh=`<svg width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
222
|
-
<path d="M14.5782 4.03836C14.5685 3.93235 14.5195 3.83378 14.441 3.76192C14.3624 3.69006 14.2599 3.65008 14.1534 3.64978H12.8722V2.08652C12.8716 1.97389 12.8265 1.86606 12.7467 1.78662C12.6668 1.70717 12.5588 1.66258 12.4461 1.66258H6.24677L5.10574 0.400547C5.06096 0.350645 5.00464 0.312465 4.9417 0.289342C4.89091 0.268848 4.8367 0.25815 4.78193 0.257813H1.37334C1.26063 0.257812 1.15252 0.302467 1.07266 0.382003C0.992805 0.461539 0.947716 0.569476 0.947266 0.682182L0.947266 10.8589C0.947941 10.9715 0.993129 11.0792 1.07296 11.1586C1.15279 11.2379 1.26078 11.2825 1.37334 11.2825H11.7998C11.8911 11.2859 11.981 11.26 12.0565 11.2084C12.1319 11.1569 12.1887 11.0825 12.2186 10.9961L14.5595 4.2318C14.5808 4.16661 14.5867 4.10142 14.5782 4.03836ZM3.71674 3.64978H3.69416C3.51862 3.65106 3.3533 3.76141 3.29365 3.93611L1.79984 8.25479V1.1057H4.59701L5.73718 2.36602C5.79999 2.43566 5.88428 2.4823 5.97664 2.49853C6.00731 2.50705 6.04055 2.51046 6.07378 2.51046H12.0218V3.64978H3.71674Z" fill="white"/>
|
|
223
|
-
</svg>
|
|
224
|
-
`,th=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
212
|
+
`,n0=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
225
213
|
<path d="M17.5223 11.6612L8.44708 17.7457C7.52958 18.3607 6.28709 18.1157 5.67209 17.1984C5.45119 16.8689 5.33324 16.4812 5.33325 16.0845V3.91553C5.33325 2.81103 6.22875 1.91553 7.33325 1.91553C7.72992 1.91552 8.11762 2.03346 8.44708 2.25436L17.5221 8.33886C18.4396 8.95386 18.6848 10.1964 18.0696 11.1139C17.9245 11.3302 17.7386 11.5161 17.5223 11.6612Z" fill="#020814"/>
|
|
226
214
|
</svg>
|
|
227
|
-
`,
|
|
215
|
+
`,i0=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
228
216
|
<rect x="4" y="2" width="4" height="16" rx="2" fill="#0047FF"/>
|
|
229
217
|
<rect x="12" y="2" width="4" height="16" rx="2" fill="#0047FF"/>
|
|
230
218
|
</svg>
|
|
231
|
-
`,
|
|
219
|
+
`,o0=`<svg width="85" height="78" viewBox="0 0 85 78" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
232
220
|
<path d="M66.4263 40.3517C71.3137 40.3582 75.9985 42.3055 79.4504 45.7653C82.9024 49.2252 84.839 53.9143 84.8343 58.8017C84.8343 68.993 76.5931 77.2552 66.4263 77.2552C61.5396 77.2478 56.8557 75.3001 53.4045 71.8404C49.9533 68.3806 48.0172 63.692 48.0219 58.8052C48.0219 48.614 56.2631 40.3517 66.4263 40.3517ZM68.4114 65.9191H64.3363V70.1203H68.4114V65.9191ZM74.6395 0.234375C77.6434 0.234375 80.066 2.67804 80.066 5.67485V39.0459C76.0612 36.2565 71.2963 34.7643 66.4158 34.7712C61.8212 34.7662 57.3229 36.0889 53.4623 38.5802L49.1142 34.3301C49.0342 34.2501 48.9392 34.1866 48.8347 34.1433C48.7302 34.1 48.6181 34.0777 48.505 34.0777C48.3918 34.0777 48.2798 34.1 48.1753 34.1433C48.0708 34.1866 47.9758 34.2501 47.8958 34.3301L30.7587 51.1031C30.6693 51.1901 30.5624 51.257 30.4451 51.2993C30.3278 51.3416 30.2027 51.3583 30.0784 51.3484C29.9541 51.3384 29.8334 51.302 29.7243 51.2416C29.6152 51.1812 29.5202 51.0982 29.4458 50.9981L21.8523 40.7753C21.7719 40.6661 21.667 40.5772 21.546 40.516C21.425 40.4548 21.2912 40.4228 21.1556 40.4228C21.02 40.4228 20.8862 40.4548 20.7652 40.516C20.6442 40.5772 20.5392 40.6661 20.4589 40.7753L8.91628 56.3195C8.81857 56.4498 8.75915 56.6048 8.74468 56.767C8.73022 56.9292 8.76129 57.0922 8.83441 57.2377C8.90752 57.3832 9.01978 57.5054 9.15856 57.5906C9.29734 57.6758 9.45713 57.7206 9.61997 57.7199H42.4659C42.4553 58.0875 42.4448 58.4551 42.4448 58.8227C42.4448 61.2349 42.8019 63.5595 43.4636 65.7616H6.24155C3.23774 65.7616 0.811584 63.3179 0.811584 60.3176V5.67485C0.811584 2.66403 3.24824 0.234375 6.23805 0.234375H74.6395ZM68.6424 47.4972H64.2312L64.7669 64.0881V64.1932H67.9808L68.6459 47.4972H68.6424ZM21.4252 12.9428C19.5826 13.0007 17.8348 13.7734 16.5519 15.0972C15.269 16.4211 14.5516 18.1922 14.5516 20.0357C14.5516 21.8792 15.269 23.6504 16.5519 24.9742C17.8348 26.2981 19.5826 27.0708 21.4252 27.1287C23.3036 27.1249 25.1037 26.3759 26.4303 25.046C27.7569 23.7161 28.5015 21.9141 28.5006 20.0357C28.5024 18.1567 27.7583 16.3538 26.4316 15.0232C25.1049 13.6925 23.3042 12.943 21.4252 12.9393V12.9428Z" fill="#CFD8ED"/>
|
|
233
221
|
</svg>
|
|
234
|
-
`,
|
|
222
|
+
`,r0=`<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
235
223
|
<circle cx="18" cy="18.0001" r="17" fill="black" fill-opacity="0.5" stroke="white" stroke-width="2" stroke-linecap="round"/>
|
|
236
224
|
<path d="M22.9529 18.3662L15.2991 23.4687C14.4929 24.0045 13.8315 23.6521 13.8315 22.6818V12.0906C13.8315 11.1203 14.4929 10.7654 15.2991 11.3061L22.9529 16.4111C23.759 16.9445 23.759 17.8279 22.9529 18.3662Z" fill="white"/>
|
|
237
225
|
</svg>
|
|
238
|
-
`,
|
|
226
|
+
`,a0=`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
239
227
|
<g clip-path="url(#clip0_211_2152)">
|
|
240
228
|
<path d="M6.99982 0.65625C10.5309 0.65625 13.3436 3.46889 13.3436 7C13.3436 10.5311 10.5309 13.3438 6.99982 13.3438C3.46871 13.3438 0.656067 10.5311 0.656067 7C0.656067 3.46889 3.46871 0.65625 6.99982 0.65625Z" stroke="#FF5A50" stroke-width="1.3125"/>
|
|
241
229
|
<path d="M6.82464 3.50212C6.5896 3.50212 6.46571 3.59869 6.31995 3.74444C6.18148 3.93757 6.13229 4.13252 6.13047 4.36573C6.13047 4.60806 6.13047 4.4623 6.17966 4.89775L6.31084 7.30457C6.31084 7.5396 6.36003 7.73273 6.4566 7.97505C6.50579 8.12081 6.64973 8.21737 6.79548 8.21737C6.99043 8.21737 7.13437 8.12081 7.18356 7.97505C7.28013 7.78921 7.32932 7.54689 7.32932 7.30457L7.52245 4.84856C7.53703 4.75928 7.57164 4.43497 7.57164 4.38578C7.59897 4.21451 7.53703 3.923 7.42589 3.79181C7.32932 3.60597 7.087 3.48208 6.82464 3.50212Z" fill="#FF5A50"/>
|
|
@@ -247,11 +235,11 @@ var Qv=Object.defineProperty;var Yv=(Oe,j,f)=>j in Oe?Qv(Oe,j,{enumerable:!0,con
|
|
|
247
235
|
</clipPath>
|
|
248
236
|
</defs>
|
|
249
237
|
</svg>
|
|
250
|
-
`,
|
|
238
|
+
`,l0=`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
251
239
|
<circle cx="7" cy="7" r="6.34375" stroke="#46DB7A" stroke-width="1.3125"/>
|
|
252
240
|
<path d="M4.22888 7.72945L5.97888 9.47945L10.0622 5.39612" stroke="#46DB7A" stroke-width="1.16667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
253
241
|
</svg>
|
|
254
|
-
`,
|
|
242
|
+
`,c0=`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
255
243
|
<g clip-path="url(#clip0_232_1031)">
|
|
256
244
|
<path d="M6.99982 0.65625C10.5309 0.65625 13.3436 3.46889 13.3436 7C13.3436 10.5311 10.5309 13.3438 6.99982 13.3438C3.46871 13.3438 0.656067 10.5311 0.656067 7C0.656067 3.46889 3.46871 0.65625 6.99982 0.65625Z" stroke="#B8B8B8" stroke-width="1.3125"/>
|
|
257
245
|
</g>
|
|
@@ -261,7 +249,7 @@ var Qv=Object.defineProperty;var Yv=(Oe,j,f)=>j in Oe?Qv(Oe,j,{enumerable:!0,con
|
|
|
261
249
|
</clipPath>
|
|
262
250
|
</defs>
|
|
263
251
|
</svg>
|
|
264
|
-
`,
|
|
252
|
+
`,u0=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
265
253
|
<circle cx="8.00004" cy="7.99998" r="6.66667" stroke="url(#paint0_linear_23_808)" stroke-width="1.3"/>
|
|
266
254
|
<defs>
|
|
267
255
|
<linearGradient id="paint0_linear_23_808" x1="23.2381" y1="-2.9524" x2="4.66671" y2="10.8571" gradientUnits="userSpaceOnUse">
|
|
@@ -270,7 +258,7 @@ var Qv=Object.defineProperty;var Yv=(Oe,j,f)=>j in Oe?Qv(Oe,j,{enumerable:!0,con
|
|
|
270
258
|
</linearGradient>
|
|
271
259
|
</defs>
|
|
272
260
|
</svg>
|
|
273
|
-
`,
|
|
261
|
+
`,d0=`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
274
262
|
<g clip-path="url(#clip0_232_1031)">
|
|
275
263
|
<path d="M6.99982 0.65625C10.5309 0.65625 13.3436 3.46889 13.3436 7C13.3436 10.5311 10.5309 13.3438 6.99982 13.3438C3.46871 13.3438 0.656067 10.5311 0.656067 7C0.656067 3.46889 3.46871 0.65625 6.99982 0.65625Z" stroke="#E4E7ED" stroke-width="1.3125"/>
|
|
276
264
|
</g>
|
|
@@ -280,7 +268,7 @@ var Qv=Object.defineProperty;var Yv=(Oe,j,f)=>j in Oe?Qv(Oe,j,{enumerable:!0,con
|
|
|
280
268
|
</clipPath>
|
|
281
269
|
</defs>
|
|
282
270
|
</svg>
|
|
283
|
-
`,
|
|
271
|
+
`,f0=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
284
272
|
<circle cx="8.00004" cy="7.99998" r="6.66667" stroke="url(#paint0_linear_23_808)" stroke-width="1.3"/>
|
|
285
273
|
<defs>
|
|
286
274
|
<linearGradient id="paint0_linear_23_808" x1="23.2381" y1="-2.9524" x2="4.66671" y2="10.8571" gradientUnits="userSpaceOnUse">
|
|
@@ -289,105 +277,105 @@ var Qv=Object.defineProperty;var Yv=(Oe,j,f)=>j in Oe?Qv(Oe,j,{enumerable:!0,con
|
|
|
289
277
|
</linearGradient>
|
|
290
278
|
</defs>
|
|
291
279
|
</svg>
|
|
292
|
-
`,
|
|
280
|
+
`,jc=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
293
281
|
<path d="M0 8C0 3.58172 3.58172 0 8 0H12C16.4183 0 20 3.58172 20 8V12C20 16.4183 16.4183 20 12 20H8C3.58172 20 0 16.4183 0 12V8Z" fill="#E3E7EF"/>
|
|
294
282
|
<circle cx="6" cy="10" r="1" fill="#020814"/>
|
|
295
283
|
<circle cx="10" cy="10" r="1" fill="#020814"/>
|
|
296
284
|
<circle cx="14" cy="10" r="1" fill="#020814"/>
|
|
297
285
|
</svg>
|
|
298
|
-
`,dh=Fc.replace(/#E3E7EF/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),fh=Pc.replace(/#CCCCCC/g,"#0047FF"),hh=Nc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),ph=Uc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),gh=Dc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),_h=kc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),mh=Ta.replace(/#020814/g,"#0047FF").replace(/<svg([^>]*)>/,'<svg$1><rect width="24" height="24" rx="4" fill="#E3E7EF"/>');URL.createObjectURL(new Blob([Df],{type:"image/svg+xml"}));const Tn=URL.createObjectURL(new Blob([Pf],{type:"image/svg+xml"})),Ia=URL.createObjectURL(new Blob([Vf],{type:"image/svg+xml"})),Ts=URL.createObjectURL(new Blob([$f],{type:"image/svg+xml"})),wa=URL.createObjectURL(new Blob([Ff],{type:"image/svg+xml"})),Eh=URL.createObjectURL(new Blob([Hf],{type:"image/svg+xml"})),Hc=URL.createObjectURL(new Blob([Gf],{type:"image/svg+xml"})),Wr=URL.createObjectURL(new Blob([Bf],{type:"image/svg+xml"})),Qs=URL.createObjectURL(new Blob([jf],{type:"image/svg+xml"})),Gc=URL.createObjectURL(new Blob([Kf],{type:"image/svg+xml"})),vh={jpg:Ts,jpeg:Ts,png:Ts,gif:Ts,bmp:Ts,webp:Ts,svg:Ts,tif:Ts,tiff:Ts,ico:Ts,heic:Ts,txt:Wr,log:Wr,md:Wr,rtf:Wr,doc:Gc,docx:Gc,xls:Ia,xlsx:Ia,csv:Ia,ppt:Hc,pptx:Hc,pdf:Eh,mp3:Tn,wav:Tn,ogg:Tn,aac:Tn,flac:Tn,m4a:Tn,wma:Tn,amr:Tn,mp4:Qs,mov:Qs,avi:Qs,mkv:Qs,webm:Qs,wmv:Qs,flv:Qs,m4v:Qs,"3gp":Qs},Ch=e=>{if(!e)return wa;const t=e.lastIndexOf(".");if(t<0||t===e.length-1)return wa;const s=e.slice(t+1).toLowerCase();return vh[s]||wa},yh=URL.createObjectURL(new Blob([hh],{type:"image/svg+xml"})),Sh=URL.createObjectURL(new Blob([ph],{type:"image/svg+xml"})),Th=URL.createObjectURL(new Blob([gh],{type:"image/svg+xml"})),Ih=URL.createObjectURL(new Blob([_h],{type:"image/svg+xml"})),Bc=URL.createObjectURL(new Blob([Fc],{type:"image/svg+xml"})),jc=URL.createObjectURL(new Blob([dh],{type:"image/svg+xml"})),Kc=URL.createObjectURL(new Blob([bc],{type:"image/svg+xml"})),wh=URL.createObjectURL(new Blob([Lc],{type:"image/svg+xml"})),Rh=Ac.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),Mh=xc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),Oh=Lc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),bh=bc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),Lh=URL.createObjectURL(new Blob([Ac],{type:"image/svg+xml"})),Ah=URL.createObjectURL(new Blob([Rh],{type:"image/svg+xml"})),xh=URL.createObjectURL(new Blob([xc],{type:"image/svg+xml"})),kh=URL.createObjectURL(new Blob([Mh],{type:"image/svg+xml"})),Uh=URL.createObjectURL(new Blob([Oh],{type:"image/svg+xml"})),zc=URL.createObjectURL(new Blob([bh],{type:"image/svg+xml"})),Nh=URL.createObjectURL(new Blob([Cf],{type:"image/svg+xml"})),qc=URL.createObjectURL(new Blob([Vc],{type:"image/svg+xml"})),Dh=URL.createObjectURL(new Blob([Lf],{type:"image/svg+xml"})),Ph=URL.createObjectURL(new Blob([Af],{type:"image/svg+xml"})),Vh=URL.createObjectURL(new Blob([xf],{type:"image/svg+xml"})),Zc=URL.createObjectURL(new Blob([$c],{type:"image/svg+xml"})),$h=$c.replace(/#41464F/g,"#0047FF"),Fh=Vc.replace(/#41464F/g,"#E35858"),Hh=Ta.replace(/#020814/g,"#0047FF"),Gh=URL.createObjectURL(new Blob([$h],{type:"image/svg+xml"})),Bh=URL.createObjectURL(new Blob([Fh],{type:"image/svg+xml"})),jh=URL.createObjectURL(new Blob([Hh],{type:"image/svg+xml"})),Kh=URL.createObjectURL(new Blob([kf],{type:"image/svg+xml"})),zh=URL.createObjectURL(new Blob([Uf],{type:"image/svg+xml"})),qh=URL.createObjectURL(new Blob([Nf],{type:"image/svg+xml"})),Zh=URL.createObjectURL(new Blob([Tf],{type:"image/svg+xml"})),Wh=URL.createObjectURL(new Blob([If],{type:"image/svg+xml"})),Qh=URL.createObjectURL(new Blob([wf],{type:"image/svg+xml"})),Yh=URL.createObjectURL(new Blob([Rf],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([Mf],{type:"image/svg+xml"})),URL.createObjectURL(new Blob([Of],{type:"image/svg+xml"}));const Jh=URL.createObjectURL(new Blob([bf],{type:"image/svg+xml"})),Xh=URL.createObjectURL(new Blob([kc],{type:"image/svg+xml"})),e5=URL.createObjectURL(new Blob([Uc],{type:"image/svg+xml"})),t5=URL.createObjectURL(new Blob([Nc],{type:"image/svg+xml"})),s5=URL.createObjectURL(new Blob([Dc],{type:"image/svg+xml"})),n5=URL.createObjectURL(new Blob([Pc],{type:"image/svg+xml"})),i5=URL.createObjectURL(new Blob([fh],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([yf],{type:"image/svg+xml"}));const r5=URL.createObjectURL(new Blob([Sf],{type:"image/svg+xml"})),Qr=URL.createObjectURL(new Blob([ff],{type:"image/svg+xml"})),Yr=URL.createObjectURL(new Blob([hf],{type:"image/svg+xml"})),Ra=URL.createObjectURL(new Blob([pf],{type:"image/svg+xml"})),o5=URL.createObjectURL(new Blob([gf],{type:"image/svg+xml"})),a5=URL.createObjectURL(new Blob([_f],{type:"image/svg+xml"})),Wc=URL.createObjectURL(new Blob([mf],{type:"image/svg+xml"})),l5=URL.createObjectURL(new Blob([Ef],{type:"image/svg+xml"})),Qc=URL.createObjectURL(new Blob([vf],{type:"image/svg+xml"})),Yc=URL.createObjectURL(new Blob([zf],{type:"image/svg+xml"})),c5=URL.createObjectURL(new Blob([qf],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([Zf],{type:"image/svg+xml"}));const u5=URL.createObjectURL(new Blob([Wf],{type:"image/svg+xml"})),d5=URL.createObjectURL(new Blob([Qf],{type:"image/svg+xml"})),Jc=URL.createObjectURL(new Blob([Ta],{type:"image/svg+xml"})),f5=URL.createObjectURL(new Blob([mh],{type:"image/svg+xml"})),h5=URL.createObjectURL(new Blob([Yf],{type:"image/svg+xml"})),p5=URL.createObjectURL(new Blob([Jf],{type:"image/svg+xml"})),g5=URL.createObjectURL(new Blob([Xf],{type:"image/svg+xml"})),_5=URL.createObjectURL(new Blob([eh],{type:"image/svg+xml"})),m5=URL.createObjectURL(new Blob([th],{type:"image/svg+xml"})),E5=URL.createObjectURL(new Blob([sh],{type:"image/svg+xml"})),Xc=URL.createObjectURL(new Blob([nh],{type:"image/svg+xml"})),v5=URL.createObjectURL(new Blob([ih],{type:"image/svg+xml"})),e1=URL.createObjectURL(new Blob([rh],{type:"image/svg+xml"})),C5=URL.createObjectURL(new Blob([oh],{type:"image/svg+xml"})),t1=URL.createObjectURL(new Blob([ah],{type:"image/svg+xml"})),y5=URL.createObjectURL(new Blob([lh],{type:"image/svg+xml"})),S5=URL.createObjectURL(new Blob([ch],{type:"image/svg+xml"})),T5=URL.createObjectURL(new Blob([uh],{type:"image/svg+xml"}));class I5 extends Sa{constructor(s,n,i,r){super(s,n,i);K(this,"GetDefaultTag",B.L_GET_DEFAULT_USER_PROFILE_HOOK_O);K(this,"GetDefaultErrorTag",B.L_GET_DEFAULT_USER_PROFILE_HOOK_E);K(this,"ReqStartTag",B.L_REQ_USER_PROFILE_HOOK_T);K(this,"ReqFailedTag",B.L_REQ_USER_PROFILE_HOOK_E);K(this,"ReqSuccessTag",B.L_REQ_USER_PROFILE_HOOK_R);this._reqUserOnlineStatus=r}_isSameUserProfile(s,n){return s.name===n.name&&s.userId===n.userId&&s.portraitUri===n.portraitUri}_updateCacheUserProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.usingDefault=!1}_checkAndUpdateCacheData(s){const{name:n,userId:i,portraitUri:r}=s;let o=this._cache.get(i),a=!1;return o?this._isSameUserProfile(o,s)||(this._updateCacheUserProfile(o,s),a=!0):(a=!0,o={name:n,userId:i,portraitUri:r||Yr,usingDefault:!1,online:!1},this._cache.set(i,o)),{changed:a,cached:o}}_isInvalid(s){return typeof s!="object"||!s.userId||typeof s.userId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatchEvent(new ie(Y.USER_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||Yr,usingDefault:!0,online:!1}:{userId:s,name:`${s}`,portraitUri:Yr,usingDefault:!0,online:!1}}updateUserProfile(s){const n=this.logger.createTraceId();if(this.logger.warn(B.A_UPDATE_USER_PROFILE_T,void 0,n),this._isInvalid(s)){this.logger.error(B.A_UPDATE_USER_PROFILE_E,"invalid user profile",n);return}const{userId:i,name:r,portraitUri:o}=s;let a=this._cache.get(i);if(a&&this._isSameUserProfile(a,s)){this.logger.warn(B.A_UPDATE_USER_PROFILE_R,`user profile not changed: ${i}`,n);return}a?this._updateCacheUserProfile(a,s):(a={userId:i,name:r,portraitUri:o||Yr,usingDefault:!1,online:!1},this._cache.set(i,a)),this.logger.info(B.A_UPDATE_USER_PROFILE_R,`userId: ${i}, name: ${r}, portraitUri: ${o}`,n),this._dispatchUpdateEvent([a])}updateUserOnlineStatus(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_UPDATE_USER_ONLINE_STATE_T,`userId: ${s}, online: ${n}`,i),!this.store.getCommandSwitch(xt.SHOW_USER_ONLINE_STATE)){this.logger.warn(B.A_UPDATE_USER_ONLINE_STATE_R,"command switch is off",i);return}const r=this._cache.get(s);if(!r){this.logger.warn(B.A_UPDATE_USER_ONLINE_STATE_R,`user profile not found: ${s}`,i);return}if(r.online===n){this.logger.warn(B.A_UPDATE_USER_ONLINE_STATE_R,`user online state not changed: ${s}`,i);return}r.online=n,this.logger.info(B.A_UPDATE_USER_ONLINE_STATE_R,`userId: ${s}, online: ${n}`,i),this._dispatchUpdateEvent([r])}async reqUserOnlineStatus(s){const n=this.logger.createTraceId();if(!this.store.getCommandSwitch(xt.SHOW_USER_ONLINE_STATE))return;if(this.logger.info(B.L_REQ_USER_ONLINE_HOOK_T,`userIds: ${s.join(",")}`,n),typeof this._reqUserOnlineStatus!="function"){this.logger.error(B.L_REQ_USER_ONLINE_HOOK_E,"'reqUserOnlineStatus' is not a function",n);return}let i;try{i=await this._reqUserOnlineStatus(s)}catch(o){this.logger.error(B.L_REQ_USER_ONLINE_HOOK_E,o.message,n);return}if(!Array.isArray(i)){this.logger.error(B.L_REQ_USER_ONLINE_HOOK_E,"invalid result, must be a Array",n),console.error("invalid result: ",i);return}const r=[];i.forEach((o,a)=>{if(typeof o!="object"||typeof o.userId!="string"||typeof o.online!="boolean"){this.logger.warn(B.L_REQ_USER_ONLINE_HOOK_E,`invalid item index: ${a}`,n),console.error(`invalid item in position ${a}: `,o);return}const{userId:l,online:c}=o,u=this._cache.get(l);if(!u){this.logger.warn(B.L_REQ_USER_ONLINE_HOOK_E,`user profile not found: ${l}`,n);return}u.online!==c&&(u.online=c,r.push(u))}),this.logger.info(B.L_REQ_USER_ONLINE_HOOK_R,"",n),this._dispatchUpdateEvent(r)}}class w5 extends Sa{constructor(s,n,i,r){super(s,n,r);K(this,"ReqStartTag",B.L_REQ_GROUP_PROFILE_HOOK_T);K(this,"ReqFailedTag",B.L_REQ_GROUP_PROFILE_HOOK_E);K(this,"ReqSuccessTag",B.L_REQ_GROUP_PROFILE_HOOK_R);K(this,"GetDefaultTag",B.L_GET_DEFAULT_GROUP_PROFILE_HOOK_O);K(this,"GetDefaultErrorTag",B.L_GET_DEFAULT_GROUP_PROFILE_HOOK_E);K(this,"_groupMembers",new Map);this._reqGroupMembers=i}_checkAndUpdateCacheData(s){const{name:n,groupId:i,portraitUri:r}=s;let o=this._cache.get(i),a=!1;return o?this._isSameGroupProfile(o,s)||(this._updateCacheGroupProfile(o,s),a=!0):(a=!0,o={name:n,groupId:i,portraitUri:r||Qr,memberCount:0,usingDefault:!1},this._cache.set(i,o)),{changed:a,cached:o}}_isInvalid(s){return typeof s!="object"||!s.groupId||typeof s.groupId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"||typeof s.memberCount!="number"||s.memberCount<0}_isSameGroupProfile(s,n){return s.groupId===n.groupId&&s.name===n.name&&s.memberCount===n.memberCount&&s.portraitUri===n.portraitUri}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatchEvent(new ie(Y.GROUP_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||Qr,usingDefault:!0}:{groupId:s,name:`${s}`,portraitUri:Qr,usingDefault:!0,memberCount:0}}_updateCacheGroupProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.memberCount=n.memberCount,s.usingDefault=!1}updateGroupProfile(s){const n=this.logger.createTraceId();if(this.logger.warn(B.A_UPDATE_GROUP_PROFILE_T,void 0,n),this._isInvalid(s)){this.logger.error(B.A_UPDATE_GROUP_PROFILE_E,"invalid group profile",n);return}const{groupId:i,name:r,portraitUri:o,memberCount:a}=s;let l=this._cache.get(i);if(l&&this._isSameGroupProfile(l,s)){this.logger.warn(B.A_UPDATE_GROUP_PROFILE_R,`group profile not changed: ${i}`,n);return}l?this._updateCacheGroupProfile(l,s):(l={groupId:i,name:r,portraitUri:o||Qr,usingDefault:!1,memberCount:a},this._cache.set(i,l)),this.logger.info(B.A_UPDATE_GROUP_PROFILE_R,`groupId: ${i}, name: ${r}, portraitUri: ${o}, memberCount: ${a}`,n),this._dispatchUpdateEvent([l])}_cloneGroupMember(s){const{userId:n,nickname:i}=s;return{userId:n,nickname:i}}async reqGroupMembers(s,n=!0){const i=this.logger.createTraceId();if(!n){const a=this._groupMembers.get(s);if(a)return[...a]}let r;try{this.logger.info(B.L_REQ_GROUP_MEMBERS_HOOK_T,`groupId: ${s}`,i),r=await this._reqGroupMembers(s)}catch(a){return this.logger.error(B.L_REQ_GROUP_MEMBERS_HOOK_E,a.message,i),[]}if(!r||!Array.isArray(r))return this.logger.error(B.L_REQ_GROUP_MEMBERS_HOOK_E,"result must be a Array",i),[];const o=r.filter((a,l)=>this._isInvalidGroupMemberProfile(a)?(this.logger.error(B.L_REQ_GROUP_MEMBERS_HOOK_E,`result[${l}] is invalid`,i),!1):!0).map(this._cloneGroupMember);return this.logger.info(B.L_REQ_GROUP_MEMBERS_HOOK_R,`groupId: ${s}, memberCount: ${r.length}`,i),this._groupMembers.set(s,o),o}updateGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_UPDATE_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(B.A_UPDATE_GROUP_MEMBERS_E,"param 'members' must be a Array",i);return}if(n.some((a,l)=>this._isInvalidGroupMemberProfile(a)?(this.logger.error(B.A_UPDATE_GROUP_MEMBERS_E,`param 'members[${l}]' is invalid`,i),!0):!1))return;const r=n.map(this._cloneGroupMember);this._groupMembers.set(s,r),this._dispatchGroupMembersUpdateEvent(s,r);const o=this._cache.get(s);o?o.memberCount!==n.length&&(o.memberCount=n.length,this._dispatchUpdateEvent([o])):this.logger.warn(B.A_UPDATE_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(B.A_UPDATE_GROUP_MEMBERS_R,`groupId: ${s}, memberCount: ${n.length}`,i)}addGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_ADD_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(B.A_ADD_GROUP_MEMBERS_E,"param 'members' must be a Array",i);return}if(n.some((u,d)=>{const h=this._isInvalidGroupMemberProfile(u);return h&&this.logger.error(B.A_ADD_GROUP_MEMBERS_E,`param 'members[${d}]' is invalid`,i),h}))return;const o=this._groupMembers.get(s)||[],a=n.filter(u=>!o.some(d=>d.userId===u.userId));if(a.length===0){this.logger.warn(B.A_ADD_GROUP_MEMBERS_R,`no new members to add: ${s}`,i);return}const l=[...o,...a.map(this._cloneGroupMember)];this._groupMembers.set(s,l),this._dispatchGroupMembersUpdateEvent(s,l);const c=this._cache.get(s);c?c.memberCount!==l.length&&(c.memberCount=l.length,this._dispatchUpdateEvent([c])):this.logger.warn(B.A_ADD_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(B.A_ADD_GROUP_MEMBERS_R,`groupId: ${s}, members: ${n.map(u=>u.userId).join(",")}`,i)}removeGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_REMOVE_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(B.A_REMOVE_GROUP_MEMBERS_E,"param 'userIds' must be a Array",i);return}const r=n.filter((c,u)=>typeof c!="string"||c.length===0?(this.logger.error(B.A_REMOVE_GROUP_MEMBERS_E,`param 'userIds[${u}]' is invalid`,i),!1):!0);if(r.length===0){this.logger.warn(B.A_REMOVE_GROUP_MEMBERS_R,`no valid members to remove: ${s}`,i);return}const o=this._groupMembers.get(s);if(!o){this.logger.warn(B.A_REMOVE_GROUP_MEMBERS_E,`group members not found: ${s}`,i);return}const a=o.filter(c=>!r.includes(c.userId));this._groupMembers.set(s,a),this._dispatchGroupMembersUpdateEvent(s,a);const l=this._cache.get(s);l?l.memberCount!==a.length&&(l.memberCount=a.length,this._dispatchUpdateEvent([l])):this.logger.warn(B.A_REMOVE_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(B.A_REMOVE_GROUP_MEMBERS_R,`groupId: ${s}, members: ${r.join(",")}`,i)}_isInvalidGroupMemberProfile(s){return typeof s!="object"||!s.userId||typeof s.userId!="string"||!!s.nickname&&typeof s.nickname!="string"}_dispatchGroupMembersUpdateEvent(s,n){this._ctx.dispatchEvent(new ie(Y.GROUP_MEMBERS_UPDATE,{groupId:s,members:n}))}clear(){super.clear(),this._groupMembers.clear()}}class R5 extends Sa{constructor(){super(...arguments);K(this,"ReqStartTag",B.L_REQ_SYSTEM_PROFILE_HOOK_T);K(this,"ReqFailedTag",B.L_REQ_SYSTEM_PROFILE_HOOK_E);K(this,"ReqSuccessTag",B.L_REQ_SYSTEM_PROFILE_HOOK_R);K(this,"GetDefaultTag",B.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O);K(this,"GetDefaultErrorTag",B.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E)}_checkAndUpdateCacheData(s){const{name:n,systemId:i,portraitUri:r}=s;let o=this._cache.get(i),a=!1;return o?this._isSameSystemProfile(o,s)||(this._updateCacheSystemProfile(o,s),a=!0):(a=!0,o={name:n,systemId:i,portraitUri:r||Ra,usingDefault:!1},this._cache.set(i,o)),{changed:a,cached:o}}_isSameSystemProfile(s,n){return s.systemId===n.systemId&&s.name===n.name&&s.portraitUri===n.portraitUri}_updateCacheSystemProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.usingDefault=!1}_isInvalid(s){return typeof s!="object"||!s.systemId||typeof s.systemId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatchEvent(new ie(Y.SYSTEM_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||Ra,usingDefault:!0}:{systemId:s,name:`${s}`,portraitUri:Ra,usingDefault:!0}}}class M5 extends Ss{constructor(s,n){super(s);K(this,"_users");K(this,"_groups");K(this,"_systems");this._hooks=n,this._users=new I5(s,this._hooks.reqUserProfiles,this._hooks.getDefaultUserProfile,this._hooks.reqUserOnlineStatus),this._groups=new w5(s,this._hooks.reqGroupProfiles,this._hooks.reqGroupMembers,this._hooks.getDefaultGroupProfile),this._systems=new R5(s,this._hooks.reqSystemProfiles,this._hooks.getDefaultSystemProfile)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._systems.clear(),this._users.clear(),this._groups.clear()}async requestUserProfiles(s,n=!1){return this._users.getCache(s,n)}async requestSystemProfiles(s,n=!1){return this._systems.reqData(s,n)}async requestGroupProfiles(s,n=!1){return this._groups.reqData(s,n)}getUserProfile(s){return this.getUserProfiles([s])[0]}getGroupProfile(s){return this.getGroupProfiles([s])[0]}getUserProfiles(s,n=!1){return this._users.getCache(s,n)}getSystemProfiles(s,n=!1){return this._systems.getCache(s,n)}getGroupProfiles(s,n=!1){return this._groups.getCache(s,n)}updateUserProfile(s){this._users.updateUserProfile(s)}updateGroupProfile(s){this._groups.updateGroupProfile(s)}updateUserOnlineStatus(s,n){this._users.updateUserOnlineStatus(s,n)}async reqUserOnlineStatus(s){return this._users.reqUserOnlineStatus(s)}async reqGroupMembers(s,n=!0){return this._groups.reqGroupMembers(s,n)}updateGroupMembers(s,n){return this._groups.updateGroupMembers(s,n)}addGroupMembers(s,n){return this._groups.addGroupMembers(s,n)}removeGroupMembers(s,n){return this._groups.removeGroupMembers(s,n)}}const xs={en_US:{direction:"ltr",entries:{"conv.loading.msg":"Loading...","conv.mentioned.me.msg":"@me","conv.mentioned.all.msg":"@all","conv.draft.msg":"[Draft]","message.list.select":"Select the following message","message.list.unselect":"Unselect","message.list.recall.by.self":"You recalled one message","message.list.recall.by.other":"{0} recalled one message","message.list.reedit.msg":"Reedit","message.list.read":"Seen","message.list.back":"Back","message.list.reedit":"Reedit","message.list.read-receipt.tooltip.all-unread":"All unread","message.list.read-receipt.tooltip.all-read":"All read","message.list.read-receipt.tooltip.read-count":" Read: {0}","message.list.read-receipt.tooltip.unread-count":" Unread: {0}","message-type.RC:ImgMsg":"[Image]","message-type.RC:HQVCMsg":"[Audio]","message-type.RC:VcMsg":"[Audio]","message-type.RC:GIFMsg":"[Image]","message-type.RC:FileMsg":"[File]","message-type.RC:SightMsg":"[Video]","message-type.RC:ImgTextMsg":"[Image text]","message-type.RC:LBSMsg":"[Location]","message-type.RC:CombineMsg":"[Combine]","message-type.RC:CombineV2Msg":"[Combine]","message-type.RC:ReferenceMsg":"[Reference]","message-type.unknown":"[Unsupported message types]","time.format.today":"Today","time.format.yesterday":"Yesterday","time.format.monday":"Mon","time.format.tueday":"Tue","time.format.wedday":"Wed","time.format.thurday":"Thur","time.format.friday":"Fri","time.format.satday":"Sat","time.format.sunday":"Sun","time.format.full":"{0}/{1}/{2}","input.menu.item.photo":"Photo","input.menu.item.images":"Image","input.menu.item.files":"File","input.menu.item.emoji":"Emoji","input.placeholder":"Shift + Enter for newline, Enter for send","input.send":"Send","input.reply.prefix":"Reply ","input.mentioned.all":"All","input.placeholder.search":"search","conversation.menu.item.add_top":"Pin","conversation.menu.item.remove_top":"Unpin","conversation.menu.item.mute":"Mute","conversation.menu.item.unmute":"Unmute","conversation.menu.item.mark_read":"Mark as read","conversation.menu.item.mark_unread":"Mark as unread","conversation.menu.item.remove":"Delete","message.menu.item.reply":"Reply","message.menu.item.multi.choice":"Select","message.menu.item.copy":"Copy","message.menu.item.forward":"Forward","message.menu.item.delete":"Delete","message.menu.item.speech.to.text":"Transcribe","message.menu.item.cancel.speech.to.text":"Cancel Transcribe","message.speech.to.text.failed":"Speech conversion failed","message.speech.to.text.empty":" ","message.speech.to.text.unsupported":"This voice message does not support transcription","message.menu.item.recall":"Recall","conversation.empty.desc":"No message","conversation.list.empty.desc":"No conversation","conversation.list.bar.title":"Conversation","conversation.detail.bar.typing":"Typing...","conversation.detail.bar.typing.audio":"Speaking...","alert.req.msg.error":"Request message failed: {0}","alert.pickfiles.maxcount":"You can only select up to {0} files","alert.paste.not.supported":"Paste is not supported in your browser","alert.delete.message.failed":"Delete message failed: {0}","alert.delete.messages.partial.failure":"Delete {0} messages failed","alert.delete.conversation.failed":"Delete conversation failed: {0}","alert.imlib.failed.network":"The request could not be completed. Please check your network and try again later. (Error code: {0})","alert.imlib.failed.generic":"The operation could not be completed. Please try again later. (Error code: {0})","alert.forward.not.supported":"The {0} selected messages cannot be forwarded","alert.forward.over.length":"Select up to 100 chat transcripts","alert.delete.over.length":"Cannot delete more than 100 messages","alert.send.message.maxcount":"Exceeds {0} characters, please delete some and try again.","alert.message-deleted":"Message deleted","alert.conversation.list.not.ready":"Conversation list is not ready, please try again later","dialog.delete.msg":"Delete this message","dialog.delete.msg.confirm":"Delete","dialog.delete.msg.content":"This operation will only delete your conversation record, others will still see it","dialog.tips.msg":"Tips","dialog.cancel.msg":"Cancel","dialog.confirm.msg":"OK","dialog.forwarding.msg":"Forward it to","dialog.recall.msg":"Also delete for everyone","dialog.forwarding.confirm":"Send","take-photo.send-btn.label":"Send","take-photo.cancel-btn.label":"Cancel","take-photo.retry-btn.label":"Retry","take-photo.msg.camera-starting":"Camera starting...","take-photo.msg.camera-startup-failure":"Camera startup failure: {0}","multi-choice.menu.selected-count":"Selected {0} items","multi-choice.menu.forward-item-by-item":"Forward","multi-choice.menu.delete":"Delete","private.combine-msg.title":"{0} and {1} chat history","private.combine-msg.signal.title":"{0}'s chat history","group.combine-msg.title":"Group chat history","connection.status.suspended":"Network Unavailabel","connection.status.disconnected":"Active disconnection","connection.status.connecting":"Connecting...","toast.forward.success":"Forwarded successfully","toast.copy.success":"Copied"}},zh_CN:{direction:"ltr",entries:{"conv.loading.msg":"加载中...","conv.mentioned.me.msg":"@我","conv.mentioned.all.msg":"@所有人","conv.draft.msg":"[草稿]","message.list.select":"选择以下信息","message.list.unselect":"取消选择","message.list.recall.by.self":"你撤回了一条消息","message.list.recall.by.other":"{0} 撤回了一条消息","message.list.reedit.msg":"重新编辑","message.list.read":"已读","message.list.back":"返回","message.list.reedit":"重新编辑","message.list.read-receipt.tooltip.all-unread":"全部未读","message.list.read-receipt.tooltip.all-read":"全部已读","message.list.read-receipt.tooltip.read-count":"{0} 人已读","message.list.read-receipt.tooltip.unread-count":"{0} 人未读","message-type.RC:ImgMsg":"[图片]","message-type.RC:HQVCMsg":"[语音]","message-type.RC:VcMsg":"[语音]","message-type.RC:GIFMsg":"[图片]","message-type.RC:FileMsg":"[文件]","message-type.RC:SightMsg":"[视频]","message-type.RC:ImgTextMsg":"[图文]","message-type.RC:LBSMsg":"[位置]","message-type.RC:CombineMsg":"[合并转发]","message-type.RC:CombineV2Msg":"[合并转发]","message-type.RC:ReferenceMsg":"[引用]","message-type.unknown":"[不支持的消息类型]","time.format.today":"今天","time.format.yesterday":"昨天","time.format.monday":"星期一","time.format.tueday":"星期二","time.format.wedday":"星期三","time.format.thurday":"星期四","time.format.friday":"星期五","time.format.satday":"星期六","time.format.sunday":"星期日","time.format.full":"{0}/{1}/{2}","input.menu.item.photo":"拍照","input.menu.item.images":"图片","input.menu.item.files":"文件","input.menu.item.emoji":"表情","input.placeholder":"Shift + Enter 换行, Enter 发送","input.send":"发送","input.reply.prefix":"回复 ","input.mentioned.all":"所有人","input.placeholder.search":"搜索","conversation.menu.item.add_top":"置顶","conversation.menu.item.remove_top":"取消置顶","conversation.menu.item.mute":"免打扰","conversation.menu.item.unmute":"取消免打扰","conversation.menu.item.mark_read":"标记已读","conversation.menu.item.mark_unread":"标记未读","conversation.menu.item.remove":"删除","message.menu.item.reply":"回复","message.menu.item.multi.choice":"多选","message.menu.item.copy":"复制","message.menu.item.forward":"转发","message.menu.item.delete":"删除","message.menu.item.speech.to.text":"转文字","message.menu.item.cancel.speech.to.text":"取消转文字","message.speech.to.text.failed":"语音转换失败","message.speech.to.text.empty":" ","message.speech.to.text.unsupported":"此语音消息不支持转文字功能","message.menu.item.recall":"撤回","conversation.empty.desc":"暂无消息","conversation.list.empty.desc":"暂无对话","conversation.list.bar.title":"会话","conversation.detail.bar.typing":"对方正在输入...","conversation.detail.bar.typing.audio":"对方正在讲话...","alert.req.msg.error":"请求消息失败: {0}","alert.pickfiles.maxcount":"最多只能选择 {0} 个文件","alert.paste.not.supported":"您的浏览器不支持粘贴操作","alert.delete.message.failed":"删除消息失败: {0}","alert.delete.messages.partial.failure":"删除 {0} 条消息失败","alert.delete.conversation.failed":"删除会话失败: {0}","alert.imlib.failed.network":"当前请求未成功,请检查网络后稍候重试。(错误码:{0})","alert.imlib.failed.generic":"操作未成功,请稍后重试。(错误码:{0})","alert.forward.not.supported":"选中的第 {0} 条消息不支持转发","alert.forward.over.length":"聊天记录选择不能超过 100 条","alert.delete.over.length":"不能删除超过 100 条消息","alert.send.message.maxcount":"内容超过 {0} 字, 请删除部分内容后再尝试发送","alert.message-deleted":"消息被删除","alert.conversation.list.not.ready":"会话列表仍在加载中, 请稍后再试","dialog.delete.msg":"删除该条消息","dialog.delete.msg.confirm":"删除","dialog.delete.msg.content":"该操作仅会删除你的会话记录,其它人仍可见","dialog.tips.msg":"提示","dialog.cancel.msg":"取消","dialog.confirm.msg":"确认","dialog.forwarding.msg":"转发给","dialog.recall.msg":"同时删除对方的","dialog.forwarding.confirm":"发送","take-photo.send-btn.label":"发送","take-photo.cancel-btn.label":"取消","take-photo.retry-btn.label":"重拍","take-photo.msg.camera-starting":"相机启动中...","take-photo.msg.camera-startup-failure":"相机启动失败: {0}","multi-choice.menu.selected-count":"已选择 {0} 项","multi-choice.menu.forward-item-by-item":"逐条转发","multi-choice.menu.delete":"删除","private.combine-msg.title":"{0} 和 {1} 的聊天记录","private.combine-msg.signal.title":"{0} 的聊天记录","group.combine-msg.title":"群聊的聊天记录","connection.status.suspended":"当前网络不可用,请检查网络","connection.status.disconnected":"已主动断开连接","connection.status.connecting":"连接中...","toast.forward.success":"转发成功","toast.copy.success":"已复制"}}};class O5 extends Ss{constructor(){super(...arguments);K(this,"_language","zh_CN")}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){}cloneLanguageEntries(s){return xs[s]?(this.logger.info(B.A_CLONE_LANGUAGE_ENTRIES_O,`lang: ${s}`),{...xs[s].entries}):(this.logger.error(B.A_CLONE_LANGUAGE_ENTRIES_O,`Language pack '${s}' not found.`),null)}registerLanguagePack(s,n,i="ltr"){this.logger.info(B.A_REGISTER_LANGUAGE_PACK_O,`lang: ${s}, direction: ${i}`),xs[s]={direction:i,entries:n}}setLanguage(s){if(!xs[s]){this.logger.error(B.A_SET_LANGUAGE_O,`Language pack '${s}' not found.`);return}if(this._language===s){this.logger.warn(B.A_SET_LANGUAGE_O,`Language '${s}' already in use.`);return}this.logger.info(B.A_SET_LANGUAGE_O,`current: ${this._language}, target: ${s}`);const{direction:n}=xs[s];this._language=s,this.ctx.dispatchEvent(new ie(Y.LANGUAGE_CHANGE,{lang:s,direction:n}))}getLanguage(){return this._language}getSupportedLanguages(){return Object.keys(xs)}getEntryString(s){var n;return(n=xs[this._language])==null?void 0:n.entries[s]}format(s,...n){const i=xs[this._language].entries[s];return i?i.replace(/\{\d+\}/g,(r,o)=>n[parseInt(r.substring(1,r.length-1),10)].toString()):s}}var ks=(e=>(e[e.SUCCESS=f.ErrorCode.SUCCESS]="SUCCESS",e[e.INVALID_CONVERSATION=39001]="INVALID_CONVERSATION",e[e.TASK_CANCEL=39002]="TASK_CANCEL",e[e.CONVERSATION_LIST_NOT_READY=39003]="CONVERSATION_LIST_NOT_READY",e))(ks||{});class s1 extends Ss{constructor(s,n=5,i=5){super(s);K(this,"_timestamps",[]);K(this,"_queue",[]);K(this,"_executing",[]);K(this,"_timer",-1);K(this,"_paused",!1);this._parallel=n,this._fps=i}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){clearTimeout(this._timer),this._timer=-1}async push(s){return new Promise(n=>{this._queue.push({params:s,resolve:n}),this.logger.info(B.L_PUSH_2_QUEUE_O,`${this._tag}: queue length: ${this._queue.length}`),this._execute()})}remove(s){let n=this._queue.findIndex(i=>i.params.transactionId===s);if(n!==-1){const i=this._queue[n];return i.code=ks.TASK_CANCEL,!0}if(n=this._executing.findIndex(i=>i.params.transactionId===s),n!==-1){const i=this._executing[n],r=this._try2CancelExecutingTask(s);return r&&(i.code=ks.TASK_CANCEL),r}return!1}async _execute(){if(this._paused||this._queue.length===0||this._executing.length>=this._parallel)return;if(this._timestamps.length>=this._fps){this.logger.warn(B.L_TASK_QUEUE_EXECUTE_O,`${this._tag}: trigger limiting`);return}this._timer===-1&&(this._timer=window.setTimeout(()=>{this._timestamps.length=0,this._timer=-1,this._execute()},1e3));const s=this._queue.shift();this._executing.push(s),this._timestamps.push(Date.now()),this.logger.info(B.L_TASK_QUEUE_EXECUTE_O,`${this._tag}: queue length: ${this._queue.length}, executing length: ${this._executing.length}`);const n=this._handle(s.params);this._execute();const{code:i,data:r}=await n;s.code=i,s.result=r,this._checkResolve()}_checkResolve(){for(;this._executing.length&&this._executing[0].code!==void 0;){const{resolve:s,code:n,result:i}=this._executing.shift();s({code:n,data:i})}this._execute()}}class b5 extends s1{constructor(s){super(s,1,5);K(this,"_tag","MessageSendQueue")}async _handle(s){const{conversation:n,message:i,options:r}=s,{conversationType:o,targetId:a,channelId:l}=n,c=this.logger.createTraceId();this.logger.info(B.L_SEND_MSG_T,`type: ${i.messageType}, conversationType: ${o}, targetId: ${a}, channelId: ${l||""}`,c);const{isCounted:u,isPersited:d,content:h,messageType:p}=i,_=new f.BaseMessage(p,h,d,u);if(j.isObject(_.content))try{_.content=Ca(_.content)}catch(E){this.logger.warn(B.A_SEND_MESSAGE_E,E.message)}const m={...r,onSendBefore(E){var g;i.messageId=E.messageId,(g=r==null?void 0:r.onSendBefore)==null||g.call(r,E)},pushConfig:this.ctx.store.getPushConfig(i)};if(this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5){const E=[j.ConversationType.PRIVATE,j.ConversationType.GROUP].includes(n.conversationType),g=r==null?void 0:r.isMentioned;E&&!g&&(m.needReceipt=!0)}const{code:L,data:M}=await f.sendMessage(n,_,m);return L!==f.ErrorCode.SUCCESS?this.logger.warn(B.L_SEND_MSG_R,`code: ${L}`,c):this.logger.info(B.L_SEND_MSG_R,"success",c),{code:L,data:M}}_try2CancelExecutingTask(s){return!1}}class L5 extends s1{constructor(){super(...arguments);K(this,"_tag","FileUploadQueue");K(this,"_clients",new Map)}_getFileType(s){switch(s){case f.MessageType.IMAGE:case f.MessageType.GIF:return f.FileType.IMAGE;case f.MessageType.SIGHT:return f.FileType.SIGHT;case f.MessageType.COMBINE:return f.FileType.COMBINE_HTML;default:return f.FileType.FILE}}async _handle(s){const{message:n,transactionId:i}=s,r=n.file,o=this._getFileType(n.messageType),a={file:r,fileType:o,onProgress:(p,_)=>{this.logger.debug(B.L_UPLOAD_FILE_O,`name: ${r.name}, progress: ${p}/${_}`);const m=Math.floor(p*100/_);n.progress=m,this.ctx.dispatchEvent(new ie(Y.FILE_UPLOAD_PROGRESS,{progress:m,message:n}))}},l=this.logger.createTraceId();this.logger.info(B.L_UPLOAD_FILE_T,`name: ${r.name}, size: ${r.size}`,l);const c=await f.createUploadTask(a);if(c.code!==f.ErrorCode.SUCCESS)return this.logger.warn(B.L_UPLOAD_FILE_R,`code: ${c.code}`,l),{code:c.code,data:{message:n}};const u=c.data;this._clients.set(i,u);const{code:d,data:h}=await u.awaitResult();return d!==f.ErrorCode.SUCCESS?(this.logger.warn(B.L_UPLOAD_FILE_R,`code: ${d}`,l),n.progress=-1,n.sentStatus=j.SentStatus.FAILED,this.ctx.dispatchEvent(new ie(Y.MESSAGE_STATE_CHANGE,[n])),{code:d,data:{message:n}}):(this.logger.info(B.L_UPLOAD_FILE_R,"success",l),{code:d,data:{message:n,httpUrl:h.downloadUrl}})}_try2CancelExecutingTask(s){const n=this._clients.get(s);return n?(f.stopUploadTask(n.id),this._clients.delete(s),!0):!1}}/**
|
|
286
|
+
`,h0=jc.replace(/#E3E7EF/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),p0=Hc.replace(/#CCCCCC/g,"#0047FF"),g0=Fc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),_0=Vc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),m0=$c.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),E0=Pc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),v0=Oa.replace(/#020814/g,"#0047FF").replace(/<svg([^>]*)>/,'<svg$1><rect width="24" height="24" rx="4" fill="#E3E7EF"/>');URL.createObjectURL(new Blob([Gh],{type:"image/svg+xml"}));const In=URL.createObjectURL(new Blob([Bh],{type:"image/svg+xml"})),ba=URL.createObjectURL(new Blob([jh],{type:"image/svg+xml"})),Is=URL.createObjectURL(new Blob([qh],{type:"image/svg+xml"})),La=URL.createObjectURL(new Blob([Kh],{type:"image/svg+xml"})),C0=URL.createObjectURL(new Blob([zh],{type:"image/svg+xml"})),qc=URL.createObjectURL(new Blob([Qh],{type:"image/svg+xml"})),Jo=URL.createObjectURL(new Blob([Wh],{type:"image/svg+xml"})),Xs=URL.createObjectURL(new Blob([Zh],{type:"image/svg+xml"})),Kc=URL.createObjectURL(new Blob([Yh],{type:"image/svg+xml"})),y0={jpg:Is,jpeg:Is,png:Is,gif:Is,bmp:Is,webp:Is,svg:Is,tif:Is,tiff:Is,ico:Is,heic:Is,txt:Jo,log:Jo,md:Jo,rtf:Jo,doc:Kc,docx:Kc,xls:ba,xlsx:ba,csv:ba,ppt:qc,pptx:qc,pdf:C0,mp3:In,wav:In,ogg:In,aac:In,flac:In,m4a:In,wma:In,amr:In,mp4:Xs,mov:Xs,avi:Xs,mkv:Xs,webm:Xs,wmv:Xs,flv:Xs,m4v:Xs,"3gp":Xs},S0=e=>{if(!e)return La;const t=e.lastIndexOf(".");if(t<0||t===e.length-1)return La;const s=e.slice(t+1).toLowerCase();return y0[s]||La},T0=URL.createObjectURL(new Blob([g0],{type:"image/svg+xml"})),I0=URL.createObjectURL(new Blob([_0],{type:"image/svg+xml"})),R0=URL.createObjectURL(new Blob([m0],{type:"image/svg+xml"})),w0=URL.createObjectURL(new Blob([E0],{type:"image/svg+xml"})),zc=URL.createObjectURL(new Blob([jc],{type:"image/svg+xml"})),Qc=URL.createObjectURL(new Blob([h0],{type:"image/svg+xml"})),Wc=URL.createObjectURL(new Blob([kc],{type:"image/svg+xml"})),M0=URL.createObjectURL(new Blob([Uc],{type:"image/svg+xml"})),O0=Nc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),b0=Dc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),L0=Uc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),A0=kc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),x0=URL.createObjectURL(new Blob([Nc],{type:"image/svg+xml"})),k0=URL.createObjectURL(new Blob([O0],{type:"image/svg+xml"})),U0=URL.createObjectURL(new Blob([Dc],{type:"image/svg+xml"})),N0=URL.createObjectURL(new Blob([b0],{type:"image/svg+xml"})),D0=URL.createObjectURL(new Blob([L0],{type:"image/svg+xml"})),Zc=URL.createObjectURL(new Blob([A0],{type:"image/svg+xml"})),P0=URL.createObjectURL(new Blob([wh],{type:"image/svg+xml"})),Yc=URL.createObjectURL(new Blob([Gc],{type:"image/svg+xml"})),V0=URL.createObjectURL(new Blob([Dh],{type:"image/svg+xml"})),F0=URL.createObjectURL(new Blob([Ph],{type:"image/svg+xml"})),$0=URL.createObjectURL(new Blob([Vh],{type:"image/svg+xml"})),Jc=URL.createObjectURL(new Blob([Bc],{type:"image/svg+xml"})),H0=Bc.replace(/#41464F/g,"#0047FF"),G0=Gc.replace(/#41464F/g,"#E35858"),B0=Oa.replace(/#020814/g,"#0047FF"),j0=URL.createObjectURL(new Blob([H0],{type:"image/svg+xml"})),q0=URL.createObjectURL(new Blob([G0],{type:"image/svg+xml"})),K0=URL.createObjectURL(new Blob([B0],{type:"image/svg+xml"})),z0=URL.createObjectURL(new Blob([Fh],{type:"image/svg+xml"})),Q0=URL.createObjectURL(new Blob([$h],{type:"image/svg+xml"})),W0=URL.createObjectURL(new Blob([Hh],{type:"image/svg+xml"})),Z0=URL.createObjectURL(new Blob([bh],{type:"image/svg+xml"})),Y0=URL.createObjectURL(new Blob([Lh],{type:"image/svg+xml"})),J0=URL.createObjectURL(new Blob([Ah],{type:"image/svg+xml"})),X0=URL.createObjectURL(new Blob([xh],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([kh],{type:"image/svg+xml"})),URL.createObjectURL(new Blob([Uh],{type:"image/svg+xml"}));const ep=URL.createObjectURL(new Blob([Nh],{type:"image/svg+xml"})),tp=URL.createObjectURL(new Blob([Pc],{type:"image/svg+xml"})),sp=URL.createObjectURL(new Blob([Vc],{type:"image/svg+xml"})),np=URL.createObjectURL(new Blob([Fc],{type:"image/svg+xml"})),ip=URL.createObjectURL(new Blob([$c],{type:"image/svg+xml"})),op=URL.createObjectURL(new Blob([Hc],{type:"image/svg+xml"})),rp=URL.createObjectURL(new Blob([p0],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([Mh],{type:"image/svg+xml"}));const ap=URL.createObjectURL(new Blob([Oh],{type:"image/svg+xml"})),Xo=URL.createObjectURL(new Blob([Eh],{type:"image/svg+xml"})),er=URL.createObjectURL(new Blob([vh],{type:"image/svg+xml"})),Aa=URL.createObjectURL(new Blob([Ch],{type:"image/svg+xml"})),lp=URL.createObjectURL(new Blob([yh],{type:"image/svg+xml"})),cp=URL.createObjectURL(new Blob([Sh],{type:"image/svg+xml"})),Xc=URL.createObjectURL(new Blob([Th],{type:"image/svg+xml"})),up=URL.createObjectURL(new Blob([Ih],{type:"image/svg+xml"})),e1=URL.createObjectURL(new Blob([Rh],{type:"image/svg+xml"})),t1=URL.createObjectURL(new Blob([Jh],{type:"image/svg+xml"})),dp=URL.createObjectURL(new Blob([Xh],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([e0],{type:"image/svg+xml"}));const fp=URL.createObjectURL(new Blob([t0],{type:"image/svg+xml"})),hp=URL.createObjectURL(new Blob([s0],{type:"image/svg+xml"})),s1=URL.createObjectURL(new Blob([Oa],{type:"image/svg+xml"})),pp=URL.createObjectURL(new Blob([v0],{type:"image/svg+xml"})),gp=URL.createObjectURL(new Blob([n0],{type:"image/svg+xml"})),_p=URL.createObjectURL(new Blob([i0],{type:"image/svg+xml"})),n1=URL.createObjectURL(new Blob([o0],{type:"image/svg+xml"})),mp=URL.createObjectURL(new Blob([r0],{type:"image/svg+xml"})),i1=URL.createObjectURL(new Blob([a0],{type:"image/svg+xml"})),Ep=URL.createObjectURL(new Blob([l0],{type:"image/svg+xml"})),o1=URL.createObjectURL(new Blob([c0],{type:"image/svg+xml"})),vp=URL.createObjectURL(new Blob([u0],{type:"image/svg+xml"})),Cp=URL.createObjectURL(new Blob([d0],{type:"image/svg+xml"})),yp=URL.createObjectURL(new Blob([f0],{type:"image/svg+xml"}));class Sp extends Ma{constructor(s,n,i,o){super(s,n,i);q(this,"GetDefaultTag",B.L_GET_DEFAULT_USER_PROFILE_HOOK_O);q(this,"GetDefaultErrorTag",B.L_GET_DEFAULT_USER_PROFILE_HOOK_E);q(this,"ReqStartTag",B.L_REQ_USER_PROFILE_HOOK_T);q(this,"ReqFailedTag",B.L_REQ_USER_PROFILE_HOOK_E);q(this,"ReqSuccessTag",B.L_REQ_USER_PROFILE_HOOK_R);this._reqUserOnlineStatus=o}_isSameUserProfile(s,n){return s.name===n.name&&s.userId===n.userId&&s.portraitUri===n.portraitUri}_updateCacheUserProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.usingDefault=!1}_checkAndUpdateCacheData(s){const{name:n,userId:i,portraitUri:o}=s;let r=this._cache.get(i),a=!1;return r?this._isSameUserProfile(r,s)||(this._updateCacheUserProfile(r,s),a=!0):(a=!0,r={name:n,userId:i,portraitUri:o||er,usingDefault:!1,online:!1},this._cache.set(i,r)),{changed:a,cached:r}}_isInvalid(s){return typeof s!="object"||!s.userId||typeof s.userId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatchEvent(new ne(Z.USER_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||er,usingDefault:!0,online:!1}:{userId:s,name:`${s}`,portraitUri:er,usingDefault:!0,online:!1}}updateUserProfile(s){const n=this.logger.createTraceId();if(this.logger.warn(B.A_UPDATE_USER_PROFILE_T,void 0,n),this._isInvalid(s)){this.logger.error(B.A_UPDATE_USER_PROFILE_E,"invalid user profile",n);return}const{userId:i,name:o,portraitUri:r}=s;let a=this._cache.get(i);if(a&&this._isSameUserProfile(a,s)){this.logger.warn(B.A_UPDATE_USER_PROFILE_R,`user profile not changed: ${i}`,n);return}a?this._updateCacheUserProfile(a,s):(a={userId:i,name:o,portraitUri:r||er,usingDefault:!1,online:!1},this._cache.set(i,a)),this.logger.info(B.A_UPDATE_USER_PROFILE_R,`userId: ${i}, name: ${o}, portraitUri: ${r}`,n),this._dispatchUpdateEvent([a])}updateUserOnlineStatus(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_UPDATE_USER_ONLINE_STATE_T,`userId: ${s}, online: ${n}`,i),!this.store.getCommandSwitch(It.SHOW_USER_ONLINE_STATE)){this.logger.warn(B.A_UPDATE_USER_ONLINE_STATE_R,"command switch is off",i);return}const o=this._cache.get(s);if(!o){this.logger.warn(B.A_UPDATE_USER_ONLINE_STATE_R,`user profile not found: ${s}`,i);return}if(o.online===n){this.logger.warn(B.A_UPDATE_USER_ONLINE_STATE_R,`user online state not changed: ${s}`,i);return}o.online=n,this.logger.info(B.A_UPDATE_USER_ONLINE_STATE_R,`userId: ${s}, online: ${n}`,i),this._dispatchUpdateEvent([o])}async reqUserOnlineStatus(s){const n=this.logger.createTraceId();if(!this.store.getCommandSwitch(It.SHOW_USER_ONLINE_STATE))return;if(this.logger.info(B.L_REQ_USER_ONLINE_HOOK_T,`userIds: ${s.join(",")}`,n),typeof this._reqUserOnlineStatus!="function"){this.logger.error(B.L_REQ_USER_ONLINE_HOOK_E,"'reqUserOnlineStatus' is not a function",n);return}let i;try{i=await this._reqUserOnlineStatus(s)}catch(r){this.logger.error(B.L_REQ_USER_ONLINE_HOOK_E,r.message,n);return}if(!Array.isArray(i)){this.logger.error(B.L_REQ_USER_ONLINE_HOOK_E,"invalid result, must be a Array",n),console.error("invalid result: ",i);return}const o=[];i.forEach((r,a)=>{if(typeof r!="object"||typeof r.userId!="string"||typeof r.online!="boolean"){this.logger.warn(B.L_REQ_USER_ONLINE_HOOK_E,`invalid item index: ${a}`,n),console.error(`invalid item in position ${a}: `,r);return}const{userId:l,online:c}=r,u=this._cache.get(l);if(!u){this.logger.warn(B.L_REQ_USER_ONLINE_HOOK_E,`user profile not found: ${l}`,n);return}u.online!==c&&(u.online=c,o.push(u))}),this.logger.info(B.L_REQ_USER_ONLINE_HOOK_R,"",n),this._dispatchUpdateEvent(o)}}class Tp extends Ma{constructor(s,n,i,o){super(s,n,o);q(this,"ReqStartTag",B.L_REQ_GROUP_PROFILE_HOOK_T);q(this,"ReqFailedTag",B.L_REQ_GROUP_PROFILE_HOOK_E);q(this,"ReqSuccessTag",B.L_REQ_GROUP_PROFILE_HOOK_R);q(this,"GetDefaultTag",B.L_GET_DEFAULT_GROUP_PROFILE_HOOK_O);q(this,"GetDefaultErrorTag",B.L_GET_DEFAULT_GROUP_PROFILE_HOOK_E);q(this,"_groupMembers",new Map);this._reqGroupMembers=i}_checkAndUpdateCacheData(s){const{name:n,groupId:i,portraitUri:o}=s;let r=this._cache.get(i),a=!1;return r?this._isSameGroupProfile(r,s)||(this._updateCacheGroupProfile(r,s),a=!0):(a=!0,r={name:n,groupId:i,portraitUri:o||Xo,memberCount:0,usingDefault:!1},this._cache.set(i,r)),{changed:a,cached:r}}_isInvalid(s){return typeof s!="object"||!s.groupId||typeof s.groupId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"||typeof s.memberCount!="number"||s.memberCount<0}_isSameGroupProfile(s,n){return s.groupId===n.groupId&&s.name===n.name&&s.memberCount===n.memberCount&&s.portraitUri===n.portraitUri}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatchEvent(new ne(Z.GROUP_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||Xo,usingDefault:!0}:{groupId:s,name:`${s}`,portraitUri:Xo,usingDefault:!0,memberCount:0}}_updateCacheGroupProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.memberCount=n.memberCount,s.usingDefault=!1}updateGroupProfile(s){const n=this.logger.createTraceId();if(this.logger.warn(B.A_UPDATE_GROUP_PROFILE_T,void 0,n),this._isInvalid(s)){this.logger.error(B.A_UPDATE_GROUP_PROFILE_E,"invalid group profile",n);return}const{groupId:i,name:o,portraitUri:r,memberCount:a}=s;let l=this._cache.get(i);if(l&&this._isSameGroupProfile(l,s)){this.logger.warn(B.A_UPDATE_GROUP_PROFILE_R,`group profile not changed: ${i}`,n);return}l?this._updateCacheGroupProfile(l,s):(l={groupId:i,name:o,portraitUri:r||Xo,usingDefault:!1,memberCount:a},this._cache.set(i,l)),this.logger.info(B.A_UPDATE_GROUP_PROFILE_R,`groupId: ${i}, name: ${o}, portraitUri: ${r}, memberCount: ${a}`,n),this._dispatchUpdateEvent([l])}_cloneGroupMember(s){const{userId:n,nickname:i}=s;return{userId:n,nickname:i}}async reqGroupMembers(s,n=!0){const i=this.logger.createTraceId();if(!n){const a=this._groupMembers.get(s);if(a)return[...a]}let o;try{this.logger.info(B.L_REQ_GROUP_MEMBERS_HOOK_T,`groupId: ${s}`,i),o=await this._reqGroupMembers(s)}catch(a){return this.logger.error(B.L_REQ_GROUP_MEMBERS_HOOK_E,a.message,i),[]}if(!o||!Array.isArray(o))return this.logger.error(B.L_REQ_GROUP_MEMBERS_HOOK_E,"result must be a Array",i),[];const r=o.filter((a,l)=>this._isInvalidGroupMemberProfile(a)?(this.logger.error(B.L_REQ_GROUP_MEMBERS_HOOK_E,`result[${l}] is invalid`,i),!1):!0).map(this._cloneGroupMember);return this.logger.info(B.L_REQ_GROUP_MEMBERS_HOOK_R,`groupId: ${s}, memberCount: ${o.length}`,i),this._groupMembers.set(s,r),r}updateGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_UPDATE_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(B.A_UPDATE_GROUP_MEMBERS_E,"param 'members' must be a Array",i);return}if(n.some((a,l)=>this._isInvalidGroupMemberProfile(a)?(this.logger.error(B.A_UPDATE_GROUP_MEMBERS_E,`param 'members[${l}]' is invalid`,i),!0):!1))return;const o=n.map(this._cloneGroupMember);this._groupMembers.set(s,o),this._dispatchGroupMembersUpdateEvent(s,o);const r=this._cache.get(s);r?r.memberCount!==n.length&&(r.memberCount=n.length,this._dispatchUpdateEvent([r])):this.logger.warn(B.A_UPDATE_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(B.A_UPDATE_GROUP_MEMBERS_R,`groupId: ${s}, memberCount: ${n.length}`,i)}addGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_ADD_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(B.A_ADD_GROUP_MEMBERS_E,"param 'members' must be a Array",i);return}if(n.some((u,d)=>{const h=this._isInvalidGroupMemberProfile(u);return h&&this.logger.error(B.A_ADD_GROUP_MEMBERS_E,`param 'members[${d}]' is invalid`,i),h}))return;const r=this._groupMembers.get(s)||[],a=n.filter(u=>!r.some(d=>d.userId===u.userId));if(a.length===0){this.logger.warn(B.A_ADD_GROUP_MEMBERS_R,`no new members to add: ${s}`,i);return}const l=[...r,...a.map(this._cloneGroupMember)];this._groupMembers.set(s,l),this._dispatchGroupMembersUpdateEvent(s,l);const c=this._cache.get(s);c?c.memberCount!==l.length&&(c.memberCount=l.length,this._dispatchUpdateEvent([c])):this.logger.warn(B.A_ADD_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(B.A_ADD_GROUP_MEMBERS_R,`groupId: ${s}, members: ${n.map(u=>u.userId).join(",")}`,i)}removeGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_REMOVE_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(B.A_REMOVE_GROUP_MEMBERS_E,"param 'userIds' must be a Array",i);return}const o=n.filter((c,u)=>typeof c!="string"||c.length===0?(this.logger.error(B.A_REMOVE_GROUP_MEMBERS_E,`param 'userIds[${u}]' is invalid`,i),!1):!0);if(o.length===0){this.logger.warn(B.A_REMOVE_GROUP_MEMBERS_R,`no valid members to remove: ${s}`,i);return}const r=this._groupMembers.get(s);if(!r){this.logger.warn(B.A_REMOVE_GROUP_MEMBERS_E,`group members not found: ${s}`,i);return}const a=r.filter(c=>!o.includes(c.userId));this._groupMembers.set(s,a),this._dispatchGroupMembersUpdateEvent(s,a);const l=this._cache.get(s);l?l.memberCount!==a.length&&(l.memberCount=a.length,this._dispatchUpdateEvent([l])):this.logger.warn(B.A_REMOVE_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(B.A_REMOVE_GROUP_MEMBERS_R,`groupId: ${s}, members: ${o.join(",")}`,i)}_isInvalidGroupMemberProfile(s){return typeof s!="object"||!s.userId||typeof s.userId!="string"||!!s.nickname&&typeof s.nickname!="string"}_dispatchGroupMembersUpdateEvent(s,n){this._ctx.dispatchEvent(new ne(Z.GROUP_MEMBERS_UPDATE,{groupId:s,members:n}))}clear(){super.clear(),this._groupMembers.clear()}}class Ip extends Ma{constructor(){super(...arguments);q(this,"ReqStartTag",B.L_REQ_SYSTEM_PROFILE_HOOK_T);q(this,"ReqFailedTag",B.L_REQ_SYSTEM_PROFILE_HOOK_E);q(this,"ReqSuccessTag",B.L_REQ_SYSTEM_PROFILE_HOOK_R);q(this,"GetDefaultTag",B.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O);q(this,"GetDefaultErrorTag",B.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E)}_checkAndUpdateCacheData(s){const{name:n,systemId:i,portraitUri:o}=s;let r=this._cache.get(i),a=!1;return r?this._isSameSystemProfile(r,s)||(this._updateCacheSystemProfile(r,s),a=!0):(a=!0,r={name:n,systemId:i,portraitUri:o||Aa,usingDefault:!1},this._cache.set(i,r)),{changed:a,cached:r}}_isSameSystemProfile(s,n){return s.systemId===n.systemId&&s.name===n.name&&s.portraitUri===n.portraitUri}_updateCacheSystemProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.usingDefault=!1}_isInvalid(s){return typeof s!="object"||!s.systemId||typeof s.systemId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatchEvent(new ne(Z.SYSTEM_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||Aa,usingDefault:!0}:{systemId:s,name:`${s}`,portraitUri:Aa,usingDefault:!0}}}class Rp extends Ts{constructor(s,n){super(s);q(this,"_users");q(this,"_groups");q(this,"_systems");this._hooks=n,this._users=new Sp(s,this._hooks.reqUserProfiles,this._hooks.getDefaultUserProfile,this._hooks.reqUserOnlineStatus),this._groups=new Tp(s,this._hooks.reqGroupProfiles,this._hooks.reqGroupMembers,this._hooks.getDefaultGroupProfile),this._systems=new Ip(s,this._hooks.reqSystemProfiles,this._hooks.getDefaultSystemProfile)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._systems.clear(),this._users.clear(),this._groups.clear()}async requestUserProfiles(s,n=!1){return this._users.getCache(s,n)}async requestSystemProfiles(s,n=!1){return this._systems.reqData(s,n)}async requestGroupProfiles(s,n=!1){return this._groups.reqData(s,n)}getUserProfile(s){return this.getUserProfiles([s])[0]}getGroupProfile(s){return this.getGroupProfiles([s])[0]}getUserProfiles(s,n=!1){return this._users.getCache(s,n)}getSystemProfiles(s,n=!1){return this._systems.getCache(s,n)}getGroupProfiles(s,n=!1){return this._groups.getCache(s,n)}updateUserProfile(s){this._users.updateUserProfile(s)}updateGroupProfile(s){this._groups.updateGroupProfile(s)}updateUserOnlineStatus(s,n){this._users.updateUserOnlineStatus(s,n)}async reqUserOnlineStatus(s){return this._users.reqUserOnlineStatus(s)}async reqGroupMembers(s,n=!0){return this._groups.reqGroupMembers(s,n)}updateGroupMembers(s,n){return this._groups.updateGroupMembers(s,n)}addGroupMembers(s,n){return this._groups.addGroupMembers(s,n)}removeGroupMembers(s,n){return this._groups.removeGroupMembers(s,n)}}const Ns={en_US:{direction:"ltr",entries:{"conv.loading.msg":"Loading...","conv.mentioned.me.msg":"@me","conv.mentioned.all.msg":"@all","conv.draft.msg":"[Draft]","message.list.select":"Select the following message","message.list.unselect":"Unselect","message.list.recall.by.self":"You recalled one message","message.list.recall.by.other":"{0} recalled one message","message.list.reedit.msg":"Reedit","message.list.read":"Seen","message.list.back":"Back","message.list.reedit":"Reedit","message.list.read-receipt.tooltip.all-unread":"All unread","message.list.read-receipt.tooltip.all-read":"All read","message.list.read-receipt.tooltip.read-count":" Read: {0}","message.list.read-receipt.tooltip.unread-count":" Unread: {0}","message-type.RC:ImgMsg":"[Image]","message-type.RC:HQVCMsg":"[Audio]","message-type.RC:VcMsg":"[Audio]","message-type.RC:GIFMsg":"[Image]","message-type.RC:FileMsg":"[File]","message-type.RC:SightMsg":"[Video]","message-type.RC:ImgTextMsg":"[Image text]","message-type.RC:LBSMsg":"[Location]","message-type.RC:CombineMsg":"[Combine]","message-type.RC:CombineV2Msg":"[Combine]","message-type.RC:ReferenceMsg":"[Reference]","message-type.unknown":"[Unsupported message types]","time.format.today":"Today","time.format.yesterday":"Yesterday","time.format.monday":"Mon","time.format.tueday":"Tue","time.format.wedday":"Wed","time.format.thurday":"Thur","time.format.friday":"Fri","time.format.satday":"Sat","time.format.sunday":"Sun","time.format.full":"{0}/{1}/{2}","input.menu.item.photo":"Photo","input.menu.item.images":"Image","input.menu.item.files":"File","input.menu.item.emoji":"Emoji","input.placeholder":"Shift + Enter for newline, Enter for send","input.send":"Send","input.reply.prefix":"Reply ","input.mentioned.all":"All","input.placeholder.search":"search","conversation.menu.item.add_top":"Pin","conversation.menu.item.remove_top":"Unpin","conversation.menu.item.mute":"Mute","conversation.menu.item.unmute":"Unmute","conversation.menu.item.mark_read":"Mark as read","conversation.menu.item.mark_unread":"Mark as unread","conversation.menu.item.remove":"Delete","message.menu.item.reply":"Reply","message.menu.item.multi.choice":"Select","message.menu.item.copy":"Copy","message.menu.item.forward":"Forward","message.menu.item.delete":"Delete","message.menu.item.speech.to.text":"Transcribe","message.menu.item.cancel.speech.to.text":"Cancel Transcribe","message.speech.to.text.failed":"Speech conversion failed","message.speech.to.text.empty":" ","message.speech.to.text.unsupported":"This voice message does not support transcription","message.menu.item.recall":"Recall","conversation.empty.desc":"No message","conversation.list.empty.desc":"No conversation","conversation.list.bar.title":"Conversation","conversation.detail.bar.typing":"Typing...","conversation.detail.bar.typing.audio":"Speaking...","alert.req.msg.error":"Request message failed: {0}","alert.pickfiles.maxcount":"You can only select up to {0} files","alert.paste.not.supported":"Paste is not supported in your browser","alert.delete.message.failed":"Delete message failed: {0}","alert.delete.messages.partial.failure":"Delete {0} messages failed","alert.delete.conversation.failed":"Delete conversation failed: {0}","alert.imlib.failed.network":"The request could not be completed. Please check your network and try again later. (Error code: {0})","alert.imlib.failed.generic":"The operation could not be completed. Please try again later. (Error code: {0})","alert.forward.not.supported":"The {0} selected messages cannot be forwarded","alert.forward.over.length":"Select up to 100 chat transcripts","alert.delete.over.length":"Cannot delete more than 100 messages","alert.send.message.maxcount":"Exceeds {0} characters, please delete some and try again.","alert.message-deleted":"Message deleted","alert.conversation.list.not.ready":"Conversation list is not ready, please try again later","dialog.delete.msg":"Delete this message","dialog.delete.msg.confirm":"Delete","dialog.delete.msg.content":"This operation will only delete your conversation record, others will still see it","dialog.tips.msg":"Tips","dialog.cancel.msg":"Cancel","dialog.confirm.msg":"OK","dialog.forwarding.msg":"Forward it to","dialog.recall.msg":"Also delete for everyone","dialog.forwarding.confirm":"Send","take-photo.send-btn.label":"Send","take-photo.cancel-btn.label":"Cancel","take-photo.retry-btn.label":"Retry","take-photo.msg.camera-starting":"Camera starting...","take-photo.msg.camera-startup-failure":"Camera startup failure: {0}","multi-choice.menu.selected-count":"Selected {0} items","multi-choice.menu.forward-item-by-item":"Forward","multi-choice.menu.delete":"Delete","private.combine-msg.title":"{0} and {1} chat history","private.combine-msg.signal.title":"{0}'s chat history","group.combine-msg.title":"Group chat history","connection.status.suspended":"Network Unavailabel","connection.status.disconnected":"Active disconnection","connection.status.connecting":"Connecting...","toast.forward.success":"Forwarded successfully","toast.copy.success":"Copied","quote.status.loading":"Loading...","quote.status.deleted":"Deleted","quote.status.recalled":"Recalled","quote.status.load-error":"Load error"}},zh_CN:{direction:"ltr",entries:{"conv.loading.msg":"加载中...","conv.mentioned.me.msg":"@我","conv.mentioned.all.msg":"@所有人","conv.draft.msg":"[草稿]","message.list.select":"选择以下信息","message.list.unselect":"取消选择","message.list.recall.by.self":"你撤回了一条消息","message.list.recall.by.other":"{0} 撤回了一条消息","message.list.reedit.msg":"重新编辑","message.list.read":"已读","message.list.back":"返回","message.list.reedit":"重新编辑","message.list.read-receipt.tooltip.all-unread":"全部未读","message.list.read-receipt.tooltip.all-read":"全部已读","message.list.read-receipt.tooltip.read-count":"{0} 人已读","message.list.read-receipt.tooltip.unread-count":"{0} 人未读","message-type.RC:ImgMsg":"[图片]","message-type.RC:HQVCMsg":"[语音]","message-type.RC:VcMsg":"[语音]","message-type.RC:GIFMsg":"[图片]","message-type.RC:FileMsg":"[文件]","message-type.RC:SightMsg":"[视频]","message-type.RC:ImgTextMsg":"[图文]","message-type.RC:LBSMsg":"[位置]","message-type.RC:CombineMsg":"[合并转发]","message-type.RC:CombineV2Msg":"[合并转发]","message-type.RC:ReferenceMsg":"[引用]","message-type.unknown":"[不支持的消息类型]","time.format.today":"今天","time.format.yesterday":"昨天","time.format.monday":"星期一","time.format.tueday":"星期二","time.format.wedday":"星期三","time.format.thurday":"星期四","time.format.friday":"星期五","time.format.satday":"星期六","time.format.sunday":"星期日","time.format.full":"{0}/{1}/{2}","input.menu.item.photo":"拍照","input.menu.item.images":"图片","input.menu.item.files":"文件","input.menu.item.emoji":"表情","input.placeholder":"Shift + Enter 换行, Enter 发送","input.send":"发送","input.reply.prefix":"回复 ","input.mentioned.all":"所有人","input.placeholder.search":"搜索","conversation.menu.item.add_top":"置顶","conversation.menu.item.remove_top":"取消置顶","conversation.menu.item.mute":"免打扰","conversation.menu.item.unmute":"取消免打扰","conversation.menu.item.mark_read":"标记已读","conversation.menu.item.mark_unread":"标记未读","conversation.menu.item.remove":"删除","message.menu.item.reply":"回复","message.menu.item.multi.choice":"多选","message.menu.item.copy":"复制","message.menu.item.forward":"转发","message.menu.item.delete":"删除","message.menu.item.speech.to.text":"转文字","message.menu.item.cancel.speech.to.text":"取消转文字","message.speech.to.text.failed":"语音转换失败","message.speech.to.text.empty":" ","message.speech.to.text.unsupported":"此语音消息不支持转文字功能","message.menu.item.recall":"撤回","conversation.empty.desc":"暂无消息","conversation.list.empty.desc":"暂无对话","conversation.list.bar.title":"会话","conversation.detail.bar.typing":"对方正在输入...","conversation.detail.bar.typing.audio":"对方正在讲话...","alert.req.msg.error":"请求消息失败: {0}","alert.pickfiles.maxcount":"最多只能选择 {0} 个文件","alert.paste.not.supported":"您的浏览器不支持粘贴操作","alert.delete.message.failed":"删除消息失败: {0}","alert.delete.messages.partial.failure":"删除 {0} 条消息失败","alert.delete.conversation.failed":"删除会话失败: {0}","alert.imlib.failed.network":"当前请求未成功,请检查网络后稍候重试。(错误码:{0})","alert.imlib.failed.generic":"操作未成功,请稍后重试。(错误码:{0})","alert.forward.not.supported":"选中的第 {0} 条消息不支持转发","alert.forward.over.length":"聊天记录选择不能超过 100 条","alert.delete.over.length":"不能删除超过 100 条消息","alert.send.message.maxcount":"内容超过 {0} 字, 请删除部分内容后再尝试发送","alert.message-deleted":"消息被删除","alert.conversation.list.not.ready":"会话列表仍在加载中, 请稍后再试","dialog.delete.msg":"删除该条消息","dialog.delete.msg.confirm":"删除","dialog.delete.msg.content":"该操作仅会删除你的会话记录,其它人仍可见","dialog.tips.msg":"提示","dialog.cancel.msg":"取消","dialog.confirm.msg":"确认","dialog.forwarding.msg":"转发给","dialog.recall.msg":"同时删除对方的","dialog.forwarding.confirm":"发送","take-photo.send-btn.label":"发送","take-photo.cancel-btn.label":"取消","take-photo.retry-btn.label":"重拍","take-photo.msg.camera-starting":"相机启动中...","take-photo.msg.camera-startup-failure":"相机启动失败: {0}","multi-choice.menu.selected-count":"已选择 {0} 项","multi-choice.menu.forward-item-by-item":"逐条转发","multi-choice.menu.delete":"删除","private.combine-msg.title":"{0} 和 {1} 的聊天记录","private.combine-msg.signal.title":"{0} 的聊天记录","group.combine-msg.title":"群聊的聊天记录","connection.status.suspended":"当前网络不可用,请检查网络","connection.status.disconnected":"已主动断开连接","connection.status.connecting":"连接中...","toast.forward.success":"转发成功","toast.copy.success":"已复制","quote.status.loading":"加载中...","quote.status.deleted":"消息已删除","quote.status.recalled":"消息已撤回","quote.status.load-error":"消息查询失败"}}};class wp extends Ts{constructor(){super(...arguments);q(this,"_language","zh_CN")}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){}cloneLanguageEntries(s){return Ns[s]?(this.logger.info(B.A_CLONE_LANGUAGE_ENTRIES_O,`lang: ${s}`),{...Ns[s].entries}):(this.logger.error(B.A_CLONE_LANGUAGE_ENTRIES_O,`Language pack '${s}' not found.`),null)}registerLanguagePack(s,n,i="ltr"){this.logger.info(B.A_REGISTER_LANGUAGE_PACK_O,`lang: ${s}, direction: ${i}`),Ns[s]={direction:i,entries:n}}setLanguage(s){if(!Ns[s]){this.logger.error(B.A_SET_LANGUAGE_O,`Language pack '${s}' not found.`);return}if(this._language===s){this.logger.warn(B.A_SET_LANGUAGE_O,`Language '${s}' already in use.`);return}this.logger.info(B.A_SET_LANGUAGE_O,`current: ${this._language}, target: ${s}`);const{direction:n}=Ns[s];this._language=s,this.ctx.dispatchEvent(new ne(Z.LANGUAGE_CHANGE,{lang:s,direction:n}))}getLanguage(){return this._language}getSupportedLanguages(){return Object.keys(Ns)}getEntryString(s){var n;return(n=Ns[this._language])==null?void 0:n.entries[s]}format(s,...n){const i=Ns[this._language].entries[s];return i?i.replace(/\{\d+\}/g,(o,r)=>n[parseInt(o.substring(1,o.length-1),10)].toString()):s}}var Ds=(e=>(e[e.SUCCESS=f.ErrorCode.SUCCESS]="SUCCESS",e[e.INVALID_CONVERSATION=39001]="INVALID_CONVERSATION",e[e.TASK_CANCEL=39002]="TASK_CANCEL",e[e.CONVERSATION_LIST_NOT_READY=39003]="CONVERSATION_LIST_NOT_READY",e))(Ds||{});class r1 extends Ts{constructor(s,n=5,i=5){super(s);q(this,"_timestamps",[]);q(this,"_queue",[]);q(this,"_executing",[]);q(this,"_timer",-1);q(this,"_paused",!1);this._parallel=n,this._fps=i}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){clearTimeout(this._timer),this._timer=-1}async push(s){return new Promise(n=>{this._queue.push({params:s,resolve:n}),this.logger.info(B.L_PUSH_2_QUEUE_O,`${this._tag}: queue length: ${this._queue.length}`),this._execute()})}remove(s){let n=this._queue.findIndex(i=>i.params.transactionId===s);if(n!==-1){const i=this._queue[n];return i.code=Ds.TASK_CANCEL,!0}if(n=this._executing.findIndex(i=>i.params.transactionId===s),n!==-1){const i=this._executing[n],o=this._try2CancelExecutingTask(s);return o&&(i.code=Ds.TASK_CANCEL),o}return!1}async _execute(){if(this._paused||this._queue.length===0||this._executing.length>=this._parallel)return;if(this._timestamps.length>=this._fps){this.logger.warn(B.L_TASK_QUEUE_EXECUTE_O,`${this._tag}: trigger limiting`);return}this._timer===-1&&(this._timer=window.setTimeout(()=>{this._timestamps.length=0,this._timer=-1,this._execute()},1e3));const s=this._queue.shift();this._executing.push(s),this._timestamps.push(Date.now()),this.logger.info(B.L_TASK_QUEUE_EXECUTE_O,`${this._tag}: queue length: ${this._queue.length}, executing length: ${this._executing.length}`);const n=this._handle(s.params);this._execute();const{code:i,data:o}=await n;s.code=i,s.result=o,this._checkResolve()}_checkResolve(){for(;this._executing.length&&this._executing[0].code!==void 0;){const{resolve:s,code:n,result:i}=this._executing.shift();s({code:n,data:i})}this._execute()}}class Mp extends r1{constructor(s){super(s,1,5);q(this,"_tag","MessageSendQueue")}async _handle(s){const{conversation:n,message:i,options:o}=s,{conversationType:r,targetId:a,channelId:l}=n,c=this.logger.createTraceId();this.logger.info(B.L_SEND_MSG_T,`type: ${i.messageType}, conversationType: ${r}, targetId: ${a}, channelId: ${l||""}`,c);const{isCounted:u,isPersited:d,content:h,messageType:p,quoteInfo:_}=i,m=new f.BaseMessage(p,h,d,u);if(j.isObject(m.content))try{m.content=Ra(m.content)}catch(g){this.logger.warn(B.A_SEND_MESSAGE_E,g.message)}const b={...o,onSendBefore(g){var E;i.messageId=g.messageId,(E=o==null?void 0:o.onSendBefore)==null||E.call(o,g)},pushConfig:this.ctx.store.getPushConfig(i),quoteInfo:_};if(this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5){const g=[j.ConversationType.PRIVATE,j.ConversationType.GROUP].includes(n.conversationType),E=o==null?void 0:o.isMentioned;g&&!E&&(b.needReceipt=!0)}const{code:w,data:C}=await f.sendMessage(n,m,b);return w!==f.ErrorCode.SUCCESS?this.logger.warn(B.L_SEND_MSG_R,`code: ${w}`,c):this.logger.info(B.L_SEND_MSG_R,"success",c),{code:w,data:C}}_try2CancelExecutingTask(s){return!1}}class Op extends r1{constructor(){super(...arguments);q(this,"_tag","FileUploadQueue");q(this,"_clients",new Map)}_getFileType(s){switch(s){case f.MessageType.IMAGE:case f.MessageType.GIF:return f.FileType.IMAGE;case f.MessageType.SIGHT:return f.FileType.SIGHT;case f.MessageType.COMBINE:return f.FileType.COMBINE_HTML;default:return f.FileType.FILE}}async _handle(s){const{message:n,transactionId:i}=s,o=n.file,r=this._getFileType(n.messageType),a={file:o,fileType:r,onProgress:(p,_)=>{this.logger.debug(B.L_UPLOAD_FILE_O,`name: ${o.name}, progress: ${p}/${_}`);const m=Math.floor(p*100/_);n.progress=m,this.ctx.dispatchEvent(new ne(Z.FILE_UPLOAD_PROGRESS,{progress:m,message:n}))}},l=this.logger.createTraceId();this.logger.info(B.L_UPLOAD_FILE_T,`name: ${o.name}, size: ${o.size}`,l);const c=await f.createUploadTask(a);if(c.code!==f.ErrorCode.SUCCESS)return this.logger.warn(B.L_UPLOAD_FILE_R,`code: ${c.code}`,l),{code:c.code,data:{message:n}};const u=c.data;this._clients.set(i,u);const{code:d,data:h}=await u.awaitResult();return d!==f.ErrorCode.SUCCESS?(this.logger.warn(B.L_UPLOAD_FILE_R,`code: ${d}`,l),n.progress=-1,n.sentStatus=j.SentStatus.FAILED,this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,[n])),{code:d,data:{message:n}}):(this.logger.info(B.L_UPLOAD_FILE_R,"success",l),{code:d,data:{message:n,httpUrl:h.downloadUrl}})}_try2CancelExecutingTask(s){const n=this._clients.get(s);return n?(f.stopUploadTask(n.id),this._clients.delete(s),!0):!1}}/**
|
|
299
287
|
* @vue/shared v3.5.30
|
|
300
288
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
301
289
|
* @license MIT
|
|
302
|
-
**/function
|
|
290
|
+
**/function ls(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const He={},mi=[],kt=()=>{},Ei=()=>!1,Gn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),xa=e=>e.startsWith("onUpdate:"),Ve=Object.assign,ka=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},bp=Object.prototype.hasOwnProperty,Qe=(e,t)=>bp.call(e,t),he=Array.isArray,vi=e=>Ci(e)==="[object Map]",Bn=e=>Ci(e)==="[object Set]",a1=e=>Ci(e)==="[object Date]",Lp=e=>Ci(e)==="[object RegExp]",we=e=>typeof e=="function",be=e=>typeof e=="string",es=e=>typeof e=="symbol",qe=e=>e!==null&&typeof e=="object",Ua=e=>(qe(e)||we(e))&&we(e.then)&&we(e.catch),l1=Object.prototype.toString,Ci=e=>l1.call(e),Ap=e=>Ci(e).slice(8,-1),tr=e=>Ci(e)==="[object Object]",sr=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=ls(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xp=ls("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),nr=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},kp=/-\w/g,Je=nr(e=>e.replace(kp,t=>t.slice(1).toUpperCase())),Up=/\B([A-Z])/g,ts=nr(e=>e.replace(Up,"-$1").toLowerCase()),jn=nr(e=>e.charAt(0).toUpperCase()+e.slice(1)),yi=nr(e=>e?`on${jn(e)}`:""),Nt=(e,t)=>!Object.is(e,t),Si=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},c1=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},ir=e=>{const t=parseFloat(e);return isNaN(t)?e:t},or=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let u1;const rr=()=>u1||(u1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Np(e,t){return e+JSON.stringify(t,(s,n)=>typeof n=="function"?n.toString():n)}const Dp=ls("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function rt(e){if(he(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=be(n)?d1(n):rt(n);if(i)for(const o in i)t[o]=i[o]}return t}else if(be(e)||qe(e))return e}const Pp=/;(?![^(]*\))/g,Vp=/:([^]+)/,Fp=/\/\*[^]*?\*\//g;function d1(e){const t={};return e.replace(Fp,"").split(Pp).forEach(s=>{if(s){const n=s.split(Vp);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Fe(e){let t="";if(be(e))t=e;else if(he(e))for(let s=0;s<e.length;s++){const n=Fe(e[s]);n&&(t+=n+" ")}else if(qe(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}function $p(e){if(!e)return null;let{class:t,style:s}=e;return t&&!be(t)&&(e.class=Fe(t)),s&&(e.style=rt(s)),e}const Hp="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Gp="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Bp="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",jp="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",qp=ls(Hp),Kp=ls(Gp),zp=ls(Bp),Qp=ls(jp),Wp=ls("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function f1(e){return!!e||e===""}function Zp(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=tn(e[n],t[n]);return s}function tn(e,t){if(e===t)return!0;let s=a1(e),n=a1(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=es(e),n=es(t),s||n)return e===t;if(s=he(e),n=he(t),s||n)return s&&n?Zp(e,t):!1;if(s=qe(e),n=qe(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const r in e){const a=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(a&&!l||!a&&l||!tn(e[r],t[r]))return!1}}return String(e)===String(t)}function ar(e,t){return e.findIndex(s=>tn(s,t))}const h1=e=>!!(e&&e.__v_isRef===!0),re=e=>be(e)?e:e==null?"":he(e)||qe(e)&&(e.toString===l1||!we(e.toString))?h1(e)?re(e.value):JSON.stringify(e,p1,2):String(e),p1=(e,t)=>h1(t)?p1(e,t.value):vi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],o)=>(s[Na(n,o)+" =>"]=i,s),{})}:Bn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Na(s))}:es(t)?Na(t):qe(t)&&!he(t)&&!tr(t)?String(t):t,Na=(e,t="")=>{var s;return es(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function Yp(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/**
|
|
303
291
|
* @vue/reactivity v3.5.30
|
|
304
292
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
305
293
|
* @license MIT
|
|
306
|
-
**/let Gt;class Aa{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Gt,!t&&Gt&&(this.index=(Gt.scopes||(Gt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Gt;try{return Gt=this,t()}finally{Gt=s}}}on(){++this._on===1&&(this.prevScope=Gt,Gt=this)}off(){this._on>0&&--this._on===0&&(Gt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function ep(e){return new Aa(e)}function d1(){return Gt}function tp(e,t=!1){Gt&&Gt.cleanups.push(e)}let st;const xa=new WeakSet;class Xi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Gt&&Gt.active&&Gt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,xa.has(this)&&(xa.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||h1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,E1(this),p1(this);const t=st,s=Is;st=this,Is=!0;try{return this.fn()}finally{g1(this),st=t,Is=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Da(t);this.deps=this.depsTail=void 0,E1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?xa.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Na(this)&&this.run()}get dirty(){return Na(this)}}let f1=0,er,tr;function h1(e,t=!1){if(e.flags|=8,t){e.next=tr,tr=e;return}e.next=er,er=e}function ka(){f1++}function Ua(){if(--f1>0)return;if(tr){let t=tr;for(tr=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;er;){let t=er;for(er=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function p1(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function g1(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Da(n),sp(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Na(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(_1(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _1(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===sr)||(e.globalVersion=sr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Na(e))))return;e.flags|=2;const t=e.dep,s=st,n=Is;st=e,Is=!0;try{p1(e);const i=e.fn(e._value);(t.version===0||Nt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{st=s,Is=n,g1(e),e.flags&=-3}}function Da(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Da(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function sp(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}function np(e,t){e.effect instanceof Xi&&(e=e.effect.fn);const s=new Xi(e);t&&Ve(s,t);try{s.run()}catch(i){throw s.stop(),i}const n=s.run.bind(s);return n.effect=s,n}function ip(e){e.effect.stop()}let Is=!0;const m1=[];function Us(){m1.push(Is),Is=!1}function Ns(){const e=m1.pop();Is=e===void 0?!0:e}function E1(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=st;st=void 0;try{t()}finally{st=s}}}let sr=0;class rp{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ro{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!st||!Is||st===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==st)s=this.activeLink=new rp(st,this),st.deps?(s.prevDep=st.depsTail,st.depsTail.nextDep=s,st.depsTail=s):st.deps=st.depsTail=s,v1(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=st.depsTail,s.nextDep=void 0,st.depsTail.nextDep=s,st.depsTail=s,st.deps===s&&(st.deps=n)}return s}trigger(t){this.version++,sr++,this.notify(t)}notify(t){ka();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ua()}}}function v1(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)v1(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const oo=new WeakMap,jn=Symbol(""),Pa=Symbol(""),nr=Symbol("");function Bt(e,t,s){if(Is&&st){let n=oo.get(e);n||oo.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new ro),i.map=n,i.key=s),i.track()}}function Xs(e,t,s,n,i,r){const o=oo.get(e);if(!o){sr++;return}const a=l=>{l&&l.trigger()};if(ka(),t==="clear")o.forEach(a);else{const l=he(e),c=l&&Xr(s);if(l&&s==="length"){const u=Number(n);o.forEach((d,h)=>{(h==="length"||h===nr||!Xt(h)&&h>=u)&&a(d)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),c&&a(o.get(nr)),t){case"add":l?c&&a(o.get("length")):(a(o.get(jn)),Ci(e)&&a(o.get(Pa)));break;case"delete":l||(a(o.get(jn)),Ci(e)&&a(o.get(Pa)));break;case"set":Ci(e)&&a(o.get(jn));break}}Ua()}function op(e,t){const s=oo.get(e);return s&&s.get(t)}function Ii(e){const t=He(e);return t===e?t:(Bt(t,"iterate",nr),ts(e)?t:t.map(ws))}function ao(e){return Bt(e=He(e),"iterate",nr),e}function Ds(e,t){return Ps(e)?wi(sn(e)?ws(t):t):ws(t)}const ap={__proto__:null,[Symbol.iterator](){return Va(this,Symbol.iterator,e=>Ds(this,e))},concat(...e){return Ii(this).concat(...e.map(t=>he(t)?Ii(t):t))},entries(){return Va(this,"entries",e=>(e[1]=Ds(this,e[1]),e))},every(e,t){return en(this,"every",e,t,void 0,arguments)},filter(e,t){return en(this,"filter",e,t,s=>s.map(n=>Ds(this,n)),arguments)},find(e,t){return en(this,"find",e,t,s=>Ds(this,s),arguments)},findIndex(e,t){return en(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return en(this,"findLast",e,t,s=>Ds(this,s),arguments)},findLastIndex(e,t){return en(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return en(this,"forEach",e,t,void 0,arguments)},includes(...e){return $a(this,"includes",e)},indexOf(...e){return $a(this,"indexOf",e)},join(e){return Ii(this).join(e)},lastIndexOf(...e){return $a(this,"lastIndexOf",e)},map(e,t){return en(this,"map",e,t,void 0,arguments)},pop(){return ir(this,"pop")},push(...e){return ir(this,"push",e)},reduce(e,...t){return C1(this,"reduce",e,t)},reduceRight(e,...t){return C1(this,"reduceRight",e,t)},shift(){return ir(this,"shift")},some(e,t){return en(this,"some",e,t,void 0,arguments)},splice(...e){return ir(this,"splice",e)},toReversed(){return Ii(this).toReversed()},toSorted(e){return Ii(this).toSorted(e)},toSpliced(...e){return Ii(this).toSpliced(...e)},unshift(...e){return ir(this,"unshift",e)},values(){return Va(this,"values",e=>Ds(this,e))}};function Va(e,t,s){const n=ao(e),i=n[t]();return n!==e&&!ts(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const lp=Array.prototype;function en(e,t,s,n,i,r){const o=ao(e),a=o!==e&&!ts(e),l=o[t];if(l!==lp[t]){const d=l.apply(e,r);return a?ws(d):d}let c=s;o!==e&&(a?c=function(d,h){return s.call(this,Ds(e,d),h,e)}:s.length>2&&(c=function(d,h){return s.call(this,d,h,e)}));const u=l.call(o,c,n);return a&&i?i(u):u}function C1(e,t,s,n){const i=ao(e),r=i!==e&&!ts(e);let o=s,a=!1;i!==e&&(r?(a=n.length===0,o=function(c,u,d){return a&&(a=!1,c=Ds(e,c)),s.call(this,c,Ds(e,u),d,e)}):s.length>3&&(o=function(c,u,d){return s.call(this,c,u,d,e)}));const l=i[t](o,...n);return a?Ds(e,l):l}function $a(e,t,s){const n=He(e);Bt(n,"iterate",nr);const i=n[t](...s);return(i===-1||i===!1)&&or(s[0])?(s[0]=He(s[0]),n[t](...s)):i}function ir(e,t,s=[]){Us(),ka();const n=He(e)[t].apply(e,s);return Ua(),Ns(),n}const cp=as("__proto__,__v_isRef,__isVue"),y1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xt));function up(e){Xt(e)||(e=String(e));const t=He(this);return Bt(t,"has",e),t.hasOwnProperty(e)}class S1{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?O1:M1:r?R1:w1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=he(t);if(!i){let l;if(o&&(l=ap[s]))return l;if(s==="hasOwnProperty")return up}const a=Reflect.get(t,s,dt(t)?t:n);if((Xt(s)?y1.has(s):cp(s))||(i||Bt(t,"get",s),r))return a;if(dt(a)){const l=o&&Xr(s)?a:a.value;return i&&Be(l)?rr(l):l}return Be(a)?i?rr(a):tn(a):a}}class T1 extends S1{constructor(t=!1){super(!1,t)}set(t,s,n,i){let r=t[s];const o=he(t)&&Xr(s);if(!this._isShallow){const c=Ps(r);if(!ts(n)&&!Ps(n)&&(r=He(r),n=He(n)),!o&&dt(r)&&!dt(n))return c||(r.value=n),!0}const a=o?Number(s)<t.length:qe(t,s),l=Reflect.set(t,s,n,dt(t)?t:i);return t===He(i)&&(a?Nt(n,r)&&Xs(t,"set",s,n):Xs(t,"add",s,n)),l}deleteProperty(t,s){const n=qe(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&n&&Xs(t,"delete",s,void 0),i}has(t,s){const n=Reflect.has(t,s);return(!Xt(s)||!y1.has(s))&&Bt(t,"has",s),n}ownKeys(t){return Bt(t,"iterate",he(t)?"length":jn),Reflect.ownKeys(t)}}class I1 extends S1{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const dp=new T1,fp=new I1,hp=new T1(!0),pp=new I1(!0),Fa=e=>e,lo=e=>Reflect.getPrototypeOf(e);function gp(e,t,s){return function(...n){const i=this.__v_raw,r=He(i),o=Ci(r),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=i[e](...n),u=s?Fa:t?wi:ws;return!t&&Bt(r,"iterate",l?Pa:jn),Ve(Object.create(c),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:a?[u(d[0]),u(d[1])]:u(d),done:h}}})}}function co(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _p(e,t){const s={get(i){const r=this.__v_raw,o=He(r),a=He(i);e||(Nt(i,a)&&Bt(o,"get",i),Bt(o,"get",a));const{has:l}=lo(o),c=t?Fa:e?wi:ws;if(l.call(o,i))return c(r.get(i));if(l.call(o,a))return c(r.get(a));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!e&&Bt(He(i),"iterate",jn),i.size},has(i){const r=this.__v_raw,o=He(r),a=He(i);return e||(Nt(i,a)&&Bt(o,"has",i),Bt(o,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const o=this,a=o.__v_raw,l=He(a),c=t?Fa:e?wi:ws;return!e&&Bt(l,"iterate",jn),a.forEach((u,d)=>i.call(r,c(u),c(d),o))}};return Ve(s,e?{add:co("add"),set:co("set"),delete:co("delete"),clear:co("clear")}:{add(i){const r=He(this),o=lo(r),a=He(i),l=!t&&!ts(i)&&!Ps(i)?a:i;return o.has.call(r,l)||Nt(i,l)&&o.has.call(r,i)||Nt(a,l)&&o.has.call(r,a)||(r.add(l),Xs(r,"add",l,l)),this},set(i,r){!t&&!ts(r)&&!Ps(r)&&(r=He(r));const o=He(this),{has:a,get:l}=lo(o);let c=a.call(o,i);c||(i=He(i),c=a.call(o,i));const u=l.call(o,i);return o.set(i,r),c?Nt(r,u)&&Xs(o,"set",i,r):Xs(o,"add",i,r),this},delete(i){const r=He(this),{has:o,get:a}=lo(r);let l=o.call(r,i);l||(i=He(i),l=o.call(r,i)),a&&a.call(r,i);const c=r.delete(i);return l&&Xs(r,"delete",i,void 0),c},clear(){const i=He(this),r=i.size!==0,o=i.clear();return r&&Xs(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=gp(i,e,t)}),s}function uo(e,t){const s=_p(e,t);return(n,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(qe(s,i)&&i in n?s:n,i,r)}const mp={get:uo(!1,!1)},Ep={get:uo(!1,!0)},vp={get:uo(!0,!1)},Cp={get:uo(!0,!0)},w1=new WeakMap,R1=new WeakMap,M1=new WeakMap,O1=new WeakMap;function yp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sp(e){return e.__v_skip||!Object.isExtensible(e)?0:yp(k5(e))}function tn(e){return Ps(e)?e:fo(e,!1,dp,mp,w1)}function b1(e){return fo(e,!1,hp,Ep,R1)}function rr(e){return fo(e,!0,fp,vp,M1)}function Tp(e){return fo(e,!0,pp,Cp,O1)}function fo(e,t,s,n,i){if(!Be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=Sp(e);if(r===0)return e;const o=i.get(e);if(o)return o;const a=new Proxy(e,r===2?n:s);return i.set(e,a),a}function sn(e){return Ps(e)?sn(e.__v_raw):!!(e&&e.__v_isReactive)}function Ps(e){return!!(e&&e.__v_isReadonly)}function ts(e){return!!(e&&e.__v_isShallow)}function or(e){return e?!!e.__v_raw:!1}function He(e){const t=e&&e.__v_raw;return t?He(t):e}function L1(e){return!qe(e,"__v_skip")&&Object.isExtensible(e)&&r1(e,"__v_skip",!0),e}const ws=e=>Be(e)?tn(e):e,wi=e=>Be(e)?rr(e):e;function dt(e){return e?e.__v_isRef===!0:!1}function N(e){return x1(e,!1)}function A1(e){return x1(e,!0)}function x1(e,t){return dt(e)?e:new Ip(e,t)}class Ip{constructor(t,s){this.dep=new ro,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:He(t),this._value=s?t:ws(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||ts(t)||Ps(t);t=n?t:He(t),Nt(t,s)&&(this._rawValue=t,this._value=n?t:ws(t),this.dep.trigger())}}function wp(e){e.dep&&e.dep.trigger()}function x(e){return dt(e)?e.value:e}function Rp(e){return we(e)?e():x(e)}const Mp={get:(e,t,s)=>t==="__v_raw"?e:x(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return dt(i)&&!dt(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Ha(e){return sn(e)?e:new Proxy(e,Mp)}class Op{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new ro,{get:n,set:i}=t(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function k1(e){return new Op(e)}function bp(e){const t=he(e)?new Array(e.length):{};for(const s in e)t[s]=U1(e,s);return t}class Lp{constructor(t,s,n){this._object=t,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=He(t);let i=!0,r=t;if(!he(t)||!Xr(String(s)))do i=!or(r)||ts(r);while(i&&(r=r.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=x(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&dt(this._raw[this._key])){const s=this._object[this._key];if(dt(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return op(this._raw,this._key)}}class Ap{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function xp(e,t,s){return dt(e)?e:we(e)?new Ap(e):Be(e)&&arguments.length>1?U1(e,t,s):N(e)}function U1(e,t,s){return new Lp(e,t,s)}class kp{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ro(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=sr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&st!==this)return h1(this,!0),!0}get value(){const t=this.dep.track();return _1(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Up(e,t,s=!1){let n,i;return we(e)?n=e:(n=e.get,i=e.set),new kp(n,i,s)}const Np={GET:"get",HAS:"has",ITERATE:"iterate"},Dp={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ho={},po=new WeakMap;let In;function Pp(){return In}function N1(e,t=!1,s=In){if(s){let n=po.get(s);n||po.set(s,n=[]),n.push(e)}}function Vp(e,t,s=Fe){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:a,call:l}=s,c=v=>i?v:ts(v)||i===!1||i===0?nn(v,1):nn(v);let u,d,h,p,_=!1,m=!1;if(dt(e)?(d=()=>e.value,_=ts(e)):sn(e)?(d=()=>c(e),_=!0):he(e)?(m=!0,_=e.some(v=>sn(v)||ts(v)),d=()=>e.map(v=>{if(dt(v))return v.value;if(sn(v))return c(v);if(we(v))return l?l(v,2):v()})):we(e)?t?d=l?()=>l(e,2):e:d=()=>{if(h){Us();try{h()}finally{Ns()}}const v=In;In=u;try{return l?l(e,3,[p]):e(p)}finally{In=v}}:d=kt,t&&i){const v=d,C=i===!0?1/0:i;d=()=>nn(v(),C)}const L=d1(),M=()=>{u.stop(),L&&L.active&&Oa(L.effects,u)};if(r&&t){const v=t;t=(...C)=>{v(...C),M()}}let E=m?new Array(e.length).fill(ho):ho;const g=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const C=u.run();if(i||_||(m?C.some((b,$)=>Nt(b,E[$])):Nt(C,E))){h&&h();const b=In;In=u;try{const $=[C,E===ho?void 0:m&&E[0]===ho?[]:E,p];E=C,l?l(t,3,$):t(...$)}finally{In=b}}}else u.run()};return a&&a(g),u=new Xi(d),u.scheduler=o?()=>o(g,!1):g,p=v=>N1(v,!1,u),h=u.onStop=()=>{const v=po.get(u);if(v){if(l)l(v,4);else for(const C of v)C();po.delete(u)}},t?n?g(!0):E=u.run():o?o(g.bind(null,!0),!0):u.run(),M.pause=u.pause.bind(u),M.resume=u.resume.bind(u),M.stop=M,M}function nn(e,t=1/0,s){if(t<=0||!Be(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,dt(e))nn(e.value,t,s);else if(he(e))for(let n=0;n<e.length;n++)nn(e[n],t,s);else if(Gn(e)||Ci(e))e.forEach(n=>{nn(n,t,s)});else if(Jr(e)){for(const n in e)nn(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&nn(e[n],t,s)}return e}/**
|
|
294
|
+
**/let Gt;class Da{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Gt,!t&&Gt&&(this.index=(Gt.scopes||(Gt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Gt;try{return Gt=this,t()}finally{Gt=s}}}on(){++this._on===1&&(this.prevScope=Gt,Gt=this)}off(){this._on>0&&--this._on===0&&(Gt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Jp(e){return new Da(e)}function g1(){return Gt}function Xp(e,t=!1){Gt&&Gt.cleanups.push(e)}let st;const Pa=new WeakSet;class Xi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Gt&&Gt.active&&Gt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pa.has(this)&&(Pa.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||m1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,S1(this),E1(this);const t=st,s=Rs;st=this,Rs=!0;try{return this.fn()}finally{v1(this),st=t,Rs=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ha(t);this.deps=this.depsTail=void 0,S1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pa.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$a(this)&&this.run()}get dirty(){return $a(this)}}let _1=0,eo,to;function m1(e,t=!1){if(e.flags|=8,t){e.next=to,to=e;return}e.next=eo,eo=e}function Va(){_1++}function Fa(){if(--_1>0)return;if(to){let t=to;for(to=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;eo;){let t=eo;for(eo=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function E1(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function v1(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Ha(n),e5(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function $a(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(C1(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function C1(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===so)||(e.globalVersion=so,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$a(e))))return;e.flags|=2;const t=e.dep,s=st,n=Rs;st=e,Rs=!0;try{E1(e);const i=e.fn(e._value);(t.version===0||Nt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{st=s,Rs=n,v1(e),e.flags&=-3}}function Ha(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Ha(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function e5(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}function t5(e,t){e.effect instanceof Xi&&(e=e.effect.fn);const s=new Xi(e);t&&Ve(s,t);try{s.run()}catch(i){throw s.stop(),i}const n=s.run.bind(s);return n.effect=s,n}function s5(e){e.effect.stop()}let Rs=!0;const y1=[];function Ps(){y1.push(Rs),Rs=!1}function Vs(){const e=y1.pop();Rs=e===void 0?!0:e}function S1(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=st;st=void 0;try{t()}finally{st=s}}}let so=0;class n5{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class lr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!st||!Rs||st===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==st)s=this.activeLink=new n5(st,this),st.deps?(s.prevDep=st.depsTail,st.depsTail.nextDep=s,st.depsTail=s):st.deps=st.depsTail=s,T1(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=st.depsTail,s.nextDep=void 0,st.depsTail.nextDep=s,st.depsTail=s,st.deps===s&&(st.deps=n)}return s}trigger(t){this.version++,so++,this.notify(t)}notify(t){Va();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Fa()}}}function T1(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)T1(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const cr=new WeakMap,qn=Symbol(""),Ga=Symbol(""),no=Symbol("");function Bt(e,t,s){if(Rs&&st){let n=cr.get(e);n||cr.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new lr),i.map=n,i.key=s),i.track()}}function sn(e,t,s,n,i,o){const r=cr.get(e);if(!r){so++;return}const a=l=>{l&&l.trigger()};if(Va(),t==="clear")r.forEach(a);else{const l=he(e),c=l&&sr(s);if(l&&s==="length"){const u=Number(n);r.forEach((d,h)=>{(h==="length"||h===no||!es(h)&&h>=u)&&a(d)})}else switch((s!==void 0||r.has(void 0))&&a(r.get(s)),c&&a(r.get(no)),t){case"add":l?c&&a(r.get("length")):(a(r.get(qn)),vi(e)&&a(r.get(Ga)));break;case"delete":l||(a(r.get(qn)),vi(e)&&a(r.get(Ga)));break;case"set":vi(e)&&a(r.get(qn));break}}Fa()}function i5(e,t){const s=cr.get(e);return s&&s.get(t)}function Ti(e){const t=Ge(e);return t===e?t:(Bt(t,"iterate",no),ss(e)?t:t.map(ws))}function ur(e){return Bt(e=Ge(e),"iterate",no),e}function Fs(e,t){return $s(e)?Ii(rn(e)?ws(t):t):ws(t)}const o5={__proto__:null,[Symbol.iterator](){return Ba(this,Symbol.iterator,e=>Fs(this,e))},concat(...e){return Ti(this).concat(...e.map(t=>he(t)?Ti(t):t))},entries(){return Ba(this,"entries",e=>(e[1]=Fs(this,e[1]),e))},every(e,t){return nn(this,"every",e,t,void 0,arguments)},filter(e,t){return nn(this,"filter",e,t,s=>s.map(n=>Fs(this,n)),arguments)},find(e,t){return nn(this,"find",e,t,s=>Fs(this,s),arguments)},findIndex(e,t){return nn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nn(this,"findLast",e,t,s=>Fs(this,s),arguments)},findLastIndex(e,t){return nn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nn(this,"forEach",e,t,void 0,arguments)},includes(...e){return ja(this,"includes",e)},indexOf(...e){return ja(this,"indexOf",e)},join(e){return Ti(this).join(e)},lastIndexOf(...e){return ja(this,"lastIndexOf",e)},map(e,t){return nn(this,"map",e,t,void 0,arguments)},pop(){return io(this,"pop")},push(...e){return io(this,"push",e)},reduce(e,...t){return I1(this,"reduce",e,t)},reduceRight(e,...t){return I1(this,"reduceRight",e,t)},shift(){return io(this,"shift")},some(e,t){return nn(this,"some",e,t,void 0,arguments)},splice(...e){return io(this,"splice",e)},toReversed(){return Ti(this).toReversed()},toSorted(e){return Ti(this).toSorted(e)},toSpliced(...e){return Ti(this).toSpliced(...e)},unshift(...e){return io(this,"unshift",e)},values(){return Ba(this,"values",e=>Fs(this,e))}};function Ba(e,t,s){const n=ur(e),i=n[t]();return n!==e&&!ss(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=s(o.value)),o}),i}const r5=Array.prototype;function nn(e,t,s,n,i,o){const r=ur(e),a=r!==e&&!ss(e),l=r[t];if(l!==r5[t]){const d=l.apply(e,o);return a?ws(d):d}let c=s;r!==e&&(a?c=function(d,h){return s.call(this,Fs(e,d),h,e)}:s.length>2&&(c=function(d,h){return s.call(this,d,h,e)}));const u=l.call(r,c,n);return a&&i?i(u):u}function I1(e,t,s,n){const i=ur(e),o=i!==e&&!ss(e);let r=s,a=!1;i!==e&&(o?(a=n.length===0,r=function(c,u,d){return a&&(a=!1,c=Fs(e,c)),s.call(this,c,Fs(e,u),d,e)}):s.length>3&&(r=function(c,u,d){return s.call(this,c,u,d,e)}));const l=i[t](r,...n);return a?Fs(e,l):l}function ja(e,t,s){const n=Ge(e);Bt(n,"iterate",no);const i=n[t](...s);return(i===-1||i===!1)&&ro(s[0])?(s[0]=Ge(s[0]),n[t](...s)):i}function io(e,t,s=[]){Ps(),Va();const n=Ge(e)[t].apply(e,s);return Fa(),Vs(),n}const a5=ls("__proto__,__v_isRef,__isVue"),R1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(es));function l5(e){es(e)||(e=String(e));const t=Ge(this);return Bt(t,"has",e),t.hasOwnProperty(e)}class w1{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(i?o?x1:A1:o?L1:b1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=he(t);if(!i){let l;if(r&&(l=o5[s]))return l;if(s==="hasOwnProperty")return l5}const a=Reflect.get(t,s,ht(t)?t:n);if((es(s)?R1.has(s):a5(s))||(i||Bt(t,"get",s),o))return a;if(ht(a)){const l=r&&sr(s)?a:a.value;return i&&qe(l)?oo(l):l}return qe(a)?i?oo(a):on(a):a}}class M1 extends w1{constructor(t=!1){super(!1,t)}set(t,s,n,i){let o=t[s];const r=he(t)&&sr(s);if(!this._isShallow){const c=$s(o);if(!ss(n)&&!$s(n)&&(o=Ge(o),n=Ge(n)),!r&&ht(o)&&!ht(n))return c||(o.value=n),!0}const a=r?Number(s)<t.length:Qe(t,s),l=Reflect.set(t,s,n,ht(t)?t:i);return t===Ge(i)&&(a?Nt(n,o)&&sn(t,"set",s,n):sn(t,"add",s,n)),l}deleteProperty(t,s){const n=Qe(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&n&&sn(t,"delete",s,void 0),i}has(t,s){const n=Reflect.has(t,s);return(!es(s)||!R1.has(s))&&Bt(t,"has",s),n}ownKeys(t){return Bt(t,"iterate",he(t)?"length":qn),Reflect.ownKeys(t)}}class O1 extends w1{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const c5=new M1,u5=new O1,d5=new M1(!0),f5=new O1(!0),qa=e=>e,dr=e=>Reflect.getPrototypeOf(e);function h5(e,t,s){return function(...n){const i=this.__v_raw,o=Ge(i),r=vi(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=i[e](...n),u=s?qa:t?Ii:ws;return!t&&Bt(o,"iterate",l?Ga:qn),Ve(Object.create(c),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:a?[u(d[0]),u(d[1])]:u(d),done:h}}})}}function fr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function p5(e,t){const s={get(i){const o=this.__v_raw,r=Ge(o),a=Ge(i);e||(Nt(i,a)&&Bt(r,"get",i),Bt(r,"get",a));const{has:l}=dr(r),c=t?qa:e?Ii:ws;if(l.call(r,i))return c(o.get(i));if(l.call(r,a))return c(o.get(a));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!e&&Bt(Ge(i),"iterate",qn),i.size},has(i){const o=this.__v_raw,r=Ge(o),a=Ge(i);return e||(Nt(i,a)&&Bt(r,"has",i),Bt(r,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const r=this,a=r.__v_raw,l=Ge(a),c=t?qa:e?Ii:ws;return!e&&Bt(l,"iterate",qn),a.forEach((u,d)=>i.call(o,c(u),c(d),r))}};return Ve(s,e?{add:fr("add"),set:fr("set"),delete:fr("delete"),clear:fr("clear")}:{add(i){const o=Ge(this),r=dr(o),a=Ge(i),l=!t&&!ss(i)&&!$s(i)?a:i;return r.has.call(o,l)||Nt(i,l)&&r.has.call(o,i)||Nt(a,l)&&r.has.call(o,a)||(o.add(l),sn(o,"add",l,l)),this},set(i,o){!t&&!ss(o)&&!$s(o)&&(o=Ge(o));const r=Ge(this),{has:a,get:l}=dr(r);let c=a.call(r,i);c||(i=Ge(i),c=a.call(r,i));const u=l.call(r,i);return r.set(i,o),c?Nt(o,u)&&sn(r,"set",i,o):sn(r,"add",i,o),this},delete(i){const o=Ge(this),{has:r,get:a}=dr(o);let l=r.call(o,i);l||(i=Ge(i),l=r.call(o,i)),a&&a.call(o,i);const c=o.delete(i);return l&&sn(o,"delete",i,void 0),c},clear(){const i=Ge(this),o=i.size!==0,r=i.clear();return o&&sn(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=h5(i,e,t)}),s}function hr(e,t){const s=p5(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Qe(s,i)&&i in n?s:n,i,o)}const g5={get:hr(!1,!1)},_5={get:hr(!1,!0)},m5={get:hr(!0,!1)},E5={get:hr(!0,!0)},b1=new WeakMap,L1=new WeakMap,A1=new WeakMap,x1=new WeakMap;function v5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function C5(e){return e.__v_skip||!Object.isExtensible(e)?0:v5(Ap(e))}function on(e){return $s(e)?e:pr(e,!1,c5,g5,b1)}function k1(e){return pr(e,!1,d5,_5,L1)}function oo(e){return pr(e,!0,u5,m5,A1)}function y5(e){return pr(e,!0,f5,E5,x1)}function pr(e,t,s,n,i){if(!qe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=C5(e);if(o===0)return e;const r=i.get(e);if(r)return r;const a=new Proxy(e,o===2?n:s);return i.set(e,a),a}function rn(e){return $s(e)?rn(e.__v_raw):!!(e&&e.__v_isReactive)}function $s(e){return!!(e&&e.__v_isReadonly)}function ss(e){return!!(e&&e.__v_isShallow)}function ro(e){return e?!!e.__v_raw:!1}function Ge(e){const t=e&&e.__v_raw;return t?Ge(t):e}function U1(e){return!Qe(e,"__v_skip")&&Object.isExtensible(e)&&c1(e,"__v_skip",!0),e}const ws=e=>qe(e)?on(e):e,Ii=e=>qe(e)?oo(e):e;function ht(e){return e?e.__v_isRef===!0:!1}function U(e){return D1(e,!1)}function N1(e){return D1(e,!0)}function D1(e,t){return ht(e)?e:new S5(e,t)}class S5{constructor(t,s){this.dep=new lr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Ge(t),this._value=s?t:ws(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||ss(t)||$s(t);t=n?t:Ge(t),Nt(t,s)&&(this._rawValue=t,this._value=n?t:ws(t),this.dep.trigger())}}function T5(e){e.dep&&e.dep.trigger()}function N(e){return ht(e)?e.value:e}function I5(e){return we(e)?e():N(e)}const R5={get:(e,t,s)=>t==="__v_raw"?e:N(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return ht(i)&&!ht(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Ka(e){return rn(e)?e:new Proxy(e,R5)}class w5{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new lr,{get:n,set:i}=t(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function P1(e){return new w5(e)}function M5(e){const t=he(e)?new Array(e.length):{};for(const s in e)t[s]=V1(e,s);return t}class O5{constructor(t,s,n){this._object=t,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=Ge(t);let i=!0,o=t;if(!he(t)||!sr(String(s)))do i=!ro(o)||ss(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=N(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ht(this._raw[this._key])){const s=this._object[this._key];if(ht(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return i5(this._raw,this._key)}}class b5{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function L5(e,t,s){return ht(e)?e:we(e)?new b5(e):qe(e)&&arguments.length>1?V1(e,t,s):U(e)}function V1(e,t,s){return new O5(e,t,s)}class A5{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new lr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=so-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&st!==this)return m1(this,!0),!0}get value(){const t=this.dep.track();return C1(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function x5(e,t,s=!1){let n,i;return we(e)?n=e:(n=e.get,i=e.set),new A5(n,i,s)}const k5={GET:"get",HAS:"has",ITERATE:"iterate"},U5={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},gr={},_r=new WeakMap;let Rn;function N5(){return Rn}function F1(e,t=!1,s=Rn){if(s){let n=_r.get(s);n||_r.set(s,n=[]),n.push(e)}}function D5(e,t,s=He){const{immediate:n,deep:i,once:o,scheduler:r,augmentJob:a,call:l}=s,c=E=>i?E:ss(E)||i===!1||i===0?an(E,1):an(E);let u,d,h,p,_=!1,m=!1;if(ht(e)?(d=()=>e.value,_=ss(e)):rn(e)?(d=()=>c(e),_=!0):he(e)?(m=!0,_=e.some(E=>rn(E)||ss(E)),d=()=>e.map(E=>{if(ht(E))return E.value;if(rn(E))return c(E);if(we(E))return l?l(E,2):E()})):we(e)?t?d=l?()=>l(e,2):e:d=()=>{if(h){Ps();try{h()}finally{Vs()}}const E=Rn;Rn=u;try{return l?l(e,3,[p]):e(p)}finally{Rn=E}}:d=kt,t&&i){const E=d,v=i===!0?1/0:i;d=()=>an(E(),v)}const b=g1(),w=()=>{u.stop(),b&&b.active&&ka(b.effects,u)};if(o&&t){const E=t;t=(...v)=>{E(...v),w()}}let C=m?new Array(e.length).fill(gr):gr;const g=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(t){const v=u.run();if(i||_||(m?v.some((L,F)=>Nt(L,C[F])):Nt(v,C))){h&&h();const L=Rn;Rn=u;try{const F=[v,C===gr?void 0:m&&C[0]===gr?[]:C,p];C=v,l?l(t,3,F):t(...F)}finally{Rn=L}}}else u.run()};return a&&a(g),u=new Xi(d),u.scheduler=r?()=>r(g,!1):g,p=E=>F1(E,!1,u),h=u.onStop=()=>{const E=_r.get(u);if(E){if(l)l(E,4);else for(const v of E)v();_r.delete(u)}},t?n?g(!0):C=u.run():r?r(g.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function an(e,t=1/0,s){if(t<=0||!qe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ht(e))an(e.value,t,s);else if(he(e))for(let n=0;n<e.length;n++)an(e[n],t,s);else if(Bn(e)||vi(e))e.forEach(n=>{an(n,t,s)});else if(tr(e)){for(const n in e)an(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&an(e[n],t,s)}return e}/**
|
|
307
295
|
* @vue/runtime-core v3.5.30
|
|
308
296
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
309
297
|
* @license MIT
|
|
310
|
-
**/const Kn=[];function
|
|
311
|
-
`),i]);else{const
|
|
312
|
-
|
|
313
|
-
`],...Bp(s))}),t}function Bp({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,i=` at <${td(e.component,e.type,n)}`,r=">"+s;return e.props?[i,...jp(e.props),r]:[i+r]}function jp(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...D1(n,e[n]))}),s.length>3&&t.push(" ..."),t}function D1(e,t,s){return be(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:dt(t)?(t=D1(e,He(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):we(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=He(t),s?t:[`${e}=`,t])}function Kp(e,t){}const zp={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},qp={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function zn(e,t,s,n){try{return n?e(...n):e()}catch(i){qn(i,t,s)}}function gs(e,t,s,n){if(we(e)){const i=zn(e,t,s,n);return i&&ba(i)&&i.catch(r=>{qn(r,t,s)}),i}if(he(e)){const i=[];for(let r=0;r<e.length;r++)i.push(gs(e[r],t,s,n));return i}}function qn(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Fe;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}a=a.parent}if(r){Us(),zn(r,null,10,[e,l,c]),Ns();return}}Zp(e,s,i,n,o)}function Zp(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const Qt=[];let Vs=-1;const Ri=[];let wn=null,Mi=0;const P1=Promise.resolve();let go=null;function ot(e){const t=go||P1;return e?t.then(this?e.bind(this):e):t}function Wp(e){let t=Vs+1,s=Qt.length;for(;t<s;){const n=t+s>>>1,i=Qt[n],r=lr(i);r<e||r===e&&i.flags&2?t=n+1:s=n}return t}function Ba(e){if(!(e.flags&1)){const t=lr(e),s=Qt[Qt.length-1];!s||!(e.flags&2)&&t>=lr(s)?Qt.push(e):Qt.splice(Wp(t),0,e),e.flags|=1,V1()}}function V1(){go||(go=P1.then(F1))}function ar(e){he(e)?Ri.push(...e):wn&&e.id===-1?wn.splice(Mi+1,0,e):e.flags&1||(Ri.push(e),e.flags|=1),V1()}function $1(e,t,s=Vs+1){for(;s<Qt.length;s++){const n=Qt[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Qt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function _o(e){if(Ri.length){const t=[...new Set(Ri)].sort((s,n)=>lr(s)-lr(n));if(Ri.length=0,wn){wn.push(...t);return}for(wn=t,Mi=0;Mi<wn.length;Mi++){const s=wn[Mi];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}wn=null,Mi=0}}const lr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function F1(e){const t=kt;try{for(Vs=0;Vs<Qt.length;Vs++){const s=Qt[Vs];s&&!(s.flags&8)&&(s.flags&4&&(s.flags&=-2),zn(s,s.i,s.i?15:14),s.flags&4||(s.flags&=-2))}}finally{for(;Vs<Qt.length;Vs++){const s=Qt[Vs];s&&(s.flags&=-2)}Vs=-1,Qt.length=0,_o(),go=null,(Qt.length||Ri.length)&&F1()}}let Oi,mo=[];function H1(e,t){var s,n;Oi=e,Oi?(Oi.enabled=!0,mo.forEach(({event:i,args:r})=>Oi.emit(i,...r)),mo=[]):typeof window<"u"&&window.HTMLElement&&!((n=(s=window.navigator)==null?void 0:s.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{H1(r,t)}),setTimeout(()=>{Oi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,mo=[])},3e3)):mo=[]}let Dt=null,Eo=null;function cr(e){const t=Dt;return Dt=e,Eo=e&&e.type.__scopeId||null,t}function Qp(e){Eo=e}function Yp(){Eo=null}const Jp=e=>ft;function ft(e,t=Dt,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&Cr(-1);const r=cr(t);let o;try{o=e(...i)}finally{cr(r),n._d&&Cr(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function _s(e,t){if(Dt===null)return e;const s=yr(Dt),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=Fe]=t[i];r&&(we(r)&&(r={mounted:r,updated:r}),r.deep&&nn(o),n.push({dir:r,instance:s,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function $s(e,t,s,n){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[n];l&&(Us(),gs(l,s,8,[e.el,a,e,t]),Ns())}}function vo(e,t){if(Pt){let s=Pt.provides;const n=Pt.parent&&Pt.parent.provides;n===s&&(s=Pt.provides=Object.create(n)),s[e]=t}}function Zn(e,t,s=!1){const n=Jt();if(n||Wn){let i=Wn?Wn._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&we(t)?t.call(n&&n.proxy):t}}function Xp(){return!!(Jt()||Wn)}const G1=Symbol.for("v-scx"),B1=()=>Zn(G1);function e3(e,t){return ur(e,null,t)}function t3(e,t){return ur(e,null,{flush:"post"})}function j1(e,t){return ur(e,null,{flush:"sync"})}function ls(e,t,s){return ur(e,t,s)}function ur(e,t,s=Fe){const{immediate:n,deep:i,flush:r,once:o}=s,a=Ve({},s),l=t&&n||!t&&r!=="post";let c;if(Xn){if(r==="sync"){const p=B1();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=kt,p.resume=kt,p.pause=kt,p}}const u=Pt;a.call=(p,_,m)=>gs(p,u,_,m);let d=!1;r==="post"?a.scheduler=p=>{mt(p,u&&u.suspense)}:r!=="sync"&&(d=!0,a.scheduler=(p,_)=>{_?p():Ba(p)}),a.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=Vp(e,t,a);return Xn&&(c?c.push(h):l&&h()),h}function s3(e,t,s){const n=this.proxy,i=be(e)?e.includes(".")?K1(n,e):()=>n[e]:e.bind(n,n);let r;we(t)?r=t:(r=t.handler,s=t);const o=Ni(this),a=ur(i,r.bind(n),s);return o(),a}function K1(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const z1=Symbol("_vte"),q1=e=>e.__isTeleport,dr=e=>e&&(e.disabled||e.disabled===""),Z1=e=>e&&(e.defer||e.defer===""),W1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Q1=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ja=(e,t)=>{const s=e&&e.to;return be(s)?t?t(s):null:s},Y1={name:"Teleport",__isTeleport:!0,process(e,t,s,n,i,r,o,a,l,c){const{mc:u,pc:d,pbc:h,o:{insert:p,querySelector:_,createText:m,createComment:L}}=c,M=dr(t.props);let{shapeFlag:E,children:g,dynamicChildren:v}=t;if(e==null){const C=t.el=m(""),b=t.anchor=m("");p(C,s,n),p(b,s,n);const $=(A,U)=>{E&16&&u(g,A,U,i,r,o,a,l)},F=()=>{const A=t.target=ja(t.props,_),U=Ka(A,t,m,p);A&&(o!=="svg"&&W1(A)?o="svg":o!=="mathml"&&Q1(A)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(A),M||($(A,U),yo(t,!1)))};M&&($(s,b),yo(t,!0)),Z1(t.props)?(t.el.__isMounted=!1,mt(()=>{F(),delete t.el.__isMounted},r)):F()}else{if(Z1(t.props)&&e.el.__isMounted===!1){mt(()=>{Y1.process(e,t,s,n,i,r,o,a,l,c)},r);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,b=t.target=e.target,$=t.targetAnchor=e.targetAnchor,F=dr(e.props),A=F?s:b,U=F?C:$;if(o==="svg"||W1(b)?o="svg":(o==="mathml"||Q1(b))&&(o="mathml"),v?(h(e.dynamicChildren,v,A,i,r,o,a),hl(e,t,!0)):l||d(e,t,A,U,i,r,o,a,!1),M)F?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Co(t,s,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=ja(t.props,_);O&&Co(t,O,null,c,0)}else F&&Co(t,b,$,c,1);yo(t,M)}},remove(e,t,s,{um:n,o:{remove:i}},r){const{shapeFlag:o,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=e;if(d&&(i(c),i(u)),r&&i(l),o&16){const p=r||!dr(h);for(let _=0;_<a.length;_++){const m=a[_];n(m,t,s,p,!!m.dynamicChildren)}}},move:Co,hydrate:n3};function Co(e,t,s,{o:{insert:n},m:i},r=2){r===0&&n(e.targetAnchor,t,s);const{el:o,anchor:a,shapeFlag:l,children:c,props:u}=e,d=r===2;if(d&&n(o,t,s),(!d||dr(u))&&l&16)for(let h=0;h<c.length;h++)i(c[h],t,s,2);d&&n(a,t,s)}function n3(e,t,s,n,i,r,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:c,createText:u}},d){function h(L,M){let E=M;for(;E;){if(E&&E.nodeType===8){if(E.data==="teleport start anchor")t.targetStart=E;else if(E.data==="teleport anchor"){t.targetAnchor=E,L._lpa=t.targetAnchor&&o(t.targetAnchor);break}}E=o(E)}}function p(L,M){M.anchor=d(o(L),M,a(L),s,n,i,r)}const _=t.target=ja(t.props,l),m=dr(t.props);if(_){const L=_._lpa||_.firstChild;t.shapeFlag&16&&(m?(p(e,t),h(_,L),t.targetAnchor||Ka(_,t,u,c,a(e)===_?e:null)):(t.anchor=o(e),h(_,L),t.targetAnchor||Ka(_,t,u,c),d(L&&o(L),t,_,s,n,i,r))),yo(t,m)}else m&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const i3=Y1;function yo(e,t){const s=e.ctx;if(s&&s.ut){let n,i;for(t?(n=e.el,i=e.anchor):(n=e.targetStart,i=e.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function Ka(e,t,s,n,i=null){const r=t.targetStart=s(""),o=t.targetAnchor=s("");return r[z1]=o,e&&(n(r,e,i),n(o,e,i)),o}const Fs=Symbol("_leaveCb"),fr=Symbol("_enterCb");function za(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return at(()=>{e.isMounted=!0}),Rn(()=>{e.isUnmounting=!0}),e}const ms=[Function,Array],qa={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ms,onEnter:ms,onAfterEnter:ms,onEnterCancelled:ms,onBeforeLeave:ms,onLeave:ms,onAfterLeave:ms,onLeaveCancelled:ms,onBeforeAppear:ms,onAppear:ms,onAfterAppear:ms,onAppearCancelled:ms},J1=e=>{const t=e.subTree;return t.component?J1(t.component):t},r3={name:"BaseTransition",props:qa,setup(e,{slots:t}){const s=Jt(),n=za();return()=>{const i=t.default&&So(t.default(),!0);if(!i||!i.length)return;const r=X1(i),o=He(e),{mode:a}=o;if(n.isLeaving)return Za(r);const l=su(r);if(!l)return Za(r);let c=bi(l,o,n,s,d=>c=d);l.type!==Et&&rn(l,c);let u=s.subTree&&su(s.subTree);if(u&&u.type!==Et&&!Rs(u,l)&&J1(s).type!==Et){let d=bi(u,o,n,s);if(rn(u,d),a==="out-in"&&l.type!==Et)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,u=void 0},Za(r);a==="in-out"&&l.type!==Et?d.delayLeave=(h,p,_)=>{const m=tu(n,u);m[String(u.key)]=u,h[Fs]=()=>{p(),h[Fs]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{_(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return r}}};function X1(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Et){t=s;break}}return t}const eu=r3;function tu(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function bi(e,t,s,n,i){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:_,onLeaveCancelled:m,onBeforeAppear:L,onAppear:M,onAfterAppear:E,onAppearCancelled:g}=t,v=String(e.key),C=tu(s,e),b=(A,U)=>{A&&gs(A,n,9,U)},$=(A,U)=>{const O=U[1];b(A,U),he(A)?A.every(T=>T.length<=1)&&O():A.length<=1&&O()},F={mode:o,persisted:a,beforeEnter(A){let U=l;if(!s.isMounted)if(r)U=L||l;else return;A[Fs]&&A[Fs](!0);const O=C[v];O&&Rs(e,O)&&O.el[Fs]&&O.el[Fs](),b(U,[A])},enter(A){if(C[v]===e)return;let U=c,O=u,T=d;if(!s.isMounted)if(r)U=M||c,O=E||u,T=g||d;else return;let D=!1;A[fr]=ee=>{D||(D=!0,ee?b(T,[A]):b(O,[A]),F.delayedLeave&&F.delayedLeave(),A[fr]=void 0)};const z=A[fr].bind(null,!1);U?$(U,[A,z]):z()},leave(A,U){const O=String(e.key);if(A[fr]&&A[fr](!0),s.isUnmounting)return U();b(h,[A]);let T=!1;A[Fs]=z=>{T||(T=!0,U(),z?b(m,[A]):b(_,[A]),A[Fs]=void 0,C[O]===e&&delete C[O])};const D=A[Fs].bind(null,!1);C[O]=e,p?$(p,[A,D]):D()},clone(A){const U=bi(A,t,s,n,i);return i&&i(U),U}};return F}function Za(e){if(hr(e))return e=Hs(e),e.children=null,e}function su(e){if(!hr(e))return q1(e.type)&&e.children?X1(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&we(s.default))return s.default()}}function rn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,rn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function So(e,t=!1,s){let n=[],i=0;for(let r=0;r<e.length;r++){let o=e[r];const a=s==null?o.key:String(s)+String(o.key!=null?o.key:r);o.type===De?(o.patchFlag&128&&i++,n=n.concat(So(o.children,t,a))):(t||o.type!==Et)&&n.push(a!=null?Hs(o,{key:a}):o)}if(i>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}function Te(e,t){return we(e)?(()=>Ve({name:e.name},t,{setup:e}))():e}function o3(){const e=Jt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Wa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function a3(e){const t=Jt(),s=A1(null);if(t){const i=t.refs===Fe?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>s.value,set:r=>s.value=r})}return s}function nu(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const To=new WeakMap;function Li(e,t,s,n,i=!1){if(he(e)){e.forEach((m,L)=>Li(m,t&&(he(t)?t[L]:t),s,n,i));return}if(on(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Li(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?yr(n.component):n.el,o=i?null:r,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Fe?a.refs={}:a.refs,d=a.setupState,h=He(d),p=d===Fe?vi:m=>nu(u,m)?!1:qe(h,m),_=(m,L)=>!(L&&nu(u,L));if(c!=null&&c!==l){if(iu(t),be(c))u[c]=null,p(c)&&(d[c]=null);else if(dt(c)){const m=t;_(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(we(l))zn(l,a,12,[o,u]);else{const m=be(l),L=dt(l);if(m||L){const M=()=>{if(e.f){const E=m?p(l)?d[l]:u[l]:_()||!e.k?l.value:u[e.k];if(i)he(E)&&Oa(E,r);else if(he(E))E.includes(r)||E.push(r);else if(m)u[l]=[r],p(l)&&(d[l]=u[l]);else{const g=[r];_(l,e.k)&&(l.value=g),e.k&&(u[e.k]=g)}}else m?(u[l]=o,p(l)&&(d[l]=o)):L&&(_(l,e.k)&&(l.value=o),e.k&&(u[e.k]=o))};if(o){const E=()=>{M(),To.delete(e)};E.id=-1,To.set(e,E),mt(E,s)}else iu(e),M()}}}function iu(e){const t=To.get(e);t&&(t.flags|=8,To.delete(e))}let ru=!1;const Ai=()=>{ru||(console.error("Hydration completed but contains mismatches."),ru=!0)},l3=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",c3=e=>e.namespaceURI.includes("MathML"),Io=e=>{if(e.nodeType===1){if(l3(e))return"svg";if(c3(e))return"mathml"}},xi=e=>e.nodeType===8;function u3(e){const{mt:t,p:s,o:{patchProp:n,createText:i,nextSibling:r,parentNode:o,remove:a,insert:l,createComment:c}}=e,u=(g,v)=>{if(!v.hasChildNodes()){s(null,g,v),_o(),v._vnode=g;return}d(v.firstChild,g,null,null,null),_o(),v._vnode=g},d=(g,v,C,b,$,F=!1)=>{F=F||!!v.dynamicChildren;const A=xi(g)&&g.data==="[",U=()=>m(g,v,C,b,$,A),{type:O,ref:T,shapeFlag:D,patchFlag:z}=v;let ee=g.nodeType;v.el=g,z===-2&&(F=!1,v.dynamicChildren=null);let te=null;switch(O){case Mn:ee!==3?v.children===""?(l(v.el=i(""),o(g),g),te=g):te=U():(g.data!==v.children&&(Ai(),g.data=v.children),te=r(g));break;case Et:E(g)?(te=r(g),M(v.el=g.content.firstChild,g,C)):ee!==8||A?te=U():te=r(g);break;case Yn:if(A&&(g=r(g),ee=g.nodeType),ee===1||ee===3){te=g;const ne=!v.children.length;for(let V=0;V<v.staticCount;V++)ne&&(v.children+=te.nodeType===1?te.outerHTML:te.data),V===v.staticCount-1&&(v.anchor=te),te=r(te);return A?r(te):te}else U();break;case De:A?te=_(g,v,C,b,$,F):te=U();break;default:if(D&1)(ee!==1||v.type.toLowerCase()!==g.tagName.toLowerCase())&&!E(g)?te=U():te=h(g,v,C,b,$,F);else if(D&6){v.slotScopeIds=$;const ne=o(g);if(A?te=L(g):xi(g)&&g.data==="teleport start"?te=L(g,g.data,"teleport end"):te=r(g),t(v,ne,null,C,b,Io(ne),F),on(v)&&!v.type.__asyncResolved){let V;A?(V=Re(De),V.anchor=te?te.previousSibling:ne.lastChild):V=g.nodeType===3?Po(""):Re("div"),V.el=g,v.component.subTree=V}}else D&64?ee!==8?te=U():te=v.type.hydrate(g,v,C,b,$,F,e,p):D&128&&(te=v.type.hydrate(g,v,C,b,Io(o(g)),$,F,e,d))}return T!=null&&Li(T,null,b,v),te},h=(g,v,C,b,$,F)=>{F=F||!!v.dynamicChildren;const{type:A,props:U,patchFlag:O,shapeFlag:T,dirs:D,transition:z}=v,ee=A==="input"||A==="option";if(ee||O!==-1){D&&$s(v,null,C,"created");let te=!1;if(E(g)){te=Vu(null,z)&&C&&C.vnode.props&&C.vnode.props.appear;const V=g.content.firstChild;if(te){const Ae=V.getAttribute("class");Ae&&(V.$cls=Ae),z.beforeEnter(V)}M(V,g,C),v.el=g=V}if(T&16&&!(U&&(U.innerHTML||U.textContent))){let V=p(g.firstChild,v,g,C,b,$,F);for(;V;){wo(g,1)||Ai();const Ae=V;V=V.nextSibling,a(Ae)}}else if(T&8){let V=v.children;V[0]===`
|
|
314
|
-
`&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(V=V.slice(1));const{textContent:
|
|
315
|
-
`)&&(wo(g,0)||Ai(),g.textContent=v.children)}if(U){if(ee||!F||O&48){const V=g.tagName.includes("-");for(const Ae in U)(ee&&(Ae.endsWith("value")||Ae==="indeterminate")||Hn(Ae)&&!Ys(Ae)||Ae[0]==="."||V&&!Ys(Ae))&&n(g,Ae,null,U[Ae],void 0,C)}else if(U.onClick)n(g,"onClick",null,U.onClick,void 0,C);else if(O&4&&sn(U.style))for(const V in U.style)U.style[V]}let ne;(ne=U&&U.onVnodeBeforeMount)&&ns(ne,C,v),D&&$s(v,null,C,"beforeMount"),((ne=U&&U.onVnodeMounted)||D||te)&&Bu(()=>{ne&&ns(ne,C,v),te&&z.enter(g),D&&$s(v,null,C,"mounted")},b)}return g.nextSibling},p=(g,v,C,b,$,F,A)=>{A=A||!!v.dynamicChildren;const U=v.children,O=U.length;for(let T=0;T<O;T++){const D=A?U[T]:U[T]=ss(U[T]),z=D.type===Mn;g?(z&&!A&&T+1<O&&ss(U[T+1]).type===Mn&&(l(i(g.data.slice(D.children.length)),C,r(g)),g.data=D.children),g=d(g,D,b,$,F,A)):z&&!D.children?l(D.el=i(""),C):(wo(C,1)||Ai(),s(null,D,C,null,b,$,Io(C),F))}return g},_=(g,v,C,b,$,F)=>{const{slotScopeIds:A}=v;A&&($=$?$.concat(A):A);const U=o(g),O=p(r(g),v,U,C,b,$,F);return O&&xi(O)&&O.data==="]"?r(v.anchor=O):(Ai(),l(v.anchor=c("]"),U,O),O)},m=(g,v,C,b,$,F)=>{if(wo(g.parentElement,1)||Ai(),v.el=null,F){const O=L(g);for(;;){const T=r(g);if(T&&T!==O)a(T);else break}}const A=r(g),U=o(g);return a(g),s(null,v,U,A,C,b,Io(U),$),C&&(C.vnode.el=v.el,ko(C,v.el)),A},L=(g,v="[",C="]")=>{let b=0;for(;g;)if(g=r(g),g&&xi(g)&&(g.data===v&&b++,g.data===C)){if(b===0)return r(g);b--}return g},M=(g,v,C)=>{const b=v.parentNode;b&&b.replaceChild(g,v);let $=C;for(;$;)$.vnode.el===v&&($.vnode.el=$.subTree.el=g),$=$.parent},E=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[u,d]}const ou="data-allow-mismatch",d3={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function wo(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ou);)e=e.parentElement;const s=e&&e.getAttribute(ou);if(s==null)return!1;if(s==="")return!0;{const n=s.split(",");return t===0&&n.includes("children")?!0:n.includes(d3[t])}}const f3=no().requestIdleCallback||(e=>setTimeout(e,1)),h3=no().cancelIdleCallback||(e=>clearTimeout(e)),p3=(e=1e4)=>t=>{const s=f3(t,{timeout:e});return()=>h3(s)};function g3(e){const{top:t,left:s,bottom:n,right:i}=e.getBoundingClientRect(),{innerHeight:r,innerWidth:o}=window;return(t>0&&t<r||n>0&&n<r)&&(s>0&&s<o||i>0&&i<o)}const _3=e=>(t,s)=>{const n=new IntersectionObserver(i=>{for(const r of i)if(r.isIntersecting){n.disconnect(),t();break}},e);return s(i=>{if(i instanceof Element){if(g3(i))return t(),n.disconnect(),!1;n.observe(i)}}),()=>n.disconnect()},m3=e=>t=>{if(e){const s=matchMedia(e);if(s.matches)t();else return s.addEventListener("change",t,{once:!0}),()=>s.removeEventListener("change",t)}},E3=(e=[])=>(t,s)=>{be(e)&&(e=[e]);let n=!1;const i=o=>{n||(n=!0,r(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},r=()=>{s(o=>{for(const a of e)o.removeEventListener(a,i)})};return s(o=>{for(const a of e)o.addEventListener(a,i,{once:!0})}),r};function v3(e,t){if(xi(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(xi(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const on=e=>!!e.type.__asyncLoader;function C3(e){we(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:i=200,hydrate:r,timeout:o,suspensible:a=!0,onError:l}=e;let c=null,u,d=0;const h=()=>(d++,c=null,p()),p=()=>{let _;return c||(_=c=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((L,M)=>{l(m,()=>L(h()),()=>M(m),d+1)});throw m}).then(m=>_!==c&&c?c:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return Te({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(_,m,L){let M=!1;(m.bu||(m.bu=[])).push(()=>M=!0);const E=()=>{M||L()},g=r?()=>{const v=r(E,C=>v3(_,C));v&&(m.bum||(m.bum=[])).push(v)}:E;u?g():p().then(()=>!m.isUnmounted&&g())},get __asyncResolved(){return u},setup(){const _=Pt;if(Wa(_),u)return()=>Ro(u,_);const m=g=>{c=null,qn(g,_,13,!n)};if(a&&_.suspense||Xn)return p().then(g=>()=>Ro(g,_)).catch(g=>(m(g),()=>n?Re(n,{error:g}):null));const L=N(!1),M=N(),E=N(!!i);return i&&setTimeout(()=>{E.value=!1},i),o!=null&&setTimeout(()=>{if(!L.value&&!M.value){const g=new Error(`Async component timed out after ${o}ms.`);m(g),M.value=g}},o),p().then(()=>{L.value=!0,_.parent&&hr(_.parent.vnode)&&_.parent.update()}).catch(g=>{m(g),M.value=g}),()=>{if(L.value&&u)return Ro(u,_);if(M.value&&n)return Re(n,{error:M.value});if(s&&!E.value)return Ro(s,_)}}})}function Ro(e,t){const{ref:s,props:n,children:i,ce:r}=t.vnode,o=Re(e,n,i);return o.ref=s,o.ce=r,delete t.vnode.ce,o}const hr=e=>e.type.__isKeepAlive,y3={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=Jt(),n=s.ctx;if(!n.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const i=new Map,r=new Set;let o=null;const a=s.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=n,h=d("div");n.activate=(E,g,v,C,b)=>{const $=E.component;c(E,g,v,0,a),l($.vnode,E,g,v,$,a,C,E.slotScopeIds,b),mt(()=>{$.isDeactivated=!1,$.a&&Ti($.a);const F=E.props&&E.props.onVnodeMounted;F&&ns(F,$.parent,E)},a)},n.deactivate=E=>{const g=E.component;Uo(g.m),Uo(g.a),c(E,h,null,1,a),mt(()=>{g.da&&Ti(g.da);const v=E.props&&E.props.onVnodeUnmounted;v&&ns(v,g.parent,E),g.isDeactivated=!0},a)};function p(E){Qa(E),u(E,s,a,!0)}function _(E){i.forEach((g,v)=>{const C=Go(on(g)?g.type.__asyncResolved||{}:g.type);C&&!E(C)&&m(v)})}function m(E){const g=i.get(E);g&&(!o||!Rs(g,o))?p(g):o&&Qa(o),i.delete(E),r.delete(E)}ls(()=>[e.include,e.exclude],([E,g])=>{E&&_(v=>pr(E,v)),g&&_(v=>!pr(g,v))},{flush:"post",deep:!0});let L=null;const M=()=>{L!=null&&(No(s.subTree.type)?mt(()=>{i.set(L,Mo(s.subTree))},s.subTree.suspense):i.set(L,Mo(s.subTree)))};return at(M),bo(M),Rn(()=>{i.forEach(E=>{const{subTree:g,suspense:v}=s,C=Mo(g);if(E.type===C.type&&E.key===C.key){Qa(C);const b=C.component.da;b&&mt(b,v);return}p(E)})}),()=>{if(L=null,!t.default)return o=null;const E=t.default(),g=E[0];if(E.length>1)return o=null,E;if(!cn(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return o=null,g;let v=Mo(g);if(v.type===Et)return o=null,v;const C=v.type,b=Go(on(v)?v.type.__asyncResolved||{}:C),{include:$,exclude:F,max:A}=e;if($&&(!b||!pr($,b))||F&&b&&pr(F,b))return v.shapeFlag&=-257,o=v,g;const U=v.key==null?C:v.key,O=i.get(U);return v.el&&(v=Hs(v),g.shapeFlag&128&&(g.ssContent=v)),L=U,O?(v.el=O.el,v.component=O.component,v.transition&&rn(v,v.transition),v.shapeFlag|=512,r.delete(U),r.add(U)):(r.add(U),A&&r.size>parseInt(A,10)&&m(r.values().next().value)),v.shapeFlag|=256,o=v,No(g.type)?g:v}}};function pr(e,t){return he(e)?e.some(s=>pr(s,t)):be(e)?e.split(",").includes(t):x5(e)?(e.lastIndex=0,e.test(t)):!1}function au(e,t){cu(e,"a",t)}function lu(e,t){cu(e,"da",t)}function cu(e,t,s=Pt){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Oo(t,n,s),s){let i=s.parent;for(;i&&i.parent;)hr(i.parent.vnode)&&S3(n,t,s,i),i=i.parent}}function S3(e,t,s,n){const i=Oo(t,e,n,!0);Tt(()=>{Oa(n[t],i)},s)}function Qa(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Mo(e){return e.shapeFlag&128?e.ssContent:e}function Oo(e,t,s=Pt,n=!1){if(s){const i=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...o)=>{Us();const a=Ni(s),l=gs(t,s,e,o);return a(),Ns(),l});return n?i.unshift(r):i.push(r),r}}const an=e=>(t,s=Pt)=>{(!Xn||e==="sp")&&Oo(e,(...n)=>t(...n),s)},Ya=an("bm"),at=an("m"),Ja=an("bu"),bo=an("u"),Rn=an("bum"),Tt=an("um"),uu=an("sp"),du=an("rtg"),fu=an("rtc");function hu(e,t=Pt){Oo("ec",e,t)}const Xa="components",T3="directives";function ve(e,t){return tl(Xa,e,!0,t)||e}const pu=Symbol.for("v-ndc");function el(e){return be(e)?tl(Xa,e,!1)||e:e||pu}function I3(e){return tl(T3,e)}function tl(e,t,s=!0,n=!1){const i=Dt||Pt;if(i){const r=i.type;if(e===Xa){const a=Go(r,!1);if(a&&(a===t||a===Ye(t)||a===Bn(Ye(t))))return r}const o=gu(i[e]||r[e],t)||gu(i.appContext[e],t);return!o&&n?r:o}}function gu(e,t){return e&&(e[t]||e[Ye(t)]||e[Bn(Ye(t))])}function Ot(e,t,s,n){let i;const r=s&&s[n],o=he(e);if(o||be(e)){const a=o&&sn(e);let l=!1,c=!1;a&&(l=!ts(e),c=Ps(e),e=ao(e)),i=new Array(e.length);for(let u=0,d=e.length;u<d;u++)i[u]=t(l?c?wi(ws(e[u])):ws(e[u]):e[u],u,void 0,r&&r[u])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,r&&r[a])}else if(Be(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,r&&r[l]));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];i[l]=t(e[u],u,l,r&&r[l])}}else i=[];return s&&(s[n]=i),i}function w3(e,t){for(let s=0;s<t.length;s++){const n=t[s];if(he(n))for(let i=0;i<n.length;i++)e[n[i].name]=n[i].fn;else n&&(e[n.name]=n.key?(...i)=>{const r=n.fn(...i);return r&&(r.key=n.key),r}:n.fn)}return e}function ln(e,t,s={},n,i){if(Dt.ce||Dt.parent&&on(Dt.parent)&&Dt.parent.ce){const c=Object.keys(s).length>0;return t!=="default"&&(s.name=t),w(),Le(De,null,[Re("slot",s,n&&n())],c?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),w();const o=r&&sl(r(s)),a=s.key||o&&o.key,l=Le(De,{key:(a&&!Xt(a)?a:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function sl(e){return e.some(t=>cn(t)?!(t.type===Et||t.type===De&&!sl(t.children)):!0)?e:null}function R3(e,t){const s={};for(const n in e)s[t&&/[A-Z]/.test(n)?`on:${n}`:Si(n)]=e[n];return s}const nl=e=>e?Qu(e)?yr(e):nl(e.parent):null,gr=Ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nl(e.parent),$root:e=>nl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>al(e),$forceUpdate:e=>e.f||(e.f=()=>{Ba(e.update)}),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>s3.bind(e)}),il=(e,t)=>e!==Fe&&!e.__isScriptSetup&&qe(e,t),rl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return r[t]}else{if(il(n,t))return o[t]=1,n[t];if(i!==Fe&&qe(i,t))return o[t]=2,i[t];if(qe(r,t))return o[t]=3,r[t];if(s!==Fe&&qe(s,t))return o[t]=4,s[t];ol&&(o[t]=0)}}const c=gr[t];let u,d;if(c)return t==="$attrs"&&Bt(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(s!==Fe&&qe(s,t))return o[t]=4,s[t];if(d=l.config.globalProperties,qe(d,t))return d[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:r}=e;return il(i,t)?(i[t]=s,!0):n!==Fe&&qe(n,t)?(n[t]=s,!0):qe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:r,type:o}},a){let l;return!!(s[a]||e!==Fe&&a[0]!=="$"&&qe(e,a)||il(t,a)||qe(r,a)||qe(n,a)||qe(gr,a)||qe(i.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:qe(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}},M3=Ve({},rl,{get(e,t){if(t!==Symbol.unscopables)return rl.get(e,t,e)},has(e,t){return t[0]!=="_"&&!V5(t)}});function O3(){return null}function b3(){return null}function L3(e){}function A3(e){}function x3(){return null}function k3(){}function U3(e,t){return null}function N3(){return _u().slots}function D3(){return _u().attrs}function _u(e){const t=Jt();return t.setupContext||(t.setupContext=ed(t))}function _r(e){return he(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function P3(e,t){const s=_r(e);for(const n in t){if(n.startsWith("__skip"))continue;let i=s[n];i?he(i)||we(i)?i=s[n]={type:i,default:t[n]}:i.default=t[n]:i===null&&(i=s[n]={default:t[n]}),i&&t[`__skip_${n}`]&&(i.skipFactory=!0)}return s}function V3(e,t){return!e||!t?e||t:he(e)&&he(t)?e.concat(t):Ve({},_r(e),_r(t))}function $3(e,t){const s={};for(const n in e)t.includes(n)||Object.defineProperty(s,n,{enumerable:!0,get:()=>e[n]});return s}function F3(e){const t=Jt(),s=Xn;let n=e();Fo(),s&&Ui(!1);const i=()=>{Ni(t),s&&Ui(!0)},r=()=>{Jt()!==t&&t.scope.off(),Fo(),s&&Ui(!1)};return ba(n)&&(n=n.catch(o=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(r)),o})),[n,()=>{i(),Promise.resolve().then(r)}]}let ol=!0;function H3(e){const t=al(e),s=e.proxy,n=e.ctx;ol=!1,t.beforeCreate&&mu(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:_,activated:m,deactivated:L,beforeDestroy:M,beforeUnmount:E,destroyed:g,unmounted:v,render:C,renderTracked:b,renderTriggered:$,errorCaptured:F,serverPrefetch:A,expose:U,inheritAttrs:O,components:T,directives:D,filters:z}=t;if(c&&G3(c,n,null),o)for(const ne in o){const V=o[ne];we(V)&&(n[ne]=V.bind(s))}if(i){const ne=i.call(s,s);Be(ne)&&(e.data=tn(ne))}if(ol=!0,r)for(const ne in r){const V=r[ne],Ae=we(V)?V.bind(s,s):we(V.get)?V.get.bind(s,s):kt,wt=!we(V)&&we(V.set)?V.set.bind(s):kt,Qe=ye({get:Ae,set:wt});Object.defineProperty(n,ne,{enumerable:!0,configurable:!0,get:()=>Qe.value,set:gt=>Qe.value=gt})}if(a)for(const ne in a)Eu(a[ne],n,s,ne);if(l){const ne=we(l)?l.call(s):l;Reflect.ownKeys(ne).forEach(V=>{vo(V,ne[V])})}u&&mu(u,e,"c");function te(ne,V){he(V)?V.forEach(Ae=>ne(Ae.bind(s))):V&&ne(V.bind(s))}if(te(Ya,d),te(at,h),te(Ja,p),te(bo,_),te(au,m),te(lu,L),te(hu,F),te(fu,b),te(du,$),te(Rn,E),te(Tt,v),te(uu,A),he(U))if(U.length){const ne=e.exposed||(e.exposed={});U.forEach(V=>{Object.defineProperty(ne,V,{get:()=>s[V],set:Ae=>s[V]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===kt&&(e.render=C),O!=null&&(e.inheritAttrs=O),T&&(e.components=T),D&&(e.directives=D),A&&Wa(e)}function G3(e,t,s=kt){he(e)&&(e=ll(e));for(const n in e){const i=e[n];let r;Be(i)?"default"in i?r=Zn(i.from||n,i.default,!0):r=Zn(i.from||n):r=Zn(i),dt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r}}function mu(e,t,s){gs(he(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Eu(e,t,s,n){let i=n.includes(".")?K1(s,n):()=>s[n];if(be(e)){const r=t[e];we(r)&&ls(i,r)}else if(we(e))ls(i,e.bind(s));else if(Be(e))if(he(e))e.forEach(r=>Eu(r,t,s,n));else{const r=we(e.handler)?e.handler.bind(s):t[e.handler];we(r)&&ls(i,r,e)}}function al(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!s&&!n?l=t:(l={},i.length&&i.forEach(c=>Lo(l,c,o,!0)),Lo(l,t,o)),Be(t)&&r.set(t,l),l}function Lo(e,t,s,n=!1){const{mixins:i,extends:r}=t;r&&Lo(e,r,s,!0),i&&i.forEach(o=>Lo(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const a=B3[o]||s&&s[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const B3={data:vu,props:Cu,emits:Cu,methods:mr,computed:mr,beforeCreate:Yt,created:Yt,beforeMount:Yt,mounted:Yt,beforeUpdate:Yt,updated:Yt,beforeDestroy:Yt,beforeUnmount:Yt,destroyed:Yt,unmounted:Yt,activated:Yt,deactivated:Yt,errorCaptured:Yt,serverPrefetch:Yt,components:mr,directives:mr,watch:K3,provide:vu,inject:j3};function vu(e,t){return t?e?function(){return Ve(we(e)?e.call(this,this):e,we(t)?t.call(this,this):t)}:t:e}function j3(e,t){return mr(ll(e),ll(t))}function ll(e){if(he(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Yt(e,t){return e?[...new Set([].concat(e,t))]:t}function mr(e,t){return e?Ve(Object.create(null),e,t):t}function Cu(e,t){return e?he(e)&&he(t)?[...new Set([...e,...t])]:Ve(Object.create(null),_r(e),_r(t??{})):t}function K3(e,t){if(!e)return t;if(!t)return e;const s=Ve(Object.create(null),e);for(const n in t)s[n]=Yt(e[n],t[n]);return s}function yu(){return{app:null,config:{isNativeTag:vi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let z3=0;function q3(e,t){return function(n,i=null){we(n)||(n=Ve({},n)),i!=null&&!Be(i)&&(i=null);const r=yu(),o=new WeakSet,a=[];let l=!1;const c=r.app={_uid:z3++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:id,get config(){return r.config},set config(u){},use(u,...d){return o.has(u)||(u&&we(u.install)?(o.add(u),u.install(c,...d)):we(u)&&(o.add(u),u(c,...d))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,d){return d?(r.components[u]=d,c):r.components[u]},directive(u,d){return d?(r.directives[u]=d,c):r.directives[u]},mount(u,d,h){if(!l){const p=c._ceVNode||Re(n,i);return p.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),d&&t?t(p,u):e(p,u,h),l=!0,c._container=u,u.__vue_app__=c,yr(p.component)}},onUnmount(u){a.push(u)},unmount(){l&&(gs(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return r.provides[u]=d,c},runWithContext(u){const d=Wn;Wn=c;try{return u()}finally{Wn=d}}};return c}}let Wn=null;function Z3(e,t,s=Fe){const n=Jt(),i=Ye(t),r=es(t),o=Su(e,i),a=k1((l,c)=>{let u,d=Fe,h;return j1(()=>{const p=e[i];Nt(u,p)&&(u=p,c())}),{get(){return l(),s.get?s.get(u):u},set(p){const _=s.set?s.set(p):p;if(!Nt(_,u)&&!(d!==Fe&&Nt(p,d)))return;const m=n.vnode.props;m&&(t in m||i in m||r in m)&&(`onUpdate:${t}`in m||`onUpdate:${i}`in m||`onUpdate:${r}`in m)||(u=p,c()),n.emit(`update:${t}`,_),Nt(p,_)&&Nt(p,d)&&!Nt(_,h)&&c(),d=p,h=_}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||Fe:a,done:!1}:{done:!0}}}},a}const Su=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${es(t)}Modifiers`];function W3(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||Fe;let i=s;const r=t.startsWith("update:"),o=r&&Su(n,t.slice(7));o&&(o.trim&&(i=s.map(u=>be(u)?u.trim():u)),o.number&&(i=s.map(to)));let a,l=n[a=Si(t)]||n[a=Si(Ye(t))];!l&&r&&(l=n[a=Si(es(t))]),l&&gs(l,e,6,i);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,gs(c,e,6,i)}}const Q3=new WeakMap;function Tu(e,t,s=!1){const n=s?Q3:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const r=e.emits;let o={},a=!1;if(!we(e)){const l=c=>{const u=Tu(c,t,!0);u&&(a=!0,Ve(o,u))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(Be(e)&&n.set(e,null),null):(he(r)?r.forEach(l=>o[l]=null):Ve(o,r),Be(e)&&n.set(e,o),o)}function Ao(e,t){return!e||!Hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),qe(e,t[0].toLowerCase()+t.slice(1))||qe(e,es(t))||qe(e,t))}function iC(){}function xo(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:d,data:h,setupState:p,ctx:_,inheritAttrs:m}=e,L=cr(e);let M,E;try{if(s.shapeFlag&4){const v=i||n,C=v;M=ss(c.call(C,v,u,d,p,h,_)),E=a}else{const v=t;M=ss(v.length>1?v(d,{attrs:a,slots:o,emit:l}):v(d,null)),E=t.props?a:J3(a)}}catch(v){vr.length=0,qn(v,e,1),M=Re(Et)}let g=M;if(E&&m!==!1){const v=Object.keys(E),{shapeFlag:C}=g;v.length&&C&7&&(r&&v.some(Ma)&&(E=X3(E,r)),g=Hs(g,E,!1,!0))}return s.dirs&&(g=Hs(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(s.dirs):s.dirs),s.transition&&rn(g,s.transition),M=g,cr(L),M}function Y3(e,t=!0){let s;for(let n=0;n<e.length;n++){const i=e[n];if(cn(i)){if(i.type!==Et||i.children==="v-if"){if(s)return;s=i}}else return}return s}const J3=e=>{let t;for(const s in e)(s==="class"||s==="style"||Hn(s))&&((t||(t={}))[s]=e[s]);return t},X3=(e,t)=>{const s={};for(const n in e)(!Ma(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function e4(e,t,s){const{props:n,children:i,component:r}=e,{props:o,children:a,patchFlag:l}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return n?Iu(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(wu(o,n,h)&&!Ao(c,h))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Iu(n,o,c):!0:!!o;return!1}function Iu(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(wu(t,e,r)&&!Ao(s,r))return!0}return!1}function wu(e,t,s){const n=e[s],i=t[s];return s==="style"&&Be(n)&&Be(i)?!Js(n,i):n!==i}function ko({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const Ru={},Mu=()=>Object.create(Ru),Ou=e=>Object.getPrototypeOf(e)===Ru;function t4(e,t,s,n=!1){const i={},r=Mu();e.propsDefaults=Object.create(null),bu(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);s?e.props=n?i:b1(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function s4(e,t,s,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,a=He(i),[l]=e.propsOptions;let c=!1;if((n||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(Ao(e.emitsOptions,h))continue;const p=t[h];if(l)if(qe(r,h))p!==r[h]&&(r[h]=p,c=!0);else{const _=Ye(h);i[_]=cl(l,a,_,p,e,!1)}else p!==r[h]&&(r[h]=p,c=!0)}}}else{bu(e,t,i,r)&&(c=!0);let u;for(const d in a)(!t||!qe(t,d)&&((u=es(d))===d||!qe(t,u)))&&(l?s&&(s[d]!==void 0||s[u]!==void 0)&&(i[d]=cl(l,a,d,void 0,e,!0)):delete i[d]);if(r!==a)for(const d in r)(!t||!qe(t,d))&&(delete r[d],c=!0)}c&&Xs(e.attrs,"set","")}function bu(e,t,s,n){const[i,r]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Ys(l))continue;const c=t[l];let u;i&&qe(i,u=Ye(l))?!r||!r.includes(u)?s[u]=c:(a||(a={}))[u]=c:Ao(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=He(s),c=a||Fe;for(let u=0;u<r.length;u++){const d=r[u];s[d]=cl(i,l,d,c[d],e,!qe(c,d))}}return o}function cl(e,t,s,n,i,r){const o=e[s];if(o!=null){const a=qe(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&we(l)){const{propsDefaults:c}=i;if(s in c)n=c[s];else{const u=Ni(i);n=c[s]=l.call(null,t),u()}}else n=l;i.ce&&i.ce._setProp(s,n)}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===es(s))&&(n=!0))}return n}const n4=new WeakMap;function Lu(e,t,s=!1){const n=s?n4:t.propsCache,i=n.get(e);if(i)return i;const r=e.props,o={},a=[];let l=!1;if(!we(e)){const u=d=>{l=!0;const[h,p]=Lu(d,t,!0);Ve(o,h),p&&a.push(...p)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!l)return Be(e)&&n.set(e,Ei),Ei;if(he(r))for(let u=0;u<r.length;u++){const d=Ye(r[u]);Au(d)&&(o[d]=Fe)}else if(r)for(const u in r){const d=Ye(u);if(Au(d)){const h=r[u],p=o[d]=he(h)||we(h)?{type:h}:Ve({},h),_=p.type;let m=!1,L=!0;if(he(_))for(let M=0;M<_.length;++M){const E=_[M],g=we(E)&&E.name;if(g==="Boolean"){m=!0;break}else g==="String"&&(L=!1)}else m=we(_)&&_.name==="Boolean";p[0]=m,p[1]=L,(m||qe(p,"default"))&&a.push(d)}}const c=[o,a];return Be(e)&&n.set(e,c),c}function Au(e){return e[0]!=="$"&&!Ys(e)}const ul=e=>e==="_"||e==="_ctx"||e==="$stable",dl=e=>he(e)?e.map(ss):[ss(e)],i4=(e,t,s)=>{if(t._n)return t;const n=ft((...i)=>dl(t(...i)),s);return n._c=!1,n},xu=(e,t,s)=>{const n=e._ctx;for(const i in e){if(ul(i))continue;const r=e[i];if(we(r))t[i]=i4(i,r,n);else if(r!=null){const o=dl(r);t[i]=()=>o}}},ku=(e,t)=>{const s=dl(t);e.slots.default=()=>s},Uu=(e,t,s)=>{for(const n in t)(s||!ul(n))&&(e[n]=t[n])},r4=(e,t,s)=>{const n=e.slots=Mu();if(e.vnode.shapeFlag&32){const i=t._;i?(Uu(n,t,s),s&&r1(n,"_",i,!0)):xu(t,n)}else t&&ku(e,t)},o4=(e,t,s)=>{const{vnode:n,slots:i}=e;let r=!0,o=Fe;if(n.shapeFlag&32){const a=t._;a?s&&a===1?r=!1:Uu(i,t,s):(r=!t.$stable,xu(t,i)),o=t}else t&&(ku(e,t),o={default:1});if(r)for(const a in i)!ul(a)&&o[a]==null&&delete i[a]},mt=Bu;function Nu(e){return Pu(e)}function Du(e){return Pu(e,u3)}function Pu(e,t){const s=no();s.__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:p=kt,insertStaticContent:_}=e,m=(S,R,G,Q=null,q=null,W=null,le=void 0,re=null,se=!!R.dynamicChildren)=>{if(S===R)return;S&&!Rs(S,R)&&(Q=nt(S),gt(S,q,W,!0),S=null),R.patchFlag===-2&&(se=!1,R.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:de}=R;switch(Z){case Mn:L(S,R,G,Q);break;case Et:M(S,R,G,Q);break;case Yn:S==null&&E(R,G,Q,le);break;case De:T(S,R,G,Q,q,W,le,re,se);break;default:de&1?C(S,R,G,Q,q,W,le,re,se):de&6?D(S,R,G,Q,q,W,le,re,se):(de&64||de&128)&&Z.process(S,R,G,Q,q,W,le,re,se,$t)}fe!=null&&q?Li(fe,S&&S.ref,W,R||S,!R):fe==null&&S&&S.ref!=null&&Li(S.ref,null,W,S,!0)},L=(S,R,G,Q)=>{if(S==null)n(R.el=a(R.children),G,Q);else{const q=R.el=S.el;R.children!==S.children&&c(q,R.children)}},M=(S,R,G,Q)=>{S==null?n(R.el=l(R.children||""),G,Q):R.el=S.el},E=(S,R,G,Q)=>{[S.el,S.anchor]=_(S.children,R,G,Q,S.el,S.anchor)},g=({el:S,anchor:R},G,Q)=>{let q;for(;S&&S!==R;)q=h(S),n(S,G,Q),S=q;n(R,G,Q)},v=({el:S,anchor:R})=>{let G;for(;S&&S!==R;)G=h(S),i(S),S=G;i(R)},C=(S,R,G,Q,q,W,le,re,se)=>{if(R.type==="svg"?le="svg":R.type==="math"&&(le="mathml"),S==null)b(R,G,Q,q,W,le,re,se);else{const Z=S.el&&S.el._isVueCE?S.el:null;try{Z&&Z._beginPatch(),A(S,R,q,W,le,re,se)}finally{Z&&Z._endPatch()}}},b=(S,R,G,Q,q,W,le,re)=>{let se,Z;const{props:fe,shapeFlag:de,transition:Ce,dirs:Me}=S;if(se=S.el=o(S.type,W,fe&&fe.is,fe),de&8?u(se,S.children):de&16&&F(S.children,se,null,Q,q,fl(S,W),le,re),Me&&$s(S,null,Q,"created"),$(se,S,S.scopeId,le,Q),fe){for(const tt in fe)tt!=="value"&&!Ys(tt)&&r(se,tt,null,fe[tt],W,Q);"value"in fe&&r(se,"value",null,fe.value,W),(Z=fe.onVnodeBeforeMount)&&ns(Z,Q,S)}Me&&$s(S,null,Q,"beforeMount");const $e=Vu(q,Ce);$e&&Ce.beforeEnter(se),n(se,R,G),((Z=fe&&fe.onVnodeMounted)||$e||Me)&&mt(()=>{Z&&ns(Z,Q,S),$e&&Ce.enter(se),Me&&$s(S,null,Q,"mounted")},q)},$=(S,R,G,Q,q)=>{if(G&&p(S,G),Q)for(let W=0;W<Q.length;W++)p(S,Q[W]);if(q){let W=q.subTree;if(R===W||No(W.type)&&(W.ssContent===R||W.ssFallback===R)){const le=q.vnode;$(S,le,le.scopeId,le.slotScopeIds,q.parent)}}},F=(S,R,G,Q,q,W,le,re,se=0)=>{for(let Z=se;Z<S.length;Z++){const fe=S[Z]=re?un(S[Z]):ss(S[Z]);m(null,fe,R,G,Q,q,W,le,re)}},A=(S,R,G,Q,q,W,le)=>{const re=R.el=S.el;let{patchFlag:se,dynamicChildren:Z,dirs:fe}=R;se|=S.patchFlag&16;const de=S.props||Fe,Ce=R.props||Fe;let Me;if(G&&Qn(G,!1),(Me=Ce.onVnodeBeforeUpdate)&&ns(Me,G,R,S),fe&&$s(R,S,G,"beforeUpdate"),G&&Qn(G,!0),(de.innerHTML&&Ce.innerHTML==null||de.textContent&&Ce.textContent==null)&&u(re,""),Z?U(S.dynamicChildren,Z,re,G,Q,fl(R,q),W):le||V(S,R,re,null,G,Q,fl(R,q),W,!1),se>0){if(se&16)O(re,de,Ce,G,q);else if(se&2&&de.class!==Ce.class&&r(re,"class",null,Ce.class,q),se&4&&r(re,"style",de.style,Ce.style,q),se&8){const $e=R.dynamicProps;for(let tt=0;tt<$e.length;tt++){const ze=$e[tt],Ft=de[ze],Ut=Ce[ze];(Ut!==Ft||ze==="value")&&r(re,ze,Ft,Ut,q,G)}}se&1&&S.children!==R.children&&u(re,R.children)}else!le&&Z==null&&O(re,de,Ce,G,q);((Me=Ce.onVnodeUpdated)||fe)&&mt(()=>{Me&&ns(Me,G,R,S),fe&&$s(R,S,G,"updated")},Q)},U=(S,R,G,Q,q,W,le)=>{for(let re=0;re<R.length;re++){const se=S[re],Z=R[re],fe=se.el&&(se.type===De||!Rs(se,Z)||se.shapeFlag&198)?d(se.el):G;m(se,Z,fe,null,Q,q,W,le,!0)}},O=(S,R,G,Q,q)=>{if(R!==G){if(R!==Fe)for(const W in R)!Ys(W)&&!(W in G)&&r(S,W,R[W],null,q,Q);for(const W in G){if(Ys(W))continue;const le=G[W],re=R[W];le!==re&&W!=="value"&&r(S,W,re,le,q,Q)}"value"in G&&r(S,"value",R.value,G.value,q)}},T=(S,R,G,Q,q,W,le,re,se)=>{const Z=R.el=S?S.el:a(""),fe=R.anchor=S?S.anchor:a("");let{patchFlag:de,dynamicChildren:Ce,slotScopeIds:Me}=R;Me&&(re=re?re.concat(Me):Me),S==null?(n(Z,G,Q),n(fe,G,Q),F(R.children||[],G,fe,q,W,le,re,se)):de>0&&de&64&&Ce&&S.dynamicChildren&&S.dynamicChildren.length===Ce.length?(U(S.dynamicChildren,Ce,G,q,W,le,re),(R.key!=null||q&&R===q.subTree)&&hl(S,R,!0)):V(S,R,G,fe,q,W,le,re,se)},D=(S,R,G,Q,q,W,le,re,se)=>{R.slotScopeIds=re,S==null?R.shapeFlag&512?q.ctx.activate(R,G,Q,le,se):z(R,G,Q,q,W,le,se):ee(S,R,se)},z=(S,R,G,Q,q,W,le)=>{const re=S.component=Wu(S,Q,q);if(hr(S)&&(re.ctx.renderer=$t),Yu(re,!1,le),re.asyncDep){if(q&&q.registerDep(re,te,le),!S.el){const se=re.subTree=Re(Et);M(null,se,R,G),S.placeholder=se.el}}else te(re,S,R,G,q,W,le)},ee=(S,R,G)=>{const Q=R.component=S.component;if(e4(S,R,G))if(Q.asyncDep&&!Q.asyncResolved){ne(Q,R,G);return}else Q.next=R,Q.update();else R.el=S.el,Q.vnode=R},te=(S,R,G,Q,q,W,le)=>{const re=()=>{if(S.isMounted){let{next:de,bu:Ce,u:Me,parent:$e,vnode:tt}=S;{const Ht=$u(S);if(Ht){de&&(de.el=tt.el,ne(S,de,le)),Ht.asyncDep.then(()=>{mt(()=>{S.isUnmounted||Z()},q)});return}}let ze=de,Ft;Qn(S,!1),de?(de.el=tt.el,ne(S,de,le)):de=tt,Ce&&Ti(Ce),(Ft=de.props&&de.props.onVnodeBeforeUpdate)&&ns(Ft,$e,de,tt),Qn(S,!0);const Ut=xo(S),fs=S.subTree;S.subTree=Ut,m(fs,Ut,d(fs.el),nt(fs),S,q,W),de.el=Ut.el,ze===null&&ko(S,Ut.el),Me&&mt(Me,q),(Ft=de.props&&de.props.onVnodeUpdated)&&mt(()=>ns(Ft,$e,de,tt),q)}else{let de;const{el:Ce,props:Me}=R,{bm:$e,m:tt,parent:ze,root:Ft,type:Ut}=S,fs=on(R);if(Qn(S,!1),$e&&Ti($e),!fs&&(de=Me&&Me.onVnodeBeforeMount)&&ns(de,ze,R),Qn(S,!0),Ce&&Ks){const Ht=()=>{S.subTree=xo(S),Ks(Ce,S.subTree,S,q,null)};fs&&Ut.__asyncHydrate?Ut.__asyncHydrate(Ce,S,Ht):Ht()}else{Ft.ce&&Ft.ce._hasShadowRoot()&&Ft.ce._injectChildStyle(Ut,S.parent?S.parent.type:void 0);const Ht=S.subTree=xo(S);m(null,Ht,G,Q,S,q,W),R.el=Ht.el}if(tt&&mt(tt,q),!fs&&(de=Me&&Me.onVnodeMounted)){const Ht=R;mt(()=>ns(de,ze,Ht),q)}(R.shapeFlag&256||ze&&on(ze.vnode)&&ze.vnode.shapeFlag&256)&&S.a&&mt(S.a,q),S.isMounted=!0,R=G=Q=null}};S.scope.on();const se=S.effect=new Xi(re);S.scope.off();const Z=S.update=se.run.bind(se),fe=S.job=se.runIfDirty.bind(se);fe.i=S,fe.id=S.uid,se.scheduler=()=>Ba(fe),Qn(S,!0),Z()},ne=(S,R,G)=>{R.component=S;const Q=S.vnode.props;S.vnode=R,S.next=null,s4(S,R.props,Q,G),o4(S,R.children,G),Us(),$1(S),Ns()},V=(S,R,G,Q,q,W,le,re,se=!1)=>{const Z=S&&S.children,fe=S?S.shapeFlag:0,de=R.children,{patchFlag:Ce,shapeFlag:Me}=R;if(Ce>0){if(Ce&128){wt(Z,de,G,Q,q,W,le,re,se);return}else if(Ce&256){Ae(Z,de,G,Q,q,W,le,re,se);return}}Me&8?(fe&16&&Xe(Z,q,W),de!==Z&&u(G,de)):fe&16?Me&16?wt(Z,de,G,Q,q,W,le,re,se):Xe(Z,q,W,!0):(fe&8&&u(G,""),Me&16&&F(de,G,Q,q,W,le,re,se))},Ae=(S,R,G,Q,q,W,le,re,se)=>{S=S||Ei,R=R||Ei;const Z=S.length,fe=R.length,de=Math.min(Z,fe);let Ce;for(Ce=0;Ce<de;Ce++){const Me=R[Ce]=se?un(R[Ce]):ss(R[Ce]);m(S[Ce],Me,G,null,q,W,le,re,se)}Z>fe?Xe(S,q,W,!0,!1,de):F(R,G,Q,q,W,le,re,se,de)},wt=(S,R,G,Q,q,W,le,re,se)=>{let Z=0;const fe=R.length;let de=S.length-1,Ce=fe-1;for(;Z<=de&&Z<=Ce;){const Me=S[Z],$e=R[Z]=se?un(R[Z]):ss(R[Z]);if(Rs(Me,$e))m(Me,$e,G,null,q,W,le,re,se);else break;Z++}for(;Z<=de&&Z<=Ce;){const Me=S[de],$e=R[Ce]=se?un(R[Ce]):ss(R[Ce]);if(Rs(Me,$e))m(Me,$e,G,null,q,W,le,re,se);else break;de--,Ce--}if(Z>de){if(Z<=Ce){const Me=Ce+1,$e=Me<fe?R[Me].el:Q;for(;Z<=Ce;)m(null,R[Z]=se?un(R[Z]):ss(R[Z]),G,$e,q,W,le,re,se),Z++}}else if(Z>Ce)for(;Z<=de;)gt(S[Z],q,W,!0),Z++;else{const Me=Z,$e=Z,tt=new Map;for(Z=$e;Z<=Ce;Z++){const yt=R[Z]=se?un(R[Z]):ss(R[Z]);yt.key!=null&&tt.set(yt.key,Z)}let ze,Ft=0;const Ut=Ce-$e+1;let fs=!1,Ht=0;const Pn=new Array(Ut);for(Z=0;Z<Ut;Z++)Pn[Z]=0;for(Z=Me;Z<=de;Z++){const yt=S[Z];if(Ft>=Ut){gt(yt,q,W,!0);continue}let ut;if(yt.key!=null)ut=tt.get(yt.key);else for(ze=$e;ze<=Ce;ze++)if(Pn[ze-$e]===0&&Rs(yt,R[ze])){ut=ze;break}ut===void 0?gt(yt,q,W,!0):(Pn[ut-$e]=Z+1,ut>=Ht?Ht=ut:fs=!0,m(yt,R[ut],G,null,q,W,le,re,se),Ft++)}const zs=fs?a4(Pn):Ei;for(ze=zs.length-1,Z=Ut-1;Z>=0;Z--){const yt=$e+Z,ut=R[yt],mn=R[yt+1],Zi=yt+1<fe?mn.el||Fu(mn):Q;Pn[Z]===0?m(null,ut,G,Zi,q,W,le,re,se):fs&&(ze<0||Z!==zs[ze]?Qe(ut,G,Zi,2):ze--)}}},Qe=(S,R,G,Q,q=null)=>{const{el:W,type:le,transition:re,children:se,shapeFlag:Z}=S;if(Z&6){Qe(S.component.subTree,R,G,Q);return}if(Z&128){S.suspense.move(R,G,Q);return}if(Z&64){le.move(S,R,G,$t);return}if(le===De){n(W,R,G);for(let de=0;de<se.length;de++)Qe(se[de],R,G,Q);n(S.anchor,R,G);return}if(le===Yn){g(S,R,G);return}if(Q!==2&&Z&1&&re)if(Q===0)re.beforeEnter(W),n(W,R,G),mt(()=>re.enter(W),q);else{const{leave:de,delayLeave:Ce,afterLeave:Me}=re,$e=()=>{S.ctx.isUnmounted?i(W):n(W,R,G)},tt=()=>{W._isLeaving&&W[Fs](!0),de(W,()=>{$e(),Me&&Me()})};Ce?Ce(W,$e,tt):tt()}else n(W,R,G)},gt=(S,R,G,Q=!1,q=!1)=>{const{type:W,props:le,ref:re,children:se,dynamicChildren:Z,shapeFlag:fe,patchFlag:de,dirs:Ce,cacheIndex:Me}=S;if(de===-2&&(q=!1),re!=null&&(Us(),Li(re,null,G,S,!0),Ns()),Me!=null&&(R.renderCache[Me]=void 0),fe&256){R.ctx.deactivate(S);return}const $e=fe&1&&Ce,tt=!on(S);let ze;if(tt&&(ze=le&&le.onVnodeBeforeUnmount)&&ns(ze,R,S),fe&6)_e(S.component,G,Q);else{if(fe&128){S.suspense.unmount(G,Q);return}$e&&$s(S,null,R,"beforeUnmount"),fe&64?S.type.remove(S,R,G,$t,Q):Z&&!Z.hasOnce&&(W!==De||de>0&&de&64)?Xe(Z,R,G,!1,!0):(W===De&&de&384||!q&&fe&16)&&Xe(se,R,G),Q&&As(S)}(tt&&(ze=le&&le.onVnodeUnmounted)||$e)&&mt(()=>{ze&&ns(ze,R,S),$e&&$s(S,null,R,"unmounted")},G)},As=S=>{const{type:R,el:G,anchor:Q,transition:q}=S;if(R===De){ce(G,Q);return}if(R===Yn){v(S);return}const W=()=>{i(G),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(S.shapeFlag&1&&q&&!q.persisted){const{leave:le,delayLeave:re}=q,se=()=>le(G,W);re?re(S.el,W,se):se()}else W()},ce=(S,R)=>{let G;for(;S!==R;)G=h(S),i(S),S=G;i(R)},_e=(S,R,G)=>{const{bum:Q,scope:q,job:W,subTree:le,um:re,m:se,a:Z}=S;Uo(se),Uo(Z),Q&&Ti(Q),q.stop(),W&&(W.flags|=8,gt(le,S,R,G)),re&&mt(re,R),mt(()=>{S.isUnmounted=!0},R)},Xe=(S,R,G,Q=!1,q=!1,W=0)=>{for(let le=W;le<S.length;le++)gt(S[le],R,G,Q,q)},nt=S=>{if(S.shapeFlag&6)return nt(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const R=h(S.anchor||S.el),G=R&&R[z1];return G?h(G):R};let os=!1;const et=(S,R,G)=>{let Q;S==null?R._vnode&&(gt(R._vnode,null,null,!0),Q=R._vnode.component):m(R._vnode||null,S,R,null,null,null,G),R._vnode=S,os||(os=!0,$1(Q),_o(),os=!1)},$t={p:m,um:gt,m:Qe,r:As,mt:z,mc:F,pc:V,pbc:U,n:nt,o:e};let qi,Ks;return t&&([qi,Ks]=t($t)),{render:et,hydrate:qi,createApp:q3(et,qi)}}function fl({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Qn({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function hl(e,t,s=!1){const n=e.children,i=t.children;if(he(n)&&he(i))for(let r=0;r<n.length;r++){const o=n[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=un(i[r]),a.el=o.el),!s&&a.patchFlag!==-2&&hl(o,a)),a.type===Mn&&(a.patchFlag===-1&&(a=i[r]=un(a)),a.el=o.el),a.type===Et&&!a.el&&(a.el=o.el)}}function a4(e){const t=e.slice(),s=[0];let n,i,r,o,a;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(i=s[s.length-1],e[i]<c){t[n]=i,s.push(n);continue}for(r=0,o=s.length-1;r<o;)a=r+o>>1,e[s[a]]<c?r=a+1:o=a;c<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,o=s[r-1];r-- >0;)s[r]=o,o=t[o];return s}function $u(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$u(t)}function Uo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Fu(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Fu(t.subTree):null}const No=e=>e.__isSuspense;let pl=0;const l4={name:"Suspense",__isSuspense:!0,process(e,t,s,n,i,r,o,a,l,c){if(e==null)c4(t,s,n,i,r,o,a,l,c);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}u4(e,t,s,n,i,o,a,l,c)}},hydrate:d4,normalize:f4};function Er(e,t){const s=e.props&&e.props[t];we(s)&&s()}function c4(e,t,s,n,i,r,o,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),h=e.suspense=Hu(e,i,n,t,d,s,r,o,a,l);c(null,h.pendingBranch=e.ssContent,d,null,n,h,r,o),h.deps>0?(Er(e,"onPending"),Er(e,"onFallback"),c(null,e.ssFallback,t,s,n,null,r,o),ki(h,e.ssFallback)):h.resolve(!1,!0)}function u4(e,t,s,n,i,r,o,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const h=t.ssContent,p=t.ssFallback,{activeBranch:_,pendingBranch:m,isInFallback:L,isHydrating:M}=d;if(m)d.pendingBranch=h,Rs(m,h)?(l(m,h,d.hiddenContainer,null,i,d,r,o,a),d.deps<=0?d.resolve():L&&(M||(l(_,p,s,n,i,null,r,o,a),ki(d,p)))):(d.pendingId=pl++,M?(d.isHydrating=!1,d.activeBranch=m):c(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),L?(l(null,h,d.hiddenContainer,null,i,d,r,o,a),d.deps<=0?d.resolve():(l(_,p,s,n,i,null,r,o,a),ki(d,p))):_&&Rs(_,h)?(l(_,h,s,n,i,d,r,o,a),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,i,d,r,o,a),d.deps<=0&&d.resolve()));else if(_&&Rs(_,h))l(_,h,s,n,i,d,r,o,a),ki(d,h);else if(Er(t,"onPending"),d.pendingBranch=h,h.shapeFlag&512?d.pendingId=h.component.suspenseId:d.pendingId=pl++,l(null,h,d.hiddenContainer,null,i,d,r,o,a),d.deps<=0)d.resolve();else{const{timeout:E,pendingId:g}=d;E>0?setTimeout(()=>{d.pendingId===g&&d.fallback(p)},E):E===0&&d.fallback(p)}}function Hu(e,t,s,n,i,r,o,a,l,c,u=!1){const{p:d,m:h,um:p,n:_,o:{parentNode:m,remove:L}}=c;let M;const E=h4(e);E&&t&&t.pendingBranch&&(M=t.pendingId,t.deps++);const g=e.props?so(e.props.timeout):void 0,v=r,C={vnode:e,parent:t,parentComponent:s,namespace:o,container:n,hiddenContainer:i,deps:0,pendingId:pl++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(b=!1,$=!1){const{vnode:F,activeBranch:A,pendingBranch:U,pendingId:O,effects:T,parentComponent:D,container:z,isInFallback:ee}=C;let te=!1;C.isHydrating?C.isHydrating=!1:b||(te=A&&U.transition&&U.transition.mode==="out-in",te&&(A.transition.afterLeave=()=>{O===C.pendingId&&(h(U,z,r===v?_(A):r,0),ar(T),ee&&F.ssFallback&&(F.ssFallback.el=null))}),A&&(m(A.el)===z&&(r=_(A)),p(A,D,C,!0),!te&&ee&&F.ssFallback&&mt(()=>F.ssFallback.el=null,C)),te||h(U,z,r,0)),ki(C,U),C.pendingBranch=null,C.isInFallback=!1;let ne=C.parent,V=!1;for(;ne;){if(ne.pendingBranch){ne.effects.push(...T),V=!0;break}ne=ne.parent}!V&&!te&&ar(T),C.effects=[],E&&t&&t.pendingBranch&&M===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),Er(F,"onResolve")},fallback(b){if(!C.pendingBranch)return;const{vnode:$,activeBranch:F,parentComponent:A,container:U,namespace:O}=C;Er($,"onFallback");const T=_(F),D=()=>{C.isInFallback&&(d(null,b,U,T,A,null,O,a,l),ki(C,b))},z=b.transition&&b.transition.mode==="out-in";z&&(F.transition.afterLeave=D),C.isInFallback=!0,p(F,A,null,!0),z||D()},move(b,$,F){C.activeBranch&&h(C.activeBranch,b,$,F),C.container=b},next(){return C.activeBranch&&_(C.activeBranch)},registerDep(b,$,F){const A=!!C.pendingBranch;A&&C.deps++;const U=b.vnode.el;b.asyncDep.catch(O=>{qn(O,b,0)}).then(O=>{if(b.isUnmounted||C.isUnmounted||C.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:T}=b;_l(b,O,!1),U&&(T.el=U);const D=!U&&b.subTree.el;$(b,T,m(U||b.subTree.el),U?null:_(b.subTree),C,o,F),D&&(T.placeholder=null,L(D)),ko(b,T.el),A&&--C.deps===0&&C.resolve()})},unmount(b,$){C.isUnmounted=!0,C.activeBranch&&p(C.activeBranch,s,b,$),C.pendingBranch&&p(C.pendingBranch,s,b,$)}};return C}function d4(e,t,s,n,i,r,o,a,l){const c=t.suspense=Hu(t,n,s,e.parentNode,document.createElement("div"),null,i,r,o,a,!0),u=l(e,c.pendingBranch=t.ssContent,s,c,r,o);return c.deps===0&&c.resolve(!1,!0),u}function f4(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=Gu(n?s.default:s),e.ssFallback=n?Gu(s.fallback):Re(Et)}function Gu(e){let t;if(we(e)){const s=Jn&&e._c;s&&(e._d=!1,w()),e=e(),s&&(e._d=!0,t=jt,ju())}return he(e)&&(e=Y3(e)),e=ss(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Bu(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):ar(e)}function ki(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,n&&n.subTree===s&&(n.vnode.el=i,ko(n,i))}function h4(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const De=Symbol.for("v-fgt"),Mn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),Yn=Symbol.for("v-stc"),vr=[];let jt=null;function w(e=!1){vr.push(jt=e?null:[])}function ju(){vr.pop(),jt=vr[vr.length-1]||null}let Jn=1;function Cr(e,t=!1){Jn+=e,e<0&&jt&&t&&(jt.hasOnce=!0)}function Ku(e){return e.dynamicChildren=Jn>0?jt||Ei:null,ju(),Jn>0&&jt&&jt.push(e),e}function P(e,t,s,n,i,r){return Ku(y(e,t,s,n,i,r,!0))}function Le(e,t,s,n,i){return Ku(Re(e,t,s,n,i,!0))}function cn(e){return e?e.__v_isVNode===!0:!1}function Rs(e,t){return e.type===t.type&&e.key===t.key}function p4(e){}const zu=({key:e})=>e??null,Do=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||dt(e)||we(e)?{i:Dt,r:e,k:t,f:!!s}:e:null);function y(e,t=null,s=null,n=0,i=null,r=e===De?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zu(t),ref:t&&Do(t),scopeId:Eo,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Dt};return a?(gl(l,s),r&128&&e.normalize(l)):s&&(l.shapeFlag|=be(s)?8:16),Jn>0&&!o&&jt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&jt.push(l),l}const Re=g4;function g4(e,t=null,s=null,n=0,i=null,r=!1){if((!e||e===pu)&&(e=Et),cn(e)){const a=Hs(e,t,!0);return s&&gl(a,s),Jn>0&&!r&&jt&&(a.shapeFlag&6?jt[jt.indexOf(e)]=a:jt.push(a)),a.patchFlag=-2,a}if(T4(e)&&(e=e.__vccOpts),t){t=qu(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=Je(a)),Be(l)&&(or(l)&&!he(l)&&(l=Ve({},l)),t.style=it(l))}const o=be(e)?1:No(e)?128:q1(e)?64:Be(e)?4:we(e)?2:0;return y(e,t,s,n,i,o,r,!0)}function qu(e){return e?or(e)||Ou(e)?Ve({},e):e:null}function Hs(e,t,s=!1,n=!1){const{props:i,ref:r,patchFlag:o,children:a,transition:l}=e,c=t?Zu(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&zu(c),ref:t&&t.ref?s&&r?he(r)?r.concat(Do(t)):[r,Do(t)]:Do(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Hs(e.ssContent),ssFallback:e.ssFallback&&Hs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&rn(u,l.clone(u)),u}function Po(e=" ",t=0){return Re(Mn,null,e,t)}function Vo(e,t){const s=Re(Yn,null,e);return s.staticCount=t,s}function ue(e="",t=!1){return t?(w(),Le(Et,null,e)):Re(Et,null,e)}function ss(e){return e==null||typeof e=="boolean"?Re(Et):he(e)?Re(De,null,e.slice()):cn(e)?un(e):Re(Mn,null,String(e))}function un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Hs(e)}function gl(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(he(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),gl(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!Ou(t)?t._ctx=Dt:i===3&&Dt&&(Dt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else we(t)?(t={default:t,_ctx:Dt},s=32):(t=String(t),n&64?(s=16,t=[Po(t)]):s=8);e.children=t,e.shapeFlag|=s}function Zu(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Je([t.class,n.class]));else if(i==="style")t.style=it([t.style,n.style]);else if(Hn(i)){const r=t[i],o=n[i];o&&r!==o&&!(he(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function ns(e,t,s,n=null){gs(e,t,7,[s,n])}const _4=yu();let m4=0;function Wu(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||_4,r={uid:m4++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Aa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Lu(n,i),emitsOptions:Tu(n,i),emit:null,emitted:null,propsDefaults:Fe,inheritAttrs:n.inheritAttrs,ctx:Fe,data:Fe,props:Fe,attrs:Fe,slots:Fe,refs:Fe,setupState:Fe,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=W3.bind(null,r),e.ce&&e.ce(r),r}let Pt=null;const Jt=()=>Pt||Dt;let $o,Ui;{const e=no(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};$o=t("__VUE_INSTANCE_SETTERS__",s=>Pt=s),Ui=t("__VUE_SSR_SETTERS__",s=>Xn=s)}const Ni=e=>{const t=Pt;return $o(e),e.scope.on(),()=>{e.scope.off(),$o(t)}},Fo=()=>{Pt&&Pt.scope.off(),$o(null)};function Qu(e){return e.vnode.shapeFlag&4}let Xn=!1;function Yu(e,t=!1,s=!1){t&&Ui(t);const{props:n,children:i}=e.vnode,r=Qu(e);t4(e,n,r,t),r4(e,i,s||t);const o=r?E4(e,t):void 0;return t&&Ui(!1),o}function E4(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,rl);const{setup:n}=s;if(n){Us();const i=e.setupContext=n.length>1?ed(e):null,r=Ni(e),o=zn(n,e,0,[e.props,i]),a=ba(o);if(Ns(),r(),(a||e.sp)&&!on(e)&&Wa(e),a){if(o.then(Fo,Fo),t)return o.then(l=>{_l(e,l,t)}).catch(l=>{qn(l,e,0)});e.asyncDep=o}else _l(e,o,t)}else Xu(e,t)}function _l(e,t,s){we(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Be(t)&&(e.setupState=Ha(t)),Xu(e,s)}let Ho,ml;function Ju(e){Ho=e,ml=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,M3))}}const v4=()=>!Ho;function Xu(e,t,s){const n=e.type;if(!e.render){if(!t&&Ho&&!n.render){const i=n.template||al(e).template;if(i){const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,c=Ve(Ve({isCustomElement:r,delimiters:a},o),l);n.render=Ho(i,c)}}e.render=n.render||kt,ml&&ml(e)}{const i=Ni(e);Us();try{H3(e)}finally{Ns(),i()}}}const C4={get(e,t){return Bt(e,"get",""),e[t]}};function ed(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,C4),slots:e.slots,emit:e.emit,expose:t}}function yr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ha(L1(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in gr)return gr[s](e)},has(t,s){return s in t||s in gr}})):e.proxy}const y4=/(?:^|[-_])\w/g,S4=e=>e.replace(y4,t=>t.toUpperCase()).replace(/[-_]/g,"");function Go(e,t=!0){return we(e)?e.displayName||e.name:e.name||t&&e.__name}function td(e,t,s=!1){let n=Go(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&e){const i=r=>{for(const o in r)if(r[o]===t)return o};n=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return n?S4(n):s?"App":"Anonymous"}function T4(e){return we(e)&&"__vccOpts"in e}const ye=(e,t)=>Up(e,t,Xn);function sd(e,t,s){try{Cr(-1);const n=arguments.length;return n===2?Be(t)&&!he(t)?cn(t)?Re(e,null,[t]):Re(e,t):Re(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&cn(s)&&(s=[s]),Re(e,t,s))}finally{Cr(1)}}function I4(){}function w4(e,t,s,n){const i=s[n];if(i&&nd(i,e))return i;const r=t();return r.memo=e.slice(),r.cacheIndex=n,s[n]=r}function nd(e,t){const s=e.memo;if(s.length!=t.length)return!1;for(let n=0;n<s.length;n++)if(Nt(s[n],t[n]))return!1;return Jn>0&&jt&&jt.push(e),!0}const id="3.5.30",R4=kt,M4=qp,O4=Oi,b4=H1,L4={createComponentInstance:Wu,setupComponent:Yu,renderComponentRoot:xo,setCurrentRenderingInstance:cr,isVNode:cn,normalizeVNode:ss,getComponentPublicInstance:yr,ensureValidVNode:sl,pushWarningContext:$p,popWarningContext:Fp},A4=null,x4=null,k4=null;/**
|
|
298
|
+
**/const Kn=[];function P5(e){Kn.push(e)}function V5(){Kn.pop()}let za=!1;function $v(e,...t){if(za)return;za=!0,Ps();const s=Kn.length?Kn[Kn.length-1].component:null,n=s&&s.appContext.config.warnHandler,i=F5();if(n)zn(n,s,11,[e+t.map(o=>{var r,a;return(a=(r=o.toString)==null?void 0:r.call(o))!=null?a:JSON.stringify(o)}).join(""),s&&s.proxy,i.map(({vnode:o})=>`at <${od(s,o.type)}>`).join(`
|
|
299
|
+
`),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(`
|
|
300
|
+
`,...$5(i)),console.warn(...o)}Vs(),za=!1}function F5(){let e=Kn[Kn.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function $5(e){const t=[];return e.forEach((s,n)=>{t.push(...n===0?[]:[`
|
|
301
|
+
`],...H5(s))}),t}function H5({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,i=` at <${od(e.component,e.type,n)}`,o=">"+s;return e.props?[i,...G5(e.props),o]:[i+o]}function G5(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...$1(n,e[n]))}),s.length>3&&t.push(" ..."),t}function $1(e,t,s){return be(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:ht(t)?(t=$1(e,Ge(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):we(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ge(t),s?t:[`${e}=`,t])}function B5(e,t){}const j5={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},q5={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function zn(e,t,s,n){try{return n?e(...n):e()}catch(i){Qn(i,t,s)}}function _s(e,t,s,n){if(we(e)){const i=zn(e,t,s,n);return i&&Ua(i)&&i.catch(o=>{Qn(o,t,s)}),i}if(he(e)){const i=[];for(let o=0;o<e.length;o++)i.push(_s(e[o],t,s,n));return i}}function Qn(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||He;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}a=a.parent}if(o){Ps(),zn(o,null,10,[e,l,c]),Vs();return}}K5(e,s,i,n,r)}function K5(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const Yt=[];let Hs=-1;const Ri=[];let wn=null,wi=0;const H1=Promise.resolve();let mr=null;function at(e){const t=mr||H1;return e?t.then(this?e.bind(this):e):t}function z5(e){let t=Hs+1,s=Yt.length;for(;t<s;){const n=t+s>>>1,i=Yt[n],o=lo(i);o<e||o===e&&i.flags&2?t=n+1:s=n}return t}function Qa(e){if(!(e.flags&1)){const t=lo(e),s=Yt[Yt.length-1];!s||!(e.flags&2)&&t>=lo(s)?Yt.push(e):Yt.splice(z5(t),0,e),e.flags|=1,G1()}}function G1(){mr||(mr=H1.then(j1))}function ao(e){he(e)?Ri.push(...e):wn&&e.id===-1?wn.splice(wi+1,0,e):e.flags&1||(Ri.push(e),e.flags|=1),G1()}function B1(e,t,s=Hs+1){for(;s<Yt.length;s++){const n=Yt[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Yt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Er(e){if(Ri.length){const t=[...new Set(Ri)].sort((s,n)=>lo(s)-lo(n));if(Ri.length=0,wn){wn.push(...t);return}for(wn=t,wi=0;wi<wn.length;wi++){const s=wn[wi];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}wn=null,wi=0}}const lo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function j1(e){const t=kt;try{for(Hs=0;Hs<Yt.length;Hs++){const s=Yt[Hs];s&&!(s.flags&8)&&(s.flags&4&&(s.flags&=-2),zn(s,s.i,s.i?15:14),s.flags&4||(s.flags&=-2))}}finally{for(;Hs<Yt.length;Hs++){const s=Yt[Hs];s&&(s.flags&=-2)}Hs=-1,Yt.length=0,Er(),mr=null,(Yt.length||Ri.length)&&j1()}}let Mi,vr=[];function q1(e,t){var s,n;Mi=e,Mi?(Mi.enabled=!0,vr.forEach(({event:i,args:o})=>Mi.emit(i,...o)),vr=[]):typeof window<"u"&&window.HTMLElement&&!((n=(s=window.navigator)==null?void 0:s.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{q1(o,t)}),setTimeout(()=>{Mi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,vr=[])},3e3)):vr=[]}let Dt=null,Cr=null;function co(e){const t=Dt;return Dt=e,Cr=e&&e.type.__scopeId||null,t}function Q5(e){Cr=e}function W5(){Cr=null}const Z5=e=>pt;function pt(e,t=Dt,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&yo(-1);const o=co(t);let r;try{r=e(...i)}finally{co(o),n._d&&yo(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function ms(e,t){if(Dt===null)return e;const s=To(Dt),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,r,a,l=He]=t[i];o&&(we(o)&&(o={mounted:o,updated:o}),o.deep&&an(r),n.push({dir:o,instance:s,value:r,oldValue:void 0,arg:a,modifiers:l}))}return e}function Gs(e,t,s,n){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const a=i[r];o&&(a.oldValue=o[r].value);let l=a.dir[n];l&&(Ps(),_s(l,s,8,[e.el,a,e,t]),Vs())}}function yr(e,t){if(Pt){let s=Pt.provides;const n=Pt.parent&&Pt.parent.provides;n===s&&(s=Pt.provides=Object.create(n)),s[e]=t}}function Wn(e,t,s=!1){const n=Xt();if(n||Zn){let i=Zn?Zn._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&we(t)?t.call(n&&n.proxy):t}}function Y5(){return!!(Xt()||Zn)}const K1=Symbol.for("v-scx"),z1=()=>Wn(K1);function J5(e,t){return uo(e,null,t)}function X5(e,t){return uo(e,null,{flush:"post"})}function Q1(e,t){return uo(e,null,{flush:"sync"})}function cs(e,t,s){return uo(e,t,s)}function uo(e,t,s=He){const{immediate:n,deep:i,flush:o,once:r}=s,a=Ve({},s),l=t&&n||!t&&o!=="post";let c;if(ei){if(o==="sync"){const p=z1();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=kt,p.resume=kt,p.pause=kt,p}}const u=Pt;a.call=(p,_,m)=>_s(p,u,_,m);let d=!1;o==="post"?a.scheduler=p=>{Ct(p,u&&u.suspense)}:o!=="sync"&&(d=!0,a.scheduler=(p,_)=>{_?p():Qa(p)}),a.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=D5(e,t,a);return ei&&(c?c.push(h):l&&h()),h}function e3(e,t,s){const n=this.proxy,i=be(e)?e.includes(".")?W1(n,e):()=>n[e]:e.bind(n,n);let o;we(t)?o=t:(o=t.handler,s=t);const r=Ui(this),a=uo(i,o.bind(n),s);return r(),a}function W1(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const Z1=Symbol("_vte"),Y1=e=>e.__isTeleport,fo=e=>e&&(e.disabled||e.disabled===""),J1=e=>e&&(e.defer||e.defer===""),X1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,eu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Wa=(e,t)=>{const s=e&&e.to;return be(s)?t?t(s):null:s},tu={name:"Teleport",__isTeleport:!0,process(e,t,s,n,i,o,r,a,l,c){const{mc:u,pc:d,pbc:h,o:{insert:p,querySelector:_,createText:m,createComment:b}}=c,w=fo(t.props);let{shapeFlag:C,children:g,dynamicChildren:E}=t;if(e==null){const v=t.el=m(""),L=t.anchor=m("");p(v,s,n),p(L,s,n);const F=(A,k)=>{C&16&&u(g,A,k,i,o,r,a,l)},$=()=>{const A=t.target=Wa(t.props,_),k=Za(A,t,m,p);A&&(r!=="svg"&&X1(A)?r="svg":r!=="mathml"&&eu(A)&&(r="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(A),w||(F(A,k),Tr(t,!1)))};w&&(F(s,L),Tr(t,!0)),J1(t.props)?(t.el.__isMounted=!1,Ct(()=>{$(),delete t.el.__isMounted},o)):$()}else{if(J1(t.props)&&e.el.__isMounted===!1){Ct(()=>{tu.process(e,t,s,n,i,o,r,a,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const v=t.anchor=e.anchor,L=t.target=e.target,F=t.targetAnchor=e.targetAnchor,$=fo(e.props),A=$?s:L,k=$?v:F;if(r==="svg"||X1(L)?r="svg":(r==="mathml"||eu(L))&&(r="mathml"),E?(h(e.dynamicChildren,E,A,i,o,r,a),ml(e,t,!0)):l||d(e,t,A,k,i,o,r,a,!1),w)$?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Sr(t,s,v,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=Wa(t.props,_);O&&Sr(t,O,null,c,0)}else $&&Sr(t,L,F,c,1);Tr(t,w)}},remove(e,t,s,{um:n,o:{remove:i}},o){const{shapeFlag:r,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=e;if(d&&(i(c),i(u)),o&&i(l),r&16){const p=o||!fo(h);for(let _=0;_<a.length;_++){const m=a[_];n(m,t,s,p,!!m.dynamicChildren)}}},move:Sr,hydrate:t3};function Sr(e,t,s,{o:{insert:n},m:i},o=2){o===0&&n(e.targetAnchor,t,s);const{el:r,anchor:a,shapeFlag:l,children:c,props:u}=e,d=o===2;if(d&&n(r,t,s),(!d||fo(u))&&l&16)for(let h=0;h<c.length;h++)i(c[h],t,s,2);d&&n(a,t,s)}function t3(e,t,s,n,i,o,{o:{nextSibling:r,parentNode:a,querySelector:l,insert:c,createText:u}},d){function h(b,w){let C=w;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,b._lpa=t.targetAnchor&&r(t.targetAnchor);break}}C=r(C)}}function p(b,w){w.anchor=d(r(b),w,a(b),s,n,i,o)}const _=t.target=Wa(t.props,l),m=fo(t.props);if(_){const b=_._lpa||_.firstChild;t.shapeFlag&16&&(m?(p(e,t),h(_,b),t.targetAnchor||Za(_,t,u,c,a(e)===_?e:null)):(t.anchor=r(e),h(_,b),t.targetAnchor||Za(_,t,u,c),d(b&&r(b),t,_,s,n,i,o))),Tr(t,m)}else m&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=r(e));return t.anchor&&r(t.anchor)}const s3=tu;function Tr(e,t){const s=e.ctx;if(s&&s.ut){let n,i;for(t?(n=e.el,i=e.anchor):(n=e.targetStart,i=e.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function Za(e,t,s,n,i=null){const o=t.targetStart=s(""),r=t.targetAnchor=s("");return o[Z1]=r,e&&(n(o,e,i),n(r,e,i)),r}const Bs=Symbol("_leaveCb"),ho=Symbol("_enterCb");function Ya(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return lt(()=>{e.isMounted=!0}),Mn(()=>{e.isUnmounting=!0}),e}const Es=[Function,Array],Ja={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Es,onEnter:Es,onAfterEnter:Es,onEnterCancelled:Es,onBeforeLeave:Es,onLeave:Es,onAfterLeave:Es,onLeaveCancelled:Es,onBeforeAppear:Es,onAppear:Es,onAfterAppear:Es,onAppearCancelled:Es},su=e=>{const t=e.subTree;return t.component?su(t.component):t},n3={name:"BaseTransition",props:Ja,setup(e,{slots:t}){const s=Xt(),n=Ya();return()=>{const i=t.default&&Ir(t.default(),!0);if(!i||!i.length)return;const o=nu(i),r=Ge(e),{mode:a}=r;if(n.isLeaving)return Xa(o);const l=ru(o);if(!l)return Xa(o);let c=Oi(l,r,n,s,d=>c=d);l.type!==yt&&ln(l,c);let u=s.subTree&&ru(s.subTree);if(u&&u.type!==yt&&!Ms(u,l)&&su(s).type!==yt){let d=Oi(u,r,n,s);if(ln(u,d),a==="out-in"&&l.type!==yt)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,u=void 0},Xa(o);a==="in-out"&&l.type!==yt?d.delayLeave=(h,p,_)=>{const m=ou(n,u);m[String(u.key)]=u,h[Bs]=()=>{p(),h[Bs]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{_(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function nu(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==yt){t=s;break}}return t}const iu=n3;function ou(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function Oi(e,t,s,n,i){const{appear:o,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:_,onLeaveCancelled:m,onBeforeAppear:b,onAppear:w,onAfterAppear:C,onAppearCancelled:g}=t,E=String(e.key),v=ou(s,e),L=(A,k)=>{A&&_s(A,n,9,k)},F=(A,k)=>{const O=k[1];L(A,k),he(A)?A.every(T=>T.length<=1)&&O():A.length<=1&&O()},$={mode:r,persisted:a,beforeEnter(A){let k=l;if(!s.isMounted)if(o)k=b||l;else return;A[Bs]&&A[Bs](!0);const O=v[E];O&&Ms(e,O)&&O.el[Bs]&&O.el[Bs](),L(k,[A])},enter(A){if(v[E]===e)return;let k=c,O=u,T=d;if(!s.isMounted)if(o)k=w||c,O=C||u,T=g||d;else return;let P=!1;A[ho]=ee=>{P||(P=!0,ee?L(T,[A]):L(O,[A]),$.delayedLeave&&$.delayedLeave(),A[ho]=void 0)};const K=A[ho].bind(null,!1);k?F(k,[A,K]):K()},leave(A,k){const O=String(e.key);if(A[ho]&&A[ho](!0),s.isUnmounting)return k();L(h,[A]);let T=!1;A[Bs]=K=>{T||(T=!0,k(),K?L(m,[A]):L(_,[A]),A[Bs]=void 0,v[O]===e&&delete v[O])};const P=A[Bs].bind(null,!1);v[O]=e,p?F(p,[A,P]):P()},clone(A){const k=Oi(A,t,s,n,i);return i&&i(k),k}};return $}function Xa(e){if(po(e))return e=js(e),e.children=null,e}function ru(e){if(!po(e))return Y1(e.type)&&e.children?nu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&we(s.default))return s.default()}}function ln(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ln(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ir(e,t=!1,s){let n=[],i=0;for(let o=0;o<e.length;o++){let r=e[o];const a=s==null?r.key:String(s)+String(r.key!=null?r.key:o);r.type===Ne?(r.patchFlag&128&&i++,n=n.concat(Ir(r.children,t,a))):(t||r.type!==yt)&&n.push(a!=null?js(r,{key:a}):r)}if(i>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function Te(e,t){return we(e)?(()=>Ve({name:e.name},t,{setup:e}))():e}function i3(){const e=Xt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function el(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function o3(e){const t=Xt(),s=N1(null);if(t){const i=t.refs===He?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>s.value,set:o=>s.value=o})}return s}function au(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Rr=new WeakMap;function bi(e,t,s,n,i=!1){if(he(e)){e.forEach((m,b)=>bi(m,t&&(he(t)?t[b]:t),s,n,i));return}if(cn(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&bi(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?To(n.component):n.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===He?a.refs={}:a.refs,d=a.setupState,h=Ge(d),p=d===He?Ei:m=>au(u,m)?!1:Qe(h,m),_=(m,b)=>!(b&&au(u,b));if(c!=null&&c!==l){if(lu(t),be(c))u[c]=null,p(c)&&(d[c]=null);else if(ht(c)){const m=t;_(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(we(l))zn(l,a,12,[r,u]);else{const m=be(l),b=ht(l);if(m||b){const w=()=>{if(e.f){const C=m?p(l)?d[l]:u[l]:_()||!e.k?l.value:u[e.k];if(i)he(C)&&ka(C,o);else if(he(C))C.includes(o)||C.push(o);else if(m)u[l]=[o],p(l)&&(d[l]=u[l]);else{const g=[o];_(l,e.k)&&(l.value=g),e.k&&(u[e.k]=g)}}else m?(u[l]=r,p(l)&&(d[l]=r)):b&&(_(l,e.k)&&(l.value=r),e.k&&(u[e.k]=r))};if(r){const C=()=>{w(),Rr.delete(e)};C.id=-1,Rr.set(e,C),Ct(C,s)}else lu(e),w()}}}function lu(e){const t=Rr.get(e);t&&(t.flags|=8,Rr.delete(e))}let cu=!1;const Li=()=>{cu||(console.error("Hydration completed but contains mismatches."),cu=!0)},r3=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",a3=e=>e.namespaceURI.includes("MathML"),wr=e=>{if(e.nodeType===1){if(r3(e))return"svg";if(a3(e))return"mathml"}},Ai=e=>e.nodeType===8;function l3(e){const{mt:t,p:s,o:{patchProp:n,createText:i,nextSibling:o,parentNode:r,remove:a,insert:l,createComment:c}}=e,u=(g,E)=>{if(!E.hasChildNodes()){s(null,g,E),Er(),E._vnode=g;return}d(E.firstChild,g,null,null,null),Er(),E._vnode=g},d=(g,E,v,L,F,$=!1)=>{$=$||!!E.dynamicChildren;const A=Ai(g)&&g.data==="[",k=()=>m(g,E,v,L,F,A),{type:O,ref:T,shapeFlag:P,patchFlag:K}=E;let ee=g.nodeType;E.el=g,K===-2&&($=!1,E.dynamicChildren=null);let te=null;switch(O){case On:ee!==3?E.children===""?(l(E.el=i(""),r(g),g),te=g):te=k():(g.data!==E.children&&(Li(),g.data=E.children),te=o(g));break;case yt:C(g)?(te=o(g),w(E.el=g.content.firstChild,g,v)):ee!==8||A?te=k():te=o(g);break;case Jn:if(A&&(g=o(g),ee=g.nodeType),ee===1||ee===3){te=g;const ie=!E.children.length;for(let V=0;V<E.staticCount;V++)ie&&(E.children+=te.nodeType===1?te.outerHTML:te.data),V===E.staticCount-1&&(E.anchor=te),te=o(te);return A?o(te):te}else k();break;case Ne:A?te=_(g,E,v,L,F,$):te=k();break;default:if(P&1)(ee!==1||E.type.toLowerCase()!==g.tagName.toLowerCase())&&!C(g)?te=k():te=h(g,E,v,L,F,$);else if(P&6){E.slotScopeIds=F;const ie=r(g);if(A?te=b(g):Ai(g)&&g.data==="teleport start"?te=b(g,g.data,"teleport end"):te=o(g),t(E,ie,null,v,L,wr(ie),$),cn(E)&&!E.type.__asyncResolved){let V;A?(V=Ie(Ne),V.anchor=te?te.previousSibling:ie.lastChild):V=g.nodeType===3?So(""):Ie("div"),V.el=g,E.component.subTree=V}}else P&64?ee!==8?te=k():te=E.type.hydrate(g,E,v,L,F,$,e,p):P&128&&(te=E.type.hydrate(g,E,v,L,wr(r(g)),F,$,e,d))}return T!=null&&bi(T,null,L,E),te},h=(g,E,v,L,F,$)=>{$=$||!!E.dynamicChildren;const{type:A,props:k,patchFlag:O,shapeFlag:T,dirs:P,transition:K}=E,ee=A==="input"||A==="option";if(ee||O!==-1){P&&Gs(E,null,v,"created");let te=!1;if(C(g)){te=Gu(null,K)&&v&&v.vnode.props&&v.vnode.props.appear;const V=g.content.firstChild;if(te){const Le=V.getAttribute("class");Le&&(V.$cls=Le),K.beforeEnter(V)}w(V,g,v),E.el=g=V}if(T&16&&!(k&&(k.innerHTML||k.textContent))){let V=p(g.firstChild,E,g,v,L,F,$);for(;V;){Mr(g,1)||Li();const Le=V;V=V.nextSibling,a(Le)}}else if(T&8){let V=E.children;V[0]===`
|
|
302
|
+
`&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(V=V.slice(1));const{textContent:Le}=g;Le!==V&&Le!==V.replace(/\r\n|\r/g,`
|
|
303
|
+
`)&&(Mr(g,0)||Li(),g.textContent=E.children)}if(k){if(ee||!$||O&48){const V=g.tagName.includes("-");for(const Le in k)(ee&&(Le.endsWith("value")||Le==="indeterminate")||Gn(Le)&&!en(Le)||Le[0]==="."||V&&!en(Le))&&n(g,Le,null,k[Le],void 0,v)}else if(k.onClick)n(g,"onClick",null,k.onClick,void 0,v);else if(O&4&&rn(k.style))for(const V in k.style)k.style[V]}let ie;(ie=k&&k.onVnodeBeforeMount)&&is(ie,v,E),P&&Gs(E,null,v,"beforeMount"),((ie=k&&k.onVnodeMounted)||P||te)&&zu(()=>{ie&&is(ie,v,E),te&&K.enter(g),P&&Gs(E,null,v,"mounted")},L)}return g.nextSibling},p=(g,E,v,L,F,$,A)=>{A=A||!!E.dynamicChildren;const k=E.children,O=k.length;for(let T=0;T<O;T++){const P=A?k[T]:k[T]=ns(k[T]),K=P.type===On;g?(K&&!A&&T+1<O&&ns(k[T+1]).type===On&&(l(i(g.data.slice(P.children.length)),v,o(g)),g.data=P.children),g=d(g,P,L,F,$,A)):K&&!P.children?l(P.el=i(""),v):(Mr(v,1)||Li(),s(null,P,v,null,L,F,wr(v),$))}return g},_=(g,E,v,L,F,$)=>{const{slotScopeIds:A}=E;A&&(F=F?F.concat(A):A);const k=r(g),O=p(o(g),E,k,v,L,F,$);return O&&Ai(O)&&O.data==="]"?o(E.anchor=O):(Li(),l(E.anchor=c("]"),k,O),O)},m=(g,E,v,L,F,$)=>{if(Mr(g.parentElement,1)||Li(),E.el=null,$){const O=b(g);for(;;){const T=o(g);if(T&&T!==O)a(T);else break}}const A=o(g),k=r(g);return a(g),s(null,E,k,A,v,L,wr(k),F),v&&(v.vnode.el=E.el,Dr(v,E.el)),A},b=(g,E="[",v="]")=>{let L=0;for(;g;)if(g=o(g),g&&Ai(g)&&(g.data===E&&L++,g.data===v)){if(L===0)return o(g);L--}return g},w=(g,E,v)=>{const L=E.parentNode;L&&L.replaceChild(g,E);let F=v;for(;F;)F.vnode.el===E&&(F.vnode.el=F.subTree.el=g),F=F.parent},C=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[u,d]}const uu="data-allow-mismatch",c3={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Mr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(uu);)e=e.parentElement;const s=e&&e.getAttribute(uu);if(s==null)return!1;if(s==="")return!0;{const n=s.split(",");return t===0&&n.includes("children")?!0:n.includes(c3[t])}}const u3=rr().requestIdleCallback||(e=>setTimeout(e,1)),d3=rr().cancelIdleCallback||(e=>clearTimeout(e)),f3=(e=1e4)=>t=>{const s=u3(t,{timeout:e});return()=>d3(s)};function h3(e){const{top:t,left:s,bottom:n,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:r}=window;return(t>0&&t<o||n>0&&n<o)&&(s>0&&s<r||i>0&&i<r)}const p3=e=>(t,s)=>{const n=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){n.disconnect(),t();break}},e);return s(i=>{if(i instanceof Element){if(h3(i))return t(),n.disconnect(),!1;n.observe(i)}}),()=>n.disconnect()},g3=e=>t=>{if(e){const s=matchMedia(e);if(s.matches)t();else return s.addEventListener("change",t,{once:!0}),()=>s.removeEventListener("change",t)}},_3=(e=[])=>(t,s)=>{be(e)&&(e=[e]);let n=!1;const i=r=>{n||(n=!0,o(),t(),r.target.dispatchEvent(new r.constructor(r.type,r)))},o=()=>{s(r=>{for(const a of e)r.removeEventListener(a,i)})};return s(r=>{for(const a of e)r.addEventListener(a,i,{once:!0})}),o};function m3(e,t){if(Ai(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Ai(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const cn=e=>!!e.type.__asyncLoader;function E3(e){we(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:i=200,hydrate:o,timeout:r,suspensible:a=!0,onError:l}=e;let c=null,u,d=0;const h=()=>(d++,c=null,p()),p=()=>{let _;return c||(_=c=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((b,w)=>{l(m,()=>b(h()),()=>w(m),d+1)});throw m}).then(m=>_!==c&&c?c:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return Te({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(_,m,b){let w=!1;(m.bu||(m.bu=[])).push(()=>w=!0);const C=()=>{w||b()},g=o?()=>{const E=o(C,v=>m3(_,v));E&&(m.bum||(m.bum=[])).push(E)}:C;u?g():p().then(()=>!m.isUnmounted&&g())},get __asyncResolved(){return u},setup(){const _=Pt;if(el(_),u)return()=>Or(u,_);const m=g=>{c=null,Qn(g,_,13,!n)};if(a&&_.suspense||ei)return p().then(g=>()=>Or(g,_)).catch(g=>(m(g),()=>n?Ie(n,{error:g}):null));const b=U(!1),w=U(),C=U(!!i);return i&&setTimeout(()=>{C.value=!1},i),r!=null&&setTimeout(()=>{if(!b.value&&!w.value){const g=new Error(`Async component timed out after ${r}ms.`);m(g),w.value=g}},r),p().then(()=>{b.value=!0,_.parent&&po(_.parent.vnode)&&_.parent.update()}).catch(g=>{m(g),w.value=g}),()=>{if(b.value&&u)return Or(u,_);if(w.value&&n)return Ie(n,{error:w.value});if(s&&!C.value)return Or(s,_)}}})}function Or(e,t){const{ref:s,props:n,children:i,ce:o}=t.vnode,r=Ie(e,n,i);return r.ref=s,r.ce=o,delete t.vnode.ce,r}const po=e=>e.type.__isKeepAlive,v3={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=Xt(),n=s.ctx;if(!n.renderer)return()=>{const C=t.default&&t.default();return C&&C.length===1?C[0]:C};const i=new Map,o=new Set;let r=null;const a=s.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=n,h=d("div");n.activate=(C,g,E,v,L)=>{const F=C.component;c(C,g,E,0,a),l(F.vnode,C,g,E,F,a,v,C.slotScopeIds,L),Ct(()=>{F.isDeactivated=!1,F.a&&Si(F.a);const $=C.props&&C.props.onVnodeMounted;$&&is($,F.parent,C)},a)},n.deactivate=C=>{const g=C.component;Pr(g.m),Pr(g.a),c(C,h,null,1,a),Ct(()=>{g.da&&Si(g.da);const E=C.props&&C.props.onVnodeUnmounted;E&&is(E,g.parent,C),g.isDeactivated=!0},a)};function p(C){tl(C),u(C,s,a,!0)}function _(C){i.forEach((g,E)=>{const v=jr(cn(g)?g.type.__asyncResolved||{}:g.type);v&&!C(v)&&m(E)})}function m(C){const g=i.get(C);g&&(!r||!Ms(g,r))?p(g):r&&tl(r),i.delete(C),o.delete(C)}cs(()=>[e.include,e.exclude],([C,g])=>{C&&_(E=>go(C,E)),g&&_(E=>!go(g,E))},{flush:"post",deep:!0});let b=null;const w=()=>{b!=null&&(Vr(s.subTree.type)?Ct(()=>{i.set(b,br(s.subTree))},s.subTree.suspense):i.set(b,br(s.subTree)))};return lt(w),Ar(w),Mn(()=>{i.forEach(C=>{const{subTree:g,suspense:E}=s,v=br(g);if(C.type===v.type&&C.key===v.key){tl(v);const L=v.component.da;L&&Ct(L,E);return}p(C)})}),()=>{if(b=null,!t.default)return r=null;const C=t.default(),g=C[0];if(C.length>1)return r=null,C;if(!fn(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return r=null,g;let E=br(g);if(E.type===yt)return r=null,E;const v=E.type,L=jr(cn(E)?E.type.__asyncResolved||{}:v),{include:F,exclude:$,max:A}=e;if(F&&(!L||!go(F,L))||$&&L&&go($,L))return E.shapeFlag&=-257,r=E,g;const k=E.key==null?v:E.key,O=i.get(k);return E.el&&(E=js(E),g.shapeFlag&128&&(g.ssContent=E)),b=k,O?(E.el=O.el,E.component=O.component,E.transition&&ln(E,E.transition),E.shapeFlag|=512,o.delete(k),o.add(k)):(o.add(k),A&&o.size>parseInt(A,10)&&m(o.values().next().value)),E.shapeFlag|=256,r=E,Vr(g.type)?g:E}}};function go(e,t){return he(e)?e.some(s=>go(s,t)):be(e)?e.split(",").includes(t):Lp(e)?(e.lastIndex=0,e.test(t)):!1}function du(e,t){hu(e,"a",t)}function fu(e,t){hu(e,"da",t)}function hu(e,t,s=Pt){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Lr(t,n,s),s){let i=s.parent;for(;i&&i.parent;)po(i.parent.vnode)&&C3(n,t,s,i),i=i.parent}}function C3(e,t,s,n){const i=Lr(t,e,n,!0);Rt(()=>{ka(n[t],i)},s)}function tl(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function br(e){return e.shapeFlag&128?e.ssContent:e}function Lr(e,t,s=Pt,n=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...r)=>{Ps();const a=Ui(s),l=_s(t,s,e,r);return a(),Vs(),l});return n?i.unshift(o):i.push(o),o}}const un=e=>(t,s=Pt)=>{(!ei||e==="sp")&&Lr(e,(...n)=>t(...n),s)},sl=un("bm"),lt=un("m"),nl=un("bu"),Ar=un("u"),Mn=un("bum"),Rt=un("um"),pu=un("sp"),gu=un("rtg"),_u=un("rtc");function mu(e,t=Pt){Lr("ec",e,t)}const il="components",y3="directives";function ve(e,t){return ol(il,e,!0,t)||e}const Eu=Symbol.for("v-ndc");function xr(e){return be(e)?ol(il,e,!1)||e:e||Eu}function S3(e){return ol(y3,e)}function ol(e,t,s=!0,n=!1){const i=Dt||Pt;if(i){const o=i.type;if(e===il){const a=jr(o,!1);if(a&&(a===t||a===Je(t)||a===jn(Je(t))))return o}const r=vu(i[e]||o[e],t)||vu(i.appContext[e],t);return!r&&n?o:r}}function vu(e,t){return e&&(e[t]||e[Je(t)]||e[jn(Je(t))])}function Lt(e,t,s,n){let i;const o=s&&s[n],r=he(e);if(r||be(e)){const a=r&&rn(e);let l=!1,c=!1;a&&(l=!ss(e),c=$s(e),e=ur(e)),i=new Array(e.length);for(let u=0,d=e.length;u<d;u++)i[u]=t(l?c?Ii(ws(e[u])):ws(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,o&&o[a])}else if(qe(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,o&&o[l]));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];i[l]=t(e[u],u,l,o&&o[l])}}else i=[];return s&&(s[n]=i),i}function T3(e,t){for(let s=0;s<t.length;s++){const n=t[s];if(he(n))for(let i=0;i<n.length;i++)e[n[i].name]=n[i].fn;else n&&(e[n.name]=n.key?(...i)=>{const o=n.fn(...i);return o&&(o.key=n.key),o}:n.fn)}return e}function dn(e,t,s={},n,i){if(Dt.ce||Dt.parent&&cn(Dt.parent)&&Dt.parent.ce){const c=Object.keys(s).length>0;return t!=="default"&&(s.name=t),R(),xe(Ne,null,[Ie("slot",s,n&&n())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),R();const r=o&&rl(o(s)),a=s.key||r&&r.key,l=xe(Ne,{key:(a&&!es(a)?a:`_${t}`)+(!r&&n?"_fb":"")},r||(n?n():[]),r&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function rl(e){return e.some(t=>fn(t)?!(t.type===yt||t.type===Ne&&!rl(t.children)):!0)?e:null}function I3(e,t){const s={};for(const n in e)s[t&&/[A-Z]/.test(n)?`on:${n}`:yi(n)]=e[n];return s}const al=e=>e?ed(e)?To(e):al(e.parent):null,_o=Ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>al(e.parent),$root:e=>al(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>dl(e),$forceUpdate:e=>e.f||(e.f=()=>{Qa(e.update)}),$nextTick:e=>e.n||(e.n=at.bind(e.proxy)),$watch:e=>e3.bind(e)}),ll=(e,t)=>e!==He&&!e.__isScriptSetup&&Qe(e,t),cl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:o,accessCache:r,type:a,appContext:l}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(ll(n,t))return r[t]=1,n[t];if(i!==He&&Qe(i,t))return r[t]=2,i[t];if(Qe(o,t))return r[t]=3,o[t];if(s!==He&&Qe(s,t))return r[t]=4,s[t];ul&&(r[t]=0)}}const c=_o[t];let u,d;if(c)return t==="$attrs"&&Bt(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(s!==He&&Qe(s,t))return r[t]=4,s[t];if(d=l.config.globalProperties,Qe(d,t))return d[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:o}=e;return ll(i,t)?(i[t]=s,!0):n!==He&&Qe(n,t)?(n[t]=s,!0):Qe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:o,type:r}},a){let l;return!!(s[a]||e!==He&&a[0]!=="$"&&Qe(e,a)||ll(t,a)||Qe(o,a)||Qe(n,a)||Qe(_o,a)||Qe(i.config.globalProperties,a)||(l=r.__cssModules)&&l[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Qe(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}},R3=Ve({},cl,{get(e,t){if(t!==Symbol.unscopables)return cl.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Dp(t)}});function w3(){return null}function M3(){return null}function O3(e){}function b3(e){}function L3(){return null}function A3(){}function x3(e,t){return null}function k3(){return Cu().slots}function U3(){return Cu().attrs}function Cu(e){const t=Xt();return t.setupContext||(t.setupContext=id(t))}function mo(e){return he(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function N3(e,t){const s=mo(e);for(const n in t){if(n.startsWith("__skip"))continue;let i=s[n];i?he(i)||we(i)?i=s[n]={type:i,default:t[n]}:i.default=t[n]:i===null&&(i=s[n]={default:t[n]}),i&&t[`__skip_${n}`]&&(i.skipFactory=!0)}return s}function D3(e,t){return!e||!t?e||t:he(e)&&he(t)?e.concat(t):Ve({},mo(e),mo(t))}function P3(e,t){const s={};for(const n in e)t.includes(n)||Object.defineProperty(s,n,{enumerable:!0,get:()=>e[n]});return s}function V3(e){const t=Xt(),s=ei;let n=e();Gr(),s&&ki(!1);const i=()=>{Ui(t),s&&ki(!0)},o=()=>{Xt()!==t&&t.scope.off(),Gr(),s&&ki(!1)};return Ua(n)&&(n=n.catch(r=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(o)),r})),[n,()=>{i(),Promise.resolve().then(o)}]}let ul=!0;function F3(e){const t=dl(e),s=e.proxy,n=e.ctx;ul=!1,t.beforeCreate&&yu(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:_,activated:m,deactivated:b,beforeDestroy:w,beforeUnmount:C,destroyed:g,unmounted:E,render:v,renderTracked:L,renderTriggered:F,errorCaptured:$,serverPrefetch:A,expose:k,inheritAttrs:O,components:T,directives:P,filters:K}=t;if(c&&$3(c,n,null),r)for(const ie in r){const V=r[ie];we(V)&&(n[ie]=V.bind(s))}if(i){const ie=i.call(s,s);qe(ie)&&(e.data=on(ie))}if(ul=!0,o)for(const ie in o){const V=o[ie],Le=we(V)?V.bind(s,s):we(V.get)?V.get.bind(s,s):kt,Ot=!we(V)&&we(V.set)?V.set.bind(s):kt,Ye=me({get:Le,set:Ot});Object.defineProperty(n,ie,{enumerable:!0,configurable:!0,get:()=>Ye.value,set:mt=>Ye.value=mt})}if(a)for(const ie in a)Su(a[ie],n,s,ie);if(l){const ie=we(l)?l.call(s):l;Reflect.ownKeys(ie).forEach(V=>{yr(V,ie[V])})}u&&yu(u,e,"c");function te(ie,V){he(V)?V.forEach(Le=>ie(Le.bind(s))):V&&ie(V.bind(s))}if(te(sl,d),te(lt,h),te(nl,p),te(Ar,_),te(du,m),te(fu,b),te(mu,$),te(_u,L),te(gu,F),te(Mn,C),te(Rt,E),te(pu,A),he(k))if(k.length){const ie=e.exposed||(e.exposed={});k.forEach(V=>{Object.defineProperty(ie,V,{get:()=>s[V],set:Le=>s[V]=Le,enumerable:!0})})}else e.exposed||(e.exposed={});v&&e.render===kt&&(e.render=v),O!=null&&(e.inheritAttrs=O),T&&(e.components=T),P&&(e.directives=P),A&&el(e)}function $3(e,t,s=kt){he(e)&&(e=fl(e));for(const n in e){const i=e[n];let o;qe(i)?"default"in i?o=Wn(i.from||n,i.default,!0):o=Wn(i.from||n):o=Wn(i),ht(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[n]=o}}function yu(e,t,s){_s(he(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Su(e,t,s,n){let i=n.includes(".")?W1(s,n):()=>s[n];if(be(e)){const o=t[e];we(o)&&cs(i,o)}else if(we(e))cs(i,e.bind(s));else if(qe(e))if(he(e))e.forEach(o=>Su(o,t,s,n));else{const o=we(e.handler)?e.handler.bind(s):t[e.handler];we(o)&&cs(i,o,e)}}function dl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!s&&!n?l=t:(l={},i.length&&i.forEach(c=>kr(l,c,r,!0)),kr(l,t,r)),qe(t)&&o.set(t,l),l}function kr(e,t,s,n=!1){const{mixins:i,extends:o}=t;o&&kr(e,o,s,!0),i&&i.forEach(r=>kr(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const a=H3[r]||s&&s[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const H3={data:Tu,props:Iu,emits:Iu,methods:Eo,computed:Eo,beforeCreate:Jt,created:Jt,beforeMount:Jt,mounted:Jt,beforeUpdate:Jt,updated:Jt,beforeDestroy:Jt,beforeUnmount:Jt,destroyed:Jt,unmounted:Jt,activated:Jt,deactivated:Jt,errorCaptured:Jt,serverPrefetch:Jt,components:Eo,directives:Eo,watch:B3,provide:Tu,inject:G3};function Tu(e,t){return t?e?function(){return Ve(we(e)?e.call(this,this):e,we(t)?t.call(this,this):t)}:t:e}function G3(e,t){return Eo(fl(e),fl(t))}function fl(e){if(he(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Jt(e,t){return e?[...new Set([].concat(e,t))]:t}function Eo(e,t){return e?Ve(Object.create(null),e,t):t}function Iu(e,t){return e?he(e)&&he(t)?[...new Set([...e,...t])]:Ve(Object.create(null),mo(e),mo(t??{})):t}function B3(e,t){if(!e)return t;if(!t)return e;const s=Ve(Object.create(null),e);for(const n in t)s[n]=Jt(e[n],t[n]);return s}function Ru(){return{app:null,config:{isNativeTag:Ei,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let j3=0;function q3(e,t){return function(n,i=null){we(n)||(n=Ve({},n)),i!=null&&!qe(i)&&(i=null);const o=Ru(),r=new WeakSet,a=[];let l=!1;const c=o.app={_uid:j3++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:ld,get config(){return o.config},set config(u){},use(u,...d){return r.has(u)||(u&&we(u.install)?(r.add(u),u.install(c,...d)):we(u)&&(r.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,h){if(!l){const p=c._ceVNode||Ie(n,i);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),d&&t?t(p,u):e(p,u,h),l=!0,c._container=u,u.__vue_app__=c,To(p.component)}},onUnmount(u){a.push(u)},unmount(){l&&(_s(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c},runWithContext(u){const d=Zn;Zn=c;try{return u()}finally{Zn=d}}};return c}}let Zn=null;function K3(e,t,s=He){const n=Xt(),i=Je(t),o=ts(t),r=wu(e,i),a=P1((l,c)=>{let u,d=He,h;return Q1(()=>{const p=e[i];Nt(u,p)&&(u=p,c())}),{get(){return l(),s.get?s.get(u):u},set(p){const _=s.set?s.set(p):p;if(!Nt(_,u)&&!(d!==He&&Nt(p,d)))return;const m=n.vnode.props;m&&(t in m||i in m||o in m)&&(`onUpdate:${t}`in m||`onUpdate:${i}`in m||`onUpdate:${o}`in m)||(u=p,c()),n.emit(`update:${t}`,_),Nt(p,_)&&Nt(p,d)&&!Nt(_,h)&&c(),d=p,h=_}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?r||He:a,done:!1}:{done:!0}}}},a}const wu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Je(t)}Modifiers`]||e[`${ts(t)}Modifiers`];function z3(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||He;let i=s;const o=t.startsWith("update:"),r=o&&wu(n,t.slice(7));r&&(r.trim&&(i=s.map(u=>be(u)?u.trim():u)),r.number&&(i=s.map(ir)));let a,l=n[a=yi(t)]||n[a=yi(Je(t))];!l&&o&&(l=n[a=yi(ts(t))]),l&&_s(l,e,6,i);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,_s(c,e,6,i)}}const Q3=new WeakMap;function Mu(e,t,s=!1){const n=s?Q3:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!we(e)){const l=c=>{const u=Mu(c,t,!0);u&&(a=!0,Ve(r,u))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(qe(e)&&n.set(e,null),null):(he(o)?o.forEach(l=>r[l]=null):Ve(r,o),qe(e)&&n.set(e,r),r)}function Ur(e,t){return!e||!Gn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Qe(e,t[0].toLowerCase()+t.slice(1))||Qe(e,ts(t))||Qe(e,t))}function Gv(){}function Nr(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:c,renderCache:u,props:d,data:h,setupState:p,ctx:_,inheritAttrs:m}=e,b=co(e);let w,C;try{if(s.shapeFlag&4){const E=i||n,v=E;w=ns(c.call(v,E,u,d,p,h,_)),C=a}else{const E=t;w=ns(E.length>1?E(d,{attrs:a,slots:r,emit:l}):E(d,null)),C=t.props?a:Z3(a)}}catch(E){Co.length=0,Qn(E,e,1),w=Ie(yt)}let g=w;if(C&&m!==!1){const E=Object.keys(C),{shapeFlag:v}=g;E.length&&v&7&&(o&&E.some(xa)&&(C=Y3(C,o)),g=js(g,C,!1,!0))}return s.dirs&&(g=js(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(s.dirs):s.dirs),s.transition&&ln(g,s.transition),w=g,co(b),w}function W3(e,t=!0){let s;for(let n=0;n<e.length;n++){const i=e[n];if(fn(i)){if(i.type!==yt||i.children==="v-if"){if(s)return;s=i}}else return}return s}const Z3=e=>{let t;for(const s in e)(s==="class"||s==="style"||Gn(s))&&((t||(t={}))[s]=e[s]);return t},Y3=(e,t)=>{const s={};for(const n in e)(!xa(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function J3(e,t,s){const{props:n,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return n?Ou(n,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(bu(r,n,h)&&!Ur(c,h))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===r?!1:n?r?Ou(n,r,c):!0:!!r;return!1}function Ou(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(bu(t,e,o)&&!Ur(s,o))return!0}return!1}function bu(e,t,s){const n=e[s],i=t[s];return s==="style"&&qe(n)&&qe(i)?!tn(n,i):n!==i}function Dr({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const Lu={},Au=()=>Object.create(Lu),xu=e=>Object.getPrototypeOf(e)===Lu;function X3(e,t,s,n=!1){const i={},o=Au();e.propsDefaults=Object.create(null),ku(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:k1(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function e4(e,t,s,n){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=Ge(i),[l]=e.propsOptions;let c=!1;if((n||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(Ur(e.emitsOptions,h))continue;const p=t[h];if(l)if(Qe(o,h))p!==o[h]&&(o[h]=p,c=!0);else{const _=Je(h);i[_]=hl(l,a,_,p,e,!1)}else p!==o[h]&&(o[h]=p,c=!0)}}}else{ku(e,t,i,o)&&(c=!0);let u;for(const d in a)(!t||!Qe(t,d)&&((u=ts(d))===d||!Qe(t,u)))&&(l?s&&(s[d]!==void 0||s[u]!==void 0)&&(i[d]=hl(l,a,d,void 0,e,!0)):delete i[d]);if(o!==a)for(const d in o)(!t||!Qe(t,d))&&(delete o[d],c=!0)}c&&sn(e.attrs,"set","")}function ku(e,t,s,n){const[i,o]=e.propsOptions;let r=!1,a;if(t)for(let l in t){if(en(l))continue;const c=t[l];let u;i&&Qe(i,u=Je(l))?!o||!o.includes(u)?s[u]=c:(a||(a={}))[u]=c:Ur(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,r=!0)}if(o){const l=Ge(s),c=a||He;for(let u=0;u<o.length;u++){const d=o[u];s[d]=hl(i,l,d,c[d],e,!Qe(c,d))}}return r}function hl(e,t,s,n,i,o){const r=e[s];if(r!=null){const a=Qe(r,"default");if(a&&n===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&we(l)){const{propsDefaults:c}=i;if(s in c)n=c[s];else{const u=Ui(i);n=c[s]=l.call(null,t),u()}}else n=l;i.ce&&i.ce._setProp(s,n)}r[0]&&(o&&!a?n=!1:r[1]&&(n===""||n===ts(s))&&(n=!0))}return n}const t4=new WeakMap;function Uu(e,t,s=!1){const n=s?t4:t.propsCache,i=n.get(e);if(i)return i;const o=e.props,r={},a=[];let l=!1;if(!we(e)){const u=d=>{l=!0;const[h,p]=Uu(d,t,!0);Ve(r,h),p&&a.push(...p)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return qe(e)&&n.set(e,mi),mi;if(he(o))for(let u=0;u<o.length;u++){const d=Je(o[u]);Nu(d)&&(r[d]=He)}else if(o)for(const u in o){const d=Je(u);if(Nu(d)){const h=o[u],p=r[d]=he(h)||we(h)?{type:h}:Ve({},h),_=p.type;let m=!1,b=!0;if(he(_))for(let w=0;w<_.length;++w){const C=_[w],g=we(C)&&C.name;if(g==="Boolean"){m=!0;break}else g==="String"&&(b=!1)}else m=we(_)&&_.name==="Boolean";p[0]=m,p[1]=b,(m||Qe(p,"default"))&&a.push(d)}}const c=[r,a];return qe(e)&&n.set(e,c),c}function Nu(e){return e[0]!=="$"&&!en(e)}const pl=e=>e==="_"||e==="_ctx"||e==="$stable",gl=e=>he(e)?e.map(ns):[ns(e)],s4=(e,t,s)=>{if(t._n)return t;const n=pt((...i)=>gl(t(...i)),s);return n._c=!1,n},Du=(e,t,s)=>{const n=e._ctx;for(const i in e){if(pl(i))continue;const o=e[i];if(we(o))t[i]=s4(i,o,n);else if(o!=null){const r=gl(o);t[i]=()=>r}}},Pu=(e,t)=>{const s=gl(t);e.slots.default=()=>s},Vu=(e,t,s)=>{for(const n in t)(s||!pl(n))&&(e[n]=t[n])},n4=(e,t,s)=>{const n=e.slots=Au();if(e.vnode.shapeFlag&32){const i=t._;i?(Vu(n,t,s),s&&c1(n,"_",i,!0)):Du(t,n)}else t&&Pu(e,t)},i4=(e,t,s)=>{const{vnode:n,slots:i}=e;let o=!0,r=He;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:Vu(i,t,s):(o=!t.$stable,Du(t,i)),r=t}else t&&(Pu(e,t),r={default:1});if(o)for(const a in i)!pl(a)&&r[a]==null&&delete i[a]},Ct=zu;function Fu(e){return Hu(e)}function $u(e){return Hu(e,l3)}function Hu(e,t){const s=rr();s.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:p=kt,insertStaticContent:_}=e,m=(S,M,G,Y=null,z=null,W=null,le=void 0,oe=null,se=!!M.dynamicChildren)=>{if(S===M)return;S&&!Ms(S,M)&&(Y=nt(S),mt(S,z,W,!0),S=null),M.patchFlag===-2&&(se=!1,M.dynamicChildren=null);const{type:Q,ref:fe,shapeFlag:ue}=M;switch(Q){case On:b(S,M,G,Y);break;case yt:w(S,M,G,Y);break;case Jn:S==null&&C(M,G,Y,le);break;case Ne:T(S,M,G,Y,z,W,le,oe,se);break;default:ue&1?v(S,M,G,Y,z,W,le,oe,se):ue&6?P(S,M,G,Y,z,W,le,oe,se):(ue&64||ue&128)&&Q.process(S,M,G,Y,z,W,le,oe,se,Ft)}fe!=null&&z?bi(fe,S&&S.ref,W,M||S,!M):fe==null&&S&&S.ref!=null&&bi(S.ref,null,W,S,!0)},b=(S,M,G,Y)=>{if(S==null)n(M.el=a(M.children),G,Y);else{const z=M.el=S.el;M.children!==S.children&&c(z,M.children)}},w=(S,M,G,Y)=>{S==null?n(M.el=l(M.children||""),G,Y):M.el=S.el},C=(S,M,G,Y)=>{[S.el,S.anchor]=_(S.children,M,G,Y,S.el,S.anchor)},g=({el:S,anchor:M},G,Y)=>{let z;for(;S&&S!==M;)z=h(S),n(S,G,Y),S=z;n(M,G,Y)},E=({el:S,anchor:M})=>{let G;for(;S&&S!==M;)G=h(S),i(S),S=G;i(M)},v=(S,M,G,Y,z,W,le,oe,se)=>{if(M.type==="svg"?le="svg":M.type==="math"&&(le="mathml"),S==null)L(M,G,Y,z,W,le,oe,se);else{const Q=S.el&&S.el._isVueCE?S.el:null;try{Q&&Q._beginPatch(),A(S,M,z,W,le,oe,se)}finally{Q&&Q._endPatch()}}},L=(S,M,G,Y,z,W,le,oe)=>{let se,Q;const{props:fe,shapeFlag:ue,transition:ye,dirs:Me}=S;if(se=S.el=r(S.type,W,fe&&fe.is,fe),ue&8?u(se,S.children):ue&16&&$(S.children,se,null,Y,z,_l(S,W),le,oe),Me&&Gs(S,null,Y,"created"),F(se,S,S.scopeId,le,Y),fe){for(const tt in fe)tt!=="value"&&!en(tt)&&o(se,tt,null,fe[tt],W,Y);"value"in fe&&o(se,"value",null,fe.value,W),(Q=fe.onVnodeBeforeMount)&&is(Q,Y,S)}Me&&Gs(S,null,Y,"beforeMount");const $e=Gu(z,ye);$e&&ye.beforeEnter(se),n(se,M,G),((Q=fe&&fe.onVnodeMounted)||$e||Me)&&Ct(()=>{Q&&is(Q,Y,S),$e&&ye.enter(se),Me&&Gs(S,null,Y,"mounted")},z)},F=(S,M,G,Y,z)=>{if(G&&p(S,G),Y)for(let W=0;W<Y.length;W++)p(S,Y[W]);if(z){let W=z.subTree;if(M===W||Vr(W.type)&&(W.ssContent===M||W.ssFallback===M)){const le=z.vnode;F(S,le,le.scopeId,le.slotScopeIds,z.parent)}}},$=(S,M,G,Y,z,W,le,oe,se=0)=>{for(let Q=se;Q<S.length;Q++){const fe=S[Q]=oe?hn(S[Q]):ns(S[Q]);m(null,fe,M,G,Y,z,W,le,oe)}},A=(S,M,G,Y,z,W,le)=>{const oe=M.el=S.el;let{patchFlag:se,dynamicChildren:Q,dirs:fe}=M;se|=S.patchFlag&16;const ue=S.props||He,ye=M.props||He;let Me;if(G&&Yn(G,!1),(Me=ye.onVnodeBeforeUpdate)&&is(Me,G,M,S),fe&&Gs(M,S,G,"beforeUpdate"),G&&Yn(G,!0),(ue.innerHTML&&ye.innerHTML==null||ue.textContent&&ye.textContent==null)&&u(oe,""),Q?k(S.dynamicChildren,Q,oe,G,Y,_l(M,z),W):le||V(S,M,oe,null,G,Y,_l(M,z),W,!1),se>0){if(se&16)O(oe,ue,ye,G,z);else if(se&2&&ue.class!==ye.class&&o(oe,"class",null,ye.class,z),se&4&&o(oe,"style",ue.style,ye.style,z),se&8){const $e=M.dynamicProps;for(let tt=0;tt<$e.length;tt++){const ze=$e[tt],$t=ue[ze],Ut=ye[ze];(Ut!==$t||ze==="value")&&o(oe,ze,$t,Ut,z,G)}}se&1&&S.children!==M.children&&u(oe,M.children)}else!le&&Q==null&&O(oe,ue,ye,G,z);((Me=ye.onVnodeUpdated)||fe)&&Ct(()=>{Me&&is(Me,G,M,S),fe&&Gs(M,S,G,"updated")},Y)},k=(S,M,G,Y,z,W,le)=>{for(let oe=0;oe<M.length;oe++){const se=S[oe],Q=M[oe],fe=se.el&&(se.type===Ne||!Ms(se,Q)||se.shapeFlag&198)?d(se.el):G;m(se,Q,fe,null,Y,z,W,le,!0)}},O=(S,M,G,Y,z)=>{if(M!==G){if(M!==He)for(const W in M)!en(W)&&!(W in G)&&o(S,W,M[W],null,z,Y);for(const W in G){if(en(W))continue;const le=G[W],oe=M[W];le!==oe&&W!=="value"&&o(S,W,oe,le,z,Y)}"value"in G&&o(S,"value",M.value,G.value,z)}},T=(S,M,G,Y,z,W,le,oe,se)=>{const Q=M.el=S?S.el:a(""),fe=M.anchor=S?S.anchor:a("");let{patchFlag:ue,dynamicChildren:ye,slotScopeIds:Me}=M;Me&&(oe=oe?oe.concat(Me):Me),S==null?(n(Q,G,Y),n(fe,G,Y),$(M.children||[],G,fe,z,W,le,oe,se)):ue>0&&ue&64&&ye&&S.dynamicChildren&&S.dynamicChildren.length===ye.length?(k(S.dynamicChildren,ye,G,z,W,le,oe),(M.key!=null||z&&M===z.subTree)&&ml(S,M,!0)):V(S,M,G,fe,z,W,le,oe,se)},P=(S,M,G,Y,z,W,le,oe,se)=>{M.slotScopeIds=oe,S==null?M.shapeFlag&512?z.ctx.activate(M,G,Y,le,se):K(M,G,Y,z,W,le,se):ee(S,M,se)},K=(S,M,G,Y,z,W,le)=>{const oe=S.component=Xu(S,Y,z);if(po(S)&&(oe.ctx.renderer=Ft),td(oe,!1,le),oe.asyncDep){if(z&&z.registerDep(oe,te,le),!S.el){const se=oe.subTree=Ie(yt);w(null,se,M,G),S.placeholder=se.el}}else te(oe,S,M,G,z,W,le)},ee=(S,M,G)=>{const Y=M.component=S.component;if(J3(S,M,G))if(Y.asyncDep&&!Y.asyncResolved){ie(Y,M,G);return}else Y.next=M,Y.update();else M.el=S.el,Y.vnode=M},te=(S,M,G,Y,z,W,le)=>{const oe=()=>{if(S.isMounted){let{next:ue,bu:ye,u:Me,parent:$e,vnode:tt}=S;{const Ht=Bu(S);if(Ht){ue&&(ue.el=tt.el,ie(S,ue,le)),Ht.asyncDep.then(()=>{Ct(()=>{S.isUnmounted||Q()},z)});return}}let ze=ue,$t;Yn(S,!1),ue?(ue.el=tt.el,ie(S,ue,le)):ue=tt,ye&&Si(ye),($t=ue.props&&ue.props.onVnodeBeforeUpdate)&&is($t,$e,ue,tt),Yn(S,!0);const Ut=Nr(S),hs=S.subTree;S.subTree=Ut,m(hs,Ut,d(hs.el),nt(hs),S,z,W),ue.el=Ut.el,ze===null&&Dr(S,Ut.el),Me&&Ct(Me,z),($t=ue.props&&ue.props.onVnodeUpdated)&&Ct(()=>is($t,$e,ue,tt),z)}else{let ue;const{el:ye,props:Me}=M,{bm:$e,m:tt,parent:ze,root:$t,type:Ut}=S,hs=cn(M);if(Yn(S,!1),$e&&Si($e),!hs&&(ue=Me&&Me.onVnodeBeforeMount)&&is(ue,ze,M),Yn(S,!0),ye&&Ws){const Ht=()=>{S.subTree=Nr(S),Ws(ye,S.subTree,S,z,null)};hs&&Ut.__asyncHydrate?Ut.__asyncHydrate(ye,S,Ht):Ht()}else{$t.ce&&$t.ce._hasShadowRoot()&&$t.ce._injectChildStyle(Ut,S.parent?S.parent.type:void 0);const Ht=S.subTree=Nr(S);m(null,Ht,G,Y,S,z,W),M.el=Ht.el}if(tt&&Ct(tt,z),!hs&&(ue=Me&&Me.onVnodeMounted)){const Ht=M;Ct(()=>is(ue,ze,Ht),z)}(M.shapeFlag&256||ze&&cn(ze.vnode)&&ze.vnode.shapeFlag&256)&&S.a&&Ct(S.a,z),S.isMounted=!0,M=G=Y=null}};S.scope.on();const se=S.effect=new Xi(oe);S.scope.off();const Q=S.update=se.run.bind(se),fe=S.job=se.runIfDirty.bind(se);fe.i=S,fe.id=S.uid,se.scheduler=()=>Qa(fe),Yn(S,!0),Q()},ie=(S,M,G)=>{M.component=S;const Y=S.vnode.props;S.vnode=M,S.next=null,e4(S,M.props,Y,G),i4(S,M.children,G),Ps(),B1(S),Vs()},V=(S,M,G,Y,z,W,le,oe,se=!1)=>{const Q=S&&S.children,fe=S?S.shapeFlag:0,ue=M.children,{patchFlag:ye,shapeFlag:Me}=M;if(ye>0){if(ye&128){Ot(Q,ue,G,Y,z,W,le,oe,se);return}else if(ye&256){Le(Q,ue,G,Y,z,W,le,oe,se);return}}Me&8?(fe&16&&Xe(Q,z,W),ue!==Q&&u(G,ue)):fe&16?Me&16?Ot(Q,ue,G,Y,z,W,le,oe,se):Xe(Q,z,W,!0):(fe&8&&u(G,""),Me&16&&$(ue,G,Y,z,W,le,oe,se))},Le=(S,M,G,Y,z,W,le,oe,se)=>{S=S||mi,M=M||mi;const Q=S.length,fe=M.length,ue=Math.min(Q,fe);let ye;for(ye=0;ye<ue;ye++){const Me=M[ye]=se?hn(M[ye]):ns(M[ye]);m(S[ye],Me,G,null,z,W,le,oe,se)}Q>fe?Xe(S,z,W,!0,!1,ue):$(M,G,Y,z,W,le,oe,se,ue)},Ot=(S,M,G,Y,z,W,le,oe,se)=>{let Q=0;const fe=M.length;let ue=S.length-1,ye=fe-1;for(;Q<=ue&&Q<=ye;){const Me=S[Q],$e=M[Q]=se?hn(M[Q]):ns(M[Q]);if(Ms(Me,$e))m(Me,$e,G,null,z,W,le,oe,se);else break;Q++}for(;Q<=ue&&Q<=ye;){const Me=S[ue],$e=M[ye]=se?hn(M[ye]):ns(M[ye]);if(Ms(Me,$e))m(Me,$e,G,null,z,W,le,oe,se);else break;ue--,ye--}if(Q>ue){if(Q<=ye){const Me=ye+1,$e=Me<fe?M[Me].el:Y;for(;Q<=ye;)m(null,M[Q]=se?hn(M[Q]):ns(M[Q]),G,$e,z,W,le,oe,se),Q++}}else if(Q>ye)for(;Q<=ue;)mt(S[Q],z,W,!0),Q++;else{const Me=Q,$e=Q,tt=new Map;for(Q=$e;Q<=ye;Q++){const Tt=M[Q]=se?hn(M[Q]):ns(M[Q]);Tt.key!=null&&tt.set(Tt.key,Q)}let ze,$t=0;const Ut=ye-$e+1;let hs=!1,Ht=0;const Pn=new Array(Ut);for(Q=0;Q<Ut;Q++)Pn[Q]=0;for(Q=Me;Q<=ue;Q++){const Tt=S[Q];if($t>=Ut){mt(Tt,z,W,!0);continue}let dt;if(Tt.key!=null)dt=tt.get(Tt.key);else for(ze=$e;ze<=ye;ze++)if(Pn[ze-$e]===0&&Ms(Tt,M[ze])){dt=ze;break}dt===void 0?mt(Tt,z,W,!0):(Pn[dt-$e]=Q+1,dt>=Ht?Ht=dt:hs=!0,m(Tt,M[dt],G,null,z,W,le,oe,se),$t++)}const Zs=hs?o4(Pn):mi;for(ze=Zs.length-1,Q=Ut-1;Q>=0;Q--){const Tt=$e+Q,dt=M[Tt],Cn=M[Tt+1],zi=Tt+1<fe?Cn.el||ju(Cn):Y;Pn[Q]===0?m(null,dt,G,zi,z,W,le,oe,se):hs&&(ze<0||Q!==Zs[ze]?Ye(dt,G,zi,2):ze--)}}},Ye=(S,M,G,Y,z=null)=>{const{el:W,type:le,transition:oe,children:se,shapeFlag:Q}=S;if(Q&6){Ye(S.component.subTree,M,G,Y);return}if(Q&128){S.suspense.move(M,G,Y);return}if(Q&64){le.move(S,M,G,Ft);return}if(le===Ne){n(W,M,G);for(let ue=0;ue<se.length;ue++)Ye(se[ue],M,G,Y);n(S.anchor,M,G);return}if(le===Jn){g(S,M,G);return}if(Y!==2&&Q&1&&oe)if(Y===0)oe.beforeEnter(W),n(W,M,G),Ct(()=>oe.enter(W),z);else{const{leave:ue,delayLeave:ye,afterLeave:Me}=oe,$e=()=>{S.ctx.isUnmounted?i(W):n(W,M,G)},tt=()=>{W._isLeaving&&W[Bs](!0),ue(W,()=>{$e(),Me&&Me()})};ye?ye(W,$e,tt):tt()}else n(W,M,G)},mt=(S,M,G,Y=!1,z=!1)=>{const{type:W,props:le,ref:oe,children:se,dynamicChildren:Q,shapeFlag:fe,patchFlag:ue,dirs:ye,cacheIndex:Me}=S;if(ue===-2&&(z=!1),oe!=null&&(Ps(),bi(oe,null,G,S,!0),Vs()),Me!=null&&(M.renderCache[Me]=void 0),fe&256){M.ctx.deactivate(S);return}const $e=fe&1&&ye,tt=!cn(S);let ze;if(tt&&(ze=le&&le.onVnodeBeforeUnmount)&&is(ze,M,S),fe&6)_e(S.component,G,Y);else{if(fe&128){S.suspense.unmount(G,Y);return}$e&&Gs(S,null,M,"beforeUnmount"),fe&64?S.type.remove(S,M,G,Ft,Y):Q&&!Q.hasOnce&&(W!==Ne||ue>0&&ue&64)?Xe(Q,M,G,!1,!0):(W===Ne&&ue&384||!z&&fe&16)&&Xe(se,M,G),Y&&xs(S)}(tt&&(ze=le&&le.onVnodeUnmounted)||$e)&&Ct(()=>{ze&&is(ze,M,S),$e&&Gs(S,null,M,"unmounted")},G)},xs=S=>{const{type:M,el:G,anchor:Y,transition:z}=S;if(M===Ne){ce(G,Y);return}if(M===Jn){E(S);return}const W=()=>{i(G),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(S.shapeFlag&1&&z&&!z.persisted){const{leave:le,delayLeave:oe}=z,se=()=>le(G,W);oe?oe(S.el,W,se):se()}else W()},ce=(S,M)=>{let G;for(;S!==M;)G=h(S),i(S),S=G;i(M)},_e=(S,M,G)=>{const{bum:Y,scope:z,job:W,subTree:le,um:oe,m:se,a:Q}=S;Pr(se),Pr(Q),Y&&Si(Y),z.stop(),W&&(W.flags|=8,mt(le,S,M,G)),oe&&Ct(oe,M),Ct(()=>{S.isUnmounted=!0},M)},Xe=(S,M,G,Y=!1,z=!1,W=0)=>{for(let le=W;le<S.length;le++)mt(S[le],M,G,Y,z)},nt=S=>{if(S.shapeFlag&6)return nt(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const M=h(S.anchor||S.el),G=M&&M[Z1];return G?h(G):M};let as=!1;const et=(S,M,G)=>{let Y;S==null?M._vnode&&(mt(M._vnode,null,null,!0),Y=M._vnode.component):m(M._vnode||null,S,M,null,null,null,G),M._vnode=S,as||(as=!0,B1(Y),Er(),as=!1)},Ft={p:m,um:mt,m:Ye,r:xs,mt:K,mc:$,pc:V,pbc:k,n:nt,o:e};let Ki,Ws;return t&&([Ki,Ws]=t(Ft)),{render:et,hydrate:Ki,createApp:q3(et,Ki)}}function _l({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Yn({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Gu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ml(e,t,s=!1){const n=e.children,i=t.children;if(he(n)&&he(i))for(let o=0;o<n.length;o++){const r=n[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=hn(i[o]),a.el=r.el),!s&&a.patchFlag!==-2&&ml(r,a)),a.type===On&&(a.patchFlag===-1&&(a=i[o]=hn(a)),a.el=r.el),a.type===yt&&!a.el&&(a.el=r.el)}}function o4(e){const t=e.slice(),s=[0];let n,i,o,r,a;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(i=s[s.length-1],e[i]<c){t[n]=i,s.push(n);continue}for(o=0,r=s.length-1;o<r;)a=o+r>>1,e[s[a]]<c?o=a+1:r=a;c<e[s[o]]&&(o>0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=t[r];return s}function Bu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bu(t)}function Pr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ju(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ju(t.subTree):null}const Vr=e=>e.__isSuspense;let El=0;const r4={name:"Suspense",__isSuspense:!0,process(e,t,s,n,i,o,r,a,l,c){if(e==null)a4(t,s,n,i,o,r,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}l4(e,t,s,n,i,r,a,l,c)}},hydrate:c4,normalize:u4};function vo(e,t){const s=e.props&&e.props[t];we(s)&&s()}function a4(e,t,s,n,i,o,r,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),h=e.suspense=qu(e,i,n,t,d,s,o,r,a,l);c(null,h.pendingBranch=e.ssContent,d,null,n,h,o,r),h.deps>0?(vo(e,"onPending"),vo(e,"onFallback"),c(null,e.ssFallback,t,s,n,null,o,r),xi(h,e.ssFallback)):h.resolve(!1,!0)}function l4(e,t,s,n,i,o,r,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const h=t.ssContent,p=t.ssFallback,{activeBranch:_,pendingBranch:m,isInFallback:b,isHydrating:w}=d;if(m)d.pendingBranch=h,Ms(m,h)?(l(m,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():b&&(w||(l(_,p,s,n,i,null,o,r,a),xi(d,p)))):(d.pendingId=El++,w?(d.isHydrating=!1,d.activeBranch=m):c(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),b?(l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():(l(_,p,s,n,i,null,o,r,a),xi(d,p))):_&&Ms(_,h)?(l(_,h,s,n,i,d,o,r,a),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0&&d.resolve()));else if(_&&Ms(_,h))l(_,h,s,n,i,d,o,r,a),xi(d,h);else if(vo(t,"onPending"),d.pendingBranch=h,h.shapeFlag&512?d.pendingId=h.component.suspenseId:d.pendingId=El++,l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0)d.resolve();else{const{timeout:C,pendingId:g}=d;C>0?setTimeout(()=>{d.pendingId===g&&d.fallback(p)},C):C===0&&d.fallback(p)}}function qu(e,t,s,n,i,o,r,a,l,c,u=!1){const{p:d,m:h,um:p,n:_,o:{parentNode:m,remove:b}}=c;let w;const C=d4(e);C&&t&&t.pendingBranch&&(w=t.pendingId,t.deps++);const g=e.props?or(e.props.timeout):void 0,E=o,v={vnode:e,parent:t,parentComponent:s,namespace:r,container:n,hiddenContainer:i,deps:0,pendingId:El++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(L=!1,F=!1){const{vnode:$,activeBranch:A,pendingBranch:k,pendingId:O,effects:T,parentComponent:P,container:K,isInFallback:ee}=v;let te=!1;v.isHydrating?v.isHydrating=!1:L||(te=A&&k.transition&&k.transition.mode==="out-in",te&&(A.transition.afterLeave=()=>{O===v.pendingId&&(h(k,K,o===E?_(A):o,0),ao(T),ee&&$.ssFallback&&($.ssFallback.el=null))}),A&&(m(A.el)===K&&(o=_(A)),p(A,P,v,!0),!te&&ee&&$.ssFallback&&Ct(()=>$.ssFallback.el=null,v)),te||h(k,K,o,0)),xi(v,k),v.pendingBranch=null,v.isInFallback=!1;let ie=v.parent,V=!1;for(;ie;){if(ie.pendingBranch){ie.effects.push(...T),V=!0;break}ie=ie.parent}!V&&!te&&ao(T),v.effects=[],C&&t&&t.pendingBranch&&w===t.pendingId&&(t.deps--,t.deps===0&&!F&&t.resolve()),vo($,"onResolve")},fallback(L){if(!v.pendingBranch)return;const{vnode:F,activeBranch:$,parentComponent:A,container:k,namespace:O}=v;vo(F,"onFallback");const T=_($),P=()=>{v.isInFallback&&(d(null,L,k,T,A,null,O,a,l),xi(v,L))},K=L.transition&&L.transition.mode==="out-in";K&&($.transition.afterLeave=P),v.isInFallback=!0,p($,A,null,!0),K||P()},move(L,F,$){v.activeBranch&&h(v.activeBranch,L,F,$),v.container=L},next(){return v.activeBranch&&_(v.activeBranch)},registerDep(L,F,$){const A=!!v.pendingBranch;A&&v.deps++;const k=L.vnode.el;L.asyncDep.catch(O=>{Qn(O,L,0)}).then(O=>{if(L.isUnmounted||v.isUnmounted||v.pendingId!==L.suspenseId)return;L.asyncResolved=!0;const{vnode:T}=L;Cl(L,O,!1),k&&(T.el=k);const P=!k&&L.subTree.el;F(L,T,m(k||L.subTree.el),k?null:_(L.subTree),v,r,$),P&&(T.placeholder=null,b(P)),Dr(L,T.el),A&&--v.deps===0&&v.resolve()})},unmount(L,F){v.isUnmounted=!0,v.activeBranch&&p(v.activeBranch,s,L,F),v.pendingBranch&&p(v.pendingBranch,s,L,F)}};return v}function c4(e,t,s,n,i,o,r,a,l){const c=t.suspense=qu(t,n,s,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),u=l(e,c.pendingBranch=t.ssContent,s,c,o,r);return c.deps===0&&c.resolve(!1,!0),u}function u4(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=Ku(n?s.default:s),e.ssFallback=n?Ku(s.fallback):Ie(yt)}function Ku(e){let t;if(we(e)){const s=Xn&&e._c;s&&(e._d=!1,R()),e=e(),s&&(e._d=!0,t=jt,Qu())}return he(e)&&(e=W3(e)),e=ns(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function zu(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):ao(e)}function xi(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,n&&n.subTree===s&&(n.vnode.el=i,Dr(n,i))}function d4(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ne=Symbol.for("v-fgt"),On=Symbol.for("v-txt"),yt=Symbol.for("v-cmt"),Jn=Symbol.for("v-stc"),Co=[];let jt=null;function R(e=!1){Co.push(jt=e?null:[])}function Qu(){Co.pop(),jt=Co[Co.length-1]||null}let Xn=1;function yo(e,t=!1){Xn+=e,e<0&&jt&&t&&(jt.hasOnce=!0)}function Wu(e){return e.dynamicChildren=Xn>0?jt||mi:null,Qu(),Xn>0&&jt&&jt.push(e),e}function D(e,t,s,n,i,o){return Wu(y(e,t,s,n,i,o,!0))}function xe(e,t,s,n,i){return Wu(Ie(e,t,s,n,i,!0))}function fn(e){return e?e.__v_isVNode===!0:!1}function Ms(e,t){return e.type===t.type&&e.key===t.key}function f4(e){}const Zu=({key:e})=>e??null,Fr=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||ht(e)||we(e)?{i:Dt,r:e,k:t,f:!!s}:e:null);function y(e,t=null,s=null,n=0,i=null,o=e===Ne?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zu(t),ref:t&&Fr(t),scopeId:Cr,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Dt};return a?(vl(l,s),o&128&&e.normalize(l)):s&&(l.shapeFlag|=be(s)?8:16),Xn>0&&!r&&jt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&jt.push(l),l}const Ie=h4;function h4(e,t=null,s=null,n=0,i=null,o=!1){if((!e||e===Eu)&&(e=yt),fn(e)){const a=js(e,t,!0);return s&&vl(a,s),Xn>0&&!o&&jt&&(a.shapeFlag&6?jt[jt.indexOf(e)]=a:jt.push(a)),a.patchFlag=-2,a}if(y4(e)&&(e=e.__vccOpts),t){t=Yu(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=Fe(a)),qe(l)&&(ro(l)&&!he(l)&&(l=Ve({},l)),t.style=rt(l))}const r=be(e)?1:Vr(e)?128:Y1(e)?64:qe(e)?4:we(e)?2:0;return y(e,t,s,n,i,r,o,!0)}function Yu(e){return e?ro(e)||xu(e)?Ve({},e):e:null}function js(e,t,s=!1,n=!1){const{props:i,ref:o,patchFlag:r,children:a,transition:l}=e,c=t?Ju(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Zu(c),ref:t&&t.ref?s&&o?he(o)?o.concat(Fr(t)):[o,Fr(t)]:Fr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&js(e.ssContent),ssFallback:e.ssFallback&&js(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&ln(u,l.clone(u)),u}function So(e=" ",t=0){return Ie(On,null,e,t)}function $r(e,t){const s=Ie(Jn,null,e);return s.staticCount=t,s}function de(e="",t=!1){return t?(R(),xe(yt,null,e)):Ie(yt,null,e)}function ns(e){return e==null||typeof e=="boolean"?Ie(yt):he(e)?Ie(Ne,null,e.slice()):fn(e)?hn(e):Ie(On,null,String(e))}function hn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:js(e)}function vl(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(he(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),vl(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!xu(t)?t._ctx=Dt:i===3&&Dt&&(Dt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else we(t)?(t={default:t,_ctx:Dt},s=32):(t=String(t),n&64?(s=16,t=[So(t)]):s=8);e.children=t,e.shapeFlag|=s}function Ju(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Fe([t.class,n.class]));else if(i==="style")t.style=rt([t.style,n.style]);else if(Gn(i)){const o=t[i],r=n[i];r&&o!==r&&!(he(o)&&o.includes(r))&&(t[i]=o?[].concat(o,r):r)}else i!==""&&(t[i]=n[i])}return t}function is(e,t,s,n=null){_s(e,t,7,[s,n])}const p4=Ru();let g4=0;function Xu(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||p4,o={uid:g4++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Da(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Uu(n,i),emitsOptions:Mu(n,i),emit:null,emitted:null,propsDefaults:He,inheritAttrs:n.inheritAttrs,ctx:He,data:He,props:He,attrs:He,slots:He,refs:He,setupState:He,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=z3.bind(null,o),e.ce&&e.ce(o),o}let Pt=null;const Xt=()=>Pt||Dt;let Hr,ki;{const e=rr(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Hr=t("__VUE_INSTANCE_SETTERS__",s=>Pt=s),ki=t("__VUE_SSR_SETTERS__",s=>ei=s)}const Ui=e=>{const t=Pt;return Hr(e),e.scope.on(),()=>{e.scope.off(),Hr(t)}},Gr=()=>{Pt&&Pt.scope.off(),Hr(null)};function ed(e){return e.vnode.shapeFlag&4}let ei=!1;function td(e,t=!1,s=!1){t&&ki(t);const{props:n,children:i}=e.vnode,o=ed(e);X3(e,n,o,t),n4(e,i,s||t);const r=o?_4(e,t):void 0;return t&&ki(!1),r}function _4(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,cl);const{setup:n}=s;if(n){Ps();const i=e.setupContext=n.length>1?id(e):null,o=Ui(e),r=zn(n,e,0,[e.props,i]),a=Ua(r);if(Vs(),o(),(a||e.sp)&&!cn(e)&&el(e),a){if(r.then(Gr,Gr),t)return r.then(l=>{Cl(e,l,t)}).catch(l=>{Qn(l,e,0)});e.asyncDep=r}else Cl(e,r,t)}else nd(e,t)}function Cl(e,t,s){we(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qe(t)&&(e.setupState=Ka(t)),nd(e,s)}let Br,yl;function sd(e){Br=e,yl=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,R3))}}const m4=()=>!Br;function nd(e,t,s){const n=e.type;if(!e.render){if(!t&&Br&&!n.render){const i=n.template||dl(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,c=Ve(Ve({isCustomElement:o,delimiters:a},r),l);n.render=Br(i,c)}}e.render=n.render||kt,yl&&yl(e)}{const i=Ui(e);Ps();try{F3(e)}finally{Vs(),i()}}}const E4={get(e,t){return Bt(e,"get",""),e[t]}};function id(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,E4),slots:e.slots,emit:e.emit,expose:t}}function To(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ka(U1(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in _o)return _o[s](e)},has(t,s){return s in t||s in _o}})):e.proxy}const v4=/(?:^|[-_])\w/g,C4=e=>e.replace(v4,t=>t.toUpperCase()).replace(/[-_]/g,"");function jr(e,t=!0){return we(e)?e.displayName||e.name:e.name||t&&e.__name}function od(e,t,s=!1){let n=jr(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&e){const i=o=>{for(const r in o)if(o[r]===t)return r};n=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return n?C4(n):s?"App":"Anonymous"}function y4(e){return we(e)&&"__vccOpts"in e}const me=(e,t)=>x5(e,t,ei);function rd(e,t,s){try{yo(-1);const n=arguments.length;return n===2?qe(t)&&!he(t)?fn(t)?Ie(e,null,[t]):Ie(e,t):Ie(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&fn(s)&&(s=[s]),Ie(e,t,s))}finally{yo(1)}}function S4(){}function T4(e,t,s,n){const i=s[n];if(i&&ad(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=n,s[n]=o}function ad(e,t){const s=e.memo;if(s.length!=t.length)return!1;for(let n=0;n<s.length;n++)if(Nt(s[n],t[n]))return!1;return Xn>0&&jt&&jt.push(e),!0}const ld="3.5.30",I4=kt,R4=q5,w4=Mi,M4=q1,O4={createComponentInstance:Xu,setupComponent:td,renderComponentRoot:Nr,setCurrentRenderingInstance:co,isVNode:fn,normalizeVNode:ns,getComponentPublicInstance:To,ensureValidVNode:rl,pushWarningContext:P5,popWarningContext:V5},b4=null,L4=null,A4=null;/**
|
|
316
304
|
* @vue/runtime-dom v3.5.30
|
|
317
305
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
318
306
|
* @license MIT
|
|
319
|
-
**/let El;const rd=typeof window<"u"&&window.trustedTypes;if(rd)try{El=rd.createPolicy("vue",{createHTML:e=>e})}catch{}const od=El?e=>El.createHTML(e):e=>e,U4="http://www.w3.org/2000/svg",N4="http://www.w3.org/1998/Math/MathML",dn=typeof document<"u"?document:null,ad=dn&&dn.createElement("template"),ld={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?dn.createElementNS(U4,e):t==="mathml"?dn.createElementNS(N4,e):s?dn.createElement(e,{is:s}):dn.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>dn.createTextNode(e),createComment:e=>dn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>dn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const o=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{ad.innerHTML=od(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=ad.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},On="transition",Sr="animation",Di=Symbol("_vtc"),cd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ud=Ve({},qa,cd),vl=(e=>(e.displayName="Transition",e.props=ud,e))((e,{slots:t})=>sd(eu,fd(e),t)),ei=(e,t=[])=>{he(e)?e.forEach(s=>s(...t)):e&&e(...t)},dd=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function fd(e){const t={};for(const T in e)T in cd||(t[T]=e[T]);if(e.css===!1)return t;const{name:s="v",type:n,duration:i,enterFromClass:r=`${s}-enter-from`,enterActiveClass:o=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:d=`${s}-leave-from`,leaveActiveClass:h=`${s}-leave-active`,leaveToClass:p=`${s}-leave-to`}=e,_=D4(i),m=_&&_[0],L=_&&_[1],{onBeforeEnter:M,onEnter:E,onEnterCancelled:g,onLeave:v,onLeaveCancelled:C,onBeforeAppear:b=M,onAppear:$=E,onAppearCancelled:F=g}=t,A=(T,D,z,ee)=>{T._enterCancelled=ee,bn(T,D?u:a),bn(T,D?c:o),z&&z()},U=(T,D)=>{T._isLeaving=!1,bn(T,d),bn(T,p),bn(T,h),D&&D()},O=T=>(D,z)=>{const ee=T?$:E,te=()=>A(D,T,z);ei(ee,[D,te]),hd(()=>{bn(D,T?l:r),Gs(D,T?u:a),dd(ee)||pd(D,n,m,te)})};return Ve(t,{onBeforeEnter(T){ei(M,[T]),Gs(T,r),Gs(T,o)},onBeforeAppear(T){ei(b,[T]),Gs(T,l),Gs(T,c)},onEnter:O(!1),onAppear:O(!0),onLeave(T,D){T._isLeaving=!0;const z=()=>U(T,D);Gs(T,d),T._enterCancelled?(Gs(T,h),yl(T)):(yl(T),Gs(T,h)),hd(()=>{T._isLeaving&&(bn(T,d),Gs(T,p),dd(v)||pd(T,n,L,z))}),ei(v,[T,z])},onEnterCancelled(T){A(T,!1,void 0,!0),ei(g,[T])},onAppearCancelled(T){A(T,!0,void 0,!0),ei(F,[T])},onLeaveCancelled(T){U(T),ei(C,[T])}})}function D4(e){if(e==null)return null;if(Be(e))return[Cl(e.enter),Cl(e.leave)];{const t=Cl(e);return[t,t]}}function Cl(e){return so(e)}function Gs(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[Di]||(e[Di]=new Set)).add(t)}function bn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[Di];s&&(s.delete(t),s.size||(e[Di]=void 0))}function hd(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let P4=0;function pd(e,t,s,n){const i=e._endId=++P4,r=()=>{i===e._endId&&n()};if(s!=null)return setTimeout(r,s);const{type:o,timeout:a,propCount:l}=gd(e,t);if(!o)return n();const c=o+"end";let u=0;const d=()=>{e.removeEventListener(c,h),r()},h=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,h)}function gd(e,t){const s=window.getComputedStyle(e),n=_=>(s[_]||"").split(", "),i=n(`${On}Delay`),r=n(`${On}Duration`),o=_d(i,r),a=n(`${Sr}Delay`),l=n(`${Sr}Duration`),c=_d(a,l);let u=null,d=0,h=0;t===On?o>0&&(u=On,d=o,h=r.length):t===Sr?c>0&&(u=Sr,d=c,h=l.length):(d=Math.max(o,c),u=d>0?o>c?On:Sr:null,h=u?u===On?r.length:l.length:0);const p=u===On&&/\b(?:transform|all)(?:,|$)/.test(n(`${On}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}function _d(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>md(s)+md(e[n])))}function md(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function yl(e){return(e?e.ownerDocument:document).body.offsetHeight}function V4(e,t,s){const n=e[Di];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Bo=Symbol("_vod"),Ed=Symbol("_vsh"),Bs={name:"show",beforeMount(e,{value:t},{transition:s}){e[Bo]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Tr(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),Tr(e,!0),n.enter(e)):n.leave(e,()=>{Tr(e,!1)}):Tr(e,t))},beforeUnmount(e,{value:t}){Tr(e,t)}};function Tr(e,t){e.style.display=t?e[Bo]:"none",e[Ed]=!t}function $4(){Bs.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const vd=Symbol("");function F4(e){const t=Jt();if(!t)return;const s=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(r=>jo(r,i))},n=()=>{const i=e(t.proxy);t.ce?jo(t.ce,i):Sl(t.subTree,i),s(i)};Ja(()=>{ar(n)}),at(()=>{ls(n,kt,{flush:"post"});const i=new MutationObserver(n);i.observe(t.subTree.el.parentNode,{childList:!0}),Tt(()=>i.disconnect())})}function Sl(e,t){if(e.shapeFlag&128){const s=e.suspense;e=s.activeBranch,s.pendingBranch&&!s.isHydrating&&s.effects.push(()=>{Sl(s.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)jo(e.el,t);else if(e.type===De)e.children.forEach(s=>Sl(s,t));else if(e.type===Yn){let{el:s,anchor:n}=e;for(;s&&(jo(s,t),s!==n);)s=s.nextSibling}}function jo(e,t){if(e.nodeType===1){const s=e.style;let n="";for(const i in t){const r=X5(t[i]);s.setProperty(`--${i}`,r),n+=`--${i}: ${r};`}s[vd]=n}}const H4=/(?:^|;)\s*display\s*:/;function G4(e,t,s){const n=e.style,i=be(s);let r=!1;if(s&&!i){if(t)if(be(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();s[a]==null&&Ko(n,a,"")}else for(const o in t)s[o]==null&&Ko(n,o,"");for(const o in s)o==="display"&&(r=!0),Ko(n,o,s[o])}else if(i){if(t!==s){const o=n[vd];o&&(s+=";"+o),n.cssText=s,r=H4.test(s)}}else t&&e.removeAttribute("style");Bo in e&&(e[Bo]=r?n.display:"",e[Ed]&&(n.display="none"))}const Cd=/\s*!important$/;function Ko(e,t,s){if(he(s))s.forEach(n=>Ko(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=B4(e,t);Cd.test(s)?e.setProperty(es(n),s.replace(Cd,""),"important"):e[n]=s}}const yd=["Webkit","Moz","ms"],Tl={};function B4(e,t){const s=Tl[t];if(s)return s;let n=Ye(t);if(n!=="filter"&&n in e)return Tl[t]=n;n=Bn(n);for(let i=0;i<yd.length;i++){const r=yd[i]+n;if(r in e)return Tl[t]=r}return t}const Sd="http://www.w3.org/1999/xlink";function Td(e,t,s,n,i,r=Y5(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Sd,t.slice(6,t.length)):e.setAttributeNS(Sd,t,s):s==null||r&&!l1(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Xt(s)?String(s):s)}function Id(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?od(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,l=s==null?e.type==="checkbox"?"on":"":String(s);(a!==l||!("_value"in e))&&(e.value=l),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=l1(s):s==null&&a==="string"?(s="",o=!0):a==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(i||t)}function fn(e,t,s,n){e.addEventListener(t,s,n)}function j4(e,t,s,n){e.removeEventListener(t,s,n)}const wd=Symbol("_vei");function K4(e,t,s,n,i=null){const r=e[wd]||(e[wd]={}),o=r[t];if(n&&o)o.value=n;else{const[a,l]=z4(t);if(n){const c=r[t]=W4(n,i);fn(e,a,c,l)}else o&&(j4(e,a,o,l),r[t]=void 0)}}const Rd=/(?:Once|Passive|Capture)$/;function z4(e){let t;if(Rd.test(e)){t={};let n;for(;n=e.match(Rd);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):es(e.slice(2)),t]}let Il=0;const q4=Promise.resolve(),Z4=()=>Il||(q4.then(()=>Il=0),Il=Date.now());function W4(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;gs(Q4(n,s.value),t,5,[n])};return s.value=e,s.attached=Z4(),s}function Q4(e,t){if(he(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Md=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Od=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?V4(e,n,o):t==="style"?G4(e,s,n):Hn(t)?Ma(t)||K4(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Y4(e,t,n,o))?(Id(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Td(e,t,n,o,r,t!=="value")):e._isVueCE&&(J4(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!be(n)))?Id(e,Ye(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Td(e,t,n,o))};function Y4(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Md(t)&&we(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Md(t)&&be(s)?!1:t in e}function J4(e,t){const s=e._def.props;if(!s)return!1;const n=Ye(t);return Array.isArray(s)?s.some(i=>Ye(i)===n):Object.keys(s).some(i=>Ye(i)===n)}const bd={};function Pi(e,t,s){let n=Te(e,t);Jr(n)&&(n=Ve({},n,t));class i extends zo{constructor(o){super(n,o,s)}}return i.def=n,i}const X4=(e,t)=>Pi(e,t,Zd),e6=typeof HTMLElement<"u"?HTMLElement:class{};class zo extends e6{constructor(t,s={},n=Rl){super(),this._def=t,this._props=s,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Rl?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Ve({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof zo){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,ot(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const s of t)this._setAttr(s.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:o}=n;let a;if(r&&!he(r))for(const l in r){const c=r[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=so(this._props[l])),(a||(a=Object.create(null)))[Ye(l)]=!0)}this._numberProps=a,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},s=this._def.__asyncLoader;s?this._pendingResolve=s().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const n in s)qe(this,n)||Object.defineProperty(this,n,{get:()=>x(s[n])})}_resolveProps(t){const{props:s}=t,n=he(s)?s:Object.keys(s||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(Ye))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const s=this.hasAttribute(t);let n=s?this.getAttribute(t):bd;const i=Ye(t);s&&this._numberProps&&this._numberProps[i]&&(n=so(n)),this._setProp(i,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,s,n=!0,i=!1){if(s!==this._props[t]&&(this._dirty=!0,s===bd?delete this._props[t]:(this._props[t]=s,t==="key"&&this._app&&(this._app._ceVNode.key=s)),i&&this._instance&&this._update(),n)){const r=this._ob;r&&(this._processMutations(r.takeRecords()),r.disconnect()),s===!0?this.setAttribute(es(t),""):typeof s=="string"||typeof s=="number"?this.setAttribute(es(t),s+""):s||this.removeAttribute(es(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),qd(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const s=Re(this._def,Ve(t,this._props));return this._instance||(s.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const i=(r,o)=>{this.dispatchEvent(new CustomEvent(r,Jr(o[0])?Ve({detail:o},o[0]):{detail:o}))};n.emit=(r,...o)=>{i(r,o),es(r)!==r&&i(es(r),o)},this._setParent()}),s}_applyStyles(t,s,n){if(!t)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const i=this._nonce,r=this.shadowRoot,o=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(r);let a=null;for(let l=t.length-1;l>=0;l--){const c=document.createElement("style");i&&c.setAttribute("nonce",i),c.textContent=t[l],r.insertBefore(c,a||o),a=c,l===0&&(n||this._styleAnchors.set(this._def,c),s&&this._styleAnchors.set(s,c))}}_getStyleAnchor(t){if(!t)return null;const s=this._styleAnchors.get(t);return s&&s.parentNode===this.shadowRoot?s:(s&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let s=0;s<t.childNodes.length;s++){const n=t.childNodes[s];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const t=this._slots={};let s;for(;s=this.firstChild;){const n=s.nodeType===1&&s.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(s),this.removeChild(s)}}_renderSlots(){const t=this._getSlots(),s=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const i=t[n],r=i.getAttribute("name")||"default",o=this._slots[r],a=i.parentNode;if(o)for(const l of o){if(s&&l.nodeType===1){const c=s+"-s",u=document.createTreeWalker(l,1);l.setAttribute(c,"");let d;for(;d=u.nextNode();)d.setAttribute(c,"")}a.insertBefore(l,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const s=new Set;for(const n of t){const i=n.querySelectorAll("slot");for(let r=0;r<i.length;r++)s.add(i[r])}return Array.from(s)}_injectChildStyle(t,s){this._applyStyles(t.styles,t,s)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}function Ld(e){const t=Jt(),s=t&&t.ce;return s||null}function t6(){const e=Ld();return e&&e.shadowRoot}function s6(e="$style"){{const t=Jt();if(!t)return Fe;const s=t.type.__cssModules;if(!s)return Fe;const n=s[e];return n||Fe}}const Ad=new WeakMap,xd=new WeakMap,qo=Symbol("_moveCb"),kd=Symbol("_enterCb"),n6=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:Ve({},ud,{tag:String,moveClass:String}),setup(e,{slots:t}){const s=Jt(),n=za();let i,r;return bo(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!a6(i[0].el,s.vnode.el,o)){i=[];return}i.forEach(i6),i.forEach(r6);const a=i.filter(o6);yl(s.vnode.el),a.forEach(l=>{const c=l.el,u=c.style;Gs(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[qo]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[qo]=null,bn(c,o))};c.addEventListener("transitionend",d)}),i=[]}),()=>{const o=He(e),a=fd(o);let l=o.tag||De;if(i=[],r)for(let c=0;c<r.length;c++){const u=r[c];u.el&&u.el instanceof Element&&(i.push(u),rn(u,bi(u,a,n,s)),Ad.set(u,Ud(u.el)))}r=t.default?So(t.default()):[];for(let c=0;c<r.length;c++){const u=r[c];u.key!=null&&rn(u,bi(u,a,n,s))}return Re(l,null,r)}}});function i6(e){const t=e.el;t[qo]&&t[qo](),t[kd]&&t[kd]()}function r6(e){xd.set(e,Ud(e.el))}function o6(e){const t=Ad.get(e),s=xd.get(e),n=t.left-s.left,i=t.top-s.top;if(n||i){const r=e.el,o=r.style,a=r.getBoundingClientRect();let l=1,c=1;return r.offsetWidth&&(l=a.width/r.offsetWidth),r.offsetHeight&&(c=a.height/r.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(l-1)<.01&&(l=1),Math.abs(c-1)<.01&&(c=1),o.transform=o.webkitTransform=`translate(${n/l}px,${i/c}px)`,o.transitionDuration="0s",e}}function Ud(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function a6(e,t,s){const n=e.cloneNode(),i=e[Di];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),s.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(n);const{hasTransform:o}=gd(n);return r.removeChild(n),o}const Ln=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?s=>Ti(t,s):t};function l6(e){e.target.composing=!0}function Nd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Es=Symbol("_assign");function Dd(e,t,s){return t&&(e=e.trim()),s&&(e=to(e)),e}const Ir={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Es]=Ln(i);const r=n||i.props&&i.props.type==="number";fn(e,t?"change":"input",o=>{o.target.composing||e[Es](Dd(e.value,s,r))}),(s||r)&&fn(e,"change",()=>{e.value=Dd(e.value,s,r)}),t||(fn(e,"compositionstart",l6),fn(e,"compositionend",Nd),fn(e,"change",Nd))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:r}},o){if(e[Es]=Ln(o),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?to(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===l)||(e.value=l))}},wr={deep:!0,created(e,t,s){e[Es]=Ln(s),fn(e,"change",()=>{const n=e._modelValue,i=Vi(e),r=e.checked,o=e[Es];if(he(n)){const a=io(n,i),l=a!==-1;if(r&&!l)o(n.concat(i));else if(!r&&l){const c=[...n];c.splice(a,1),o(c)}}else if(Gn(n)){const a=new Set(n);r?a.add(i):a.delete(i),o(a)}else o(Fd(e,r))})},mounted:Pd,beforeUpdate(e,t,s){e[Es]=Ln(s),Pd(e,t,s)}};function Pd(e,{value:t,oldValue:s},n){e._modelValue=t;let i;if(he(t))i=io(t,n.props.value)>-1;else if(Gn(t))i=t.has(n.props.value);else{if(t===s)return;i=Js(t,Fd(e,!0))}e.checked!==i&&(e.checked=i)}const wl={created(e,{value:t},s){e.checked=Js(t,s.props.value),e[Es]=Ln(s),fn(e,"change",()=>{e[Es](Vi(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[Es]=Ln(n),t!==s&&(e.checked=Js(t,n.props.value))}},Vd={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=Gn(t);fn(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>s?to(Vi(o)):Vi(o));e[Es](e.multiple?i?new Set(r):r:r[0]),e._assigning=!0,ot(()=>{e._assigning=!1})}),e[Es]=Ln(n)},mounted(e,{value:t}){$d(e,t)},beforeUpdate(e,t,s){e[Es]=Ln(s)},updated(e,{value:t}){e._assigning||$d(e,t)}};function $d(e,t){const s=e.multiple,n=he(t);if(!(s&&!n&&!Gn(t))){for(let i=0,r=e.options.length;i<r;i++){const o=e.options[i],a=Vi(o);if(s)if(n){const l=typeof a;l==="string"||l==="number"?o.selected=t.some(c=>String(c)===String(a)):o.selected=io(t,a)>-1}else o.selected=t.has(a);else if(Js(Vi(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vi(e){return"_value"in e?e._value:e.value}function Fd(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const Hd={created(e,t,s){Zo(e,t,s,null,"created")},mounted(e,t,s){Zo(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){Zo(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){Zo(e,t,s,n,"updated")}};function Gd(e,t){switch(e){case"SELECT":return Vd;case"TEXTAREA":return Ir;default:switch(t){case"checkbox":return wr;case"radio":return wl;default:return Ir}}}function Zo(e,t,s,n,i){const o=Gd(e.tagName,s.props&&s.props.type)[i];o&&o(e,t,s,n)}function c6(){Ir.getSSRProps=({value:e})=>({value:e}),wl.getSSRProps=({value:e},t)=>{if(t.props&&Js(t.props.value,e))return{checked:!0}},wr.getSSRProps=({value:e},t)=>{if(he(e)){if(t.props&&io(e,t.props.value)>-1)return{checked:!0}}else if(Gn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Hd.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const s=Gd(t.type.toUpperCase(),t.props&&t.props.type);if(s.getSSRProps)return s.getSSRProps(e,t)}}const u6=["ctrl","shift","alt","meta"],d6={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>u6.some(s=>e[`${s}Key`]&&!t.includes(s))},vs=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(i,...r)=>{for(let o=0;o<t.length;o++){const a=d6[t[o]];if(a&&a(i,t))return}return e(i,...r)})},f6={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},h6=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=i=>{if(!("key"in i))return;const r=es(i.key);if(t.some(o=>o===r||f6[o]===r))return e(i)})},Bd=Ve({patchProp:Od},ld);let Rr,jd=!1;function Kd(){return Rr||(Rr=Nu(Bd))}function zd(){return Rr=jd?Rr:Du(Bd),jd=!0,Rr}const qd=(...e)=>{Kd().render(...e)},p6=(...e)=>{zd().hydrate(...e)},Rl=(...e)=>{const t=Kd().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=Qd(n);if(!i)return;const r=t._component;!we(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=s(i,!1,Wd(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t},Zd=(...e)=>{const t=zd().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=Qd(n);if(i)return s(i,!0,Wd(i))},t};function Wd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Qd(e){return be(e)?document.querySelector(e):e}let Yd=!1;const g6=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:eu,BaseTransitionPropsValidators:qa,Comment:Et,DeprecationTypes:k4,EffectScope:Aa,ErrorCodes:zp,ErrorTypeStrings:M4,Fragment:De,KeepAlive:y3,ReactiveEffect:Xi,Static:Yn,Suspense:l4,Teleport:i3,Text:Mn,TrackOpTypes:Np,Transition:vl,TransitionGroup:n6,TriggerOpTypes:Dp,VueElement:zo,assertNumber:Kp,callWithAsyncErrorHandling:gs,callWithErrorHandling:zn,camelize:Ye,capitalize:Bn,cloneVNode:Hs,compatUtils:x4,computed:ye,createApp:Rl,createBlock:Le,createCommentVNode:ue,createElementBlock:P,createElementVNode:y,createHydrationRenderer:Du,createPropsRestProxy:$3,createRenderer:Nu,createSSRApp:Zd,createSlots:w3,createStaticVNode:Vo,createTextVNode:Po,createVNode:Re,customRef:k1,defineAsyncComponent:C3,defineComponent:Te,defineCustomElement:Pi,defineEmits:b3,defineExpose:L3,defineModel:k3,defineOptions:A3,defineProps:O3,defineSSRCustomElement:X4,defineSlots:x3,devtools:O4,effect:np,effectScope:ep,getCurrentInstance:Jt,getCurrentScope:d1,getCurrentWatcher:Pp,getTransitionRawChildren:So,guardReactiveProps:qu,h:sd,handleError:qn,hasInjectionContext:Xp,hydrate:p6,hydrateOnIdle:p3,hydrateOnInteraction:E3,hydrateOnMediaQuery:m3,hydrateOnVisible:_3,initCustomFormatter:I4,initDirectivesForSSR:()=>{Yd||(Yd=!0,c6(),$4())},inject:Zn,isMemoSame:nd,isProxy:or,isReactive:sn,isReadonly:Ps,isRef:dt,isRuntimeOnly:v4,isShallow:ts,isVNode:cn,markRaw:L1,mergeDefaults:P3,mergeModels:V3,mergeProps:Zu,nextTick:ot,nodeOps:ld,normalizeClass:Je,normalizeProps:G5,normalizeStyle:it,onActivated:au,onBeforeMount:Ya,onBeforeUnmount:Rn,onBeforeUpdate:Ja,onDeactivated:lu,onErrorCaptured:hu,onMounted:at,onRenderTracked:fu,onRenderTriggered:du,onScopeDispose:tp,onServerPrefetch:uu,onUnmounted:Tt,onUpdated:bo,onWatcherCleanup:N1,openBlock:w,patchProp:Od,popScopeId:Yp,provide:vo,proxyRefs:Ha,pushScopeId:Qp,queuePostFlushCb:ar,reactive:tn,readonly:rr,ref:N,registerRuntimeCompiler:Ju,render:qd,renderList:Ot,renderSlot:ln,resolveComponent:ve,resolveDirective:I3,resolveDynamicComponent:el,resolveFilter:A4,resolveTransitionHooks:bi,setBlockTracking:Cr,setDevtoolsHook:b4,setTransitionHooks:rn,shallowReactive:b1,shallowReadonly:Tp,shallowRef:A1,ssrContextKey:G1,ssrUtils:L4,stop:ip,toDisplayString:oe,toHandlerKey:Si,toHandlers:R3,toRaw:He,toRef:xp,toRefs:bp,toValue:Rp,transformVNodeArgs:p4,triggerRef:wp,unref:x,useAttrs:D3,useCssModule:s6,useCssVars:F4,useHost:Ld,useId:o3,useModel:Z3,useSSRContext:B1,useShadowRoot:t6,useSlots:N3,useTemplateRef:a3,useTransitionState:za,vModelCheckbox:wr,vModelDynamic:Hd,vModelRadio:wl,vModelSelect:Vd,vModelText:Ir,vShow:Bs,version:id,warn:R4,watch:ls,watchEffect:e3,watchPostEffect:t3,watchSyncEffect:j1,withAsyncContext:F3,withCtx:ft,withDefaults:U3,withDirectives:_s,withKeys:h6,withMemo:w4,withModifiers:vs,withScopeId:Jp},Symbol.toStringTag,{value:"Module"}));/**
|
|
307
|
+
**/let Sl;const cd=typeof window<"u"&&window.trustedTypes;if(cd)try{Sl=cd.createPolicy("vue",{createHTML:e=>e})}catch{}const ud=Sl?e=>Sl.createHTML(e):e=>e,x4="http://www.w3.org/2000/svg",k4="http://www.w3.org/1998/Math/MathML",pn=typeof document<"u"?document:null,dd=pn&&pn.createElement("template"),fd={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?pn.createElementNS(x4,e):t==="mathml"?pn.createElementNS(k4,e):s?pn.createElement(e,{is:s}):pn.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>pn.createTextNode(e),createComment:e=>pn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,o){const r=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{dd.innerHTML=ud(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=dd.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},bn="transition",Io="animation",Ni=Symbol("_vtc"),hd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},pd=Ve({},Ja,hd),Tl=(e=>(e.displayName="Transition",e.props=pd,e))((e,{slots:t})=>rd(iu,_d(e),t)),ti=(e,t=[])=>{he(e)?e.forEach(s=>s(...t)):e&&e(...t)},gd=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function _d(e){const t={};for(const T in e)T in hd||(t[T]=e[T]);if(e.css===!1)return t;const{name:s="v",type:n,duration:i,enterFromClass:o=`${s}-enter-from`,enterActiveClass:r=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=a,leaveFromClass:d=`${s}-leave-from`,leaveActiveClass:h=`${s}-leave-active`,leaveToClass:p=`${s}-leave-to`}=e,_=U4(i),m=_&&_[0],b=_&&_[1],{onBeforeEnter:w,onEnter:C,onEnterCancelled:g,onLeave:E,onLeaveCancelled:v,onBeforeAppear:L=w,onAppear:F=C,onAppearCancelled:$=g}=t,A=(T,P,K,ee)=>{T._enterCancelled=ee,Ln(T,P?u:a),Ln(T,P?c:r),K&&K()},k=(T,P)=>{T._isLeaving=!1,Ln(T,d),Ln(T,p),Ln(T,h),P&&P()},O=T=>(P,K)=>{const ee=T?F:C,te=()=>A(P,T,K);ti(ee,[P,te]),md(()=>{Ln(P,T?l:o),qs(P,T?u:a),gd(ee)||Ed(P,n,m,te)})};return Ve(t,{onBeforeEnter(T){ti(w,[T]),qs(T,o),qs(T,r)},onBeforeAppear(T){ti(L,[T]),qs(T,l),qs(T,c)},onEnter:O(!1),onAppear:O(!0),onLeave(T,P){T._isLeaving=!0;const K=()=>k(T,P);qs(T,d),T._enterCancelled?(qs(T,h),Rl(T)):(Rl(T),qs(T,h)),md(()=>{T._isLeaving&&(Ln(T,d),qs(T,p),gd(E)||Ed(T,n,b,K))}),ti(E,[T,K])},onEnterCancelled(T){A(T,!1,void 0,!0),ti(g,[T])},onAppearCancelled(T){A(T,!0,void 0,!0),ti($,[T])},onLeaveCancelled(T){k(T),ti(v,[T])}})}function U4(e){if(e==null)return null;if(qe(e))return[Il(e.enter),Il(e.leave)];{const t=Il(e);return[t,t]}}function Il(e){return or(e)}function qs(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[Ni]||(e[Ni]=new Set)).add(t)}function Ln(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[Ni];s&&(s.delete(t),s.size||(e[Ni]=void 0))}function md(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let N4=0;function Ed(e,t,s,n){const i=e._endId=++N4,o=()=>{i===e._endId&&n()};if(s!=null)return setTimeout(o,s);const{type:r,timeout:a,propCount:l}=vd(e,t);if(!r)return n();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,h)}function vd(e,t){const s=window.getComputedStyle(e),n=_=>(s[_]||"").split(", "),i=n(`${bn}Delay`),o=n(`${bn}Duration`),r=Cd(i,o),a=n(`${Io}Delay`),l=n(`${Io}Duration`),c=Cd(a,l);let u=null,d=0,h=0;t===bn?r>0&&(u=bn,d=r,h=o.length):t===Io?c>0&&(u=Io,d=c,h=l.length):(d=Math.max(r,c),u=d>0?r>c?bn:Io:null,h=u?u===bn?o.length:l.length:0);const p=u===bn&&/\b(?:transform|all)(?:,|$)/.test(n(`${bn}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}function Cd(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>yd(s)+yd(e[n])))}function yd(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Rl(e){return(e?e.ownerDocument:document).body.offsetHeight}function D4(e,t,s){const n=e[Ni];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const qr=Symbol("_vod"),Sd=Symbol("_vsh"),Ks={name:"show",beforeMount(e,{value:t},{transition:s}){e[qr]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Ro(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),Ro(e,!0),n.enter(e)):n.leave(e,()=>{Ro(e,!1)}):Ro(e,t))},beforeUnmount(e,{value:t}){Ro(e,t)}};function Ro(e,t){e.style.display=t?e[qr]:"none",e[Sd]=!t}function P4(){Ks.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Td=Symbol("");function V4(e){const t=Xt();if(!t)return;const s=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Kr(o,i))},n=()=>{const i=e(t.proxy);t.ce?Kr(t.ce,i):wl(t.subTree,i),s(i)};nl(()=>{ao(n)}),lt(()=>{cs(n,kt,{flush:"post"});const i=new MutationObserver(n);i.observe(t.subTree.el.parentNode,{childList:!0}),Rt(()=>i.disconnect())})}function wl(e,t){if(e.shapeFlag&128){const s=e.suspense;e=s.activeBranch,s.pendingBranch&&!s.isHydrating&&s.effects.push(()=>{wl(s.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Kr(e.el,t);else if(e.type===Ne)e.children.forEach(s=>wl(s,t));else if(e.type===Jn){let{el:s,anchor:n}=e;for(;s&&(Kr(s,t),s!==n);)s=s.nextSibling}}function Kr(e,t){if(e.nodeType===1){const s=e.style;let n="";for(const i in t){const o=Yp(t[i]);s.setProperty(`--${i}`,o),n+=`--${i}: ${o};`}s[Td]=n}}const F4=/(?:^|;)\s*display\s*:/;function $4(e,t,s){const n=e.style,i=be(s);let o=!1;if(s&&!i){if(t)if(be(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();s[a]==null&&zr(n,a,"")}else for(const r in t)s[r]==null&&zr(n,r,"");for(const r in s)r==="display"&&(o=!0),zr(n,r,s[r])}else if(i){if(t!==s){const r=n[Td];r&&(s+=";"+r),n.cssText=s,o=F4.test(s)}}else t&&e.removeAttribute("style");qr in e&&(e[qr]=o?n.display:"",e[Sd]&&(n.display="none"))}const Id=/\s*!important$/;function zr(e,t,s){if(he(s))s.forEach(n=>zr(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=H4(e,t);Id.test(s)?e.setProperty(ts(n),s.replace(Id,""),"important"):e[n]=s}}const Rd=["Webkit","Moz","ms"],Ml={};function H4(e,t){const s=Ml[t];if(s)return s;let n=Je(t);if(n!=="filter"&&n in e)return Ml[t]=n;n=jn(n);for(let i=0;i<Rd.length;i++){const o=Rd[i]+n;if(o in e)return Ml[t]=o}return t}const wd="http://www.w3.org/1999/xlink";function Md(e,t,s,n,i,o=Wp(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(wd,t.slice(6,t.length)):e.setAttributeNS(wd,t,s):s==null||o&&!f1(s)?e.removeAttribute(t):e.setAttribute(t,o?"":es(s)?String(s):s)}function Od(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?ud(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=s==null?e.type==="checkbox"?"on":"":String(s);(a!==l||!("_value"in e))&&(e.value=l),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=f1(s):s==null&&a==="string"?(s="",r=!0):a==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(i||t)}function gn(e,t,s,n){e.addEventListener(t,s,n)}function G4(e,t,s,n){e.removeEventListener(t,s,n)}const bd=Symbol("_vei");function B4(e,t,s,n,i=null){const o=e[bd]||(e[bd]={}),r=o[t];if(n&&r)r.value=n;else{const[a,l]=j4(t);if(n){const c=o[t]=z4(n,i);gn(e,a,c,l)}else r&&(G4(e,a,r,l),o[t]=void 0)}}const Ld=/(?:Once|Passive|Capture)$/;function j4(e){let t;if(Ld.test(e)){t={};let n;for(;n=e.match(Ld);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ts(e.slice(2)),t]}let Ol=0;const q4=Promise.resolve(),K4=()=>Ol||(q4.then(()=>Ol=0),Ol=Date.now());function z4(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;_s(Q4(n,s.value),t,5,[n])};return s.value=e,s.attached=K4(),s}function Q4(e,t){if(he(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Ad=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xd=(e,t,s,n,i,o)=>{const r=i==="svg";t==="class"?D4(e,n,r):t==="style"?$4(e,s,n):Gn(t)?xa(t)||B4(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):W4(e,t,n,r))?(Od(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Md(e,t,n,r,o,t!=="value")):e._isVueCE&&(Z4(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!be(n)))?Od(e,Je(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Md(e,t,n,r))};function W4(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ad(t)&&we(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ad(t)&&be(s)?!1:t in e}function Z4(e,t){const s=e._def.props;if(!s)return!1;const n=Je(t);return Array.isArray(s)?s.some(i=>Je(i)===n):Object.keys(s).some(i=>Je(i)===n)}const kd={};function Di(e,t,s){let n=Te(e,t);tr(n)&&(n=Ve({},n,t));class i extends Qr{constructor(r){super(n,r,s)}}return i.def=n,i}const Y4=(e,t)=>Di(e,t,Jd),J4=typeof HTMLElement<"u"?HTMLElement:class{};class Qr extends J4{constructor(t,s={},n=Ll){super(),this._def=t,this._props=s,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Ll?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Ve({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof Qr){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,at(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const s of t)this._setAttr(s.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:r}=n;let a;if(o&&!he(o))for(const l in o){const c=o[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=or(this._props[l])),(a||(a=Object.create(null)))[Je(l)]=!0)}this._numberProps=a,this._resolveProps(n),this.shadowRoot&&this._applyStyles(r),this._mount(n)},s=this._def.__asyncLoader;s?this._pendingResolve=s().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const n in s)Qe(this,n)||Object.defineProperty(this,n,{get:()=>N(s[n])})}_resolveProps(t){const{props:s}=t,n=he(s)?s:Object.keys(s||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(Je))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const s=this.hasAttribute(t);let n=s?this.getAttribute(t):kd;const i=Je(t);s&&this._numberProps&&this._numberProps[i]&&(n=or(n)),this._setProp(i,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,s,n=!0,i=!1){if(s!==this._props[t]&&(this._dirty=!0,s===kd?delete this._props[t]:(this._props[t]=s,t==="key"&&this._app&&(this._app._ceVNode.key=s)),i&&this._instance&&this._update(),n)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),s===!0?this.setAttribute(ts(t),""):typeof s=="string"||typeof s=="number"?this.setAttribute(ts(t),s+""):s||this.removeAttribute(ts(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Yd(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const s=Ie(this._def,Ve(t,this._props));return this._instance||(s.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const i=(o,r)=>{this.dispatchEvent(new CustomEvent(o,tr(r[0])?Ve({detail:r},r[0]):{detail:r}))};n.emit=(o,...r)=>{i(o,r),ts(o)!==o&&i(ts(o),r)},this._setParent()}),s}_applyStyles(t,s,n){if(!t)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const i=this._nonce,o=this.shadowRoot,r=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(o);let a=null;for(let l=t.length-1;l>=0;l--){const c=document.createElement("style");i&&c.setAttribute("nonce",i),c.textContent=t[l],o.insertBefore(c,a||r),a=c,l===0&&(n||this._styleAnchors.set(this._def,c),s&&this._styleAnchors.set(s,c))}}_getStyleAnchor(t){if(!t)return null;const s=this._styleAnchors.get(t);return s&&s.parentNode===this.shadowRoot?s:(s&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let s=0;s<t.childNodes.length;s++){const n=t.childNodes[s];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const t=this._slots={};let s;for(;s=this.firstChild;){const n=s.nodeType===1&&s.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(s),this.removeChild(s)}}_renderSlots(){const t=this._getSlots(),s=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const i=t[n],o=i.getAttribute("name")||"default",r=this._slots[o],a=i.parentNode;if(r)for(const l of r){if(s&&l.nodeType===1){const c=s+"-s",u=document.createTreeWalker(l,1);l.setAttribute(c,"");let d;for(;d=u.nextNode();)d.setAttribute(c,"")}a.insertBefore(l,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const s=new Set;for(const n of t){const i=n.querySelectorAll("slot");for(let o=0;o<i.length;o++)s.add(i[o])}return Array.from(s)}_injectChildStyle(t,s){this._applyStyles(t.styles,t,s)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}function Ud(e){const t=Xt(),s=t&&t.ce;return s||null}function X4(){const e=Ud();return e&&e.shadowRoot}function e6(e="$style"){{const t=Xt();if(!t)return He;const s=t.type.__cssModules;if(!s)return He;const n=s[e];return n||He}}const Nd=new WeakMap,Dd=new WeakMap,Wr=Symbol("_moveCb"),Pd=Symbol("_enterCb"),t6=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:Ve({},pd,{tag:String,moveClass:String}),setup(e,{slots:t}){const s=Xt(),n=Ya();let i,o;return Ar(()=>{if(!i.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!o6(i[0].el,s.vnode.el,r)){i=[];return}i.forEach(s6),i.forEach(n6);const a=i.filter(i6);Rl(s.vnode.el),a.forEach(l=>{const c=l.el,u=c.style;qs(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Wr]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[Wr]=null,Ln(c,r))};c.addEventListener("transitionend",d)}),i=[]}),()=>{const r=Ge(e),a=_d(r);let l=r.tag||Ne;if(i=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(i.push(u),ln(u,Oi(u,a,n,s)),Nd.set(u,Vd(u.el)))}o=t.default?Ir(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&ln(u,Oi(u,a,n,s))}return Ie(l,null,o)}}});function s6(e){const t=e.el;t[Wr]&&t[Wr](),t[Pd]&&t[Pd]()}function n6(e){Dd.set(e,Vd(e.el))}function i6(e){const t=Nd.get(e),s=Dd.get(e),n=t.left-s.left,i=t.top-s.top;if(n||i){const o=e.el,r=o.style,a=o.getBoundingClientRect();let l=1,c=1;return o.offsetWidth&&(l=a.width/o.offsetWidth),o.offsetHeight&&(c=a.height/o.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(l-1)<.01&&(l=1),Math.abs(c-1)<.01&&(c=1),r.transform=r.webkitTransform=`translate(${n/l}px,${i/c}px)`,r.transitionDuration="0s",e}}function Vd(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function o6(e,t,s){const n=e.cloneNode(),i=e[Ni];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),s.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(n);const{hasTransform:r}=vd(n);return o.removeChild(n),r}const An=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?s=>Si(t,s):t};function r6(e){e.target.composing=!0}function Fd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const vs=Symbol("_assign");function $d(e,t,s){return t&&(e=e.trim()),s&&(e=ir(e)),e}const wo={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[vs]=An(i);const o=n||i.props&&i.props.type==="number";gn(e,t?"change":"input",r=>{r.target.composing||e[vs]($d(e.value,s,o))}),(s||o)&&gn(e,"change",()=>{e.value=$d(e.value,s,o)}),t||(gn(e,"compositionstart",r6),gn(e,"compositionend",Fd),gn(e,"change",Fd))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:o}},r){if(e[vs]=An(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?ir(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===l)||(e.value=l))}},Mo={deep:!0,created(e,t,s){e[vs]=An(s),gn(e,"change",()=>{const n=e._modelValue,i=Pi(e),o=e.checked,r=e[vs];if(he(n)){const a=ar(n,i),l=a!==-1;if(o&&!l)r(n.concat(i));else if(!o&&l){const c=[...n];c.splice(a,1),r(c)}}else if(Bn(n)){const a=new Set(n);o?a.add(i):a.delete(i),r(a)}else r(jd(e,o))})},mounted:Hd,beforeUpdate(e,t,s){e[vs]=An(s),Hd(e,t,s)}};function Hd(e,{value:t,oldValue:s},n){e._modelValue=t;let i;if(he(t))i=ar(t,n.props.value)>-1;else if(Bn(t))i=t.has(n.props.value);else{if(t===s)return;i=tn(t,jd(e,!0))}e.checked!==i&&(e.checked=i)}const bl={created(e,{value:t},s){e.checked=tn(t,s.props.value),e[vs]=An(s),gn(e,"change",()=>{e[vs](Pi(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[vs]=An(n),t!==s&&(e.checked=tn(t,n.props.value))}},Gd={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=Bn(t);gn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>s?ir(Pi(r)):Pi(r));e[vs](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,at(()=>{e._assigning=!1})}),e[vs]=An(n)},mounted(e,{value:t}){Bd(e,t)},beforeUpdate(e,t,s){e[vs]=An(s)},updated(e,{value:t}){e._assigning||Bd(e,t)}};function Bd(e,t){const s=e.multiple,n=he(t);if(!(s&&!n&&!Bn(t))){for(let i=0,o=e.options.length;i<o;i++){const r=e.options[i],a=Pi(r);if(s)if(n){const l=typeof a;l==="string"||l==="number"?r.selected=t.some(c=>String(c)===String(a)):r.selected=ar(t,a)>-1}else r.selected=t.has(a);else if(tn(Pi(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Pi(e){return"_value"in e?e._value:e.value}function jd(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const qd={created(e,t,s){Zr(e,t,s,null,"created")},mounted(e,t,s){Zr(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){Zr(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){Zr(e,t,s,n,"updated")}};function Kd(e,t){switch(e){case"SELECT":return Gd;case"TEXTAREA":return wo;default:switch(t){case"checkbox":return Mo;case"radio":return bl;default:return wo}}}function Zr(e,t,s,n,i){const r=Kd(e.tagName,s.props&&s.props.type)[i];r&&r(e,t,s,n)}function a6(){wo.getSSRProps=({value:e})=>({value:e}),bl.getSSRProps=({value:e},t)=>{if(t.props&&tn(t.props.value,e))return{checked:!0}},Mo.getSSRProps=({value:e},t)=>{if(he(e)){if(t.props&&ar(e,t.props.value)>-1)return{checked:!0}}else if(Bn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},qd.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const s=Kd(t.type.toUpperCase(),t.props&&t.props.type);if(s.getSSRProps)return s.getSSRProps(e,t)}}const l6=["ctrl","shift","alt","meta"],c6={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>l6.some(s=>e[`${s}Key`]&&!t.includes(s))},Cs=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(i,...o)=>{for(let r=0;r<t.length;r++){const a=c6[t[r]];if(a&&a(i,t))return}return e(i,...o)})},u6={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},d6=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=i=>{if(!("key"in i))return;const o=ts(i.key);if(t.some(r=>r===o||u6[r]===o))return e(i)})},zd=Ve({patchProp:xd},fd);let Oo,Qd=!1;function Wd(){return Oo||(Oo=Fu(zd))}function Zd(){return Oo=Qd?Oo:$u(zd),Qd=!0,Oo}const Yd=(...e)=>{Wd().render(...e)},f6=(...e)=>{Zd().hydrate(...e)},Ll=(...e)=>{const t=Wd().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=ef(n);if(!i)return;const o=t._component;!we(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,Xd(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t},Jd=(...e)=>{const t=Zd().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=ef(n);if(i)return s(i,!0,Xd(i))},t};function Xd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ef(e){return be(e)?document.querySelector(e):e}let tf=!1;const h6=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:iu,BaseTransitionPropsValidators:Ja,Comment:yt,DeprecationTypes:A4,EffectScope:Da,ErrorCodes:j5,ErrorTypeStrings:R4,Fragment:Ne,KeepAlive:v3,ReactiveEffect:Xi,Static:Jn,Suspense:r4,Teleport:s3,Text:On,TrackOpTypes:k5,Transition:Tl,TransitionGroup:t6,TriggerOpTypes:U5,VueElement:Qr,assertNumber:B5,callWithAsyncErrorHandling:_s,callWithErrorHandling:zn,camelize:Je,capitalize:jn,cloneVNode:js,compatUtils:L4,computed:me,createApp:Ll,createBlock:xe,createCommentVNode:de,createElementBlock:D,createElementVNode:y,createHydrationRenderer:$u,createPropsRestProxy:P3,createRenderer:Fu,createSSRApp:Jd,createSlots:T3,createStaticVNode:$r,createTextVNode:So,createVNode:Ie,customRef:P1,defineAsyncComponent:E3,defineComponent:Te,defineCustomElement:Di,defineEmits:M3,defineExpose:O3,defineModel:A3,defineOptions:b3,defineProps:w3,defineSSRCustomElement:Y4,defineSlots:L3,devtools:w4,effect:t5,effectScope:Jp,getCurrentInstance:Xt,getCurrentScope:g1,getCurrentWatcher:N5,getTransitionRawChildren:Ir,guardReactiveProps:Yu,h:rd,handleError:Qn,hasInjectionContext:Y5,hydrate:f6,hydrateOnIdle:f3,hydrateOnInteraction:_3,hydrateOnMediaQuery:g3,hydrateOnVisible:p3,initCustomFormatter:S4,initDirectivesForSSR:()=>{tf||(tf=!0,a6(),P4())},inject:Wn,isMemoSame:ad,isProxy:ro,isReactive:rn,isReadonly:$s,isRef:ht,isRuntimeOnly:m4,isShallow:ss,isVNode:fn,markRaw:U1,mergeDefaults:N3,mergeModels:D3,mergeProps:Ju,nextTick:at,nodeOps:fd,normalizeClass:Fe,normalizeProps:$p,normalizeStyle:rt,onActivated:du,onBeforeMount:sl,onBeforeUnmount:Mn,onBeforeUpdate:nl,onDeactivated:fu,onErrorCaptured:mu,onMounted:lt,onRenderTracked:_u,onRenderTriggered:gu,onScopeDispose:Xp,onServerPrefetch:pu,onUnmounted:Rt,onUpdated:Ar,onWatcherCleanup:F1,openBlock:R,patchProp:xd,popScopeId:W5,provide:yr,proxyRefs:Ka,pushScopeId:Q5,queuePostFlushCb:ao,reactive:on,readonly:oo,ref:U,registerRuntimeCompiler:sd,render:Yd,renderList:Lt,renderSlot:dn,resolveComponent:ve,resolveDirective:S3,resolveDynamicComponent:xr,resolveFilter:b4,resolveTransitionHooks:Oi,setBlockTracking:yo,setDevtoolsHook:M4,setTransitionHooks:ln,shallowReactive:k1,shallowReadonly:y5,shallowRef:N1,ssrContextKey:K1,ssrUtils:O4,stop:s5,toDisplayString:re,toHandlerKey:yi,toHandlers:I3,toRaw:Ge,toRef:L5,toRefs:M5,toValue:I5,transformVNodeArgs:f4,triggerRef:T5,unref:N,useAttrs:U3,useCssModule:e6,useCssVars:V4,useHost:Ud,useId:i3,useModel:K3,useSSRContext:z1,useShadowRoot:X4,useSlots:k3,useTemplateRef:o3,useTransitionState:Ya,vModelCheckbox:Mo,vModelDynamic:qd,vModelRadio:bl,vModelSelect:Gd,vModelText:wo,vShow:Ks,version:ld,warn:I4,watch:cs,watchEffect:J5,watchPostEffect:X5,watchSyncEffect:Q1,withAsyncContext:V3,withCtx:pt,withDefaults:x3,withDirectives:ms,withKeys:d6,withMemo:T4,withModifiers:Cs,withScopeId:Z5},Symbol.toStringTag,{value:"Module"}));/**
|
|
320
308
|
* @vue/compiler-core v3.5.30
|
|
321
309
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
322
310
|
* @license MIT
|
|
323
|
-
**/const Mr=Symbol(""),Or=Symbol(""),Ml=Symbol(""),Wo=Symbol(""),Jd=Symbol(""),ti=Symbol(""),Xd=Symbol(""),e2=Symbol(""),Ol=Symbol(""),bl=Symbol(""),br=Symbol(""),Ll=Symbol(""),t2=Symbol(""),Al=Symbol(""),xl=Symbol(""),kl=Symbol(""),Ul=Symbol(""),Nl=Symbol(""),Dl=Symbol(""),s2=Symbol(""),n2=Symbol(""),Qo=Symbol(""),Yo=Symbol(""),Pl=Symbol(""),Vl=Symbol(""),Lr=Symbol(""),Ar=Symbol(""),$l=Symbol(""),Fl=Symbol(""),_6=Symbol(""),Hl=Symbol(""),Jo=Symbol(""),m6=Symbol(""),E6=Symbol(""),Gl=Symbol(""),v6=Symbol(""),C6=Symbol(""),Bl=Symbol(""),i2=Symbol(""),$i={[Mr]:"Fragment",[Or]:"Teleport",[Ml]:"Suspense",[Wo]:"KeepAlive",[Jd]:"BaseTransition",[ti]:"openBlock",[Xd]:"createBlock",[e2]:"createElementBlock",[Ol]:"createVNode",[bl]:"createElementVNode",[br]:"createCommentVNode",[Ll]:"createTextVNode",[t2]:"createStaticVNode",[Al]:"resolveComponent",[xl]:"resolveDynamicComponent",[kl]:"resolveDirective",[Ul]:"resolveFilter",[Nl]:"withDirectives",[Dl]:"renderList",[s2]:"renderSlot",[n2]:"createSlots",[Qo]:"toDisplayString",[Yo]:"mergeProps",[Pl]:"normalizeClass",[Vl]:"normalizeStyle",[Lr]:"normalizeProps",[Ar]:"guardReactiveProps",[$l]:"toHandlers",[Fl]:"camelize",[_6]:"capitalize",[Hl]:"toHandlerKey",[Jo]:"setBlockTracking",[m6]:"pushScopeId",[E6]:"popScopeId",[Gl]:"withCtx",[v6]:"unref",[C6]:"isRef",[Bl]:"withMemo",[i2]:"isMemoSame"};function y6(e){Object.getOwnPropertySymbols(e).forEach(t=>{$i[t]=e[t]})}const cs={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function S6(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:cs}}function xr(e,t,s,n,i,r,o,a=!1,l=!1,c=!1,u=cs){return e&&(a?(e.helper(ti),e.helper(Gi(e.inSSR,c))):e.helper(Hi(e.inSSR,c)),o&&e.helper(Nl)),{type:13,tag:t,props:s,children:n,patchFlag:i,dynamicProps:r,directives:o,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function si(e,t=cs){return{type:17,loc:t,elements:e}}function Cs(e,t=cs){return{type:15,loc:t,properties:e}}function It(e,t){return{type:16,loc:cs,key:be(e)?Ue(e,!0):e,value:t}}function Ue(e,t=!1,s=cs,n=0){return{type:4,loc:s,content:e,isStatic:t,constType:t?3:n}}function Ms(e,t=cs){return{type:8,loc:t,children:e}}function bt(e,t=[],s=cs){return{type:14,loc:s,callee:e,arguments:t}}function Fi(e,t=void 0,s=!1,n=!1,i=cs){return{type:18,params:e,returns:t,newline:s,isSlot:n,loc:i}}function jl(e,t,s,n=!0){return{type:19,test:e,consequent:t,alternate:s,newline:n,loc:cs}}function T6(e,t,s=!1,n=!1){return{type:20,index:e,value:t,needPauseTracking:s,inVOnce:n,needArraySpread:!1,loc:cs}}function I6(e){return{type:21,body:e,loc:cs}}function Hi(e,t){return e||t?Ol:bl}function Gi(e,t){return e||t?Xd:e2}function Kl(e,{helper:t,removeHelper:s,inSSR:n}){e.isBlock||(e.isBlock=!0,s(Hi(n,e.isComponent)),t(ti),t(Gi(n,e.isComponent)))}const r2=new Uint8Array([123,123]),o2=new Uint8Array([125,125]);function a2(e){return e>=97&&e<=122||e>=65&&e<=90}function us(e){return e===32||e===10||e===9||e===12||e===13}function An(e){return e===47||e===62||us(e)}function Xo(e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=e.charCodeAt(s);return t}const Kt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class w6{constructor(t,s){this.stack=t,this.cbs=s,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=r2,this.delimiterClose=o2,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=r2,this.delimiterClose=o2}getPos(t){let s=1,n=t+1;const i=this.newlines.length;let r=-1;if(i>100){let o=-1,a=i;for(;o+1<a;){const l=o+a>>>1;this.newlines[l]<t?o=l:a=l}r=o}else for(let o=i-1;o>=0;o--)if(t>this.newlines[o]){r=o;break}return r>=0&&(s=r+2,n=t-this.newlines[r]),{column:n,line:s,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const s=this.index+1-this.delimiterOpen.length;s>this.sectionStart&&this.cbs.ontext(this.sectionStart,s),this.state=3,this.sectionStart=s}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const s=this.sequenceIndex===this.currentSequence.length;if(!(s?An(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!s){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||us(t)){const s=this.index-this.currentSequence.length;if(this.sectionStart<s){const n=this.index;this.index=s,this.cbs.ontext(this.sectionStart,s),this.index=n}this.sectionStart=s+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Kt.TitleEnd||this.currentSequence===Kt.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Kt.Cdata[this.sequenceIndex]?++this.sequenceIndex===Kt.Cdata.length&&(this.state=28,this.currentSequence=Kt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);if(s===10&&this.newlines.push(this.index),s===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Kt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,s){this.enterRCDATA(t,s),this.state=31}enterRCDATA(t,s){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=s}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):a2(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){An(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(An(t)){const s=this.buffer.slice(this.sectionStart,this.index);s!=="template"&&this.enterRCDATA(Xo("</"+s),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){us(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=a2(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||us(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):us(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):us(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||An(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||An(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||An(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||An(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||An(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):us(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):us(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,s){(t===s||this.fastForwardTo(s))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(s===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){us(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Kt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Kt.ScriptEnd[3]?this.startSpecial(Kt.ScriptEnd,4):t===Kt.StyleEnd[3]?this.startSpecial(Kt.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Kt.TitleEnd[3]?this.startSpecial(Kt.TitleEnd,4):t===Kt.TextareaEnd[3]?this.startSpecial(Kt.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);switch(s===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(s);break}case 2:{this.stateInterpolationOpen(s);break}case 3:{this.stateInterpolation(s);break}case 4:{this.stateInterpolationClose(s);break}case 31:{this.stateSpecialStartSequence(s);break}case 32:{this.stateInRCDATA(s);break}case 26:{this.stateCDATASequence(s);break}case 19:{this.stateInAttrValueDoubleQuotes(s);break}case 12:{this.stateInAttrName(s);break}case 13:{this.stateInDirName(s);break}case 14:{this.stateInDirArg(s);break}case 15:{this.stateInDynamicDirArg(s);break}case 16:{this.stateInDirModifier(s);break}case 28:{this.stateInCommentLike(s);break}case 27:{this.stateInSpecialComment(s);break}case 11:{this.stateBeforeAttrName(s);break}case 6:{this.stateInTagName(s);break}case 34:{this.stateInSFCRootTagName(s);break}case 9:{this.stateInClosingTagName(s);break}case 5:{this.stateBeforeTagName(s);break}case 17:{this.stateAfterAttrName(s);break}case 20:{this.stateInAttrValueSingleQuotes(s);break}case 18:{this.stateBeforeAttrValue(s);break}case 8:{this.stateBeforeClosingTagName(s);break}case 10:{this.stateAfterClosingTagName(s);break}case 29:{this.stateBeforeSpecialS(s);break}case 30:{this.stateBeforeSpecialT(s);break}case 21:{this.stateInAttrValueNoQuotes(s);break}case 7:{this.stateInSelfClosingTag(s);break}case 23:{this.stateInDeclaration(s);break}case 22:{this.stateBeforeDeclaration(s);break}case 25:{this.stateBeforeComment(s);break}case 24:{this.stateInProcessingInstruction(s);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Kt.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,s){}}function l2(e,{compatConfig:t}){const s=t&&t[e];return e==="MODE"?s||3:s}function ni(e,t){const s=l2("MODE",t),n=l2(e,t);return s===3?n===!0:n!==!1}function kr(e,t,s,...n){return ni(e,t)}function zl(e){throw e}function c2(e){}function rt(e,t,s,n){const i=`https://vuejs.org/error-reference/#compiler-${e}`,r=new SyntaxError(String(i));return r.code=e,r.loc=t,r}const is=e=>e.type===4&&e.isStatic;function u2(e){switch(e){case"Teleport":case"teleport":return Or;case"Suspense":case"suspense":return Ml;case"KeepAlive":case"keep-alive":return Wo;case"BaseTransition":case"base-transition":return Jd}}const R6=/^$|^\d|[^\$\w\xA0-\uFFFF]/,ql=e=>!R6.test(e),d2=/[A-Za-z_$\xA0-\uFFFF]/,M6=/[\.\?\w$\xA0-\uFFFF]/,O6=/\s+[.[]\s*|\s*[.[]\s+/g,f2=e=>e.type===4?e.content:e.loc.source,h2=e=>{const t=f2(e).trim().replace(O6,a=>a.trim());let s=0,n=[],i=0,r=0,o=null;for(let a=0;a<t.length;a++){const l=t.charAt(a);switch(s){case 0:if(l==="[")n.push(s),s=1,i++;else if(l==="(")n.push(s),s=2,r++;else if(!(a===0?d2:M6).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(n.push(s),s=3,o=l):l==="["?i++:l==="]"&&(--i||(s=n.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")n.push(s),s=3,o=l;else if(l==="(")r++;else if(l===")"){if(a===t.length-1)return!1;--r||(s=n.pop())}break;case 3:l===o&&(s=n.pop(),o=null);break}}return!i&&!r},b6=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,L6=e=>b6.test(f2(e));function ys(e,t,s=!1){for(let n=0;n<e.props.length;n++){const i=e.props[n];if(i.type===7&&(s||i.exp)&&(be(t)?i.name===t:t.test(i.name)))return i}}function ea(e,t,s=!1,n=!1){for(let i=0;i<e.props.length;i++){const r=e.props[i];if(r.type===6){if(s)continue;if(r.name===t&&(r.value||n))return r}else if(r.name==="bind"&&(r.exp||n)&&ii(r.arg,t))return r}}function ii(e,t){return!!(e&&is(e)&&e.content===t)}function A6(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Zl(e){return e.type===5||e.type===2}function p2(e){return e.type===7&&e.name==="pre"}function x6(e){return e.type===7&&e.name==="slot"}function ta(e){return e.type===1&&e.tagType===3}function sa(e){return e.type===1&&e.tagType===2}const k6=new Set([Lr,Ar]);function g2(e,t=[]){if(e&&!be(e)&&e.type===14){const s=e.callee;if(!be(s)&&k6.has(s))return g2(e.arguments[0],t.concat(e))}return[e,t]}function na(e,t,s){let n,i=e.type===13?e.props:e.arguments[2],r=[],o;if(i&&!be(i)&&i.type===14){const a=g2(i);i=a[0],r=a[1],o=r[r.length-1]}if(i==null||be(i))n=Cs([t]);else if(i.type===14){const a=i.arguments[0];!be(a)&&a.type===15?_2(t,a)||a.properties.unshift(t):i.callee===$l?n=bt(s.helper(Yo),[Cs([t]),i]):i.arguments.unshift(Cs([t])),!n&&(n=i)}else i.type===15?(_2(t,i)||i.properties.unshift(t),n=i):(n=bt(s.helper(Yo),[Cs([t]),i]),o&&o.callee===Ar&&(o=r[r.length-2]));e.type===13?o?o.arguments[0]=n:e.props=n:o?o.arguments[0]=n:e.arguments[2]=n}function _2(e,t){let s=!1;if(e.key.type===4){const n=e.key.content;s=t.properties.some(i=>i.key.type===4&&i.key.content===n)}return s}function Ur(e,t){return`_${t}_${e.replace(/[^\w]/g,(s,n)=>s==="-"?"_":e.charCodeAt(n).toString())}`}function U6(e){return e.type===14&&e.callee===Bl?e.arguments[1].returns:e}const N6=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function m2(e){for(let t=0;t<e.length;t++)if(!us(e.charCodeAt(t)))return!1;return!0}function Wl(e){return e.type===2&&m2(e.content)||e.type===12&&Wl(e.content)}function E2(e){return e.type===3||Wl(e)}const v2={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:vi,isPreTag:vi,isIgnoreNewlineTag:vi,isCustomElement:vi,onError:zl,onWarn:c2,comments:!1,prefixIdentifiers:!1};let Ze=v2,Nr=null,hn="",zt=null,Ge=null,rs="",pn=-1,ri=-1,Ql=0,xn=!1,Yl=null;const lt=[],ht=new w6(lt,{onerr:gn,ontext(e,t){ia(Vt(e,t),e,t)},ontextentity(e,t,s){ia(e,t,s)},oninterpolation(e,t){if(xn)return ia(Vt(e,t),e,t);let s=e+ht.delimiterOpen.length,n=t-ht.delimiterClose.length;for(;us(hn.charCodeAt(s));)s++;for(;us(hn.charCodeAt(n-1));)n--;let i=Vt(s,n);i.includes("&")&&(i=Ze.decodeEntities(i,!1)),Jl({type:5,content:oa(i,!1,vt(s,n)),loc:vt(e,t)})},onopentagname(e,t){const s=Vt(e,t);zt={type:1,tag:s,ns:Ze.getNamespace(s,lt[0],Ze.ns),tagType:0,props:[],children:[],loc:vt(e-1,t),codegenNode:void 0}},onopentagend(e){y2(e)},onclosetag(e,t){const s=Vt(e,t);if(!Ze.isVoidTag(s)){let n=!1;for(let i=0;i<lt.length;i++)if(lt[i].tag.toLowerCase()===s.toLowerCase()){n=!0,i>0&&gn(24,lt[0].loc.start.offset);for(let o=0;o<=i;o++){const a=lt.shift();ra(a,t,o<i)}break}n||gn(23,S2(e,60))}},onselfclosingtag(e){const t=zt.tag;zt.isSelfClosing=!0,y2(e),lt[0]&<[0].tag===t&&ra(lt.shift(),e)},onattribname(e,t){Ge={type:6,name:Vt(e,t),nameLoc:vt(e,t),value:void 0,loc:vt(e)}},ondirname(e,t){const s=Vt(e,t),n=s==="."||s===":"?"bind":s==="@"?"on":s==="#"?"slot":s.slice(2);if(!xn&&n===""&&gn(26,e),xn||n==="")Ge={type:6,name:s,nameLoc:vt(e,t),value:void 0,loc:vt(e)};else if(Ge={type:7,name:n,rawName:s,exp:void 0,arg:void 0,modifiers:s==="."?[Ue("prop")]:[],loc:vt(e)},n==="pre"){xn=ht.inVPre=!0,Yl=zt;const i=zt.props;for(let r=0;r<i.length;r++)i[r].type===7&&(i[r]=K6(i[r]))}},ondirarg(e,t){if(e===t)return;const s=Vt(e,t);if(xn&&!p2(Ge))Ge.name+=s,oi(Ge.nameLoc,t);else{const n=s[0]!=="[";Ge.arg=oa(n?s:s.slice(1,-1),n,vt(e,t),n?3:0)}},ondirmodifier(e,t){const s=Vt(e,t);if(xn&&!p2(Ge))Ge.name+="."+s,oi(Ge.nameLoc,t);else if(Ge.name==="slot"){const n=Ge.arg;n&&(n.content+="."+s,oi(n.loc,t))}else{const n=Ue(s,!0,vt(e,t));Ge.modifiers.push(n)}},onattribdata(e,t){rs+=Vt(e,t),pn<0&&(pn=e),ri=t},onattribentity(e,t,s){rs+=e,pn<0&&(pn=t),ri=s},onattribnameend(e){const t=Ge.loc.start.offset,s=Vt(t,e);Ge.type===7&&(Ge.rawName=s),zt.props.some(n=>(n.type===7?n.rawName:n.name)===s)&&gn(2,t)},onattribend(e,t){if(zt&&Ge){if(oi(Ge.loc,t),e!==0)if(rs.includes("&")&&(rs=Ze.decodeEntities(rs,!0)),Ge.type===6)Ge.name==="class"&&(rs=w2(rs).trim()),e===1&&!rs&&gn(13,t),Ge.value={type:2,content:rs,loc:e===1?vt(pn,ri):vt(pn-1,ri+1)},ht.inSFCRoot&&zt.tag==="template"&&Ge.name==="lang"&&rs&&rs!=="html"&&ht.enterRCDATA(Xo("</template"),0);else{let s=0;Ge.exp=oa(rs,!1,vt(pn,ri),0,s),Ge.name==="for"&&(Ge.forParseResult=P6(Ge.exp));let n=-1;Ge.name==="bind"&&(n=Ge.modifiers.findIndex(i=>i.content==="sync"))>-1&&kr("COMPILER_V_BIND_SYNC",Ze,Ge.loc,Ge.arg.loc.source)&&(Ge.name="model",Ge.modifiers.splice(n,1))}(Ge.type!==7||Ge.name!=="pre")&&zt.props.push(Ge)}rs="",pn=ri=-1},oncomment(e,t){Ze.comments&&Jl({type:3,content:Vt(e,t),loc:vt(e-4,t+3)})},onend(){const e=hn.length;for(let t=0;t<lt.length;t++)ra(lt[t],e-1),gn(24,lt[t].loc.start.offset)},oncdata(e,t){lt[0].ns!==0?ia(Vt(e,t),e,t):gn(1,e-9)},onprocessinginstruction(e){(lt[0]?lt[0].ns:Ze.ns)===0&&gn(21,e-1)}}),C2=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,D6=/^\(|\)$/g;function P6(e){const t=e.loc,s=e.content,n=s.match(N6);if(!n)return;const[,i,r]=n,o=(d,h,p=!1)=>{const _=t.start.offset+h,m=_+d.length;return oa(d,!1,vt(_,m),0,p?1:0)},a={source:o(r.trim(),s.indexOf(r,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(D6,"").trim();const c=i.indexOf(l),u=l.match(C2);if(u){l=l.replace(C2,"").trim();const d=u[1].trim();let h;if(d&&(h=s.indexOf(d,c+l.length),a.key=o(d,h,!0)),u[2]){const p=u[2].trim();p&&(a.index=o(p,s.indexOf(p,a.key?h+d.length:c+l.length),!0))}}return l&&(a.value=o(l,c,!0)),a}function Vt(e,t){return hn.slice(e,t)}function y2(e){ht.inSFCRoot&&(zt.innerLoc=vt(e+1,e+1)),Jl(zt);const{tag:t,ns:s}=zt;s===0&&Ze.isPreTag(t)&&Ql++,Ze.isVoidTag(t)?ra(zt,e):(lt.unshift(zt),(s===1||s===2)&&(ht.inXML=!0)),zt=null}function ia(e,t,s){{const r=lt[0]&<[0].tag;r!=="script"&&r!=="style"&&e.includes("&")&&(e=Ze.decodeEntities(e,!1))}const n=lt[0]||Nr,i=n.children[n.children.length-1];i&&i.type===2?(i.content+=e,oi(i.loc,s)):n.children.push({type:2,content:e,loc:vt(t,s)})}function ra(e,t,s=!1){s?oi(e.loc,S2(t,60)):oi(e.loc,V6(t,62)+1),ht.inSFCRoot&&(e.children.length?e.innerLoc.end=Ve({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Ve({},e.innerLoc.start),e.innerLoc.source=Vt(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:n,ns:i,children:r}=e;if(xn||(n==="slot"?e.tagType=2:T2(e)?e.tagType=3:F6(e)&&(e.tagType=1)),ht.inRCDATA||(e.children=I2(r)),i===0&&Ze.isIgnoreNewlineTag(n)){const o=r[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}i===0&&Ze.isPreTag(n)&&Ql--,Yl===e&&(xn=ht.inVPre=!1,Yl=null),ht.inXML&&(lt[0]?lt[0].ns:Ze.ns)===0&&(ht.inXML=!1);{const o=e.props;if(!ht.inSFCRoot&&ni("COMPILER_NATIVE_TEMPLATE",Ze)&&e.tag==="template"&&!T2(e)){const l=lt[0]||Nr,c=l.children.indexOf(e);l.children.splice(c,1,...e.children)}const a=o.find(l=>l.type===6&&l.name==="inline-template");a&&kr("COMPILER_INLINE_TEMPLATE",Ze,a.loc)&&e.children.length&&(a.value={type:2,content:Vt(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function V6(e,t){let s=e;for(;hn.charCodeAt(s)!==t&&s<hn.length-1;)s++;return s}function S2(e,t){let s=e;for(;hn.charCodeAt(s)!==t&&s>=0;)s--;return s}const $6=new Set(["if","else","else-if","for","slot"]);function T2({tag:e,props:t}){if(e==="template"){for(let s=0;s<t.length;s++)if(t[s].type===7&&$6.has(t[s].name))return!0}return!1}function F6({tag:e,props:t}){if(Ze.isCustomElement(e))return!1;if(e==="component"||H6(e.charCodeAt(0))||u2(e)||Ze.isBuiltInComponent&&Ze.isBuiltInComponent(e)||Ze.isNativeTag&&!Ze.isNativeTag(e))return!0;for(let s=0;s<t.length;s++){const n=t[s];if(n.type===6){if(n.name==="is"&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(kr("COMPILER_IS_ON_ELEMENT",Ze,n.loc))return!0}}else if(n.name==="bind"&&ii(n.arg,"is")&&kr("COMPILER_IS_ON_ELEMENT",Ze,n.loc))return!0}return!1}function H6(e){return e>64&&e<91}const G6=/\r\n/g;function I2(e){const t=Ze.whitespace!=="preserve";let s=!1;for(let n=0;n<e.length;n++){const i=e[n];if(i.type===2)if(Ql)i.content=i.content.replace(G6,`
|
|
324
|
-
`);else if(
|
|
325
|
-
`+" ".repeat(m),0)}return p}function
|
|
326
|
-
`,-1),l())),e.components.length&&(
|
|
327
|
-
`,0),l()),u||i("return "),e.codegenNode?
|
|
328
|
-
`,-1),e.hoists.length)){const d=[
|
|
329
|
-
`,-1)}ng(e.hoists,t),r(),i("return ")}function Xl(e,t,{helper:s,push:n,newline:i,isTS:r}){const o=s(t==="filter"?Ul:t==="component"?Al:kl);for(let a=0;a<e.length;a++){let l=e[a];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),n(`const ${Ur(l,t)} = ${o}(${JSON.stringify(l)}${c?", true":""})${r?"!":""}`),a<e.length-1&&i()}}function ng(e,t){if(!e.length)return;t.pure=!0;const{push:s,newline:n}=t;n();for(let i=0;i<e.length;i++){const r=e[i];r&&(s(`const _hoisted_${i+1} = `),qt(r,t),n())}t.pure=!1}function ec(e,t){const s=e.length>3||!1;t.push("["),s&&t.indent(),Dr(e,t,s),s&&t.deindent(),t.push("]")}function Dr(e,t,s=!1,n=!0){const{push:i,newline:r}=t;for(let o=0;o<e.length;o++){const a=e[o];be(a)?i(a,-3):he(a)?ec(a,t):qt(a,t),o<e.length-1&&(s?(n&&i(","),r()):n&&i(", "))}}function qt(e,t){if(be(e)){t.push(e,-3);return}if(Xt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:qt(e.codegenNode,t);break;case 2:ig(e,t);break;case 4:x2(e,t);break;case 5:rg(e,t);break;case 12:qt(e.codegenNode,t);break;case 8:k2(e,t);break;case 3:ag(e,t);break;case 13:lg(e,t);break;case 14:ug(e,t);break;case 15:dg(e,t);break;case 17:fg(e,t);break;case 18:hg(e,t);break;case 19:pg(e,t);break;case 20:gg(e,t);break;case 21:Dr(e.body,t,!0,!1);break}}function ig(e,t){t.push(JSON.stringify(e.content),-3,e)}function x2(e,t){const{content:s,isStatic:n}=e;t.push(n?JSON.stringify(s):s,-3,e)}function rg(e,t){const{push:s,helper:n,pure:i}=t;i&&s(ca),s(`${n(Qo)}(`),qt(e.content,t),s(")")}function k2(e,t){for(let s=0;s<e.children.length;s++){const n=e.children[s];be(n)?t.push(n,-3):qt(n,t)}}function og(e,t){const{push:s}=t;if(e.type===8)s("["),k2(e,t),s("]");else if(e.isStatic){const n=ql(e.content)?e.content:JSON.stringify(e.content);s(n,-2,e)}else s(`[${e.content}]`,-3,e)}function ag(e,t){const{push:s,helper:n,pure:i}=t;i&&s(ca),s(`${n(br)}(${JSON.stringify(e.content)})`,-3,e)}function lg(e,t){const{push:s,helper:n,pure:i}=t,{tag:r,props:o,children:a,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:h,isComponent:p}=e;let _;l&&(_=String(l)),u&&s(n(Nl)+"("),d&&s(`(${n(ti)}(${h?"true":""}), `),i&&s(ca);const m=d?Gi(t.inSSR,p):Hi(t.inSSR,p);s(n(m)+"(",-2,e),Dr(cg([r,o,a,_,c]),t),s(")"),d&&s(")"),u&&(s(", "),qt(u,t),s(")"))}function cg(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(s=>s||"null")}function ug(e,t){const{push:s,helper:n,pure:i}=t,r=be(e.callee)?e.callee:n(e.callee);i&&s(ca),s(r+"(",-2,e),Dr(e.arguments,t),s(")")}function dg(e,t){const{push:s,indent:n,deindent:i,newline:r}=t,{properties:o}=e;if(!o.length){s("{}",-2,e);return}const a=o.length>1||!1;s(a?"{":"{ "),a&&n();for(let l=0;l<o.length;l++){const{key:c,value:u}=o[l];og(c,t),s(": "),qt(u,t),l<o.length-1&&(s(","),r())}a&&i(),s(a?"}":" }")}function fg(e,t){ec(e.elements,t)}function hg(e,t){const{push:s,indent:n,deindent:i}=t,{params:r,returns:o,body:a,newline:l,isSlot:c}=e;c&&s(`_${$i[Gl]}(`),s("(",-2,e),he(r)?Dr(r,t):r&&qt(r,t),s(") => "),(l||a)&&(s("{"),n()),o?(l&&s("return "),he(o)?ec(o,t):qt(o,t)):a&&qt(a,t),(l||a)&&(i(),s("}")),c&&(e.isNonScopedSlot&&s(", undefined, true"),s(")"))}function pg(e,t){const{test:s,consequent:n,alternate:i,newline:r}=e,{push:o,indent:a,deindent:l,newline:c}=t;if(s.type===4){const d=!ql(s.content);d&&o("("),x2(s,t),d&&o(")")}else o("("),qt(s,t),o(")");r&&a(),t.indentLevel++,r||o(" "),o("? "),qt(n,t),t.indentLevel--,r&&c(),r||o(" "),o(": ");const u=i.type===19;u||t.indentLevel++,qt(i,t),u||t.indentLevel--,r&&l(!0)}function gg(e,t){const{push:s,helper:n,indent:i,deindent:r,newline:o}=t,{needPauseTracking:a,needArraySpread:l}=e;l&&s("[...("),s(`_cache[${e.index}] || (`),a&&(i(),s(`${n(Jo)}(-1`),e.inVOnce&&s(", true"),s("),"),o(),s("(")),s(`_cache[${e.index}] = `),qt(e.value,t),a&&(s(`).cacheIndex = ${e.index},`),o(),s(`${n(Jo)}(1),`),o(),s(`_cache[${e.index}]`),r()),s(")"),l&&s(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const _g=L2(/^(?:if|else|else-if)$/,(e,t,s)=>mg(e,t,s,(n,i,r)=>{const o=s.parent.children;let a=o.indexOf(n),l=0;for(;a-->=0;){const c=o[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(r)n.codegenNode=N2(i,l,s);else{const c=Eg(n.codegenNode);c.alternate=N2(i,l+n.branches.length-1,s)}}}));function mg(e,t,s,n){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;s.onError(rt(28,t.loc)),t.exp=Ue("true",!1,i)}if(t.name==="if"){const i=U2(e,t),r={type:9,loc:j6(e.loc),branches:[i]};if(s.replaceNode(r),n)return n(r,i,!0)}else{const i=s.parent.children;let r=i.indexOf(e);for(;r-->=-1;){const o=i[r];if(o&&E2(o)){s.removeNode(o);continue}if(o&&o.type===9){(t.name==="else-if"||t.name==="else")&&o.branches[o.branches.length-1].condition===void 0&&s.onError(rt(30,e.loc)),s.removeNode();const a=U2(e,t);o.branches.push(a);const l=n&&n(o,a,!1);la(a,s),l&&l(),s.currentNode=null}else s.onError(rt(30,e.loc));break}}}function U2(e,t){const s=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:s&&!ys(e,"for")?e.children:[e],userKey:ea(e,"key"),isTemplateIf:s}}function N2(e,t,s){return e.condition?jl(e.condition,D2(e,t,s),bt(s.helper(br),['""',"true"])):D2(e,t,s)}function D2(e,t,s){const{helper:n}=s,i=It("key",Ue(`${t}`,!1,cs,2)),{children:r}=e,o=r[0];if(r.length!==1||o.type!==1)if(r.length===1&&o.type===11){const l=o.codegenNode;return na(l,i,s),l}else{let l=64;return xr(s,n(Mr),Cs([i]),r,l,void 0,void 0,!0,!1,!1,e.loc)}else{const l=o.codegenNode,c=U6(l);return c.type===13&&Kl(c,s),na(c,i,s),l}}function Eg(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const vg=L2("for",(e,t,s)=>{const{helper:n,removeHelper:i}=s;return Cg(e,t,s,r=>{const o=bt(n(Dl),[r.source]),a=ta(e),l=ys(e,"memo"),c=ea(e,"key",!1,!0);c&&c.type;let u=c&&(c.type===6?c.value?Ue(c.value.content,!0):void 0:c.exp);const d=c&&u?It("key",u):null,h=r.source.type===4&&r.source.constType>0,p=h?64:c?128:256;return r.codegenNode=xr(s,n(Mr),void 0,o,p,void 0,void 0,!0,!h,!1,e.loc),()=>{let _;const{children:m}=r,L=m.length!==1||m[0].type!==1,M=sa(e)?e:a&&e.children.length===1&&sa(e.children[0])?e.children[0]:null;if(M?(_=M.codegenNode,a&&d&&na(_,d,s)):L?_=xr(s,n(Mr),d?Cs([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(_=m[0].codegenNode,a&&d&&na(_,d,s),_.isBlock!==!h&&(_.isBlock?(i(ti),i(Gi(s.inSSR,_.isComponent))):i(Hi(s.inSSR,_.isComponent))),_.isBlock=!h,_.isBlock?(n(ti),n(Gi(s.inSSR,_.isComponent))):n(Hi(s.inSSR,_.isComponent))),l){const E=Fi(tc(r.parseResult,[Ue("_cached")]));E.body=I6([Ms(["const _memo = (",l.exp,")"]),Ms(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${s.helperString(i2)}(_cached, _memo)) return _cached`]),Ms(["const _item = ",_]),Ue("_item.memo = _memo"),Ue("return _item")]),o.arguments.push(E,Ue("_cache"),Ue(String(s.cached.length))),s.cached.push(null)}else o.arguments.push(Fi(tc(r.parseResult),_,!0))}})});function Cg(e,t,s,n){if(!t.exp){s.onError(rt(31,t.loc));return}const i=t.forParseResult;if(!i){s.onError(rt(32,t.loc));return}P2(i);const{addIdentifiers:r,removeIdentifiers:o,scopes:a}=s,{source:l,value:c,key:u,index:d}=i,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:ta(e)?e.children:[e]};s.replaceNode(h),a.vFor++;const p=n&&n(h);return()=>{a.vFor--,p&&p()}}function P2(e,t){e.finalized||(e.finalized=!0)}function tc({value:e,key:t,index:s},n=[]){return yg([e,t,s,...n])}function yg(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((s,n)=>s||Ue("_".repeat(n+1),!1))}const V2=Ue("undefined",!1),Sg=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const s=ys(e,"slot");if(s)return s.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Tg=(e,t,s,n)=>Fi(e,s,!1,!0,s.length?s[0].loc:n);function Ig(e,t,s=Tg){t.helper(Gl);const{children:n,loc:i}=e,r=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=ys(e,"slot",!0);if(l){const{arg:L,exp:M}=l;L&&!is(L)&&(a=!0),r.push(It(L||Ue("default",!0),s(M,void 0,n,i)))}let c=!1,u=!1;const d=[],h=new Set;let p=0;for(let L=0;L<n.length;L++){const M=n[L];let E;if(!ta(M)||!(E=ys(M,"slot",!0))){M.type!==3&&d.push(M);continue}if(l){t.onError(rt(37,E.loc));break}c=!0;const{children:g,loc:v}=M,{arg:C=Ue("default",!0),exp:b,loc:$}=E;let F;is(C)?F=C?C.content:"default":a=!0;const A=ys(M,"for"),U=s(b,A,g,v);let O,T;if(O=ys(M,"if"))a=!0,o.push(jl(O.exp,ua(C,U,p++),V2));else if(T=ys(M,/^else(?:-if)?$/,!0)){let D=L,z;for(;D--&&(z=n[D],!!E2(z)););if(z&&ta(z)&&ys(z,/^(?:else-)?if$/)){let ee=o[o.length-1];for(;ee.alternate.type===19;)ee=ee.alternate;ee.alternate=T.exp?jl(T.exp,ua(C,U,p++),V2):ua(C,U,p++)}else t.onError(rt(30,T.loc))}else if(A){a=!0;const D=A.forParseResult;D?(P2(D),o.push(bt(t.helper(Dl),[D.source,Fi(tc(D),ua(C,U),!0)]))):t.onError(rt(32,A.loc))}else{if(F){if(h.has(F)){t.onError(rt(38,$));continue}h.add(F),F==="default"&&(u=!0)}r.push(It(C,U))}}if(!l){const L=(M,E)=>{const g=s(M,void 0,E,i);return t.compatConfig&&(g.isNonScopedSlot=!0),It("default",g)};c?d.length&&!d.every(Wl)&&(u?t.onError(rt(39,d[0].loc)):r.push(L(void 0,d))):r.push(L(void 0,n))}const _=a?2:da(e.children)?3:1;let m=Cs(r.concat(It("_",Ue(_+"",!1))),i);return o.length&&(m=bt(t.helper(n2),[m,si(o)])),{slots:m,hasDynamicSlots:a}}function ua(e,t,s){const n=[It("name",e),It("fn",t)];return s!=null&&n.push(It("key",Ue(String(s),!0))),Cs(n)}function da(e){for(let t=0;t<e.length;t++){const s=e[t];switch(s.type){case 1:if(s.tagType===2||da(s.children))return!0;break;case 9:if(da(s.branches))return!0;break;case 10:case 11:if(da(s.children))return!0;break}}return!1}const $2=new WeakMap,wg=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:n,props:i}=e,r=e.tagType===1;let o=r?Rg(e,t):`"${n}"`;const a=Be(o)&&o.callee===xl;let l,c,u=0,d,h,p,_=a||o===Or||o===Ml||!r&&(n==="svg"||n==="foreignObject"||n==="math");if(i.length>0){const m=F2(e,t,void 0,r,a);l=m.props,u=m.patchFlag,h=m.dynamicPropNames;const L=m.directives;p=L&&L.length?si(L.map(M=>Og(M,t))):void 0,m.shouldUseBlock&&(_=!0)}if(e.children.length>0)if(o===Wo&&(_=!0,u|=1024),r&&o!==Or&&o!==Wo){const{slots:L,hasDynamicSlots:M}=Ig(e,t);c=L,M&&(u|=1024)}else if(e.children.length===1&&o!==Or){const L=e.children[0],M=L.type,E=M===5||M===8;E&&ds(L,t)===0&&(u|=1),E||M===2?c=L:c=e.children}else c=e.children;h&&h.length&&(d=bg(h)),e.codegenNode=xr(t,o,l,c,u===0?void 0:u,d,p,!!_,!1,r,e.loc)};function Rg(e,t,s=!1){let{tag:n}=e;const i=sc(n),r=ea(e,"is",!1,!0);if(r)if(i||ni("COMPILER_IS_ON_ELEMENT",t)){let a;if(r.type===6?a=r.value&&Ue(r.value.content,!0):(a=r.exp,a||(a=Ue("is",!1,r.arg.loc))),a)return bt(t.helper(xl),[a])}else r.type===6&&r.value.content.startsWith("vue:")&&(n=r.value.content.slice(4));const o=u2(n)||t.isBuiltInComponent(n);return o?(s||t.helper(o),o):(t.helper(Al),t.components.add(n),Ur(n,"component"))}function F2(e,t,s=e.props,n,i,r=!1){const{tag:o,loc:a,children:l}=e;let c=[];const u=[],d=[],h=l.length>0;let p=!1,_=0,m=!1,L=!1,M=!1,E=!1,g=!1,v=!1;const C=[],b=U=>{c.length&&(u.push(Cs(H2(c),a)),c=[]),U&&u.push(U)},$=()=>{t.scopes.vFor>0&&c.push(It(Ue("ref_for",!0),Ue("true")))},F=({key:U,value:O})=>{if(is(U)){const T=U.content,D=Hn(T);if(D&&(!n||i)&&T.toLowerCase()!=="onclick"&&T!=="onUpdate:modelValue"&&!Ys(T)&&(E=!0),D&&Ys(T)&&(v=!0),D&&O.type===14&&(O=O.arguments[0]),O.type===20||(O.type===4||O.type===8)&&ds(O,t)>0)return;T==="ref"?m=!0:T==="class"?L=!0:T==="style"?M=!0:T!=="key"&&!C.includes(T)&&C.push(T),n&&(T==="class"||T==="style")&&!C.includes(T)&&C.push(T)}else g=!0};for(let U=0;U<s.length;U++){const O=s[U];if(O.type===6){const{loc:T,name:D,nameLoc:z,value:ee}=O;let te=!0;if(D==="ref"&&(m=!0,$()),D==="is"&&(sc(o)||ee&&ee.content.startsWith("vue:")||ni("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(It(Ue(D,!0,z),Ue(ee?ee.content:"",te,ee?ee.loc:T)))}else{const{name:T,arg:D,exp:z,loc:ee,modifiers:te}=O,ne=T==="bind",V=T==="on";if(T==="slot"){n||t.onError(rt(40,ee));continue}if(T==="once"||T==="memo"||T==="is"||ne&&ii(D,"is")&&(sc(o)||ni("COMPILER_IS_ON_ELEMENT",t))||V&&r)continue;if((ne&&ii(D,"key")||V&&h&&ii(D,"vue:before-update"))&&(p=!0),ne&&ii(D,"ref")&&$(),!D&&(ne||V)){if(g=!0,z)if(ne){if(b(),ni("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(z);continue}$(),b(),u.push(z)}else b({type:14,loc:ee,callee:t.helper($l),arguments:n?[z]:[z,"true"]});else t.onError(rt(ne?34:35,ee));continue}ne&&te.some(wt=>wt.content==="prop")&&(_|=32);const Ae=t.directiveTransforms[T];if(Ae){const{props:wt,needRuntime:Qe}=Ae(O,e,t);!r&&wt.forEach(F),V&&D&&!is(D)?b(Cs(wt,a)):c.push(...wt),Qe&&(d.push(O),Xt(Qe)&&$2.set(O,Qe))}else U5(T)||(d.push(O),h&&(p=!0))}}let A;if(u.length?(b(),u.length>1?A=bt(t.helper(Yo),u,a):A=u[0]):c.length&&(A=Cs(H2(c),a)),g?_|=16:(L&&!n&&(_|=2),M&&!n&&(_|=4),C.length&&(_|=8),E&&(_|=32)),!p&&(_===0||_===32)&&(m||v||d.length>0)&&(_|=512),!t.inSSR&&A)switch(A.type){case 15:let U=-1,O=-1,T=!1;for(let ee=0;ee<A.properties.length;ee++){const te=A.properties[ee].key;is(te)?te.content==="class"?U=ee:te.content==="style"&&(O=ee):te.isHandlerKey||(T=!0)}const D=A.properties[U],z=A.properties[O];T?A=bt(t.helper(Lr),[A]):(D&&!is(D.value)&&(D.value=bt(t.helper(Pl),[D.value])),z&&(M||z.value.type===4&&z.value.content.trim()[0]==="["||z.value.type===17)&&(z.value=bt(t.helper(Vl),[z.value])));break;case 14:break;default:A=bt(t.helper(Lr),[bt(t.helper(Ar),[A])]);break}return{props:A,directives:d,patchFlag:_,dynamicPropNames:C,shouldUseBlock:p}}function H2(e){const t=new Map,s=[];for(let n=0;n<e.length;n++){const i=e[n];if(i.key.type===8||!i.key.isStatic){s.push(i);continue}const r=i.key.content,o=t.get(r);o?(r==="style"||r==="class"||Hn(r))&&Mg(o,i):(t.set(r,i),s.push(i))}return s}function Mg(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=si([e.value,t.value],e.loc)}function Og(e,t){const s=[],n=$2.get(e);n?s.push(t.helperString(n)):(t.helper(kl),t.directives.add(e.name),s.push(Ur(e.name,"directive")));const{loc:i}=e;if(e.exp&&s.push(e.exp),e.arg&&(e.exp||s.push("void 0"),s.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||s.push("void 0"),s.push("void 0"));const r=Ue("true",!1,i);s.push(Cs(e.modifiers.map(o=>It(o,r)),i))}return si(s,e.loc)}function bg(e){let t="[";for(let s=0,n=e.length;s<n;s++)t+=JSON.stringify(e[s]),s<n-1&&(t+=", ");return t+"]"}function sc(e){return e==="component"||e==="Component"}const Lg=(e,t)=>{if(sa(e)){const{children:s,loc:n}=e,{slotName:i,slotProps:r}=Ag(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;r&&(o[2]=r,a=3),s.length&&(o[3]=Fi([],s,!1,!1,n),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),e.codegenNode=bt(t.helper(s2),o,n)}};function Ag(e,t){let s='"default"',n;const i=[];for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===6)o.value&&(o.name==="name"?s=JSON.stringify(o.value.content):(o.name=Ye(o.name),i.push(o)));else if(o.name==="bind"&&ii(o.arg,"name")){if(o.exp)s=o.exp;else if(o.arg&&o.arg.type===4){const a=Ye(o.arg.content);s=o.exp=Ue(a,!1,o.arg.loc)}}else o.name==="bind"&&o.arg&&is(o.arg)&&(o.arg.content=Ye(o.arg.content)),i.push(o)}if(i.length>0){const{props:r,directives:o}=F2(e,t,i,!1,!1);n=r,o.length&&t.onError(rt(36,o[0].loc))}return{slotName:s,slotProps:n}}const G2=(e,t,s,n)=>{const{loc:i,modifiers:r,arg:o}=e;!e.exp&&!r.length&&s.onError(rt(35,i));let a;if(o.type===4)if(o.isStatic){let d=o.content;d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const h=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?Si(Ye(d)):`on:${d}`;a=Ue(h,!0,o.loc)}else a=Ms([`${s.helperString(Hl)}(`,o,")"]);else a=o,a.children.unshift(`${s.helperString(Hl)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=s.cacheHandlers&&!l&&!s.inVOnce;if(l){const d=h2(l),h=!(d||L6(l)),p=l.content.includes(";");(h||c&&d)&&(l=Ms([`${h?"$event":"(...args)"} => ${p?"{":"("}`,l,p?"}":")"]))}let u={props:[It(a,l||Ue("() => {}",!1,i))]};return n&&(u=n(u)),c&&(u.props[0].value=s.cache(u.props[0].value)),u.props.forEach(d=>d.key.isHandlerKey=!0),u},xg=(e,t,s)=>{const{modifiers:n,loc:i}=e,r=e.arg;let{exp:o}=e;return o&&o.type===4&&!o.content.trim()&&(o=void 0),r.type!==4?(r.children.unshift("("),r.children.push(') || ""')):r.isStatic||(r.content=r.content?`${r.content} || ""`:'""'),n.some(a=>a.content==="camel")&&(r.type===4?r.isStatic?r.content=Ye(r.content):r.content=`${s.helperString(Fl)}(${r.content})`:(r.children.unshift(`${s.helperString(Fl)}(`),r.children.push(")"))),s.inSSR||(n.some(a=>a.content==="prop")&&B2(r,"."),n.some(a=>a.content==="attr")&&B2(r,"^")),{props:[It(r,o)]}},B2=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},kg=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const s=e.children;let n,i=!1;for(let r=0;r<s.length;r++){const o=s[r];if(Zl(o)){i=!0;for(let a=r+1;a<s.length;a++){const l=s[a];if(Zl(l))n||(n=s[r]=Ms([o],o.loc)),n.children.push(" + ",l),s.splice(a,1),a--;else{n=void 0;break}}}}if(!(!i||s.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(r=>r.type===7&&!t.directiveTransforms[r.name])&&e.tag!=="template")))for(let r=0;r<s.length;r++){const o=s[r];if(Zl(o)||o.type===8){const a=[];(o.type!==2||o.content!==" ")&&a.push(o),!t.ssr&&ds(o,t)===0&&a.push("1"),s[r]={type:12,content:o,loc:o.loc,codegenNode:bt(t.helper(Ll),a)}}}}},j2=new WeakSet,Ug=(e,t)=>{if(e.type===1&&ys(e,"once",!0))return j2.has(e)||t.inVOnce||t.inSSR?void 0:(j2.add(e),t.inVOnce=!0,t.helper(Jo),()=>{t.inVOnce=!1;const s=t.currentNode;s.codegenNode&&(s.codegenNode=t.cache(s.codegenNode,!0,!0))})},K2=(e,t,s)=>{const{exp:n,arg:i}=e;if(!n)return s.onError(rt(41,e.loc)),Pr();const r=n.loc.source.trim(),o=n.type===4?n.content:r,a=s.bindingMetadata[r];if(a==="props"||a==="props-aliased")return s.onError(rt(44,n.loc)),Pr();if(a==="literal-const"||a==="setup-const")return s.onError(rt(45,n.loc)),Pr();if(!o.trim()||!h2(n))return s.onError(rt(42,n.loc)),Pr();const l=i||Ue("modelValue",!0),c=i?is(i)?`onUpdate:${Ye(i.content)}`:Ms(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;const d=s.isTS?"($event: any)":"$event";u=Ms([`${d} => ((`,n,") = $event)"]);const h=[It(l,e.exp),It(c,u)];if(e.modifiers.length&&t.tagType===1){const p=e.modifiers.map(m=>m.content).map(m=>(ql(m)?m:JSON.stringify(m))+": true").join(", "),_=i?is(i)?`${i.content}Modifiers`:Ms([i,' + "Modifiers"']):"modelModifiers";h.push(It(_,Ue(`{ ${p} }`,!1,e.loc,2)))}return Pr(h)};function Pr(e=[]){return{props:e}}const Ng=/[\w).+\-_$\]]/,Dg=(e,t)=>{ni("COMPILER_FILTERS",t)&&(e.type===5?fa(e.content,t):e.type===1&&e.props.forEach(s=>{s.type===7&&s.name!=="for"&&s.exp&&fa(s.exp,t)}))};function fa(e,t){if(e.type===4)z2(e,t);else for(let s=0;s<e.children.length;s++){const n=e.children[s];typeof n=="object"&&(n.type===4?z2(n,t):n.type===8?fa(e,t):n.type===5&&fa(n.content,t))}}function z2(e,t){const s=e.content;let n=!1,i=!1,r=!1,o=!1,a=0,l=0,c=0,u=0,d,h,p,_,m=[];for(p=0;p<s.length;p++)if(h=d,d=s.charCodeAt(p),n)d===39&&h!==92&&(n=!1);else if(i)d===34&&h!==92&&(i=!1);else if(r)d===96&&h!==92&&(r=!1);else if(o)d===47&&h!==92&&(o=!1);else if(d===124&&s.charCodeAt(p+1)!==124&&s.charCodeAt(p-1)!==124&&!a&&!l&&!c)_===void 0?(u=p+1,_=s.slice(0,p).trim()):L();else{switch(d){case 34:i=!0;break;case 39:n=!0;break;case 96:r=!0;break;case 40:c++;break;case 41:c--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(d===47){let M=p-1,E;for(;M>=0&&(E=s.charAt(M),E===" ");M--);(!E||!Ng.test(E))&&(o=!0)}}_===void 0?_=s.slice(0,p).trim():u!==0&&L();function L(){m.push(s.slice(u,p).trim()),u=p+1}if(m.length){for(p=0;p<m.length;p++)_=Pg(_,m[p],t);e.content=_,e.ast=void 0}}function Pg(e,t,s){s.helper(Ul);const n=t.indexOf("(");if(n<0)return s.filters.add(t),`${Ur(t,"filter")}(${e})`;{const i=t.slice(0,n),r=t.slice(n+1);return s.filters.add(i),`${Ur(i,"filter")}(${e}${r!==")"?","+r:r}`}}const q2=new WeakSet,Vg=(e,t)=>{if(e.type===1){const s=ys(e,"memo");return!s||q2.has(e)||t.inSSR?void 0:(q2.add(e),()=>{const n=e.codegenNode||t.currentNode.codegenNode;n&&n.type===13&&(e.tagType!==1&&Kl(n,t),e.codegenNode=bt(t.helper(Bl),[s.exp,Fi(void 0,n),"_cache",String(t.cached.length)]),t.cached.push(null))})}},$g=(e,t)=>{if(e.type===1){for(const s of e.props)if(s.type===7&&s.name==="bind"&&(!s.exp||s.exp.type===4&&!s.exp.content.trim())&&s.arg){const n=s.arg;if(n.type!==4||!n.isStatic)t.onError(rt(53,n.loc)),s.exp=Ue("",!0,n.loc);else{const i=Ye(n.content);(d2.test(i[0])||i[0]==="-")&&(s.exp=Ue(i,!1,n.loc))}}}};function Fg(e){return[[$g,Ug,_g,Vg,vg,Dg,Lg,wg,Sg,kg],{on:G2,bind:xg,model:K2}]}function Hg(e,t={}){const s=t.onError||zl,n=t.mode==="module";t.prefixIdentifiers===!0?s(rt(48)):n&&s(rt(49));const i=!1;t.cacheHandlers&&s(rt(50)),t.scopeId&&!n&&s(rt(51));const r=Ve({},t,{prefixIdentifiers:i}),o=be(e)?q6(e,r):e,[a,l]=Fg();return Y6(o,Ve({},r,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Ve({},l,t.directiveTransforms||{})})),tg(o,r)}const Gg=()=>({props:[]});/**
|
|
311
|
+
**/const bo=Symbol(""),Lo=Symbol(""),Al=Symbol(""),Yr=Symbol(""),sf=Symbol(""),si=Symbol(""),nf=Symbol(""),of=Symbol(""),xl=Symbol(""),kl=Symbol(""),Ao=Symbol(""),Ul=Symbol(""),rf=Symbol(""),Nl=Symbol(""),Dl=Symbol(""),Pl=Symbol(""),Vl=Symbol(""),Fl=Symbol(""),$l=Symbol(""),af=Symbol(""),lf=Symbol(""),Jr=Symbol(""),Xr=Symbol(""),Hl=Symbol(""),Gl=Symbol(""),xo=Symbol(""),ko=Symbol(""),Bl=Symbol(""),jl=Symbol(""),p6=Symbol(""),ql=Symbol(""),ea=Symbol(""),g6=Symbol(""),_6=Symbol(""),Kl=Symbol(""),m6=Symbol(""),E6=Symbol(""),zl=Symbol(""),cf=Symbol(""),Vi={[bo]:"Fragment",[Lo]:"Teleport",[Al]:"Suspense",[Yr]:"KeepAlive",[sf]:"BaseTransition",[si]:"openBlock",[nf]:"createBlock",[of]:"createElementBlock",[xl]:"createVNode",[kl]:"createElementVNode",[Ao]:"createCommentVNode",[Ul]:"createTextVNode",[rf]:"createStaticVNode",[Nl]:"resolveComponent",[Dl]:"resolveDynamicComponent",[Pl]:"resolveDirective",[Vl]:"resolveFilter",[Fl]:"withDirectives",[$l]:"renderList",[af]:"renderSlot",[lf]:"createSlots",[Jr]:"toDisplayString",[Xr]:"mergeProps",[Hl]:"normalizeClass",[Gl]:"normalizeStyle",[xo]:"normalizeProps",[ko]:"guardReactiveProps",[Bl]:"toHandlers",[jl]:"camelize",[p6]:"capitalize",[ql]:"toHandlerKey",[ea]:"setBlockTracking",[g6]:"pushScopeId",[_6]:"popScopeId",[Kl]:"withCtx",[m6]:"unref",[E6]:"isRef",[zl]:"withMemo",[cf]:"isMemoSame"};function v6(e){Object.getOwnPropertySymbols(e).forEach(t=>{Vi[t]=e[t]})}const us={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function C6(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:us}}function Uo(e,t,s,n,i,o,r,a=!1,l=!1,c=!1,u=us){return e&&(a?(e.helper(si),e.helper(Hi(e.inSSR,c))):e.helper($i(e.inSSR,c)),r&&e.helper(Fl)),{type:13,tag:t,props:s,children:n,patchFlag:i,dynamicProps:o,directives:r,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function ni(e,t=us){return{type:17,loc:t,elements:e}}function ys(e,t=us){return{type:15,loc:t,properties:e}}function wt(e,t){return{type:16,loc:us,key:be(e)?Ue(e,!0):e,value:t}}function Ue(e,t=!1,s=us,n=0){return{type:4,loc:s,content:e,isStatic:t,constType:t?3:n}}function Os(e,t=us){return{type:8,loc:t,children:e}}function At(e,t=[],s=us){return{type:14,loc:s,callee:e,arguments:t}}function Fi(e,t=void 0,s=!1,n=!1,i=us){return{type:18,params:e,returns:t,newline:s,isSlot:n,loc:i}}function Ql(e,t,s,n=!0){return{type:19,test:e,consequent:t,alternate:s,newline:n,loc:us}}function y6(e,t,s=!1,n=!1){return{type:20,index:e,value:t,needPauseTracking:s,inVOnce:n,needArraySpread:!1,loc:us}}function S6(e){return{type:21,body:e,loc:us}}function $i(e,t){return e||t?xl:kl}function Hi(e,t){return e||t?nf:of}function Wl(e,{helper:t,removeHelper:s,inSSR:n}){e.isBlock||(e.isBlock=!0,s($i(n,e.isComponent)),t(si),t(Hi(n,e.isComponent)))}const uf=new Uint8Array([123,123]),df=new Uint8Array([125,125]);function ff(e){return e>=97&&e<=122||e>=65&&e<=90}function ds(e){return e===32||e===10||e===9||e===12||e===13}function xn(e){return e===47||e===62||ds(e)}function ta(e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=e.charCodeAt(s);return t}const qt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class T6{constructor(t,s){this.stack=t,this.cbs=s,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=uf,this.delimiterClose=df,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=uf,this.delimiterClose=df}getPos(t){let s=1,n=t+1;const i=this.newlines.length;let o=-1;if(i>100){let r=-1,a=i;for(;r+1<a;){const l=r+a>>>1;this.newlines[l]<t?r=l:a=l}o=r}else for(let r=i-1;r>=0;r--)if(t>this.newlines[r]){o=r;break}return o>=0&&(s=o+2,n=t-this.newlines[o]),{column:n,line:s,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const s=this.index+1-this.delimiterOpen.length;s>this.sectionStart&&this.cbs.ontext(this.sectionStart,s),this.state=3,this.sectionStart=s}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const s=this.sequenceIndex===this.currentSequence.length;if(!(s?xn(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!s){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||ds(t)){const s=this.index-this.currentSequence.length;if(this.sectionStart<s){const n=this.index;this.index=s,this.cbs.ontext(this.sectionStart,s),this.index=n}this.sectionStart=s+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===qt.TitleEnd||this.currentSequence===qt.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===qt.Cdata[this.sequenceIndex]?++this.sequenceIndex===qt.Cdata.length&&(this.state=28,this.currentSequence=qt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);if(s===10&&this.newlines.push(this.index),s===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===qt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,s){this.enterRCDATA(t,s),this.state=31}enterRCDATA(t,s){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=s}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):ff(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){xn(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(xn(t)){const s=this.buffer.slice(this.sectionStart,this.index);s!=="template"&&this.enterRCDATA(ta("</"+s),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){ds(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=ff(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ds(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ds(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ds(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||xn(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||xn(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||xn(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||xn(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||xn(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):ds(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):ds(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,s){(t===s||this.fastForwardTo(s))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(s===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){ds(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=qt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===qt.ScriptEnd[3]?this.startSpecial(qt.ScriptEnd,4):t===qt.StyleEnd[3]?this.startSpecial(qt.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===qt.TitleEnd[3]?this.startSpecial(qt.TitleEnd,4):t===qt.TextareaEnd[3]?this.startSpecial(qt.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);switch(s===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(s);break}case 2:{this.stateInterpolationOpen(s);break}case 3:{this.stateInterpolation(s);break}case 4:{this.stateInterpolationClose(s);break}case 31:{this.stateSpecialStartSequence(s);break}case 32:{this.stateInRCDATA(s);break}case 26:{this.stateCDATASequence(s);break}case 19:{this.stateInAttrValueDoubleQuotes(s);break}case 12:{this.stateInAttrName(s);break}case 13:{this.stateInDirName(s);break}case 14:{this.stateInDirArg(s);break}case 15:{this.stateInDynamicDirArg(s);break}case 16:{this.stateInDirModifier(s);break}case 28:{this.stateInCommentLike(s);break}case 27:{this.stateInSpecialComment(s);break}case 11:{this.stateBeforeAttrName(s);break}case 6:{this.stateInTagName(s);break}case 34:{this.stateInSFCRootTagName(s);break}case 9:{this.stateInClosingTagName(s);break}case 5:{this.stateBeforeTagName(s);break}case 17:{this.stateAfterAttrName(s);break}case 20:{this.stateInAttrValueSingleQuotes(s);break}case 18:{this.stateBeforeAttrValue(s);break}case 8:{this.stateBeforeClosingTagName(s);break}case 10:{this.stateAfterClosingTagName(s);break}case 29:{this.stateBeforeSpecialS(s);break}case 30:{this.stateBeforeSpecialT(s);break}case 21:{this.stateInAttrValueNoQuotes(s);break}case 7:{this.stateInSelfClosingTag(s);break}case 23:{this.stateInDeclaration(s);break}case 22:{this.stateBeforeDeclaration(s);break}case 25:{this.stateBeforeComment(s);break}case 24:{this.stateInProcessingInstruction(s);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===qt.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,s){}}function hf(e,{compatConfig:t}){const s=t&&t[e];return e==="MODE"?s||3:s}function ii(e,t){const s=hf("MODE",t),n=hf(e,t);return s===3?n===!0:n!==!1}function No(e,t,s,...n){return ii(e,t)}function Zl(e){throw e}function pf(e){}function ot(e,t,s,n){const i=`https://vuejs.org/error-reference/#compiler-${e}`,o=new SyntaxError(String(i));return o.code=e,o.loc=t,o}const os=e=>e.type===4&&e.isStatic;function gf(e){switch(e){case"Teleport":case"teleport":return Lo;case"Suspense":case"suspense":return Al;case"KeepAlive":case"keep-alive":return Yr;case"BaseTransition":case"base-transition":return sf}}const I6=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Yl=e=>!I6.test(e),_f=/[A-Za-z_$\xA0-\uFFFF]/,R6=/[\.\?\w$\xA0-\uFFFF]/,w6=/\s+[.[]\s*|\s*[.[]\s+/g,mf=e=>e.type===4?e.content:e.loc.source,Ef=e=>{const t=mf(e).trim().replace(w6,a=>a.trim());let s=0,n=[],i=0,o=0,r=null;for(let a=0;a<t.length;a++){const l=t.charAt(a);switch(s){case 0:if(l==="[")n.push(s),s=1,i++;else if(l==="(")n.push(s),s=2,o++;else if(!(a===0?_f:R6).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(n.push(s),s=3,r=l):l==="["?i++:l==="]"&&(--i||(s=n.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")n.push(s),s=3,r=l;else if(l==="(")o++;else if(l===")"){if(a===t.length-1)return!1;--o||(s=n.pop())}break;case 3:l===r&&(s=n.pop(),r=null);break}}return!i&&!o},M6=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,O6=e=>M6.test(mf(e));function Ss(e,t,s=!1){for(let n=0;n<e.props.length;n++){const i=e.props[n];if(i.type===7&&(s||i.exp)&&(be(t)?i.name===t:t.test(i.name)))return i}}function sa(e,t,s=!1,n=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===6){if(s)continue;if(o.name===t&&(o.value||n))return o}else if(o.name==="bind"&&(o.exp||n)&&oi(o.arg,t))return o}}function oi(e,t){return!!(e&&os(e)&&e.content===t)}function b6(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Jl(e){return e.type===5||e.type===2}function vf(e){return e.type===7&&e.name==="pre"}function L6(e){return e.type===7&&e.name==="slot"}function na(e){return e.type===1&&e.tagType===3}function ia(e){return e.type===1&&e.tagType===2}const A6=new Set([xo,ko]);function Cf(e,t=[]){if(e&&!be(e)&&e.type===14){const s=e.callee;if(!be(s)&&A6.has(s))return Cf(e.arguments[0],t.concat(e))}return[e,t]}function oa(e,t,s){let n,i=e.type===13?e.props:e.arguments[2],o=[],r;if(i&&!be(i)&&i.type===14){const a=Cf(i);i=a[0],o=a[1],r=o[o.length-1]}if(i==null||be(i))n=ys([t]);else if(i.type===14){const a=i.arguments[0];!be(a)&&a.type===15?yf(t,a)||a.properties.unshift(t):i.callee===Bl?n=At(s.helper(Xr),[ys([t]),i]):i.arguments.unshift(ys([t])),!n&&(n=i)}else i.type===15?(yf(t,i)||i.properties.unshift(t),n=i):(n=At(s.helper(Xr),[ys([t]),i]),r&&r.callee===ko&&(r=o[o.length-2]));e.type===13?r?r.arguments[0]=n:e.props=n:r?r.arguments[0]=n:e.arguments[2]=n}function yf(e,t){let s=!1;if(e.key.type===4){const n=e.key.content;s=t.properties.some(i=>i.key.type===4&&i.key.content===n)}return s}function Do(e,t){return`_${t}_${e.replace(/[^\w]/g,(s,n)=>s==="-"?"_":e.charCodeAt(n).toString())}`}function x6(e){return e.type===14&&e.callee===zl?e.arguments[1].returns:e}const k6=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Sf(e){for(let t=0;t<e.length;t++)if(!ds(e.charCodeAt(t)))return!1;return!0}function Xl(e){return e.type===2&&Sf(e.content)||e.type===12&&Xl(e.content)}function Tf(e){return e.type===3||Xl(e)}const If={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Ei,isPreTag:Ei,isIgnoreNewlineTag:Ei,isCustomElement:Ei,onError:Zl,onWarn:pf,comments:!1,prefixIdentifiers:!1};let We=If,Po=null,_n="",Kt=null,Be=null,rs="",mn=-1,ri=-1,ec=0,kn=!1,tc=null;const ct=[],gt=new T6(ct,{onerr:En,ontext(e,t){ra(Vt(e,t),e,t)},ontextentity(e,t,s){ra(e,t,s)},oninterpolation(e,t){if(kn)return ra(Vt(e,t),e,t);let s=e+gt.delimiterOpen.length,n=t-gt.delimiterClose.length;for(;ds(_n.charCodeAt(s));)s++;for(;ds(_n.charCodeAt(n-1));)n--;let i=Vt(s,n);i.includes("&")&&(i=We.decodeEntities(i,!1)),sc({type:5,content:la(i,!1,St(s,n)),loc:St(e,t)})},onopentagname(e,t){const s=Vt(e,t);Kt={type:1,tag:s,ns:We.getNamespace(s,ct[0],We.ns),tagType:0,props:[],children:[],loc:St(e-1,t),codegenNode:void 0}},onopentagend(e){wf(e)},onclosetag(e,t){const s=Vt(e,t);if(!We.isVoidTag(s)){let n=!1;for(let i=0;i<ct.length;i++)if(ct[i].tag.toLowerCase()===s.toLowerCase()){n=!0,i>0&&En(24,ct[0].loc.start.offset);for(let r=0;r<=i;r++){const a=ct.shift();aa(a,t,r<i)}break}n||En(23,Mf(e,60))}},onselfclosingtag(e){const t=Kt.tag;Kt.isSelfClosing=!0,wf(e),ct[0]&&ct[0].tag===t&&aa(ct.shift(),e)},onattribname(e,t){Be={type:6,name:Vt(e,t),nameLoc:St(e,t),value:void 0,loc:St(e)}},ondirname(e,t){const s=Vt(e,t),n=s==="."||s===":"?"bind":s==="@"?"on":s==="#"?"slot":s.slice(2);if(!kn&&n===""&&En(26,e),kn||n==="")Be={type:6,name:s,nameLoc:St(e,t),value:void 0,loc:St(e)};else if(Be={type:7,name:n,rawName:s,exp:void 0,arg:void 0,modifiers:s==="."?[Ue("prop")]:[],loc:St(e)},n==="pre"){kn=gt.inVPre=!0,tc=Kt;const i=Kt.props;for(let o=0;o<i.length;o++)i[o].type===7&&(i[o]=B6(i[o]))}},ondirarg(e,t){if(e===t)return;const s=Vt(e,t);if(kn&&!vf(Be))Be.name+=s,ai(Be.nameLoc,t);else{const n=s[0]!=="[";Be.arg=la(n?s:s.slice(1,-1),n,St(e,t),n?3:0)}},ondirmodifier(e,t){const s=Vt(e,t);if(kn&&!vf(Be))Be.name+="."+s,ai(Be.nameLoc,t);else if(Be.name==="slot"){const n=Be.arg;n&&(n.content+="."+s,ai(n.loc,t))}else{const n=Ue(s,!0,St(e,t));Be.modifiers.push(n)}},onattribdata(e,t){rs+=Vt(e,t),mn<0&&(mn=e),ri=t},onattribentity(e,t,s){rs+=e,mn<0&&(mn=t),ri=s},onattribnameend(e){const t=Be.loc.start.offset,s=Vt(t,e);Be.type===7&&(Be.rawName=s),Kt.props.some(n=>(n.type===7?n.rawName:n.name)===s)&&En(2,t)},onattribend(e,t){if(Kt&&Be){if(ai(Be.loc,t),e!==0)if(rs.includes("&")&&(rs=We.decodeEntities(rs,!0)),Be.type===6)Be.name==="class"&&(rs=Lf(rs).trim()),e===1&&!rs&&En(13,t),Be.value={type:2,content:rs,loc:e===1?St(mn,ri):St(mn-1,ri+1)},gt.inSFCRoot&&Kt.tag==="template"&&Be.name==="lang"&&rs&&rs!=="html"&>.enterRCDATA(ta("</template"),0);else{let s=0;Be.exp=la(rs,!1,St(mn,ri),0,s),Be.name==="for"&&(Be.forParseResult=N6(Be.exp));let n=-1;Be.name==="bind"&&(n=Be.modifiers.findIndex(i=>i.content==="sync"))>-1&&No("COMPILER_V_BIND_SYNC",We,Be.loc,Be.arg.loc.source)&&(Be.name="model",Be.modifiers.splice(n,1))}(Be.type!==7||Be.name!=="pre")&&Kt.props.push(Be)}rs="",mn=ri=-1},oncomment(e,t){We.comments&&sc({type:3,content:Vt(e,t),loc:St(e-4,t+3)})},onend(){const e=_n.length;for(let t=0;t<ct.length;t++)aa(ct[t],e-1),En(24,ct[t].loc.start.offset)},oncdata(e,t){ct[0].ns!==0?ra(Vt(e,t),e,t):En(1,e-9)},onprocessinginstruction(e){(ct[0]?ct[0].ns:We.ns)===0&&En(21,e-1)}}),Rf=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,U6=/^\(|\)$/g;function N6(e){const t=e.loc,s=e.content,n=s.match(k6);if(!n)return;const[,i,o]=n,r=(d,h,p=!1)=>{const _=t.start.offset+h,m=_+d.length;return la(d,!1,St(_,m),0,p?1:0)},a={source:r(o.trim(),s.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(U6,"").trim();const c=i.indexOf(l),u=l.match(Rf);if(u){l=l.replace(Rf,"").trim();const d=u[1].trim();let h;if(d&&(h=s.indexOf(d,c+l.length),a.key=r(d,h,!0)),u[2]){const p=u[2].trim();p&&(a.index=r(p,s.indexOf(p,a.key?h+d.length:c+l.length),!0))}}return l&&(a.value=r(l,c,!0)),a}function Vt(e,t){return _n.slice(e,t)}function wf(e){gt.inSFCRoot&&(Kt.innerLoc=St(e+1,e+1)),sc(Kt);const{tag:t,ns:s}=Kt;s===0&&We.isPreTag(t)&&ec++,We.isVoidTag(t)?aa(Kt,e):(ct.unshift(Kt),(s===1||s===2)&&(gt.inXML=!0)),Kt=null}function ra(e,t,s){{const o=ct[0]&&ct[0].tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=We.decodeEntities(e,!1))}const n=ct[0]||Po,i=n.children[n.children.length-1];i&&i.type===2?(i.content+=e,ai(i.loc,s)):n.children.push({type:2,content:e,loc:St(t,s)})}function aa(e,t,s=!1){s?ai(e.loc,Mf(t,60)):ai(e.loc,D6(t,62)+1),gt.inSFCRoot&&(e.children.length?e.innerLoc.end=Ve({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Ve({},e.innerLoc.start),e.innerLoc.source=Vt(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:n,ns:i,children:o}=e;if(kn||(n==="slot"?e.tagType=2:Of(e)?e.tagType=3:V6(e)&&(e.tagType=1)),gt.inRCDATA||(e.children=bf(o)),i===0&&We.isIgnoreNewlineTag(n)){const r=o[0];r&&r.type===2&&(r.content=r.content.replace(/^\r?\n/,""))}i===0&&We.isPreTag(n)&&ec--,tc===e&&(kn=gt.inVPre=!1,tc=null),gt.inXML&&(ct[0]?ct[0].ns:We.ns)===0&&(gt.inXML=!1);{const r=e.props;if(!gt.inSFCRoot&&ii("COMPILER_NATIVE_TEMPLATE",We)&&e.tag==="template"&&!Of(e)){const l=ct[0]||Po,c=l.children.indexOf(e);l.children.splice(c,1,...e.children)}const a=r.find(l=>l.type===6&&l.name==="inline-template");a&&No("COMPILER_INLINE_TEMPLATE",We,a.loc)&&e.children.length&&(a.value={type:2,content:Vt(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function D6(e,t){let s=e;for(;_n.charCodeAt(s)!==t&&s<_n.length-1;)s++;return s}function Mf(e,t){let s=e;for(;_n.charCodeAt(s)!==t&&s>=0;)s--;return s}const P6=new Set(["if","else","else-if","for","slot"]);function Of({tag:e,props:t}){if(e==="template"){for(let s=0;s<t.length;s++)if(t[s].type===7&&P6.has(t[s].name))return!0}return!1}function V6({tag:e,props:t}){if(We.isCustomElement(e))return!1;if(e==="component"||F6(e.charCodeAt(0))||gf(e)||We.isBuiltInComponent&&We.isBuiltInComponent(e)||We.isNativeTag&&!We.isNativeTag(e))return!0;for(let s=0;s<t.length;s++){const n=t[s];if(n.type===6){if(n.name==="is"&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(No("COMPILER_IS_ON_ELEMENT",We,n.loc))return!0}}else if(n.name==="bind"&&oi(n.arg,"is")&&No("COMPILER_IS_ON_ELEMENT",We,n.loc))return!0}return!1}function F6(e){return e>64&&e<91}const $6=/\r\n/g;function bf(e){const t=We.whitespace!=="preserve";let s=!1;for(let n=0;n<e.length;n++){const i=e[n];if(i.type===2)if(ec)i.content=i.content.replace($6,`
|
|
312
|
+
`);else if(Sf(i.content)){const o=e[n-1]&&e[n-1].type,r=e[n+1]&&e[n+1].type;!o||!r||t&&(o===3&&(r===3||r===1)||o===1&&(r===3||r===1&&H6(i.content)))?(s=!0,e[n]=null):i.content=" "}else t&&(i.content=Lf(i.content))}return s?e.filter(Boolean):e}function H6(e){for(let t=0;t<e.length;t++){const s=e.charCodeAt(t);if(s===10||s===13)return!0}return!1}function Lf(e){let t="",s=!1;for(let n=0;n<e.length;n++)ds(e.charCodeAt(n))?s||(t+=" ",s=!0):(t+=e[n],s=!1);return t}function sc(e){(ct[0]||Po).children.push(e)}function St(e,t){return{start:gt.getPos(e),end:t==null?t:gt.getPos(t),source:t==null?t:Vt(e,t)}}function G6(e){return St(e.start.offset,e.end.offset)}function ai(e,t){e.end=gt.getPos(t),e.source=Vt(e.start.offset,t)}function B6(e){const t={type:6,name:e.rawName,nameLoc:St(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const s=e.exp.loc;s.end.offset<e.loc.end.offset&&(s.start.offset--,s.start.column--,s.end.offset++,s.end.column++),t.value={type:2,content:e.exp.content,loc:s}}return t}function la(e,t=!1,s,n=0,i=0){return Ue(e,t,s,n)}function En(e,t,s){We.onError(ot(e,St(t,t)))}function j6(){gt.reset(),Kt=null,Be=null,rs="",mn=-1,ri=-1,ct.length=0}function q6(e,t){if(j6(),_n=e,We=Ve({},If),t){let i;for(i in t)t[i]!=null&&(We[i]=t[i])}gt.mode=We.parseMode==="html"?1:We.parseMode==="sfc"?2:0,gt.inXML=We.ns===1||We.ns===2;const s=t&&t.delimiters;s&&(gt.delimiterOpen=ta(s[0]),gt.delimiterClose=ta(s[1]));const n=Po=C6([],e);return gt.parse(_n),n.loc=St(0,e.length),n.children=bf(n.children),Po=null,n}function K6(e,t){ca(e,void 0,t,!!Af(e))}function Af(e){const t=e.children.filter(s=>s.type!==3);return t.length===1&&t[0].type===1&&!ia(t[0])?t[0]:null}function ca(e,t,s,n=!1,i=!1){const{children:o}=e,r=[];for(let u=0;u<o.length;u++){const d=o[u];if(d.type===1&&d.tagType===0){const h=n?0:fs(d,s);if(h>0){if(h>=2){d.codegenNode.patchFlag=-1,r.push(d);continue}}else{const p=d.codegenNode;if(p.type===13){const _=p.patchFlag;if((_===void 0||_===512||_===1)&&kf(d,s)>=2){const m=Uf(d);m&&(p.props=s.hoist(m))}p.dynamicProps&&(p.dynamicProps=s.hoist(p.dynamicProps))}}}else if(d.type===12&&(n?0:fs(d,s))>=2){d.codegenNode.type===14&&d.codegenNode.arguments.length>0&&d.codegenNode.arguments.push("-1"),r.push(d);continue}if(d.type===1){const h=d.tagType===1;h&&s.scopes.vSlot++,ca(d,e,s,!1,i),h&&s.scopes.vSlot--}else if(d.type===11)ca(d,e,s,d.children.length===1,!0);else if(d.type===9)for(let h=0;h<d.branches.length;h++)ca(d.branches[h],e,s,d.branches[h].children.length===1,i)}let a=!1;if(r.length===o.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&he(e.codegenNode.children))e.codegenNode.children=l(ni(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!he(e.codegenNode.children)&&e.codegenNode.children.type===15){const u=c(e.codegenNode,"default");u&&(u.returns=l(ni(u.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!he(t.codegenNode.children)&&t.codegenNode.children.type===15){const u=Ss(e,"slot",!0),d=u&&u.arg&&c(t.codegenNode,u.arg);d&&(d.returns=l(ni(d.returns)),a=!0)}}if(!a)for(const u of r)u.codegenNode=s.cache(u.codegenNode);function l(u){const d=s.cache(u);return d.needArraySpread=!0,d}function c(u,d){if(u.children&&!he(u.children)&&u.children.type===15){const h=u.children.properties.find(p=>p.key===d||p.key.content===d);return h&&h.value}}r.length&&s.transformHoist&&s.transformHoist(o,s,e)}function fs(e,t){const{constantCache:s}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const n=s.get(e);if(n!==void 0)return n;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let r=3;const a=kf(e,t);if(a===0)return s.set(e,0),0;a<r&&(r=a);for(let l=0;l<e.children.length;l++){const c=fs(e.children[l],t);if(c===0)return s.set(e,0),0;c<r&&(r=c)}if(r>1)for(let l=0;l<e.props.length;l++){const c=e.props[l];if(c.type===7&&c.name==="bind"&&c.exp){const u=fs(c.exp,t);if(u===0)return s.set(e,0),0;u<r&&(r=u)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return s.set(e,0),0;t.removeHelper(si),t.removeHelper(Hi(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper($i(t.inSSR,i.isComponent))}return s.set(e,r),r}else return s.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return fs(e.content,t);case 4:return e.constType;case 8:let o=3;for(let r=0;r<e.children.length;r++){const a=e.children[r];if(be(a)||es(a))continue;const l=fs(a,t);if(l===0)return 0;l<o&&(o=l)}return o;case 20:return 2;default:return 0}}const z6=new Set([Hl,Gl,xo,ko]);function xf(e,t){if(e.type===14&&!be(e.callee)&&z6.has(e.callee)){const s=e.arguments[0];if(s.type===4)return fs(s,t);if(s.type===14)return xf(s,t)}return 0}function kf(e,t){let s=3;const n=Uf(e);if(n&&n.type===15){const{properties:i}=n;for(let o=0;o<i.length;o++){const{key:r,value:a}=i[o],l=fs(r,t);if(l===0)return l;l<s&&(s=l);let c;if(a.type===4?c=fs(a,t):a.type===14?c=xf(a,t):c=0,c===0)return c;c<s&&(s=c)}}return s}function Uf(e){const t=e.codegenNode;if(t.type===13)return t.props}function Q6(e,{filename:t="",prefixIdentifiers:s=!1,hoistStatic:n=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:r=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:c=kt,isCustomElement:u=kt,expressionPlugins:d=[],scopeId:h=null,slotted:p=!0,ssr:_=!1,inSSR:m=!1,ssrCssVars:b="",bindingMetadata:w=He,inline:C=!1,isTS:g=!1,onError:E=Zl,onWarn:v=pf,compatConfig:L}){const F=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),$={filename:t,selfName:F&&jn(Je(F[1])),prefixIdentifiers:s,hoistStatic:n,hmr:i,cacheHandlers:o,nodeTransforms:r,directiveTransforms:a,transformHoist:l,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:d,scopeId:h,slotted:p,ssr:_,inSSR:m,ssrCssVars:b,bindingMetadata:w,inline:C,isTS:g,onError:E,onWarn:v,compatConfig:L,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(A){const k=$.helpers.get(A)||0;return $.helpers.set(A,k+1),A},removeHelper(A){const k=$.helpers.get(A);if(k){const O=k-1;O?$.helpers.set(A,O):$.helpers.delete(A)}},helperString(A){return`_${Vi[$.helper(A)]}`},replaceNode(A){$.parent.children[$.childIndex]=$.currentNode=A},removeNode(A){const k=$.parent.children,O=A?k.indexOf(A):$.currentNode?$.childIndex:-1;!A||A===$.currentNode?($.currentNode=null,$.onNodeRemoved()):$.childIndex>O&&($.childIndex--,$.onNodeRemoved()),$.parent.children.splice(O,1)},onNodeRemoved:kt,addIdentifiers(A){},removeIdentifiers(A){},hoist(A){be(A)&&(A=Ue(A)),$.hoists.push(A);const k=Ue(`_hoisted_${$.hoists.length}`,!1,A.loc,2);return k.hoisted=A,k},cache(A,k=!1,O=!1){const T=y6($.cached.length,A,k,O);return $.cached.push(T),T}};return $.filters=new Set,$}function W6(e,t){const s=Q6(e,t);ua(e,s),t.hoistStatic&&K6(e,s),t.ssr||Z6(e,s),e.helpers=new Set([...s.helpers.keys()]),e.components=[...s.components],e.directives=[...s.directives],e.imports=s.imports,e.hoists=s.hoists,e.temps=s.temps,e.cached=s.cached,e.transformed=!0,e.filters=[...s.filters]}function Z6(e,t){const{helper:s}=t,{children:n}=e;if(n.length===1){const i=Af(e);if(i&&i.codegenNode){const o=i.codegenNode;o.type===13&&Wl(o,t),e.codegenNode=o}else e.codegenNode=n[0]}else if(n.length>1){let i=64;e.codegenNode=Uo(t,s(bo),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function Y6(e,t){let s=0;const n=()=>{s--};for(;s<e.children.length;s++){const i=e.children[s];be(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=s,t.onNodeRemoved=n,ua(i,t))}}function ua(e,t){t.currentNode=e;const{nodeTransforms:s}=t,n=[];for(let o=0;o<s.length;o++){const r=s[o](e,t);if(r&&(he(r)?n.push(...r):n.push(r)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ao);break;case 5:t.ssr||t.helper(Jr);break;case 9:for(let o=0;o<e.branches.length;o++)ua(e.branches[o],t);break;case 10:case 11:case 1:case 0:Y6(e,t);break}t.currentNode=e;let i=n.length;for(;i--;)n[i]()}function Nf(e,t){const s=be(e)?n=>n===e:n=>e.test(n);return(n,i)=>{if(n.type===1){const{props:o}=n;if(n.tagType===3&&o.some(L6))return;const r=[];for(let a=0;a<o.length;a++){const l=o[a];if(l.type===7&&s(l.name)){o.splice(a,1),a--;const c=t(n,l,i);c&&r.push(c)}}return r}}}const da="/*@__PURE__*/",Df=e=>`${Vi[e]}: _${Vi[e]}`;function J6(e,{mode:t="function",prefixIdentifiers:s=t==="module",sourceMap:n=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:r=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:h=!1}){const p={mode:t,prefixIdentifiers:s,sourceMap:n,filename:i,scopeId:o,optimizeImports:r,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${Vi[m]}`},push(m,b=-2,w){p.code+=m},indent(){_(++p.indentLevel)},deindent(m=!1){m?--p.indentLevel:_(--p.indentLevel)},newline(){_(p.indentLevel)}};function _(m){p.push(`
|
|
313
|
+
`+" ".repeat(m),0)}return p}function X6(e,t={}){const s=J6(e,t);t.onContextCreated&&t.onContextCreated(s);const{mode:n,push:i,prefixIdentifiers:o,indent:r,deindent:a,newline:l,scopeId:c,ssr:u}=s,d=Array.from(e.helpers),h=d.length>0,p=!o&&n!=="module";eg(e,s);const m=u?"ssrRender":"render",w=(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${m}(${w}) {`),r(),p&&(i("with (_ctx) {"),r(),h&&(i(`const { ${d.map(Df).join(", ")} } = _Vue
|
|
314
|
+
`,-1),l())),e.components.length&&(nc(e.components,"component",s),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(nc(e.directives,"directive",s),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),nc(e.filters,"filter",s),l()),e.temps>0){i("let ");for(let C=0;C<e.temps;C++)i(`${C>0?", ":""}_temp${C}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
|
|
315
|
+
`,0),l()),u||i("return "),e.codegenNode?zt(e.codegenNode,s):i("null"),p&&(a(),i("}")),a(),i("}"),{ast:e,code:s.code,preamble:"",map:s.map?s.map.toJSON():void 0}}function eg(e,t){const{ssr:s,prefixIdentifiers:n,push:i,newline:o,runtimeModuleName:r,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,u=Array.from(e.helpers);if(u.length>0&&(i(`const _Vue = ${c}
|
|
316
|
+
`,-1),e.hoists.length)){const d=[xl,kl,Ao,Ul,rf].filter(h=>u.includes(h)).map(Df).join(", ");i(`const { ${d} } = _Vue
|
|
317
|
+
`,-1)}tg(e.hoists,t),o(),i("return ")}function nc(e,t,{helper:s,push:n,newline:i,isTS:o}){const r=s(t==="filter"?Vl:t==="component"?Nl:Pl);for(let a=0;a<e.length;a++){let l=e[a];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),n(`const ${Do(l,t)} = ${r}(${JSON.stringify(l)}${c?", true":""})${o?"!":""}`),a<e.length-1&&i()}}function tg(e,t){if(!e.length)return;t.pure=!0;const{push:s,newline:n}=t;n();for(let i=0;i<e.length;i++){const o=e[i];o&&(s(`const _hoisted_${i+1} = `),zt(o,t),n())}t.pure=!1}function ic(e,t){const s=e.length>3||!1;t.push("["),s&&t.indent(),Vo(e,t,s),s&&t.deindent(),t.push("]")}function Vo(e,t,s=!1,n=!0){const{push:i,newline:o}=t;for(let r=0;r<e.length;r++){const a=e[r];be(a)?i(a,-3):he(a)?ic(a,t):zt(a,t),r<e.length-1&&(s?(n&&i(","),o()):n&&i(", "))}}function zt(e,t){if(be(e)){t.push(e,-3);return}if(es(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:zt(e.codegenNode,t);break;case 2:sg(e,t);break;case 4:Pf(e,t);break;case 5:ng(e,t);break;case 12:zt(e.codegenNode,t);break;case 8:Vf(e,t);break;case 3:og(e,t);break;case 13:rg(e,t);break;case 14:lg(e,t);break;case 15:cg(e,t);break;case 17:ug(e,t);break;case 18:dg(e,t);break;case 19:fg(e,t);break;case 20:hg(e,t);break;case 21:Vo(e.body,t,!0,!1);break}}function sg(e,t){t.push(JSON.stringify(e.content),-3,e)}function Pf(e,t){const{content:s,isStatic:n}=e;t.push(n?JSON.stringify(s):s,-3,e)}function ng(e,t){const{push:s,helper:n,pure:i}=t;i&&s(da),s(`${n(Jr)}(`),zt(e.content,t),s(")")}function Vf(e,t){for(let s=0;s<e.children.length;s++){const n=e.children[s];be(n)?t.push(n,-3):zt(n,t)}}function ig(e,t){const{push:s}=t;if(e.type===8)s("["),Vf(e,t),s("]");else if(e.isStatic){const n=Yl(e.content)?e.content:JSON.stringify(e.content);s(n,-2,e)}else s(`[${e.content}]`,-3,e)}function og(e,t){const{push:s,helper:n,pure:i}=t;i&&s(da),s(`${n(Ao)}(${JSON.stringify(e.content)})`,-3,e)}function rg(e,t){const{push:s,helper:n,pure:i}=t,{tag:o,props:r,children:a,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:h,isComponent:p}=e;let _;l&&(_=String(l)),u&&s(n(Fl)+"("),d&&s(`(${n(si)}(${h?"true":""}), `),i&&s(da);const m=d?Hi(t.inSSR,p):$i(t.inSSR,p);s(n(m)+"(",-2,e),Vo(ag([o,r,a,_,c]),t),s(")"),d&&s(")"),u&&(s(", "),zt(u,t),s(")"))}function ag(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(s=>s||"null")}function lg(e,t){const{push:s,helper:n,pure:i}=t,o=be(e.callee)?e.callee:n(e.callee);i&&s(da),s(o+"(",-2,e),Vo(e.arguments,t),s(")")}function cg(e,t){const{push:s,indent:n,deindent:i,newline:o}=t,{properties:r}=e;if(!r.length){s("{}",-2,e);return}const a=r.length>1||!1;s(a?"{":"{ "),a&&n();for(let l=0;l<r.length;l++){const{key:c,value:u}=r[l];ig(c,t),s(": "),zt(u,t),l<r.length-1&&(s(","),o())}a&&i(),s(a?"}":" }")}function ug(e,t){ic(e.elements,t)}function dg(e,t){const{push:s,indent:n,deindent:i}=t,{params:o,returns:r,body:a,newline:l,isSlot:c}=e;c&&s(`_${Vi[Kl]}(`),s("(",-2,e),he(o)?Vo(o,t):o&&zt(o,t),s(") => "),(l||a)&&(s("{"),n()),r?(l&&s("return "),he(r)?ic(r,t):zt(r,t)):a&&zt(a,t),(l||a)&&(i(),s("}")),c&&(e.isNonScopedSlot&&s(", undefined, true"),s(")"))}function fg(e,t){const{test:s,consequent:n,alternate:i,newline:o}=e,{push:r,indent:a,deindent:l,newline:c}=t;if(s.type===4){const d=!Yl(s.content);d&&r("("),Pf(s,t),d&&r(")")}else r("("),zt(s,t),r(")");o&&a(),t.indentLevel++,o||r(" "),r("? "),zt(n,t),t.indentLevel--,o&&c(),o||r(" "),r(": ");const u=i.type===19;u||t.indentLevel++,zt(i,t),u||t.indentLevel--,o&&l(!0)}function hg(e,t){const{push:s,helper:n,indent:i,deindent:o,newline:r}=t,{needPauseTracking:a,needArraySpread:l}=e;l&&s("[...("),s(`_cache[${e.index}] || (`),a&&(i(),s(`${n(ea)}(-1`),e.inVOnce&&s(", true"),s("),"),r(),s("(")),s(`_cache[${e.index}] = `),zt(e.value,t),a&&(s(`).cacheIndex = ${e.index},`),r(),s(`${n(ea)}(1),`),r(),s(`_cache[${e.index}]`),o()),s(")"),l&&s(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const pg=Nf(/^(?:if|else|else-if)$/,(e,t,s)=>gg(e,t,s,(n,i,o)=>{const r=s.parent.children;let a=r.indexOf(n),l=0;for(;a-->=0;){const c=r[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(o)n.codegenNode=$f(i,l,s);else{const c=_g(n.codegenNode);c.alternate=$f(i,l+n.branches.length-1,s)}}}));function gg(e,t,s,n){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;s.onError(ot(28,t.loc)),t.exp=Ue("true",!1,i)}if(t.name==="if"){const i=Ff(e,t),o={type:9,loc:G6(e.loc),branches:[i]};if(s.replaceNode(o),n)return n(o,i,!0)}else{const i=s.parent.children;let o=i.indexOf(e);for(;o-->=-1;){const r=i[o];if(r&&Tf(r)){s.removeNode(r);continue}if(r&&r.type===9){(t.name==="else-if"||t.name==="else")&&r.branches[r.branches.length-1].condition===void 0&&s.onError(ot(30,e.loc)),s.removeNode();const a=Ff(e,t);r.branches.push(a);const l=n&&n(r,a,!1);ua(a,s),l&&l(),s.currentNode=null}else s.onError(ot(30,e.loc));break}}}function Ff(e,t){const s=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:s&&!Ss(e,"for")?e.children:[e],userKey:sa(e,"key"),isTemplateIf:s}}function $f(e,t,s){return e.condition?Ql(e.condition,Hf(e,t,s),At(s.helper(Ao),['""',"true"])):Hf(e,t,s)}function Hf(e,t,s){const{helper:n}=s,i=wt("key",Ue(`${t}`,!1,us,2)),{children:o}=e,r=o[0];if(o.length!==1||r.type!==1)if(o.length===1&&r.type===11){const l=r.codegenNode;return oa(l,i,s),l}else{let l=64;return Uo(s,n(bo),ys([i]),o,l,void 0,void 0,!0,!1,!1,e.loc)}else{const l=r.codegenNode,c=x6(l);return c.type===13&&Wl(c,s),oa(c,i,s),l}}function _g(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const mg=Nf("for",(e,t,s)=>{const{helper:n,removeHelper:i}=s;return Eg(e,t,s,o=>{const r=At(n($l),[o.source]),a=na(e),l=Ss(e,"memo"),c=sa(e,"key",!1,!0);c&&c.type;let u=c&&(c.type===6?c.value?Ue(c.value.content,!0):void 0:c.exp);const d=c&&u?wt("key",u):null,h=o.source.type===4&&o.source.constType>0,p=h?64:c?128:256;return o.codegenNode=Uo(s,n(bo),void 0,r,p,void 0,void 0,!0,!h,!1,e.loc),()=>{let _;const{children:m}=o,b=m.length!==1||m[0].type!==1,w=ia(e)?e:a&&e.children.length===1&&ia(e.children[0])?e.children[0]:null;if(w?(_=w.codegenNode,a&&d&&oa(_,d,s)):b?_=Uo(s,n(bo),d?ys([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(_=m[0].codegenNode,a&&d&&oa(_,d,s),_.isBlock!==!h&&(_.isBlock?(i(si),i(Hi(s.inSSR,_.isComponent))):i($i(s.inSSR,_.isComponent))),_.isBlock=!h,_.isBlock?(n(si),n(Hi(s.inSSR,_.isComponent))):n($i(s.inSSR,_.isComponent))),l){const C=Fi(oc(o.parseResult,[Ue("_cached")]));C.body=S6([Os(["const _memo = (",l.exp,")"]),Os(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${s.helperString(cf)}(_cached, _memo)) return _cached`]),Os(["const _item = ",_]),Ue("_item.memo = _memo"),Ue("return _item")]),r.arguments.push(C,Ue("_cache"),Ue(String(s.cached.length))),s.cached.push(null)}else r.arguments.push(Fi(oc(o.parseResult),_,!0))}})});function Eg(e,t,s,n){if(!t.exp){s.onError(ot(31,t.loc));return}const i=t.forParseResult;if(!i){s.onError(ot(32,t.loc));return}Gf(i);const{addIdentifiers:o,removeIdentifiers:r,scopes:a}=s,{source:l,value:c,key:u,index:d}=i,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:na(e)?e.children:[e]};s.replaceNode(h),a.vFor++;const p=n&&n(h);return()=>{a.vFor--,p&&p()}}function Gf(e,t){e.finalized||(e.finalized=!0)}function oc({value:e,key:t,index:s},n=[]){return vg([e,t,s,...n])}function vg(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((s,n)=>s||Ue("_".repeat(n+1),!1))}const Bf=Ue("undefined",!1),Cg=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const s=Ss(e,"slot");if(s)return s.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},yg=(e,t,s,n)=>Fi(e,s,!1,!0,s.length?s[0].loc:n);function Sg(e,t,s=yg){t.helper(Kl);const{children:n,loc:i}=e,o=[],r=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Ss(e,"slot",!0);if(l){const{arg:b,exp:w}=l;b&&!os(b)&&(a=!0),o.push(wt(b||Ue("default",!0),s(w,void 0,n,i)))}let c=!1,u=!1;const d=[],h=new Set;let p=0;for(let b=0;b<n.length;b++){const w=n[b];let C;if(!na(w)||!(C=Ss(w,"slot",!0))){w.type!==3&&d.push(w);continue}if(l){t.onError(ot(37,C.loc));break}c=!0;const{children:g,loc:E}=w,{arg:v=Ue("default",!0),exp:L,loc:F}=C;let $;os(v)?$=v?v.content:"default":a=!0;const A=Ss(w,"for"),k=s(L,A,g,E);let O,T;if(O=Ss(w,"if"))a=!0,r.push(Ql(O.exp,fa(v,k,p++),Bf));else if(T=Ss(w,/^else(?:-if)?$/,!0)){let P=b,K;for(;P--&&(K=n[P],!!Tf(K)););if(K&&na(K)&&Ss(K,/^(?:else-)?if$/)){let ee=r[r.length-1];for(;ee.alternate.type===19;)ee=ee.alternate;ee.alternate=T.exp?Ql(T.exp,fa(v,k,p++),Bf):fa(v,k,p++)}else t.onError(ot(30,T.loc))}else if(A){a=!0;const P=A.forParseResult;P?(Gf(P),r.push(At(t.helper($l),[P.source,Fi(oc(P),fa(v,k),!0)]))):t.onError(ot(32,A.loc))}else{if($){if(h.has($)){t.onError(ot(38,F));continue}h.add($),$==="default"&&(u=!0)}o.push(wt(v,k))}}if(!l){const b=(w,C)=>{const g=s(w,void 0,C,i);return t.compatConfig&&(g.isNonScopedSlot=!0),wt("default",g)};c?d.length&&!d.every(Xl)&&(u?t.onError(ot(39,d[0].loc)):o.push(b(void 0,d))):o.push(b(void 0,n))}const _=a?2:ha(e.children)?3:1;let m=ys(o.concat(wt("_",Ue(_+"",!1))),i);return r.length&&(m=At(t.helper(lf),[m,ni(r)])),{slots:m,hasDynamicSlots:a}}function fa(e,t,s){const n=[wt("name",e),wt("fn",t)];return s!=null&&n.push(wt("key",Ue(String(s),!0))),ys(n)}function ha(e){for(let t=0;t<e.length;t++){const s=e[t];switch(s.type){case 1:if(s.tagType===2||ha(s.children))return!0;break;case 9:if(ha(s.branches))return!0;break;case 10:case 11:if(ha(s.children))return!0;break}}return!1}const jf=new WeakMap,Tg=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:n,props:i}=e,o=e.tagType===1;let r=o?Ig(e,t):`"${n}"`;const a=qe(r)&&r.callee===Dl;let l,c,u=0,d,h,p,_=a||r===Lo||r===Al||!o&&(n==="svg"||n==="foreignObject"||n==="math");if(i.length>0){const m=qf(e,t,void 0,o,a);l=m.props,u=m.patchFlag,h=m.dynamicPropNames;const b=m.directives;p=b&&b.length?ni(b.map(w=>wg(w,t))):void 0,m.shouldUseBlock&&(_=!0)}if(e.children.length>0)if(r===Yr&&(_=!0,u|=1024),o&&r!==Lo&&r!==Yr){const{slots:b,hasDynamicSlots:w}=Sg(e,t);c=b,w&&(u|=1024)}else if(e.children.length===1&&r!==Lo){const b=e.children[0],w=b.type,C=w===5||w===8;C&&fs(b,t)===0&&(u|=1),C||w===2?c=b:c=e.children}else c=e.children;h&&h.length&&(d=Mg(h)),e.codegenNode=Uo(t,r,l,c,u===0?void 0:u,d,p,!!_,!1,o,e.loc)};function Ig(e,t,s=!1){let{tag:n}=e;const i=rc(n),o=sa(e,"is",!1,!0);if(o)if(i||ii("COMPILER_IS_ON_ELEMENT",t)){let a;if(o.type===6?a=o.value&&Ue(o.value.content,!0):(a=o.exp,a||(a=Ue("is",!1,o.arg.loc))),a)return At(t.helper(Dl),[a])}else o.type===6&&o.value.content.startsWith("vue:")&&(n=o.value.content.slice(4));const r=gf(n)||t.isBuiltInComponent(n);return r?(s||t.helper(r),r):(t.helper(Nl),t.components.add(n),Do(n,"component"))}function qf(e,t,s=e.props,n,i,o=!1){const{tag:r,loc:a,children:l}=e;let c=[];const u=[],d=[],h=l.length>0;let p=!1,_=0,m=!1,b=!1,w=!1,C=!1,g=!1,E=!1;const v=[],L=k=>{c.length&&(u.push(ys(Kf(c),a)),c=[]),k&&u.push(k)},F=()=>{t.scopes.vFor>0&&c.push(wt(Ue("ref_for",!0),Ue("true")))},$=({key:k,value:O})=>{if(os(k)){const T=k.content,P=Gn(T);if(P&&(!n||i)&&T.toLowerCase()!=="onclick"&&T!=="onUpdate:modelValue"&&!en(T)&&(C=!0),P&&en(T)&&(E=!0),P&&O.type===14&&(O=O.arguments[0]),O.type===20||(O.type===4||O.type===8)&&fs(O,t)>0)return;T==="ref"?m=!0:T==="class"?b=!0:T==="style"?w=!0:T!=="key"&&!v.includes(T)&&v.push(T),n&&(T==="class"||T==="style")&&!v.includes(T)&&v.push(T)}else g=!0};for(let k=0;k<s.length;k++){const O=s[k];if(O.type===6){const{loc:T,name:P,nameLoc:K,value:ee}=O;let te=!0;if(P==="ref"&&(m=!0,F()),P==="is"&&(rc(r)||ee&&ee.content.startsWith("vue:")||ii("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(wt(Ue(P,!0,K),Ue(ee?ee.content:"",te,ee?ee.loc:T)))}else{const{name:T,arg:P,exp:K,loc:ee,modifiers:te}=O,ie=T==="bind",V=T==="on";if(T==="slot"){n||t.onError(ot(40,ee));continue}if(T==="once"||T==="memo"||T==="is"||ie&&oi(P,"is")&&(rc(r)||ii("COMPILER_IS_ON_ELEMENT",t))||V&&o)continue;if((ie&&oi(P,"key")||V&&h&&oi(P,"vue:before-update"))&&(p=!0),ie&&oi(P,"ref")&&F(),!P&&(ie||V)){if(g=!0,K)if(ie){if(L(),ii("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(K);continue}F(),L(),u.push(K)}else L({type:14,loc:ee,callee:t.helper(Bl),arguments:n?[K]:[K,"true"]});else t.onError(ot(ie?34:35,ee));continue}ie&&te.some(Ot=>Ot.content==="prop")&&(_|=32);const Le=t.directiveTransforms[T];if(Le){const{props:Ot,needRuntime:Ye}=Le(O,e,t);!o&&Ot.forEach($),V&&P&&!os(P)?L(ys(Ot,a)):c.push(...Ot),Ye&&(d.push(O),es(Ye)&&jf.set(O,Ye))}else xp(T)||(d.push(O),h&&(p=!0))}}let A;if(u.length?(L(),u.length>1?A=At(t.helper(Xr),u,a):A=u[0]):c.length&&(A=ys(Kf(c),a)),g?_|=16:(b&&!n&&(_|=2),w&&!n&&(_|=4),v.length&&(_|=8),C&&(_|=32)),!p&&(_===0||_===32)&&(m||E||d.length>0)&&(_|=512),!t.inSSR&&A)switch(A.type){case 15:let k=-1,O=-1,T=!1;for(let ee=0;ee<A.properties.length;ee++){const te=A.properties[ee].key;os(te)?te.content==="class"?k=ee:te.content==="style"&&(O=ee):te.isHandlerKey||(T=!0)}const P=A.properties[k],K=A.properties[O];T?A=At(t.helper(xo),[A]):(P&&!os(P.value)&&(P.value=At(t.helper(Hl),[P.value])),K&&(w||K.value.type===4&&K.value.content.trim()[0]==="["||K.value.type===17)&&(K.value=At(t.helper(Gl),[K.value])));break;case 14:break;default:A=At(t.helper(xo),[At(t.helper(ko),[A])]);break}return{props:A,directives:d,patchFlag:_,dynamicPropNames:v,shouldUseBlock:p}}function Kf(e){const t=new Map,s=[];for(let n=0;n<e.length;n++){const i=e[n];if(i.key.type===8||!i.key.isStatic){s.push(i);continue}const o=i.key.content,r=t.get(o);r?(o==="style"||o==="class"||Gn(o))&&Rg(r,i):(t.set(o,i),s.push(i))}return s}function Rg(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=ni([e.value,t.value],e.loc)}function wg(e,t){const s=[],n=jf.get(e);n?s.push(t.helperString(n)):(t.helper(Pl),t.directives.add(e.name),s.push(Do(e.name,"directive")));const{loc:i}=e;if(e.exp&&s.push(e.exp),e.arg&&(e.exp||s.push("void 0"),s.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||s.push("void 0"),s.push("void 0"));const o=Ue("true",!1,i);s.push(ys(e.modifiers.map(r=>wt(r,o)),i))}return ni(s,e.loc)}function Mg(e){let t="[";for(let s=0,n=e.length;s<n;s++)t+=JSON.stringify(e[s]),s<n-1&&(t+=", ");return t+"]"}function rc(e){return e==="component"||e==="Component"}const Og=(e,t)=>{if(ia(e)){const{children:s,loc:n}=e,{slotName:i,slotProps:o}=bg(e,t),r=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;o&&(r[2]=o,a=3),s.length&&(r[3]=Fi([],s,!1,!1,n),a=4),t.scopeId&&!t.slotted&&(a=5),r.splice(a),e.codegenNode=At(t.helper(af),r,n)}};function bg(e,t){let s='"default"',n;const i=[];for(let o=0;o<e.props.length;o++){const r=e.props[o];if(r.type===6)r.value&&(r.name==="name"?s=JSON.stringify(r.value.content):(r.name=Je(r.name),i.push(r)));else if(r.name==="bind"&&oi(r.arg,"name")){if(r.exp)s=r.exp;else if(r.arg&&r.arg.type===4){const a=Je(r.arg.content);s=r.exp=Ue(a,!1,r.arg.loc)}}else r.name==="bind"&&r.arg&&os(r.arg)&&(r.arg.content=Je(r.arg.content)),i.push(r)}if(i.length>0){const{props:o,directives:r}=qf(e,t,i,!1,!1);n=o,r.length&&t.onError(ot(36,r[0].loc))}return{slotName:s,slotProps:n}}const zf=(e,t,s,n)=>{const{loc:i,modifiers:o,arg:r}=e;!e.exp&&!o.length&&s.onError(ot(35,i));let a;if(r.type===4)if(r.isStatic){let d=r.content;d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const h=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?yi(Je(d)):`on:${d}`;a=Ue(h,!0,r.loc)}else a=Os([`${s.helperString(ql)}(`,r,")"]);else a=r,a.children.unshift(`${s.helperString(ql)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=s.cacheHandlers&&!l&&!s.inVOnce;if(l){const d=Ef(l),h=!(d||O6(l)),p=l.content.includes(";");(h||c&&d)&&(l=Os([`${h?"$event":"(...args)"} => ${p?"{":"("}`,l,p?"}":")"]))}let u={props:[wt(a,l||Ue("() => {}",!1,i))]};return n&&(u=n(u)),c&&(u.props[0].value=s.cache(u.props[0].value)),u.props.forEach(d=>d.key.isHandlerKey=!0),u},Lg=(e,t,s)=>{const{modifiers:n,loc:i}=e,o=e.arg;let{exp:r}=e;return r&&r.type===4&&!r.content.trim()&&(r=void 0),o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=o.content?`${o.content} || ""`:'""'),n.some(a=>a.content==="camel")&&(o.type===4?o.isStatic?o.content=Je(o.content):o.content=`${s.helperString(jl)}(${o.content})`:(o.children.unshift(`${s.helperString(jl)}(`),o.children.push(")"))),s.inSSR||(n.some(a=>a.content==="prop")&&Qf(o,"."),n.some(a=>a.content==="attr")&&Qf(o,"^")),{props:[wt(o,r)]}},Qf=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Ag=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const s=e.children;let n,i=!1;for(let o=0;o<s.length;o++){const r=s[o];if(Jl(r)){i=!0;for(let a=o+1;a<s.length;a++){const l=s[a];if(Jl(l))n||(n=s[o]=Os([r],r.loc)),n.children.push(" + ",l),s.splice(a,1),a--;else{n=void 0;break}}}}if(!(!i||s.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(o=>o.type===7&&!t.directiveTransforms[o.name])&&e.tag!=="template")))for(let o=0;o<s.length;o++){const r=s[o];if(Jl(r)||r.type===8){const a=[];(r.type!==2||r.content!==" ")&&a.push(r),!t.ssr&&fs(r,t)===0&&a.push("1"),s[o]={type:12,content:r,loc:r.loc,codegenNode:At(t.helper(Ul),a)}}}}},Wf=new WeakSet,xg=(e,t)=>{if(e.type===1&&Ss(e,"once",!0))return Wf.has(e)||t.inVOnce||t.inSSR?void 0:(Wf.add(e),t.inVOnce=!0,t.helper(ea),()=>{t.inVOnce=!1;const s=t.currentNode;s.codegenNode&&(s.codegenNode=t.cache(s.codegenNode,!0,!0))})},Zf=(e,t,s)=>{const{exp:n,arg:i}=e;if(!n)return s.onError(ot(41,e.loc)),Fo();const o=n.loc.source.trim(),r=n.type===4?n.content:o,a=s.bindingMetadata[o];if(a==="props"||a==="props-aliased")return s.onError(ot(44,n.loc)),Fo();if(a==="literal-const"||a==="setup-const")return s.onError(ot(45,n.loc)),Fo();if(!r.trim()||!Ef(n))return s.onError(ot(42,n.loc)),Fo();const l=i||Ue("modelValue",!0),c=i?os(i)?`onUpdate:${Je(i.content)}`:Os(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;const d=s.isTS?"($event: any)":"$event";u=Os([`${d} => ((`,n,") = $event)"]);const h=[wt(l,e.exp),wt(c,u)];if(e.modifiers.length&&t.tagType===1){const p=e.modifiers.map(m=>m.content).map(m=>(Yl(m)?m:JSON.stringify(m))+": true").join(", "),_=i?os(i)?`${i.content}Modifiers`:Os([i,' + "Modifiers"']):"modelModifiers";h.push(wt(_,Ue(`{ ${p} }`,!1,e.loc,2)))}return Fo(h)};function Fo(e=[]){return{props:e}}const kg=/[\w).+\-_$\]]/,Ug=(e,t)=>{ii("COMPILER_FILTERS",t)&&(e.type===5?pa(e.content,t):e.type===1&&e.props.forEach(s=>{s.type===7&&s.name!=="for"&&s.exp&&pa(s.exp,t)}))};function pa(e,t){if(e.type===4)Yf(e,t);else for(let s=0;s<e.children.length;s++){const n=e.children[s];typeof n=="object"&&(n.type===4?Yf(n,t):n.type===8?pa(e,t):n.type===5&&pa(n.content,t))}}function Yf(e,t){const s=e.content;let n=!1,i=!1,o=!1,r=!1,a=0,l=0,c=0,u=0,d,h,p,_,m=[];for(p=0;p<s.length;p++)if(h=d,d=s.charCodeAt(p),n)d===39&&h!==92&&(n=!1);else if(i)d===34&&h!==92&&(i=!1);else if(o)d===96&&h!==92&&(o=!1);else if(r)d===47&&h!==92&&(r=!1);else if(d===124&&s.charCodeAt(p+1)!==124&&s.charCodeAt(p-1)!==124&&!a&&!l&&!c)_===void 0?(u=p+1,_=s.slice(0,p).trim()):b();else{switch(d){case 34:i=!0;break;case 39:n=!0;break;case 96:o=!0;break;case 40:c++;break;case 41:c--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(d===47){let w=p-1,C;for(;w>=0&&(C=s.charAt(w),C===" ");w--);(!C||!kg.test(C))&&(r=!0)}}_===void 0?_=s.slice(0,p).trim():u!==0&&b();function b(){m.push(s.slice(u,p).trim()),u=p+1}if(m.length){for(p=0;p<m.length;p++)_=Ng(_,m[p],t);e.content=_,e.ast=void 0}}function Ng(e,t,s){s.helper(Vl);const n=t.indexOf("(");if(n<0)return s.filters.add(t),`${Do(t,"filter")}(${e})`;{const i=t.slice(0,n),o=t.slice(n+1);return s.filters.add(i),`${Do(i,"filter")}(${e}${o!==")"?","+o:o}`}}const Jf=new WeakSet,Dg=(e,t)=>{if(e.type===1){const s=Ss(e,"memo");return!s||Jf.has(e)||t.inSSR?void 0:(Jf.add(e),()=>{const n=e.codegenNode||t.currentNode.codegenNode;n&&n.type===13&&(e.tagType!==1&&Wl(n,t),e.codegenNode=At(t.helper(zl),[s.exp,Fi(void 0,n),"_cache",String(t.cached.length)]),t.cached.push(null))})}},Pg=(e,t)=>{if(e.type===1){for(const s of e.props)if(s.type===7&&s.name==="bind"&&(!s.exp||s.exp.type===4&&!s.exp.content.trim())&&s.arg){const n=s.arg;if(n.type!==4||!n.isStatic)t.onError(ot(53,n.loc)),s.exp=Ue("",!0,n.loc);else{const i=Je(n.content);(_f.test(i[0])||i[0]==="-")&&(s.exp=Ue(i,!1,n.loc))}}}};function Vg(e){return[[Pg,xg,pg,Dg,mg,Ug,Og,Tg,Cg,Ag],{on:zf,bind:Lg,model:Zf}]}function Fg(e,t={}){const s=t.onError||Zl,n=t.mode==="module";t.prefixIdentifiers===!0?s(ot(48)):n&&s(ot(49));const i=!1;t.cacheHandlers&&s(ot(50)),t.scopeId&&!n&&s(ot(51));const o=Ve({},t,{prefixIdentifiers:i}),r=be(e)?q6(e,o):e,[a,l]=Vg();return W6(r,Ve({},o,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Ve({},l,t.directiveTransforms||{})})),X6(r,o)}const $g=()=>({props:[]});/**
|
|
330
318
|
* @vue/compiler-dom v3.5.30
|
|
331
319
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
332
320
|
* @license MIT
|
|
333
|
-
**/const
|
|
321
|
+
**/const Xf=Symbol(""),e2=Symbol(""),t2=Symbol(""),s2=Symbol(""),ac=Symbol(""),n2=Symbol(""),i2=Symbol(""),o2=Symbol(""),r2=Symbol(""),a2=Symbol("");v6({[Xf]:"vModelRadio",[e2]:"vModelCheckbox",[t2]:"vModelText",[s2]:"vModelSelect",[ac]:"vModelDynamic",[n2]:"withModifiers",[i2]:"withKeys",[o2]:"vShow",[r2]:"Transition",[a2]:"TransitionGroup"});let Gi;function Hg(e,t=!1){return Gi||(Gi=document.createElement("div")),t?(Gi.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Gi.children[0].getAttribute("foo")):(Gi.innerHTML=e,Gi.textContent)}const Gg={parseMode:"html",isVoidTag:Qp,isNativeTag:e=>qp(e)||Kp(e)||zp(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Hg,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return r2;if(e==="TransitionGroup"||e==="transition-group")return a2},getNamespace(e,t,s){let n=t?t.ns:s;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n}},Bg=e=>{e.type===1&&e.props.forEach((t,s)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[s]={type:7,name:"bind",arg:Ue("style",!0,t.loc),exp:jg(t.value.content,t.loc),modifiers:[],loc:t.loc})})},jg=(e,t)=>{const s=d1(e);return Ue(JSON.stringify(s),!1,t,3)};function Un(e,t){return ot(e,t)}const qg=(e,t,s)=>{const{exp:n,loc:i}=e;return n||s.onError(Un(54,i)),t.children.length&&(s.onError(Un(55,i)),t.children.length=0),{props:[wt(Ue("innerHTML",!0,i),n||Ue("",!0))]}},Kg=(e,t,s)=>{const{exp:n,loc:i}=e;return n||s.onError(Un(56,i)),t.children.length&&(s.onError(Un(57,i)),t.children.length=0),{props:[wt(Ue("textContent",!0),n?fs(n,s)>0?n:At(s.helperString(Jr),[n],i):Ue("",!0))]}},zg=(e,t,s)=>{const n=Zf(e,t,s);if(!n.props.length||t.tagType===1)return n;e.arg&&s.onError(Un(59,e.arg.loc));const{tag:i}=t,o=s.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||o){let r=t2,a=!1;if(i==="input"||o){const l=sa(t,"type");if(l){if(l.type===7)r=ac;else if(l.value)switch(l.value.content){case"radio":r=Xf;break;case"checkbox":r=e2;break;case"file":a=!0,s.onError(Un(60,e.loc));break}}else b6(t)&&(r=ac)}else i==="select"&&(r=s2);a||(n.needRuntime=s.helper(r))}else s.onError(Un(58,e.loc));return n.props=n.props.filter(r=>!(r.key.type===4&&r.key.content==="modelValue")),n},Qg=ls("passive,once,capture"),Wg=ls("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Zg=ls("left,right"),l2=ls("onkeyup,onkeydown,onkeypress"),Yg=(e,t,s,n)=>{const i=[],o=[],r=[];for(let a=0;a<t.length;a++){const l=t[a].content;l==="native"&&No("COMPILER_V_ON_NATIVE",s)||Qg(l)?r.push(l):Zg(l)?os(e)?l2(e.content.toLowerCase())?i.push(l):o.push(l):(i.push(l),o.push(l)):Wg(l)?o.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:r}},c2=(e,t)=>os(e)&&e.content.toLowerCase()==="onclick"?Ue(t,!0):e.type!==4?Os(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Jg=(e,t,s)=>zf(e,t,s,n=>{const{modifiers:i}=e;if(!i.length)return n;let{key:o,value:r}=n.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}=Yg(o,i,s,e.loc);if(l.includes("right")&&(o=c2(o,"onContextmenu")),l.includes("middle")&&(o=c2(o,"onMouseup")),l.length&&(r=At(s.helper(n2),[r,JSON.stringify(l)])),a.length&&(!os(o)||l2(o.content.toLowerCase()))&&(r=At(s.helper(i2),[r,JSON.stringify(a)])),c.length){const u=c.map(jn).join("");o=os(o)?Ue(`${o.content}${u}`,!0):Os(["(",o,`) + "${u}"`])}return{props:[wt(o,r)]}}),Xg=(e,t,s)=>{const{exp:n,loc:i}=e;return n||s.onError(Un(62,i)),{props:[],needRuntime:s.helper(o2)}},e_=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},t_=[Bg],s_={cloak:$g,html:qg,text:Kg,model:zg,on:Jg,show:Xg};function n_(e,t={}){return Fg(e,Ve({},Gg,t,{nodeTransforms:[e_,...t_,...t.nodeTransforms||[]],directiveTransforms:Ve({},s_,t.directiveTransforms||{}),transformHoist:null}))}/**
|
|
334
322
|
* vue v3.5.30
|
|
335
323
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
336
324
|
* @license MIT
|
|
337
|
-
**/const
|
|
338
|
-
`,
|
|
339
|
-
`]]]),
|
|
340
|
-
`]]]),
|
|
341
|
-
`]]]),
|
|
342
|
-
`]]]),
|
|
343
|
-
`]]]),
|
|
344
|
-
`]]]),
|
|
345
|
-
`]]]),
|
|
346
|
-
`]]]),
|
|
347
|
-
`]]]),
|
|
348
|
-
`]]]),
|
|
349
|
-
`]]]),
|
|
350
|
-
`]]]),
|
|
351
|
-
`]]]),
|
|
352
|
-
`]]]),
|
|
353
|
-
`]]]),
|
|
354
|
-
`]]]),
|
|
355
|
-
`]]]),
|
|
356
|
-
`]]]),
|
|
357
|
-
`]]]),
|
|
358
|
-
`]]]),
|
|
359
|
-
`]]]),
|
|
360
|
-
`]]]),
|
|
361
|
-
`]]]),
|
|
362
|
-
`]]]),
|
|
363
|
-
`]]]),
|
|
364
|
-
`]]]),
|
|
365
|
-
`]]]),
|
|
366
|
-
`]]]),
|
|
367
|
-
`]]]),
|
|
368
|
-
`]]])
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
`]]]),
|
|
372
|
-
`]]]),
|
|
373
|
-
`]]]),
|
|
374
|
-
`]]]),
|
|
375
|
-
`]]]),
|
|
376
|
-
`]]]),
|
|
377
|
-
`]]]),
|
|
378
|
-
`]]]),
|
|
379
|
-
`]]]);var ci=(e=>(e.PHOTO="input.menu.item.photo",e.IMAGES="input.menu.item.images",e.FILES="input.menu.item.files",e.EMOJI="input.menu.item.emoji",e.PLUS="input.menu.item.plus",e))(ci||{});const bm="RCKitChatEmojiLibraryID";var l0=(e=>(e[e.SECONDARY_MENU=0]="SECONDARY_MENU",e[e.LEFT=1]="LEFT",e))(l0||{});const oc={items:[{id:"input.menu.item.emoji",order:0,icon:t5,hoverIcon:yh},{id:"input.menu.item.images",order:1,icon:e5,hoverIcon:Sh},{id:"input.menu.item.files",order:2,icon:s5,hoverIcon:Th},{id:"input.menu.item.photo",order:3,icon:Xh,hoverIcon:Ih,filter:()=>(location.protocol==="https:"||location.protocol==="file"||location.hostname==="localhost")&&!ps()}]},ac=e=>({items:e.items.map(t=>({id:t.id,order:t.order,icon:t.icon,hoverIcon:t.hoverIcon,filter:t.filter,submenu:t.submenu?t.submenu.map(s=>({id:s.id,order:s.order,icon:s.icon,filter:s.filter,submenu:s.submenu})):void 0}))}),Lm={icon:r5,chats:["😁","😂","😃","😄","😅","😆","😇","😈","😉","😊","😋","😌","😍","😎","😏","😐","😑","😒","😓","😔","😕","😖","😗","😘","😙","😚","😛","😜","😝","😞","😟","😠","😡","😢","😣","😤","😥","😦","😧","😨","😩","😪","😫","😬","😭","😮","😯","😰","😱","😲","😳","😴","😵","😶","😷","😸","😹","😺","😻","😼","😽","😾","😿","🙀","🙁","🙂","🙃","🙄","🙅","🙆","🙇","🙈","🙉","🙊","🙋","🙌","🙍","🙎","🙏","🤐","🤑","🤒","🤓","🤔","🤕","🤖","🤗","🤘","🤙","🤚","🤛","🤜","🤝","🤞","🤟","🤠","🤡","🤢","🤣","🤤","🤥","🤦","🤧","🤨","🤩","🤪","🤫","🤬","🤭","🤮","🤯"]},c0=e=>({icon:e.icon,chats:[...e.chats]}),u0=e=>e.map(t=>({id:t.id,icon:t.icon,itemWidth:t.itemWidth,itemHeight:t.itemHeight,items:t.items.map(s=>({...s})),order:t.order}));class Am extends Ss{constructor(s){super(s);K(this,"_menu",ac(oc));K(this,"menuList",[]);K(this,"chatEmojis",c0(Lm));K(this,"imageEmojis",[]);this.setInputMenu(oc)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this.chatEmojis.chats.length=0,this.imageEmojis.length=0,this.setInputMenu(oc)}cloneInputMenu(){return ac(this._menu)}setInputMenu(s){this._menu=ac(s),this._resetMenu()}_resetMenu(){this.menuList.length=0;const{items:s}=this._menu,n=(i,r)=>i.order-r.order;this.menuList.splice(0,this.menuList.length,...s.sort(n))}cloneChatEmojiLibrary(){return c0(this.chatEmojis)}setChatEmojiLibrary(s){this.chatEmojis.chats.splice(0,this.chatEmojis.chats.length,...s.chats),this.chatEmojis.icon=s.icon}cloneImageEmojiLibraries(){return u0(this.imageEmojis)}setImageEmojiLibraries(s){const n=u0(s).sort((i,r)=>i.order-r.order);this.imageEmojis.splice(0,this.imageEmojis.length,...n)}addImageEmoji(s,n,i){throw new Error("TODO: addImageEmoji")}}const ha=N(!1),$r=N(!1),pa=N(!1),ji=new Map;let Ki=!1;const d0=()=>{Ki=!1,ji.clear()},f0=(e,t,s=!1)=>{const i=Dn.value.find(a=>a.userId===e);if(!i)return;ui();const r=i.nickname||i.name;ji.set(e,new RegExp(`@${r}`)),t.focus();const o=s?`@${r} `:`${r} `;t.setRangeText(o,t.selectionStart,t.selectionEnd,"end")},xm=e=>{Ki=!0,ui(),e.focus(),e.setRangeText(`${me("input.mentioned.all")} `,e.selectionStart,e.selectionEnd,"end")},ui=()=>{ha.value=!1,$r.value=!1,pa.value=!1},km=(e,t)=>{ui();const{detail:s}=e,{url:n,thumbnail:i,gif:r}=s;let o;if(r){const{size:a,width:l,height:c}=r;o=new f.GIFMessage({gifDataSize:a,width:l,height:c,remoteUrl:n})}else o=new f.ImageMessage({content:i,imageUri:n});Se().message.sendMessage(t,o)},Um=(e,t)=>{t.focus(),t.setRangeText(e.detail,t.selectionStart,t.selectionEnd,"end"),ui(),Se().conversation.sendTypingStatus()},Nm=(e,t)=>{console.log(">>>> pickFile >>>> pickFile >>>>");const s=document.createElement("input");s.type="file",s.accept=e,s.multiple=!0,s.onchange=()=>{console.log(">>>> pickFile >>>> onchange >>>>"),t(Array.from(s.files||[]))},s.addEventListener("cancel",()=>{console.log(">>>> pickFile >>>> oncancel >>>>"),t([])}),s.click()},Dm=(e,t)=>{console.log(">>>> pickFileOnSafari >>>> pickFileOnSafari >>>>");const s=document.createElement("input");s.type="file",s.accept=e,s.multiple=!0,s.style.position="fixed",s.style.left="-9999px",s.style.top="-9999px",s.style.width="1px",s.style.height="1px",s.style.opacity="0",s.style.pointerEvents="none",document.body.appendChild(s);let n=!1;const i=[],r=()=>{for(const d of i)globalThis.clearTimeout(d);i.length=0},o=()=>{r(),globalThis.removeEventListener("focus",u,!0),s.onchange=null,s.removeEventListener("cancel",c),s.parentNode&&s.remove()},a=()=>Array.from(s.files||[]),l=()=>{if(n)return;const d=a();d.length!==0&&(console.log(">>>> pickFileOnSafari >>>> finalizeSuccess >>>>"),n=!0,o(),t(d))},c=()=>{n||(console.log(">>>> pickFileOnSafari >>>> finalizeCancel >>>>"),n=!0,o(),t([]))},u=()=>{r();const d=[0,50,100,200,400,700,1100,1700,2500];for(const h of d)i.push(globalThis.setTimeout(()=>l,h));i.push(globalThis.setTimeout(()=>{a().length>0||c()},2800))};s.value="",globalThis.addEventListener("focus",u,!0),s.onchange=l,s.addEventListener("cancel",c),s.click()};function Pm(){if(!("GestureEvent"in window))return!1;const t=navigator.userAgent,s=/Safari/.test(t)&&!/Chrome|CriOS|Edg|FxiOS|OPiOS/i.test(t),n=!!navigator.vendor&&navigator.vendor.indexOf("Apple")>-1;return s&&n}const h0=Pm()?Dm:Nm;let lc=!1;const Vm=e=>{switch(e.key){case"Backspace":ui();break;case"Shift":lc=!0;break}},$m=(e,t,s,n)=>{e.key==="Enter"&&Gm(e,t,s)},p0=e=>{e.key==="Shift"&&(lc=!1)},Fm=(e,t,s,n)=>{const i=e.value;Fr(e,t,s);const r=n.data??"";if(n.inputType==="insertText"&&r.includes("@")){const a=Se().conversation.getOpenedConversation();(a==null?void 0:a.conversationType)===f.ConversationType.GROUP&&(ui(),pa.value=!0)}else pa.value=!1;if(ji.forEach((a,l)=>{a.test(i)||ji.delete(l)}),Ki){const a=`@${me("input.mentioned.all")}`;i.includes(a)||(Ki=!1)}Se().conversation.sendTypingStatus()},g0=()=>{requestAnimationFrame(()=>{Se().dispatchEvent(new ie(Y.ADJUST_MESSAGE_LIST_SCROLL))})};let _0=-1;const Fr=(e,t,s)=>{t.innerHTML=e.value.replaceAll(/\n$/g,"<br>.").replaceAll(`
|
|
380
|
-
`,"<br>");const n=e.offsetWidth;Math.abs(t.offsetWidth-n)>1&&(t.style.width=`${n}px`,t.getBoundingClientRect());const i=21,r=36,o=5,a=18,l=i*o+a,c=t.scrollHeight,u=Math.max(1,Math.ceil(c/i));let d;u===1?d=r:u<=o?d=i*u+a:d=l,e.style.height=`${d}px`,s.style.height=`${d}px`,u>o?e.style.overflowY="auto":e.style.overflowY="hidden",_0!==d&&(_0=d,g0())},Hm=(e,t,s,n,i)=>{e.value=i||"",Fr(e,t,s)},m0=(e,t,s,n)=>{const i=Se().conversation.getOpenedConversation();if(!i)return;const r=e.value;if(!r.trim().length)return;const o=Ki?f.MentionedType.ALL:f.MentionedType.SINGAL;let a;pt.value?a=new f.ReferenceMessage({content:r,referMsg:{...pt.value.content},referMsgUserId:pt.value.senderUserId,objName:pt.value.messageType,referMsgUid:pt.value.messageUId}):a=new f.TextMessage({content:r});const l=Ki||ji.size>0;if(l&&(a.content.mentionedInfo={type:o,userIdList:Array.from(ji.keys()),mentionedContent:"TODO: 补充内容"}),[f.MessageType.TEXT,f.MessageType.REFERENCE].includes(a.messageType)&&a.content.content.length>5e3){Se().alert("alert.send.message.maxcount","5000");return}Se().message.sendMessage(i,a,{isMentioned:l}),pt.value=null,d0(),e.value="",Fr(e,t,s)},Gm=(e,t,s,n)=>{const i=e.target;lc||(e.preventDefault(),m0(i,t,s))},E0=e=>{const t=e.clipboardData;if(!t||t.files.length===0)return;e.preventDefault();const s=Se(),n=s.conversation.getOpenedConversation(),i=Array.from(t.files);if(i.length>100){s.alert("alert.pickfiles.maxcount","100");return}const r=i.filter(o=>o.type!==""&&o.size>0);r.length!==0&&s.message.sendFiles(n,r)},Bm={class:"rc-input-provider"},jm={class:"rc-input-top-buttons"},Km=["src","alt","onMouseenter","onClick"],zm={class:"rc-input-inner-wrapper"},qm=["placeholder","enterkeyhint"],Zm=["disabled"],Wm=["src"],Qm={key:0},Ym=["onClick"],Jm=["src"],Xm=Ie(Te({__name:"input-provider.ce",props:{conversation:{type:Object}},setup(e){const t=Se(),s=t.store.getCommandSwitch(xt.AT_ALL),n=e,i=N(!1),r=N(null),o=()=>{i.value=ps(),E.value=t.input.menuList.filter(L).map(M)},a=We("input.placeholder"),l=N(""),c=N(),u=N(),d=N(),h=N(),p=N([]),_=N(null),m=N(null),L=ce=>!ce.filter||ce.filter(n.conversation),M=ce=>({...ce,label:We(ce.id).value}),E=N([]);E.value=t.input.menuList.filter(L).map(M);const g=ye(()=>{const ce=[];return ce.push(...E.value),ce.sort((_e,Xe)=>(_e.order||0)-(Xe.order||0))}),v=ce=>r.value===ce.id&&ce.hoverIcon?ce.hoverIcon:ce.icon,C=ye(()=>l.value.trim().length>0),b=()=>{ui(),p.value=[],_.value=null,m.value=null},$=ce=>{const _e=$r.value&&m.value===ce.id;b(),!_e&&($r.value=!0,m.value=ce.id)},F=(ce,_e,Xe)=>{const nt=ha.value&&m.value===ce.id&&_.value===_e;b(),!(nt||Xe.length===0)&&(p.value=Xe,_.value=_e,m.value=ce.id,O())},A=(ce,_e)=>{if(p.value.some(nt=>nt.id===ce.id)){b(),U(ce,_e);return}if(ce.id===ci.EMOJI){_e.stopPropagation(),Se().statistic(li.INPUT_EMOJI_ENTRY_CLICK),$(ce);return}if(ce.submenu&&ce.submenu.length>0){_e.stopPropagation();const nt=ce.submenu.filter(L).map(M);F(ce,_e.currentTarget,nt);return}b(),U(ce,_e)},U=(ce,_e)=>{const{id:Xe}=ce;switch(Xe){case ci.PHOTO:t.emit(new ie(ge.TAKE_PHOTO_MODAL_EVENT));return;case ci.EMOJI:_e.stopPropagation(),Se().statistic(li.INPUT_EMOJI_ENTRY_CLICK),b(),$r.value=!0;return;case ci.IMAGES:h0("image/jpg, image/png, image/jpeg, image/gif",nt=>t.message.sendImages(n.conversation,nt));return;case ci.FILES:h0("*/*",nt=>t.message.sendFiles(n.conversation,nt));return;default:t.emit(new ie(ge.INPUT_MENU_ITEM_CLICK,{id:Xe,conversation:n.conversation}),2);return}},O=()=>{!c.value||!_.value||(ha.value=!0,setTimeout(()=>{if(!c.value||!_.value||!u.value)return;const ce=_.value.getBoundingClientRect(),_e=u.value.getBoundingClientRect(),Xe=c.value,nt=ce.top-_e.top;Xe.style.bottom=`${_e.height-nt+8}px`,Xe.style.left=`${ce.left-_e.left}px`,Xe.style.right="auto"},0))},T=ce=>{Um(ce,Ne.value),b(),Ne.value&&(l.value=Ne.value.value)},D=ce=>{km(ce,n.conversation),b()},z=ce=>{Ne.value&&(l.value=Ne.value.value),Fm(Ne.value,h.value,d.value,ce)},ee=()=>{if(!Ne.value)return;const ce=Ne.value.value;m0(Ne.value,h.value,d.value,u.value),Ne.value.value===""&&ce.trim().length>0&&(l.value="")},te=()=>{!C.value||!Ne.value||ee()},ne=ce=>{var Xe;const _e=((Xe=Ne.value)==null?void 0:Xe.value)||"";Vm(ce),$m(ce,h.value,d.value,u.value),ce.key==="Enter"&&!ce.shiftKey&&ot(()=>{Ne.value&&Ne.value.value===""&&_e.trim().length>0&&(l.value="")})},V=ce=>{const[_e]=ce.detail;f0(_e,Ne.value)},Ae=async ce=>{var os,et;const _e=(os=ce.data)==null?void 0:os.conversation,Xe=(et=ce.data)==null?void 0:et.focusInput,nt=(_e==null?void 0:_e.draft)||"";pt.value=null,b(),d0(),Hm(Ne.value,h.value,d.value,u.value,nt),l.value=nt,_e&&Xe!==!1?Ne.value.focus():Ne.value&&Ne.value.blur()},wt=ce=>{if(!ce.data)return;Ne.value.focus();const _e=Ne.value.value.length;Ne.value.setRangeText(ce.data,_e,_e,"end"),l.value=Ne.value.value,Fr(Ne.value,h.value,d.value)};ls(pt,(ce,_e)=>{ce&&t.store.getCommandSwitch(xt.PROMPT_SENDER_WHEN_QUOTE_MESSAGE)&&f0(ce.senderUserId,Ne.value,!0),ce&&Ne.value&&Ne.value.focus(),ot(()=>{g0()})});const Qe=ce=>{const _e=ce.target;c.value&&c.value.contains(_e)||_.value&&_.value.contains(_e)||b()},gt=()=>{o(),Ne.value&&h.value&&d.value&&u.value&&Fr(Ne.value,h.value,d.value)},As=ce=>{if(!pt.value)return;ce.data.some(nt=>{var os;return nt.target.messageUId===((os=pt.value)==null?void 0:os.messageUId)})&&(pt.value=null)};return at(()=>{var _e;o(),window.addEventListener("click",Qe),window.addEventListener("resize",gt),Ne.value.addEventListener("paste",E0);const ce=((_e=pe.value)==null?void 0:_e.draft)||"";Ne.value.value=ce,l.value=ce,t.addEventListener(ge.CONVERSATION_SELECTED,Ae),t.addEventListener(Y.SET_TEXTAREA_VALUE_EVENT,wt),t.addEventListener(ge.MESSAGES_DELETED,As)}),Rn(()=>{window.removeEventListener("click",Qe),window.removeEventListener("resize",gt),Ne.value.removeEventListener("paste",E0),t.removeEventListener(ge.CONVERSATION_SELECTED,Ae),t.removeEventListener(ge.MESSAGES_DELETED,As)}),(ce,_e)=>{const Xe=ve("rc-emoji-panel-provider"),nt=ve("rc-at-users-panel-provider"),os=ve("rc-input-reply-bar");return w(),P("div",Bm,[x($r)?(w(),Le(Xe,{key:0,class:"rc-input-emoji-panel",onInsertChat:_e[0]||(_e[0]=et=>T(et)),onSendImage:_e[1]||(_e[1]=et=>D(et))})):ue("",!0),_s(Re(nt,{onAtUser:V,onAtAll:_e[2]||(_e[2]=et=>x(xm)(x(Ne))),atAll:x(s),members:x(Dn),style:{width:"100%","box-sizing":"border-box"}},null,8,["atAll","members"]),[[Bs,x(pa)]]),y("div",jm,[(w(!0),P(De,null,Ot(g.value,et=>(w(),P("img",{class:"rc-input-menu-button",key:et.id,src:v(et),alt:et.label,onMouseenter:$t=>r.value=et.id,onMouseleave:_e[3]||(_e[3]=$t=>r.value=null),onClick:vs($t=>A(et,$t),["stop"])},null,40,Km))),128))]),y("div",{class:"rc-input-wrapper",ref_key:"main",ref:u},[x(pt)?(w(),Le(os,{key:0,class:"replay-bar",username:x(gv),desc:x(hv),thumbnail:x(pv),onCancel:_e[4]||(_e[4]=et=>pt.value=null)},null,8,["username","desc","thumbnail"])):ue("",!0),y("div",zm,[y("div",{class:"input-text-container",ref_key:"inputContainer",ref:d},[y("textarea",{ref_key:"textarea",ref:Ne,class:"textarea",placeholder:i.value?"":x(a),id:"textarea",name:"textarea",enterkeyhint:i.value?"send":void 0,onKeyup:_e[5]||(_e[5]=(...et)=>x(p0)&&x(p0)(...et)),onKeydown:ne,onInput:_e[6]||(_e[6]=et=>z(et))},null,40,qm),y("div",{ref_key:"hiddenDom",ref:h,contenteditable:"",class:"hidden-dom"},null,512)],512),y("button",{class:Je(["rc-input-send-button",{disabled:!C.value}]),disabled:!C.value,onClick:te},[y("img",{src:C.value?x(i5):x(n5),alt:"send"},null,8,Wm),i.value?ue("",!0):(w(),P("span",Qm,oe(x(We)("input.send").value),1))],10,Zm)]),_s(y("div",{class:"secondary-menu",ref_key:"secondarDOM",ref:c,onClick:_e[7]||(_e[7]=vs(()=>{},["stop"]))},[(w(!0),P(De,null,Ot(p.value,et=>(w(),P("div",{key:et.id,class:"secondary-menu-item",onClick:$t=>A(et,$t)},[y("img",{src:et.icon,alt:"Icon"},null,8,Jm),y("span",null,oe(et.label),1)],8,Ym))),128))],512),[[Bs,x(ha)]])],512)])}}}),[["styles",[`.rc-input-provider{width:100%;height:100%;display:flex;flex-direction:column;background-color:#fff;align-items:center;justify-content:center;position:relative;z-index:2;padding:0 12px;box-sizing:border-box}.rc-input-emoji-panel,.rc-input-at-prompt{float:left;width:100%;max-height:248px;border-bottom:1px solid #efefef;border-top:1px solid #efefef}.rc-input-top-buttons{width:100%;display:flex;flex-direction:row;align-items:center;padding:8px 12px;gap:8px;box-sizing:border-box}.rc-input-menu-button{width:30px;height:30px;cursor:pointer;flex-shrink:0}.rc-input-wrapper{width:100%;max-width:100%;display:flex;flex-direction:column;border:1px solid #E4E7ED;border-radius:20px;margin:0 0 12px;box-sizing:border-box;background-color:#fff;position:relative}.rc-input-inner-wrapper{display:flex;flex-direction:row;align-items:flex-start;padding:8px;gap:8px;box-sizing:border-box}.input-text-container{background:none;flex:1;font-size:14px;overflow:hidden;line-height:21px;min-height:21px;border:none;border-radius:0;margin:0;overflow-y:hidden;box-sizing:border-box}.textarea{border:none;outline:none;background:none;min-height:21px;height:36px;max-height:105px;box-sizing:border-box;padding:9px 10px;width:100%;resize:none;word-wrap:break-word;font-size:14px;line-height:21px;overflow-y:hidden;margin-top:4px}.textarea::-webkit-scrollbar{width:4px}.textarea::-webkit-scrollbar-track{background:transparent;border-radius:3px}.textarea::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:3px;transition:background .2s}.textarea::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.3)}.textarea{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) transparent}.hidden-dom{border:none;outline:none;background:none;line-height:21px;min-height:21px;height:21px;overflow:scroll;box-sizing:border-box;padding:0;width:100%;resize:none;font-size:14px;word-wrap:break-word;color:transparent;position:absolute;visibility:hidden}.rc-input-send-button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;padding:5px 16px;border:none;border-radius:30px;background-color:#ecf1ff;color:#0047ff;font-size:14px;cursor:pointer;flex-shrink:0;min-width:60px;height:28px;box-sizing:border-box;transition:background-color .2s,color .2s;margin:8px 0}.rc-input-send-button:hover:not(.disabled){background-color:#d0ddff}.rc-input-send-button.disabled{background-color:#f3f5fa;color:#ccc;cursor:not-allowed;border-radius:30px}.rc-input-send-button img{width:16px;height:16px;flex-shrink:0}.replay-bar{width:100%;padding:8px 8px 0;box-sizing:border-box}.secondary-menu{position:absolute;min-width:126px;background-color:#fff;border-radius:9px;box-shadow:0 0 4px #0000001a;padding:8px 4px;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;font-size:14px;color:#606060;z-index:1000}.secondary-menu-item{flex-direction:row;height:36px;width:100%;box-sizing:border-box;transition:background-color .2s;display:flex;align-items:center;font-size:12px;padding:5px 6px;border-radius:4px;cursor:pointer}.secondary-menu-item:hover{background-color:#d2e1fe}.secondary-menu-item img{width:18px;height:18px;margin-right:10px;flex-shrink:0}.secondary-menu-item span{white-space:nowrap}@media (max-width: 768px){.rc-input-provider{padding:0 8px}.rc-input-top-buttons{padding:8px 0;gap:6px}.rc-input-menu-button{width:28px;height:28px}.rc-input-wrapper{margin:0 0 8px;border-radius:20px}.rc-input-inner-wrapper{padding:6px;gap:6px}.rc-input-send-button{min-width:50px;font-size:12px}.rc-input-send-button span{display:none}}
|
|
381
|
-
`]]]),eE={class:"info"},tE=["src"],sE={class:"info-main"},nE={class:"info-title-group"},iE={class:"name"},rE=["src"],oE={class:"member-count"},aE={key:0,class:"typing-content"},lE={class:"extension"},cE=["src","onClick"],uE=Ie(Te({__name:"conversation-detail-bar-provider.ce",props:{conversation:{type:Object,required:!0},showBack:{type:Boolean,default:!0}},setup(e){const t=e,s=ye(()=>t.conversation.conversationType===f.ConversationType.GROUP),n=N(!1),i=()=>{n.value=ps()},r=()=>{var g;const E=Se();pe.value&&E.conversation.handleConversationDraft(pe.value,(g=Ne.value)==null?void 0:g.value),E.conversation.setOpenedConversation(null,!1)},o=Se(),a=o.store.getConversationExtension(),l=ye(()=>a.filter(E=>!E.filter||E.filter(t.conversation))),c=E=>{o.emit(new ie(ge.CONVERSATION_EXTENSION_CLICK,{id:E.id,conversation:t.conversation}))},u=()=>{o.statistic(li.CONVERSATION_NAVI_CLICK),o.emit(new ie(ge.CONVERSATION_NAVI_CLICK,{...t.conversation}),2)};let d=null;const h=N(!1),p=N(!1),_=N(We("conversation.detail.bar.typing").value),m=E=>{const g=E.status.findIndex(C=>pe.value&&_t(C,pe.value));if(g===-1)return;const{list:v}=E.status[g];v.length!==0&&(d&&(clearTimeout(d),d=null,h.value=!1,_.value=""),p.value=v.some(C=>C.messageType===f.MessageType.TEXT),_.value=p.value?We("conversation.detail.bar.typing").value:We("conversation.detail.bar.typing.audio").value,h.value=!0,d=setTimeout(()=>{h.value=!1,_.value=""},5e3))},L=E=>{h.value=!1},M=E=>{if(!pe.value||s.value)return;const g=E.data,v=o.userId;g.some(b=>_t(b,pe.value)&&b.senderUserId!==v)&&(d&&(clearTimeout(d),d=null),h.value=!1,_.value="")};return at(()=>{i(),window.addEventListener("resize",i),f.addEventListener(f.Events.TYPING_STATUS,m),Se().addEventListener(ge.CONVERSATION_SELECTED,L),Se().addEventListener(Y.RECV_NEW_MESSAGES,M)}),Tt(()=>{window.removeEventListener("resize",i),f.removeEventListener(f.Events.TYPING_STATUS,m),Se().removeEventListener(ge.CONVERSATION_SELECTED,L),Se().removeEventListener(Y.RECV_NEW_MESSAGES,M)}),(E,g)=>{const v=ve("rc-icon-notification");return w(),P("div",{class:Je(["rc-conversation-detail-bar",{"is-h5":n.value}])},[n.value&&e.showBack?(w(),P("div",{key:0,class:"back-button",onClick:r},[...g[0]||(g[0]=[y("span",{class:"back-icon"},"<",-1)])])):ue("",!0),y("div",eE,[y("img",{onClick:u,class:"icon",src:e.conversation.portraitUri,alt:"Conversation Icon"},null,8,tE),y("div",sE,[y("div",nE,[y("span",iE,oe(e.conversation.name),1),e.conversation.notificationLevel===5?(w(),Le(v,{key:0})):ue("",!0),s.value?(w(),P(De,{key:1},[y("img",{class:"member-icon",src:x(c5),alt:"Group Members Icon"},null,8,rE),y("span",oE,oe(e.conversation.memberCount),1)],64)):ue("",!0)])]),h.value&&!s.value?(w(),P("span",aE,oe(_.value),1)):ue("",!0)]),y("div",lE,[(w(!0),P(De,null,Ot(l.value,C=>(w(),P("img",{class:"extension-icon",src:C.icon,key:C.id,alt:"Extension Icon",onClick:b=>c(C)},null,8,cE))),128))])],2)}}}),[["styles",[`.rc-conversation-detail-bar{width:100%;height:70px;display:flex;flex-direction:row;align-items:center;border-bottom:1px dashed #E4E7ED;position:relative;z-index:2;background-color:#fff}.info{display:flex;flex-direction:row;align-items:center;flex:1 1 auto;min-width:0}.info-main{flex:1 1 auto;min-width:0;overflow:hidden}.info-title-group{display:flex;align-items:center;min-width:0;max-width:100%}.icon{width:32px;height:32px;margin:0 10px 0 20px;flex-shrink:0}.name{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;color:#020814;font-weight:500}.member-icon{margin:0 4px 0 20px;width:12px;height:12px;flex-shrink:0}.member-count{font-size:12px;color:#bcbcbc;flex-shrink:0}.extension{margin:0 28px 0 10px;flex-shrink:0}.extension-icon{width:26px;height:26px;margin-right:10px;cursor:pointer}.typing-content{margin-left:5px;font-size:12px;color:#7c838e;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.back-button{width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-left:5px;font-weight:500;color:#000;flex-shrink:0}.is-h5 .icon{margin-left:10px}.is-h5 .extension{margin-right:12px}.is-h5 .typing-content{display:none}
|
|
382
|
-
`]]]);var cc=(e=>(e.LEFT_JUSTIFYING="left-justifying",e.LEFT_RIGHT="left-right",e))(cc||{});const v0={radius:20,layout:"left-right",backgroundColorForMyself:"#D2E1FE",backgroundColorForOthers:"#F3F5FA",textColorForMyself:"#020814",textColorForOthers:"#020814",showMyProfileInPrivateConversation:!0,showMyNameInPrivateConversation:!1,showMyProfileInGroupConversation:!0,showMyNameInGroupConversation:!1,showOthersProfileInPrivateConversation:!0,showOthersNameInPrivateConversation:!1,showOthersProfileInGroupConversation:!0,showOthersNameInGroupConversation:!0},dE=e=>({...e});class fE extends Ss{constructor(s){super(s);K(this,"messageBubbleCfg",{});this.setMessageBubbleCfg(v0)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this.setMessageBubbleCfg(v0)}cloneMessageBubbleCfg(){return dE(this.messageBubbleCfg)}setMessageBubbleCfg(s){this.messageBubbleCfg={...this.messageBubbleCfg,...s}}}var Zt=(e=>(e.REPLY="message.menu.item.reply",e.MULTI_CHOICE="message.menu.item.multi.choice",e.COPY="message.menu.item.copy",e.FORWARD="message.menu.item.forward",e.DELETE="message.menu.item.delete",e.SPEECH_TO_TEXT="message.menu.item.speech.to.text",e.CANCEL_SPEECH_TO_TEXT="message.menu.item.cancel.speech.to.text",e.RECALL="message.menu.item.recall",e))(Zt||{});const C0=[{id:"message.menu.item.recall",icon:qh,filter:e=>e.messageDirection===f.MessageDirection.SEND&&e.sentStatus!==f.SentStatus.FAILED&&e.sentStatus!==f.SentStatus.SENDING},{id:"message.menu.item.reply",icon:Ph,filter:e=>[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.FILE,f.MessageType.RICH_CONTENT,f.MessageType.REFERENCE].includes(e.messageType)&&e.sentStatus!==f.SentStatus.SENDING&&e.sentStatus!==f.SentStatus.FAILED},{id:"message.menu.item.copy",icon:Dh,filter:e=>(e.messageType===f.MessageType.TEXT||e.messageType===f.MessageType.REFERENCE)&&!!navigator.clipboard},{id:"message.menu.item.forward",icon:Zc,filter:e=>[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.FILE,f.MessageType.RICH_CONTENT,f.MessageType.HQ_VOICE,f.MessageType.VOICE,f.MessageType.COMBINE,f.MessageType.COMBINE_V2,f.MessageType.GIF,f.MessageType.SIGHT,f.MessageType.FILE,f.MessageType.REFERENCE].includes(e.messageType)&&e.sentStatus!==f.SentStatus.SENDING&&e.sentStatus!==f.SentStatus.FAILED},{id:"message.menu.item.multi.choice",icon:Vh},{id:"message.menu.item.delete",icon:qc,filter:e=>e.sentStatus!==f.SentStatus.SENDING}],ga=e=>e.map(t=>({...t}));class hE extends Ss{constructor(){super(...arguments);K(this,"_menu",ga(C0));K(this,"_speechToTextStore")}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._menu=ga(C0)}setSpeechToTextStore(s){this._speechToTextStore=s}getMenu(s){var l,c;const n=((l=f.getAppSettings())==null?void 0:l.isSpeechToTextEnabled)||!1,i=[f.SentStatus.SENDING,f.SentStatus.FAILED].includes(s.sentStatus),r=s.messageType===f.MessageType.HQ_VOICE,o=((c=this._speechToTextStore)==null?void 0:c.hasConverted(s.messageUId||""))||!1;let a=this._menu.filter(u=>u.id==="message.menu.item.recall"&&Date.now()-s.sentTime>this.ctx.allowedToRecallTime*1e3||s.conversationType===f.ConversationType.SYSTEM&&u.id!=="message.menu.item.copy"&&u.id!=="message.menu.item.delete"?!1:!u.filter||u.filter(s));return n&&r&&!i&&(o?a.push({id:"message.menu.item.cancel.speech.to.text",icon:zh}):a.push({id:"message.menu.item.speech.to.text",icon:Kh})),a}cloneMessageMenu(){return ga(this._menu)}setMessageMenu(s){this._menu=ga(s)}}const pE={key:0,class:"checkbox"},gE=["for"],_E=["id","value"],mE={class:"custom"},EE=["src"],vE=["data-message-uid","onMouseenter"],CE={class:"rc-kit-msg-bubble-status-row"},yE={key:0,class:"rc-kit-stt-converting"},SE={key:1,class:"rc-kit-stt-error"},TE={class:"rc-kit-stt-error-text"},IE={key:2,class:"rc-kit-stt-success"},wE={key:0,style:{padding:"5px"}},RE=450,ME=Ie(Te({__name:"message-list-provider.ce",setup(e){const t=Se(),s=N(""),n=N({}),i=N({}),r=N({}),o=N({}),a=I=>n.value[I],l=I=>{const k=i.value[I]||t.speechToTextStore.getSTTText(I)||"";return k===""?me("message.speech.to.text.empty"):k},c=I=>{if(r.value[I])return!1;if(a(I))return!0;const H=t.speechToTextStore.getSTTText(I);return H?(n.value[I]="success",i.value[I]=H,!0):!1},u=I=>{const{messageUId:k,status:H,text:X,errorCode:J}=I.data;r.value[k]||(n.value[k]=H,console.log("onSpeechToTextStateChange",k,H,X,J),J&&(o.value[k]=J),H==="success"&&X&&(i.value[k]=X))},d=["time.format.sunday","time.format.monday","time.format.tueday","time.format.wedday","time.format.thurday","time.format.friday","time.format.satday"],h=I=>{const{year:k,month:H,day:X,weekDay:J}=_i(I),ae=(Date.now()-I)/1e3/60/60/24;let xe=me("time.format.full",k,H,X);return new Date().toDateString()===new Date(I).toDateString()&&(xe=me("time.format.today")),(new Date().toDateString()!==new Date(I).toDateString()&&ae<1||1<=ae&&ae<2)&&(xe=me("time.format.yesterday")),2<=ae&&ae<7&&(xe=me(d[J])),xe},p=(I,k)=>typeof I=="string"?I:Number.isFinite(I.transactionId)?`tx-${I.transactionId}`:I.messageUId||`rc-kit-${k}`,_=ye(()=>{const I=ke.value,k=[];for(let H=I.length-1;H>=0;H-=1){const X=I[H];k.unshift(X);const J=I[H-1];J?new Date(X.sentTime).toDateString()!==new Date(J.sentTime).toDateString()&&k.unshift(h(X.sentTime)):yt||k.unshift(h(X.sentTime))}return k}),m=I=>{var k,H;return I.messageDirection===f.MessageDirection.SEND?w0.value:((k=pe.value)==null?void 0:k.conversationType)===f.ConversationType.GROUP?Dn.value.find(J=>J.userId==I.senderUserId)||{name:I.senderUserId,userId:I.senderUserId,portraitUri:(H=pe.value)==null?void 0:H.portraitUri}:{name:pe.value.name,userId:pe.value.targetId,portraitUri:pe.value.portraitUri}},L=I=>{const k=m(I);t.emit(new ie(ge.CONVERSATION_ICON_CLICK,{conversation:{conversationType:I.conversationType,targetId:I.targetId,channelId:I.channelId},profile:k}),2)},M=N(0);let E=0;const g=t.store.getCommandSwitch(xt.FOCUS_ON_LATEST_MESSAGE);let v=0;const C=I=>I.messageUId?`uid:${I.messageUId}`:I.transactionId!==void 0?`tid:${I.transactionId}`:I.messageId!==void 0?`mid:${I.messageId}`:[I.conversationType,I.targetId,I.channelId||"",I.senderUserId,I.messageType,I.sentTime].join(":"),b=(...I)=>{const k=[];I.forEach(J=>{k.push(...J)});const H=new Set,X=[];for(let J=k.length-1;J>=0;J-=1){const ae=k[J],xe=C(ae);H.has(xe)||(H.add(xe),X.unshift(ae))}return X},$=async(I,k)=>{const H={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId};if(k){const{code:Rt,list:Wt,hasMore:Zs}=await t.message.reqHistories(H,I-1,!1);Rt===f.ErrorCode.SUCCESS&&(ut.value=Zs,ke.value=b(Wt),await ot(),hs())}const{scrollHeight:X}=V.value,{code:J,list:ae,hasMore:xe}=await t.message.reqHistories(H,I,!0);return J===f.ErrorCode.SUCCESS&&(ke.value=b(ae,ke.value),yt=xe,await ot(),hs(),k?V.value.scrollTop=V.value.scrollHeight-X:V.value.scrollTop=V.value.scrollHeight-V.value.offsetHeight),ke.value},F=async()=>{var Zs,En;if(!pe.value)return;const{conversationType:I,targetId:k,channelId:H,unreadCount:X}=pe.value,J={conversationType:I,targetId:k,channelId:H};if(ke.value.length=0,v=0,zs=null,Nn.value=X,f.electronExtension.enable()){const{data:Ws}=await f.getFirstUnreadMessage(J);E=(Ws==null?void 0:Ws.sentTime)||0,g||(v=E)}const ae=!g&&v>0,xe=await $(v,ae);if(g&&f.electronExtension.enable()&&X){const Ws=X-xe.length;M.value=Ws<0?0:Ws}const Rt=xe.length,Wt=((Zs=xe[Rt-1])==null?void 0:Zs.sentTime)||((En=pe.value.latestMessage)==null?void 0:En.sentTime)||Date.now();Nn.value?(await t.conversation.clearUnreadCountByTimestamp(J,Wt),await t.message.sendReadReceiptMessage(J,xe)):f.electronExtension.enable()||await t.message.sendReadReceiptMessage(J,xe)},A=(I,k)=>!0,U=N(),O=I=>{var ae,xe,Rt,Wt;const k=(ae=U.value)==null?void 0:ae.showMyProfileInGroupConversation,H=(xe=U.value)==null?void 0:xe.showMyProfileInPrivateConversation,X=(Rt=U.value)==null?void 0:Rt.showOthersProfileInGroupConversation,J=(Wt=U.value)==null?void 0:Wt.showOthersProfileInPrivateConversation;return I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.PRIVATE?!!H:I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.GROUP?!!k:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.PRIVATE?!!J:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.GROUP?!!X:!1},T=I=>{var ae,xe,Rt,Wt;const k=(ae=U.value)==null?void 0:ae.showMyNameInPrivateConversation,H=(xe=U.value)==null?void 0:xe.showMyNameInGroupConversation,X=(Rt=U.value)==null?void 0:Rt.showOthersNameInGroupConversation,J=(Wt=U.value)==null?void 0:Wt.showOthersNameInPrivateConversation;return I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.PRIVATE?!!k:I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.GROUP?!!H:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.PRIVATE?!!J:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.GROUP?!!X:!1},D=I=>{var k;return I.messageDirection===1&&((k=U.value)==null?void 0:k.layout)===cc.LEFT_RIGHT?"row-reverse":"row"},z=(I,k)=>{if(!U.value)return;const H=Vn(U.value.textColorForOthers),X=Vn(U.value.backgroundColorForOthers),J=Vn(U.value.textColorForMyself),ae=Vn(U.value.backgroundColorForMyself);let xe=H,Rt=X,Wt=`${U.value.radius}px`;return I.messageDirection===f.MessageDirection.SEND&&(xe=J,Rt=ae),[j.MessageType.IMAGE,j.MessageType.SIGHT,j.MessageType.GIF].includes(I.messageType)&&(Rt=Rt+"00"),{color:xe,backgroundColor:Rt,borderRadius:Wt}},ee=I=>{var k;return I.messageDirection===1&&((k=U.value)==null?void 0:k.layout)==="left-right"},te=I=>{if(![j.SentStatus.SENDING,j.SentStatus.FAILED].includes(I.sentStatus))switch(I.messageType){case j.MessageType.IMAGE:t.emit(new ie(ge.MEDIA_MESSAGE_MODAL_EVENT,I));break;case j.MessageType.SIGHT:t.audioPlayer.pause(),t.emit(new ie(ge.MEDIA_MESSAGE_MODAL_EVENT,I));break;case j.MessageType.GIF:t.emit(new ie(ge.MEDIA_MESSAGE_MODAL_EVENT,I));break;case j.MessageType.COMBINE:case j.MessageType.COMBINE_V2:t.emit(new ie(ge.COMBINE_MESSAGE_MODAL_EVENT,I));break}},ne=N(),V=N(),Ae=N(),wt=N([]),Qe=tn({left:0,top:0,display:"none"}),gt=Sc(V),As=N(),ce=N(!1),_e=()=>{ce.value=ps()},Xe=(I,k)=>{if(!ne.value)return 0;const H=ne.value.getBoundingClientRect(),X=k-H.top;return H.height-X<I?X-I:X},nt=(I,k)=>{if(!ne.value)return 0;const H=ne.value.getBoundingClientRect(),X=k-H.left;return H.width-X<I?X-I:X},os=async(I,k)=>{if(Os.value)return;Ht();let H=k;"detail"in k&&Array.isArray(k.detail)&&k.detail[0]instanceof MouseEvent&&(H=k.detail[0]),As.value=I;let X=t.msgMenu.getMenu(I).map(J=>({id:J.id,icon:J.icon,label:me(J.id),message:I}));if(I.messageType===j.MessageType.HQ_VOICE&&I.messageUId){const J=c(I.messageUId),ae=X.findIndex(xe=>xe.id===Zt.SPEECH_TO_TEXT||xe.id===Zt.CANCEL_SPEECH_TO_TEXT);ae!==-1&&(J?X[ae]={id:Zt.CANCEL_SPEECH_TO_TEXT,icon:X[ae].icon,label:me(Zt.CANCEL_SPEECH_TO_TEXT),message:I}:X[ae]={id:Zt.SPEECH_TO_TEXT,icon:X[ae].icon,label:me(Zt.SPEECH_TO_TEXT),message:I})}wt.value.splice(0,wt.value.length,...X),Qe.left=nt(Ae.value.clientWidth,H.clientX),Qe.display="block",await ot(),Qe.top=Xe(Ae.value.clientHeight,H.clientY),Qe.left=nt(Ae.value.clientWidth,H.clientX)},et=async(I,k)=>{switch(t.statistic(li.CONVERSATION_MESSAGE_OPTION_CLICK),I){case Zt.COPY:const H=k.content.content||"";if(!navigator.clipboard||!H)return;navigator.clipboard.writeText(H),t.emit(new ie(ge.TOAST_EVENT,{message:t.i18n.format("toast.copy.success"),showIcon:!0}));break;case Zt.DELETE:A0([k]);break;case Zt.RECALL:Ev([k]);break;case Zt.MULTI_CHOICE:Os.value=!0;break;case Zt.REPLY:pt.value=k;break;case Zt.FORWARD:L0(Fn.SINGLE,[k]);break;case Zt.SPEECH_TO_TEXT:if(k.messageUId)if(delete r.value[k.messageUId],t.speechToTextStore.hasConverted(k.messageUId)){const J=t.speechToTextStore.getSTTText(k.messageUId)||"";n.value[k.messageUId]="success",i.value[k.messageUId]=J}else n.value[k.messageUId]="converting",await t.speechToTextStore.requestForMessage(k);break;case Zt.CANCEL_SPEECH_TO_TEXT:k.messageUId&&(r.value[k.messageUId]=!0,delete n.value[k.messageUId],delete i.value[k.messageUId]);break;default:t.emit(new ie(ge.MESSAGE_MENU_ITEM_CLICK,{id:I,message:k}));break}},$t=()=>{Qe.display="none"};ls(()=>Qe.display,I=>{I==="block"?gt.disableScroll():gt.enableScroll()});const qi=(I,k)=>{I.sentStatus===j.SentStatus.FAILED?t.message.resendMessage(I):I.conversationType===f.ConversationType.GROUP&&(I.sentStatus===j.SentStatus.SENT||I.sentStatus===j.SentStatus.READ)&&t.readReceiptVersion===j.GroupReadReceiptVersion.V5&&(S.value=I.messageUId,tt(I,k))},Ks=N(!1),S=N(""),R=N(null),G=N([]),Q=N([]),q=N(void 0),W=N(void 0),le=N(!1),re=N(!1),se=N(!1),Z=N(!1),fe=tn({top:0,left:0,anchor:"top-right"}),de=N(null),Ce=N(0),Me=N(0),$e=I=>{var Ee,pi;if(!V.value||!ne.value)return;if(!I)if((Ee=R.value)!=null&&Ee.messageUId){const vn=(pi=V.value)==null?void 0:pi.querySelector(`.rc-kit-msg-list-item[data-message-uid="${R.value.messageUId}"]`);if(vn){const Mt=vn.querySelector(".rc-kit-msg-sent-status")||vn.querySelector(".rc-kit-message-sent-status");if(Mt)de.value=Mt,I=Mt;else{console.warn("[ReadReceipt] status element not found during update");return}}else{console.warn("[ReadReceipt] message item not found during update");return}}else return;const k=I.getBoundingClientRect(),H=ne.value.getBoundingClientRect(),X=k.top-H.top,J=k.bottom-H.top,ae=k.left-H.left,xe=k.right-H.left,Rt=H.height/2,Wt=344,Zs=20,En=X<Rt,Ws=xe+Zs+Wt<=H.width;if(ae-Wt>=0)En?(fe.top=X,fe.left=ae,fe.anchor="top-right"):(fe.top=J,fe.left=ae,fe.anchor="bottom-right");else if(Ws)En?(fe.top=X,fe.left=xe+Zs,fe.anchor="top-left"):(fe.top=J,fe.left=xe+Zs,fe.anchor="bottom-left");else{const vn=H.width/2;En?(fe.top=X,fe.left=vn,fe.anchor="top-center"):(fe.top=J,fe.left=vn,fe.anchor="bottom-center")}},tt=async(I,k)=>{var X;if($t(),!I.messageUId||I.conversationType!==f.ConversationType.GROUP){console.log("[ReadReceipt] handleShowReadReceiptModal: invalid message",{messageUId:I.messageUId,conversationType:I.conversationType});return}R.value=I,G.value=[],Q.value=[],q.value=void 0,W.value=void 0,le.value=!1,re.value=!1,Ce.value=0,Me.value=0,await ot();let H=null;if(k&&k.target){const J=k.target;J&&typeof J.closest=="function"&&(H=J.closest(".rc-kit-msg-sent-status")||J.closest(".rc-kit-message-sent-status")),!H&&J&&(J.classList.contains("rc-kit-msg-sent-status")||J.classList.contains("rc-kit-message-sent-status"))&&(H=J)}if(!H){const J=(X=V.value)==null?void 0:X.querySelector(`.rc-kit-msg-list-item[data-message-uid="${I.messageUId}"]`);J&&(H=J.querySelector(".rc-kit-msg-sent-status")||J.querySelector(".rc-kit-message-sent-status"))}H?(de.value=H,$e(H)):(console.warn("[ReadReceipt] status element not found, using default position"),fe.top=ne.value?ne.value.clientHeight/2:0,fe.left=ne.value?ne.value.clientWidth/2:0,fe.anchor="top-left"),await Promise.all([ze(I,!0),Ft(I,!0)]),Ks.value=!0},ze=async(I,k=!1)=>{if(!se.value){se.value=!0;try{const H={conversationType:I.conversationType,targetId:I.targetId,channelId:I.channelId},X=15,{code:J,data:ae}=await t.message.getMessagesReadReceiptUsersByPageV5(H,I.messageUId,{pageToken:q.value,count:X,type:"read"});J===f.ErrorCode.SUCCESS&&ae?(G.value.push(...ae.users||[]),q.value=ae.pageToken,Ce.value=ae.totalCount||0,le.value=ae.totalCount&&ae.totalCount>G.value.length):console.warn("[ReadReceipt] loadReadUsers: failed",{code:J,data:ae})}catch(H){console.warn("[ReadReceipt] loadReadUsers error:",H)}finally{se.value=!1}}},Ft=async(I,k=!1)=>{if(!Z.value){Z.value=!0;try{const H={conversationType:I.conversationType,targetId:I.targetId,channelId:I.channelId},X=15,{code:J,data:ae}=await t.message.getMessagesReadReceiptUsersByPageV5(H,I.messageUId,{pageToken:W.value,count:X,type:"unread"});J===f.ErrorCode.SUCCESS&&ae?(Q.value.push(...ae.users||[]),W.value=ae.pageToken,Me.value=ae.totalCount||0,re.value=ae.totalCount&&ae.totalCount>Q.value.length):console.warn("[ReadReceipt] loadUnreadUsers: failed",{code:J,data:ae})}catch(H){console.warn("[ReadReceipt] loadUnreadUsers error:",H)}finally{Z.value=!1}}},Ut=async(I,k)=>{if(!R.value)return;const H=I.scrollTop||0,X=I.scrollHeight||0,J=I.clientHeight||0;X-H-J<50&&(k==="read"&&le.value&&!se.value?await ze(R.value,!1):k==="unread"&&re.value&&!Z.value&&await Ft(R.value,!1))},fs=I=>{const[k,H]=I.detail;Ut(k,H)},Ht=()=>{console.log("[ReadReceipt] handleCloseReadReceiptModal"),Ks.value=!1,R.value=null,G.value=[],Q.value=[],q.value=void 0,W.value=void 0,le.value=!1,re.value=!1,Ce.value=0,Me.value=0,de.value=null},Pn=I=>{Ks.value&&(I.target.closest(".read-receipt-popover")||Ht())};let zs=null,yt=!0,ut=N(!1);const mn=N(1),Zi=N(0),zr=N(0),_c=N(),qr=N(!0),Wi=N(!1),mc=N(!1);let qs=null;const Dv=()=>{mc.value=!0,Wi.value=!0,qs&&clearTimeout(qs)},Pv=()=>{mc.value=!1,qs&&clearTimeout(qs),qs=setTimeout(()=>{Wi.value=!1},1e3)},Vv=()=>{if(gt.isScrollDisabled||(Wi.value=!0,qs&&clearTimeout(qs),mc.value||(qs=setTimeout(()=>{Wi.value=!1},1e3)),!pe.value||ke.value.length===0))return;const I={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},{scrollHeight:k,scrollTop:H,clientHeight:X}=V.value;if(qr.value=k-X-H<=100,zr.value=V.value.scrollTop*100/X*mn.value||0,H<=200&&!zs){if(!yt)return;zs=setTimeout(async()=>{$v(I,k)},1e3)}if(Ks.value&&$e(de.value),ut.value&&k-H-X<=200&&!zs){if(!ut.value)return;zs=setTimeout(async()=>{Fv(I,X)},1e3)}},$v=async(I,k)=>{const{hasMore:H,code:X,list:J}=await t.message.reqHistories(I,ke.value[0].sentTime,!0);if(X===f.ErrorCode.SUCCESS){if(ke.value=[...J,...ke.value],yt=H,M.value){const ae=M.value-J.length;M.value=ae<0?0:ae}await ot(),hs(),V.value.scrollTop=V.value.scrollHeight-k,ke.value.length>300&&(ke.value.splice(300),await ot(),hs(),ut.value=!0),I.conversationType===f.ConversationType.GROUP&&f.electronExtension.enable()&&await t.message.sendReadReceiptMessage(I,J)}zs=null},Fv=async(I,k)=>{const{hasMore:H,code:X,list:J}=await t.message.reqHistories(I,ke.value[ke.value.length-1].sentTime,!1);if(X===0){ke.value=[...ke.value,...J],ut.value=H,Nn.value&&(f.electronExtension.enable()&&(await t.conversation.clearUnreadCountByTimestamp(I,J[J.length-1].sentTime),await t.message.sendReadReceiptMessage(I,J)),!f.electronExtension.enable()&&!H&&(await t.conversation.clearUnreadCountByTimestamp(I,J[J.length-1].sentTime),await t.message.sendReadReceiptMessage(I,J))),await ot(),hs(),zr.value=V.value.scrollTop*100/k*mn.value||0;const ae=_c.value.offsetHeight;ke.value.length>300&&(ke.value.splice(0,ke.value.length-300),await ot(),hs(),V.value.scrollTop=V.value.scrollTop-(ae-_c.value.offsetHeight))}zs=null},Hv=I=>{if(gt.isScrollDisabled||!V.value)return;const k=I.detail[0];V.value.scrollTop=k*V.value.scrollHeight/100},hs=()=>{if(!V.value)return;const I=V.value.offsetHeight**2/V.value.scrollHeight,k=Math.floor(I*100)/100,H=Math.max(k,20),X=k/(V.value.offsetHeight-k)/(H/(V.value.offsetHeight-H));mn.value=Math.floor(X*100)/100||1,Zi.value=k<V.value.offsetHeight?Math.floor(H):0},Ec=async()=>{if(await ot(),!V.value)return;hs();const{scrollHeight:I,clientHeight:k}=V.value;V.value.scrollTop=Math.max(I-k,0),qr.value=!0},Gv=async()=>{if(!pe.value)return;const I={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},{code:k,list:H,hasMore:X}=await t.message.reqHistories(I,0,!0);if(k===f.ErrorCode.SUCCESS){ke.value.length=0,ke.value=H,yt=X,ut.value=!1,await ot(),hs();const{scrollHeight:J,offsetHeight:ae}=V.value;if(V.value.scrollTop=J-ae,zr.value=V.value.scrollTop*100/ae*mn.value,await t.conversation.clearUnreadCountByTimestamp(I,H[H.length-1].sentTime),f.electronExtension.enable()){const{data:xe}=await f.getFirstUnreadMessage(I);xe&&xe.sentTime>H[0].sentTime&&H.unshift(mi(xe))}await t.message.sendReadReceiptMessage(I,H)}},Bv=async()=>{if(!pe.value)return;const I={conversationType:pe.value.conversationType,channelId:pe.value.channelId,targetId:pe.value.targetId};M.value=0,ut.value=!0,hs();const k=await $(E,!0);k.length&&await t.message.sendReadReceiptMessage(I,k)},vc=N(),jv=ls(Ls,I=>{const k=bs.value.length,H=[];I.forEach(X=>{const J=ke.value.findIndex(ae=>ae.messageUId?ae.messageUId==X:`${ae.transactionId}`==X);J>-1&&H.push(ke.value[J])}),bs.value.splice(0,k,...H)},{deep:!0}),Kv=()=>{if(!ne.value||!V.value||!vc.value)return;const I=ne.value.getBoundingClientRect().top,k=vc.value.getBoundingClientRect().top-I,H=V.value.querySelectorAll(".rc-kit-msg-list-box");for(let X=H.length-1;X>=1&&H[X].getBoundingClientRect().top-I>k;X--){const ae=H[X].querySelectorAll(".checkbox input");if(ae.length<=0)continue;zv(ae)}Hr.value=!Hr.value},zv=I=>{if(Hr.value)I[0].checked=!0,Ls.value.findIndex(H=>I[0].value===H)===-1&&Ls.value.unshift(I[0].value);else{I[0].checked=!1;const k=Ls.value.findIndex(H=>I[0].value===H);k>=0&&Ls.value.splice(k,1)}},F0=async I=>{I.data.forEach(k=>{const{target:H,recallMsg:X}=k,J=ke.value.findIndex(ae=>ae.transactionId===H.transactionId||ae.messageUId&&ae.messageUId===H.messageUId);if(J!==-1)if(X){ke.value.splice(J,1,X);const ae=Ls.value.findIndex(xe=>xe===X.content.messageUId);if(ae===-1)return;Ls.value.splice(ae,1)}else ke.value.splice(J,1)}),await ot(),hs()},H0=I=>{const{message:k}=I.data,H=yn(ke.value,X=>X.transactionId===k.transactionId);H!==-1&&ke.value.splice(H,1,{...k})},G0=I=>{I.data.forEach(k=>{if(_t(pe.value,k)){const H=yn(ke.value,ae=>ae.messageUId?ae.messageUId===k.messageUId:ae.transactionId===k.transactionId);if(H===-1)return;const X=ke.value[H].sentTime,J=JSON.parse(JSON.stringify(k));if(k.sentTime!==X){ke.value.splice(H,1);const ae=yn(ke.value,xe=>xe.sentTime<=k.sentTime);ke.value.splice(ae+1,0,J)}else ke.value.splice(H,1,J)}})},qv=I=>{t.emit(new ie(ge.MESSAGE_LINK_CLICK,I.detail[0]))},B0=async I=>{if(!pe.value)return;const k={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},H=[];if(I.data.forEach(async J=>{const ae=ke.value.findIndex(xe=>xe.messageUId===J.messageUId);_t(k,J)&&ae<0&&H.push(J)}),!H.length)return;if(!qr.value||ut.value){ut.value=!0;return}ke.value=b(ke.value,H),Ec();const X=H.length;setTimeout(async()=>{const{code:J}=await t.conversation.clearUnreadCountByTimestamp(k,H[X-1].sentTime);J===f.ErrorCode.SUCCESS&&await t.message.sendReadReceiptMessage(k,H)},100)},j0=async I=>{if(ut.value){const{code:k,list:H,hasMore:X}=await t.message.reqHistories({conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},0,!0);k===f.ErrorCode.SUCCESS&&(ke.value.length=0,ke.value=b(H),yt=X,ut.value=!1,Ec());return}I.data.forEach(async k=>{_t(pe.value,k)&&(ke.value=b(ke.value,[k]),ke.value.length>300&&ke.value.splice(0,ke.value.length-300),Ec())})},K0=I=>{yt=!0,ut.value=!1,Os.value=!1,M.value=0,F()};let Ea=null;const Zv=(I,k)=>{let H=null;return window&&"ResizeObserver"in window&&I&&(H=new ResizeObserver(k),H.observe(I)),H},va=I=>{Os.value&&I.stopImmediatePropagation()},Wv=()=>{V.value&&(hs(),zr.value=V.value.scrollTop*100/V.value.offsetHeight*mn.value||0)},z0=async()=>{V.value&&(await ot(),requestAnimationFrame(()=>{if(!V.value)return;const I=V.value,{scrollHeight:k,scrollTop:H,clientHeight:X}=I,J=k-X-H;(qr.value||J<=RE)&&requestAnimationFrame(()=>{if(!V.value)return;const{scrollHeight:xe,clientHeight:Rt}=V.value;V.value.scrollTop=Math.max(xe-Rt,0),qr.value=!0})}))};return at(async()=>{window.addEventListener("click",$t),window.addEventListener("click",Pn),_e(),window.addEventListener("resize",_e),window.addEventListener("resize",hs),t.addEventListener(ge.CONVERSATION_SELECTED,K0),t.addEventListener(Y.RECV_NEW_MESSAGES,B0),t.addEventListener(Y.INSERT_NEW_MESSAGES,j0),t.addEventListener(ge.MESSAGES_DELETED,F0),t.addEventListener(Y.MESSAGE_STATE_CHANGE,G0),t.addEventListener(Y.FILE_UPLOAD_PROGRESS,H0),t.addEventListener(Y.SPEECH_TO_TEXT_STATE_CHANGE,u),t.addEventListener(Y.ADJUST_MESSAGE_LIST_SCROLL,z0),F(),U.value=t.bubble.messageBubbleCfg,V.value&&(Ea=Zv(V.value,Wv))}),Tt(()=>{gt.enableScroll(),qs&&clearTimeout(qs),t.removeEventListener(ge.CONVERSATION_SELECTED,K0),t.removeEventListener(Y.RECV_NEW_MESSAGES,B0),t.removeEventListener(Y.INSERT_NEW_MESSAGES,j0),t.removeEventListener(ge.MESSAGES_DELETED,F0),t.removeEventListener(Y.MESSAGE_STATE_CHANGE,G0),t.removeEventListener(Y.FILE_UPLOAD_PROGRESS,H0),t.removeEventListener(Y.SPEECH_TO_TEXT_STATE_CHANGE,u),t.removeEventListener(Y.ADJUST_MESSAGE_LIST_SCROLL,z0),window.removeEventListener("click",$t),window.removeEventListener("click",Pn),window.removeEventListener("resize",_e),window.removeEventListener("resize",hs),jv(),V.value&&(Ea==null||Ea.unobserve(V.value))}),(I,k)=>{var Cc;const H=ve("rc-message-time"),X=ve("rc-grey-message-provider"),J=ve("rc-icon"),ae=ve("rc-message-sent-status"),xe=ve("rc-message-bubble"),Rt=ve("rc-scrollbar-thumb-provider"),Wt=ve("rc-message-list-menu-item"),Zs=ve("rc-message-select"),En=ve("rc-message-location"),Ws=ve("rc-read-receipt-modal");return x(pe)?(w(),P("div",{key:0,class:"rc-kit-msg-list",ref_key:"messageViewportRef",ref:ne},[y("div",{class:"rc-kit-msg-list-scroll",ref_key:"messageListRef",ref:V,onScroll:Vv},[y("div",{ref_key:"messageBoxRef",ref:_c,style:{padding:"10px"}},[(w(!0),P(De,null,Ot(_.value,(Ee,pi)=>{var vn;return w(),P("div",{class:"rc-kit-msg-list-box",key:p(Ee,pi)},[typeof Ee!="string"&&Ee.sentStatus!==10&&x(Os)&&!x(b0)(Ee.messageType)?(w(),P("div",pE,[y("label",{for:Ee.messageUId||`${Ee.transactionId}`},[_s(y("input",{id:Ee.messageUId||`${Ee.transactionId}`,type:"checkbox","onUpdate:modelValue":k[0]||(k[0]=Mt=>dt(Ls)?Ls.value=Mt:null),value:Ee.messageUId||`${Ee.transactionId}`},null,8,_E),[[wr,x(Ls)]]),y("span",mE,[y("img",{src:x(Wc),alt:"CHECKED_ICON"},null,8,EE)])],8,gE)])):ue("",!0),typeof Ee=="string"?(w(),Le(H,{key:1,class:"rc-kit-time-section",time:Ee},null,8,["time"])):(w(),P(De,{key:2},[x(b0)(Ee.messageType)?(w(),Le(X,{key:0,class:"rc-kit-grey-message",onClickCapture:k[1]||(k[1]=Mt=>va(Mt)),message:Ee},null,8,["message"])):(w(),P("div",{key:1,class:"rc-kit-msg-list-item","data-message-uid":Ee.messageUId,style:it({"flex-direction":D(Ee)}),onClickCapture:k[2]||(k[2]=Mt=>va(Mt)),onMouseenter:Mt=>s.value=Ee.messageUId,onMouseleave:k[3]||(k[3]=Mt=>s.value="")},[O(Ee)?(w(),Le(J,{key:0,class:"rc-kit-msg-avatar",url:m(Ee).portraitUri,width:32,height:32,style:it({opacity:A(Ee,_.value[pi-1])?1:0}),radius:50,onClick:Mt=>L(Ee),online:!1},null,8,["url","style","onClick"])):ue("",!0),y("div",{class:Je(["rc-kit-msg-bubble-wrapper",{"rc-kit-msg-bubble-wrapper-right":ee(Ee)}])},[y("div",CE,[x(x0)(Ee)?(w(),Le(ae,{key:0,class:"rc-kit-msg-sent-status",type:0,message:Ee,onSentStatusClick:Mt=>qi(Ee,Mt)},null,8,["message","onSentStatusClick"])):ue("",!0),Re(xe,{class:"rc-kit-msg-bubble",showname:T(Ee),align:ee(Ee),message:Ee,"message-uid":Ee.messageUId,profile:m(Ee),"is-h5":ce.value,"bubble-color-style":z(Ee,A(Ee,_.value[pi-1])),"menu-active":Qe.display==="block"&&((vn=As.value)==null?void 0:vn.messageUId)===Ee.messageUId,"is-item-hover":s.value===Ee.messageUId,onSentStatusClick:Mt=>qi(Ee),onClick:Mt=>te(Ee),onMenuClick:Mt=>os(Ee,Mt),onContextmenu:vs(Mt=>os(Ee,Mt),["prevent"])},{default:ft(()=>[(w(),Le(el(x(O0)(Ee.messageType)),{onLink:qv,message:Ee},null,40,["message"]))]),_:2},1032,["showname","align","message","message-uid","profile","is-h5","bubble-color-style","menu-active","is-item-hover","onSentStatusClick","onClick","onMenuClick","onContextmenu"])]),Ee.messageType===x(j.MessageType).HQ_VOICE&&Ee.messageUId&&c(Ee.messageUId)?(w(),P("div",{key:0,class:Je(["rc-kit-stt-status",{"rc-kit-stt-status-right":ee(Ee)}])},[a(Ee.messageUId)==="converting"?(w(),P("div",yE,[...k[6]||(k[6]=[y("div",{class:"rc-kit-stt-loading"},[y("div",{class:"rc-kit-stt-loading-dot"}),y("div",{class:"rc-kit-stt-loading-dot"}),y("div",{class:"rc-kit-stt-loading-dot"})],-1)])])):a(Ee.messageUId)==="error"?(w(),P("div",SE,[Re(J,{url:x(e1),radius:50,width:16,height:16,class:"rc-kit-stt-error-icon"},null,8,["url"]),y("span",TE,oe(o.value[Ee.messageUId]===x(f.ErrorCode).SPEECH_TO_TEXT_MESSAGE_CONTENT_UNSUPPORTED?x(We)("message.speech.to.text.unsupported"):x(We)("message.speech.to.text.failed")),1)])):a(Ee.messageUId)==="success"?(w(),P("div",IE,oe(l(Ee.messageUId)),1)):ue("",!0)],2)):ue("",!0)],2)],44,vE))],64))])}),128))],512)],544),Zi.value?(w(),Le(Rt,{key:0,onHandlemove:Hv,onMouseenter:Dv,onMouseleave:Pv,height:Zi.value,move:zr.value,scrollheight:(Cc=V.value)==null?void 0:Cc.scrollHeight,ratio:mn.value,style:it({opacity:Wi.value?1:0,transition:"opacity 0.5s",pointerEvents:Wi.value?"auto":"none"})},null,8,["height","move","scrollheight","ratio","style"])):ue("",!0),ce.value&&Qe.display==="block"?(w(),P("div",{key:1,class:"rc-message-list-menu-mask",onClick:$t})):ue("",!0),y("div",{class:"rc-message-list-menu",ref_key:"messageMenuRef",ref:Ae,style:it({top:`${Qe.top}px`,left:`${Qe.left}px`,display:Qe.display})},[wt.value.length>0?(w(),P("div",wE,[(w(!0),P(De,null,Ot(wt.value,Ee=>(w(),Le(Wt,{icon:Ee.icon,id:Ee.id,label:Ee.label,onClick:pi=>et(Ee.id,Ee.message)},null,8,["icon","id","label","onClick"]))),256))])):ue("",!0)],4),x(Os)?(w(),Le(Zs,{key:2,class:"rc-kit-select",selected:!!x(Hr),onSelect:Kv,ref_key:"DOMSelect",ref:vc},null,8,["selected"])):ue("",!0),x(Nn)>0&&x(ut)?(w(),Le(En,{key:3,onClickCapture:k[4]||(k[4]=Ee=>va(Ee)),count:x(Nn),direction:1,onLocation:Gv},null,8,["count"])):ue("",!0),M.value>0&&x(g)?(w(),Le(En,{key:4,onClickCapture:k[5]||(k[5]=Ee=>va(Ee)),count:M.value,direction:0,onLocation:Bv},null,8,["count"])):ue("",!0),Ks.value?(w(),Le(Ws,{key:5,message:R.value,visible:Ks.value,"read-users":G.value,"unread-count":Me.value,"read-count":Ce.value,"unread-users":Q.value,"read-loading":se.value,"unread-loading":Z.value,position:fe,onClose:Ht,onReadStatusScroll:fs},null,8,["message","visible","read-users","unread-count","read-count","unread-users","read-loading","unread-loading","position"])):ue("",!0)],512)):ue("",!0)}}}),[["styles",[`p{margin:0}ul,li{padding:0;margin:0;list-style:none}.rc-kit-msg-list{position:relative;overflow:hidden;height:100%;box-sizing:border-box}.rc-kit-msg-list-scroll{overflow-y:scroll;overflow-x:hidden;height:100%;scrollbar-width:none;box-sizing:border-box}.rc-kit-msg-list-scroll::-webkit-scrollbar{display:none}.rc-kit-msg-list-item{display:flex;flex:1;min-width:0}.rc-kit-grey-message{flex:1;text-align:center}.rc-kit-msg-avatar{padding:0 8px}.rc-kit-msg-bubble-wrapper{display:flex;flex-direction:column;max-width:70%;align-items:flex-start}.rc-kit-msg-bubble-wrapper-right{align-items:flex-end}.rc-kit-msg-bubble-status-row{display:flex;flex-direction:row;align-items:inherit;gap:4px;position:relative;min-width:0;max-width:100%}.rc-kit-msg-bubble{padding-bottom:10px;border-radius:8px 0;font-size:12px;line-height:16px;overflow:hidden;min-width:0;max-width:100%}@media (max-width: 768px){.rc-kit-msg-bubble{user-select:none;-webkit-user-select:none}}@media (min-width: 768px){.rc-kit-msg-sent-status{position:absolute;bottom:0;left:8px}}.rc-kit-msg-sent-status{width:18px;height:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding-bottom:10px}.rc-kit-stt-status{padding:9px;font-size:14px;line-height:18px;word-break:break-word;display:flex;flex-direction:column;box-sizing:border-box;border-radius:8px;background:#E3E7EF}.rc-kit-stt-status-right{align-items:flex-end;border-radius:8px}.rc-kit-stt-converting{display:flex;align-items:center}.rc-kit-stt-loading{display:block;font-size:0;color:#000;width:54px}.rc-kit-stt-loading .rc-kit-stt-loading-dot{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor;width:6px;height:6px;margin:4px;border-radius:100%;animation:ball-pulse 1s ease infinite}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(1){animation-delay:-.2s}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(2){animation-delay:-.1s}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(3){animation-delay:0ms}@keyframes ball-pulse{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.rc-kit-stt-error{display:flex;align-items:center;gap:4px}.rc-kit-stt-error-text{color:#1d2129}.rc-kit-stt-success{color:#333;min-height:18px;line-height:18px;white-space:pre-wrap;display:block}.rc-message-list-menu{position:absolute;top:0;left:0;z-index:3;background-color:#fff;border-radius:9px;box-shadow:0 5px 16px #00000014;min-width:95px}.rc-message-list-menu-mask{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%}.rc-kit-msg-list-box{display:flex;align-items:center}.rc-kit-time-section{width:100%}.rc-kit-msg-list-box .checkbox{margin-right:7px;align-self:flex-start}.rc-kit-msg-list-box .checkbox input[type=checkbox]{display:none}.rc-kit-msg-list-box .checkbox .custom{display:flex;width:16px;height:16px;border:1px solid #ABB8CB;border-radius:50%;background-color:#fff;font-size:0;justify-content:center;align-items:center;cursor:pointer}.rc-kit-msg-list-box .checkbox input[type=checkbox]:checked+.custom{background-color:#16d258;border-color:#16d258}.rc-kit-select{position:absolute;top:150px;left:0;width:100%;box-sizing:border-box;z-index:1}
|
|
383
|
-
`]]]),
|
|
384
|
-
`]]]),
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
`]]]),
|
|
388
|
-
`]]]),
|
|
389
|
-
`]],["__scopeId","data-v-
|
|
390
|
-
`]]]),
|
|
391
|
-
`]]]),
|
|
392
|
-
`]]]),je={GREY_MESSAGE_PROVIDER:"rc-grey-message-provider",SCROLLBAR_PROVIDER:"rc-scrollbar-provider",SCROLLBAR_THUMB_PROVIDER:"rc-scrollbar-thumb-provider",MODAL_PROVIDER:"rc-modal-provider",MODAL_CONFIRM_PROVIDER:"rc-modal-confirm-provider",MODAL_ALERT_PROVIDER:"rc-modal-alert-provider",MODAL_FORWARDING_PROVIDER:"rc-modal-forwarding-provider",MODAL_DELETE_MESSAGE_PROVIDER:"rc-modal-delete-message-provider",MODAL_MEDIA_MESSAGE_PROVIDER:"rc-modal-media-message-provider",MODAL_COMBINE_MESSAGE_PROVIDER:"rc-modal-combine-message-provider",MODAL_TAKE_PHOTO_PROVIDER:"rc-modal-take-photo-provider",CONVERSATION_LIST_CONTAINER_PROVIDER:"rc-conversation-list-container-provider",CONVERSATION_LIST_PROVIDER:"rc-conversation-list-provider",CONVERSATION_DETAIL_PROVIDER:"rc-conversation-detail-provider",InputProvider:"rc-input-provider",MESSAGLISTPROVIDER:"rc-message-list-provider",CONVERSATION_DETAIL_BAR_PROVIDER:"rc-conversation-detail-bar-provider",EMOJI_PANEL_PROVIDER:"rc-emoji-panel-provider",MULTI_CHOICE_MENU_PROVIDER:"rc-multi-choice-menu-provider",AT_USERS_PANEL_PROVIDER:"rc-at-users-panel-provider",HQ_VOICE_MESSAGE_PROVIDER:"rc-hq-voice-message-privider",FileTransferCtrlProvider:"rc-file-transfer-ctrl-provider",APP_PROVIDER:"rc-imkit-app-provider",TOAST_PROVIDER:"rc-toast-provider"},lv={[je.GREY_MESSAGE_PROVIDER]:BE,[je.SCROLLBAR_PROVIDER]:Mm,[je.SCROLLBAR_THUMB_PROVIDER]:Om,[je.MODAL_PROVIDER]:u_,[je.MODAL_CONFIRM_PROVIDER]:g_,[je.MODAL_ALERT_PROVIDER]:C_,[je.MODAL_FORWARDING_PROVIDER]:P_,[je.MODAL_DELETE_MESSAGE_PROVIDER]:G_,[je.MODAL_MEDIA_MESSAGE_PROVIDER]:X_,[je.MODAL_TAKE_PHOTO_PROVIDER]:fm,[je.MODAL_COMBINE_MESSAGE_PROVIDER]:Rm,[je.CONVERSATION_LIST_PROVIDER]:r_,[je.CONVERSATION_DETAIL_PROVIDER]:tv,[je.CONVERSATION_LIST_CONTAINER_PROVIDER]:ov,[je.InputProvider]:Xm,[je.MESSAGLISTPROVIDER]:ME,[je.CONVERSATION_DETAIL_BAR_PROVIDER]:uE,[je.EMOJI_PANEL_PROVIDER]:NE,[je.MULTI_CHOICE_MENU_PROVIDER]:DE,[je.AT_USERS_PANEL_PROVIDER]:$E,[je.HQ_VOICE_MESSAGE_PROVIDER]:FE,[je.FileTransferCtrlProvider]:ZE,[je.APP_PROVIDER]:av,[je.TOAST_PROVIDER]:XE};let Ke;const uc=N(""),S0=()=>{uc.value=Se().userId,vo(Vr.CURRENT_USER_ID,uc),vo(Vr.LANGUAGE,rr(ai))},T0=N(!0),I0=N(!0);let dc=N(void 0);const pe=N(null),Ne=N(),Nn=N(0),Dn=N([]),w0=N(),cv=async e=>{const{status:t}=e.data;if(t===f.RCConnectionStatus.CONNECTED){const s=f.getCurrentUserId(),n=await Ke.appData.requestUserProfiles([s]);w0.value=n[0]}},uv=async e=>{var o;const t=(o=e.data)==null?void 0:o.conversation;if(pe.value=t||null,Dn.value.length=0,Se().audioPlayer.pause(),!t)return;const{conversationType:s,targetId:n}=t;if(s!==j.ConversationType.GROUP)return;const i=await Ke.appData.reqGroupMembers(n);if(i.length===0)return;const r=await Ke.appData.requestUserProfiles(i.map(a=>a.userId));!pe.value||!_t(t,pe.value)||Dn.value.push(...r.filter(a=>a.userId!==Ke.userId).map(a=>{const l=i.findIndex(c=>c.userId===a.userId);return{userId:a.userId,nickname:i[l].nickname,name:a.name,portraitUri:a.portraitUri}}))},R0=async()=>{pe.value=null,Ne.value&&(Ne.value.value=""),Nn.value=0,Dn.value=[],uc.value=Se().userId};function dv(e){Ke=e,e.logger,Ke.addEventListener(ge.CONVERSATION_SELECTED,uv),Ke.addEventListener(Y.CONNECTION_STATUS_CHANGE,cv),Ke.addEventListener(Y.DESTROY_USER_CACHE,R0),Ke.addEventListener(Y.CONVERSATION_BAR_SWITCH_CHANGE,t=>{T0.value=t.data}),Ke.addEventListener(Y.CONVERSATION_DETAIL_BACK_SWITCH_CHANGE,t=>{I0.value=t.data}),Ke.addEventListener(Y.CONVERSATION_BAR_TITLE_CHANGE,t=>{dc.value=t.data,console.log("conversationBarTitle====",dc.value)}),_v(Ke)}const Se=()=>Ke,Lt=N([]),ke=N([]),Os=N(!1),bs=N([]),Ls=N([]),Hr=N(!0);ls(Os,()=>{bs.value=[],Ls.value=[],Hr.value=!0});const fv=ye(()=>bs.value.length),pt=N(null),M0=e=>{const t=e.messageType;if(t===j.MessageType.TextMessage||t===j.MessageType.REFERENCE)return e.content.content;let s=`message-type.${t}`;return c7(s)||(s="message-type.unknown"),We(s).value},hv=ye(()=>{if(!pt.value)return"";const e=M0(pt.value);return pt.value.messageType===j.MessageType.FILE?e+` ${pt.value.content.name}`:e}),pv=ye(()=>{if(!pt.value)return null;const{messageType:e,content:t}=pt.value;switch(e){case j.MessageType.IMAGE:case j.MessageType.SIGHT:return`data:image/png;base64,${t.content}`}return null}),gv=ye(()=>pt.value?Ke.appData.getUserProfile(pt.value.senderUserId).name:""),di=(e,t)=>{let s=document.body;e.modalContainerId&&document.getElementById(e.modalContainerId)&&(s=document.getElementById(e.modalContainerId)),s.appendChild(t)},_v=e=>{e.addEventListener(ge.CONFIRM_EVENT,t=>{const s=document.createElement(je.MODAL_CONFIRM_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult(!1),s.remove()}),s.addEventListener("confirm",()=>{t.sendResult(!0),s.remove()}),di(e,s)}),e.addEventListener(ge.ALERT_EVENT,t=>{const s=document.createElement(je.MODAL_ALERT_PROVIDER);s.addEventListener("cancel",n=>{s.remove()}),di(e,s)}),e.addEventListener(ge.FORWARDING_EVENT,t=>{const s=document.createElement(je.MODAL_FORWARDING_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult({type:Sn.CANCEL}),s.remove()}),s.addEventListener("confirm",n=>{t.sendResult({type:Sn.CONFIRM,list:n.detail[0].list}),s.remove()}),di(e,s)}),e.addEventListener(ge.DELETE_MESSAGE_MODAL_EVENT,t=>{const s=document.createElement(je.MODAL_DELETE_MESSAGE_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult({type:Sn.CANCEL}),s.remove()}),s.addEventListener("confirm",n=>{t.sendResult({type:Sn.CONFIRM}),s.remove()}),di(e,s)}),e.addEventListener(ge.MEDIA_MESSAGE_MODAL_EVENT,t=>{var i,r,o,a;const s=document.createElement(je.MODAL_MEDIA_MESSAGE_PROVIDER);s.addEventListener("cancel",l=>{s.remove()}),s.addEventListener("download",l=>{e.emit(new ie(ge.DOWNLOAD_LINK_EVENT,t.data))});const n=((i=t.data.content)==null?void 0:i.sightUrl)||((r=t.data.content)==null?void 0:r.imageUri)||((o=t.data.content)==null?void 0:o.remoteUrl)||((a=t.data.content)==null?void 0:a.fileUrl);s.setAttribute("url",n),s.setAttribute("user-id",t.data.senderUserId),s.setAttribute("sent-time",`${t.data.sentTime}`),s.setAttribute("message-type",`${t.data.messageType}`),s.setAttribute("message-uid",`${t.data.messageUId}`),s.setAttribute("content",`${t.data.content.content}`),di(e,s)}),e.addEventListener(ge.COMBINE_MESSAGE_MODAL_EVENT,t=>{const s=document.createElement(je.MODAL_COMBINE_MESSAGE_PROVIDER);s.addEventListener("cancel",o=>{e.audioPlayer.pause(),s.remove()}),s.addEventListener("download",o=>{e.emit(new ie(ge.DOWNLOAD_LINK_EVENT,o.detail[0]))});const n=t.data.content.remoteUrl||"";s.setAttribute("url",n);const i=t.data.content||{},r=t.data.messageType||j.MessageType.COMBINE_V2;s.setAttribute("content",JSON.stringify(i)),s.setAttribute("type",r),s.setAttribute("message-uid",`${t.data.messageUId}`),di(e,s)}),e.addEventListener(ge.TAKE_PHOTO_MODAL_EVENT,t=>{const s=document.createElement(je.MODAL_TAKE_PHOTO_PROVIDER);s.addEventListener("cancel",n=>{s.remove()}),di(e,s)}),e.addEventListener(ge.MESSAGE_LINK_CLICK,t=>{if(t.data.type==="mail"){location.href=`mailto:${t.data.address}`;return}window.open(t.data.address)}),e.addEventListener(Y.GROUP_MEMBERS_UPDATE,async t=>{if(!pe.value)return;const{groupId:s,members:n}=t.data,{conversationType:i,targetId:r}=pe.value;if(i!==j.ConversationType.GROUP||r!==t.data.groupId)return;const o=await Ke.appData.requestUserProfiles(n.map(a=>a.userId));!pe.value||pe.value.conversationType!==j.ConversationType.GROUP||pe.value.targetId!==s||Dn.value.splice(0,Dn.value.length,...o.filter(a=>a.userId!==Ke.userId).map((a,l)=>({userId:a.userId,nickname:n[l].nickname,name:a.name,portraitUri:a.portraitUri})))}),e.addEventListener(Y.CONVERSATION_ITEM_CHANGE,t=>{if(!pe.value)return;const s=t.data.find(n=>_t(n,pe.value));s&&(pe.value={...pe.value,...s})})},fc={[j.MessageType.TextMessage]:Pe.TEXT_MESSAGE,[j.MessageType.IMAGE]:Pe.IMAGE_MESSAGE,[j.MessageType.SIGHT]:Pe.SIGHT_MESSAGE,[j.MessageType.FILE]:Pe.FILE_MESSAGE,[j.MessageType.REFERENCE]:Pe.REFERENCE_MESSAGE,[j.MessageType.COMBINE]:Pe.COMBINE_V2_MESSAGE,[j.MessageType.COMBINE_V2]:Pe.COMBINE_V2_MESSAGE,[j.MessageType.HQ_VOICE]:je.HQ_VOICE_MESSAGE_PROVIDER,[j.MessageType.GIF]:Pe.GIF_MESSAGE},hc=new Map,pc=(e,t)=>{hc.set(e,t)};pc("RC:RcCmd",e=>{if(console.log("message====",e),e.senderUserId===Ke.userId)return me("message.list.recall.by.self");const t=Ke.appData.getUserProfile(e.senderUserId).name;return me("message.list.recall.by.other",t)}),pc("RC:RcNtf",e=>{if(e.senderUserId===Ke.userId)return me("message.list.recall.by.self");const t=Ke.appData.getUserProfile(e.senderUserId).name;return me("message.list.recall.by.other",t)});const mv=(e,t)=>{fc[e]=t},O0=e=>fc[e]||"rc-unsupported-message",b0=e=>!fc[e],L0=async(e,t)=>{const s=new ie(ge.FORWARDING_EVENT,e);Ke.emit(s);const{type:n,list:i}=await s.awaitResult();if(n===Sn.CANCEL||!(i instanceof Array)||i.length===0)return!1;const r=i.map(o=>({conversationType:o.conversationType,targetId:o.targetId,channelId:o.channelId}));return e===Fn.SINGLE?r.forEach(o=>Ke.message.forward(o,t.slice())):r.forEach(o=>Ke.message.sendCombineMessage(o,t.slice())),Ke.emit(new ie(ge.TOAST_EVENT,{message:Ke.i18n.format("toast.forward.success"),showIcon:!0})),!0},A0=async e=>{if(e.length===0)return;const t=e[0],s=new ie(ge.DELETE_MESSAGE_MODAL_EVENT,{messages:e});Ke.emit(s);const{type:n}=await s.awaitResult();n!==Sn.CANCEL&&(Ke.message.deleteMessages(t,e,!1),Os.value=!1)},Ev=async e=>{if(e.length===0)return;const t={conversationType:e[0].conversationType,targetId:e[0].targetId,channelId:e[0].channelId};Ke.message.deleteMessages(t,e,!0)},x0=e=>{if(!e||e.messageType===j.MessageType.RECALL||e.messageType===j.MessageType.RECALL_NOTIFICATION_MESSAGE)return!1;const t=e.senderUserId===Ke.userId;return!!(Ke.store.getCommandSwitch(xt.SHOW_MESSAGE_STATE)&&t||(e.sentStatus===j.SentStatus.FAILED||e.sentStatus===j.SentStatus.SENDING)&&t)},k0=e=>{if(!e)return" ";const{messageType:t,content:s,senderUserId:n}=e;if(t===j.MessageType.TEXT||t===j.MessageType.REFERENCE)return s.content||" ";if(t===j.MessageType.RECALL||t===j.MessageType.RECALL_NOTIFICATION_MESSAGE){if(n===Ke.userId)return me("message.list.recall.by.self");const o=Ke.appData.getUserProfile(n).name;return me("message.list.recall.by.other",o)}if([j.MessageType.IMAGE,j.MessageType.GIF,j.MessageType.VOICE,j.MessageType.HQ_VOICE,j.MessageType.FILE,j.MessageType.SIGHT,j.MessageType.COMBINE,j.MessageType.COMBINE_V2].includes(t)){const o=`message-type.${t}`;return me(o)}if(!hc.has(t))return me("message-type.unknown");const r=hc.get(t);return ye(()=>r(e,ai.value)).value},Gr=30;class vv extends Ss{constructor(s){super(s);K(this,"_sendQueue");K(this,"_uploadQueue");K(this,"_transactionIdCount",0);K(this,"_histories",new Map);K(this,"_v5Responded",new Set);K(this,"_messageQueue",[]);K(this,"_messageHandleTimer",null);K(this,"sendFiles",this._sendMultiMediaMessage.bind(this,wc));K(this,"sendImages",this._sendMultiMediaMessage.bind(this,wc));this._sendQueue=new b5(s),this._uploadQueue=new L5(s)}_onInit(){f.electronExtension.enable()?(f.addEventListener(f.Events.MESSAGES,this._onRecvElectronMessage,this),this._handleElectronMessages()):f.addEventListener(f.Events.MESSAGES,this._onRecvMessages,this),f.addEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse.bind(this))}_onInitUserCache(){}_onDestroyUserCache(){this._histories.clear(),this._transactionIdCount=0,this._messageQueue.length=0,this._messageHandleTimer&&(clearTimeout(this._messageHandleTimer),this._messageHandleTimer=null)}destroy(){this._onDestroyUserCache(),this._sendQueue.destroy(),this._uploadQueue.destroy(),f.removeEventListener(f.Events.MESSAGES,this._onRecvElectronMessage,this),f.removeEventListener(f.Events.MESSAGES,this._onRecvMessages,this)}_createTransactionId(){return++this._transactionIdCount}_getExistCache(s){return this._histories.get(St(s))}_getOrCreateCache(s,n,i,r){const o=St(s);let a=this._histories.get(o);return a||(a={histories:[],startTime:0,endTime:n===0?f.getServerTime():n,hasMoreAfterEndTime:i,hasMoreBeforeStartTime:r},this._histories.set(o,a)),a}_push2Cache(s,...n){const{histories:i,startTime:r}=s;n.forEach(o=>{const a=i.findIndex(c=>o.messageUId&&c.messageUId?c.messageUId===o.messageUId:o.messageId&&c.messageId?c.messageId===o.messageId:!1);if(a!==-1)i.splice(a,1,o);else{const c=yn(i,u=>u.sentTime<o.sentTime);c===-1?i.unshift(o):i.splice(c+1,0,o)}const l=o.sentTime+1;s.endTime=s.endTime===0?l:Math.max(s.endTime,l)}),r||(s.startTime=Math.min(...n.map(o=>o.sentTime))-1)}_unshift2Cache(s,...n){const{histories:i}=s;n.forEach(r=>{const o=i.findIndex(l=>l.messageUId===r.messageUId||l.sentTime>r.sentTime);o===-1?i.push(r):i[o].messageUId!==r.messageUId&&i.splice(o,0,r);const a=r.sentTime-1;s.startTime=s.startTime===0?a:Math.min(s.startTime,a)})}_onRecvElectronMessage(s){this._messageQueue.push(...s.messages)}_handleElectronMessages(){this._messageHandleTimer=setTimeout(()=>{if(this._messageQueue.length>0){const s=this._messageQueue.splice(0);this._handleMessages(s)}this._messageHandleTimer=null,this._handleElectronMessages()},60)}_onRecvMessages(s){this._handleMessages(s.messages)}_onV5ReceiptResponse(s){try{if(!s||!Array.isArray(s))return;s.forEach(n=>{const i=St(n.identifier);let r=this._histories.get(i);if(!r)return;const o=r.histories.findIndex(l=>l.messageUId===n.messageUId);if(o<0)return;const a={identifier:n.identifier,messageUId:n.messageUId,unreadCount:n.unreadCount,readCount:n.readCount,totalCount:n.totalCount};r.histories[o].kitReadReceiptInfo=a,this.ctx.dispatchEvent(new ie(Y.MESSAGE_STATE_CHANGE,[r.histories[o]]))})}catch(n){this.logger.warn(B.L_V5_RECEIPT_RESPONSE_E,`onV5ReceiptResponse error: ${n}`)}}async _sendReadReceiptMessageV5(s,n){if(this.ctx.readReceiptVersion!==j.GroupReadReceiptVersion.V5)return;const i=n.map(u=>u.messageUId),r=Array.from(new Set((i||[]).filter(Boolean)));if(r.length===0){this.logger.info(B.L_SEND_V5_RECEIPT_T,`sendV5Receipts ids size is 0, messageUIds: ${JSON.stringify(i)}`);return}const o=St(s),a=this._histories.get(o);if(!a||!a.histories.length)return;const l=new Set(r.filter(u=>{const d=a.histories.find(_=>_.messageUId===u);if(!d)return!1;const h=d.messageDirection===2,p=!this._v5Responded.has(u)&&d.sendReceipt!==!0&&d.needReceipt;return h&&p}));if(l.size===0){this.logger.info(B.L_SEND_V5_RECEIPT_T,"sendV5Receipts messageUIds size is 0");return}const c=Array.from(l);try{this.logger.info(B.L_SEND_V5_RECEIPT_T,`sendV5Receipts: ${JSON.stringify(c)}`);const u=await f.sendReadReceiptResponseV5(s,c);this.logger.info(B.L_SEND_V5_RECEIPT_R,`sendV5Receipts res: ${JSON.stringify(u)}`),c.forEach(d=>this._v5Responded.add(d)),this._markSendReceiptTrue(s,c)}catch(u){this.logger.warn(B.L_SEND_V5_RECEIPT_E,`sendV5Receipts error: ${u}`)}}_markSendReceiptTrue(s,n){try{if(!n||!n.length)return;const i=St(s),r=this._histories.get(i);if(!r)return;const o=new Set(n);r.histories.forEach(a=>{a.messageUId&&o.has(a.messageUId)&&(a.sendReceipt=!0)})}catch(i){this.logger.warn(B.L_SEND_V5_RECEIPT_E,`markSendReceiptTrue error: ${i}`)}}_handleMessages(s){const n=[];let i=[];s.forEach(async o=>{const a=mi(o);if(f.electronExtension.enable()&&a.messageType===f.MessageType.RECALL_MESSAGE_TYPE&&(o.isPersited=!0),!o.isPersited||$n(o)){n.push(a);return}if(a.messageType===f.MessageType.RECALL_MESSAGE_TYPE){const{messageUId:l}=a.content;let c=i.findIndex(u=>u.messageUId===l);if(c!==-1){i.splice(c,1,a);return}}i.push(a)}),i=this._handleNotifiedUIMessaages(i),i.filter(o=>o.messageType!==f.MessageType.RECALL_MESSAGE_TYPE).length&&this.ctx.dispatchEvent(new ie(Y.RECV_NEW_MESSAGES,i)),n.length&&this.ctx.emit(new ie(ge.UNSCHEDULED_MESSAGES,n))}_handleNotifiedUIMessaages(s){return s.forEach(n=>{const i=this._getOrCreateCache(n,n.sentTime+1,!1,!0);if(n.messageType===f.MessageType.RECALL_MESSAGE_TYPE&&i.histories.length>0){const r=i.histories.findIndex(o=>o.messageUId===n.content.messageUId);if(r!==-1){const[o]=i.histories.splice(r,1,n);n.sentTime=o.sentTime,this.ctx.emit(new ie(ge.MESSAGES_DELETED,[{target:o,recallMsg:n}]),1);return}}!i.hasMoreAfterEndTime&&n.messageType!==f.MessageType.RECALL_MESSAGE_TYPE&&this._push2Cache(i,n)}),s}_ifTimeCoincides(s,n){return s.endTime>=n&&s.startTime<=n}async _requestHistoriesFromLib(s,n,i){const r=await f.getHistoryMessages(s,{timestamp:n,count:Gr,order:i?0:1});if(r.code!==f.ErrorCode.SUCCESS)return{code:r.code,hasMore:!0,list:[]};const{list:o,hasMore:a}=r.data;let l=await this._handleTransIAReceivedMessages(o,s);const c=this._getOrCreateCache(s,n,n!==0,!0);return!i&&n!==0&&c.startTime>n&&(c.startTime=n-1),(this._ifTimeCoincides(c,n)||o.length&&(this._ifTimeCoincides(c,o[0].sentTime)||this._ifTimeCoincides(c,o[o.length-1].sentTime)))&&(i?(l=l.reverse(),this._unshift2Cache(c,...l),c.hasMoreBeforeStartTime=a):(this._push2Cache(c,...l),c.hasMoreAfterEndTime=a)),{hasMore:a,list:l,code:f.ErrorCode.SUCCESS}}async _handleTransIAReceivedMessages(s,n){const i=s.map(r=>mi(r));return this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5?await this._handleReadReceiptV5(n,i):i}async _handleReadReceiptV5(s,n){if(n.length===0)return[];try{const i=n.filter(a=>a.senderUserId===this.ctx.userId);if(i.length===0)return n;const r=i.map(a=>a.messageUId),{data:o}=await f.getMessageReadReceiptInfoV5(s,r);o&&o.length>0&&o.forEach(a=>{const l=n.findIndex(c=>c.messageUId===a.messageUId);l>-1&&(n[l].kitReadReceiptInfo=a)})}catch(i){this.logger.warn(B.L_HANDLE_READ_RECEIPT_V5_E,`_handleReadReceiptV5 error: ${i}`)}return n}async _reqHistoriesHandler(s,n=0,i=!0){var _;const r=this._getOrCreateCache(s,n,n!==0,!0),{histories:o,hasMoreAfterEndTime:a,hasMoreBeforeStartTime:l,startTime:c,endTime:u}=r;if(!a&&n===0&&i){const m=((_=o[o.length-1])==null?void 0:_.sentTime)||0;m>u&&(r.endTime=m+1),n=r.endTime}if(!this._ifTimeCoincides(r,n))return this._requestHistoriesFromLib(s,n,i);let d;if(i){const m=yn(o,L=>L.sentTime<n);d=o.slice(0,m+1)}else{const m=o.findIndex(L=>L.sentTime>n);d=o.slice(m)}const h=i?l:a;if(d.length<Gr)return await this._reqHasMoreHistories(h,c,u,i,s,n,d);let p=i?d.slice(d.length-Gr):d.slice(0,Gr);return this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&s.conversationType===f.ConversationType.GROUP&&(await this._handleReadReceiptV5(s,p),p.forEach(m=>{const L=r.histories.findIndex(M=>M.messageUId===m.messageUId);L>-1&&m.kitReadReceiptInfo&&(r.histories[L].kitReadReceiptInfo=m.kitReadReceiptInfo)})),{hasMore:h||d.length>Gr,list:p,code:f.ErrorCode.SUCCESS}}async _reqHasMoreHistories(s,n,i,r,o,a=0,l=[]){if(s){const c=n===0?0:n+1,u=i===0?0:i-1,d=r?c:u,{code:h}=await this._requestHistoriesFromLib(o,d,r);return h===f.ErrorCode.SUCCESS?this._reqHistoriesHandler(o,a,r):{hasMore:s,list:l,code:h}}return{hasMore:s,list:l,code:f.ErrorCode.SUCCESS}}reqHistories(s,n=0,i=!0){return this._reqHistoriesHandler(s,n,i)}async sendMessage(s,n,i){if($n(s)||!Tc(s))return{code:ks.INVALID_CONVERSATION};const r=this._createTransactionId();if(this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5){const c=[f.ConversationType.PRIVATE,f.ConversationType.GROUP].includes(s.conversationType),u=i==null?void 0:i.directionalUserIdList,d=Array.isArray(u)&&u.length>0,h=(i==null?void 0:i.isStatusMessage)===!0,p=n.isPersited!==!1;c&&!d&&!h&&p&&(i={needReceipt:!0,...i||{}})}const o=this._transBaseMessage2CachedMessage(s,n,r,i);if(j.isObject(o.content))try{o.content=Ca(o.content)}catch(c){this.logger.warn(B.A_SEND_MESSAGE_E,c.message)}if(o.isPersited){const c=this._getOrCreateCache(s,o.sentTime+1,!1,!0);c.hasMoreAfterEndTime&&(c.histories.length=0,c.startTime=o.sentTime,c.hasMoreBeforeStartTime=!0,c.hasMoreAfterEndTime=!1),this._push2Cache(c,o),this.ctx.dispatchEvent(new ie(Y.INSERT_NEW_MESSAGES,[o]))}const{code:a,data:l}=await this._sendQueue.push({conversation:s,message:o,options:i,transactionId:o.transactionId});return a!==f.ErrorCode.SUCCESS?o.sentStatus=f.SentStatus.FAILED:(this._updateCachedMessage(o,l),this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&o.conversationType===f.ConversationType.GROUP&&await this._handleReadReceiptV5(s,[o])),o.isPersited&&this.ctx.dispatchEvent(new ie(Y.MESSAGE_STATE_CHANGE,[o])),{code:a,message:l}}_updateCachedMessage(s,n){const{sentStatus:i,sentTime:r,messageUId:o,messageId:a}=n;s.sentStatus=i,s.sentTime=r,s.messageUId=o,s.messageId=a}async _sendMultiMediaMessage(s,n,i){if(console.log("sendMultiMediaMessage =====",i),i.length>99){this.ctx.alert("alert.pickfiles.maxcount","99");return}const r=[],o=[];for(let h of i)h.size>100*1024*1024||h.size===0?r.push(h):o.push(h);if(r.length>0&&this.ctx.emit(new ie(ge.FILE_SEND_FAILED_EVENT,r)),o.length===0)return;const a=await Promise.all(o.map(async h=>{const p=await s(h),_=this._transBaseMessage2CachedMessage(n,p,this._createTransactionId());return _.file=h,_.progress=0,_})),l=this.ctx.status!==f.RCConnectionStatus.CONNECTED;l&&a.forEach(h=>{h.progress=-1,h.sentStatus=f.SentStatus.FAILED});const c=a[0],u=this._getOrCreateCache(n,c.sentTime+1,!1,!0);if(u.hasMoreAfterEndTime&&(u.histories.length=0,u.startTime=c.sentTime+1,u.hasMoreBeforeStartTime=!0,u.hasMoreAfterEndTime=!1),this._push2Cache(u,...a),this.ctx.dispatchEvent(new ie(Y.INSERT_NEW_MESSAGES,a)),l)return;const d=a.map(h=>this._uploadQueue.push({message:h,transactionId:h.transactionId}));for(let h of d){const{code:p,data:_}=await h,{message:m}=_;if(u.histories.findIndex(E=>E.transactionId===m.transactionId)===-1)continue;if(p!==f.ErrorCode.SUCCESS){m.progress=-1,m.sentStatus=f.SentStatus.FAILED,this.ctx.dispatchEvent(new ie(Y.MESSAGE_STATE_CHANGE,[m]));continue}const M=_.httpUrl;m.file=void 0,this._updateHttpUrl(m,M),this._push2SendQueue(m,m)}}_updateHttpUrl(s,n){switch(s.messageType){case f.MessageType.IMAGE:s.content.imageUri=n;break;case f.MessageType.GIF:s.content.remoteUrl=n;break;case f.MessageType.SIGHT:s.content.sightUrl=n;break;case f.MessageType.COMBINE_V2:s.content.remoteUrl=n;break;default:s.content.fileUrl=n;break}}async insertMessage(s,n,i){if($n(s)||!Tc(s))return{code:ks.INVALID_CONVERSATION};const r=this._createTransactionId(),o=this._transBaseMessage2CachedMessage(s,n,r);if(o.isPersited){const a=this._getOrCreateCache(s,o.sentTime+1,!0,!0);let l=yn(a.histories,c=>c.messageUId===o.messageUId||c.messageId===o.messageId);l!==-1?a.histories.splice(l,1,o):(l=yn(a.histories,c=>c.sentTime<=o.sentTime),l===-1?a.histories.unshift(o):a.histories.splice(l,0,o)),this.ctx.dispatchEvent(new ie(Y.INSERT_NEW_MESSAGES,[o]))}if(f.electronExtension.enable()){const{code:a,data:l}=await f.electronExtension.insertMessage(s,o,i);return a===f.ErrorCode.SUCCESS&&(o.messageId=l.messageId),{code:a,message:o}}return{code:f.ErrorCode.SUCCESS,message:o}}_transBaseMessage2CachedMessage(s,n,i,r){const{conversationType:o,targetId:a,channelId:l}=s,{isCounted:c,isPersited:u,content:d,messageType:h}=n,p={transactionId:i,targetId:a,conversationType:o,messageDirection:1,messageType:h,sentTime:f.getServerTime(),isStatusMessage:r==null?void 0:r.isStatusMessage,isCounted:c,isPersited:u,content:d,channelId:l||"",senderUserId:this.ctx.userId,receivedTime:0,messageUId:"",sentStatus:f.SentStatus.SENDING,isOffLineMessage:!1,canIncludeExpansion:(r==null?void 0:r.canIncludeExpansion)||!1,receivedStatus:0,isMentioned:r==null?void 0:r.isMentioned,expansion:r==null?void 0:r.expansion};return this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&(p.kitReadReceiptInfo=void 0),p}async deleteMessages(s,n,i){if(n.length===0)return;const r=[],o=[];n.forEach(c=>{c.messageUId?r.push(c):c.sentStatus===f.SentStatus.FAILED&&o.push(c)});const a=this._getExistCache(s),l=[];if(r.length){const{recallList:c}=await this._handleSentList(i,a,r,s);l.push(...c)}o.length&&a&&a.histories.length&&o.forEach(c=>{const u=a.histories.findIndex(d=>d.messageUId?d.messageUId===c.messageUId:d.transactionId===c.transactionId);if(u!==-1){const[d]=a.histories.splice(u,1);l.push({target:d})}}),l.length&&this.ctx.dispatchEvent(new ie(ge.MESSAGES_DELETED,l))}getAllowedToRecallTime(){return this.ctx.allowedToRecallTime}async _handleSentList(s,n,i,r){const o=[],a=[],l=[];return s?(await Promise.all(i.map(u=>f.recallMessage(r,{messageUId:u.messageUId,sentTime:u.sentTime,isDelete:!1})))).forEach((u,d)=>{if(u.code===f.ErrorCode.SUCCESS){o.push(i[d]);return}a.push(i[d])}):(await f.deleteMessages(r,i.map(u=>({messageUId:u.messageUId,sentTime:u.sentTime,messageDirection:u.messageDirection})))).code===f.ErrorCode.SUCCESS?o.push(...i):a.push(...i),o.length&&n&&n.histories.length&&o.forEach(c=>{const u=n.histories.findIndex(d=>d.messageUId===c.messageUId);if(s){const d=this._trans2RecallMessage(c),[h]=n.histories.splice(u,1,d);l.push({target:h,recallMsg:d})}else{const[d]=n.histories.splice(u,1);l.push({target:d})}}),a.length&&this.ctx.alert("alert.delete.messages.partial.failure",a.length),{recallList:l}}_trans2RecallMessage(s){return{...s,messageType:f.MessageType.RECALL_MESSAGE_TYPE,content:{messageUid:s.messageUId,sentTime:s.sentTime,targetId:s.targetId,conversationType:s.conversationType,channelId:s.channelId},isMentioned:!1}}async forward(s,n){if(n.length===0)return;const{conversationType:i,targetId:r,channelId:o}=s,a=f.getServerTime(),l=n.map(u=>{const d={...u};return u.content.mentionedInfo&&delete u.content.mentionedInfo,d.content=u.content,d.messageUId="",d.transactionId=this._createTransactionId(),d.conversationType=i,d.targetId=r,d.channelId=o||"",d.sentStatus=f.SentStatus.SENDING,d.messageDirection=1,d.sentTime=a,d.senderUserId=this.ctx.userId,d.readReceiptInfo&&delete d.readReceiptInfo,d.kitReadReceiptInfo&&(d.kitReadReceiptInfo=void 0),d}),c=this._getOrCreateCache(s,a+1,!1,!0);this._push2Cache(c,...l),this.ctx.dispatchEvent(new ie(Y.INSERT_NEW_MESSAGES,l)),l.forEach(u=>this._push2SendQueue(s,u))}async sendCombineMessage(s,n){if(n.length===0||$n(s))return;const{conversationType:i,targetId:r}=n[0],o=[],a=this.ctx.userId,l=this.ctx.appData.getUserProfile(a).name,c=[];if(i===f.ConversationType.PRIVATE){const p=n.findIndex(m=>m.senderUserId===a),_=n.findIndex(m=>m.senderUserId!==a);p>-1&&c.push(l),_>-1&&c.push(this.ctx.appData.getUserProfile(r).name)}else c.push(this.ctx.appData.getGroupProfile(r).name);const u=n.map((p,_)=>{const m=p.content;delete m.user,delete m.extra,delete m.mentionedInfo;const{targetId:L,sentTime:M,messageType:E,senderUserId:g}=p;return _<4&&o.push(`${this.ctx.appData.getUserProfile(g).name}: ${M0(p)}`.substring(0,1e3)),{targetId:L,timestamp:M,objectName:E,content:m,fromUserId:g}}),d={summaryList:o,nameList:c,conversationType:i,msgNum:u.length},h=JSON.stringify(u);if(h.length>=120*1024){const p=`${Date.now()}-${Math.floor(Math.random()*Date.now())}.json`;d.jsonMsgKey=p;const _=new File([h],p,{type:"application/json"});this._sendMultiMediaMessage(async m=>new f.CombineV2Message(d),s,[_])}else d.msgList=u,this.sendMessage(s,new f.CombineV2Message(d))}async _push2SendQueue(s,n){const{code:i,data:r}=await this._sendQueue.push({conversation:s,message:n,transactionId:n.transactionId});if(i!==f.ErrorCode.SUCCESS)n.sentStatus=f.SentStatus.FAILED;else{const o=n.sentTime;if(this._updateCachedMessage(n,r),n.sentTime!==o){const a=this._getExistCache(s);if(a){const l=a.histories.findIndex(c=>c.transactionId===n.transactionId);if(l!==-1){a.histories.splice(l,1);const c=yn(a.histories,u=>u.sentTime<=n.sentTime);a.histories.splice(c+1,0,n)}}}}this.ctx.dispatchEvent(new ie(Y.MESSAGE_STATE_CHANGE,[n]))}removeCachedMessages(s){this._histories.delete(St(s))}cancelMessageSent(s){const{transactionId:n,conversationType:i,targetId:r,channelId:o}=s,a={conversationType:i,targetId:r,channelId:o},l=this._getExistCache(a);if(!l)return;const c=l.histories.findIndex(d=>d.transactionId===n),u=l.histories[c];!u||u.sentStatus!==f.SentStatus.SENDING||typeof u.transactionId!="number"||(l.histories.splice(c,1),this.ctx.dispatchEvent(new ie(ge.MESSAGES_DELETED,[{target:s}])),this._uploadQueue.remove(n)||this._sendQueue.remove(n))}async resendMessage(s){const{transactionId:n,conversationType:i,targetId:r,channelId:o}=s,a={conversationType:i,targetId:r,channelId:o},l=this._getExistCache(a);if(!l)return;const c=l.histories.find(u=>u.transactionId===n);if(!(!c||c.sentStatus!==f.SentStatus.FAILED||typeof n!="number")){if(c.sentStatus=f.SentStatus.SENDING,c.file&&c.progress!==100){c.progress=0,this.ctx.emit(new ie(Y.MESSAGE_STATE_CHANGE,[c]));const{code:u,data:d}=await this._uploadQueue.push({message:c,transactionId:n});if(u!==f.ErrorCode.SUCCESS){c.sentStatus=f.SentStatus.FAILED,c.progress=-1,this.ctx.emit(new ie(Y.MESSAGE_STATE_CHANGE,[c]));return}c.file=void 0,this._updateHttpUrl(c,d.httpUrl)}this._push2SendQueue(c,c)}}async sendReadReceiptMessage(s,n){this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&this._sendReadReceiptMessageV5(s,n)}getConversationLatestMessage(s){const n=this._getExistCache(s);if(!n)return null;const i=n.histories.length;return n.histories[i-1]}async getMessagesReadReceiptUsersByPageV5(s,n,i){if(this.ctx.readReceiptVersion!==j.GroupReadReceiptVersion.V5)return{code:f.ErrorCode.SUCCESS,data:null};try{const r=i.type==="read"?0:1,o={pageToken:i.pageToken,pageCount:i.count||20,readStatus:r,order:0};return await f.getMessagesReadReceiptUsersByPageV5(s,n,o)}catch(r){return this.logger.warn(B.L_GET_READ_RECEIPT_INFO_V5_E,`getMessagesReadReceiptUsersByPageV5 error: ${r}`),{code:f.ErrorCode.SUCCESS,data:null}}}}var U0=(e=>(e.ADD_TOP="conversation.menu.item.add_top",e.REMOVE_TOP="conversation.menu.item.remove_top",e.MUTE="conversation.menu.item.mute",e.UNMUTE="conversation.menu.item.unmute",e.MARK_READ="conversation.menu.item.mark_read",e.MARK_UNREAD="conversation.menu.item.mark_unread",e.REMOVE="conversation.menu.item.remove",e))(U0||{});const N0=[{id:"conversation.menu.item.add_top",icon:Zh,filter:e=>!e.isTop},{id:"conversation.menu.item.remove_top",icon:Wh,filter:e=>e.isTop},{id:"conversation.menu.item.mute",icon:Yh,filter:e=>e.notificationLevel!==j.NotificationLevel.NOT_MESSAGE_NOTIFICATION},{id:"conversation.menu.item.unmute",icon:Qh,filter(e){return e.notificationLevel===j.NotificationLevel.NOT_MESSAGE_NOTIFICATION}},{id:"conversation.menu.item.remove",icon:Jh}],_a=e=>e.map(t=>({...t}));class Cv extends Ss{constructor(){super(...arguments);K(this,"_menu",_a(N0))}_onInit(){this.ctx.addEventListener(ge.CONVERSATION_MENU_ITEM_CLICK,this._onMenuItemClick,this)}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._menu=_a(N0)}_onMenuItemClick(s){const{id:n,conversation:i}=s.data;switch(n){case"conversation.menu.item.add_top":this.ctx.conversation.setConversationToTop(i,!0);break;case"conversation.menu.item.remove_top":this.ctx.conversation.setConversationToTop(i,!1);break;case"conversation.menu.item.mute":this.ctx.conversation.setConversationNotificationLevel(i,j.NotificationLevel.NOT_MESSAGE_NOTIFICATION);break;case"conversation.menu.item.unmute":this.ctx.conversation.setConversationNotificationLevel(i,j.NotificationLevel.ALL_MESSAGE);break;case"conversation.menu.item.mark_read":this.ctx.conversation.markConversationReaded(i);break;case"conversation.menu.item.mark_unread":this.ctx.conversation.markConversationUnread(i);break;case"conversation.menu.item.remove":this.ctx.conversation.removeConversation(i);break}}getMenum(s){return this._menu.filter(n=>!n.filter||n.filter(s))}cloneConversationMenu(){return _a(this._menu)}setConversationMenu(s){this._menu=_a(s)}}class yv extends Ss{constructor(){super(...arguments);K(this,"_audio",new Audio);K(this,"_status","stopped");K(this,"_progress",0);K(this,"_messageUId","");K(this,"_transactionId",0);K(this,"_onError",()=>{this._progress=0,this._status="stopped",this._dispatch()});K(this,"_onTimeUpdate",()=>{const{currentTime:s,duration:n}=this._audio;this._progress=Math.floor(s/n*100),this._status!=="stopped"&&this._dispatch()});K(this,"_onEnded",()=>{this._progress=100,this._status="stopped",this._dispatch()})}_onInitUserCache(){this._audio.addEventListener("ended",this._onEnded),this._audio.addEventListener("timeupdate",this._onTimeUpdate),this._audio.addEventListener("error",this._onError)}_onDestroyUserCache(){this._audio.removeEventListener("ended",this._onEnded),this._audio.removeEventListener("timeupdate",this._onTimeUpdate),this._audio.addEventListener("error",this._onError)}destroy(){throw new Error("Method not implemented.")}getCurrentState(){return{progress:this._progress,status:this._status,messageUId:this._messageUId,transactionId:this._transactionId}}_dispatch(){this.ctx.dispatchEvent(new ie(Y.AUDIO_PLAY_EVENT,this.getCurrentState()),!1)}play(s,n,i){if(this._messageUId&&this._messageUId===n||this._transactionId&&this._transactionId===i){this._status==="stopped"&&(this._audio.play(),this._status="playing",this._onTimeUpdate());return}this._status="playing",this._messageUId=n,this._transactionId=0,this._progress=0,this._audio.src=s,this._audio.play(),this._dispatch()}stop(){this._status="stopped",this._messageUId="",this._transactionId=0,this._progress=0,this._audio.src&&(this._audio.pause(),this._audio.src=""),this._dispatch()}pause(){this._status!=="stopped"&&(this._status="stopped",this._audio.pause(),this._dispatch())}}const zi=class zi{constructor(t,s){K(this,"cache",new Map);K(this,"convertingTTSList",new Set);K(this,"errorTTSList",new Set);K(this,"timers",new Map);Qi(this,jr,t=>{var s,n,i,r;try{const{code:o,messageUId:a,sttInfo:l}=t||{};(s=this.logger)==null||s.info(B.L_STT_RESPONSE_R,`[STT] response: ${a}, code: ${o}`);const c=this.timers.get(a);if(c&&(clearTimeout(c),this.timers.delete(a)),o===f.ErrorCode.SUCCESS){const u=l.text;for(this.cache.set(a,u);this.cache.size>zi.MAX_CACHE_SIZE;){const d=this.cache.keys().next().value||"";this.cache.delete(d)}this.errorTTSList.delete(a),this.convertingTTSList.delete(a),(n=this.logger)==null||n.info(B.L_STT_RESPONSE_O,`[STT] success: ${a}`),this.dispatchStateChange(a,"success",u)}else this.convertingTTSList.delete(a),this.errorTTSList.add(a),(i=this.logger)==null||i.warn(B.L_STT_RESPONSE_E,`[STT] failed: code=${o}, uid=${a}`),this.dispatchStateChange(a,"error")}catch(o){(r=this.logger)==null||r.warn(B.L_STT_RESPONSE_E,`[STT] exception: ${o}`)}});this.logger=t,this.eventDispatcher=s,f.addEventListener(f.Events.SPEECH_TO_TEXT_RESPONSE,Cn(this,jr))}dispatchStateChange(t,s,n,i){this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new ie(Y.SPEECH_TO_TEXT_STATE_CHANGE,{messageUId:t,status:s,text:n,errorCode:i}))}getSTTText(t){return this.cache.get(t)}isConverting(t){return this.convertingTTSList.has(t)}hasError(t){return this.errorTTSList.has(t)}hasConverted(t){return this.cache.has(t)}async requestForMessage(t){var i,r,o,a;const{messageUId:s}=t;if(this.cache.has(s)||this.convertingTTSList.has(s))return f.ErrorCode.SUCCESS;this.errorTTSList.delete(s),this.convertingTTSList.add(s),this.dispatchStateChange(s,"converting");const n={messageType:f.MessageType.HQ_VOICE,remoteUrl:t.content.remoteUrl,duration:t.content.duration,sampleRate:t.content.sampleRate,numberOfChannels:t.content.numberOfChannels};try{(i=this.logger)==null||i.info(B.L_STT_REQUEST_T,`[STT] request: ${s}, opts: ${JSON.stringify(n)}`);const{code:l,msg:c}=await f.requestSpeechToTextForMessage(s,n);if((r=this.logger)==null||r.info(B.L_STT_REQUEST_R,`[STT] request response: ${s}, code: ${l}`),l===f.ErrorCode.SUCCESS){const u=setTimeout(()=>{var d;this.timers.delete(s),this.convertingTTSList.has(s)&&(this.convertingTTSList.delete(s),this.errorTTSList.add(s),(d=this.logger)==null||d.warn(B.D,`[STT] timeout: ${s}`),this.dispatchStateChange(s,"error"))},zi.REQUEST_TIMEOUT);this.timers.set(s,u)}else this.convertingTTSList.delete(s),this.errorTTSList.add(s),(o=this.logger)==null||o.warn(B.L_STT_REQUEST_E,`[STT] request failed: code=${l}, uid=${s}, msg=${c}`),this.dispatchStateChange(s,"error",void 0,l);return l}catch(l){return this.convertingTTSList.delete(s),this.errorTTSList.add(s),(a=this.logger)==null||a.warn(B.L_STT_REQUEST_E,`[STT] request exception: ${l}`),this.dispatchStateChange(s,"error"),-1}}clearMemoryData(){this.cache.clear(),this.convertingTTSList.clear(),this.errorTTSList.clear(),this.timers.forEach(t=>clearTimeout(t)),this.timers.clear()}destroy(){f.removeEventListener(f.Events.SPEECH_TO_TEXT_RESPONSE,Cn(this,jr)),this.clearMemoryData()}};jr=new WeakMap,K(zi,"MAX_CACHE_SIZE",200),K(zi,"REQUEST_TIMEOUT",3e4);let gc=zi;var ct=(e=>(e[e.NONE=0]="NONE",e[e.AT_ALL=1]="AT_ALL",e[e.AT_ME=2]="AT_ME",e))(ct||{});const Sv=30002;class Tv extends Ss{constructor(){super(...arguments);Qi(this,ma);K(this,"_list",[]);K(this,"_messageQueue",[]);K(this,"_converNtfQueue",[]);K(this,"_pool",new Map);K(this,"_getRemoteConversationTimer",null);K(this,"_pullOfflineMessageFinished",!1);Qi(this,fi,new Map);Qi(this,hi,!1);Qi(this,Kr,!1);K(this,"_openedConversation",null);K(this,"_getRemoteConversationFinished",!1);K(this,"_handleQueueTimer");K(this,"_typingTime",null)}getOpenedConversation(){return this._openedConversation}setOpenedConversation(s,n=!0){this._setOpenedConversation(s,n)}_createCachedConversation(s){const n=St(s);if(this._pool.has(n))return this._pool.get(n);const i={key:n,targetId:s.targetId,conversationType:s.conversationType,channelId:s.channelId||"",name:"",portraitUri:"",draft:"",latestMessage:null,isTop:!1,notificationLevel:f.NotificationLevel.ALL_MESSAGE,unreadCount:0,updateTime:0,online:!1,memberCount:0,mentionedType:0,markReaded:!1,markUnread:!1};return this._pool.set(n,i),i}_onInit(){this.ctx.addEventListener(Y.USER_PROFILES_UPDATE,this._onUserProfilesUpdate,this),this.ctx.addEventListener(Y.GROUP_PROFILES_UPDATE,this._onGroupProfilesUpdate,this),this.ctx.addEventListener(Y.SYSTEM_PROFILES_UPDATE,this._onSystemProfilesUpdate,this),this.ctx.addEventListener(Y.INSERT_NEW_MESSAGES,this._onInsertNewMessages,this),this.ctx.addEventListener(ge.MESSAGES_DELETED,this._onDeleteMessages,this),this.ctx.addEventListener(Y.MESSAGE_STATE_CHANGE,this._onMessageStateChange,this),f.addEventListener(f.Events.SYNC_READ_STATUS,this._onSyncReadStatus,this),f.addEventListener(f.Events.CONVERSATION,this._onRecvConversationNtf,this),f.addEventListener(f.Events.PULL_OFFLINE_MESSAGE_FINISHED,this._onPullOfflineMessageFinished,this),f.addEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse.bind(this)),f.addEventListener(f.Events.CONNECTED,this._onConnected,this),f.addEventListener(f.Events.CONVERSATIONS_SYNCED,this._onConversationsSynced.bind(this)),f.electronExtension.enable()&&this.ctx.addEventListener(Y.RECV_NEW_MESSAGES,this._onRecvNewMessages,this)}_onInitUserCache(){Cn(this,hi)||this._getMoreRemoteConversation(!0)}_onDestroyUserCache(){this._list.length=0,this._pool.clear(),this._openedConversation=null,this._getRemoteConversationFinished=!1,this._pullOfflineMessageFinished=!1,this._getRemoteConversationTimer&&(clearTimeout(this._getRemoteConversationTimer),this._getRemoteConversationTimer=null),this._handleQueueTimer&&(clearTimeout(this._handleQueueTimer),this._handleQueueTimer=null),this._clearTypingStatus(),Zr(this,hi,!1),Zr(this,Kr,!1)}destroy(){this._onDestroyUserCache(),this.ctx.removeEventListener(Y.USER_PROFILES_UPDATE,this._onUserProfilesUpdate,this),this.ctx.removeEventListener(Y.GROUP_PROFILES_UPDATE,this._onGroupProfilesUpdate,this),this.ctx.removeEventListener(Y.SYSTEM_PROFILES_UPDATE,this._onSystemProfilesUpdate,this),this.ctx.removeEventListener(Y.INSERT_NEW_MESSAGES,this._onInsertNewMessages,this),this.ctx.removeEventListener(ge.MESSAGES_DELETED,this._onDeleteMessages,this),this.ctx.removeEventListener(Y.MESSAGE_STATE_CHANGE,this._onMessageStateChange,this),f.removeEventListener(f.Events.SYNC_READ_STATUS,this._onSyncReadStatus,this),f.removeEventListener(f.Events.PULL_OFFLINE_MESSAGE_FINISHED,this._onPullOfflineMessageFinished,this),f.removeEventListener(f.Events.CONVERSATION,this._onRecvConversationNtf,this),f.removeEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse,this),f.removeEventListener(f.Events.CONNECTED,this._onConnected,this),f.removeEventListener(f.Events.CONVERSATIONS_SYNCED,this._onConversationsSynced.bind(this)),this.ctx.removeEventListener(Y.RECV_NEW_MESSAGES,this._onRecvNewMessages,this)}async _onDeleteMessages(s){const n=s.data,{target:i,recallMsg:r}=n[n.length-1],o=this._pool.get(St(i));if(!o)return;if(f.electronExtension.enable()&&r){const{conversationType:l,targetId:c,channelId:u}=r,{data:d}=await f.getConversation({conversationType:l,targetId:c,channelId:u});if(!d)return;d.conversationType===f.ConversationType.GROUP&&d.hasMentioned?o.mentionedType=ct.AT_ME:o.mentionedType=ct.NONE,this._paddingData(o,d),this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,[o]));return}const a=o.latestMessage;!a||a.transactionId!==i.transactionId&&a.messageUId!==i.messageUId||(o.latestMessage=r||this.ctx.message.getConversationLatestMessage(o),this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,[o])))}async _onInsertNewMessages(s){const n=s.data,i=n[n.length-1],r=St(i);let o=this._pool.get(r);o||(o=this._parseConversationList([{latestMessage:i,conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId,lastUnreadTime:0}])[0]),o.latestMessage=i,o.updateTime=i.sentTime,o.markReaded=!0,o.markUnread=!1,this._recalculatePosition(new Set([o]))}_onMessageStateChange(s){const n=s.data,i=[];n.forEach(r=>{const o=St(r),a=this._pool.get(o);a&&a.latestMessage&&(a.latestMessage.transactionId===r.transactionId||a.latestMessage.messageUId==r.messageUId)&&(a.latestMessage=r,i.push(a))}),i.length&&this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,i))}_getMentionedType(s,n){if(!n)return ct.NONE;const{type:i,userIdList:r}=n;return i===f.MentionedType.ALL?ct.AT_ALL:!r||!Array.isArray(r)?ct.NONE:r.includes(s)?ct.AT_ME:ct.NONE}_onUserProfilesUpdate(s){const n=[];s.data.forEach(i=>{const r=this._pool.get(St({conversationType:f.ConversationType.PRIVATE,targetId:i.userId}));r&&(r.name!==i.name||r.portraitUri!==i.portraitUri||r.online!==i.online)&&(r.name=i.name,r.portraitUri=i.portraitUri,r.online=i.online,n.push(r))}),n.length&&this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,n))}_onSystemProfilesUpdate(s){const n=[];s.data.forEach(i=>{const r=this._pool.get(St({conversationType:f.ConversationType.SYSTEM,targetId:i.systemId}));r&&(r.name!==i.name||r.portraitUri!==i.portraitUri)&&(r.name=i.name,r.portraitUri=i.portraitUri,n.push(r))}),n.length&&this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,n))}_onGroupProfilesUpdate(s){const n=s.data,i=[];n.forEach(r=>{const o={conversationType:f.ConversationType.GROUP,targetId:r.groupId},a=this._pool.get(St(o));a&&(a.name!==r.name||a.portraitUri!==r.portraitUri||a.memberCount!==r.memberCount)&&(a.name=r.name,a.portraitUri=r.portraitUri,a.memberCount=r.memberCount,i.push(a))}),i.length&&this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,i))}updateLatesMessageStatus(s){if(!(!s||s.length<=0)&&this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5){const n=s.filter(i=>i.conversationType===f.ConversationType.PRIVATE&&i.latestMessage&&i.latestMessage.senderUserId===this.ctx.userId);this._handleLatestReadReceiptInfoV5(n)}}async _onSyncReadStatus(s){const n={conversationType:s.conversationType,channelId:s.channelId||"",targetId:s.targetId},i=St(n);let r=this._pool.get(i);if(!r)return;const{code:o,data:a}=await f.getUnreadCount(n);if(o===f.ErrorCode.SUCCESS&&r.unreadCount!==a){if(r.mentionedType=ct.NONE,f.electronExtension.enable()){const{data:l}=await f.getConversation(n);r.mentionedType=l&&l.hasMentioned?ct.AT_ME:ct.NONE}r.unreadCount=a,this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,[r]))}}_onRecvConversationNtf(s){this._converNtfQueue.push(...s.conversationList)}_handleConversationNtf(s){const{conversation:n,updatedItems:i}=s,r=St(n);let o=0,a=this._pool.get(r);return a&&i?this._handleUpdatedItems(a,i,n):!a&&(i!=null&&i.latestMessage)?(n.conversationType===f.ConversationType.PRIVATE?a=this._transPriConversation(n):n.conversationType===f.ConversationType.GROUP?a=this._transGroupConversation(n):a=this._transSystemConversation(n),{changeType:2,conversation:a}):{changeType:o}}_handleUpdatedItems(s,n,i){var o,a,l,c,u;let r=0;if(n.isTop&&(s.isTop=n.isTop.val,r=Math.max(2,r)),n.notificationLevel&&(s.notificationLevel=n.notificationLevel.val,r=Math.max(1,r)),(o=n.latestMessage)!=null&&o.val&&(i.conversationType===f.ConversationType.GROUP&&i.hasMentioned?s.mentionedType=i.mentionedInfo.type===f.MentionedType.ALL?ct.AT_ALL:ct.AT_ME:s.mentionedType=ct.NONE,this._paddingData(s,i),s.markReaded&&i.unreadMessageCount&&(s.markReaded=!1),r=Math.max(2,r)),n.unreadMessageCount&&!((a=n.latestMessage)!=null&&a.val)&&(s.unreadCount=i.unreadMessageCount||0,s.markReaded&&s.unreadCount>0&&(s.markReaded=!1),r=Math.max(1,r)),n.hasMentioned&&!((l=n.latestMessage)!=null&&l.val)&&(i.conversationType===f.ConversationType.GROUP&&i.hasMentioned?s.mentionedType=((c=i.mentionedInfo)==null?void 0:c.type)===f.MentionedType.ALL?ct.AT_ALL:ct.AT_ME:s.mentionedType=ct.NONE,r=Math.max(1,r)),this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5)try{const d=`${s.conversationType}|${s.targetId}|${s.channelId||""}|${((u=s.latestMessage)==null?void 0:u.messageUId)||""}`,h=Cn(this,fi).get(d);h&&(s.latestMessage.kitReadReceiptInfo=h,r=Math.max(1,r))}catch(d){this.logger.warn(B.L_HANDLE_READ_RECEIPT_V5_E,`handle Updated Items error: ${d}`)}return{changeType:r,conversation:s}}_paddingData(s,n){s.latestMessage=n.latestMessage?mi(n.latestMessage):null,s.unreadCount=n.unreadMessageCount||0,s.isTop=!!n.isTop,f.electronExtension.enable()?(s.draft=n.draft||"",s.updateTime=n.operationTime||(n.latestMessage?n.latestMessage.sentTime:0)):s.updateTime=n.latestMessage?n.latestMessage.sentTime:0,n.notificationLevel&&(s.notificationLevel=n.notificationLevel)}_transPriConversation(s){const n=this.ctx.appData.getUserProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,i.online=n.online,this._paddingData(i,s),i}_transSystemConversation(s){const n=this.ctx.appData.getSystemProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,this._paddingData(i,s),i}_transGroupConversation(s){const n=this.ctx.appData.getGroupProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,i.memberCount=n.memberCount,s.hasMentioned?i.mentionedType=s.mentionedInfo.type===f.MentionedType.ALL?ct.AT_ALL:ct.AT_ME:i.mentionedType=ct.NONE,this._paddingData(i,s),i}_parseConversationList(s){const n=[];return s.forEach(i=>{const{targetId:r,conversationType:o,latestMessage:a}=i;switch(a&&this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&a.readReceiptInfo&&a.senderUserId===this.ctx.userId&&(a.sentStatus=f.SentStatus.READ),o){case f.ConversationType.PRIVATE:n.push(this._transPriConversation(i));return;case f.ConversationType.GROUP:n.push(this._transGroupConversation(i));return;case f.ConversationType.SYSTEM:n.push(this._transSystemConversation(i));return;default:this.logger.warn(B.L_PARSE_CONVERSATION_E,`unknown conversation type: ${o}, targetId: ${r}`);return}}),n}getCachedConversationList(){return this._list.slice()}_addToConversationList(s,n=!0){let i=this._list.findIndex(l=>_t(l,s));if(i>-1){if(!n)return{origin:i,current:i};this._list.splice(i,1)}const{isTop:r,updateTime:o}=s;let a=this._list.findIndex((l,c)=>r!==l.isTop?r:o!==l.updateTime?o>l.updateTime:i>-1&&c>=i);return a===-1&&(a=this._list.length),this._list.splice(a,0,s),{origin:i,current:a}}_onRecvNewMessages(s){this._messageQueue.push(...s.data)}_handleMessage(s){const n=this.ctx.userId;let i=0;const r=St(s),{content:o,conversationType:a,targetId:l,channelId:c,sentTime:u,isCounted:d,senderUserId:h}=s;let p=this._pool.get(r);if(!p){const _={latestMessage:s,conversationType:a,targetId:l,channelId:c,lastUnreadTime:0};a===f.ConversationType.PRIVATE?p=this._transPriConversation(_):a===f.ConversationType.GROUP?p=this._transGroupConversation(_):p=this._transSystemConversation(_),i=2}return a===f.ConversationType.GROUP&&p.mentionedType!==ct.AT_ME&&h!==n&&(p.mentionedType=Math.max(this._getMentionedType(n,o.mentionedInfo),p.mentionedType),i=Math.max(i,1)),u>=p.updateTime&&(p.latestMessage=s,p.updateTime=u,i=2),d&&h!==n&&(p.unreadCount+=1,p.markReaded=!1,i=Math.max(i,1)),{changeType:i,conversation:p}}_recalculatePosition(s){const n=[];[...s].sort((r,o)=>r.updateTime-o.updateTime).forEach(r=>{const{current:o}=this._addToConversationList(r);n.push({order:o,conversation:r})}),this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_ORDER_CHANGE,n))}async _getMoreRemoteConversation(s=!1,n=0){const i=n===0?30:200,{code:r,data:o}=await f.getConversationListByTimestamp({count:i,startTime:n});if(s&&this._pullOfflineMessageFinished)return;if(r!==f.ErrorCode.SUCCESS&&!s){this.logger.error(B.L_GET_CONVERSATION_E,`get conversation list failed: code = ${r}, count = ${i}, startTime = ${n}`),this._getRemoteConversationTimer=setTimeout(()=>this._getMoreRemoteConversation(s,n),1e3);return}this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&this._handleLatestReadReceiptInfoV5(o||[]);const a=o||[];if(a.length===0||s){this._onGetRemoteConversationListDone(s);return}n===0&&!s&&(this._list.length=0);const c=this._parseConversationList(a);let u=n;if(u=this._handleNextRequestTimestamp(u,c),this.ctx.dispatchEvent(new ie(Y.CONVERSATION_LIST_RESET,this._list)),s||f.electronExtension.enable()||a.length<i){this._onGetRemoteConversationListDone(s);return}this._getRemoteConversationTimer=setTimeout(()=>this._getMoreRemoteConversation(!1,u),300)}_handleNextRequestTimestamp(s,n){return n.forEach(i=>{this._addToConversationList(i,!1),i.updateTime&&(s=s===0?i.updateTime:Math.min(i.updateTime,s))}),s}_onPullOfflineMessageFinished(){this._getRemoteConversationTimer&&(clearTimeout(this._getRemoteConversationTimer),this._getRemoteConversationTimer=null),this._handleQueueTimer&&(clearTimeout(this._handleQueueTimer),this._handleQueueTimer=null),this._pullOfflineMessageFinished?this._handleQueueDelay():this._getMoreRemoteConversation(!1),this._pullOfflineMessageFinished=!0}_onConnected(){q0(this,ma,Z0).call(this),!this._getRemoteConversationFinished&&!Cn(this,hi)&&this._getMoreRemoteConversation(!0)}_onConversationsSynced(){Zr(this,Kr,!0),this._pullOfflineMessageFinished||setTimeout(()=>this._getMoreRemoteConversation(!1),100)}async _handleLatestReadReceiptInfoV5(s){var o;const n=this._buildIdentifiersForLatest(s);if(!n.length)return;const i=100,r=[];for(let a=0;a<n.length;a+=i)r.push(n.slice(a,a+i));try{(await Promise.all(r.map(l=>f.getMessageReadReceiptInfoV5ByIdentifiers(l)))).forEach(l=>{((l==null?void 0:l.data)||[]).forEach(u=>{const d=(u==null?void 0:u.identifier)||{},h=`${d.conversationType}|${d.targetId}|${d.channelId||""}|${u.messageUId}`;Cn(this,fi).set(h,u)})}),this._list.forEach(l=>{if(l.conversationType!==f.ConversationType.PRIVATE)return;const c=l.latestMessage;if(!(c!=null&&c.messageUId))return;const u=`${l.conversationType}|${l.targetId}|${l.channelId||""}|${c.messageUId}`,d=Cn(this,fi).get(u);d&&(l.latestMessage.kitReadReceiptInfo=d,this._pool.set(l.key,l))})}catch(a){(o=this.logger)==null||o.warn(B.L_GET_READ_RECEIPT_INFO_V5_E,`getMessageReadReceip·tInfoV5ByIdentifiers error: ${a}`)}}_buildIdentifiersForLatest(s){const n=[];return s.forEach(i=>{const r=i.latestMessage;i.conversationType===f.ConversationType.PRIVATE&&(r==null?void 0:r.messageDirection)===f.MessageDirection.SEND&&(r!=null&&r.messageUId)&&n.push({identifier:{conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId},messageUId:r.messageUId})}),n}_onV5ReceiptResponse(s){if(this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5)try{if(!s||!Array.isArray(s))return;s.forEach(n=>{const i=(n==null?void 0:n.identifier)||{},r=`${i.conversationType}|${i.targetId}|${i.channelId||""}|${n.messageUId}`;Cn(this,fi).set(r,n);const o=St({conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId}),a=this._pool.get(o);a&&a.latestMessage&&a.latestMessage.messageUId===(n==null?void 0:n.messageUId)&&(a.latestMessage.kitReadReceiptInfo=n,this._pool.set(o,a),this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,[a])),this.logger.debug(B.L_V5_RECEIPT_RESPONSE_O,`onV5ReceiptResponse success: ${JSON.stringify(a)}`))})}catch(n){this.logger.warn(B.L_V5_RECEIPT_RESPONSE_E,`onV5ReceiptResponse error: ${n}`)}}_onGetRemoteConversationListDone(s){s||(this._getRemoteConversationFinished=!0),this._handleQueue()}_handleQueueDelay(){this._handleQueueTimer||(this._handleQueueTimer=setTimeout(()=>{this._handleQueueTimer=null,this._handleQueue()},20))}_handleQueue(){if(this._messageQueue.length===0&&this._converNtfQueue.length===0){this._handleQueueDelay();return}if(this._list.length>=20&&!this._getRemoteConversationFinished)return;const s=new Set,n=new Set,i=new Set,r=Number.MAX_SAFE_INTEGER,o=20,a=Date.now(),l=c=>{const{changeType:u,conversation:d}=c;u===1?(i.add(d),s.add(d)):u===2&&(n.add(d),s.add(d))};if(this._handleMessageQueue(l,s,r,o,a),this._handleQueueNotify(l,s,r,o,a),n.size&&this._recalculatePosition(n),i.size){const c=[...i].filter(u=>!n.has(u));c.length&&this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,c))}this._handleQueueDelay()}_handleMessageQueue(s,n,i,r,o){for(;this._messageQueue.length&&Date.now()-o<r&&n.size<i;){const a=this._messageQueue[0];if(!this._getRemoteConversationFinished&&!a.isOffLineMessage)break;if(this._getRemoteConversationFinished&&a.isOffLineMessage){this._messageQueue.shift();continue}const l=mi(this._messageQueue.shift());s(this._handleMessage(l))}}_handleQueueNotify(s,n,i,r,o){var a,l,c;if(!this._getRemoteConversationFinished){let u=0;for(;this._messageQueue.length===0&&u<this._converNtfQueue.length&&Date.now()-o<r&&n.size<i;){const d=this._converNtfQueue[u];if((a=d.updatedItems)!=null&&a.latestMessage){if(!d.updatedItems.latestMessage.val.isOffLineMessage)break;this._converNtfQueue.splice(u,1),s(this._handleConversationNtf(d));continue}u+=1}return}for(;this._messageQueue.length===0&&this._converNtfQueue.length&&Date.now()-o<r&&n.size<i;){const u=this._converNtfQueue.shift();(c=(l=u.updatedItems)==null?void 0:l.latestMessage)!=null&&c.val.isOffLineMessage||s(this._handleConversationNtf(u))}}async getMoreConversationList(s,n){let i=s?this._list.findIndex(l=>_t(l,s)):-1;i===-1?i=0:i=i+1;const r=i+(n||30),o=this._list.slice(i,r);return{hasMore:this._list.length>r||!this._getRemoteConversationFinished,code:f.ErrorCode.SUCCESS,list:o}}_alertImLibFailure(s){const n=s===Sv?"alert.imlib.failed.network":"alert.imlib.failed.generic";this.ctx.alert(n,s)}async removeConversation(s){const{code:n}=await f.removeConversation(s);if(n!==f.ErrorCode.SUCCESS){this._alertImLibFailure(n);return}const i=St(s),r=this._list.findIndex(l=>_t(l,s));if(r>-1){const[l]=this._list.splice(r,1);this._pool.delete(i),this.ctx.dispatchEvent(new ie(Y.CONVERSATIN_ITEM_REMOVE,[l])),l===this._openedConversation&&this._setOpenedConversation(null,!1)}if(!this.ctx.store.getCommandSwitch(xt.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION))return;this.ctx.message.removeCachedMessages(s);const a=f.getServerTime()+5e3;f.clearHistoryMessages(s,a),f.electronExtension.enable()&&f.electronExtension.deleteMessagesByTimestamp(s,a,!1)}async openConversation(s,n=!0){if($n(s))return{code:ks.INVALID_CONVERSATION};if(!this._getRemoteConversationFinished||!this._pullOfflineMessageFinished)return{code:ks.CONVERSATION_LIST_NOT_READY};if(this._openedConversation&&_t(this._openedConversation,s))return{code:f.ErrorCode.SUCCESS};const{targetId:i,conversationType:r,channelId:o=""}=s;let a=this._list.findIndex(c=>_t(c,s)),l=this._list[a];return l||([l]=this._parseConversationList([{targetId:i,conversationType:r,channelId:o,latestMessage:null,lastUnreadTime:0}]),l.updateTime=f.getServerTime(),this._recalculatePosition(new Set([l]))),this._setOpenedConversation(l,n),{code:f.ErrorCode.SUCCESS}}_setOpenedConversation(s,n=!0){this._clearTypingStatus(),this._openedConversation=s,this.ctx.emit(new ie(ge.CONVERSATION_SELECTED,{conversation:s,focusInput:n}),1)}async setConversationNotificationLevel(s,n){if($n(s))return{code:ks.INVALID_CONVERSATION};const i=this._list.find(o=>_t(o,s));if(!i)return{code:f.ErrorCode.CONVER_GET_ERROR};if(i.notificationLevel===n)return{code:f.ErrorCode.SUCCESS};const{code:r}=await f.setConversationNotificationLevel(s,n);return r!==f.ErrorCode.SUCCESS?(this._alertImLibFailure(r),{code:r}):(i.notificationLevel=n,this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,[i])),{code:r})}async setConversationToTop(s,n){if($n(s))return{code:ks.INVALID_CONVERSATION};n=!!n;const i=this._list.find(o=>_t(o,s));if(!i)return{code:f.ErrorCode.CONVER_GET_ERROR};if(i.isTop===n)return{code:f.ErrorCode.SUCCESS};const{code:r}=await f.setConversationToTop(s,n);return r!==f.ErrorCode.SUCCESS?(this._alertImLibFailure(r),{code:r}):(i.isTop=n,this._recalculatePosition(new Set([i])),{code:r})}async markConversationReaded(s){var r;const{data:n}=await f.getFirstUnreadMessage(s);await this.clearUnreadCountByTimestamp(s,((r=s.latestMessage)==null?void 0:r.sentTime)||Date.now());const i=[];n&&i.push(mi(n)),s.latestMessage&&i.push(s.latestMessage),this.ctx.message.sendReadReceiptMessage(s,i)}markConversationUnread(s){s.markReaded=!1,s.markUnread=!0,this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,[s]))}getCachedConversationByKey(s){return this._pool.get(s)}async clearUnreadCountByTimestamp(s,n){const i=this.getCachedConversationByKey(St(s));if(!f.electronExtension.enable())await f.clearMessagesUnreadStatus(s),i.unreadCount=0,i.mentionedType=ct.NONE,i.markReaded=!0,i.markUnread=!1;else{await f.clearUnreadCountByTimestamp(s,n);const{data:r}=await f.getUnreadCount(s);i.unreadCount=r,i.markReaded=!0,i.markUnread=!1,i.mentionedType=ct.NONE}return this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_CHANGE,[i])),await f.sendSyncReadStatusMessage(s,n+1||Date.now()),{code:f.ErrorCode.SUCCESS}}async handleConversationDraft(s,n){if(!s)return;const{data:i}=await f.getTextMessageDraft(s);if(i===n)return;const r=St(s);let o=this._pool.get(r);if(n){const{code:l}=await f.saveTextMessageDraft(s,n);if(l!==f.ErrorCode.SUCCESS||!o)return;o.draft=n,o.updateTime=f.getServerTime();const{current:c}=this._addToConversationList(o);this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_ORDER_CHANGE,[{order:c,conversation:o}]));return}if(await f.clearTextMessageDraft(s),!o)return;o.draft="",o.latestMessage&&(o.updateTime=o.latestMessage.sentTime);const{current:a}=this._addToConversationList(o);this.ctx.dispatchEvent(new ie(Y.CONVERSATION_ITEM_ORDER_CHANGE,[{order:a,conversation:o}]))}updateLastReadTime(s,n){if(!this.ctx.conversationStore)return;const{conversationType:i,targetId:r,channelId:o=""}=s,a=this.ctx.conversationStore.get(i,r,o);n>a.lastReadTime&&this.ctx.conversationStore.set(i,r,{lastReadTime:n},o)}getLastReadTime(s){if(!this.ctx.conversationStore)return 0;const{conversationType:n,targetId:i,channelId:r=""}=s;return this.ctx.conversationStore.get(n,i,r).lastReadTime||0}sendTypingStatus(s=f.MessageType.TEXT){!this._openedConversation||this._openedConversation.conversationType!==f.ConversationType.PRIVATE||this._typingTime||(this._typingTime=setTimeout(()=>{this._typingTime=null},5e3),f.sendTypingStatusMessage(this._openedConversation,s))}_clearTypingStatus(){this._typingTime&&(clearTimeout(this._typingTime),this._typingTime=null)}}fi=new WeakMap,hi=new WeakMap,Kr=new WeakMap,ma=new WeakSet,Z0=function(){const{isConversationListIncludeUltraGroup:s}=f.getAppSettings()||{};Zr(this,hi,!!s)};const Iv=e=>({...e}),D0={radius:20,portraitSize:"large",topBackgroundColor:"#EFF4FF",hoverBackgroundColor:"#F3F5FA",activeBackgroundColor:"#D2E1FE"};class wv extends Ss{constructor(s){super(s);K(this,"conversationItemCfg",{});this.setConversationItemCfg(D0)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this.setConversationItemCfg(D0)}cloneConversationItemCfg(){return Iv(this.conversationItemCfg)}setConversationItemCfg(s){this.conversationItemCfg={...this.conversationItemCfg,...s}}}class Rv extends Mc{constructor(s,n,i,r){super();K(this,"store");K(this,"conversationStore",null);K(this,"i18n");K(this,"appData");K(this,"message");K(this,"conversation");K(this,"conversationItem");K(this,"input");K(this,"bubble");K(this,"audioPlayer");K(this,"conversationMenu");K(this,"msgMenu");K(this,"speechToTextStore");K(this,"_stat");K(this,"_originUserId","");K(this,"_readReceiptVersion");K(this,"_status",j.RCConnectionStatus.DISCONNECTED);K(this,"isElectronRuntime",!1);K(this,"modalContainerId","");K(this,"allowedToRecallTime");K(this,"allowedToReEditTime");this.context=s,this.logger=n,this._emittor=i,this._stat=new rc(s),this.modalContainerId=r.modalContainerId||"",this.allowedToRecallTime=r.allowedToRecallTime||120,this.allowedToReEditTime=r.allowedToReEditTime||60,this.store=new of(n),this.i18n=new O5(this),this.audioPlayer=new yv(this),this.appData=new M5(this,r.hooks),this.message=new vv(this),this.conversation=new Tv(this),this.conversationItem=new wv(this),this.input=new Am(this),this.bubble=new fE(this),this.conversationMenu=new Cv(this),this.msgMenu=new hE(this),this.speechToTextStore=new gc(n,this),this.msgMenu.setSpeechToTextStore(this.speechToTextStore),r.language&&this.i18n.setLanguage(r.language),f.addEventListener(f.Events.CONNECTED,this._onConnected,this),f.addEventListener(f.Events.DISCONNECT,this._onDisconnected,this),f.addEventListener(f.Events.SUSPEND,this._onSuspend,this),f.addEventListener(f.Events.CONNECTING,this._onConnecting,this)}get readReceiptVersion(){return this._readReceiptVersion}get userId(){return this._originUserId}get status(){return this._status}_onConnecting(){this._status=j.RCConnectionStatus.CONNECTING,this.dispatchEvent(new Yi(j.RCConnectionStatus.CONNECTING))}_onDisconnected(s){this._status=j.RCConnectionStatus.DISCONNECTED,this.dispatchEvent(new Yi(j.RCConnectionStatus.DISCONNECTED,s))}_onSuspend(s){this._status=j.RCConnectionStatus.SUSPENDED,this.dispatchEvent(new Yi(j.RCConnectionStatus.SUSPENDED,s))}_onConnected(){var n;this._status=j.RCConnectionStatus.CONNECTED,this._readReceiptVersion=(n=f.getAppSettings())==null?void 0:n.readReceiptVersion;const s=f.getCurrentUserId();if(this._originUserId===s){this.dispatchEvent(new Yi(j.RCConnectionStatus.CONNECTED));return}this._originUserId&&this._originUserId!==s&&(this._originUserId=s,this.dispatchEvent(new ie(Y.DESTROY_USER_CACHE),!1)),this._originUserId=s,this.dispatchEvent(new ie(Y.INIT_USER_CACHE),!1),this.dispatchEvent(new Yi(j.RCConnectionStatus.CONNECTED)),this.conversationStore=new df(window,this.getAppkey(),this.userId,this.logger)}destroy(){f.removeEventListener(f.Events.CONNECTED,this._onConnected,this),f.removeEventListener(f.Events.DISCONNECT,this._onDisconnected,this),f.removeEventListener(f.Events.SUSPEND,this._onSuspend,this),f.removeEventListener(f.Events.CONNECTING,this._onConnecting,this),this.i18n.destroy(),this.appData.destroy(),this.message.destroy(),this.conversation.destroy(),this.input.destroy(),this.bubble.destroy(),this.conversationMenu.destroy(),this.msgMenu.destroy(),this.speechToTextStore.destroy(),this._originUserId="",this._readReceiptVersion=void 0}alert(s,...n){this.emit(new ie(ge.ALERT_EVENT,this.i18n.format(s,...n)))}confirm(s,...n){const i=new ie(ge.CONFIRM_EVENT,this.i18n.format(s,...n));return this.emit(i),i.awaitResult()}emit(s,n=0){const i=s.clone(n!==0);this._emittor.dispatchEvent(i,!1),!(n===2||n===0&&i.isDefaultPrevented())&&this.dispatchEvent(s)}getAppkey(){return this.context.getAppkey()}statistic(s){this._stat.report(s)}}const Mv={class:"voice"},Ov=["src"],bv={class:"progress"},Lv={class:"time"},Av=Ie(Te({__name:"hq-voice-message.ce",props:{value:{type:Object}},setup(e){const t=c=>`${Math.max(0,Math.floor(c))}s`,s=ye(()=>t(e.value.duration)),n=m5,i=E5;e.value.isOwner;const r=new Array(20).fill(0).map(c=>(Math.floor(Math.random()*9)+3)*2),o=ye(()=>Math.floor(e.value.progress/100*20)||-1),a=ye(()=>e.value.playing?i:n),l=()=>e.value.toggle();return(c,u)=>(w(),P("div",null,[y("div",Mv,[y("img",{src:a.value,alt:"Button Icon",class:"control",onClick:l},null,8,Ov),y("div",bv,[(w(!0),P(De,null,Ot(x(r),(d,h)=>(w(),P("div",{class:Je(["line",{active:o.value>=h}]),style:it({height:d+"px"})},null,6))),256))]),y("div",Lv,oe(s.value),1)])]))}}),[["styles",[`.voice{display:flex;align-items:center;padding:20px;gap:10px}.voice .control{width:20px;height:20px;cursor:pointer}.voice .progress{height:22px;display:flex;align-items:center}.voice .progress .line{margin-right:4px;width:3px;border-radius:3px;animation:bounce-in 2s;background:#020814}.voice .progress .line.active{transition:all .5s;background:#0047FF}.voice .time{font-size:14px}
|
|
393
|
-
`]]]);var
|
|
325
|
+
**/const u2=Object.create(null);function i_(e,t){if(!be(e))if(e.nodeType)e=e.innerHTML;else return kt;const s=Np(e,t),n=u2[s];if(n)return n;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const i=Ve({hoistStatic:!0,onError:void 0,onWarn:kt},t);!i.isCustomElement&&typeof customElements<"u"&&(i.isCustomElement=a=>!!customElements.get(a));const{code:o}=n_(e,i),r=new Function("Vue",o)(h6);return r._rc=!0,u2[s]=r}sd(i_);const o_=U("ltr"),li=U("zh_CN");function r_(e){e.addEventListener(Z.LANGUAGE_CHANGE,t=>{li.value=t.data.lang,o_.value=t.data.direction})}function Ze(e,...t){return me(()=>Ce(e,...t))}function Ce(e,...t){const s=Ns[li.value].entries[e];return s?t.length===0?s:s.replace(/\{\d+\}/g,(n,i)=>t[parseInt(n.substring(1,n.length-1),10)].toString()):e}function a_(e){return!!Ns[li.value].entries[e]}const l_=["src"],c_={key:0,class:"rc-icon-online"},u_=Te({__name:"icon.ce",props:{url:{type:String,require:!0},online:{type:Boolean,require:!0},width:{type:Number,require:!0},height:{type:Number,require:!0},radius:{type:Number,require:!0}},setup(e){const t=e;return(s,n)=>(R(),D("div",{class:"rc-icon",style:rt({width:`${t.width}px`,height:`${t.height}px`,borderRadius:`${t.radius}%`})},[y("img",{class:"author",src:t.url,alt:"icon"},null,8,l_),t.online?(R(),D("span",c_)):de("",!0)],4))}}),d_=`.author{border:none;margin:0;padding:0;width:100%;height:100%}.rc-icon{font-size:0;overflow:hidden}.rc-icon-online{display:block;width:7px;height:7px;border-radius:50%;background-color:#46db7a;border:.8px solid #FFFFFF;position:absolute;right:0;bottom:5px}
|
|
326
|
+
`,Re=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},f_=Re(u_,[["styles",[d_]]]),h_={class:"rc-icon-notification"},p_=["src"],g_=Re(Te({__name:"icon-notification.ce",setup(e){return(t,s)=>(R(),D("div",h_,[y("img",{src:N(lp),alt:"icon-notification"},null,8,p_)]))}}),[["styles",[`.rc-icon-notification{margin-left:5px;display:flex;align-items:center}
|
|
327
|
+
`]]]),__={class:"rc-icon-notification"},m_=["src"],E_=Re(Te({__name:"icon-top.ce",setup(e){return(t,s)=>(R(),D("div",__,[y("img",{src:N(cp),alt:"icon-notification"},null,8,m_)]))}}),[["styles",[`.rc-icon-notification{margin-left:5px;display:flex;align-items:center}
|
|
328
|
+
`]]]),v_={class:"rc-conversation-label"},C_=Re(Te({__name:"conversation-label.ce",props:{name:{type:String}},setup(e){const t=e;return(s,n)=>(R(),D("div",v_,re(t.name),1))}}),[["styles",[`.rc-conversation-label{color:#41464f;font-weight:400;font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}
|
|
329
|
+
`]]]),y_={class:"rc-conversation-latest-message"},S_={class:"content content-webkit-display content-moz-display"},T_=Re(Te({__name:"conversation-latest-message.ce",props:{message:{type:String,required:!0}},setup(e){const t=e;return(s,n)=>(R(),D("div",y_,[y("span",S_,re(t.message),1)]))}}),[["styles",[`.rc-conversation-latest-message{color:#7c838e;font-weight:400;font-size:12px;display:flex}.content-moz-display{display:-moz-box;-moz-line-clamp:1!important;-moz-box-orient:vertical}.content-webkit-display{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.content{overflow:hidden;text-overflow:ellipsis;flex:1;line-height:18px;word-break:break-all;word-wrap:break-word}
|
|
330
|
+
`]]]),I_={class:"rc-kit-conversation-unread"},R_=Re(Te({__name:"conversation-unread.ce",props:{count:{type:Number,require:!0,default:0},notification:{type:Number,require:!0,default:-1},markunread:{type:Boolean,require:!0,default:!1}},setup(e){const t=e,s=()=>t.count>99?"99+":t.count>0?t.count:1;return(n,i)=>(R(),D("div",I_,[t.count||t.markunread?(R(),D("div",{key:0,class:Fe([{active:t.notification==5},"unread-box"])},[y("span",{class:Fe([{active:t.count>99},"message-count"])},re(s()),3)],2)):de("",!0)]))}}),[["styles",[`.rc-kit-conversation-unread{display:flex;align-items:center;justify-content:center;margin-top:4px}.unread-box{background-color:#ff5a50;font-size:10px;color:#fff;border-radius:12px;text-align:center}.unread-box.active{background-color:#e4e8ef;color:#41464f}.message-count{display:block;line-height:16px;min-width:16px;height:16px}.message-count.active{padding:0 5px}
|
|
331
|
+
`]]]),w_={class:"rc-conversation-list-item-avatar"},M_={class:"conversation-info"},O_={class:"info-block",style:{"align-items":"center"}},b_={style:{"max-width":"50%"}},L_={class:"rc-time-icon-container"},A_=["src"],x_={class:"info-block"},k_={key:0,class:"rc-kit-conversation-draft"},U_={class:"draft"},N_={key:1,class:"rc-kit-conversation-group"},D_={key:0,class:"mentioned"},P_={key:1},V_=Re(Te({__name:"conversation-list-item.ce",props:{message:{type:String},time:{type:String},conversation:{type:Object},statusEnable:{type:[Boolean,null]},name:{type:String},draft:{type:[Boolean,null]},selected:{type:[Boolean,null]},rightClicked:{type:[Boolean,null]}},emits:["menu-click"],setup(e,{emit:t}){const s=e,n=t,i=b=>{n("menu-click",b),o.value=!0};let o=U(!1);const r=me(()=>s.rightClicked&&o.value),a=Se(),l=a.conversationItem.conversationItemCfg,c=me(()=>{const b=l,w={};return b.radius!==void 0&&(w.borderRadius=`${b.radius}px`),w["--rc-item-selected-bg"]=Fn(b.activeBackgroundColor),w["--rc-item-top-bg"]=Fn(b.topBackgroundColor),w["--rc-item-hover-bg"]=s.selected?w["--rc-item-selected-bg"]:Fn(b.hoverBackgroundColor),w}),u=me(()=>l.portraitSize==="small"?32:40),d=Ze("conv.mentioned.me.msg"),h=Ze("conv.draft.msg"),p=me(()=>{var b,w;return((b=s.conversation.latestMessage)==null?void 0:b.sentStatus)===j.SentStatus.FAILED||((w=s.conversation.latestMessage)==null?void 0:w.sentStatus)===j.SentStatus.SENDING}),_=me(()=>a.store.getCommandSwitch(It.SHOW_MESSAGE_STATE)&&a.readReceiptVersion===j.GroupReadReceiptVersion.V5&&!p.value?s.conversation.conversationType!==j.ConversationType.GROUP:!0),m=me(()=>!s.statusEnable||!_.value||!s.conversation.latestMessage||s.draft?!1:p.value?!0:!s.conversation.unreadCount&&!s.conversation.markUnread);return(b,w)=>{const C=ve("rc-icon"),g=ve("rc-conversation-label"),E=ve("rc-icon-top"),v=ve("rc-icon-notification"),L=ve("rc-conversation-time"),F=ve("rc-message-sent-status"),$=ve("rc-conversation-latest-message"),A=ve("rc-conversation-unread");return R(),D("div",{class:Fe(["rc-conversation-list-item",{"active-top":s.conversation.isTop,"active-selected":s.selected&&!s.rightClicked,"active-right-clicked":s.rightClicked}]),style:rt(c.value)},[y("div",w_,[Ie(C,{class:"rc-icon",width:u.value,height:u.value,radius:50,url:s.conversation.portraitUri,online:s.conversation.online},null,8,["width","height","url","online"])]),y("div",M_,[y("div",O_,[y("div",b_,[Ie(g,{name:s.conversation.name},null,8,["name"])]),s.conversation.isTop?(R(),xe(E,{key:0})):de("",!0),s.conversation.notificationLevel===5?(R(),xe(v,{key:1})):de("",!0),y("div",L_,[Ie(L,{class:"rc-conversation-time",time:s.time},null,8,["time"]),y("div",{class:"hover-menu-icon",onClick:Cs(i,["stop"])},[y("img",{width:16,height:16,src:r.value?N(Qc):N(zc),alt:"HOVER_MENU_ICON"},null,8,A_)])])]),y("div",x_,[s.draft?(R(),D("div",k_,[y("span",U_,re(N(h)),1)])):de("",!0),s.conversation.conversationType===N(j.ConversationType).GROUP&&!s.draft?(R(),D("div",N_,[s.conversation.mentionedType?(R(),D("span",D_,re(N(d)),1)):de("",!0),s.name?(R(),D("span",P_,re(s.name)+": ",1)):de("",!0)])):de("",!0),m.value?(R(),xe(F,{key:2,class:"rc-message-sent-status",type:1,message:s.conversation.latestMessage},null,8,["message"])):de("",!0),s.message||e.conversation.draft?(R(),xe($,{key:3,class:"rc-conversation-latest-message",message:s.draft?e.conversation.draft:s.message,mentioned:s.conversation.mentionedType},null,8,["message","mentioned"])):de("",!0),m.value?de("",!0):(R(),xe(A,{key:4,markunread:s.conversation.markUnread,count:s.conversation.unreadCount,notification:s.conversation.notificationLevel},null,8,["markunread","count","notification"]))])])],6)}}}),[["styles",[`.rc-message-sent-status{margin-right:5px;margin-top:2px}.rc-conversation-list-item{display:flex;height:78px;align-items:center;padding:0 14px 0 10px;border-radius:5px;cursor:pointer;margin-top:6px}@media (max-width: 768px){.rc-conversation-list-item{user-select:none;-webkit-user-select:none}}.rc-conversation-list-item-avatar{width:40px;height:40px;display:flex;justify-content:center;align-items:center;flex-shrink:0}.rc-conversation-list-item.active-top{background-color:var(--rc-item-top-bg)}.rc-conversation-list-item.active-selected{background-color:var(--rc-item-selected-bg)}.rc-conversation-list-item.active-right-clicked{background-color:#f1f1f1!important}.rc-conversation-list-item:hover{background-color:var(--rc-item-hover-bg)}.rc-conversation-list-item .conversation-info{margin-left:8px;flex:1 1 auto;overflow:hidden;height:44px}.rc-conversation-list-item .conversation-info .info-block{font-size:12px;display:flex}.rc-conversation-latest-message{flex:1;overflow:hidden;min-height:18px;margin:4px 15px 0 0}.rc-icon{position:relative;font-size:0px}.rc-kit-conversation-group{color:#7c838e;line-height:18px;margin-top:4px}.mentioned{color:#d45f5f;margin-right:5px}.rc-kit-conversation-draft{margin-top:4px}.rc-kit-conversation-draft .draft{color:#d45f5f;margin-right:5px}.rc-time-icon-container{display:flex;justify-content:flex-end;min-width:16px;margin-left:auto}.hover-menu-icon{display:none;cursor:pointer;width:16px;height:16px}@media (min-width: 769px){.rc-conversation-list-item:hover .hover-menu-icon,.rc-conversation-list-item.active-right-clicked .hover-menu-icon{display:block}.rc-conversation-list-item:hover .rc-conversation-time,.rc-conversation-list-item.active-right-clicked .rc-conversation-time{display:none}}
|
|
332
|
+
`]]]),F_={class:"rc-conversation-list-menu-item"},$_=["src"],H_={class:"content"},G_=Re(Te({__name:"conversation-list-menu-item.ce",props:{id:{type:String},icon:{type:String},label:{type:String}},setup(e){const t=e;return(s,n)=>(R(),D("div",F_,[y("img",{src:t.icon,alt:"Icon"},null,8,$_),y("div",H_,[y("span",null,re(e.label),1)])]))}}),[["styles",[`.rc-conversation-list-menu-item{display:flex;align-items:center;font-size:12px;padding:5px 6px;border-radius:4px;cursor:pointer}.rc-conversation-list-menu-item:hover{background-color:#d2e1fe}.content{flex:auto;padding-left:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
333
|
+
`]]]),B_={class:"rc-conversation-time"},j_=Re(Te({__name:"conversation-time.ce",props:{time:{type:String}},setup(e){const t=e;return(s,n)=>(R(),D("div",B_,[y("span",null,re(t.time),1)]))}}),[["styles",[`.rc-conversation-time{color:#a1a1a1;font-weight:400;font-size:12px;line-height:19px;flex:1;text-align:right}
|
|
334
|
+
`]]]),q_={class:"rc-conversation-loading"},K_={class:"content"},z_=Re(Te({__name:"conversation-loading.ce",setup(e){const t=Ze("conv.loading.msg");return(s,n)=>(R(),D("div",q_,[y("span",K_,re(N(t)),1)]))}}),[["styles",[`.rc-conversation-loading{height:30px}.rc-conversation-loading .content{display:block;text-align:center;line-height:30px}
|
|
335
|
+
`]]]),Q_=["src"],W_={class:"count"},Z_=["src"],Y_=Re(Te({__name:"message-location.ce",props:{count:{type:Number,require:!0},direction:{type:Number,require:!0}},setup(e,{emit:t}){const s=e,n=t;return(i,o)=>(R(),D("div",{class:Fe(["rc-kit-location",{top:s.direction===0,bottom:s.direction===1}])},[s.direction===0?(R(),D("div",{key:0,class:"forward-icon",onClick:o[0]||(o[0]=r=>n("location"))},[y("img",{style:{transform:"rotate(180deg)"},src:N(e1),alt:"TRIANGLE_ICON"},null,8,Q_)])):de("",!0),y("div",W_,re(s.count),1),s.direction===1?(R(),D("div",{key:1,class:"forward-icon",onClick:o[1]||(o[1]=r=>n("location"))},[y("img",{src:N(e1),alt:"TRIANGLE_ICON"},null,8,Z_)])):de("",!0)],2))}}),[["styles",[`.rc-kit-location{position:absolute;right:16px;background-color:#fff;border-radius:20px}.rc-kit-location.top{top:30px}.rc-kit-location.bottom{bottom:30px}.rc-kit-location div{font-size:16px;line-height:33px;text-align:center;width:33px;height:33px;border-radius:50%;box-sizing:border-box;margin:3px;overflow:hidden}.rc-kit-location .count{color:#fff;background-color:#09f}.rc-kit-location .forward-icon{border:1px solid #0099FF;cursor:pointer;display:flex;align-items:center;justify-content:center}
|
|
336
|
+
`]]]),J_=["cx","cy"],X_=["cx","cy","stroke-width","stroke-dashoffset","transform"],e8=["src"],t8={key:2,class:"rc-kit-read-receipt-tooltip"},s8={class:"rc-kit-tooltip-content"},Nn=16,n8=7,i8=1.2,d2=5.2,o8=Re(Te({__name:"message-sent-status.ce",props:{message:{type:Object},type:{type:Number}},emits:["sent-status-click"],setup(e,{emit:t}){const s=e,n=Se(),i=t,o=me(()=>n.readReceiptVersion===f.GroupReadReceiptVersion.V5),r=d2/2,a=d2,l=2*Math.PI*r,c=me(()=>n.readReceiptVersion===f.GroupReadReceiptVersion.V5&&s.message.conversationType===f.ConversationType.GROUP),u=me(()=>d.value===f.SentStatus.FAILED||c.value),d=me(()=>{let g=s.message.sentStatus;if(n.readReceiptVersion===f.GroupReadReceiptVersion.V5&&(s.message.conversationType===f.ConversationType.PRIVATE&&s.message.kitReadReceiptInfo&&(g=(s.message.kitReadReceiptInfo.readCount||0)>0?f.SentStatus.READ:f.SentStatus.SENT),s.message.conversationType===f.ConversationType.GROUP&&s.message.kitReadReceiptInfo)){const E=s.message.kitReadReceiptInfo;if(E){const v=E.readCount||0,L=E.unreadCount||0;v===0&&(g=f.SentStatus.SENT),v===v+L&&(g=f.SentStatus.READ)}}return g}),h=g=>{g.stopPropagation(),(d.value===f.SentStatus.FAILED||c.value)&&i("sent-status-click",s.message,g)},p=me(()=>{if(n.readReceiptVersion!==f.GroupReadReceiptVersion.V5||s.message.conversationType!==f.ConversationType.GROUP||s.message.sentStatus===10||s.message.sentStatus===20)return!1;const g=s.message.kitReadReceiptInfo;if(!g)return!1;const E=g.totalCount||0,v=g.readCount||0,L=g.unreadCount||0;return E>0&&v>0&&v<v+L}),_=me(()=>{if(!p.value)return 0;const g=s.message.kitReadReceiptInfo;if(!g)return 0;const E=g.totalCount||0,v=g.readCount||0;return E===0?0:v/E}),m=me(()=>l*(1-_.value)),b=me(()=>!(n.readReceiptVersion!==f.GroupReadReceiptVersion.V5||s.message.conversationType!==f.ConversationType.GROUP||s.message.sentStatus===10||s.message.sentStatus===20)),w=me(()=>{if(!b.value)return"";const g=s.message.kitReadReceiptInfo,E=[];if(!g)return E.push(Ce("message.list.read-receipt.tooltip.all-unread")),E.join(", ");const v=g.readCount||0,L=g.unreadCount||0;return v===0?E.push(Ce("message.list.read-receipt.tooltip.all-unread")):v===v+L?E.push(Ce("message.list.read-receipt.tooltip.all-read")):(E.push(Ce("message.list.read-receipt.tooltip.read-count",v)),E.push(Ce("message.list.read-receipt.tooltip.unread-count",L))),E.join(", ")}),C=()=>{let g=o1;switch(d.value){case 10:g=s.type?vp:yp;break;case 20:g=i1;break;case 30:g=s.type?o1:Cp;break;case 50:g=Ep;break}return g};return(g,E)=>o.value?(R(),D("div",{key:0,class:Fe(["rc-kit-message-sent-status",{"rc-kit-has-tooltip":b.value}]),onClick:h,style:rt({cursor:u.value?"pointer":"default"})},[p.value?(R(),D("svg",{key:0,width:Nn,height:Nn,class:"rc-kit-read-receipt-pie"},[y("circle",{cx:Nn/2,cy:Nn/2,r:n8,fill:"none",stroke:"#46DB7A","stroke-width":i8},null,8,J_),_.value>0?(R(),D("circle",{key:0,cx:Nn/2,cy:Nn/2,r,fill:"none",stroke:"#46DB7A","stroke-width":N(a),"stroke-dasharray":l,"stroke-dashoffset":m.value,class:"rc-kit-pie-inner",transform:`rotate(-90 ${Nn/2} ${Nn/2})`},null,8,X_)):de("",!0)])):(R(),D("img",{key:1,src:C(),class:Fe({"rc-kit-sending":d.value===10}),alt:"status"},null,10,e8)),b.value&&w.value?(R(),D("div",t8,[y("div",s8,re(w.value),1),E[0]||(E[0]=y("div",{class:"rc-kit-tooltip-arrow"},null,-1))])):de("",!0)],6)):de("",!0)}}),[["styles",[`.rc-kit-message-sent-status{display:flex;align-items:center;font-size:0;position:relative;margin-top:4px}.rc-kit-read-receipt-pie{width:16px;height:16px;display:block}.rc-kit-pie-inner{transition:stroke-dashoffset .3s ease}.rc-kit-message-sent-status img{display:inline-block;vertical-align:middle}.rc-kit-message-sent-status img.rc-kit-sending{animation:rc-kit-rotate 1s linear infinite!important;transform-origin:center center;will-change:transform}@keyframes rc-kit-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rc-kit-read-receipt-tooltip{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);z-index:1000;pointer-events:none;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}.rc-kit-has-tooltip:hover .rc-kit-read-receipt-tooltip{opacity:1;visibility:visible}.rc-kit-tooltip-content{background-color:#fff;border-radius:4px;padding:6px 12px;font-size:12px;color:#333;box-shadow:0 2px 8px #00000026;line-height:1.5}.rc-kit-tooltip-arrow{position:absolute;bottom:-5px;left:50%;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff}
|
|
337
|
+
`]]]),r8={key:0,class:"nickname"},a8={class:"time"},l8={class:"message-content-wrapper"},c8=["src"],u8=Re(Te({__name:"message-bubble.ce",props:{showname:{type:[Boolean,null]},align:{type:[Boolean,null]},message:{type:Object},profile:{type:Object},bubbleColorStyle:{type:Object},menuActive:{type:Boolean},isH5:{type:Boolean},isItemHover:{type:Boolean}},emits:["menu-click"],setup(e,{emit:t}){const s=U(!1),n=e,i=t,o=l=>{i("menu-click",l)},r=["time.format.sunday","time.format.monday","time.format.tueday","time.format.wedday","time.format.thurday","time.format.friday","time.format.satday"],a=l=>{const{year:c,month:u,day:d,hour:h,minute:p,weekDay:_}=gi(l),m=new Date,b=new Date(l);if(m.toDateString()===b.toDateString())return`${h}:${p}`;const C=new Date(m);if(C.setDate(C.getDate()-1),C.toDateString()===b.toDateString())return`${Ce("time.format.yesterday")} ${h}:${p}`;if(m.getFullYear()===b.getFullYear()){const v=new Date(m);return v.setDate(v.getDate()-7),b>v?`${Ce(r[_])} ${h}:${p}`:`${u}/${d} ${h}:${p}`}return`${c}/${u}/${d}`};return(l,c)=>(R(),D("div",{class:Fe(["rc-message-bubble-root",{"rc-message-bubble-align-right":n.align}])},[y("p",{class:Fe(["name",{align:n.align}])},[n.showname?(R(),D("span",r8,re(e.profile.nickname||e.profile.name),1)):de("",!0),y("span",a8,re(a(e.message.sentTime)),1)],2),y("div",l8,[y("div",{class:"message-body-wrapper",style:rt(e.bubbleColorStyle)},[dn(l.$slots,"default")],4),n.isH5?de("",!0):(R(),D("div",{key:0,class:Fe(["hover-menu-icon",{"hover-menu-icon-active":n.menuActive||n.isItemHover}]),onClick:Cs(o,["stop"]),onMouseenter:c[0]||(c[0]=u=>s.value=!0),onMouseleave:c[1]||(c[1]=u=>s.value=!1)},[y("img",{width:16,height:16,src:n.menuActive||s.value?N(Qc):N(zc),alt:"HOVER_MENU_ICON"},null,8,c8)],34))])],2))}}),[["styles",[`.rc-message-bubble-root{display:flex;flex-direction:column;align-items:flex-start;max-width:100%}.rc-message-bubble-align-right{align-items:flex-end}p{margin:0 0 5px;line-height:16px;padding:0;word-break:break-word}.message-body-wrapper{font-size:14px;min-width:0;max-width:100%}.name{font-size:12px;color:#41464f;max-width:100%}.nickname{margin-right:8px}.align{text-align:right}.time{display:inline-block;font-weight:400;color:#7c838e}.message-content-wrapper{display:flex;align-items:flex-start;max-width:100%}.rc-message-bubble-align-right .message-content-wrapper{flex-direction:row-reverse}.hover-menu-icon{visibility:hidden;cursor:pointer;width:16px;height:16px;margin:0 8px;flex-shrink:0}.rc-message-bubble-root:hover .hover-menu-icon,.hover-menu-icon-active{visibility:visible}
|
|
338
|
+
`]]]),d8={class:"rc-message-list-menu-item"},f8=["src"],h8={class:"content"},p8=Re(Te({__name:"message-list-menu-item.ce",props:{id:{type:String},icon:{type:String},label:{type:String}},setup(e){const t=e;return(s,n)=>(R(),D("div",d8,[y("img",{src:t.icon,alt:"icon"},null,8,f8),y("div",h8,[y("span",null,re(e.label),1)])]))}}),[["styles",[`.rc-message-list-menu-item{display:flex;align-items:center;font-size:12px;padding:6px;border-radius:5px;cursor:pointer}.rc-message-list-menu-item:hover{background-color:#d2e1fe}.content{flex:auto;padding-left:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
339
|
+
`]]]),g8={class:"rc-msg-time"},_8={class:"date"},m8=Re(Te({__name:"message-time.ce",props:{time:{type:String}},setup(e){return(t,s)=>(R(),D("div",g8,[y("span",_8,re(e.time),1)]))}}),[["styles",[`.rc-msg-time{text-align:center;margin-bottom:10px}.date{display:inline-block;font-size:12px;line-height:20px;padding:0 12px;color:#7c838e;border-radius:20px}
|
|
340
|
+
`]]]),E8={class:"rc-kit-select"},v8=Re(Te({__name:"message-select.ce",props:{selected:{type:[Boolean,null]}},setup(e,{emit:t}){const s=e,n=t,i=me(()=>s.selected?Ce("message.list.select"):Ce("message.list.unselect"));return(o,r)=>(R(),D("div",E8,[r[1]||(r[1]=y("span",{class:"line"},null,-1)),y("span",{class:"btn",onClick:r[0]||(r[0]=a=>n("select"))},re(i.value),1)]))}}),[["styles",[`.rc-kit-select .line{display:block;width:100%;border:1px dashed #E4E7ED}.rc-kit-select .btn{position:absolute;padding:0 12px;line-height:34px;color:#41464f;background-color:#e3e7ef;border-radius:10px;font-size:14px;display:inline-block;margin-left:68px;z-index:2;top:-16px;cursor:pointer}
|
|
341
|
+
`]]]),C8={key:0},y8=["onClick"],S8=["onClick"],T8={key:1},f2=Re(Te({__name:"text-message.ce",props:{message:{type:Object},isQuote:{type:Boolean}},setup(e,{emit:t}){const s=e.message.content,n=t,i=dh(s.content||"");return(o,r)=>N(i).type===0?(R(),D("p",{key:0,class:Fe({"is-quote":e.isQuote})},re(e.message.content.content||""),3)):(R(),D("p",{key:1,class:Fe({"is-quote":e.isQuote})},[(R(!0),D(Ne,null,Lt(N(i).content,(a,l)=>(R(),D("span",{key:l},[N(i).position.includes(l+1)?(R(),D("span",C8,[a.type==="mail"?(R(),D("a",{key:0,onClick:c=>n("link",{type:"mail",address:a.content}),href:"javascript:;"},re(a.content),9,y8)):(R(),D("a",{key:1,onClick:c=>n("link",{type:"url",address:a.content}),href:"javascript:;"},re(a.content),9,S8))])):(R(),D("span",T8,re(a.content),1))]))),128))],2))}}),[["styles",[`p{margin:0;padding:20px;word-break:break-word;font-size:14px;line-height:22px;white-space:pre-wrap}p.is-quote{padding:0;font-size:12px;line-height:1.2}a{color:#020814}a:hover{color:#0047ff}
|
|
342
|
+
`]]]),I8=["src"],R8=Re(Te({__name:"image-message.ce",props:{message:{type:Object},isQuote:{type:Boolean}},setup(e){const t=()=>{Se().dispatchEvent(new ne(Z.ADJUST_MESSAGE_LIST_SCROLL))},s=()=>{t()},n=()=>{t()};return(i,o)=>{const r=ve("rc-file-transfer-ctrl-provider");return R(),D("div",{class:Fe(["image-message-wrapper",{"has-quote":!!e.message.quoteInfo&&!e.isQuote}])},[Ie(r,{message:e.message},{default:pt(()=>[y("img",{class:Fe(["thumbnail",{"is-quote":e.isQuote}]),src:N(uh)(e.message.content.content),alt:"Image",onLoad:s,onError:n},null,42,I8),o[0]||(o[0]=y("div",{slot:"marked",class:"marked"},null,-1))]),_:1},8,["message"])],2)}}}),[["styles",[`.image-message-wrapper{display:inline-block}.image-message-wrapper.has-quote{padding:20px}.thumbnail,.marked{width:247px;max-height:400px;border-radius:10px;border:1px solid #E4E7ED}.thumbnail.is-quote{width:auto;max-width:100%;max-height:30px;border-radius:4px}.marked{background-color:#0009;height:100%}
|
|
343
|
+
`]]]),w8=Re(Te({__name:"unsupported-message.ce",props:{message:{type:Object},isQuote:{type:Boolean}},setup(e){const t=Ce("message-type.unknown");return(s,n)=>(R(),D("p",null,re(N(t)),1))}}),[["styles",[`p{margin:0;padding:0;word-break:break-word}
|
|
344
|
+
`]]]),M8={class:"wraper"},O8=["src","alt"],b8={key:0,class:"sight-mask"},L8=["src"],A8={key:1,class:"time"},x8=Re(Te({__name:"sight-message.ce",props:{message:{type:Object},isQuote:{type:Boolean}},setup(e){const t=e,s=()=>{Se().dispatchEvent(new ne(Z.ADJUST_MESSAGE_LIST_SCROLL))},n=()=>{s()},i=()=>{s()};return(o,r)=>{const a=ve("rc-file-transfer-ctrl-provider");return R(),D("div",{class:Fe(["sight-message-container",{"has-quote":!!t.message.quoteInfo&&!t.isQuote}])},[Ie(a,{message:t.message},{default:pt(()=>[y("div",{class:Fe(["rc-kit-sight-message",{"is-quote":t.isQuote}])},[y("div",M8,[y("img",{src:"data:image/png;base64,"+t.message.content.content,alt:t.message.content.name,onerror:i,onLoad:n},null,40,O8),t.isQuote?de("",!0):(R(),D("div",b8,[y("img",{class:"play-icon",src:N(mp)},null,8,L8)])),t.isQuote?de("",!0):(R(),D("span",A8,re(N(nh)(Math.floor(t.message.content.duration))),1))])],2),r[0]||(r[0]=y("div",{slot:"marked"},null,-1))]),_:1},8,["message"])],2)}}}),[["styles",[`.sight-message-container{display:inline-block}.sight-message-container.has-quote{padding:20px}.rc-kit-sight-message{text-align:center}.rc-kit-sight-message.is-quote .wraper>img{max-width:100%;max-height:30px;border-radius:4px}.wraper{position:relative;display:inline-block}.wraper .time{position:absolute;bottom:8px;right:6px;color:#fff;font-size:14px;z-index:2}.wraper>img{max-width:200px;border-radius:10px;border:1px solid #E4E7ED;vertical-align:bottom}.wraper .sight-mask{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;border-radius:10px;z-index:1}.wraper .sight-mask .play-icon{width:36px;height:36px;border:none}.marked{background-color:#0009;height:100%}
|
|
345
|
+
`]]]),h2="956d494a6b8c25338d493fd0ee795f8575373073",lc="5.38.0";var $o=(e=>(e.LANGUAGE="WEB_IM_KIT_ENV.LANGUAGE",e.CURRENT_USER_ID="WEB_IM_KIT_ENV.CURRENT_USER_ID",e))($o||{});const k8={class:"icon"},U8=["src"],N8={class:"desc"},D8=["title"],P8={class:"size"},V8=Re(Te({__name:"file-message.ce",props:{message:{type:Object},isQuote:{type:Boolean}},setup(e){const t=e,s=gs()?10:40,n=gs()?5:8,i=Wn($o.CURRENT_USER_ID);me(()=>i!=null&&i.value?i.value===t.message.senderUserId:!1);const o=me(()=>S0(t.message.content.name));return(r,a)=>{const l=ve("rc-file-transfer-ctrl-provider");return R(),D("div",{class:Fe(["file-message",{"is-quote":e.isQuote}])},[y("div",k8,[Ie(l,{message:e.message,"is-quote":e.isQuote},{default:pt(()=>[y("img",{class:"file-message-icon",src:o.value,alt:"File Icon"},null,8,U8)]),_:1},8,["message","is-quote"])]),y("div",N8,[y("div",{class:"name",title:e.message.content.name},re(N(oh)(e.message.content.name,N(s),N(n))),9,D8),y("span",P8,re(N(ih)(e.message.content.size)),1)])],2)}}}),[["styles",[`@charset "UTF-8";.file-message{display:flex;align-items:center;padding:20px}.file-message.is-quote{padding:0;font-size:12px;max-width:100%}.file-message.is-quote .icon,.file-message.is-quote .file-message-icon{width:24px;height:24px}.file-message.is-quote .desc{font-size:12px;line-height:1.2;min-width:0;flex:1}.file-message.is-quote .name{max-width:none}.icon{position:relative;width:44px;height:44px;flex-shrink:0}.file-message-icon{width:44px;height:44px;display:block;object-fit:contain}.desc{font-size:12px;line-height:18px;padding:0 6px}.name{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#020814}@media (max-width: 768px){.name{max-width:200px}}.size{color:#7c838e}
|
|
346
|
+
`]]]),F8={class:"combine-message"},$8={class:"title"},H8={class:"summary"},G8=Re(Te({__name:"combine-v2-message.ce",props:{message:{type:Object},isQuote:{type:Boolean}},setup(e){const t=e.message.content,{summaryList:s,conversationType:n,nameList:i,msgNum:o}=t,r=me(()=>!n||!i?"":n===f.ConversationType.PRIVATE?i.length===2?Ze("private.combine-msg.title",...i).value:Ze("private.combine-msg.signal.title",...i).value:Ze("group.combine-msg.title").value);return Wn($o.CURRENT_USER_ID),me(()=>{const a=f.getCurrentUserId();return a?a===e.message.senderUserId:!1}),(a,l)=>(R(),D("div",F8,[y("div",$8,re(r.value),1),(R(!0),D(Ne,null,Lt(N(s),c=>(R(),D("div",H8,re(c),1))),256)),l[0]||(l[0]=y("div",{class:"separator"},[y("div",null,"聊天记录")],-1))]))}}),[["styles",[`.combine-message{padding:20px}.title{font-size:16px;padding-bottom:12px;max-width:350px;word-wrap:break-word;word-break:break-all;text-overflow:ellipsis;color:#020814}.summary{font-size:14px;overflow:hidden;height:14px;line-height:14px;color:#41464f;padding-bottom:10px;max-width:350px;white-space:nowrap;text-overflow:ellipsis}.separator{border-top:1px solid #E4E7ED;padding-top:20px;margin-top:10px;font-size:14px;color:#41464f}
|
|
347
|
+
`]]]),B8=["src"],j8=Re(Te({__name:"gif-message.ce",props:{message:{type:Object},isQuote:{type:Boolean}},setup(e){const t=e,s=U(),n=()=>{Se().dispatchEvent(new ne(Z.ADJUST_MESSAGE_LIST_SCROLL))},i=()=>{n()},o=()=>{s.value.src=n1,n()};return(r,a)=>{const l=ve("rc-file-transfer-ctrl-provider");return R(),D("div",{class:Fe(["gif-message-container",{"has-quote":!!t.message.quoteInfo&&!t.isQuote}])},[Ie(l,{message:t.message},{default:pt(()=>[y("div",{class:Fe(["gif-message-box",{"is-quote":t.isQuote}])},[y("img",{ref_key:"imgRef",ref:s,style:{"max-width":"100%"},src:t.message.content.remoteUrl,onerror:o,onLoad:i,alt:"Git Image"},null,40,B8)],2)]),_:1},8,["message"])],2)}}}),[["styles",[`.gif-message-container{display:inline-block}.gif-message-container.has-quote{padding:20px}.gif-message-box{width:247px;height:247px;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid #E4E7ED;overflow:hidden}.gif-message-box.is-quote{width:auto;height:30px;max-width:100%;border-radius:4px}
|
|
348
|
+
`]]]),q8=Re(Te({__name:"modal-dialog.ce",props:{width:{type:Number},height:{type:Number,default:-1}},setup(e){const t=e,s=U(!1),n=me(()=>{const o={width:s.value?"80%":`${t.width}px`,margin:s.value?"0 auto":""};return t.height!==-1&&(o.height=`${t.height}px`),o}),i=()=>{s.value=gs()};return lt(()=>{i(),window.addEventListener("resize",i)}),Rt(()=>{window.removeEventListener("resize",i)}),(o,r)=>(R(),D("div",{onClick:r[0]||(r[0]=a=>a.stopPropagation()),style:rt(n.value),class:"rc-kit-modal-dialog"},[dn(o.$slots,"header"),dn(o.$slots,"content"),dn(o.$slots,"footer")],4))}}),[["styles",[`.rc-kit-modal-dialog{background-color:#fff;border-radius:5px}
|
|
349
|
+
`]]]),K8={class:"read-receipt-content"},z8={class:"read-receipt-column"},Q8={class:"read-receipt-title"},W8={class:"read-receipt-list-wrapper"},Z8={class:"read-receipt-ul"},Y8={class:"read-receipt-info"},J8={class:"read-receipt-name"},X8={key:0,class:"read-receipt-time"},e9={class:"read-receipt-column"},t9={class:"read-receipt-title"},s9={class:"read-receipt-list-wrapper"},n9={class:"read-receipt-ul"},i9={class:"read-receipt-info"},o9={class:"read-receipt-name"},r9=Re(Te({__name:"read-receipt-modal.ce",props:{message:{type:[Object,null]},visible:{type:Boolean},readUsers:{type:Array},unreadUsers:{type:Array},readCount:{type:Number},unreadCount:{type:Number},readLoading:{type:Boolean},unreadLoading:{type:Boolean},position:{type:Object}},emits:["close","read-status-scroll"],setup(e,{emit:t}){const s=e,n=t,i=Se(),o=U(),r=U(0),a=U(0),l=U(1),c=U(),u=U(0),d=U(0),h=U(1),p=()=>{if(!o.value)return;const O=o.value.offsetHeight**2/o.value.scrollHeight,T=Math.floor(O*100)/100,P=Math.max(T,20),K=T/(o.value.offsetHeight-T)/(P/(o.value.offsetHeight-P));l.value=Math.floor(K*100)/100||1,r.value=T<o.value.offsetHeight?Math.floor(P):0},_=()=>{if(!c.value)return;const O=c.value.offsetHeight**2/c.value.scrollHeight,T=Math.floor(O*100)/100,P=Math.max(T,20),K=T/(c.value.offsetHeight-T)/(P/(c.value.offsetHeight-P));h.value=Math.floor(K*100)/100||1,u.value=T<c.value.offsetHeight?Math.floor(P):0},m=O=>{if(!o.value)return;const T=O.detail[0];o.value.scrollTop=T*o.value.scrollHeight/100},b=O=>{if(!c.value)return;const T=O.detail[0];c.value.scrollTop=T*c.value.scrollHeight/100};let w=null,C=null;const g=()=>{p(),_()},E=()=>{o.value&&!w&&(w=new ResizeObserver(()=>{p()}),w.observe(o.value)),c.value&&!C&&(C=new ResizeObserver(()=>{_()}),C.observe(c.value))},v=()=>{w==null||w.disconnect(),w=null,C==null||C.disconnect(),C=null};cs([()=>s.visible,()=>s.readUsers,()=>s.unreadUsers],async([O])=>{O?(await at(),E(),p(),_()):v()},{deep:!0});const L=O=>{if(!s.visible)return;O.target.closest(".read-receipt-popover")||n("close")};lt(()=>{window.addEventListener("resize",g),window.addEventListener("click",L),s.visible&&at(()=>{E()})}),Mn(()=>{v(),window.removeEventListener("resize",g),window.removeEventListener("click",L)});const F=me(()=>{if(!s.position)return{};const O=s.position.anchor||"top-right";let T="";return O==="top-right"?T="translateX(-100%)":O==="bottom-right"?T="translate(-100%, -100%)":O==="top-left"?T="":O==="top-center"?T="translateX(-50%)":O==="bottom-center"?T="translate(-50%, -100%)":T="translateY(-100%)",{top:`${s.position.top}px`,left:`${s.position.left}px`,...T?{transform:T}:{}}}),$=(O,T=10)=>O.length<=T?O:O.substring(0,T)+"...",A=O=>{const{hour:T,minute:P}=gi(O);return`${T}:${P}`},k=(O,T)=>{if(!O||!O.target){console.warn("[ReadReceiptModal] Invalid scroll event:",O);return}const P=O.target,{scrollHeight:K,offsetHeight:ee,scrollTop:te}=P;T==="read"&&o.value?a.value=te*100/ee*l.value||0:T==="unread"&&c.value&&(d.value=te*100/ee*h.value||0),n("read-status-scroll",{scrollTop:te,scrollHeight:K,clientHeight:ee},T)};return(O,T)=>{var ee,te;const P=ve("rc-icon"),K=ve("rc-scrollbar-thumb-provider");return e.visible?(R(),D("div",{key:0,class:"read-receipt-popover",style:rt(F.value),onClick:T[2]||(T[2]=Cs(()=>{},["stop"]))},[y("div",K8,[y("div",z8,[y("div",Q8,re(N(Ce)("message.list.read-receipt.tooltip.read-count",e.readCount)),1),y("div",W8,[y("div",{class:"read-receipt-list",ref_key:"readListRef",ref:o,onScroll:T[0]||(T[0]=ie=>k(ie,"read"))},[y("ul",Z8,[(R(!0),D(Ne,null,Lt(e.readUsers,ie=>(R(),D("li",{key:ie.userId,class:"read-receipt-item"},[Ie(P,{url:N(i).appData.getUserProfile(ie.userId).portraitUri,radius:50,width:20,height:20,online:!1},null,8,["url"]),y("div",Y8,[y("p",J8,re($(N(i).appData.getUserProfile(ie.userId).name)),1),ie.timestamp?(R(),D("p",X8,re(A(ie.timestamp)),1)):de("",!0)])]))),128))])],544),r.value?(R(),xe(K,{key:0,onHandlemove:m,height:r.value,move:a.value,scrollheight:(ee=o.value)==null?void 0:ee.scrollHeight,ratio:l.value},null,8,["height","move","scrollheight","ratio"])):de("",!0)])]),y("div",e9,[y("div",t9,re(N(Ce)("message.list.read-receipt.tooltip.unread-count",e.unreadCount)),1),y("div",s9,[y("div",{class:"read-receipt-list",ref_key:"unreadListRef",ref:c,onScroll:T[1]||(T[1]=ie=>k(ie,"unread"))},[y("ul",n9,[(R(!0),D(Ne,null,Lt(e.unreadUsers,ie=>(R(),D("li",{key:ie.userId,class:"read-receipt-item"},[Ie(P,{url:N(i).appData.getUserProfile(ie.userId).portraitUri,radius:50,width:20,height:20,online:!1},null,8,["url"]),y("div",i9,[y("p",o9,re($(N(i).appData.getUserProfile(ie.userId).name)),1)])]))),128))])],544),u.value?(R(),xe(K,{key:0,onHandlemove:b,height:u.value,move:d.value,scrollheight:(te=c.value)==null?void 0:te.scrollHeight,ratio:h.value},null,8,["height","move","scrollheight","ratio"])):de("",!0)])])])],4)):de("",!0)}}}),[["styles",[`.read-receipt-popover{position:absolute;background-color:#fff;border-radius:6px;box-shadow:0 5px 16px #00000014;width:344px;z-index:4}.read-receipt-content{display:flex;flex-direction:row;max-height:420px}.read-receipt-column{flex:1;display:flex;flex-direction:column;border-right:1px solid #E5E5E5}.read-receipt-column:last-child{border-right:none}.read-receipt-title{padding:15px 12px 6px;font-size:14px;color:#0e1012}.read-receipt-list-wrapper{flex:1;position:relative;max-height:380px;overflow:hidden}.read-receipt-list{height:100%;overflow-y:scroll;padding:0 0 10px;scrollbar-width:none}.read-receipt-list::-webkit-scrollbar{display:none}.read-receipt-ul{padding:0;margin:0;list-style:none}.read-receipt-item{display:flex;align-items:center;padding:4px 12px}.read-receipt-item:last-child{border-bottom:none}.read-receipt-info{margin-left:4px;flex:1;min-width:0;display:flex;align-items:center;gap:8px}.read-receipt-name{font-size:12px;color:#0e1012;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.read-receipt-time{color:#85909c;font-size:11px;margin:0;flex-shrink:0}.read-receipt-time img{width:12px;height:12px}
|
|
350
|
+
`]]]),a9={class:"rc-imkit-connection-status-content"},l9={key:0,class:"rc-connection-loading-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},c9={class:"rc-imkit-connection-status-text"},u9=Re(Te({__name:"connection-status.ce",props:{visible:{type:Boolean},status:{type:Number},code:{type:null}},setup(e){const t=e,s=me(()=>t.status===f.RCConnectionStatus.CONNECTING||t.status===f.RCConnectionStatus.SUSPENDED),n=me(()=>t.status===f.RCConnectionStatus.DISCONNECTED?Ce("connection.status.disconnected"):s.value?Ce("connection.status.connecting"):Ce("connection.status.suspended")),i=me(()=>s.value?"is-warning":"is-error");return(o,r)=>(R(),xe(Tl,{name:"rc-status-fade"},{default:pt(()=>[e.visible?(R(),D("div",{key:0,class:Fe(["rc-imkit-connection-status",i.value])},[y("div",a9,[s.value?(R(),D("svg",l9,[...r[0]||(r[0]=[y("path",{d:"M512 1024c-282.7776 0-512-229.2224-512-512s229.2224-512 512-512 512 229.2224 512 512-229.2224 512-512 512z m0-921.6c-225.8944 0-409.6 183.7056-409.6 409.6s183.7056 409.6 409.6 409.6 409.6-183.7056 409.6-409.6-183.7056-409.6-409.6-409.6z",fill:"#0047FF",opacity:"0.3"},null,-1),y("path",{d:"M512 1024C229.2224 1024 0 794.7776 0 512c0-28.2624 22.9376-51.2 51.2-51.2s51.2 22.9376 51.2 51.2c0 225.8944 183.7056 409.6 409.6 409.6s409.6-183.7056 409.6-409.6c0-225.8944-183.7056-409.6-409.6-409.6-28.2624 0-51.2-22.9376-51.2-51.2s22.9376-51.2 51.2-51.2c282.7776 0 512 229.2224 512 512s-229.2224 512-512 512z",fill:"#0047FF"},null,-1)])])):de("",!0),y("span",c9,re(n.value),1)])],2)):de("",!0)]),_:1}))}}),[["styles",[`.rc-imkit-connection-status{position:absolute;top:70px;left:0;right:0;width:100%;height:46px;display:flex;align-items:center;justify-content:center;z-index:100;box-sizing:border-box}.rc-imkit-connection-status-content{display:flex;align-items:center;justify-content:center;gap:8px}.rc-imkit-connection-status-text{font-size:16px;color:#020814;line-height:20px}.rc-imkit-connection-status.is-error{background-color:#ffd5d5}.rc-imkit-connection-status.is-warning{background-color:#e7eeff}.rc-connection-loading-icon{animation:rc-status-spin 1s linear infinite;flex-shrink:0}@keyframes rc-status-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rc-status-fade-enter-active,.rc-status-fade-leave-active{transition:opacity .3s ease-in-out,transform .3s ease-in-out}.rc-status-fade-enter-from,.rc-status-fade-leave-to{opacity:0;transform:translateY(-10px)}.rc-status-fade-enter-to,.rc-status-fade-leave-from{opacity:1;transform:translateY(0)}
|
|
351
|
+
`]]]),d9={class:"empty"},f9=["src"],h9=Re(Te({__name:"conversation-empty.ce",props:{desc:{type:String,required:!0}},setup(e){return(t,s)=>(R(),D("div",d9,[y("img",{src:N(t1),alt:"Conversation Empty"},null,8,f9),y("span",null,re(e.desc),1)]))}}),[["styles",[`.empty{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;line-height:24px;background:#fcfcfc;color:#b3b3b3;font-size:16px}.empty img{margin-bottom:10px;width:60px;height:60px}
|
|
352
|
+
`]]]),p9={class:"empty"},g9=["src"],_9=Re(Te({__name:"conversation-list-empty.ce",props:{desc:{type:String,required:!0}},setup(e){return(t,s)=>(R(),D("div",p9,[y("img",{src:N(t1),alt:"Conversation Empty"},null,8,g9),y("span",null,re(e.desc),1)]))}}),[["styles",[`.empty{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;line-height:24px;background:#FFFFFF;color:#b3b3b3;font-size:16px}.empty img{margin-bottom:10px;width:60px;height:60px}
|
|
353
|
+
`]]]),m9={class:"rc-multi-choice-menu",style:{height:"100px"}},E9={class:"icon-wrapper"},v9=["src"],C9={class:"selected-count"},y9={class:"icon-wrapper"},S9=["src"],T9={class:"button-label"},I9={class:"icon-wrapper"},R9=["src"],w9={class:"button-label"},M9=Re(Te({__name:"multi-choice-menu.ce",props:{count:{type:Number,required:!0}},setup(e,{emit:t}){const s=U(!1),n=U(!1),i=U(!1),o=e,r=t,a=d=>{o.count!==0&&r(d)},l=me(()=>Ce("multi-choice.menu.selected-count",o.count.toString())),c=Ze("multi-choice.menu.forward-item-by-item"),u=Ze("multi-choice.menu.delete");return(d,h)=>(R(),D("div",m9,[y("div",{onClick:h[0]||(h[0]=p=>r("cancel")),class:"button cancel",onMouseenter:h[1]||(h[1]=p=>s.value=!0),onMouseleave:h[2]||(h[2]=p=>s.value=!1)},[y("div",E9,[y("img",{src:s.value?N(K0):N(s1),alt:"Cancel"},null,8,v9)])],32),y("span",C9,re(l.value),1),y("div",{onClick:h[3]||(h[3]=p=>a("forward")),class:Fe(["button forward",{disabled:o.count===0}]),onMouseenter:h[4]||(h[4]=p=>n.value=!0),onMouseleave:h[5]||(h[5]=p=>n.value=!1)},[y("div",y9,[y("img",{src:n.value&&o.count>0?N(j0):N(Jc),alt:"Forward",style:rt({opacity:o.count===0?.4:1})},null,12,S9)]),y("span",T9,re(N(c)),1)],34),y("div",{onClick:h[6]||(h[6]=p=>a("delete")),class:Fe(["button delete",{disabled:o.count===0}]),onMouseenter:h[7]||(h[7]=p=>i.value=!0),onMouseleave:h[8]||(h[8]=p=>i.value=!1)},[y("div",I9,[y("img",{src:i.value&&o.count>0?N(q0):N(Yc),alt:"Delete",style:rt({opacity:o.count===0?.4:1})},null,12,R9)]),y("span",w9,re(N(u)),1)],34)]))}}),[["styles",[`.rc-multi-choice-menu{height:50px;background-color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:center;border-top:1px solid #E4E7ED;font-size:14px;color:#000;padding:0 16px}.selected-count{flex:1 auto;margin-left:24px}.button{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin-left:32px}.button.disabled{cursor:not-allowed}.button.disabled .button-label{color:#c4c4c4}.button:first-child{margin-left:0}.icon-wrapper{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:transparent;transition:background-color .2s;background-color:#f3f5fa;margin-bottom:4px}.button img{width:20px;height:20px}.cancel .icon-wrapper{background-color:#fff;width:30px;height:30px}.button.forward:hover .icon-wrapper{background-color:#d0ddff}.button.delete:hover .icon-wrapper{background-color:#ffe5e5}.button.cancel:hover .icon-wrapper{background-color:#d0ddff}
|
|
354
|
+
`]]]),O9={class:"replay-bar"},b9={class:"content"},L9=["src"],A9={class:"message-desc"},x9={class:"desc"},k9={class:"reply-prefix"},U9={class:"desc-text"},N9=["src"],D9=Re(Te({__name:"input-reply-bar.ce",props:{username:{type:String,required:!0},desc:{type:String,required:!0},thumbnail:String},setup(e,{emit:t}){const s=e,n=t,i=U(!1),o=me(()=>Ze("input.reply.prefix").value+s.username);return(r,a)=>(R(),D("div",O9,[y("div",b9,[y("div",{class:"cancel-btn",onClick:a[0]||(a[0]=l=>n("cancel")),onMouseenter:a[1]||(a[1]=l=>i.value=!0),onMouseleave:a[2]||(a[2]=l=>i.value=!1)},[y("img",{src:i.value?N(pp):N(s1),alt:"Cancel"},null,8,L9)],32),y("div",A9,[y("div",x9,[y("span",k9,re(o.value)+":",1),y("span",U9,re(e.desc),1),e.thumbnail?(R(),D("img",{key:0,class:"thumbnail",src:e.thumbnail,alt:"Thumbnail Image"},null,8,N9)):de("",!0)])])])]))}}),[["styles",[`.replay-bar{display:flex;flex-direction:row;align-items:center;border-radius:8px;height:36px;padding-top:8px;width:100%;max-width:100%;overflow:hidden}.content{margin-left:8px;box-sizing:border-box;width:calc(100% - 66px);flex:1;display:flex;height:100%;background-color:#f3f5fa;border-radius:10px;font-size:14px;color:#020814}.message-desc{flex:1;display:flex;box-sizing:border-box;flex-direction:column;justify-content:center;width:calc(100% - 120px);padding-right:10px;margin-left:4px;overflow:hidden}.username{color:#09f;margin-bottom:2px;width:100%;overflow:hidden;text-overflow:ellipsis}.desc{color:#020814;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;display:flex;align-items:center;gap:4px}.reply-prefix{flex-shrink:0}.desc-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thumbnail{flex-shrink:0;height:24px;width:auto;max-width:100px;border:none;padding:0;box-sizing:border-box;object-fit:contain;vertical-align:middle}.cancel-btn{display:flex;width:24px;margin-left:10px;flex-direction:column;justify-content:center;vertical-align:middle;cursor:pointer;img {border-radius: 8px;}}.cancel-btn svg path{fill:#0e1012;stroke:#0e1012}
|
|
355
|
+
`]]]),Pe={ICON:"rc-icon",ICON_NOTIFICATION:"rc-icon-notification",ICON_TOP:"rc-icon-top",CONVERSATION_LABEL:"rc-conversation-label",CONVERSATION_LATEST_MESSAGE:"rc-conversation-latest-message",CONVERSATION_UNREAD:"rc-conversation-unread",CONVERSATION_LIST_ITEM:"rc-conversation-list-item",CONVERSATION_TIME:"rc-conversation-time",CONVERSATION_LOADING:"rc-conversation-loading",CONVERSATION_LIST_MENU_ITEM:"rc-conversation-list-menu-item",CONVERSATION_EMPTY:"rc-conversation-empty",CONVERSATION_LIST_EMPTY:"rc-conversation-list-empty",MESSAGE_BUBBLE:"rc-message-bubble",MESSAGE_LIST_MENU_ITEM:"rc-message-list-menu-item",MESSAGE_TIME:"rc-message-time",MESSAGE_SELECT:"rc-message-select",MODAL_DIALOG:"rc-modal-dialog",TEXT_MESSAGE:"rc-text-message",IMAGE_MESSAGE:"rc-image-message",UNSUPPORTED_MESSAGE:"rc-unsupported-message",SIGHT_MESSAGE:"rc-sight-message",FILE_MESSAGE:"rc-file-message",REFERENCE_MESSAGE:"rc-reference-message",COMBINE_V2_MESSAGE:"rc-combine-v2-message",GIF_MESSAGE:"rc-gif-message",MULTI_CHOICE_MENU:"rc-multi-choice-menu",INPUT_REPLY_BAR:"rc-input-reply-bar",MESSAGE_LOCATION:"rc-message-location",MESSAGE_SENT_STATUS:"rc-message-sent-status",CONNECTION_STATUS:"rc-connection-status",READ_RECEIPT_MODAL:"rc-read-receipt-modal"},P9={[Pe.ICON]:f_,[Pe.ICON_NOTIFICATION]:g_,[Pe.ICON_TOP]:E_,[Pe.CONVERSATION_LABEL]:C_,[Pe.CONVERSATION_LATEST_MESSAGE]:T_,[Pe.CONVERSATION_UNREAD]:R_,[Pe.CONVERSATION_LIST_ITEM]:V_,[Pe.CONVERSATION_TIME]:j_,[Pe.CONVERSATION_LOADING]:z_,[Pe.CONVERSATION_LIST_MENU_ITEM]:G_,[Pe.CONVERSATION_EMPTY]:h9,[Pe.CONVERSATION_LIST_EMPTY]:_9,[Pe.MESSAGE_BUBBLE]:u8,[Pe.MESSAGE_LIST_MENU_ITEM]:p8,[Pe.MESSAGE_TIME]:m8,[Pe.MODAL_DIALOG]:q8,[Pe.MESSAGE_SELECT]:v8,[Pe.TEXT_MESSAGE]:f2,[Pe.IMAGE_MESSAGE]:R8,[Pe.UNSUPPORTED_MESSAGE]:w8,[Pe.SIGHT_MESSAGE]:x8,[Pe.FILE_MESSAGE]:V8,[Pe.REFERENCE_MESSAGE]:f2,[Pe.COMBINE_V2_MESSAGE]:G8,[Pe.GIF_MESSAGE]:j8,[Pe.MULTI_CHOICE_MENU]:M9,[Pe.INPUT_REPLY_BAR]:D9,[Pe.MESSAGE_LOCATION]:Y_,[Pe.MESSAGE_SENT_STATUS]:o8,[Pe.CONNECTION_STATUS]:u9,[Pe.READ_RECEIPT_MODAL]:r9};var ci=(e=>(e.CONVERSATION_LIST_ITEM_CLICK="ConversationList-Item-Click",e.CONVERSATION_LIST_ITEM_OPTION_CLICK="ConversationList-Item-Option-Click",e.CONVERSATION_NAVI_CLICK="Conversation-Navi-Click",e.CONVERSATION_MESSAGE_OPTION_CLICK="Conversation-Message-Option-Click",e.INPUT_EMOJI_ENTRY_CLICK="Input-Emoji-Entry-Click",e.CONVERSATION_INPUT_EXTEND_CLICK="Conversation-InputExtend-Click",e))(ci||{});const qo=class qo{constructor(t){q(this,"logger");this.logger=t.createLogger("IMKit","IM")}report(t){qo._reported.has(t)||(qo._reported.add(t),this.logger.record(`IMKit-${t}-S`))}};q(qo,"_reported",new Set);let cc=qo;const V9={class:"rc-conversation-list"},F9=Re(Te({__name:"conversation-list-provider.ce",setup(e){const t=Se(),s=U(),n=U(null),i=U(!1),o=U(!1),r=U(null),a=U(null),l=on({left:0,top:0,display:"none"}),c=U([]),u=["time.format.sunday","time.format.monday","time.format.tueday","time.format.wedday","time.format.thurday","time.format.friday","time.format.satday"],d=Ze("conversation.list.empty.desc");cs(()=>l.display,O=>{var T,P,K,ee;O==="block"?(P=(T=r.value)==null?void 0:T.disableScroll)==null||P.call(T):(ee=(K=r.value)==null?void 0:K.enableScroll)==null||ee.call(K)});const h=O=>{const{year:T,month:P,day:K,hour:ee,minute:te,weekDay:ie}=gi(O),V=(Date.now()-O)/1e3/60/60/24;return new Date().toDateString()===new Date(O).toDateString()?`${ee}:${te}`:new Date().toDateString()!==new Date(O).toDateString()&&V<1||1<=V&&V<2?Ce("time.format.yesterday"):2<=V&&V<7?Ce(u[ie]):Ce("time.format.full",T,P,K)},p=()=>{i.value=gs()},_=async O=>{const T=xt.value.length;xt.value.splice(0,T,...O.data),o.value=xt.value.length>=30,!f.electronExtension.enable()&&t.conversation.updateLatesMessageStatus(xt.value)},m=O=>{O.data.forEach(T=>{const P=xt.value.findIndex(K=>Et(T.conversation,K));P!==-1&&xt.value.splice(P,1),xt.value.splice(T.order,0,JSON.parse(JSON.stringify(T.conversation))),pe.value&&Et(T.conversation,pe.value)&&(Dn.value=T.conversation.unreadCount)})},b=O=>{O.data.forEach(T=>{const P=xt.value.findIndex(K=>Et(T,K));P!==-1&&xt.value.splice(P,1,JSON.parse(JSON.stringify(T))),pe.value&&Et(T,pe.value)&&(Dn.value=T.unreadCount)})},w=O=>{O.data.forEach(T=>{const P=xt.value.findIndex(K=>Et(T,K));P!==-1&&xt.value.splice(P,1)})},C=async(O,T)=>{var Le,Ot,Ye,mt,xs,ce;T.preventDefault();const P=t.conversationMenu.getMenum(O).map(_e=>({id:_e.id,icon:_e.icon,label:Ce(_e.id),target:O.key}));if(c.value.splice(0,c.value.length,...P),a.value=O.key,l.display="block",await at(),!n.value||!s.value||!r.value)return;const K=(Ot=(Le=r.value).getViewportRect)==null?void 0:Ot.call(Le),ee=(mt=(Ye=r.value).getViewportSize)==null?void 0:mt.call(Ye),te=(ce=(xs=r.value).getScrollPosition)==null?void 0:ce.call(xs);if(!K||!ee||!te)return;const ie=T.clientX-K.left+te.left,V=T.clientY-K.top+te.top;l.top=L(s.value.clientHeight,V,ee.height,te.top),l.left=F(s.value.clientWidth,ie,ee.width,te.left)},g=async(O,T)=>{var K;if(T.preventDefault(),l.display="none",a.value=null,pe.value&&t.conversation.handleConversationDraft(pe.value,(K=De.value)==null?void 0:K.value),O.markUnread&&(O.markUnread=!1,O.markReaded=!0),O.conversationType===j.ConversationType.SYSTEM){const ee=new ne(ge.BEFORE_SYSTEM_CONVERSATION_OPEN,O);if(t.emit(ee,2),ee.isDefaultPrevented())return}else t.statistic(ci.CONVERSATION_LIST_ITEM_CLICK);const{code:P}=await t.conversation.openConversation(O);P===Ds.CONVERSATION_LIST_NOT_READY&&t.alert("alert.conversation.list.not.ready")},E=(O,T)=>{t.statistic(ci.CONVERSATION_LIST_ITEM_OPTION_CLICK);const P=t.conversation.getCachedConversationByKey(T);t.emit(new ne(ge.CONVERSATION_MENU_ITEM_CLICK,{id:O,conversation:P})),l.display="none",a.value=null},v=async()=>{if(!o.value)return;const O=xt.value[xt.value.length-1],{hasMore:T,code:P,list:K}=await t.conversation.getMoreConversationList(O);P===0&&(xt.value=[...xt.value,...K],o.value=T),!f.electronExtension.enable()&&t.conversation.updateLatesMessageStatus([...K])},L=(O,T,P,K)=>{if(l){const ee=T-K;return P-ee<O?T-O:T}return 0},F=(O,T,P,K)=>{if(l){const ee=T-K;return P-ee<O?T-O:T}return 0},$=O=>{O.button===0&&(l.display="none",a.value=null)},A=O=>!O||O.senderUserId==Se().userId||O.messageType===j.MessageType.RECALL||O.messageType===j.MessageType.RECALL_NOTIFICATION_MESSAGE?"":O.conversationType===j.ConversationType.SYSTEM?t.appData.getSystemProfiles([O.targetId])[0].name:t.appData.getUserProfile(O.senderUserId).name,k=O=>pe.value?!Et(pe.value,O)&&!!O.draft:!!O.draft;return lt(async()=>{p(),window.addEventListener("resize",p),document.body.addEventListener("mouseup",$,!1),window.addEventListener("blur",$,!1),t.addEventListener(Z.CONVERSATION_LIST_RESET,_),t.addEventListener(Z.CONVERSATION_ITEM_ORDER_CHANGE,m),t.addEventListener(Z.CONVERSATION_ITEM_CHANGE,b),t.addEventListener(Z.CONVERSATIN_ITEM_REMOVE,w),xt.value=t.conversation.getCachedConversationList()}),Rt(()=>{window.removeEventListener("resize",p),document.body.removeEventListener("mouseup",$,!1),window.removeEventListener("blur",$,!1),t.removeEventListener(Z.CONVERSATION_LIST_RESET,_),t.removeEventListener(Z.CONVERSATION_ITEM_ORDER_CHANGE,m),t.removeEventListener(Z.CONVERSATION_ITEM_CHANGE,b),t.removeEventListener(Z.CONVERSATIN_ITEM_REMOVE,w)}),(O,T)=>{const P=ve("rc-conversation-list-menu-item"),K=ve("rc-conversation-list-item"),ee=ve("rc-conversation-loading"),te=ve("rc-scrollbar-provider"),ie=ve("rc-conversation-list-empty");return N(xt).length>0?(R(),xe(te,{key:0,ref_key:"scrollbar",ref:r,onLoading:v},{default:pt(()=>[y("div",{class:"rc-conversation-wrap",ref_key:"conversationWrapRef",ref:n},[i.value&&l.display==="block"?(R(),D("div",{key:0,class:"rc-conversation-list-menu-mask",onClick:T[0]||(T[0]=V=>$({button:0}))})):de("",!0),y("div",{class:"rc-conversation-list-menu",ref_key:"conversationMenuRef",ref:s,style:rt({top:`${l.top}px`,left:`${l.left}px`,display:l.display})},[(R(!0),D(Ne,null,Lt(c.value,V=>(R(),xe(P,{icon:V.icon,id:V.id,label:V.label,onClick:Le=>E(V.id,V.target)},null,8,["icon","id","label","onClick"]))),256))],4),y("div",V9,[(R(!0),D(Ne,null,Lt(N(xt),V=>(R(),xe(K,{message:N(vc)(V.latestMessage),time:h(V.updateTime),key:V.key,conversation:V,draft:k(V),statusEnable:N(D2)(V.latestMessage),name:A(V.latestMessage),selected:N(pe)?N(Et)(V,N(pe)):!1,rightClicked:a.value===V.key,onContextmenu:Cs(Le=>C(V,Le),["prevent"]),onMenuClick:Le=>C(V,Le.detail[0]),onClick:Le=>g(V,Le)},null,8,["message","time","conversation","draft","statusEnable","name","selected","rightClicked","onContextmenu","onMenuClick","onClick"]))),128)),o.value?(R(),xe(ee,{key:0})):de("",!0)])],512)]),_:1},512)):(R(),xe(ie,{key:1,desc:N(d)},null,8,["desc"]))}}}),[["styles",[`:host{display:block;height:100%}.rc-conversation-wrap{padding:0 10px;position:relative}.rc-conversation-list-menu{position:absolute;top:0;left:0;z-index:101;padding:7px 4px;background-color:#fff;border-radius:6px;box-shadow:0 4px 15.9px #0000001c;min-width:95px}.rc-conversation-list-menu-mask{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%}
|
|
356
|
+
`]]]),$9=`.rc-kit-modal-provider{background-color:#00000080;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;z-index:10000000;overflow:hidden}
|
|
357
|
+
`,H9={},G9={class:"rc-kit-modal-provider"};function B9(e,t){return R(),D("div",G9,[dn(e.$slots,"default")])}const j9=Re(H9,[["render",B9],["styles",[$9]]]),q9={class:"modal-confirm-provider"},K9={class:"rc-kit-modal-dialog-header",slot:"header"},z9={class:"rc-kit-modal-dialog-content",slot:"content"},Q9={class:"rc-kit-modal-dialog-footer",slot:"footer"},W9=Re(Te({__name:"modal-confirm-provider.ce",setup(e,{emit:t}){const s=t,n=Se(),i=U(""),o=Ce("dialog.tips.msg"),r=Ce("dialog.cancel.msg"),a=Ce("dialog.confirm.msg"),l=d=>{s("cancel")},c=d=>{s("confirm")},u=d=>{i.value=d.data};return lt(()=>{n.addEventListener(ge.CONFIRM_EVENT,u)}),Rt(()=>{n.removeEventListener(ge.CONFIRM_EVENT,u)}),(d,h)=>{const p=ve("rc-modal-dialog"),_=ve("rc-modal-provider");return R(),D("div",q9,[Ie(_,{onClick:l},{default:pt(()=>[Ie(p,{width:286},{default:pt(()=>[y("div",K9,re(N(o)),1),y("div",z9,re(i.value),1),y("div",Q9,[y("button",{class:"cancel",onClick:l},re(N(r)),1),y("button",{class:"confirm",onClick:c},re(N(a)),1)])]),_:1})]),_:1})])}}}),[["styles",[`.rc-kit-modal-dialog-header{font-size:14px;border-bottom:1px solid #EAEAEA;padding:10px 30px;line-height:20px}.rc-kit-modal-dialog-content{font-size:12px;padding:15px 30px}.rc-kit-modal-dialog-footer{display:flex;justify-content:center;padding:20px}.rc-kit-modal-dialog-footer button{min-width:70px;text-decoration:none;border-radius:3px;outline:none;font-size:12px;padding:5px 15px;border:0;margin:0 23px;cursor:pointer}.rc-kit-modal-dialog-footer .cancel{border:1px solid #DEDEDE;background-color:#f5f5f5}.rc-kit-modal-dialog-footer .confirm{border:1px solid #0099FF;background-color:#09f;color:#fff}
|
|
358
|
+
`]]]),Z9={class:"modal-alert-provider"},Y9={class:"rc-kit-modal-dialog-header",slot:"header"},J9={class:"rc-kit-modal-dialog-content",slot:"content"},X9={class:"rc-kit-modal-dialog-footer",slot:"footer"},e7=Re(Te({__name:"modal-alert-provider.ce",setup(e,{emit:t}){const s=t,n=Se(),i=U(""),o=Ce("dialog.tips.msg"),r=Ce("dialog.cancel.msg"),a=c=>{s("cancel")},l=c=>{i.value=c.data};return lt(()=>{n.addEventListener(ge.ALERT_EVENT,l)}),Rt(()=>{n.removeEventListener(ge.ALERT_EVENT,l)}),(c,u)=>{const d=ve("rc-modal-dialog"),h=ve("rc-modal-provider");return R(),D("div",Z9,[Ie(h,{onClick:a},{default:pt(()=>[Ie(d,{width:286,onCancel:a},{default:pt(()=>[y("div",Y9,re(N(o)),1),y("div",J9,re(i.value),1),y("div",X9,[y("button",{class:"cancel",onClick:a},re(N(r)),1)])]),_:1})]),_:1})])}}}),[["styles",[`.rc-kit-modal-dialog-header{font-size:14px;border-bottom:1px solid #EAEAEA;padding:10px 30px;line-height:20px}.rc-kit-modal-dialog-content{font-size:12px;padding:15px 30px}.rc-kit-modal-dialog-footer{display:flex;justify-content:center;padding:20px}.rc-kit-modal-dialog-footer button{min-width:70px;text-decoration:none;border-radius:3px;outline:none;font-size:12px;padding:5px 15px;border:0;margin:0 23px;cursor:pointer}.rc-kit-modal-dialog-footer .cancel{border:1px solid #DEDEDE;background-color:#f5f5f5}.rc-kit-modal-dialog-footer .confirm{border:1px solid #0099FF;background-color:#09f;color:#fff}
|
|
359
|
+
`]]]),t7={class:"modal-forwarding-provider"},s7={class:"rc-kit-modal-dialog-header",slot:"header"},n7={class:"rc-kit-modal-dialog-content",slot:"content"},i7={class:"search"},o7=["placeholder"],r7=["src"],a7={class:"list"},l7=["onClick"],c7=["for"],u7=["id","value"],d7={class:"custom"},f7=["src"],h7={class:"conversation"},p7={class:"name"},g7={class:"rc-kit-modal-dialog-footer",slot:"footer"},_7=["disabled"],m7=Re(Te({__name:"modal-forwarding-provider.ce",setup(e,{emit:t}){const s=t,n=U(""),i=U([]),o=U([]),r=Ce("dialog.forwarding.msg"),a=Ce("dialog.cancel.msg"),l=Ce("dialog.forwarding.confirm"),c=Ce("input.placeholder.search");let u=null;const d=()=>xt.value.filter(w=>[f.ConversationType.PRIVATE,f.ConversationType.GROUP].includes(w.conversationType)&&w.name.includes(n.value)),h=()=>{u||(u=setTimeout(()=>{o.value=d(),clearTimeout(u),u=null},500))},p=w=>{s("cancel")},_=w=>{i.value.length!==0&&s("confirm",{list:i.value})},m=w=>{const C=i.value.findIndex(g=>g.key===w.key);if(C>-1){i.value.splice(C,1);return}i.value.push(w)},b=w=>i.value.some(C=>C.key===w.key);return lt(()=>{o.value.splice(0,o.value.length,...d())}),(w,C)=>{const g=ve("rc-icon"),E=ve("rc-modal-dialog"),v=ve("rc-modal-provider");return R(),D("div",t7,[Ie(v,{onClick:p},{default:pt(()=>[Ie(E,{width:520,height:450},{default:pt(()=>[y("div",s7,re(N(r)),1),y("div",n7,[y("div",i7,[ms(y("input",{class:"search-input","onUpdate:modelValue":C[0]||(C[0]=L=>n.value=L),type:"text",placeholder:N(c),onInput:h},null,40,o7),[[wo,n.value]]),y("img",{class:"search-icon",src:N(up),alt:"SEARCH_ICON"},null,8,r7)]),y("div",a7,[(R(!0),D(Ne,null,Lt(o.value,L=>(R(),D("div",{class:Fe(["list-item",{"is-selected":b(L)}]),key:L.key,onClick:F=>m(L)},[y("div",{class:"checkbox",onClick:C[2]||(C[2]=Cs(()=>{},["stop"]))},[y("label",{for:L.key},[ms(y("input",{id:L.key,type:"checkbox","onUpdate:modelValue":C[1]||(C[1]=F=>i.value=F),value:L},null,8,u7),[[Mo,i.value]]),y("span",d7,[y("img",{src:N(Xc),alt:"CHECKED_ICON"},null,8,f7)])],8,c7)]),y("div",h7,[Ie(g,{class:"profile",width:32,height:32,radius:50,url:L.portraitUri,online:!1},null,8,["url"]),y("span",p7,re(L.name),1)])],10,l7))),128))])]),y("div",g7,[y("button",{class:"cancel",onClick:p},re(N(a)),1),y("button",{class:"confirm",disabled:i.value.length===0,onClick:_},re(N(l)),9,_7)])]),_:1})]),_:1})])}}}),[["styles",[`input{border:0;padding:0;outline:none}.modal-forwarding-provider .rc-kit-modal-provider{background-color:#00000080}.modal-forwarding-provider .rc-kit-modal-dialog{width:520px;height:450px;display:flex;flex-direction:column;max-height:450px;overflow:hidden}@media (max-width: 768px){.modal-forwarding-provider .rc-kit-modal-dialog{width:80%!important;height:450px}.rc-kit-modal-dialog-header{width:auto;padding-left:20px;padding-right:20px}.search .search-input{width:100%;max-width:400px}}.rc-kit-modal-dialog-header{font-size:18px;padding:40px 0 20px;line-height:20px;text-align:center;width:500px;margin:0 auto;flex-shrink:0}.rc-kit-modal-dialog-content{padding:0;flex:1;flex-direction:column;overflow:hidden}.rc-kit-modal-dialog-content .search{font-size:14px;margin:0 20px 16px;position:relative;flex-shrink:0}.search .search-input{padding:8px 28px 8px 30px;border:.5px solid #E4E7ED;background-color:#fff;width:100%;box-sizing:border-box;border-radius:30px;font-size:14px;color:#41464f}.search .search-input::placeholder{color:#41464f}.search .search-icon{position:absolute;top:8px;left:10px}.list{min-height:0;padding:0 20px;overflow-y:auto;overflow-x:hidden;background-color:#fff;font-size:12px;height:214px}.list-item{display:flex;align-items:center;border-radius:8px;margin-bottom:3px;cursor:pointer;padding:6px 10px;background-color:transparent}.list-item:hover{background-color:#f3f5fa}.list-item.is-selected,.list-item.is-selected:hover{background-color:#d2e1fe}.list .conversation{display:flex;align-items:center;overflow:hidden;min-width:0}.list .conversation .profile{padding:0 6px;flex-shrink:0}.list .conversation .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;font-weight:500;color:#41464f}.list-item .checkbox{flex-shrink:0}.list-item .checkbox input[type=checkbox]{display:none}.list-item .checkbox .custom{display:flex;width:14px;height:14px;border:1px solid #0000001A;border-radius:50%;background-color:#fff;font-size:0;justify-content:center;align-items:center;cursor:pointer}.list-item .checkbox input[type=checkbox]:checked+.custom{background-color:#16d258;border-color:#16d258}.list-item .checkbox input[type=checkbox]:checked+.custom img{display:block;width:11px}.list-item .checkbox .custom img{display:none}.rc-kit-modal-dialog-content{font-size:14px;text-align:center}.rc-kit-modal-dialog-footer{display:flex;justify-content:center;padding:30px 0 40px}.rc-kit-modal-dialog-footer button{min-width:70px;text-decoration:none;border-radius:4px;outline:none;font-size:16px;border:0;margin:0 15px;cursor:pointer;width:110px;height:36px;background-color:#f3f5fa}.rc-kit-modal-dialog-footer .cancel{color:#020814}.rc-kit-modal-dialog-footer .confirm{color:#fff;background-color:#0047ff}.rc-kit-modal-dialog-footer .confirm:disabled{color:#ccc;background-color:#f3f5fa;cursor:not-allowed}.cancel:hover{background-color:#e3e7ef}.confirm:hover:not(:disabled){background-color:#366eff}
|
|
360
|
+
`]]]),E7={class:"modal-delete-provider"},v7={class:"rc-kit-modal-dialog-header",slot:"header"},C7={class:"rc-kit-modal-dialog-content",slot:"content"},y7={class:"rc-kit-modal-dialog-footer",slot:"footer"},S7=Re(Te({__name:"modal-delete-message-provider.ce",props:{recallEnable:{type:String}},setup(e,{emit:t}){const s=t,n=U(!1),i=Ce("dialog.delete.msg"),o=Ce("dialog.delete.msg.content"),r=Ce("dialog.cancel.msg"),a=Ce("dialog.delete.msg.confirm"),l=u=>{s("cancel")},c=u=>{s("confirm",n.value)};return(u,d)=>{const h=ve("rc-modal-dialog"),p=ve("rc-modal-provider");return R(),D("div",E7,[Ie(p,{onClick:l},{default:pt(()=>[Ie(h,{width:392},{default:pt(()=>[y("div",v7,re(N(i)),1),y("div",C7,re(N(o)),1),y("div",y7,[y("button",{class:"cancel",onClick:l},re(N(r)),1),y("button",{class:"confirm",onClick:c},re(N(a)),1)])]),_:1})]),_:1})])}}}),[["styles",[`.rc-kit-modal-dialog-header{font-size:18px;padding:40px 0 20px;line-height:20px;text-align:center;font-weight:500}.rc-kit-modal-dialog-content{font-size:14px;text-align:center}.rc-kit-modal-dialog-footer{display:flex;justify-content:center;padding:30px 0 40px}.rc-kit-modal-dialog-footer button{min-width:70px;text-decoration:none;border-radius:4px;outline:none;font-size:16px;border:0;margin:0 15px;cursor:pointer;width:110px;height:36px;background-color:#f3f5fa}.rc-kit-modal-dialog-footer .cancel{color:#020814}.rc-kit-modal-dialog-footer .confirm{color:#ff5a50}.cancel:hover,.confirm:hover{background-color:#e3e7ef}.content-check{display:flex;margin-top:15px;align-items:center}.checkbox input[type=checkbox]{display:none}.checkbox .custom{display:flex;width:15px;height:15px;border:1px solid #ABB8CB;border-radius:3px;background-color:#fff;font-size:0;justify-content:center;align-items:center;cursor:pointer;margin-right:7px;box-sizing:border-box}.checkbox input[type=checkbox]:checked+.custom{background-color:#09f;border-color:#09f}
|
|
361
|
+
`]]]),T7={class:"modal-media-message-provider"},I7={class:"media-message-container"},R7={class:"menu"},w7=["src"],M7=["src"],O7=["src"],b7=["src"],L7={class:"loading-spinner-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40"},A7=["src"],x7=["poster","src"],k7=Re(Te({__name:"modal-media-message-provider.ce",props:{url:{type:String},userId:{type:String},sentTime:{type:String},messageType:{type:String},messageUid:{type:String},content:{type:String}},setup(e,{emit:t}){const s=t,n=e,i=E=>{s("cancel")},o=U(50),r=U(80),a=U(!1),l=U(!1),c=U(!1),u=U(!1),d=(E,v)=>{if(v.stopPropagation(),n.messageType===j.MessageType.SIGHT){if(r.value+E>100||r.value+E<50)return;r.value=r.value+E}else{if(m.value&&b.value&&(g.value=m.value.clientHeight>b.value.clientHeight),o.value+E>70||o.value+E<10)return;o.value=o.value+E}},h=()=>{s("download")},p=U(!0),_=E=>{E.data.forEach(v=>{const{recallMsg:L}=v;L&&L.content.messageUId===n.messageUid&&(Se().alert("alert.message-deleted"),s("cancel"))})},m=U(),b=U(),w=()=>{p.value=!1,m.value.src=n1,m.value.style.width="100px",m.value.style.height="100px"},C=()=>{p.value=!1,m.value&&b.value&&(g.value=m.value.clientHeight>b.value.clientHeight)},g=U(!1);return lt(()=>{Se().addEventListener(ge.MESSAGES_DELETED,_)}),Rt(()=>{Se().removeEventListener(ge.MESSAGES_DELETED,_)}),(E,v)=>{const L=ve("rc-modal-provider");return R(),D("div",T7,[Ie(L,{onClick:i},{default:pt(()=>[y("div",I7,[y("div",{class:"media-message-header",onClick:v[10]||(v[10]=F=>F.stopPropagation())},[y("div",R7,[y("div",{class:"btn-wrapper",onMouseenter:v[1]||(v[1]=F=>a.value=!0),onMouseleave:v[2]||(v[2]=F=>a.value=!1)},[y("img",{class:"btn",onClick:v[0]||(v[0]=F=>d(5,F)),src:a.value?N(k0):N(x0),alt:"MODAL_UP_ICON"},null,8,w7)],32),y("div",{class:"btn-wrapper",onMouseenter:v[4]||(v[4]=F=>l.value=!0),onMouseleave:v[5]||(v[5]=F=>l.value=!1)},[y("img",{class:"btn",onClick:v[3]||(v[3]=F=>d(-5,F)),src:l.value?N(N0):N(U0),alt:"MODAL_DOWN_ICON"},null,8,M7)],32),y("div",{class:"btn-wrapper",onMouseenter:v[6]||(v[6]=F=>c.value=!0),onMouseleave:v[7]||(v[7]=F=>c.value=!1)},[y("img",{class:"btn",onClick:h,src:c.value?N(D0):N(M0),alt:"MODAL_DOWNLOAD_ICON"},null,8,O7)],32),y("div",{class:"btn-wrapper",onMouseenter:v[8]||(v[8]=F=>u.value=!0),onMouseleave:v[9]||(v[9]=F=>u.value=!1)},[y("img",{class:"btn",onClick:i,src:u.value?N(Zc):N(Wc),alt:"MODAL_CLOSE_ICON"},null,8,b7)],32)])]),n.messageType===N(j.MessageType).IMAGE||n.messageType===N(j.MessageType).GIF?(R(),D("div",{key:0,class:Fe(["media-message-box",{"self-start":g.value}]),ref_key:"boxRef",ref:b,style:{"max-height":"calc(100% - 54px)"}},[y("div",{class:"media-message",style:rt({width:`${o.value}%`})},[ms((R(),D("svg",L7,[...v[13]||(v[13]=[y("path",{d:"M512 1024c-282.7776 0-512-229.2224-512-512s229.2224-512 512-512 512 229.2224 512 512-229.2224 512-512 512z m0-921.6c-225.8944 0-409.6 183.7056-409.6 409.6s183.7056 409.6 409.6 409.6 409.6-183.7056 409.6-409.6-183.7056-409.6-409.6-409.6z",fill:"#ffffff",opacity:"0.3"},null,-1),y("path",{d:"M512 1024C229.2224 1024 0 794.7776 0 512c0-28.2624 22.9376-51.2 51.2-51.2s51.2 22.9376 51.2 51.2c0 225.8944 183.7056 409.6 409.6 409.6s409.6-183.7056 409.6-409.6c0-225.8944-183.7056-409.6-409.6-409.6-28.2624 0-51.2-22.9376-51.2-51.2s22.9376-51.2 51.2-51.2c282.7776 0 512 229.2224 512 512s-229.2224 512-512 512z",fill:"#ffffff"},null,-1)])],512)),[[Ks,p.value]]),ms(y("img",{style:{width:"100%"},ref_key:"imgRef",ref:m,onClick:v[11]||(v[11]=F=>F.stopPropagation()),src:n.url,onLoad:C,onError:w,alt:"image"},null,40,A7),[[Ks,!p.value]])],4)],2)):de("",!0),n.messageType===N(j.MessageType).SIGHT?(R(),D("div",{key:1,class:"media-message-box",ref_key:"boxRef",ref:b,style:{"max-height":"calc(100% - 54px)"}},[y("div",{class:"media-message",style:rt({height:`${r.value}%`})},[y("video",{poster:`data:image/png;base64,${n.content}`,style:{height:"100%"},onClick:v[12]||(v[12]=F=>F.stopPropagation()),src:n.url,controls:""},[...v[14]||(v[14]=[y("track",{kind:"subtitles"},null,-1),y("track",{kind:"description"},null,-1)])],8,x7)],4)],512)):de("",!0)])]),_:1})])}}}),[["styles",[`p{margin:0;padding:0}.modal-media-message-provider :deep(.rc-kit-modal-provider){background-color:#00000080}.media-message-container{width:100%;height:100%;display:flex;flex-direction:column;position:relative}.media-message-box{width:100%;flex:1;overflow-y:auto;display:flex;justify-content:center;align-items:center;min-height:0}.media-message-box.self-start{align-items:self-start}.media-message-header{width:100%;height:54px;display:flex;justify-content:flex-end;align-items:center;padding:0 25px;background-color:#fff;box-sizing:border-box;z-index:2;flex-shrink:0}.media-message{width:50%;font-size:0;display:flex;justify-content:center;z-index:1;max-width:100%}.loading-spinner-svg{animation:spin 1s linear infinite;margin:20px auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.menu{display:flex;align-items:center;gap:24px;z-index:2}.btn-wrapper{width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:8px;transition:background-color .2s}.btn-wrapper:hover{background-color:#d0ddff}.btn{width:30px;height:30px;cursor:pointer;display:block}video,img{max-width:100%;max-height:100%}
|
|
362
|
+
`]]]),U7={class:"rc-take-photo-provider"},N7={class:"take-photo-header"},D7=["src"],P7=["srcObject"],V7=["src"],F7={key:0,class:"message"},$7={key:1,class:"floating-buttons"},H7=["src"],G7={class:"button-text"},B7=["src"],j7=["src"],q7={key:2,class:"button-text"},K7=Re(Te({__name:"modal-take-photo-provider.ce",setup(e,{emit:t}){const s=t,n=U(),i=U(),o=U(),r=U(null),a=U(""),l=U(!1);let c=null,u=null;const d=U(""),h=me(()=>d.value?Ze("take-photo.msg.camera-startup-failure",d.value).value:r.value?"":Ze("take-photo.msg.camera-starting").value),p=()=>{a.value&&(URL.revokeObjectURL(a.value),a.value=""),c=null,b(),s("cancel")},_=async()=>{URL.revokeObjectURL(a.value),a.value="",c=null,await at()},m=async()=>{if(u)return u;try{u=navigator.mediaDevices.getUserMedia({video:{width:960,height:720,aspectRatio:4/3}}),r.value=await u}catch(v){d.value=v.message}},b=async()=>{if(u){const v=await u;v==null||v.getTracks().forEach(L=>L.stop())}r.value&&r.value.getTracks().forEach(v=>v.stop()),n.value&&(n.value.srcObject=null),u=null,r.value=null},w=()=>new Promise(v=>{const L=document.createElement("canvas"),F=n.value,{width:$,height:A}=F;L.width=$,L.height=A,L.getContext("2d").drawImage(F,0,0,$,A),L.toBlob(O=>v(O),"image/jpg",1)}),C=async()=>{c=await w(),a.value=URL.createObjectURL(c),await at(),E()},g=()=>{const v=Se();v.message.sendFiles(v.conversation.getOpenedConversation(),[new File([c],`screenshot-${Date.now()}.jpg`,{type:"image/jpg"})]),p(),s("cancel")},E=()=>{const v=n.value,L=i.value,F=o.value;if(!L)return;const{scrollWidth:$,scrollHeight:A}=L,k=4/3;let O=$,T=$/k;T>A&&(T=A,O=A*k),v&&(v.width=O,v.height=T),F&&(F.width=O,F.height=T),console.log("resize",O,T,n.value,i.value)};return lt(async()=>{Se().addEventListener(ge.CONVERSATION_SELECTED,p),window.addEventListener("resize",E),await m(),await at(),n.value&&n.value.addEventListener("loadedmetadata",E),E()}),Rt(()=>{Se().removeEventListener(ge.CONVERSATION_SELECTED,p),window.removeEventListener("resize",E),n.value&&n.value.removeEventListener("loadedmetadata",E),b()}),(v,L)=>{const F=ve("rc-modal-provider");return R(),D("div",U7,[Ie(F,{onClick:p},{default:pt(()=>[y("div",{class:"take-photo-container",onClick:L[3]||(L[3]=$=>$.stopPropagation())},[y("div",N7,[y("div",{class:"btn-wrapper",onMouseenter:L[0]||(L[0]=$=>l.value=!0),onMouseleave:L[1]||(L[1]=$=>l.value=!1)},[y("img",{class:"btn",onClick:p,src:l.value?N(Zc):N(Wc),alt:"Close Icon"},null,8,D7)],32)]),y("div",{class:"video-container",ref_key:"videoContainer",ref:i},[ms(y("video",{ref_key:"videoDom",ref:n,playsinline:"",srcObject:r.value,autoplay:""},null,8,P7),[[Ks,!a.value&&r.value]]),ms(y("img",{ref_key:"imageDom",ref:o,src:a.value,alt:"Photo"},null,8,V7),[[Ks,a.value]]),r.value?de("",!0):(R(),D("span",F7,re(h.value),1)),r.value?(R(),D("div",$7,[a.value?(R(),D("div",{key:0,class:"floating-button retry-button",onClick:_},[y("img",{src:N(fp),alt:"Retry Icon"},null,8,H7),y("span",G7,re(N(Ze)("take-photo.retry-btn.label")),1)])):de("",!0),y("div",{class:"floating-button action-button",onClick:L[2]||(L[2]=$=>a.value?g():C())},[a.value?(R(),D("img",{key:1,src:N(P0),alt:"Send Icon"},null,8,j7)):(R(),D("img",{key:0,class:"camera-icon",src:N(hp),alt:"Camera Icon"},null,8,B7)),a.value?(R(),D("span",q7,re(N(Ze)("take-photo.send-btn.label")),1)):de("",!0)])])):de("",!0)],512)])]),_:1})])}}}),[["styles",[`.rc-take-photo-provider :deep(.rc-kit-modal-provider){background-color:#00000080}.take-photo-container{width:100%;height:100%;display:flex;flex-direction:column;position:relative;background:#00000080}.take-photo-header{width:100%;height:54px;display:flex;justify-content:flex-end;align-items:center;padding:0 25px;background-color:#fff;box-sizing:border-box;z-index:2;flex-shrink:0}.btn-wrapper{width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:8px;transition:background-color .2s}.btn-wrapper:hover{background-color:#d0ddff}.btn{width:30px;height:30px;cursor:pointer;display:block}.video-container{width:100%;display:flex;justify-content:center;align-items:center;min-height:0;position:relative;flex:1;overflow:hidden}.message{color:#a1a1a1;font-size:14px;margin:0 auto;position:absolute;z-index:1}.video-container video,.video-container img{object-fit:contain;width:auto;height:auto;max-width:80%;max-height:80%}.floating-buttons{position:absolute;bottom:12%;display:flex;align-items:center;gap:20px;z-index:3}.floating-button{width:78px;height:34px;border-radius:30px;background-color:#0047ff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s;color:#fff;font-size:14px}.floating-button img{width:14px;height:14px;display:block}.retry-button img{width:14px;height:14px}.floating-button .camera-icon{width:20px;height:20px}.button-text{margin-left:4px}
|
|
363
|
+
`]]]),z7={class:"rc-imkit-combine-header"},Q7={class:"title"},W7={class:"rc-imkit-combine-body"},Z7={key:0,class:"rc-imkit-combine-body-iframe"},Y7={key:0,class:"loading"},J7=["src"],X7={style:{padding:"10px 20px"}},em={key:1,class:"rc-kit-msg-list-item",style:{"flex-direction":"row"}},tm=["onClick"],sm={class:"name"},nm={class:"message-body-wrapper"},im={class:"footer"},om={class:"time"},rm=Re(Te({__name:"modal-combine-provider.ce",props:{url:{type:String},content:{type:String},type:{type:String},messageUid:{type:String}},setup(e,{emit:t}){const s=t,n=e,i=U(JSON.parse(n.content)),o=U(!0),r=["time.format.sunday","time.format.monday","time.format.tueday","time.format.wedday","time.format.thurday","time.format.friday","time.format.satday"],a=C=>{const{year:g,month:E,day:v,weekDay:L}=gi(C),F=(Date.now()-C)/1e3/60/60/24;let $=Ce("time.format.full",g,E,v);return new Date().toDateString()===new Date(C).toDateString()&&($=Ce("time.format.today")),(new Date().toDateString()!==new Date(C).toDateString()&&F<1||1<=F&&F<2)&&($=Ce("time.format.yesterday")),2<=F&&F<7&&($=Ce(r[L])),$},l=me(()=>{const C=i.value.msgList,g=[];if(C){for(let E=C.length-1;E>=0;E-=1){const v=C[E];g.unshift(v);const L=C[E-1];L?new Date(v.timestamp).toDateString()!==new Date(L.timestamp).toDateString()&&g.unshift(a(v.timestamp)):g.unshift(a(v.timestamp))}return g}}),c=C=>Se().appData.getUserProfile(C.fromUserId),u=me(()=>!i.value||!i.value.conversationType||!i.value.nameList?"":i.value.conversationType===f.ConversationType.PRIVATE?i.value.nameList.length===2?Ze("private.combine-msg.title",...i.value.nameList).value:Ze("private.combine-msg.signal.title",...i.value.nameList).value:Ze("group.combine-msg.title").value),d=C=>{const{hour:g,minute:E}=gi(C);return`${g}:${E}`},h=C=>{switch(C.objectName){case f.MessageType.IMAGE:case f.MessageType.SIGHT:const g={senderUserId:C.fromUserId,sentTime:C.timestamp,messageType:C.objectName,content:C.content};Se().emit(new ne(ge.MEDIA_MESSAGE_MODAL_EVENT,g));break;case f.MessageType.COMBINE:case f.MessageType.COMBINE_V2:Se().emit(new ne(ge.COMBINE_MESSAGE_MODAL_EVENT,C));break}},p=C=>{const g={messageType:C.objectName,content:C.content,senderUserId:C.fromUserId,targetId:C.targetId,channelId:"",conversationType:1,sentTime:0,receivedTime:0,messageUId:"",messageDirection:1,isPersited:!0,isCounted:!0,isOffLineMessage:!1,canIncludeExpansion:!0,receivedStatus:1};s("download",g)},_=C=>{Se().emit(new ne(ge.MESSAGE_LINK_CLICK,C.detail[0]))},m=C=>{s("cancel")},b=()=>{o.value=!1},w=C=>{C.data.forEach(g=>{const{recallMsg:E}=g;E&&E.content.messageUId===n.messageUid&&(Se().alert("alert.message-deleted"),s("cancel"))})};return lt(()=>{i.value.remoteUrl&&fetch(i.value.remoteUrl).then(C=>C.json()).then(C=>{i.value.msgList=C}),Se().addEventListener(ge.MESSAGES_DELETED,w)}),Rt(()=>{Se().removeEventListener(ge.MESSAGES_DELETED,w)}),(C,g)=>{const E=ve("rc-message-time"),v=ve("rc-icon"),L=ve("rc-scrollbar-provider");return R(),D("div",{class:"modal-combine-provider",onClick:m},[y("div",{class:"rc-imkit-combine-box",onClick:g[0]||(g[0]=F=>F.stopPropagation())},[y("div",z7,[y("div",Q7,re(u.value),1),y("span",{class:"close",onClick:m},"x")]),y("div",W7,[n.type===N(f.MessageType).COMBINE?(R(),D("div",Z7,[o.value?(R(),D("div",Y7,"加载中.....")):de("",!0),y("iframe",{class:"rc-imkit-iframe",src:n.url,title:"Iframe",onLoad:b},null,40,J7)])):(R(),xe(L,{key:1},{default:pt(()=>[y("div",X7,[(R(!0),D(Ne,null,Lt(l.value,F=>(R(),D("div",null,[typeof F=="string"?(R(),xe(E,{key:0,style:{"margin-bottom":"10px"},time:F},null,8,["time"])):(R(),D("div",em,[Ie(v,{class:"rc-kit-msg-avatar",url:c(F).portraitUri,width:32,height:32,radius:50,online:!1},null,8,["url"]),y("div",{class:"rc-kit-msg-bubble",onClick:$=>h(F)},[y("p",sm,re(c(F).name),1),y("div",nm,[(R(),xe(xr(N(va)(F.objectName)),{onDownload:$=>p(F),onLink:_,userId:F.fromUserId,message:{...F,messageType:F.objectName,messageDirection:N(f.MessageDirection).RECEIVE,messageUId:`${F.timestamp}`}},null,40,["onDownload","userId","message"]))]),y("div",im,[y("span",om,re(d(F.timestamp)),1)])],8,tm)]))]))),256))])]),_:1}))])])])}}}),[["styles",[`.modal-combine-provider{flex-direction:column;position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;background-color:#00000080}.rc-imkit-combine-body-iframe{height:100%;background-color:#fff}.rc-imkit-combine-box{background-color:#e6ecf3;height:70%;width:50%;box-shadow:0 10px 16px #0003;display:flex;flex-direction:column;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:8px;overflow:hidden}.rc-imkit-combine-header{background-color:#fff;position:relative}.title{text-align:center;line-height:19px;font-size:12px;padding:11px 0}.close{position:absolute;top:50%;right:15px;padding:0 5px;transform:translateY(-50%);cursor:pointer}.rc-imkit-combine-body{flex:1;overflow:hidden}.loading{font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.rc-imkit-iframe{height:100%;width:100%;overflow:scroll;border:0}.rc-kit-msg-list-item{display:flex;width:100%;font-size:12px;margin-bottom:20px}.rc-kit-msg-avatar{padding:0 8px}.rc-kit-msg-bubble{padding:0 10px 8px 12px;border-radius:0 8px 8px;font-size:12px;line-height:16px;background-color:#fff}p{margin:0 0 5px;line-height:16px;padding:0;word-break:break-word;font-size:12px}.name{font-weight:500;font-size:12px}.footer{text-align:right;margin-top:5px;font-size:10px;display:flex;align-items:center;flex-direction:row-reverse}.time{display:inline-block;margin-left:7px;font-size:12px;color:#7b87a5}
|
|
364
|
+
`]]]),am=Re(Te({__name:"scrollbar-provider.ce",setup(e,{expose:t,emit:s}){const n=Se(),i=s,o=U(),r=U(),a=U(),l=U(1),c=U(0),u=U(0),d=U(!1),h=U(!1);let p=null,_=null;const m=wc(r),b=()=>{if(!r.value)return;const P=r.value.offsetHeight,K=P**2/r.value.scrollHeight,ee=Math.max(K,20);l.value=K/(P-K)/(ee/(P-ee)),c.value=K<P?Math.floor(ee):0},w=P=>{if(typeof P!="number"){console.warn("value must be a number");return}r!=null&&r.value&&(r.value.scrollTop=P)},C=()=>{var P;return(P=r.value)==null?void 0:P.getBoundingClientRect()},g=()=>r.value?{width:r.value.clientWidth,height:r.value.clientHeight}:{width:0,height:0},E=()=>r.value?{left:r.value.scrollLeft,top:r.value.scrollTop}:{left:0,top:0},v=()=>{h.value=!0,d.value=!0,_&&clearTimeout(_)},L=()=>{h.value=!1,_&&clearTimeout(_),_=setTimeout(()=>{d.value=!1},1e3)},F=P=>{if(m.isScrollDisabled||!r.value)return;const K=P.detail[0];r.value.scrollTop=K*r.value.scrollHeight/100},$=()=>{if(m.isScrollDisabled||(d.value=!0,_&&clearTimeout(_),h.value||(_=setTimeout(()=>{d.value=!1},1e3)),!r.value))return;const{offsetHeight:P,scrollHeight:K,scrollTop:ee}=r.value;u.value=Math.floor(ee*100/P*l.value),K/(P+ee)<=1.2&&(p||(p=setTimeout(async()=>{i("loading"),p=null,clearTimeout(p)},1e3)))};cs(()=>l.value,P=>{if(!r.value)return;const{offsetHeight:K,scrollTop:ee}=r.value;u.value=Math.floor(ee*100/K*l.value)});let A=null,k=null;const O=(P,K)=>{let ee=null;return window&&"ResizeObserver"in window&&P&&(ee=new ResizeObserver(K),ee.observe(P)),ee},T=()=>{w(0)};return t({disableScroll:m.disableScroll,enableScroll:m.enableScroll,setScrollTop:w,getViewportRect:C,getViewportSize:g,getScrollPosition:E}),lt(()=>{window.addEventListener("resize",b),A=O(a.value,b),k=O(r.value,b),n.addEventListener(Z.DESTROY_USER_CACHE,T)}),Mn(()=>{window.removeEventListener("resize",b),A==null||A.unobserve(a.value),k==null||k.unobserve(r.value),m.enableScroll(),_&&clearTimeout(_)}),(P,K)=>{var te;const ee=ve("rc-scrollbar-thumb-provider");return R(),D("div",{ref_key:"scrollbarRef",ref:o,class:"rc-kit-scrollbar"},[y("div",{ref_key:"wrapRef",ref:r,class:"wrap",onScroll:$},[y("div",{ref_key:"resizeRef",ref:a,style:{"min-height":"100%"}},[dn(P.$slots,"default")],512)],544),c.value?(R(),xe(ee,{key:0,onHandlemove:F,onMouseenter:v,onMouseleave:L,height:c.value,move:u.value,scrollheight:(te=r.value)==null?void 0:te.scrollHeight,ratio:l.value,style:rt({opacity:d.value?1:0,transition:"opacity 0.5s",pointerEvents:d.value?"auto":"none"})},null,8,["height","move","scrollheight","ratio","style"])):de("",!0)],512)}}}),[["styles",[`:host{display:block;height:100%}.rc-kit-scrollbar{overflow:hidden;position:relative;height:100%}.wrap{overflow-y:scroll;height:100%;scrollbar-width:none}.wrap::-webkit-scrollbar{display:none}
|
|
365
|
+
`]]]),lm=Re(Te({__name:"scrollbar-thumb-provider.ce",props:{height:{type:Number,require:!0,default:0},move:{type:Number,require:!0,default:0},scrollheight:{type:Number,require:!0,default:0},ratio:{type:Number,require:!0,default:1}},setup(e,{emit:t}){const s=t,n=e,i=me(()=>({height:`${n.height}px`,transform:`translateY(${n.move}%)`})),o=me(()=>a.value.offsetHeight**2/n.scrollheight/n.ratio/r.value.offsetHeight),r=U(),a=U();let l=!1,c;const u=U({}),d=w=>{var g;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(g=window.getSelection())==null||g.removeAllRanges(),_(w);const C=w.currentTarget;C&&(u.value.Y=w.clientY-C.getBoundingClientRect().top)},h=w=>{if(!r.value||!a.value)return;const C=Math.abs(w.target.getBoundingClientRect().top-w.clientY),g=r.value.offsetHeight/2,E=(C-g)*100*o.value/a.value.offsetHeight;s("handlemove",E)},p=()=>{document.onselectstart!==c&&(document.onselectstart=c)},_=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",b),c=document.onselectstart,document.onselectstart=()=>!1},m=w=>{if(!a.value||!r.value||l===!1)return;const C=u.value.Y;if(!C)return;const g=(a.value.getBoundingClientRect().top-w.clientY)*-1,E=r.value.offsetHeight-C,v=(g-E)*100*o.value/a.value.offsetHeight;s("handlemove",v)},b=()=>{l=!1,u.value.Y=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",b),p()};return Mn(()=>{p(),document.removeEventListener("mouseup",b)}),(w,C)=>(R(),D("div",{ref_key:"instance",ref:a,class:"rc-kit-scrollbar-bar",onMousedown:h},[y("div",{ref_key:"thumb",ref:r,style:rt(i.value),onMousedown:d,class:"rc-kit-scrollbar-thumb"},null,36)],544))}}),[["styles",[`.rc-kit-scrollbar-bar{position:absolute;right:2px;bottom:0;z-index:1;border-radius:4px;width:6px;top:0}.rc-kit-scrollbar-thumb{width:100%;position:relative;cursor:pointer;border-radius:inherit;background-color:#909399;opacity:.3}.rc-kit-scrollbar-thumb:hover{background-color:#909399;opacity:.5}
|
|
366
|
+
`]]]);var ui=(e=>(e.PHOTO="input.menu.item.photo",e.IMAGES="input.menu.item.images",e.FILES="input.menu.item.files",e.EMOJI="input.menu.item.emoji",e.PLUS="input.menu.item.plus",e))(ui||{});const cm="RCKitChatEmojiLibraryID";var p2=(e=>(e[e.SECONDARY_MENU=0]="SECONDARY_MENU",e[e.LEFT=1]="LEFT",e))(p2||{});const uc={items:[{id:"input.menu.item.emoji",order:0,icon:np,hoverIcon:T0},{id:"input.menu.item.images",order:1,icon:sp,hoverIcon:I0},{id:"input.menu.item.files",order:2,icon:ip,hoverIcon:R0},{id:"input.menu.item.photo",order:3,icon:tp,hoverIcon:w0,filter:()=>(location.protocol==="https:"||location.protocol==="file"||location.hostname==="localhost")&&!gs()}]},dc=e=>({items:e.items.map(t=>({id:t.id,order:t.order,icon:t.icon,hoverIcon:t.hoverIcon,filter:t.filter,submenu:t.submenu?t.submenu.map(s=>({id:s.id,order:s.order,icon:s.icon,filter:s.filter,submenu:s.submenu})):void 0}))}),um={icon:ap,chats:["😁","😂","😃","😄","😅","😆","😇","😈","😉","😊","😋","😌","😍","😎","😏","😐","😑","😒","😓","😔","😕","😖","😗","😘","😙","😚","😛","😜","😝","😞","😟","😠","😡","😢","😣","😤","😥","😦","😧","😨","😩","😪","😫","😬","😭","😮","😯","😰","😱","😲","😳","😴","😵","😶","😷","😸","😹","😺","😻","😼","😽","😾","😿","🙀","🙁","🙂","🙃","🙄","🙅","🙆","🙇","🙈","🙉","🙊","🙋","🙌","🙍","🙎","🙏","🤐","🤑","🤒","🤓","🤔","🤕","🤖","🤗","🤘","🤙","🤚","🤛","🤜","🤝","🤞","🤟","🤠","🤡","🤢","🤣","🤤","🤥","🤦","🤧","🤨","🤩","🤪","🤫","🤬","🤭","🤮","🤯"]},g2=e=>({icon:e.icon,chats:[...e.chats]}),_2=e=>e.map(t=>({id:t.id,icon:t.icon,itemWidth:t.itemWidth,itemHeight:t.itemHeight,items:t.items.map(s=>({...s})),order:t.order}));class dm extends Ts{constructor(s){super(s);q(this,"_menu",dc(uc));q(this,"quoteEnableList",[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.SIGHT,f.MessageType.FILE,f.MessageType.GIF,f.MessageType.LOCATION,f.MessageType.HQ_VOICE]);q(this,"menuList",[]);q(this,"chatEmojis",g2(um));q(this,"imageEmojis",[]);this.setInputMenu(uc)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this.chatEmojis.chats.length=0,this.imageEmojis.length=0,this.setInputMenu(uc)}cloneInputMenu(){return dc(this._menu)}setInputMenu(s){this._menu=dc(s),this._resetMenu()}_resetMenu(){this.menuList.length=0;const{items:s}=this._menu,n=(i,o)=>i.order-o.order;this.menuList.splice(0,this.menuList.length,...s.sort(n))}cloneChatEmojiLibrary(){return g2(this.chatEmojis)}setChatEmojiLibrary(s){this.chatEmojis.chats.splice(0,this.chatEmojis.chats.length,...s.chats),this.chatEmojis.icon=s.icon}cloneImageEmojiLibraries(){return _2(this.imageEmojis)}setImageEmojiLibraries(s){const n=_2(s).sort((i,o)=>i.order-o.order);this.imageEmojis.splice(0,this.imageEmojis.length,...n)}addImageEmoji(s,n,i){throw new Error("TODO: addImageEmoji")}setQuoteEnableMessageTypeList(s){this.quoteEnableList.splice(0,this.quoteEnableList.length,...s)}isQuoteInfoEnabledForMessageType(s){return this.ctx.isQuoteMessageV2Enabled&&this.quoteEnableList.includes(s)}getQuoteEnableMessageTypeList(){return this.quoteEnableList.slice()}}const ga=U(!1),Ho=U(!1),_a=U(!1),Bi=new Map;let ji=!1;const m2=()=>{ji=!1,Bi.clear()},E2=(e,t,s=!1)=>{const i=vn.value.find(a=>a.userId===e);if(!i)return;di();const o=i.nickname||i.name;Bi.set(e,new RegExp(`@${o}`)),t.focus();const r=s?`@${o} `:`${o} `;t.setRangeText(r,t.selectionStart,t.selectionEnd,"end")},fm=e=>{ji=!0,di(),e.focus(),e.setRangeText(`${Ce("input.mentioned.all")} `,e.selectionStart,e.selectionEnd,"end")},di=()=>{ga.value=!1,Ho.value=!1,_a.value=!1},hm=(e,t)=>{di();const{detail:s}=e,{url:n,thumbnail:i,gif:o}=s;let r;if(o){const{size:u,width:d,height:h}=o;r=new f.GIFMessage({gifDataSize:u,width:d,height:h,remoteUrl:n})}else r=new f.ImageMessage({content:i,imageUri:n});const a=Se();let l={};const c=ft.value;c&&a.isQuoteMessageV2Enabled&&a.input.isQuoteInfoEnabledForMessageType(r.messageType)&&(l.quoteInfo={messageUId:c.messageUId,senderId:c.senderUserId,objectName:c.messageType},ft.value=null),Se().message.sendMessage(t,r,l,c)},pm=(e,t)=>{t.focus(),t.setRangeText(e.detail,t.selectionStart,t.selectionEnd,"end"),di(),Se().conversation.sendTypingStatus()},gm=(e,t)=>{const s=document.createElement("input");s.type="file",s.accept=e,s.multiple=!0,s.onchange=()=>{t(Array.from(s.files||[]))},s.addEventListener("cancel",()=>{t([])}),s.click()},_m=(e,t)=>{console.log(">>>> pickFileOnSafari >>>> pickFileOnSafari >>>>");const s=document.createElement("input");s.type="file",s.accept=e,s.multiple=!0,s.style.position="fixed",s.style.left="-9999px",s.style.top="-9999px",s.style.width="1px",s.style.height="1px",s.style.opacity="0",s.style.pointerEvents="none",document.body.appendChild(s);let n=!1;const i=[],o=()=>{for(const d of i)globalThis.clearTimeout(d);i.length=0},r=()=>{o(),globalThis.removeEventListener("focus",u,!0),s.onchange=null,s.removeEventListener("cancel",c),s.parentNode&&s.remove()},a=()=>Array.from(s.files||[]),l=()=>{if(n)return;const d=a();d.length!==0&&(n=!0,r(),t(d))},c=()=>{n||(n=!0,r(),t([]))},u=()=>{o();const d=[0,50,100,200,400,700,1100,1700,2500];for(const h of d)i.push(globalThis.setTimeout(()=>l,h));i.push(globalThis.setTimeout(()=>{a().length>0||c()},2800))};s.value="",globalThis.addEventListener("focus",u,!0),s.onchange=l,s.addEventListener("cancel",c),s.click()};function mm(){if(!("GestureEvent"in window))return!1;const t=navigator.userAgent,s=/Safari/.test(t)&&!/Chrome|CriOS|Edg|FxiOS|OPiOS/i.test(t),n=!!navigator.vendor&&navigator.vendor.indexOf("Apple")>-1;return s&&n}const v2=mm()?_m:gm;let fc=!1;const Em=e=>{switch(e.key){case"Backspace":di();break;case"Shift":fc=!0;break}},vm=(e,t,s,n)=>{e.key==="Enter"&&Sm(e,t,s)},C2=e=>{e.key==="Shift"&&(fc=!1)},Cm=(e,t,s,n)=>{const i=e.value;Go(e,t,s);const o=n.data??"";if(n.inputType==="insertText"&&o.includes("@")){const a=Se().conversation.getOpenedConversation();(a==null?void 0:a.conversationType)===f.ConversationType.GROUP&&(di(),_a.value=!0)}else _a.value=!1;if(Bi.forEach((a,l)=>{a.test(i)||Bi.delete(l)}),ji){const a=`@${Ce("input.mentioned.all")}`;i.includes(a)||(ji=!1)}Se().conversation.sendTypingStatus()},y2=()=>{requestAnimationFrame(()=>{Se().dispatchEvent(new ne(Z.ADJUST_MESSAGE_LIST_SCROLL))})};let S2=-1;const Go=(e,t,s)=>{t.innerHTML=e.value.replaceAll(/\n$/g,"<br>.").replaceAll(`
|
|
367
|
+
`,"<br>");const n=e.offsetWidth;Math.abs(t.offsetWidth-n)>1&&(t.style.width=`${n}px`,t.getBoundingClientRect());const i=21,o=36,r=5,a=18,l=i*r+a,c=t.scrollHeight,u=Math.max(1,Math.ceil(c/i));let d;u===1?d=o:u<=r?d=i*u+a:d=l,e.style.height=`${d}px`,s.style.height=`${d}px`,u>r?e.style.overflowY="auto":e.style.overflowY="hidden",S2!==d&&(S2=d,y2())},ym=(e,t,s,n,i)=>{e.value=i||"",Go(e,t,s)},T2=(e,t,s,n)=>{const i=Se().conversation.getOpenedConversation();if(!i)return;const o=e.value;if(!o.trim().length)return;const r=ji?f.MentionedType.ALL:f.MentionedType.SINGAL,a=Se(),l=ft.value;let c;const u={};if(l?a.isQuoteMessageV2Enabled?(c=new f.TextMessage({content:o}),a.input.isQuoteInfoEnabledForMessageType(c.messageType)&&(u.quoteInfo={messageUId:l.messageUId,senderId:l.senderUserId,objectName:l.messageType},ft.value=null)):(c=new f.ReferenceMessage({content:o,referMsg:{...l.content},referMsgUserId:l.senderUserId,objName:l.messageType,referMsgUid:l.messageUId}),ft.value=null):c=new f.TextMessage({content:o}),u.isMentioned=ji||Bi.size>0,u.isMentioned&&(c.content.mentionedInfo={type:r,userIdList:Array.from(Bi.keys())}),[f.MessageType.TEXT,f.MessageType.REFERENCE].includes(c.messageType)&&c.content.content.length>5e3){a.alert("alert.send.message.maxcount","5000");return}a.message.sendMessage(i,c,u,l),m2(),e.value="",Go(e,t,s)},Sm=(e,t,s,n)=>{const i=e.target;fc||(e.preventDefault(),T2(i,t,s))},I2=e=>{const t=e.clipboardData;if(!t||t.files.length===0)return;e.preventDefault();const s=Se(),n=s.conversation.getOpenedConversation(),i=Array.from(t.files);if(i.length>100){s.alert("alert.pickfiles.maxcount","100");return}const o=i.filter(r=>r.type!==""&&r.size>0);o.length!==0&&s.message.sendFiles(n,o)},Tm={class:"rc-input-provider"},Im={class:"rc-input-top-buttons"},Rm=["src","alt","onMouseenter","onClick"],wm={class:"rc-input-inner-wrapper"},Mm=["placeholder","enterkeyhint"],Om=["disabled"],bm=["src"],Lm={key:0},Am=["onClick"],xm=["src"],km=Re(Te({__name:"input-provider.ce",props:{conversation:{type:Object}},setup(e){const t=Se(),s=t.store.getCommandSwitch(It.AT_ALL),n=e,i=U(!1),o=U(null),r=()=>{i.value=gs(),C.value=t.input.menuList.filter(b).map(w)},a=Ze("input.placeholder"),l=U(""),c=U(),u=U(),d=U(),h=U(),p=U([]),_=U(null),m=U(null),b=ce=>!ce.filter||ce.filter(n.conversation),w=ce=>({...ce,label:Ze(ce.id).value}),C=U([]);C.value=t.input.menuList.filter(b).map(w);const g=me(()=>{const ce=[];return ce.push(...C.value),ce.sort((_e,Xe)=>(_e.order||0)-(Xe.order||0))}),E=ce=>o.value===ce.id&&ce.hoverIcon?ce.hoverIcon:ce.icon,v=me(()=>l.value.trim().length>0),L=()=>{di(),p.value=[],_.value=null,m.value=null},F=ce=>{const _e=Ho.value&&m.value===ce.id;L(),!_e&&(Ho.value=!0,m.value=ce.id)},$=(ce,_e,Xe)=>{const nt=ga.value&&m.value===ce.id&&_.value===_e;L(),!(nt||Xe.length===0)&&(p.value=Xe,_.value=_e,m.value=ce.id,O())},A=(ce,_e)=>{if(p.value.some(nt=>nt.id===ce.id)){L(),k(ce,_e);return}if(ce.id===ui.EMOJI){_e.stopPropagation(),Se().statistic(ci.INPUT_EMOJI_ENTRY_CLICK),F(ce);return}if(ce.submenu&&ce.submenu.length>0){_e.stopPropagation();const nt=ce.submenu.filter(b).map(w);$(ce,_e.currentTarget,nt);return}L(),k(ce,_e)},k=(ce,_e)=>{const{id:Xe}=ce;switch(Xe){case ui.PHOTO:t.emit(new ne(ge.TAKE_PHOTO_MODAL_EVENT));return;case ui.EMOJI:_e.stopPropagation(),Se().statistic(ci.INPUT_EMOJI_ENTRY_CLICK),L(),Ho.value=!0;return;case ui.IMAGES:v2("image/jpg, image/png, image/jpeg, image/gif",nt=>t.message.sendFiles(n.conversation,nt));return;case ui.FILES:v2("*/*",nt=>t.message.sendFiles(n.conversation,nt));return;default:t.emit(new ne(ge.INPUT_MENU_ITEM_CLICK,{id:Xe,conversation:n.conversation}),2);return}},O=()=>{!c.value||!_.value||(ga.value=!0,setTimeout(()=>{if(!c.value||!_.value||!u.value)return;const ce=_.value.getBoundingClientRect(),_e=u.value.getBoundingClientRect(),Xe=c.value,nt=ce.top-_e.top;Xe.style.bottom=`${_e.height-nt+8}px`,Xe.style.left=`${ce.left-_e.left}px`,Xe.style.right="auto"},0))},T=ce=>{pm(ce,De.value),L(),De.value&&(l.value=De.value.value)},P=ce=>{hm(ce,n.conversation),L()},K=ce=>{De.value&&(l.value=De.value.value),Cm(De.value,h.value,d.value,ce)},ee=()=>{if(!De.value)return;const ce=De.value.value;T2(De.value,h.value,d.value,u.value),De.value.value===""&&ce.trim().length>0&&(l.value="")},te=()=>{!v.value||!De.value||ee()},ie=ce=>{var Xe;const _e=((Xe=De.value)==null?void 0:Xe.value)||"";Em(ce),vm(ce,h.value,d.value,u.value),ce.key==="Enter"&&!ce.shiftKey&&at(()=>{De.value&&De.value.value===""&&_e.trim().length>0&&(l.value="")})},V=ce=>{const[_e]=ce.detail;E2(_e,De.value)},Le=async ce=>{var as,et;const _e=(as=ce.data)==null?void 0:as.conversation,Xe=(et=ce.data)==null?void 0:et.focusInput,nt=(_e==null?void 0:_e.draft)||"";ft.value=null,L(),m2(),ym(De.value,h.value,d.value,u.value,nt),l.value=nt,_e&&Xe!==!1?De.value.focus():De.value&&De.value.blur()},Ot=ce=>{if(!ce.data)return;De.value.focus();const _e=De.value.value.length;De.value.setRangeText(ce.data,_e,_e,"end"),l.value=De.value.value,Go(De.value,h.value,d.value)};cs(ft,(ce,_e)=>{ce&&t.store.getCommandSwitch(It.PROMPT_SENDER_WHEN_QUOTE_MESSAGE)&&E2(ce.senderUserId,De.value,!0),ce&&De.value&&De.value.focus(),at(()=>{y2()})});const Ye=ce=>{const _e=ce.target;c.value&&c.value.contains(_e)||_.value&&_.value.contains(_e)||L()},mt=()=>{r(),De.value&&h.value&&d.value&&u.value&&Go(De.value,h.value,d.value)},xs=ce=>{if(!ft.value)return;ce.data.some(nt=>{var as;return nt.target.messageUId===((as=ft.value)==null?void 0:as.messageUId)})&&(ft.value=null)};return lt(()=>{var _e;r(),window.addEventListener("click",Ye),window.addEventListener("resize",mt),De.value.addEventListener("paste",I2);const ce=((_e=pe.value)==null?void 0:_e.draft)||"";De.value.value=ce,l.value=ce,t.addEventListener(ge.CONVERSATION_SELECTED,Le),t.addEventListener(Z.SET_TEXTAREA_VALUE_EVENT,Ot),t.addEventListener(ge.MESSAGES_DELETED,xs)}),Mn(()=>{window.removeEventListener("click",Ye),window.removeEventListener("resize",mt),De.value.removeEventListener("paste",I2),t.removeEventListener(ge.CONVERSATION_SELECTED,Le),t.removeEventListener(ge.MESSAGES_DELETED,xs)}),(ce,_e)=>{const Xe=ve("rc-emoji-panel-provider"),nt=ve("rc-at-users-panel-provider"),as=ve("rc-input-reply-bar");return R(),D("div",Tm,[N(Ho)?(R(),xe(Xe,{key:0,class:"rc-input-emoji-panel",onInsertChat:_e[0]||(_e[0]=et=>T(et)),onSendImage:_e[1]||(_e[1]=et=>P(et))})):de("",!0),ms(Ie(nt,{onAtUser:V,onAtAll:_e[2]||(_e[2]=et=>N(fm)(N(De))),atAll:N(s),members:N(vn),style:{width:"100%","box-sizing":"border-box"}},null,8,["atAll","members"]),[[Ks,N(_a)]]),y("div",Im,[(R(!0),D(Ne,null,Lt(g.value,et=>(R(),D("img",{class:"rc-input-menu-button",key:et.id,src:E(et),alt:et.label,onMouseenter:Ft=>o.value=et.id,onMouseleave:_e[3]||(_e[3]=Ft=>o.value=null),onClick:Cs(Ft=>A(et,Ft),["stop"])},null,40,Rm))),128))]),y("div",{class:"rc-input-wrapper",ref_key:"main",ref:u},[N(ft)?(R(),xe(as,{key:0,class:"replay-bar",username:N(ev),desc:N(JE),thumbnail:N(XE),onCancel:_e[4]||(_e[4]=et=>ft.value=null)},null,8,["username","desc","thumbnail"])):de("",!0),y("div",wm,[y("div",{class:"input-text-container",ref_key:"inputContainer",ref:d},[y("textarea",{ref_key:"textarea",ref:De,class:"textarea",placeholder:i.value?"":N(a),id:"textarea",name:"textarea",enterkeyhint:i.value?"send":void 0,onKeyup:_e[5]||(_e[5]=(...et)=>N(C2)&&N(C2)(...et)),onKeydown:ie,onInput:_e[6]||(_e[6]=et=>K(et))},null,40,Mm),y("div",{ref_key:"hiddenDom",ref:h,contenteditable:"",class:"hidden-dom"},null,512)],512),y("button",{class:Fe(["rc-input-send-button",{disabled:!v.value}]),disabled:!v.value,onClick:te},[y("img",{src:v.value?N(rp):N(op),alt:"send"},null,8,bm),i.value?de("",!0):(R(),D("span",Lm,re(N(Ze)("input.send").value),1))],10,Om)]),ms(y("div",{class:"secondary-menu",ref_key:"secondarDOM",ref:c,onClick:_e[7]||(_e[7]=Cs(()=>{},["stop"]))},[(R(!0),D(Ne,null,Lt(p.value,et=>(R(),D("div",{key:et.id,class:"secondary-menu-item",onClick:Ft=>A(et,Ft)},[y("img",{src:et.icon,alt:"Icon"},null,8,xm),y("span",null,re(et.label),1)],8,Am))),128))],512),[[Ks,N(ga)]])],512)])}}}),[["styles",[`.rc-input-provider{width:100%;height:100%;display:flex;flex-direction:column;background-color:#fff;align-items:center;justify-content:center;position:relative;z-index:2;padding:0 12px;box-sizing:border-box}.rc-input-emoji-panel,.rc-input-at-prompt{float:left;width:100%;max-height:248px;border-bottom:1px solid #efefef;border-top:1px solid #efefef}.rc-input-top-buttons{width:100%;display:flex;flex-direction:row;align-items:center;padding:8px 12px;gap:8px;box-sizing:border-box}.rc-input-menu-button{width:30px;height:30px;cursor:pointer;flex-shrink:0}.rc-input-wrapper{width:100%;max-width:100%;display:flex;flex-direction:column;border:1px solid #E4E7ED;border-radius:20px;margin:0 0 12px;box-sizing:border-box;background-color:#fff;position:relative}.rc-input-inner-wrapper{display:flex;flex-direction:row;align-items:flex-start;padding:8px;gap:8px;box-sizing:border-box}.input-text-container{background:none;flex:1;font-size:14px;overflow:hidden;line-height:21px;min-height:21px;border:none;border-radius:0;margin:0;overflow-y:hidden;box-sizing:border-box}.textarea{border:none;outline:none;background:none;min-height:21px;height:36px;max-height:105px;box-sizing:border-box;padding:9px 10px;width:100%;resize:none;word-wrap:break-word;font-size:14px;line-height:21px;overflow-y:hidden;margin-top:4px}.textarea::-webkit-scrollbar{width:4px}.textarea::-webkit-scrollbar-track{background:transparent;border-radius:3px}.textarea::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:3px;transition:background .2s}.textarea::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.3)}.textarea{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) transparent}.hidden-dom{border:none;outline:none;background:none;line-height:21px;min-height:21px;height:21px;overflow:scroll;box-sizing:border-box;padding:0;width:100%;resize:none;font-size:14px;word-wrap:break-word;color:transparent;position:absolute;visibility:hidden}.rc-input-send-button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;padding:5px 16px;border:none;border-radius:30px;background-color:#ecf1ff;color:#0047ff;font-size:14px;cursor:pointer;flex-shrink:0;min-width:60px;height:28px;box-sizing:border-box;transition:background-color .2s,color .2s;margin:8px 0}.rc-input-send-button:hover:not(.disabled){background-color:#d0ddff}.rc-input-send-button.disabled{background-color:#f3f5fa;color:#ccc;cursor:not-allowed;border-radius:30px}.rc-input-send-button img{width:16px;height:16px;flex-shrink:0}.replay-bar{width:100%;padding:8px 8px 0;box-sizing:border-box}.secondary-menu{position:absolute;min-width:126px;background-color:#fff;border-radius:9px;box-shadow:0 0 4px #0000001a;padding:8px 4px;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;font-size:14px;color:#606060;z-index:1000}.secondary-menu-item{flex-direction:row;height:36px;width:100%;box-sizing:border-box;transition:background-color .2s;display:flex;align-items:center;font-size:12px;padding:5px 6px;border-radius:4px;cursor:pointer}.secondary-menu-item:hover{background-color:#d2e1fe}.secondary-menu-item img{width:18px;height:18px;margin-right:10px;flex-shrink:0}.secondary-menu-item span{white-space:nowrap}@media (max-width: 768px){.rc-input-provider{padding:0 8px}.rc-input-top-buttons{padding:8px 0;gap:6px}.rc-input-menu-button{width:28px;height:28px}.rc-input-wrapper{margin:0 0 8px;border-radius:20px}.rc-input-inner-wrapper{padding:6px;gap:6px}.rc-input-send-button{min-width:50px;font-size:12px}.rc-input-send-button span{display:none}}
|
|
368
|
+
`]]]),Um={class:"info"},Nm=["src"],Dm={class:"info-main"},Pm={class:"info-title-group"},Vm={class:"name"},Fm=["src"],$m={class:"member-count"},Hm={key:0,class:"typing-content"},Gm={class:"extension"},Bm=["src","onClick"],jm=Re(Te({__name:"conversation-detail-bar-provider.ce",props:{conversation:{type:Object,required:!0},showBack:{type:Boolean,default:!0}},setup(e){const t=e,s=me(()=>t.conversation.conversationType===f.ConversationType.GROUP),n=U(!1),i=()=>{n.value=gs()},o=()=>{var g;const C=Se();pe.value&&C.conversation.handleConversationDraft(pe.value,(g=De.value)==null?void 0:g.value),C.conversation.setOpenedConversation(null,!1)},r=Se(),a=r.store.getConversationExtension(),l=me(()=>a.filter(C=>!C.filter||C.filter(t.conversation))),c=C=>{r.emit(new ne(ge.CONVERSATION_EXTENSION_CLICK,{id:C.id,conversation:t.conversation}))},u=()=>{r.statistic(ci.CONVERSATION_NAVI_CLICK),r.emit(new ne(ge.CONVERSATION_NAVI_CLICK,{...t.conversation}),2)};let d=null;const h=U(!1),p=U(!1),_=U(Ze("conversation.detail.bar.typing").value),m=C=>{const g=C.status.findIndex(v=>pe.value&&Et(v,pe.value));if(g===-1)return;const{list:E}=C.status[g];E.length!==0&&(d&&(clearTimeout(d),d=null,h.value=!1,_.value=""),p.value=E.some(v=>v.messageType===f.MessageType.TEXT),_.value=p.value?Ze("conversation.detail.bar.typing").value:Ze("conversation.detail.bar.typing.audio").value,h.value=!0,d=setTimeout(()=>{h.value=!1,_.value=""},5e3))},b=C=>{h.value=!1},w=C=>{if(!pe.value||s.value)return;const g=C.data,E=r.userId;g.some(L=>Et(L,pe.value)&&L.senderUserId!==E)&&(d&&(clearTimeout(d),d=null),h.value=!1,_.value="")};return lt(()=>{i(),window.addEventListener("resize",i),f.addEventListener(f.Events.TYPING_STATUS,m),Se().addEventListener(ge.CONVERSATION_SELECTED,b),Se().addEventListener(Z.RECV_NEW_MESSAGES,w)}),Rt(()=>{window.removeEventListener("resize",i),f.removeEventListener(f.Events.TYPING_STATUS,m),Se().removeEventListener(ge.CONVERSATION_SELECTED,b),Se().removeEventListener(Z.RECV_NEW_MESSAGES,w)}),(C,g)=>{const E=ve("rc-icon-notification");return R(),D("div",{class:Fe(["rc-conversation-detail-bar",{"is-h5":n.value}])},[n.value&&e.showBack?(R(),D("div",{key:0,class:"back-button",onClick:o},[...g[0]||(g[0]=[y("span",{class:"back-icon"},"<",-1)])])):de("",!0),y("div",Um,[y("img",{onClick:u,class:"icon",src:e.conversation.portraitUri,alt:"Conversation Icon"},null,8,Nm),y("div",Dm,[y("div",Pm,[y("span",Vm,re(e.conversation.name),1),e.conversation.notificationLevel===5?(R(),xe(E,{key:0})):de("",!0),s.value?(R(),D(Ne,{key:1},[y("img",{class:"member-icon",src:N(dp),alt:"Group Members Icon"},null,8,Fm),y("span",$m,re(e.conversation.memberCount),1)],64)):de("",!0)])]),h.value&&!s.value?(R(),D("span",Hm,re(_.value),1)):de("",!0)]),y("div",Gm,[(R(!0),D(Ne,null,Lt(l.value,v=>(R(),D("img",{class:"extension-icon",src:v.icon,key:v.id,alt:"Extension Icon",onClick:L=>c(v)},null,8,Bm))),128))])],2)}}}),[["styles",[`.rc-conversation-detail-bar{width:100%;height:70px;display:flex;flex-direction:row;align-items:center;border-bottom:1px dashed #E4E7ED;position:relative;z-index:2;background-color:#fff}.info{display:flex;flex-direction:row;align-items:center;flex:1 1 auto;min-width:0}.info-main{flex:1 1 auto;min-width:0;overflow:hidden}.info-title-group{display:flex;align-items:center;min-width:0;max-width:100%}.icon{width:32px;height:32px;margin:0 10px 0 20px;flex-shrink:0}.name{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;color:#020814;font-weight:500}.member-icon{margin:0 4px 0 20px;width:12px;height:12px;flex-shrink:0}.member-count{font-size:12px;color:#bcbcbc;flex-shrink:0}.extension{margin:0 28px 0 10px;flex-shrink:0}.extension-icon{width:26px;height:26px;margin-right:10px;cursor:pointer}.typing-content{margin-left:5px;font-size:12px;color:#7c838e;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.back-button{width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-left:5px;font-weight:500;color:#000;flex-shrink:0}.is-h5 .icon{margin-left:10px}.is-h5 .extension{margin-right:12px}.is-h5 .typing-content{display:none}
|
|
369
|
+
`]]]);var hc=(e=>(e.LEFT_JUSTIFYING="left-justifying",e.LEFT_RIGHT="left-right",e))(hc||{});const R2={radius:20,layout:"left-right",backgroundColorForMyself:"#D2E1FE",backgroundColorForOthers:"#F3F5FA",textColorForMyself:"#020814",textColorForOthers:"#020814",showMyProfileInPrivateConversation:!0,showMyNameInPrivateConversation:!1,showMyProfileInGroupConversation:!0,showMyNameInGroupConversation:!1,showOthersProfileInPrivateConversation:!0,showOthersNameInPrivateConversation:!1,showOthersProfileInGroupConversation:!0,showOthersNameInGroupConversation:!0},qm=e=>({...e});class Km extends Ts{constructor(s){super(s);q(this,"messageBubbleCfg",{});this.setMessageBubbleCfg(R2)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this.setMessageBubbleCfg(R2)}cloneMessageBubbleCfg(){return qm(this.messageBubbleCfg)}setMessageBubbleCfg(s){this.messageBubbleCfg={...this.messageBubbleCfg,...s}}}var Qt=(e=>(e.REPLY="message.menu.item.reply",e.MULTI_CHOICE="message.menu.item.multi.choice",e.COPY="message.menu.item.copy",e.FORWARD="message.menu.item.forward",e.DELETE="message.menu.item.delete",e.SPEECH_TO_TEXT="message.menu.item.speech.to.text",e.CANCEL_SPEECH_TO_TEXT="message.menu.item.cancel.speech.to.text",e.RECALL="message.menu.item.recall",e))(Qt||{});const w2=[{id:"message.menu.item.recall",icon:W0,filter:e=>e.messageDirection===f.MessageDirection.SEND&&e.sentStatus!==f.SentStatus.FAILED&&e.sentStatus!==f.SentStatus.SENDING},{id:"message.menu.item.reply",icon:F0,filter:e=>[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.FILE,f.MessageType.RICH_CONTENT,f.MessageType.REFERENCE].includes(e.messageType)&&e.sentStatus!==f.SentStatus.SENDING&&e.sentStatus!==f.SentStatus.FAILED},{id:"message.menu.item.copy",icon:V0,filter:e=>(e.messageType===f.MessageType.TEXT||e.messageType===f.MessageType.REFERENCE)&&!!navigator.clipboard},{id:"message.menu.item.forward",icon:Jc,filter:e=>[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.FILE,f.MessageType.RICH_CONTENT,f.MessageType.HQ_VOICE,f.MessageType.VOICE,f.MessageType.COMBINE,f.MessageType.COMBINE_V2,f.MessageType.GIF,f.MessageType.SIGHT,f.MessageType.FILE,f.MessageType.REFERENCE].includes(e.messageType)&&e.sentStatus!==f.SentStatus.SENDING&&e.sentStatus!==f.SentStatus.FAILED},{id:"message.menu.item.multi.choice",icon:$0},{id:"message.menu.item.delete",icon:Yc,filter:e=>e.sentStatus!==f.SentStatus.SENDING}],ma=e=>e.map(t=>({...t}));class zm extends Ts{constructor(){super(...arguments);q(this,"_menu",ma(w2));q(this,"_speechToTextStore")}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._menu=ma(w2)}setSpeechToTextStore(s){this._speechToTextStore=s}getMenu(s){var l,c;const n=((l=f.getAppSettings())==null?void 0:l.isSpeechToTextEnabled)||!1,i=[f.SentStatus.SENDING,f.SentStatus.FAILED].includes(s.sentStatus),o=s.messageType===f.MessageType.HQ_VOICE,r=((c=this._speechToTextStore)==null?void 0:c.hasConverted(s.messageUId||""))||!1;let a=this._menu.filter(u=>u.id==="message.menu.item.recall"&&Date.now()-s.sentTime>this.ctx.allowedToRecallTime*1e3||s.conversationType===f.ConversationType.SYSTEM&&u.id!=="message.menu.item.copy"&&u.id!=="message.menu.item.delete"?!1:!u.filter||u.filter(s));return n&&o&&!i&&(r?a.push({id:"message.menu.item.cancel.speech.to.text",icon:Q0}):a.push({id:"message.menu.item.speech.to.text",icon:z0})),a}cloneMessageMenu(){return ma(this._menu)}setMessageMenu(s){this._menu=ma(s)}}const Qm={key:0,class:"checkbox"},Wm=["for"],Zm=["id","value"],Ym={class:"custom"},Jm=["src"],Xm=["data-message-uid","onMouseenter"],eE={class:"rc-kit-msg-bubble-status-row"},tE={key:0,class:"rc-kit-stt-converting"},sE={key:1,class:"rc-kit-stt-error"},nE={class:"rc-kit-stt-error-text"},iE={key:2,class:"rc-kit-stt-success"},oE={key:0,style:{padding:"5px"}},rE=450,aE=Re(Te({__name:"message-list-provider.ce",setup(e){const t=Se(),s=U(""),n=U({}),i=U({}),o=U({}),r=U({}),a=I=>n.value[I],l=I=>{const x=i.value[I]||t.speechToTextStore.getSTTText(I)||"";return x===""?Ce("message.speech.to.text.empty"):x},c=I=>{if(o.value[I])return!1;if(a(I))return!0;const H=t.speechToTextStore.getSTTText(I);return H?(n.value[I]="success",i.value[I]=H,!0):!1},u=I=>{const{messageUId:x,status:H,text:X,errorCode:J}=I.data;o.value[x]||(n.value[x]=H,console.log("onSpeechToTextStateChange",x,H,X,J),J&&(r.value[x]=J),H==="success"&&X&&(i.value[x]=X))},d=["time.format.sunday","time.format.monday","time.format.tueday","time.format.wedday","time.format.thurday","time.format.friday","time.format.satday"],h=I=>{const{year:x,month:H,day:X,weekDay:J}=gi(I),ae=(Date.now()-I)/1e3/60/60/24;let Ae=Ce("time.format.full",x,H,X);return new Date().toDateString()===new Date(I).toDateString()&&(Ae=Ce("time.format.today")),(new Date().toDateString()!==new Date(I).toDateString()&&ae<1||1<=ae&&ae<2)&&(Ae=Ce("time.format.yesterday")),2<=ae&&ae<7&&(Ae=Ce(d[J])),Ae},p=(I,x)=>typeof I=="string"?I:Number.isFinite(I.transactionId)?`tx-${I.transactionId}`:I.messageUId||`rc-kit-${x}`,_=me(()=>{const I=ke.value,x=[];for(let H=I.length-1;H>=0;H-=1){const X=I[H];x.unshift(X);const J=I[H-1];J?new Date(X.sentTime).toDateString()!==new Date(J.sentTime).toDateString()&&x.unshift(h(X.sentTime)):Tt||x.unshift(h(X.sentTime))}return x}),m=I=>{var x,H;return I.messageDirection===f.MessageDirection.SEND?Ea.value:((x=pe.value)==null?void 0:x.conversationType)===f.ConversationType.GROUP?vn.value.find(J=>J.userId==I.senderUserId)||{name:I.senderUserId,userId:I.senderUserId,portraitUri:(H=pe.value)==null?void 0:H.portraitUri}:{name:pe.value.name,userId:pe.value.targetId,portraitUri:pe.value.portraitUri}},b=I=>{const x=m(I);t.emit(new ne(ge.CONVERSATION_ICON_CLICK,{conversation:{conversationType:I.conversationType,targetId:I.targetId,channelId:I.channelId},profile:x}),2)},w=U(0);let C=0;const g=t.store.getCommandSwitch(It.FOCUS_ON_LATEST_MESSAGE);let E=0;const v=I=>I.messageUId?`uid:${I.messageUId}`:I.transactionId!==void 0?`tid:${I.transactionId}`:I.messageId!==void 0?`mid:${I.messageId}`:[I.conversationType,I.targetId,I.channelId||"",I.senderUserId,I.messageType,I.sentTime].join(":"),L=(...I)=>{const x=[];I.forEach(J=>{x.push(...J)});const H=new Set,X=[];for(let J=x.length-1;J>=0;J-=1){const ae=x[J],Ae=v(ae);H.has(Ae)||(H.add(Ae),X.unshift(ae))}return X},F=async(I,x)=>{const H={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId};if(x){const{code:bt,list:Wt,hasMore:Js}=await t.message.reqHistories(H,I-1,!1);bt===f.ErrorCode.SUCCESS&&(dt.value=Js,ke.value=L(Wt),await at(),ps())}const{scrollHeight:X}=V.value,{code:J,list:ae,hasMore:Ae}=await t.message.reqHistories(H,I,!0);return J===f.ErrorCode.SUCCESS&&(ke.value=L(ae,ke.value),Tt=Ae,await at(),ps(),x?V.value.scrollTop=V.value.scrollHeight-X:V.value.scrollTop=V.value.scrollHeight-V.value.offsetHeight),ke.value},$=async()=>{var Js,Vn;if(!pe.value)return;const{conversationType:I,targetId:x,channelId:H,unreadCount:X}=pe.value,J={conversationType:I,targetId:x,channelId:H};if(ke.value.length=0,E=0,Zs=null,Dn.value=X,f.electronExtension.enable()){const{data:ks}=await f.getFirstUnreadMessage(J);C=(ks==null?void 0:ks.sentTime)||0,g||(E=C)}const ae=!g&&E>0,Ae=await F(E,ae);if(g&&f.electronExtension.enable()&&X){const ks=X-Ae.length;w.value=ks<0?0:ks}const bt=Ae.length,Wt=((Js=Ae[bt-1])==null?void 0:Js.sentTime)||((Vn=pe.value.latestMessage)==null?void 0:Vn.sentTime)||Date.now();Dn.value?(await t.conversation.clearUnreadCountByTimestamp(J,Wt),await t.message.sendReadReceiptMessage(J,Ae)):f.electronExtension.enable()||await t.message.sendReadReceiptMessage(J,Ae)},A=(I,x)=>!0,k=U(),O=I=>{var ae,Ae,bt,Wt;const x=(ae=k.value)==null?void 0:ae.showMyProfileInGroupConversation,H=(Ae=k.value)==null?void 0:Ae.showMyProfileInPrivateConversation,X=(bt=k.value)==null?void 0:bt.showOthersProfileInGroupConversation,J=(Wt=k.value)==null?void 0:Wt.showOthersProfileInPrivateConversation;return I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.PRIVATE?!!H:I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.GROUP?!!x:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.PRIVATE?!!J:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.GROUP?!!X:!1},T=I=>{var ae,Ae,bt,Wt;const x=(ae=k.value)==null?void 0:ae.showMyNameInPrivateConversation,H=(Ae=k.value)==null?void 0:Ae.showMyNameInGroupConversation,X=(bt=k.value)==null?void 0:bt.showOthersNameInGroupConversation,J=(Wt=k.value)==null?void 0:Wt.showOthersNameInPrivateConversation;return I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.PRIVATE?!!x:I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.GROUP?!!H:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.PRIVATE?!!J:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.GROUP?!!X:!1},P=I=>{var x;return I.messageDirection===1&&((x=k.value)==null?void 0:x.layout)===hc.LEFT_RIGHT?"row-reverse":"row"},K=(I,x)=>{if(!k.value)return;const H=Fn(k.value.textColorForOthers),X=Fn(k.value.backgroundColorForOthers),J=Fn(k.value.textColorForMyself),ae=Fn(k.value.backgroundColorForMyself);let Ae=H,bt=X,Wt=`${k.value.radius}px`;return I.messageDirection===f.MessageDirection.SEND&&(Ae=J,bt=ae),[j.MessageType.IMAGE,j.MessageType.SIGHT,j.MessageType.GIF].includes(I.messageType)&&!I.quoteInfo&&(bt=bt+"00"),{color:Ae,backgroundColor:bt,borderRadius:Wt}},ee=I=>{var x;return I.messageDirection===1&&((x=k.value)==null?void 0:x.layout)==="left-right"},te=I=>{if(![j.SentStatus.SENDING,j.SentStatus.FAILED].includes(I.sentStatus))switch(I.messageType){case j.MessageType.IMAGE:t.emit(new ne(ge.MEDIA_MESSAGE_MODAL_EVENT,I));break;case j.MessageType.SIGHT:t.audioPlayer.pause(),t.emit(new ne(ge.MEDIA_MESSAGE_MODAL_EVENT,I));break;case j.MessageType.GIF:t.emit(new ne(ge.MEDIA_MESSAGE_MODAL_EVENT,I));break;case j.MessageType.COMBINE:case j.MessageType.COMBINE_V2:t.emit(new ne(ge.COMBINE_MESSAGE_MODAL_EVENT,I));break}},ie=U(),V=U(),Le=U(),Ot=U([]),Ye=on({left:0,top:0,display:"none"}),mt=wc(V),xs=U(),ce=U(!1),_e=()=>{ce.value=gs()},Xe=(I,x)=>{if(!ie.value)return 0;const H=ie.value.getBoundingClientRect(),X=x-H.top;return H.height-X<I?X-I:X},nt=(I,x)=>{if(!ie.value)return 0;const H=ie.value.getBoundingClientRect(),X=x-H.left;return H.width-X<I?X-I:X},as=async(I,x)=>{if(bs.value)return;Ht();let H=x;"detail"in x&&Array.isArray(x.detail)&&x.detail[0]instanceof MouseEvent&&(H=x.detail[0]),xs.value=I;let X=t.msgMenu.getMenu(I).map(J=>({id:J.id,icon:J.icon,label:Ce(J.id),message:I}));if(I.messageType===j.MessageType.HQ_VOICE&&I.messageUId){const J=c(I.messageUId),ae=X.findIndex(Ae=>Ae.id===Qt.SPEECH_TO_TEXT||Ae.id===Qt.CANCEL_SPEECH_TO_TEXT);ae!==-1&&(J?X[ae]={id:Qt.CANCEL_SPEECH_TO_TEXT,icon:X[ae].icon,label:Ce(Qt.CANCEL_SPEECH_TO_TEXT),message:I}:X[ae]={id:Qt.SPEECH_TO_TEXT,icon:X[ae].icon,label:Ce(Qt.SPEECH_TO_TEXT),message:I})}Ot.value.splice(0,Ot.value.length,...X),Ye.left=nt(Le.value.clientWidth,H.clientX),Ye.display="block",await at(),Ye.top=Xe(Le.value.clientHeight,H.clientY),Ye.left=nt(Le.value.clientWidth,H.clientX)},et=async(I,x)=>{switch(t.statistic(ci.CONVERSATION_MESSAGE_OPTION_CLICK),I){case Qt.COPY:const H=x.content.content||"";if(!navigator.clipboard||!H)return;navigator.clipboard.writeText(H),t.emit(new ne(ge.TOAST_EVENT,{message:t.i18n.format("toast.copy.success"),showIcon:!0}));break;case Qt.DELETE:N2([x]);break;case Qt.RECALL:nv([x]);break;case Qt.MULTI_CHOICE:bs.value=!0;break;case Qt.REPLY:ft.value=x;break;case Qt.FORWARD:U2(Hn.SINGLE,[x]);break;case Qt.SPEECH_TO_TEXT:if(x.messageUId)if(delete o.value[x.messageUId],t.speechToTextStore.hasConverted(x.messageUId)){const J=t.speechToTextStore.getSTTText(x.messageUId)||"";n.value[x.messageUId]="success",i.value[x.messageUId]=J}else n.value[x.messageUId]="converting",await t.speechToTextStore.requestForMessage(x);break;case Qt.CANCEL_SPEECH_TO_TEXT:x.messageUId&&(o.value[x.messageUId]=!0,delete n.value[x.messageUId],delete i.value[x.messageUId]);break;default:t.emit(new ne(ge.MESSAGE_MENU_ITEM_CLICK,{id:I,message:x}));break}},Ft=()=>{Ye.display="none"};cs(()=>Ye.display,I=>{I==="block"?mt.disableScroll():mt.enableScroll()});const Ki=(I,x)=>{I.sentStatus===j.SentStatus.FAILED?t.message.resendMessage(I):I.conversationType===f.ConversationType.GROUP&&(I.sentStatus===j.SentStatus.SENT||I.sentStatus===j.SentStatus.READ)&&t.readReceiptVersion===j.GroupReadReceiptVersion.V5&&(S.value=I.messageUId,tt(I,x))},Ws=U(!1),S=U(""),M=U(null),G=U([]),Y=U([]),z=U(void 0),W=U(void 0),le=U(!1),oe=U(!1),se=U(!1),Q=U(!1),fe=on({top:0,left:0,anchor:"top-right"}),ue=U(null),ye=U(0),Me=U(0),$e=I=>{var Zo,Ee;if(!V.value||!ie.value)return;if(!I)if((Zo=M.value)!=null&&Zo.messageUId){const Us=(Ee=V.value)==null?void 0:Ee.querySelector(`.rc-kit-msg-list-item[data-message-uid="${M.value.messageUId}"]`);if(Us){const Wi=Us.querySelector(".rc-kit-msg-sent-status")||Us.querySelector(".rc-kit-message-sent-status");if(Wi)ue.value=Wi,I=Wi;else{console.warn("[ReadReceipt] status element not found during update");return}}else{console.warn("[ReadReceipt] message item not found during update");return}}else return;const x=I.getBoundingClientRect(),H=ie.value.getBoundingClientRect(),X=x.top-H.top,J=x.bottom-H.top,ae=x.left-H.left,Ae=x.right-H.left,bt=H.height/2,Wt=344,Js=20,Vn=X<bt,ks=Ae+Js+Wt<=H.width;if(ae-Wt>=0)Vn?(fe.top=X,fe.left=ae,fe.anchor="top-right"):(fe.top=J,fe.left=ae,fe.anchor="bottom-right");else if(ks)Vn?(fe.top=X,fe.left=Ae+Js,fe.anchor="top-left"):(fe.top=J,fe.left=Ae+Js,fe.anchor="bottom-left");else{const Us=H.width/2;Vn?(fe.top=X,fe.left=Us,fe.anchor="top-center"):(fe.top=J,fe.left=Us,fe.anchor="bottom-center")}},tt=async(I,x)=>{var X;if(Ft(),!I.messageUId||I.conversationType!==f.ConversationType.GROUP){console.log("[ReadReceipt] handleShowReadReceiptModal: invalid message",{messageUId:I.messageUId,conversationType:I.conversationType});return}M.value=I,G.value=[],Y.value=[],z.value=void 0,W.value=void 0,le.value=!1,oe.value=!1,ye.value=0,Me.value=0,await at();let H=null;if(x&&x.target){const J=x.target;J&&typeof J.closest=="function"&&(H=J.closest(".rc-kit-msg-sent-status")||J.closest(".rc-kit-message-sent-status")),!H&&J&&(J.classList.contains("rc-kit-msg-sent-status")||J.classList.contains("rc-kit-message-sent-status"))&&(H=J)}if(!H){const J=(X=V.value)==null?void 0:X.querySelector(`.rc-kit-msg-list-item[data-message-uid="${I.messageUId}"]`);J&&(H=J.querySelector(".rc-kit-msg-sent-status")||J.querySelector(".rc-kit-message-sent-status"))}H?(ue.value=H,$e(H)):(console.warn("[ReadReceipt] status element not found, using default position"),fe.top=ie.value?ie.value.clientHeight/2:0,fe.left=ie.value?ie.value.clientWidth/2:0,fe.anchor="top-left"),await Promise.all([ze(I,!0),$t(I,!0)]),Ws.value=!0},ze=async(I,x=!1)=>{if(!se.value){se.value=!0;try{const H={conversationType:I.conversationType,targetId:I.targetId,channelId:I.channelId},X=15,{code:J,data:ae}=await t.message.getMessagesReadReceiptUsersByPageV5(H,I.messageUId,{pageToken:z.value,count:X,type:"read"});J===f.ErrorCode.SUCCESS&&ae?(G.value.push(...ae.users||[]),z.value=ae.pageToken,ye.value=ae.totalCount||0,le.value=ae.totalCount&&ae.totalCount>G.value.length):console.warn("[ReadReceipt] loadReadUsers: failed",{code:J,data:ae})}catch(H){console.warn("[ReadReceipt] loadReadUsers error:",H)}finally{se.value=!1}}},$t=async(I,x=!1)=>{if(!Q.value){Q.value=!0;try{const H={conversationType:I.conversationType,targetId:I.targetId,channelId:I.channelId},X=15,{code:J,data:ae}=await t.message.getMessagesReadReceiptUsersByPageV5(H,I.messageUId,{pageToken:W.value,count:X,type:"unread"});J===f.ErrorCode.SUCCESS&&ae?(Y.value.push(...ae.users||[]),W.value=ae.pageToken,Me.value=ae.totalCount||0,oe.value=ae.totalCount&&ae.totalCount>Y.value.length):console.warn("[ReadReceipt] loadUnreadUsers: failed",{code:J,data:ae})}catch(H){console.warn("[ReadReceipt] loadUnreadUsers error:",H)}finally{Q.value=!1}}},Ut=async(I,x)=>{if(!M.value)return;const H=I.scrollTop||0,X=I.scrollHeight||0,J=I.clientHeight||0;X-H-J<50&&(x==="read"&&le.value&&!se.value?await ze(M.value,!1):x==="unread"&&oe.value&&!Q.value&&await $t(M.value,!1))},hs=I=>{const[x,H]=I.detail;Ut(x,H)},Ht=()=>{console.log("[ReadReceipt] handleCloseReadReceiptModal"),Ws.value=!1,M.value=null,G.value=[],Y.value=[],z.value=void 0,W.value=void 0,le.value=!1,oe.value=!1,ye.value=0,Me.value=0,ue.value=null},Pn=I=>{Ws.value&&(I.target.closest(".read-receipt-popover")||Ht())};let Zs=null,Tt=!0,dt=U(!1);const Cn=U(1),zi=U(0),Qo=U(0),yc=U(),Wo=U(!0),Qi=U(!1),Sc=U(!1);let Ys=null;const Cv=()=>{Sc.value=!0,Qi.value=!0,Ys&&clearTimeout(Ys)},yv=()=>{Sc.value=!1,Ys&&clearTimeout(Ys),Ys=setTimeout(()=>{Qi.value=!1},1e3)},Sv=()=>{if(mt.isScrollDisabled||(Qi.value=!0,Ys&&clearTimeout(Ys),Sc.value||(Ys=setTimeout(()=>{Qi.value=!1},1e3)),!pe.value||ke.value.length===0))return;const I={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},{scrollHeight:x,scrollTop:H,clientHeight:X}=V.value;if(Wo.value=x-X-H<=100,Qo.value=V.value.scrollTop*100/X*Cn.value||0,H<=200&&!Zs){if(!Tt)return;Zs=setTimeout(async()=>{Tv(I,x)},1e3)}if(Ws.value&&$e(ue.value),dt.value&&x-H-X<=200&&!Zs){if(!dt.value)return;Zs=setTimeout(async()=>{Iv(I,X)},1e3)}},Tv=async(I,x)=>{const{hasMore:H,code:X,list:J}=await t.message.reqHistories(I,ke.value[0].sentTime,!0);if(X===f.ErrorCode.SUCCESS){if(ke.value=[...J,...ke.value],Tt=H,w.value){const ae=w.value-J.length;w.value=ae<0?0:ae}await at(),ps(),V.value.scrollTop=V.value.scrollHeight-x,ke.value.length>300&&(ke.value.splice(300),await at(),ps(),dt.value=!0),I.conversationType===f.ConversationType.GROUP&&f.electronExtension.enable()&&await t.message.sendReadReceiptMessage(I,J)}Zs=null},Iv=async(I,x)=>{const{hasMore:H,code:X,list:J}=await t.message.reqHistories(I,ke.value[ke.value.length-1].sentTime,!1);if(X===0){ke.value=[...ke.value,...J],dt.value=H,Dn.value&&(f.electronExtension.enable()&&(await t.conversation.clearUnreadCountByTimestamp(I,J[J.length-1].sentTime),await t.message.sendReadReceiptMessage(I,J)),!f.electronExtension.enable()&&!H&&(await t.conversation.clearUnreadCountByTimestamp(I,J[J.length-1].sentTime),await t.message.sendReadReceiptMessage(I,J))),await at(),ps(),Qo.value=V.value.scrollTop*100/x*Cn.value||0;const ae=yc.value.offsetHeight;ke.value.length>300&&(ke.value.splice(0,ke.value.length-300),await at(),ps(),V.value.scrollTop=V.value.scrollTop-(ae-yc.value.offsetHeight))}Zs=null},Rv=I=>{if(mt.isScrollDisabled||!V.value)return;const x=I.detail[0];V.value.scrollTop=x*V.value.scrollHeight/100},ps=()=>{if(!V.value)return;const I=V.value.offsetHeight**2/V.value.scrollHeight,x=Math.floor(I*100)/100,H=Math.max(x,20),X=x/(V.value.offsetHeight-x)/(H/(V.value.offsetHeight-H));Cn.value=Math.floor(X*100)/100||1,zi.value=x<V.value.offsetHeight?Math.floor(H):0},Tc=async()=>{if(await at(),!V.value)return;ps();const{scrollHeight:I,clientHeight:x}=V.value;V.value.scrollTop=Math.max(I-x,0),Wo.value=!0},wv=async()=>{if(!pe.value)return;const I={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},{code:x,list:H,hasMore:X}=await t.message.reqHistories(I,0,!0);if(x===f.ErrorCode.SUCCESS){ke.value.length=0,ke.value=H,Tt=X,dt.value=!1,await at(),ps();const{scrollHeight:J,offsetHeight:ae}=V.value;if(V.value.scrollTop=J-ae,Qo.value=V.value.scrollTop*100/ae*Cn.value,await t.conversation.clearUnreadCountByTimestamp(I,H[H.length-1].sentTime),f.electronExtension.enable()){const{data:Ae}=await f.getFirstUnreadMessage(I);Ae&&Ae.sentTime>H[0].sentTime&&H.unshift(_i(Ae))}await t.message.sendReadReceiptMessage(I,H)}},Mv=async()=>{if(!pe.value)return;const I={conversationType:pe.value.conversationType,channelId:pe.value.channelId,targetId:pe.value.targetId};w.value=0,dt.value=!0,ps();const x=await F(C,!0);x.length&&await t.message.sendReadReceiptMessage(I,x)},Ic=U(),Ov=cs(As,I=>{const x=Ls.value.length,H=[];I.forEach(X=>{const J=ke.value.findIndex(ae=>ae.messageUId?ae.messageUId==X:`${ae.transactionId}`==X);J>-1&&H.push(ke.value[J])}),Ls.value.splice(0,x,...H)},{deep:!0}),bv=()=>{if(!ie.value||!V.value||!Ic.value)return;const I=ie.value.getBoundingClientRect().top,x=Ic.value.getBoundingClientRect().top-I,H=V.value.querySelectorAll(".rc-kit-msg-list-box");for(let X=H.length-1;X>=1&&H[X].getBoundingClientRect().top-I>x;X--){const ae=H[X].querySelectorAll(".checkbox input");if(ae.length<=0)continue;Lv(ae)}Bo.value=!Bo.value},Lv=I=>{if(Bo.value)I[0].checked=!0,As.value.findIndex(H=>I[0].value===H)===-1&&As.value.unshift(I[0].value);else{I[0].checked=!1;const x=As.value.findIndex(H=>I[0].value===H);x>=0&&As.value.splice(x,1)}},j2=async I=>{I.data.forEach(x=>{const{target:H,recallMsg:X}=x,J=ke.value.findIndex(ae=>ae.transactionId===H.transactionId||ae.messageUId&&ae.messageUId===H.messageUId);if(J!==-1)if(X){ke.value.splice(J,1,X);const ae=As.value.findIndex(Ae=>Ae===X.content.messageUId);if(ae===-1)return;As.value.splice(ae,1)}else ke.value.splice(J,1)}),await at(),ps()},q2=I=>{const{message:x}=I.data,H=Sn(ke.value,X=>X.transactionId===x.transactionId);H!==-1&&ke.value.splice(H,1,{...x})},K2=I=>{I.data.forEach(x=>{if(Et(pe.value,x)){const H=Sn(ke.value,ae=>ae.messageUId?ae.messageUId===x.messageUId:ae.transactionId===x.transactionId);if(H===-1)return;const X=ke.value[H].sentTime,J=JSON.parse(JSON.stringify(x));if(x.sentTime!==X){ke.value.splice(H,1);const ae=Sn(ke.value,Ae=>Ae.sentTime<=x.sentTime);ke.value.splice(ae+1,0,J)}else ke.value.splice(H,1,J)}})},Av=I=>{t.emit(new ne(ge.MESSAGE_LINK_CLICK,I.detail[0]))},z2=async I=>{if(!pe.value)return;const x={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},H=[];if(I.data.forEach(async J=>{const ae=ke.value.findIndex(Ae=>Ae.messageUId===J.messageUId);Et(x,J)&&ae<0&&H.push(J)}),!H.length)return;if(!Wo.value||dt.value){dt.value=!0;return}ke.value=L(ke.value,H),Tc();const X=H.length;setTimeout(async()=>{const{code:J}=await t.conversation.clearUnreadCountByTimestamp(x,H[X-1].sentTime);J===f.ErrorCode.SUCCESS&&await t.message.sendReadReceiptMessage(x,H)},100)},Q2=async I=>{if(dt.value){const{code:x,list:H,hasMore:X}=await t.message.reqHistories({conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},0,!0);x===f.ErrorCode.SUCCESS&&(ke.value.length=0,ke.value=L(H),Tt=X,dt.value=!1,Tc());return}I.data.forEach(async x=>{Et(pe.value,x)&&(ke.value=L(ke.value,[x]),ke.value.length>300&&ke.value.splice(0,ke.value.length-300),Tc())})},W2=I=>{Tt=!0,dt.value=!1,bs.value=!1,w.value=0,$()};let Sa=null;const xv=(I,x)=>{let H=null;return window&&"ResizeObserver"in window&&I&&(H=new ResizeObserver(x),H.observe(I)),H},Ta=I=>{bs.value&&I.stopImmediatePropagation()},kv=()=>{V.value&&(ps(),Qo.value=V.value.scrollTop*100/V.value.offsetHeight*Cn.value||0)},Z2=async()=>{V.value&&(await at(),requestAnimationFrame(()=>{if(!V.value)return;const I=V.value,{scrollHeight:x,scrollTop:H,clientHeight:X}=I,J=x-X-H;(Wo.value||J<=rE)&&requestAnimationFrame(()=>{if(!V.value)return;const{scrollHeight:Ae,clientHeight:bt}=V.value;V.value.scrollTop=Math.max(Ae-bt,0),Wo.value=!0})}))};return lt(async()=>{window.addEventListener("click",Ft),window.addEventListener("click",Pn),_e(),window.addEventListener("resize",_e),window.addEventListener("resize",ps),t.addEventListener(ge.CONVERSATION_SELECTED,W2),t.addEventListener(Z.RECV_NEW_MESSAGES,z2),t.addEventListener(Z.INSERT_NEW_MESSAGES,Q2),t.addEventListener(ge.MESSAGES_DELETED,j2),t.addEventListener(Z.MESSAGE_STATE_CHANGE,K2),t.addEventListener(Z.FILE_UPLOAD_PROGRESS,q2),t.addEventListener(Z.SPEECH_TO_TEXT_STATE_CHANGE,u),t.addEventListener(Z.ADJUST_MESSAGE_LIST_SCROLL,Z2),$(),k.value=t.bubble.messageBubbleCfg,V.value&&(Sa=xv(V.value,kv))}),Rt(()=>{mt.enableScroll(),Ys&&clearTimeout(Ys),t.removeEventListener(ge.CONVERSATION_SELECTED,W2),t.removeEventListener(Z.RECV_NEW_MESSAGES,z2),t.removeEventListener(Z.INSERT_NEW_MESSAGES,Q2),t.removeEventListener(ge.MESSAGES_DELETED,j2),t.removeEventListener(Z.MESSAGE_STATE_CHANGE,K2),t.removeEventListener(Z.FILE_UPLOAD_PROGRESS,q2),t.removeEventListener(Z.SPEECH_TO_TEXT_STATE_CHANGE,u),t.removeEventListener(Z.ADJUST_MESSAGE_LIST_SCROLL,Z2),window.removeEventListener("click",Ft),window.removeEventListener("click",Pn),window.removeEventListener("resize",_e),window.removeEventListener("resize",ps),Ov(),V.value&&(Sa==null||Sa.unobserve(V.value))}),(I,x)=>{var Zo;const H=ve("rc-message-time"),X=ve("rc-grey-message-provider"),J=ve("rc-icon"),ae=ve("rc-message-sent-status"),Ae=ve("rc-quote-info-view-provider"),bt=ve("rc-message-bubble"),Wt=ve("rc-scrollbar-thumb-provider"),Js=ve("rc-message-list-menu-item"),Vn=ve("rc-message-select"),ks=ve("rc-message-location"),Y2=ve("rc-read-receipt-modal");return N(pe)?(R(),D("div",{key:0,class:"rc-kit-msg-list",ref_key:"messageViewportRef",ref:ie},[y("div",{class:"rc-kit-msg-list-scroll",ref_key:"messageListRef",ref:V,onScroll:Sv},[y("div",{ref_key:"messageBoxRef",ref:yc,style:{padding:"10px"}},[(R(!0),D(Ne,null,Lt(_.value,(Ee,Us)=>{var Wi;return R(),D("div",{class:"rc-kit-msg-list-box",key:p(Ee,Us)},[typeof Ee!="string"&&Ee.sentStatus!==10&&N(bs)&&!N(k2)(Ee.messageType)?(R(),D("div",Qm,[y("label",{for:Ee.messageUId||`${Ee.transactionId}`},[ms(y("input",{id:Ee.messageUId||`${Ee.transactionId}`,type:"checkbox","onUpdate:modelValue":x[0]||(x[0]=Zt=>ht(As)?As.value=Zt:null),value:Ee.messageUId||`${Ee.transactionId}`},null,8,Zm),[[Mo,N(As)]]),y("span",Ym,[y("img",{src:N(Xc),alt:"CHECKED_ICON"},null,8,Jm)])],8,Wm)])):de("",!0),typeof Ee=="string"?(R(),xe(H,{key:1,class:"rc-kit-time-section",time:Ee},null,8,["time"])):(R(),D(Ne,{key:2},[N(k2)(Ee.messageType)?(R(),xe(X,{key:0,class:"rc-kit-grey-message",onClickCapture:x[1]||(x[1]=Zt=>Ta(Zt)),message:Ee},null,8,["message"])):(R(),D("div",{key:1,class:"rc-kit-msg-list-item","data-message-uid":Ee.messageUId,style:rt({"flex-direction":P(Ee)}),onClickCapture:x[2]||(x[2]=Zt=>Ta(Zt)),onMouseenter:Zt=>s.value=Ee.messageUId,onMouseleave:x[3]||(x[3]=Zt=>s.value="")},[O(Ee)?(R(),xe(J,{key:0,class:"rc-kit-msg-avatar",url:m(Ee).portraitUri,width:32,height:32,style:rt({opacity:A(Ee,_.value[Us-1])?1:0}),radius:50,onClick:Zt=>b(Ee),online:!1},null,8,["url","style","onClick"])):de("",!0),y("div",{class:Fe(["rc-kit-msg-bubble-wrapper",{"rc-kit-msg-bubble-wrapper-right":ee(Ee)}])},[y("div",eE,[N(D2)(Ee)?(R(),xe(ae,{key:0,class:"rc-kit-msg-sent-status",type:0,message:Ee,onSentStatusClick:Zt=>Ki(Ee,Zt)},null,8,["message","onSentStatusClick"])):de("",!0),Ie(bt,{class:"rc-kit-msg-bubble",showname:T(Ee),align:ee(Ee),message:Ee,"message-uid":Ee.messageUId,profile:m(Ee),"is-h5":ce.value,"bubble-color-style":K(Ee,A(Ee,_.value[Us-1])),"menu-active":Ye.display==="block"&&((Wi=xs.value)==null?void 0:Wi.messageUId)===Ee.messageUId,"is-item-hover":s.value===Ee.messageUId,onSentStatusClick:Zt=>Ki(Ee),onMenuClick:Zt=>as(Ee,Zt),onContextmenu:Cs(Zt=>as(Ee,Zt),["prevent"])},{default:pt(()=>[Ee.quoteInfo?(R(),xe(Ae,{key:0,"quote-info":Ee.quoteInfo},null,8,["quote-info"])):de("",!0),(R(),xe(xr(N(va)(Ee.messageType)),{onLink:Av,onClick:Zt=>te(Ee),message:Ee},null,40,["onClick","message"]))]),_:2},1032,["showname","align","message","message-uid","profile","is-h5","bubble-color-style","menu-active","is-item-hover","onSentStatusClick","onMenuClick","onContextmenu"])]),Ee.messageType===N(j.MessageType).HQ_VOICE&&Ee.messageUId&&c(Ee.messageUId)?(R(),D("div",{key:0,class:Fe(["rc-kit-stt-status",{"rc-kit-stt-status-right":ee(Ee)}])},[a(Ee.messageUId)==="converting"?(R(),D("div",tE,[...x[6]||(x[6]=[y("div",{class:"rc-kit-stt-loading"},[y("div",{class:"rc-kit-stt-loading-dot"}),y("div",{class:"rc-kit-stt-loading-dot"}),y("div",{class:"rc-kit-stt-loading-dot"})],-1)])])):a(Ee.messageUId)==="error"?(R(),D("div",sE,[Ie(J,{url:N(i1),radius:50,width:16,height:16,class:"rc-kit-stt-error-icon"},null,8,["url"]),y("span",nE,re(r.value[Ee.messageUId]===N(f.ErrorCode).SPEECH_TO_TEXT_MESSAGE_CONTENT_UNSUPPORTED?N(Ze)("message.speech.to.text.unsupported"):N(Ze)("message.speech.to.text.failed")),1)])):a(Ee.messageUId)==="success"?(R(),D("div",iE,re(l(Ee.messageUId)),1)):de("",!0)],2)):de("",!0)],2)],44,Xm))],64))])}),128))],512)],544),zi.value?(R(),xe(Wt,{key:0,onHandlemove:Rv,onMouseenter:Cv,onMouseleave:yv,height:zi.value,move:Qo.value,scrollheight:(Zo=V.value)==null?void 0:Zo.scrollHeight,ratio:Cn.value,style:rt({opacity:Qi.value?1:0,transition:"opacity 0.5s",pointerEvents:Qi.value?"auto":"none"})},null,8,["height","move","scrollheight","ratio","style"])):de("",!0),ce.value&&Ye.display==="block"?(R(),D("div",{key:1,class:"rc-message-list-menu-mask",onClick:Ft})):de("",!0),y("div",{class:"rc-message-list-menu",ref_key:"messageMenuRef",ref:Le,style:rt({top:`${Ye.top}px`,left:`${Ye.left}px`,display:Ye.display})},[Ot.value.length>0?(R(),D("div",oE,[(R(!0),D(Ne,null,Lt(Ot.value,Ee=>(R(),xe(Js,{icon:Ee.icon,id:Ee.id,label:Ee.label,onClick:Us=>et(Ee.id,Ee.message)},null,8,["icon","id","label","onClick"]))),256))])):de("",!0)],4),N(bs)?(R(),xe(Vn,{key:2,class:"rc-kit-select",selected:!!N(Bo),onSelect:bv,ref_key:"DOMSelect",ref:Ic},null,8,["selected"])):de("",!0),N(Dn)>0&&N(dt)?(R(),xe(ks,{key:3,onClickCapture:x[4]||(x[4]=Ee=>Ta(Ee)),count:N(Dn),direction:1,onLocation:wv},null,8,["count"])):de("",!0),w.value>0&&N(g)?(R(),xe(ks,{key:4,onClickCapture:x[5]||(x[5]=Ee=>Ta(Ee)),count:w.value,direction:0,onLocation:Mv},null,8,["count"])):de("",!0),Ws.value?(R(),xe(Y2,{key:5,message:M.value,visible:Ws.value,"read-users":G.value,"unread-count":Me.value,"read-count":ye.value,"unread-users":Y.value,"read-loading":se.value,"unread-loading":Q.value,position:fe,onClose:Ht,onReadStatusScroll:hs},null,8,["message","visible","read-users","unread-count","read-count","unread-users","read-loading","unread-loading","position"])):de("",!0)],512)):de("",!0)}}}),[["styles",[`p{margin:0}ul,li{padding:0;margin:0;list-style:none}.rc-kit-msg-list{position:relative;overflow:hidden;height:100%;box-sizing:border-box}.rc-kit-msg-list-scroll{overflow-y:scroll;overflow-x:hidden;height:100%;scrollbar-width:none;box-sizing:border-box}.rc-kit-msg-list-scroll::-webkit-scrollbar{display:none}.rc-kit-msg-list-item{display:flex;flex:1;min-width:0}.rc-kit-grey-message{flex:1;text-align:center}.rc-kit-msg-avatar{padding:0 8px}.rc-kit-msg-bubble-wrapper{display:flex;flex-direction:column;max-width:70%;align-items:flex-start}.rc-kit-msg-bubble-wrapper-right{align-items:flex-end}.rc-kit-msg-bubble-status-row{display:flex;flex-direction:row;align-items:inherit;gap:4px;position:relative;min-width:0;max-width:100%}.rc-kit-msg-bubble{padding-bottom:10px;border-radius:8px 0;font-size:12px;line-height:16px;overflow:hidden;min-width:0;max-width:100%}@media (max-width: 768px){.rc-kit-msg-bubble{user-select:none;-webkit-user-select:none}}@media (min-width: 768px){.rc-kit-msg-sent-status{position:absolute;bottom:0;left:8px}}.rc-kit-msg-sent-status{width:18px;height:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding-bottom:10px}.rc-kit-stt-status{padding:9px;font-size:14px;line-height:18px;word-break:break-word;display:flex;flex-direction:column;box-sizing:border-box;border-radius:8px;background:#E3E7EF}.rc-kit-stt-status-right{align-items:flex-end;border-radius:8px}.rc-kit-stt-converting{display:flex;align-items:center}.rc-kit-stt-loading{display:block;font-size:0;color:#000;width:54px}.rc-kit-stt-loading .rc-kit-stt-loading-dot{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor;width:6px;height:6px;margin:4px;border-radius:100%;animation:ball-pulse 1s ease infinite}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(1){animation-delay:-.2s}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(2){animation-delay:-.1s}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(3){animation-delay:0ms}@keyframes ball-pulse{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.rc-kit-stt-error{display:flex;align-items:center;gap:4px}.rc-kit-stt-error-text{color:#1d2129}.rc-kit-stt-success{color:#333;min-height:18px;line-height:18px;white-space:pre-wrap;display:block}.rc-message-list-menu{position:absolute;top:0;left:0;z-index:3;background-color:#fff;border-radius:9px;box-shadow:0 5px 16px #00000014;min-width:95px}.rc-message-list-menu-mask{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%}.rc-kit-msg-list-box{display:flex;align-items:center}.rc-kit-time-section{width:100%}.rc-kit-msg-list-box .checkbox{margin-right:7px;align-self:flex-start}.rc-kit-msg-list-box .checkbox input[type=checkbox]{display:none}.rc-kit-msg-list-box .checkbox .custom{display:flex;width:16px;height:16px;border:1px solid #ABB8CB;border-radius:50%;background-color:#fff;font-size:0;justify-content:center;align-items:center;cursor:pointer}.rc-kit-msg-list-box .checkbox input[type=checkbox]:checked+.custom{background-color:#16d258;border-color:#16d258}.rc-kit-select{position:absolute;top:150px;left:0;width:100%;box-sizing:border-box;z-index:1}
|
|
370
|
+
`]]]),lE={class:"menu-list"},cE=["onClick"],uE=["src"],dE={class:"emoji-list"},fE=["onClick"],hE=["onClick"],pE=["src","width","height"],gE=Re(Te({__name:"emoji-panel-provider.ce",setup(e,{emit:t}){const s=t,n=Se(),i=U([]),o=n.input.cloneChatEmojiLibrary(),r=U(0),a=me(()=>[{icon:o.icon,index:0}].concat(...i.value.map((c,u)=>({icon:c.icon,index:u+1})))),l=me(()=>{if(r.value===0)return[];const c=i.value[r.value-1],{itemWidth:u,itemHeight:d,items:h}=c;return h.map(p=>({width:u,height:d,thumbnail:p.thumbnail,url:p.url,gif:p.gif}))});return lt(()=>{i.value=n.input.cloneImageEmojiLibraries()}),Rt(()=>{}),(c,u)=>(R(),D("div",{class:"emoji-pannel-root",onClick:u[0]||(u[0]=d=>d.stopPropagation())},[y("div",lE,[(R(!0),D(Ne,null,Lt(a.value,d=>(R(),D("div",{key:d.index,onClick:h=>r.value=d.index,class:Fe(d.index===r.value?"menu-button menu-button-selected":"menu-button")},[y("img",{src:d.icon,alt:"Emoji"},null,8,uE)],10,cE))),128))]),y("div",dE,[(R(!0),D(Ne,null,Lt(N(o).chats,d=>ms((R(),D("div",{class:"chat-emoji-item",onClick:h=>{s("insert-chat",d)}},[y("span",null,re(d),1)],8,fE)),[[Ks,r.value===0]])),256)),r.value>0?(R(!0),D(Ne,{key:0},Lt(l.value,(d,h)=>(R(),D("div",{class:"image-emoji-item",onClick:p=>s("send-image",d),key:h,style:rt(`width: ${d.width}px; height: ${d.height}px;`)},[y("img",{src:d.thumbnail,width:d.width,height:d.height,alt:"Emoji"},null,8,pE)],12,hE))),128)):de("",!0)])]))}}),[["styles",[`.emoji-pannel-root{display:flex;flex-direction:column;width:100%;height:100%}.menu-list{height:48px;display:flex;flex-direction:row;align-items:center;padding:0 8px}.menu-button{width:32px;height:32px;cursor:pointer;border-radius:5px;margin-left:10px}.menu-button-selected{background-color:#e9f0fb}.menu-button img{width:28px;height:28px;margin:2px}.emoji-list{flex:1;overflow:auto;padding:4px 8px}.chat-emoji-item{display:inline-block;font-size:22px;width:30px;height:30px;cursor:pointer;text-align:center;line-height:30px;border-radius:4px}.chat-emoji-item:hover,.image-emoji-item:hover{background-color:#e9f0fb}.image-emoji-item{display:inline-block;padding:6px;border-radius:4px;cursor:pointer}
|
|
371
|
+
`]]]),_E=Te({__name:"multi-choice-menu-provider.ce",setup(e){const t=()=>bs.value=!1,s=async i=>{if(Ls.value.length<=0)return;if(Ls.value.length>100){Se().alert("alert.forward.over.length");return}const o=[],r=[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.FILE,f.MessageType.RICH_CONTENT,f.MessageType.HQ_VOICE,f.MessageType.VOICE,f.MessageType.COMBINE,f.MessageType.COMBINE_V2,f.MessageType.GIF,f.MessageType.SIGHT,f.MessageType.FILE,f.MessageType.REFERENCE];if(i===Hn.MERGE){const l=r.length-1;r.splice(l,1)}if(Ls.value.sort((l,c)=>l.sentTime-c.sentTime),Ls.value.forEach((l,c)=>{r.includes(l.messageType)&&l.sentStatus!==f.SentStatus.SENDING&&l.sentStatus!==f.SentStatus.FAILED||o.push(c+1)}),o.length>0){Se().alert("alert.forward.not.supported",`${o.join(",")}`);return}await U2(i,Ls.value)&&t()},n=async()=>{if(Ls.value.length>100){Se().alert("alert.delete.over.length");return}await N2(Ls.value)};return(i,o)=>{const r=ve("rc-multi-choice-menu");return R(),xe(r,{count:N(YE),onForward:o[0]||(o[0]=a=>s(N(Hn).SINGLE)),onMergeForward:o[1]||(o[1]=a=>s(N(Hn).MERGE)),onCancel:t,onDelete:n},null,8,["count"])}}}),mE=["onClick"],EE=["src"],vE=Re(Te({__name:"at-users-panel-provider.ce",props:{members:{type:Array},atAll:{type:Boolean}},setup(e,{emit:t}){const s=Ze("conv.mentioned.all.msg"),n=t;return(i,o)=>(R(),D("div",{class:"at-users-panel",onClick:o[1]||(o[1]=r=>r.stopPropagation())},[e.atAll?(R(),D("div",{key:0,class:"div-item",onClick:o[0]||(o[0]=r=>n("at-all"))},re(N(s)),1)):de("",!0),(R(!0),D(Ne,null,Lt(e.members,r=>(R(),D("div",{class:"div-item",key:r.userId,onClick:a=>n("at-user",r.userId)},[r.portraitUri?(R(),D("img",{key:0,class:"icon",src:r.portraitUri,alt:"User Portrait"},null,8,EE)):de("",!0),y("span",null,re(r.nickname||r.name),1)],8,mE))),128))]))}}),[["styles",[`.at-users-panel{width:100%;align-items:center;max-height:124px;overflow:scroll;border-top:1px solid #efefef}.div-item{display:flex;flex-direction:row;align-items:center;padding:8px 20px;cursor:pointer;font-size:12px}.div-item:hover{background-color:#e9f0fb;border-radius:8px}.icon{margin-right:10px;width:24px;height:24px;border-radius:50%}
|
|
372
|
+
`]]]),CE=Te({__name:"hq-voice-message-provider.ce",props:{message:{type:Object},isQuote:{type:Boolean}},setup(e){const t=Se(),s=e,n=s.isQuote||!1,i=s.message,o=i.content,r=o.duration,a=o.remoteUrl,l=U(0),c=U(!1),u=i.messageDirection===f.MessageDirection.SEND,d=m=>{h(m.data)},h=m=>{const{status:b,progress:w,messageUId:C,transactionId:g}=m,{messageUId:E,transactionId:v}=i;if(E&&E===C||g&&g===v){c.value=b==="playing",l.value=w===100?0:w||0;return}l.value=0,c.value=!1},_=on({duration:r,isOwner:u,playing:c,progress:l,toggle:()=>{c.value?t.audioPlayer.pause():t.audioPlayer.play(a,s.message.messageUId,s.message.transactionId)}});return lt(()=>{t.addEventListener(Z.AUDIO_PLAY_EVENT,d);const m=t.audioPlayer.getCurrentState();h(m)}),Rt(()=>{t.removeEventListener(Z.AUDIO_PLAY_EVENT,d)}),(m,b)=>{const w=ve("rc-hq-voice-message");return R(),xe(w,{value:_,"is-quote":N(n)},null,8,["value","is-quote"])}}}),yE={class:"rc-kit-grey-message"},SE={class:"grey-message"},TE=Re(Te({__name:"grey-message-provider.ce",props:{message:{type:Object}},setup(e){const t=Ze("message.list.reedit"),s=e,n=U(""),i=U(""),o=U(0);let r=null;const a=U(!0),l=async()=>{if(!De.value)return;const c=De.value.value.length?`
|
|
373
|
+
${i.value}`:i.value;Se().dispatchEvent(new ne(Z.SET_TEXTAREA_VALUE_EVENT,c))};return sl(async()=>{var d;if(f.electronExtension.enable()){const{code:h,data:p}=await f.getMessage(s.message.messageUId);h===f.ErrorCode.SUCCESS&&p&&((d=p.content)!=null&&d.originalMessageContent)&&(n.value=p.content.originalObjectName||p.content.originalMessageContent.originalObjectName||"",i.value=p.content.recallContent||p.content.originalMessageContent.recallContent||"",o.value=p.content.recallTime||p.content.originalMessageContent.recallTime||"")}const c=Date.now()-o.value,u=Se().allowedToReEditTime;c>1e3*u&&(a.value=!1),!r&&n.value===f.MessageType.TEXT&&a.value&&(r=setTimeout(()=>{a.value=!1,clearTimeout(r),r=null},1e3*u-c))}),Rt(()=>{r&&(clearTimeout(r),r=null)}),(c,u)=>(R(),D("div",yE,[y("div",SE,[So(re(N(vc)(s.message))+" ",1),a.value&&n.value===N(f.MessageType).TEXT&&N(f.electronExtension).enable()?(R(),D("span",{key:0,class:"reedit",onClick:l},re(N(t)),1)):de("",!0)])]))}}),[["styles",[`.grey-message{display:inline-block;color:#41464f;margin:0 auto;padding:8px;background-color:#f3f5fa;border:none;border-radius:6px;font-size:12px;line-height:20px}.reedit{color:#337ecc;font-size:14px;font-weight:700;cursor:pointer;margin-left:3px}.reedit:hover{color:#09f}.rc-kit-grey-message{margin-bottom:10px}
|
|
374
|
+
`]]]),IE={class:"content"},RE={key:0,class:"marked"},wE={width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ME=["stroke-dasharray","stroke-dashoffset"],M2=8,OE=Re(Te({__name:"file-transfer-ctrl-provider.ce",props:{message:{type:Object},isQuote:{type:Boolean}},setup(e){const t=e,s=me(()=>t.isQuote?!1:t.message.messageType===f.MessageType.FILE&&t.message.sentStatus!==j.SentStatus.SENDING&&t.message.sentStatus!==j.SentStatus.FAILED),n=me(()=>t.message.file&&t.message.progress===-1),i=me(()=>t.message.file&&typeof t.message.progress=="number"&&t.message.progress>=0&&t.message.progress<100),o=Math.floor(2*Math.PI*M2),r=me(()=>(100-(t.message.progress||0))*o/100),a=()=>{Se().emit(new ne(ge.DOWNLOAD_LINK_EVENT,t.message))},l=()=>Se().message.cancelMessageSent(t.message),c=()=>Se().message.resendMessage(t.message);return(u,d)=>(R(),D("div",IE,[dn(u.$slots,"default"),s.value||n.value||i.value?(R(),D("div",RE,[dn(u.$slots,"marked")])):de("",!0),s.value?(R(),D("div",{key:1,class:"btn",onClick:Cs(a,["stop"])},[...d[0]||(d[0]=[$r('<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg"><circle opacity="0.5" cx="11.5437" cy="10.7852" r="7" fill="black"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M14.4617 9.54688L11.5749 14.5469L8.68817 9.54687L11.0749 9.54687L11.0749 6.66123L12.0749 6.66123L12.0749 9.54687L14.4617 9.54688Z" fill="white"></path><mask id="path-3-outside-1_2560_1087" maskUnits="userSpaceOnUse" x="1.74341" y="0.96875" width="20" height="20" fill="white"><rect fill="white" x="1.74341" y="0.96875" width="20" height="20"></rect><path d="M20.344 10.7691C20.344 15.6293 16.404 19.5694 11.5437 19.5694C6.68344 19.5694 2.74341 15.6293 2.74341 10.7691C2.74341 5.90878 6.68344 1.96875 11.5437 1.96875C16.404 1.96875 20.344 5.90878 20.344 10.7691ZM4.33424 10.7691C4.33424 14.7507 7.56203 17.9785 11.5437 17.9785C15.5254 17.9785 18.7532 14.7507 18.7532 10.7691C18.7532 6.78737 15.5254 3.55958 11.5437 3.55958C7.56203 3.55958 4.33424 6.78737 4.33424 10.7691Z"></path></mask><path d="M20.344 10.7691C20.344 15.6293 16.404 19.5694 11.5437 19.5694C6.68344 19.5694 2.74341 15.6293 2.74341 10.7691C2.74341 5.90878 6.68344 1.96875 11.5437 1.96875C16.404 1.96875 20.344 5.90878 20.344 10.7691ZM4.33424 10.7691C4.33424 14.7507 7.56203 17.9785 11.5437 17.9785C15.5254 17.9785 18.7532 14.7507 18.7532 10.7691C18.7532 6.78737 15.5254 3.55958 11.5437 3.55958C7.56203 3.55958 4.33424 6.78737 4.33424 10.7691Z" fill="white" fill-opacity="0.6"></path><path d="M20.344 10.7691C20.344 15.6293 16.404 19.5694 11.5437 19.5694C6.68344 19.5694 2.74341 15.6293 2.74341 10.7691C2.74341 5.90878 6.68344 1.96875 11.5437 1.96875C16.404 1.96875 20.344 5.90878 20.344 10.7691ZM4.33424 10.7691C4.33424 14.7507 7.56203 17.9785 11.5437 17.9785C15.5254 17.9785 18.7532 14.7507 18.7532 10.7691C18.7532 6.78737 15.5254 3.55958 11.5437 3.55958C7.56203 3.55958 4.33424 6.78737 4.33424 10.7691Z" stroke="white" stroke-opacity="0.2" stroke-width="1.04019" mask="url(#path-3-outside-1_2560_1087)"></path></svg>',1)])])):de("",!0),n.value?(R(),D("div",{key:2,class:"btn",onClick:Cs(c,["stop"])},[...d[1]||(d[1]=[$r('<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg"><circle opacity="0.5" cx="11.6465" cy="10.7852" r="10.7383" transform="rotate(-180 11.6465 10.7852)" fill="black"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M8.72876 12.0234L11.6155 7.02344L14.5023 12.0234L12.1155 12.0234L12.1155 14.9091L11.1155 14.9091L11.1155 12.0234L8.72876 12.0234Z" fill="white"></path><mask id="path-3-outside-1_2560_1183" maskUnits="userSpaceOnUse" x="1.44678" y="0.601561" width="20" height="20" fill="black"><rect fill="white" x="1.44678" y="0.601561" width="20" height="20"></rect><path d="M2.84616 10.8013C2.84616 5.94098 6.78619 2.00094 11.6465 2.00094C16.5067 2.00094 20.4468 5.94098 20.4468 10.8013C20.4468 15.6615 16.5067 19.6016 11.6465 19.6016C6.78619 19.6016 2.84616 15.6615 2.84616 10.8013ZM18.8559 10.8013C18.8559 6.81957 15.6282 3.59177 11.6465 3.59177C7.66478 3.59177 4.43699 6.81957 4.43699 10.8013C4.43699 14.7829 7.66478 18.0107 11.6465 18.0107C15.6282 18.0107 18.8559 14.7829 18.8559 10.8013Z"></path></mask><path d="M2.84616 10.8013C2.84616 5.94098 6.78619 2.00094 11.6465 2.00094C16.5067 2.00094 20.4468 5.94098 20.4468 10.8013C20.4468 15.6615 16.5067 19.6016 11.6465 19.6016C6.78619 19.6016 2.84616 15.6615 2.84616 10.8013ZM18.8559 10.8013C18.8559 6.81957 15.6282 3.59177 11.6465 3.59177C7.66478 3.59177 4.43699 6.81957 4.43699 10.8013C4.43699 14.7829 7.66478 18.0107 11.6465 18.0107C15.6282 18.0107 18.8559 14.7829 18.8559 10.8013Z" fill="black" fill-opacity="0.6"></path><path d="M2.84616 10.8013C2.84616 5.94098 6.78619 2.00094 11.6465 2.00094C16.5067 2.00094 20.4468 5.94098 20.4468 10.8013C20.4468 15.6615 16.5067 19.6016 11.6465 19.6016C6.78619 19.6016 2.84616 15.6615 2.84616 10.8013ZM18.8559 10.8013C18.8559 6.81957 15.6282 3.59177 11.6465 3.59177C7.66478 3.59177 4.43699 6.81957 4.43699 10.8013C4.43699 14.7829 7.66478 18.0107 11.6465 18.0107C15.6282 18.0107 18.8559 14.7829 18.8559 10.8013Z" stroke="white" stroke-opacity="0.2" stroke-width="1.04019" mask="url(#path-3-outside-1_2560_1183)"></path></svg>',1)])])):de("",!0),i.value?(R(),D("div",{key:3,class:"btn",onClick:Cs(l,["stop"])},[(R(),D("svg",wE,[d[2]||(d[2]=$r('<circle opacity="0.5" cx="11.605" cy="11.7227" r="10.7383" fill="black"></circle><mask id="path-2-outside-1_2560_1174" maskUnits="userSpaceOnUse" x="1.80469" y="1.90625" width="20" height="20" fill="black"><rect fill="white" x="1.80469" y="1.90625" width="20" height="20"></rect><path d="M20.4053 11.7066C20.4053 16.5668 16.4653 20.5069 11.605 20.5069C6.74472 20.5069 2.80469 16.5668 2.80469 11.7066C2.80469 6.84628 6.74472 2.90625 11.605 2.90625C16.4653 2.90625 20.4053 6.84628 20.4053 11.7066ZM4.39552 11.7066C4.39552 15.6882 7.62331 18.916 11.605 18.916C15.5867 18.916 18.8145 15.6882 18.8145 11.7066C18.8145 7.72487 15.5867 4.49708 11.605 4.49708C7.62331 4.49708 4.39552 7.72487 4.39552 11.7066Z"></path></mask><path d="M20.4053 11.7066C20.4053 16.5668 16.4653 20.5069 11.605 20.5069C6.74472 20.5069 2.80469 16.5668 2.80469 11.7066C2.80469 6.84628 6.74472 2.90625 11.605 2.90625C16.4653 2.90625 20.4053 6.84628 20.4053 11.7066ZM4.39552 11.7066C4.39552 15.6882 7.62331 18.916 11.605 18.916C15.5867 18.916 18.8145 15.6882 18.8145 11.7066C18.8145 7.72487 15.5867 4.49708 11.605 4.49708C7.62331 4.49708 4.39552 7.72487 4.39552 11.7066Z" fill="black" fill-opacity="0.6"></path><path d="M20.4053 11.7066C20.4053 16.5668 16.4653 20.5069 11.605 20.5069C6.74472 20.5069 2.80469 16.5668 2.80469 11.7066C2.80469 6.84628 6.74472 2.90625 11.605 2.90625C16.4653 2.90625 20.4053 6.84628 20.4053 11.7066ZM4.39552 11.7066C4.39552 15.6882 7.62331 18.916 11.605 18.916C15.5867 18.916 18.8145 15.6882 18.8145 11.7066C18.8145 7.72487 15.5867 4.49708 11.605 4.49708C7.62331 4.49708 4.39552 7.72487 4.39552 11.7066Z" stroke="white" stroke-opacity="0.2" stroke-width="1.04019" mask="url(#path-2-outside-1_2560_1174)"></path>',4)),y("circle",{class:"progress-bar",cx:"11.605",cy:"11.7227",r:M2,fill:"none",stroke:"white","stroke-width":"1.9","stroke-dasharray":N(o),"stroke-dashoffset":r.value,transform:"rotate(-90, 11.605, 11.7227)"},null,8,ME),d[3]||(d[3]=y("rect",{x:"13.905",y:"8.1875",width:"1.74414",height:"8.24933",transform:"rotate(45 13.905 8.1875)",fill:"white"},null,-1)),d[4]||(d[4]=y("rect",{x:"8.07178",y:"9.42188",width:"1.74414",height:"8.24933",transform:"rotate(-45 8.07178 9.42188)",fill:"white"},null,-1))]))])):de("",!0)]))}}),[["styles",[`.content{position:relative;width:100%;height:100%}.marked{position:absolute;top:0;left:0;width:100%;height:100%}.btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:22px;cursor:pointer}
|
|
375
|
+
`]]]),bE={key:0,class:"rc-kit-toast"},LE={class:"rc-kit-toast-content"},AE={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xE={class:"rc-kit-toast-text"},kE=Re(Te({__name:"toast-provider.ce",setup(e){const t=Se(),s=U(!1),n=U(""),i=U(!0);let o=null;const r=l=>{o&&(clearTimeout(o),o=null),n.value=l.message,i.value=l.showIcon!==!1,s.value=!0,o=setTimeout(()=>{s.value=!1,o=null},3e3)},a=l=>{r(l.data)};return lt(()=>{t.addEventListener(ge.TOAST_EVENT,a)}),Rt(()=>{o&&clearTimeout(o),t.removeEventListener(ge.TOAST_EVENT,a)}),(l,c)=>(R(),xe(Tl,{name:"toast-fade"},{default:pt(()=>[s.value?(R(),D("div",bE,[y("div",LE,[i.value?(R(),D("svg",AE,[...c[0]||(c[0]=[y("circle",{cx:"12",cy:"12",r:"12",fill:"#46DB7A"},null,-1),y("path",{d:"M7.24951 13.2507L10.2495 16.2507L17.2495 9.25073",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):de("",!0),y("span",xE,re(n.value),1)])])):de("",!0)]),_:1}))}}),[["styles",[`.rc-kit-toast[data-v-e1032a29]{position:absolute;top:70px;left:0;right:0;width:100%;height:46px;background-color:#c9f5d8;display:flex;align-items:center;justify-content:center;z-index:100}.rc-kit-toast-content[data-v-e1032a29]{display:flex;align-items:center;justify-content:center;gap:8px}.rc-kit-toast-text[data-v-e1032a29]{font-size:16px;color:#020814;line-height:20px}.toast-fade-enter-active[data-v-e1032a29]{transition:opacity .3s ease-in,transform .3s ease-in}.toast-fade-leave-active[data-v-e1032a29]{transition:opacity .3s ease-out,transform .3s ease-out}.toast-fade-enter-from[data-v-e1032a29],.toast-fade-leave-to[data-v-e1032a29]{opacity:0;transform:translateY(-10px)}.toast-fade-enter-to[data-v-e1032a29],.toast-fade-leave-from[data-v-e1032a29]{opacity:1;transform:translateY(0)}
|
|
376
|
+
`]],["__scopeId","data-v-e1032a29"]]),UE={class:"view-box"},NE={class:"user-name"},DE={class:"message-content"},PE={key:1},VE=Re(Te({__name:"quote-info-view-provider.ce",props:{quoteInfo:{type:Object}},setup(e){const t=e,s=me(()=>{var l,c,u,d;const a=t.quoteInfo.senderId;if(a===((l=Ea.value)==null?void 0:l.userId))return((c=Ea.value)==null?void 0:c.name)||a;if(((u=pe.value)==null?void 0:u.conversationType)===f.ConversationType.GROUP){const h=vn.value.find(p=>p.userId===a);return(h==null?void 0:h.name)||a}return((d=pe.value)==null?void 0:d.name)||a}),n=me(()=>{const{status:a}=t.quoteInfo;switch(a){case it.LOADING:return Ce("quote.status.loading");case it.DELETED:return Ce("quote.status.deleted");case it.RECALLED:return Ce("quote.status.recalled");case it.LOAD_ERROR:return Ce("quote.status.load-error");default:return""}}),i=me(()=>t.quoteInfo.quoteMessage?va(t.quoteInfo.quoteMessage.messageType):""),o=me(()=>t.quoteInfo.quoteMessage?va(t.quoteInfo.quoteMessage.messageType)!=="rc-unsupported-message":!1),r=me(()=>t.quoteInfo.quoteMessage?vc(t.quoteInfo.quoteMessage):"");return(a,l)=>(R(),D("div",UE,[l[0]||(l[0]=y("div",{class:"view-box-prefix"},null,-1)),y("div",NE,re(s.value)+":",1),y("div",DE,[e.quoteInfo.status!==N(it).LOADED?(R(),D(Ne,{key:0},[So(re(n.value),1)],64)):(R(),D(Ne,{key:1},[o.value?(R(),xe(xr(i.value),{key:0,message:e.quoteInfo.quoteMessage,"is-quote":!0},null,8,["message"])):(R(),D("span",PE,re(r.value),1))],64))])]))}}),[["styles",[`.view-box[data-v-f4ab7b38]{display:flex;align-items:center;padding:20px;font-size:12px;color:#020814;position:relative}.view-box .view-box-prefix[data-v-f4ab7b38]{background-color:#020814;width:1px;height:10px;flex-shrink:0}.view-box .user-name[data-v-f4ab7b38]{margin-left:8px;margin-right:8px;flex-shrink:0}.view-box .message-content[data-v-f4ab7b38]{flex:1;overflow:hidden;line-height:1;min-width:0;display:flex;align-items:center}.view-box .message-content[data-v-f4ab7b38]>*{max-width:100%;flex-shrink:1}.view-box .message-content>span[data-v-f4ab7b38]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.view-box[data-v-f4ab7b38]:after{content:"";position:absolute;bottom:0;left:20px;right:20px;height:1px;background-color:#0000001a}
|
|
377
|
+
`]],["__scopeId","data-v-f4ab7b38"]]),FE={class:"rc-kit-app-inner"},$E=Re(Te({__name:"conversation-detail-provider.ce",setup(e){O2();const t=U(!1),s=me(()=>L2.value),n=()=>{t.value=gs()},i=Ze("conversation.empty.desc"),o=me(()=>pe.value&&pe.value.conversationType===j.ConversationType.SYSTEM),r=U(0),a=U(0),l=Se().store.getCommandSwitch(It.SHOW_CONNECTION_STATUS),c=u=>{const{status:d,code:h}=u.data;r.value=d,a.value=h};return lt(()=>{n(),window.addEventListener("resize",n),Se().addEventListener(Z.CONNECTION_STATUS_CHANGE,c,this)}),Rt(()=>{window.removeEventListener("resize",n),Se().removeEventListener(Z.CONNECTION_STATUS_CHANGE,c,this)}),(u,d)=>{const h=ve("rc-connection-status"),p=ve("rc-conversation-empty"),_=ve("rc-conversation-detail-bar-provider"),m=ve("rc-toast-provider"),b=ve("rc-message-list-provider"),w=ve("rc-input-provider"),C=ve("rc-multi-choice-menu-provider");return R(),D("div",{class:Fe(["rc-kit-app-wrapper-right",{"is-h5":t.value}])},[y("div",FE,[Ie(h,{visible:r.value!==N(j.RCConnectionStatus).CONNECTED&&N(l),status:r.value,code:a.value},null,8,["visible","status","code"]),N(pe)?(R(),D(Ne,{key:1},[Ie(_,{conversation:N(pe),"show-back":s.value},null,8,["conversation","show-back"]),Ie(m),Ie(b,{class:"rc-kit-msg-list"}),ms(Ie(w,{conversation:N(pe)},null,8,["conversation"]),[[Ks,!N(bs)&&!o.value]]),N(bs)?(R(),xe(C,{key:0})):de("",!0)],64)):(R(),xe(p,{key:0,style:{width:"100%",height:"100%"},desc:N(i)},null,8,["desc"]))])],2)}}}),[["styles",[`:host{display:block;height:100%}.rc-kit-app-wrapper-right{width:100%;height:100%;position:relative}.rc-kit-app-inner{width:100%;height:100%;min-width:600px;display:flex;flex-direction:column}.rc-kit-app-wrapper-right.is-h5 .rc-kit-app-inner{min-width:350px}.rc-kit-msg-list{flex:1 1 auto;overflow:hidden;background-color:#fff;position:relative}.rc-kit-app-inner{position:relative}.camera-screen{flex:1 auto}
|
|
378
|
+
`]]]),HE={key:0,class:"rc-kit-app-conv-bar"},GE={class:"bar-content"},BE={class:"bar-title"},jE={class:"rc-kit-app-conv"},qE=Re(Te({__name:"conversation-list-container-provider.ce",setup(e){O2();const t=U(!1),s=()=>{t.value=gs()},n=me(()=>b2.value);return lt(()=>{s(),window.addEventListener("resize",s)}),Rt(()=>{window.removeEventListener("resize",s)}),(i,o)=>{const r=ve("rc-conversation-list-provider");return R(),D("div",{class:Fe(["rc-kit-app-wrapper-left",{"is-h5":t.value}])},[t.value&&n.value?(R(),D("div",HE,[y("div",GE,[y("span",BE,re(N(gc)||N(Ce)("conversation.list.bar.title")),1)])])):de("",!0),y("div",jE,[Ie(r)])],2)}}}),[["styles",[`:host{display:block;height:100%}.rc-kit-app-wrapper-left{min-width:312px;width:312px;height:100%;display:flex;flex-direction:column}.rc-kit-app-wrapper-left.is-h5{min-width:0;width:100%}.bar-content{width:100%;height:68px;display:flex;flex-direction:row;align-items:center;position:relative;z-index:2;background-color:#fff;border-bottom:1px solid #efefef}.bar-title{font-size:16px;font-weight:500;color:#000;margin:0 20px}.rc-kit-app-conv{flex:auto;overflow:hidden}
|
|
379
|
+
`]]]),KE=Re(Te({__name:"rc-imkit-app.ce",setup(e){const t=U(!1),s=me(()=>pe.value!==null),n=()=>{t.value=gs()};return lt(()=>{n(),window.addEventListener("resize",n)}),Rt(()=>{window.removeEventListener("resize",n)}),(i,o)=>{const r=ve("rc-conversation-list-container-provider"),a=ve("rc-conversation-detail-provider");return R(),D("div",{class:Fe(["rc-kit-app",{"is-h5":t.value}])},[!t.value||!s.value?(R(),xe(r,{key:0,class:"list"})):de("",!0),!t.value||s.value?(R(),xe(a,{key:1,class:"detail"})):de("",!0)],2)}}}),[["styles",[`:host{display:block;height:100%}.rc-kit-app{width:100%;height:100%;display:flex;flex-direction:row;position:relative}.rc-kit-app.is-h5{flex-direction:column}.detail{flex:1 auto;overflow:hidden}.list{border-right:1px solid #E4E7ED}.rc-kit-app.is-h5 .list{border-right:none;border-bottom:1px solid #E4E7ED;height:100%}
|
|
380
|
+
`]]]),je={GREY_MESSAGE_PROVIDER:"rc-grey-message-provider",SCROLLBAR_PROVIDER:"rc-scrollbar-provider",SCROLLBAR_THUMB_PROVIDER:"rc-scrollbar-thumb-provider",MODAL_PROVIDER:"rc-modal-provider",MODAL_CONFIRM_PROVIDER:"rc-modal-confirm-provider",MODAL_ALERT_PROVIDER:"rc-modal-alert-provider",MODAL_FORWARDING_PROVIDER:"rc-modal-forwarding-provider",MODAL_DELETE_MESSAGE_PROVIDER:"rc-modal-delete-message-provider",MODAL_MEDIA_MESSAGE_PROVIDER:"rc-modal-media-message-provider",MODAL_COMBINE_MESSAGE_PROVIDER:"rc-modal-combine-message-provider",MODAL_TAKE_PHOTO_PROVIDER:"rc-modal-take-photo-provider",CONVERSATION_LIST_CONTAINER_PROVIDER:"rc-conversation-list-container-provider",CONVERSATION_LIST_PROVIDER:"rc-conversation-list-provider",CONVERSATION_DETAIL_PROVIDER:"rc-conversation-detail-provider",InputProvider:"rc-input-provider",MESSAGLISTPROVIDER:"rc-message-list-provider",CONVERSATION_DETAIL_BAR_PROVIDER:"rc-conversation-detail-bar-provider",EMOJI_PANEL_PROVIDER:"rc-emoji-panel-provider",MULTI_CHOICE_MENU_PROVIDER:"rc-multi-choice-menu-provider",AT_USERS_PANEL_PROVIDER:"rc-at-users-panel-provider",HQ_VOICE_MESSAGE_PROVIDER:"rc-hq-voice-message-privider",FileTransferCtrlProvider:"rc-file-transfer-ctrl-provider",APP_PROVIDER:"rc-imkit-app-provider",TOAST_PROVIDER:"rc-toast-provider",QUOTE_INFO_VIEW_PROVIDER:"rc-quote-info-view-provider"},zE={[je.GREY_MESSAGE_PROVIDER]:TE,[je.SCROLLBAR_PROVIDER]:am,[je.SCROLLBAR_THUMB_PROVIDER]:lm,[je.MODAL_PROVIDER]:j9,[je.MODAL_CONFIRM_PROVIDER]:W9,[je.MODAL_ALERT_PROVIDER]:e7,[je.MODAL_FORWARDING_PROVIDER]:m7,[je.MODAL_DELETE_MESSAGE_PROVIDER]:S7,[je.MODAL_MEDIA_MESSAGE_PROVIDER]:k7,[je.MODAL_TAKE_PHOTO_PROVIDER]:K7,[je.MODAL_COMBINE_MESSAGE_PROVIDER]:rm,[je.CONVERSATION_LIST_PROVIDER]:F9,[je.CONVERSATION_DETAIL_PROVIDER]:$E,[je.CONVERSATION_LIST_CONTAINER_PROVIDER]:qE,[je.InputProvider]:km,[je.MESSAGLISTPROVIDER]:aE,[je.CONVERSATION_DETAIL_BAR_PROVIDER]:jm,[je.EMOJI_PANEL_PROVIDER]:gE,[je.MULTI_CHOICE_MENU_PROVIDER]:_E,[je.AT_USERS_PANEL_PROVIDER]:vE,[je.HQ_VOICE_MESSAGE_PROVIDER]:CE,[je.FileTransferCtrlProvider]:OE,[je.APP_PROVIDER]:KE,[je.TOAST_PROVIDER]:kE,[je.QUOTE_INFO_VIEW_PROVIDER]:VE};let Ke;const pc=U(""),O2=()=>{pc.value=Se().userId,yr($o.CURRENT_USER_ID,pc),yr($o.LANGUAGE,oo(li))},b2=U(!0),L2=U(!0);let gc=U(void 0);const pe=U(null),De=U(),Dn=U(0),vn=U([]),Ea=U(),QE=async e=>{const{status:t}=e.data;if(t===f.RCConnectionStatus.CONNECTED){const s=f.getCurrentUserId(),n=await Ke.appData.requestUserProfiles([s]);Ea.value=n[0]}},WE=async e=>{var r;const t=(r=e.data)==null?void 0:r.conversation;if(pe.value=t||null,vn.value.length=0,Se().audioPlayer.pause(),!t)return;const{conversationType:s,targetId:n}=t;if(s!==j.ConversationType.GROUP)return;const i=await Ke.appData.reqGroupMembers(n);if(i.length===0)return;const o=await Ke.appData.requestUserProfiles(i.map(a=>a.userId));!pe.value||!Et(t,pe.value)||vn.value.push(...o.filter(a=>a.userId!==Ke.userId).map(a=>{const l=i.findIndex(c=>c.userId===a.userId);return{userId:a.userId,nickname:i[l].nickname,name:a.name,portraitUri:a.portraitUri}}))},A2=async()=>{pe.value=null,De.value&&(De.value.value=""),Dn.value=0,vn.value=[],pc.value=Se().userId};function ZE(e){Ke=e,e.logger,Ke.addEventListener(ge.CONVERSATION_SELECTED,WE),Ke.addEventListener(Z.CONNECTION_STATUS_CHANGE,QE),Ke.addEventListener(Z.DESTROY_USER_CACHE,A2),Ke.addEventListener(Z.CONVERSATION_BAR_SWITCH_CHANGE,t=>{b2.value=t.data}),Ke.addEventListener(Z.CONVERSATION_DETAIL_BACK_SWITCH_CHANGE,t=>{L2.value=t.data}),Ke.addEventListener(Z.CONVERSATION_BAR_TITLE_CHANGE,t=>{gc.value=t.data,console.log("conversationBarTitle====",gc.value)}),tv(Ke)}const Se=()=>Ke,xt=U([]),ke=U([]),bs=U(!1),Ls=U([]),As=U([]),Bo=U(!0);cs(bs,()=>{Ls.value=[],As.value=[],Bo.value=!0});const YE=me(()=>Ls.value.length),ft=U(null),x2=e=>{const t=e.messageType;if(t===j.MessageType.TextMessage||t===j.MessageType.REFERENCE)return e.content.content;let s=`message-type.${t}`;return a_(s)||(s="message-type.unknown"),Ze(s).value},JE=me(()=>{if(!ft.value)return"";const e=x2(ft.value);return ft.value.messageType===j.MessageType.FILE?e+` ${ft.value.content.name}`:e}),XE=me(()=>{if(!ft.value)return null;const{messageType:e,content:t}=ft.value;switch(e){case j.MessageType.IMAGE:case j.MessageType.SIGHT:return`data:image/png;base64,${t.content}`}return null}),ev=me(()=>ft.value?Ke.appData.getUserProfile(ft.value.senderUserId).name:""),fi=(e,t)=>{let s=document.body;e.modalContainerId&&document.getElementById(e.modalContainerId)&&(s=document.getElementById(e.modalContainerId)),s.appendChild(t)},tv=e=>{e.addEventListener(ge.CONFIRM_EVENT,t=>{const s=document.createElement(je.MODAL_CONFIRM_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult(!1),s.remove()}),s.addEventListener("confirm",()=>{t.sendResult(!0),s.remove()}),fi(e,s)}),e.addEventListener(ge.ALERT_EVENT,t=>{const s=document.createElement(je.MODAL_ALERT_PROVIDER);s.addEventListener("cancel",n=>{s.remove()}),fi(e,s)}),e.addEventListener(ge.FORWARDING_EVENT,t=>{const s=document.createElement(je.MODAL_FORWARDING_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult({type:Tn.CANCEL}),s.remove()}),s.addEventListener("confirm",n=>{t.sendResult({type:Tn.CONFIRM,list:n.detail[0].list}),s.remove()}),fi(e,s)}),e.addEventListener(ge.DELETE_MESSAGE_MODAL_EVENT,t=>{const s=document.createElement(je.MODAL_DELETE_MESSAGE_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult({type:Tn.CANCEL}),s.remove()}),s.addEventListener("confirm",n=>{t.sendResult({type:Tn.CONFIRM}),s.remove()}),fi(e,s)}),e.addEventListener(ge.MEDIA_MESSAGE_MODAL_EVENT,t=>{var i,o,r,a;const s=document.createElement(je.MODAL_MEDIA_MESSAGE_PROVIDER);s.addEventListener("cancel",l=>{s.remove()}),s.addEventListener("download",l=>{e.emit(new ne(ge.DOWNLOAD_LINK_EVENT,t.data))});const n=((i=t.data.content)==null?void 0:i.sightUrl)||((o=t.data.content)==null?void 0:o.imageUri)||((r=t.data.content)==null?void 0:r.remoteUrl)||((a=t.data.content)==null?void 0:a.fileUrl);s.setAttribute("url",n),s.setAttribute("user-id",t.data.senderUserId),s.setAttribute("sent-time",`${t.data.sentTime}`),s.setAttribute("message-type",`${t.data.messageType}`),s.setAttribute("message-uid",`${t.data.messageUId}`),s.setAttribute("content",`${t.data.content.content}`),fi(e,s)}),e.addEventListener(ge.COMBINE_MESSAGE_MODAL_EVENT,t=>{const s=document.createElement(je.MODAL_COMBINE_MESSAGE_PROVIDER);s.addEventListener("cancel",r=>{e.audioPlayer.pause(),s.remove()}),s.addEventListener("download",r=>{e.emit(new ne(ge.DOWNLOAD_LINK_EVENT,r.detail[0]))});const n=t.data.content.remoteUrl||"";s.setAttribute("url",n);const i=t.data.content||{},o=t.data.messageType||j.MessageType.COMBINE_V2;s.setAttribute("content",JSON.stringify(i)),s.setAttribute("type",o),s.setAttribute("message-uid",`${t.data.messageUId}`),fi(e,s)}),e.addEventListener(ge.TAKE_PHOTO_MODAL_EVENT,t=>{const s=document.createElement(je.MODAL_TAKE_PHOTO_PROVIDER);s.addEventListener("cancel",n=>{s.remove()}),fi(e,s)}),e.addEventListener(ge.MESSAGE_LINK_CLICK,t=>{if(t.data.type==="mail"){location.href=`mailto:${t.data.address}`;return}window.open(t.data.address)}),e.addEventListener(Z.GROUP_MEMBERS_UPDATE,async t=>{if(!pe.value)return;const{groupId:s,members:n}=t.data,{conversationType:i,targetId:o}=pe.value;if(i!==j.ConversationType.GROUP||o!==t.data.groupId)return;const r=await Ke.appData.requestUserProfiles(n.map(a=>a.userId));!pe.value||pe.value.conversationType!==j.ConversationType.GROUP||pe.value.targetId!==s||vn.value.splice(0,vn.value.length,...r.filter(a=>a.userId!==Ke.userId).map((a,l)=>({userId:a.userId,nickname:n[l].nickname,name:a.name,portraitUri:a.portraitUri})))}),e.addEventListener(Z.CONVERSATION_ITEM_CHANGE,t=>{if(!pe.value)return;const s=t.data.find(n=>Et(n,pe.value));s&&(pe.value={...pe.value,...s})})},_c={[j.MessageType.TEXT]:Pe.TEXT_MESSAGE,[j.MessageType.IMAGE]:Pe.IMAGE_MESSAGE,[j.MessageType.SIGHT]:Pe.SIGHT_MESSAGE,[j.MessageType.FILE]:Pe.FILE_MESSAGE,[j.MessageType.REFERENCE]:Pe.REFERENCE_MESSAGE,[j.MessageType.COMBINE]:Pe.COMBINE_V2_MESSAGE,[j.MessageType.COMBINE_V2]:Pe.COMBINE_V2_MESSAGE,[j.MessageType.HQ_VOICE]:je.HQ_VOICE_MESSAGE_PROVIDER,[j.MessageType.GIF]:Pe.GIF_MESSAGE},mc=new Map,Ec=(e,t)=>{mc.set(e,t)};Ec("RC:RcCmd",e=>{if(console.log("message====",e),e.senderUserId===Ke.userId)return Ce("message.list.recall.by.self");const t=Ke.appData.getUserProfile(e.senderUserId).name;return Ce("message.list.recall.by.other",t)}),Ec("RC:RcNtf",e=>{if(e.senderUserId===Ke.userId)return Ce("message.list.recall.by.self");const t=Ke.appData.getUserProfile(e.senderUserId).name;return Ce("message.list.recall.by.other",t)});const sv=(e,t)=>{_c[e]=t},va=e=>_c[e]||"rc-unsupported-message",k2=e=>!_c[e],U2=async(e,t)=>{const s=new ne(ge.FORWARDING_EVENT,e);Ke.emit(s);const{type:n,list:i}=await s.awaitResult();if(n===Tn.CANCEL||!(i instanceof Array)||i.length===0)return!1;const o=i.map(r=>({conversationType:r.conversationType,targetId:r.targetId,channelId:r.channelId}));return e===Hn.SINGLE?o.forEach(r=>Ke.message.forward(r,t.slice())):o.forEach(r=>Ke.message.sendCombineMessage(r,t.slice())),Ke.emit(new ne(ge.TOAST_EVENT,{message:Ke.i18n.format("toast.forward.success"),showIcon:!0})),!0},N2=async e=>{if(e.length===0)return;const t=e[0],s=new ne(ge.DELETE_MESSAGE_MODAL_EVENT,{messages:e});Ke.emit(s);const{type:n}=await s.awaitResult();n!==Tn.CANCEL&&(Ke.message.deleteMessages(t,e,!1),bs.value=!1)},nv=async e=>{if(e.length===0)return;const t={conversationType:e[0].conversationType,targetId:e[0].targetId,channelId:e[0].channelId};Ke.message.deleteMessages(t,e,!0)},D2=e=>{if(!e||e.messageType===j.MessageType.RECALL||e.messageType===j.MessageType.RECALL_NOTIFICATION_MESSAGE)return!1;const t=e.senderUserId===Ke.userId;return!!(Ke.store.getCommandSwitch(It.SHOW_MESSAGE_STATE)&&t||(e.sentStatus===j.SentStatus.FAILED||e.sentStatus===j.SentStatus.SENDING)&&t)},vc=e=>{if(!e)return" ";const{messageType:t,content:s,senderUserId:n}=e;if(t===j.MessageType.TEXT||t===j.MessageType.REFERENCE)return s.content||" ";if(t===j.MessageType.RECALL||t===j.MessageType.RECALL_NOTIFICATION_MESSAGE){if(n===Ke.userId)return Ce("message.list.recall.by.self");const r=Ke.appData.getUserProfile(n).name;return Ce("message.list.recall.by.other",r)}if([j.MessageType.IMAGE,j.MessageType.GIF,j.MessageType.VOICE,j.MessageType.HQ_VOICE,j.MessageType.FILE,j.MessageType.SIGHT,j.MessageType.COMBINE,j.MessageType.COMBINE_V2].includes(t)){const r=`message-type.${t}`;return Ce(r)}if(!mc.has(t))return Ce("message-type.unknown");const o=mc.get(t);return me(()=>o(e,li.value)).value};function P2(e){return{messageUId:e.messageUId,objectName:e.messageType,senderId:e.senderUserId,status:it.LOADED,quoteMessage:e}}const jo=30;class iv extends Ts{constructor(s){super(s);q(this,"_sendQueue");q(this,"_uploadQueue");q(this,"_transactionIdCount",0);q(this,"_histories",new Map);q(this,"_v5Responded",new Set);q(this,"_messageQueue",[]);q(this,"_messageHandleTimer",null);q(this,"sendFiles",this._sendMultiMediaMessage.bind(this,ch));this._sendQueue=new Mp(s),this._uploadQueue=new Op(s)}_onInit(){f.electronExtension.enable()?(f.addEventListener(f.Events.MESSAGES,this._onRecvElectronMessage,this),this._handleElectronMessages()):f.addEventListener(f.Events.MESSAGES,this._onRecvMessages,this),f.addEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse.bind(this))}_onInitUserCache(){}_onDestroyUserCache(){this._histories.clear(),this._transactionIdCount=0,this._messageQueue.length=0,this._messageHandleTimer&&(clearTimeout(this._messageHandleTimer),this._messageHandleTimer=null)}destroy(){this._onDestroyUserCache(),this._sendQueue.destroy(),this._uploadQueue.destroy(),f.removeEventListener(f.Events.MESSAGES,this._onRecvElectronMessage,this),f.removeEventListener(f.Events.MESSAGES,this._onRecvMessages,this)}_createTransactionId(){return++this._transactionIdCount}_getExistCache(s){return this._histories.get(vt(s))}_getOrCreateCache(s,n,i,o){const r=vt(s);let a=this._histories.get(r);return a||(a={histories:[],startTime:0,endTime:n===0?f.getServerTime():n,hasMoreAfterEndTime:i,hasMoreBeforeStartTime:o},this._histories.set(r,a)),a}_push2Cache(s,...n){const{histories:i,startTime:o}=s;n.forEach(r=>{const a=i.findIndex(c=>r.messageUId&&c.messageUId?c.messageUId===r.messageUId:r.messageId&&c.messageId?c.messageId===r.messageId:!1);if(a!==-1)i.splice(a,1,r);else{const c=Sn(i,u=>u.sentTime<r.sentTime);c===-1?i.unshift(r):i.splice(c+1,0,r)}const l=r.sentTime+1;s.endTime=s.endTime===0?l:Math.max(s.endTime,l)}),o||(s.startTime=Math.min(...n.map(r=>r.sentTime))-1)}_unshift2Cache(s,...n){const{histories:i}=s;n.forEach(o=>{const r=i.findIndex(l=>l.messageUId===o.messageUId||l.sentTime>o.sentTime);r===-1?i.push(o):i[r].messageUId!==o.messageUId&&i.splice(r,0,o);const a=o.sentTime-1;s.startTime=s.startTime===0?a:Math.min(s.startTime,a)})}_onRecvElectronMessage(s){this._messageQueue.push(...s.messages)}_handleElectronMessages(){this._messageHandleTimer=setTimeout(()=>{if(this._messageQueue.length>0){const s=this._messageQueue.splice(0);this._handleMessages(s)}this._messageHandleTimer=null,this._handleElectronMessages()},60)}_onRecvMessages(s){this._handleMessages(s.messages)}_onV5ReceiptResponse(s){try{if(!s||!Array.isArray(s))return;s.forEach(n=>{const i=vt(n.identifier);let o=this._histories.get(i);if(!o)return;const r=o.histories.findIndex(l=>l.messageUId===n.messageUId);if(r<0)return;const a={identifier:n.identifier,messageUId:n.messageUId,unreadCount:n.unreadCount,readCount:n.readCount,totalCount:n.totalCount};o.histories[r].kitReadReceiptInfo=a,this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,[o.histories[r]]))})}catch(n){this.logger.warn(B.L_V5_RECEIPT_RESPONSE_E,`onV5ReceiptResponse error: ${n}`)}}async _sendReadReceiptMessageV5(s,n){if(this.ctx.readReceiptVersion!==j.GroupReadReceiptVersion.V5)return;const i=n.map(u=>u.messageUId),o=Array.from(new Set((i||[]).filter(Boolean)));if(o.length===0){this.logger.info(B.L_SEND_V5_RECEIPT_T,`sendV5Receipts ids size is 0, messageUIds: ${JSON.stringify(i)}`);return}const r=vt(s),a=this._histories.get(r);if(!a||!a.histories.length)return;const l=new Set(o.filter(u=>{const d=a.histories.find(_=>_.messageUId===u);if(!d)return!1;const h=d.messageDirection===2,p=!this._v5Responded.has(u)&&d.sendReceipt!==!0&&d.needReceipt;return h&&p}));if(l.size===0){this.logger.info(B.L_SEND_V5_RECEIPT_T,"sendV5Receipts messageUIds size is 0");return}const c=Array.from(l);try{this.logger.info(B.L_SEND_V5_RECEIPT_T,`sendV5Receipts: ${JSON.stringify(c)}`);const u=await f.sendReadReceiptResponseV5(s,c);this.logger.info(B.L_SEND_V5_RECEIPT_R,`sendV5Receipts res: ${JSON.stringify(u)}`),c.forEach(d=>this._v5Responded.add(d)),this._markSendReceiptTrue(s,c)}catch(u){this.logger.warn(B.L_SEND_V5_RECEIPT_E,`sendV5Receipts error: ${u}`)}}_markSendReceiptTrue(s,n){try{if(!n||!n.length)return;const i=vt(s),o=this._histories.get(i);if(!o)return;const r=new Set(n);o.histories.forEach(a=>{a.messageUId&&r.has(a.messageUId)&&(a.sendReceipt=!0)})}catch(i){this.logger.warn(B.L_SEND_V5_RECEIPT_E,`markSendReceiptTrue error: ${i}`)}}_handleMessages(s){const n=[];let i=[];s.forEach(async r=>{const a=_i(r);if(f.electronExtension.enable()&&a.messageType===f.MessageType.RECALL&&(r.isPersited=!0),!r.isPersited||$n(r)){n.push(a);return}if(a.messageType===f.MessageType.RECALL){const{messageUId:l}=a.content;let c=i.findIndex(u=>u.messageUId===l);if(c!==-1){i.splice(c,1,a);return}}i.push(a)}),i=this._handleNotifiedUIMessaages(i),i.filter(r=>r.messageType!==f.MessageType.RECALL).length&&this.ctx.dispatchEvent(new ne(Z.RECV_NEW_MESSAGES,i)),n.length&&this.ctx.emit(new ne(ge.UNSCHEDULED_MESSAGES,n))}_handleNotifiedUIMessaages(s){const n=new Map,i=new Set,o=new Set;return s.forEach(r=>{const a=vt(r),l=this._getOrCreateCache(r,r.sentTime+1,!1,!0);let c;if(n.has(a))c=n.get(a).messages;else{c=[];const u={targetId:r.targetId,conversationType:r.conversationType,channelId:r.channelId};n.set(a,{conversation:u,messages:c})}if(r.messageType===f.MessageType.RECALL&&l.histories.length>0){const u=r.content.messageUId;o.add(u),i.add(l);const d=l.histories.findIndex(h=>h.messageUId===u);if(d!==-1){const[h]=l.histories.splice(d,1,r);r.sentTime=h.sentTime,this.ctx.emit(new ne(ge.MESSAGES_DELETED,[{target:h,recallMsg:r}]),1);return}}!l.hasMoreAfterEndTime&&r.messageType!==f.MessageType.RECALL&&(this._push2Cache(l,r),c.push(r))}),Array.from(n.entries()).forEach(([r,a])=>{this._checkAndFillQuoteInfo(a.conversation,a.messages)}),i.size>0&&[...i.values()].forEach(r=>{const a=r.histories.filter(l=>l.quoteInfo&&o.has(l.quoteInfo.messageUId));a.length!==0&&(a.forEach(l=>{l.quoteInfo.status=it.RECALLED,delete l.quoteInfo.quoteMessage}),this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,a)))}),s}_ifTimeCoincides(s,n){return s.endTime>=n&&s.startTime<=n}async _requestHistoriesFromLib(s,n,i){const o=await f.getHistoryMessages(s,{timestamp:n,count:jo,order:i?0:1});if(!o.isOk)return{code:o.code,hasMore:!0,list:[]};const{list:r,hasMore:a}=o.data;let l=await this._handleTransIAReceivedMessages(r,s);const c=this._getOrCreateCache(s,n,n!==0,!0);return!i&&n!==0&&c.startTime>n&&(c.startTime=n-1),(this._ifTimeCoincides(c,n)||r.length&&(this._ifTimeCoincides(c,r[0].sentTime)||this._ifTimeCoincides(c,r[r.length-1].sentTime)))&&(i?(l=l.reverse(),this._unshift2Cache(c,...l),c.hasMoreBeforeStartTime=a):(this._push2Cache(c,...l),c.hasMoreAfterEndTime=a)),{hasMore:a,list:l,code:f.ErrorCode.SUCCESS}}async _handleTransIAReceivedMessages(s,n){const i=s.map(o=>_i(o));return this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5?await this._handleReadReceiptV5(n,i):i}async _handleReadReceiptV5(s,n){if(n.length===0)return[];try{const i=n.filter(a=>a.senderUserId===this.ctx.userId);if(i.length===0)return n;const o=i.map(a=>a.messageUId),{data:r}=await f.getMessageReadReceiptInfoV5(s,o);r&&r.length>0&&r.forEach(a=>{const l=n.findIndex(c=>c.messageUId===a.messageUId);l>-1&&(n[l].kitReadReceiptInfo=a)})}catch(i){this.logger.warn(B.L_HANDLE_READ_RECEIPT_V5_E,`_handleReadReceiptV5 error: ${i}`)}return n}async _reqHistoriesHandler(s,n=0,i=!0){var _;const o=this._getOrCreateCache(s,n,n!==0,!0),{histories:r,hasMoreAfterEndTime:a,hasMoreBeforeStartTime:l,startTime:c,endTime:u}=o;if(!a&&n===0&&i){const m=((_=r[r.length-1])==null?void 0:_.sentTime)||0;m>u&&(o.endTime=m+1),n=o.endTime}if(!this._ifTimeCoincides(o,n))return this._requestHistoriesFromLib(s,n,i);let d;if(i){const m=Sn(r,b=>b.sentTime<n);d=r.slice(0,m+1)}else{const m=r.findIndex(b=>b.sentTime>n);d=r.slice(m)}const h=i?l:a;if(d.length<jo)return await this._reqHasMoreHistories(h,c,u,i,s,n,d);let p=i?d.slice(d.length-jo):d.slice(0,jo);return this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&s.conversationType===f.ConversationType.GROUP&&(await this._handleReadReceiptV5(s,p),p.forEach(m=>{const b=o.histories.findIndex(w=>w.messageUId===m.messageUId);b>-1&&m.kitReadReceiptInfo&&(o.histories[b].kitReadReceiptInfo=m.kitReadReceiptInfo)})),{hasMore:h||d.length>jo,list:p,code:f.ErrorCode.SUCCESS}}async _reqHasMoreHistories(s,n,i,o,r,a=0,l=[]){if(s){const c=n===0?0:n+1,u=i===0?0:i-1,d=o?c:u,{code:h}=await this._requestHistoriesFromLib(r,d,o);return h===f.ErrorCode.SUCCESS?this._reqHistoriesHandler(r,a,o):{hasMore:s,list:l,code:h}}return{hasMore:s,list:l,code:f.ErrorCode.SUCCESS}}async reqHistories(s,n=0,i=!0){const o=await this._reqHistoriesHandler(s,n,i);return this._checkAndFillQuoteInfo(s,o.list),o}async sendMessage(s,n,i,o){if($n(s)||!Mc(s))return{code:Ds.INVALID_CONVERSATION};const r=this._createTransactionId();if(this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5){const u=[f.ConversationType.PRIVATE,f.ConversationType.GROUP].includes(s.conversationType),d=i==null?void 0:i.directionalUserIdList,h=Array.isArray(d)&&d.length>0,p=(i==null?void 0:i.isStatusMessage)===!0,_=n.isPersited!==!1;u&&!h&&!p&&_&&(i={needReceipt:!0,...i||{}})}const a=this._transBaseMessage2CachedMessage(s,n,r,i);if(o&&(i!=null&&i.quoteInfo)&&(a.quoteInfo=P2(o)),j.isObject(a.content))try{a.content=Ra(a.content)}catch(u){this.logger.warn(B.A_SEND_MESSAGE_E,u.message)}if(a.isPersited){const u=this._getOrCreateCache(s,a.sentTime+1,!1,!0);u.hasMoreAfterEndTime&&(u.histories.length=0,u.startTime=a.sentTime,u.hasMoreBeforeStartTime=!0,u.hasMoreAfterEndTime=!1),this._push2Cache(u,a),this.ctx.dispatchEvent(new ne(Z.INSERT_NEW_MESSAGES,[a]))}const{code:l,data:c}=await this._sendQueue.push({conversation:s,message:a,options:i,transactionId:a.transactionId});return l!==f.ErrorCode.SUCCESS?a.sentStatus=f.SentStatus.FAILED:(this._updateCachedMessage(a,c),this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&a.conversationType===f.ConversationType.GROUP&&await this._handleReadReceiptV5(s,[a])),a.isPersited&&this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,[a])),{code:l,message:c}}_updateCachedMessage(s,n){const{sentStatus:i,sentTime:o,messageUId:r,messageId:a}=n;s.sentStatus=i,s.sentTime=o,s.messageUId=r,s.messageId=a}async _sendMultiMediaMessage(s,n,i){if(i.length>99){this.ctx.alert("alert.pickfiles.maxcount","99");return}const o=[],r=[];for(let p of i)p.size>100*1024*1024||p.size===0?o.push(p):r.push(p);if(o.length>0&&this.ctx.emit(new ne(ge.FILE_SEND_FAILED_EVENT,o)),r.length===0)return;const a=await Promise.all(r.map(async p=>{const _=await s(p),m=this._transBaseMessage2CachedMessage(n,_,this._createTransactionId());return m.file=p,m.progress=0,m})),l=ft.value;a.length===1&&this.ctx.isQuoteMessageV2Enabled&&l&&this.ctx.input.isQuoteInfoEnabledForMessageType(a[0].messageType)&&(a[0].quoteInfo=P2(l),ft.value=null);const c=this.ctx.status!==f.RCConnectionStatus.CONNECTED;c&&a.forEach(p=>{p.progress=-1,p.sentStatus=f.SentStatus.FAILED});const u=a[0],d=this._getOrCreateCache(n,u.sentTime+1,!1,!0);if(d.hasMoreAfterEndTime&&(d.histories.length=0,d.startTime=u.sentTime+1,d.hasMoreBeforeStartTime=!0,d.hasMoreAfterEndTime=!1),this._push2Cache(d,...a),this.ctx.dispatchEvent(new ne(Z.INSERT_NEW_MESSAGES,a)),c)return;const h=a.map(p=>this._uploadQueue.push({message:p,transactionId:p.transactionId}));for(let p of h){const{code:_,data:m}=await p,{message:b}=m;if(d.histories.findIndex(g=>g.transactionId===b.transactionId)===-1)continue;if(_!==f.ErrorCode.SUCCESS){b.progress=-1,b.sentStatus=f.SentStatus.FAILED,this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,[b]));continue}const C=m.httpUrl;b.file=void 0,this._updateHttpUrl(b,C),this._push2SendQueue(b,b)}}_updateHttpUrl(s,n){switch(s.messageType){case f.MessageType.IMAGE:s.content.imageUri=n;break;case f.MessageType.GIF:s.content.remoteUrl=n;break;case f.MessageType.SIGHT:s.content.sightUrl=n;break;case f.MessageType.COMBINE_V2:s.content.remoteUrl=n;break;default:s.content.fileUrl=n;break}}async insertMessage(s,n,i){if($n(s)||!Mc(s))return{code:Ds.INVALID_CONVERSATION};const o=this._createTransactionId(),r=this._transBaseMessage2CachedMessage(s,n,o);if(r.isPersited){const a=this._getOrCreateCache(s,r.sentTime+1,!0,!0);let l=Sn(a.histories,c=>c.messageUId===r.messageUId||c.messageId===r.messageId);l!==-1?a.histories.splice(l,1,r):(l=Sn(a.histories,c=>c.sentTime<=r.sentTime),l===-1?a.histories.unshift(r):a.histories.splice(l,0,r)),this.ctx.dispatchEvent(new ne(Z.INSERT_NEW_MESSAGES,[r]))}if(f.electronExtension.enable()){const{code:a,data:l}=await f.electronExtension.insertMessage(s,r,i);return a===f.ErrorCode.SUCCESS&&(r.messageId=l.messageId),{code:a,message:r}}return{code:f.ErrorCode.SUCCESS,message:r}}_transBaseMessage2CachedMessage(s,n,i,o){const{conversationType:r,targetId:a,channelId:l}=s,{isCounted:c,isPersited:u,content:d,messageType:h}=n,p=this.ctx.userId;let _;if(h===f.MessageType.REFERENCE){const{referMsgUserId:b}=d,w=b!==p?j.MessageDirection.RECEIVE:j.MessageDirection.SEND;_=Lc(d,s,w)}else o!=null&&o.quoteInfo&&(_=bc(o.quoteInfo));const m={transactionId:i,targetId:a,conversationType:r,messageDirection:1,messageType:h,sentTime:f.getServerTime(),isStatusMessage:o==null?void 0:o.isStatusMessage,isCounted:c,isPersited:u,content:d,channelId:l||"",senderUserId:p,receivedTime:0,messageUId:"",sentStatus:f.SentStatus.SENDING,isOffLineMessage:!1,canIncludeExpansion:(o==null?void 0:o.canIncludeExpansion)||!1,receivedStatus:0,isMentioned:o==null?void 0:o.isMentioned,expansion:o==null?void 0:o.expansion,quoteInfo:_};return this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&(m.kitReadReceiptInfo=void 0),m}async deleteMessages(s,n,i){if(n.length===0)return;const o=[],r=[],a=[];n.forEach(u=>{u.messageUId?(o.push(u),a.push(u.messageUId)):u.sentStatus===f.SentStatus.FAILED&&r.push(u)});const l=this._getExistCache(s),c=[];if(o.length){const{recallList:u}=await this._handleSentList(i,l,o,s);c.push(...u)}if(r.length&&l&&l.histories.length&&r.forEach(u=>{const d=l.histories.findIndex(h=>h.messageUId?h.messageUId===u.messageUId:h.transactionId===u.transactionId);if(d!==-1){const[h]=l.histories.splice(d,1);c.push({target:h})}}),c.length&&this.ctx.dispatchEvent(new ne(ge.MESSAGES_DELETED,c)),a.length&&l){const u=l.histories.filter(h=>h.quoteInfo&&a.includes(h.quoteInfo.messageUId));if(u.length===0)return;const d=i?it.RECALLED:it.DELETED;u.forEach(({quoteInfo:h})=>{delete h.quoteMessage,h.status=d}),this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,u))}}getAllowedToRecallTime(){return this.ctx.allowedToRecallTime}async _handleSentList(s,n,i,o){const r=[],a=[],l=[];return s?(await Promise.all(i.map(u=>f.recallMessage(o,{messageUId:u.messageUId,sentTime:u.sentTime,isDelete:!1})))).forEach((u,d)=>{if(u.code===f.ErrorCode.SUCCESS){r.push(i[d]);return}a.push(i[d])}):(await f.deleteMessages(o,i.map(u=>({messageUId:u.messageUId,sentTime:u.sentTime,messageDirection:u.messageDirection})))).code===f.ErrorCode.SUCCESS?r.push(...i):a.push(...i),r.length&&n&&n.histories.length&&r.forEach(c=>{const u=n.histories.findIndex(d=>d.messageUId===c.messageUId);if(s){const d=this._trans2RecallMessage(c),[h]=n.histories.splice(u,1,d);l.push({target:h,recallMsg:d})}else{const[d]=n.histories.splice(u,1);l.push({target:d})}}),a.length&&this.ctx.alert("alert.delete.messages.partial.failure",a.length),{recallList:l}}_trans2RecallMessage(s){return{...s,messageType:f.MessageType.RECALL,content:{messageUid:s.messageUId,sentTime:s.sentTime,targetId:s.targetId,conversationType:s.conversationType,channelId:s.channelId},isMentioned:!1}}async forward(s,n){if(n.length===0)return;const{conversationType:i,targetId:o,channelId:r}=s,a=f.getServerTime(),l=n.map(u=>{const d={...u};return u.content.mentionedInfo&&delete u.content.mentionedInfo,delete d.quoteInfo,d.content=u.content,d.messageUId="",d.transactionId=this._createTransactionId(),d.conversationType=i,d.targetId=o,d.channelId=r||"",d.sentStatus=f.SentStatus.SENDING,d.messageDirection=1,d.sentTime=a,d.senderUserId=this.ctx.userId,d.readReceiptInfo&&delete d.readReceiptInfo,d.kitReadReceiptInfo&&(d.kitReadReceiptInfo=void 0),d}),c=this._getOrCreateCache(s,a+1,!1,!0);this._push2Cache(c,...l),this.ctx.dispatchEvent(new ne(Z.INSERT_NEW_MESSAGES,l)),l.forEach(u=>this._push2SendQueue(s,u))}async sendCombineMessage(s,n){if(n.length===0||$n(s))return;const{conversationType:i,targetId:o}=n[0],r=[],a=this.ctx.userId,l=this.ctx.appData.getUserProfile(a).name,c=[];if(i===f.ConversationType.PRIVATE){const p=n.findIndex(m=>m.senderUserId===a),_=n.findIndex(m=>m.senderUserId!==a);p>-1&&c.push(l),_>-1&&c.push(this.ctx.appData.getUserProfile(o).name)}else c.push(this.ctx.appData.getGroupProfile(o).name);const u=n.map((p,_)=>{const m=p.content;delete m.user,delete m.extra,delete m.mentionedInfo;const{targetId:b,sentTime:w,messageType:C,senderUserId:g}=p;return _<4&&r.push(`${this.ctx.appData.getUserProfile(g).name}: ${x2(p)}`.substring(0,1e3)),{targetId:b,timestamp:w,objectName:C,content:m,fromUserId:g}}),d={summaryList:r,nameList:c,conversationType:i,msgNum:u.length},h=JSON.stringify(u);if(h.length>=120*1024){const p=`${Date.now()}-${Math.floor(Math.random()*Date.now())}.json`;d.jsonMsgKey=p;const _=new File([h],p,{type:"application/json"});this._sendMultiMediaMessage(async m=>new f.CombineV2Message(d),s,[_])}else d.msgList=u,this.sendMessage(s,new f.CombineV2Message(d))}async _push2SendQueue(s,n){const{code:i,data:o}=await this._sendQueue.push({conversation:s,message:n,transactionId:n.transactionId});if(i!==f.ErrorCode.SUCCESS)n.sentStatus=f.SentStatus.FAILED;else{const r=n.sentTime;if(this._updateCachedMessage(n,o),n.sentTime!==r){const a=this._getExistCache(s);if(a){const l=a.histories.findIndex(c=>c.transactionId===n.transactionId);if(l!==-1){a.histories.splice(l,1);const c=Sn(a.histories,u=>u.sentTime<=n.sentTime);a.histories.splice(c+1,0,n)}}}}this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,[n]))}removeCachedMessages(s){this._histories.delete(vt(s))}cancelMessageSent(s){const{transactionId:n,conversationType:i,targetId:o,channelId:r}=s,a={conversationType:i,targetId:o,channelId:r},l=this._getExistCache(a);if(!l)return;const c=l.histories.findIndex(d=>d.transactionId===n),u=l.histories[c];!u||u.sentStatus!==f.SentStatus.SENDING||typeof u.transactionId!="number"||(l.histories.splice(c,1),this.ctx.dispatchEvent(new ne(ge.MESSAGES_DELETED,[{target:s}])),this._uploadQueue.remove(n)||this._sendQueue.remove(n))}async resendMessage(s){const{transactionId:n,conversationType:i,targetId:o,channelId:r}=s,a={conversationType:i,targetId:o,channelId:r},l=this._getExistCache(a);if(!l)return;const c=l.histories.find(u=>u.transactionId===n);if(!(!c||c.sentStatus!==f.SentStatus.FAILED||typeof n!="number")){if(c.sentStatus=f.SentStatus.SENDING,c.file&&c.progress!==100){c.progress=0,this.ctx.emit(new ne(Z.MESSAGE_STATE_CHANGE,[c]));const{code:u,data:d}=await this._uploadQueue.push({message:c,transactionId:n});if(u!==f.ErrorCode.SUCCESS){c.sentStatus=f.SentStatus.FAILED,c.progress=-1,this.ctx.emit(new ne(Z.MESSAGE_STATE_CHANGE,[c]));return}c.file=void 0,this._updateHttpUrl(c,d.httpUrl)}this._push2SendQueue(c,c)}}async sendReadReceiptMessage(s,n){this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&this._sendReadReceiptMessageV5(s,n)}getConversationLatestMessage(s){const n=this._getExistCache(s);if(!n)return null;const i=n.histories.length;return n.histories[i-1]}async getMessagesReadReceiptUsersByPageV5(s,n,i){if(this.ctx.readReceiptVersion!==j.GroupReadReceiptVersion.V5)return{code:f.ErrorCode.SUCCESS,data:null};try{const o=i.type==="read"?0:1,r={pageToken:i.pageToken,pageCount:i.count||20,readStatus:o,order:0};return await f.getMessagesReadReceiptUsersByPageV5(s,n,r)}catch(o){return this.logger.warn(B.L_GET_READ_RECEIPT_INFO_V5_E,`getMessagesReadReceiptUsersByPageV5 error: ${o}`),{code:f.ErrorCode.SUCCESS,data:null}}}_checkAndFillQuoteInfo(s,n){const i=n.filter(o=>{const{quoteInfo:r}=o;if(!r||o.messageType===f.MessageType.REFERENCE)return;const{status:a}=r;return a===it.LOADING||a===it.LOAD_ERROR});i.length!==0&&this._queryQuoteMessage(s,i)}async _queryQuoteMessage(s,n){if(n.length===0)return;const i=n.slice(0,20),o=await f.getMessagesByUIds({conversationIdentifier:s,messageUIds:i.map(a=>a.quoteInfo.messageUId)});if(!o.isOk)return i.forEach(a=>{a.quoteInfo.status=it.LOAD_ERROR}),this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,i)),this._queryQuoteMessage(s,n.slice(20));const r=o.data;return i.forEach(a=>{const{code:l,message:c}=r.find(u=>u.messageUId===a.quoteInfo.messageUId);l===f.ErrorCode.SUCCESS&&c?c.messageType!==f.MessageType.RECALL_NOTIFICATION_MESSAGE?(a.quoteInfo.quoteMessage=c,a.quoteInfo.status=it.LOADED):a.quoteInfo.status=it.RECALLED:l===f.ErrorCode.RC_DB_DATA_NOT_FOUND?a.quoteInfo.status=it.DELETED:a.quoteInfo.status=it.LOAD_ERROR}),this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,i)),this._queryQuoteMessage(s,n.slice(20))}}var V2=(e=>(e.ADD_TOP="conversation.menu.item.add_top",e.REMOVE_TOP="conversation.menu.item.remove_top",e.MUTE="conversation.menu.item.mute",e.UNMUTE="conversation.menu.item.unmute",e.MARK_READ="conversation.menu.item.mark_read",e.MARK_UNREAD="conversation.menu.item.mark_unread",e.REMOVE="conversation.menu.item.remove",e))(V2||{});const F2=[{id:"conversation.menu.item.add_top",icon:Z0,filter:e=>!e.isTop},{id:"conversation.menu.item.remove_top",icon:Y0,filter:e=>e.isTop},{id:"conversation.menu.item.mute",icon:X0,filter:e=>e.notificationLevel!==j.NotificationLevel.NOT_MESSAGE_NOTIFICATION},{id:"conversation.menu.item.unmute",icon:J0,filter(e){return e.notificationLevel===j.NotificationLevel.NOT_MESSAGE_NOTIFICATION}},{id:"conversation.menu.item.remove",icon:ep}],Ca=e=>e.map(t=>({...t}));class ov extends Ts{constructor(){super(...arguments);q(this,"_menu",Ca(F2))}_onInit(){this.ctx.addEventListener(ge.CONVERSATION_MENU_ITEM_CLICK,this._onMenuItemClick,this)}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._menu=Ca(F2)}_onMenuItemClick(s){const{id:n,conversation:i}=s.data;switch(n){case"conversation.menu.item.add_top":this.ctx.conversation.setConversationToTop(i,!0);break;case"conversation.menu.item.remove_top":this.ctx.conversation.setConversationToTop(i,!1);break;case"conversation.menu.item.mute":this.ctx.conversation.setConversationNotificationLevel(i,j.NotificationLevel.NOT_MESSAGE_NOTIFICATION);break;case"conversation.menu.item.unmute":this.ctx.conversation.setConversationNotificationLevel(i,j.NotificationLevel.ALL_MESSAGE);break;case"conversation.menu.item.mark_read":this.ctx.conversation.markConversationReaded(i);break;case"conversation.menu.item.mark_unread":this.ctx.conversation.markConversationUnread(i);break;case"conversation.menu.item.remove":this.ctx.conversation.removeConversation(i);break}}getMenum(s){return this._menu.filter(n=>!n.filter||n.filter(s))}cloneConversationMenu(){return Ca(this._menu)}setConversationMenu(s){this._menu=Ca(s)}}class rv extends Ts{constructor(){super(...arguments);q(this,"_audio",new Audio);q(this,"_status","stopped");q(this,"_progress",0);q(this,"_messageUId","");q(this,"_transactionId",0);q(this,"_onError",()=>{this._progress=0,this._status="stopped",this._dispatch()});q(this,"_onTimeUpdate",()=>{const{currentTime:s,duration:n}=this._audio;this._progress=Math.floor(s/n*100),this._status!=="stopped"&&this._dispatch()});q(this,"_onEnded",()=>{this._progress=100,this._status="stopped",this._dispatch()})}_onInitUserCache(){this._audio.addEventListener("ended",this._onEnded),this._audio.addEventListener("timeupdate",this._onTimeUpdate),this._audio.addEventListener("error",this._onError)}_onDestroyUserCache(){this._audio.removeEventListener("ended",this._onEnded),this._audio.removeEventListener("timeupdate",this._onTimeUpdate),this._audio.addEventListener("error",this._onError)}destroy(){throw new Error("Method not implemented.")}getCurrentState(){return{progress:this._progress,status:this._status,messageUId:this._messageUId,transactionId:this._transactionId}}_dispatch(){this.ctx.dispatchEvent(new ne(Z.AUDIO_PLAY_EVENT,this.getCurrentState()),!1)}play(s,n,i){if(this._messageUId&&this._messageUId===n||this._transactionId&&this._transactionId===i){this._status==="stopped"&&(this._audio.play(),this._status="playing",this._onTimeUpdate());return}this._status="playing",this._messageUId=n,this._transactionId=0,this._progress=0,this._audio.src=s,this._audio.play(),this._dispatch()}stop(){this._status="stopped",this._messageUId="",this._transactionId=0,this._progress=0,this._audio.src&&(this._audio.pause(),this._audio.src=""),this._dispatch()}pause(){this._status!=="stopped"&&(this._status="stopped",this._audio.pause(),this._dispatch())}}const qi=class qi{constructor(t,s){q(this,"cache",new Map);q(this,"convertingTTSList",new Set);q(this,"errorTTSList",new Set);q(this,"timers",new Map);Zi(this,Ko,t=>{var s,n,i,o;try{const{code:r,messageUId:a,sttInfo:l}=t||{};(s=this.logger)==null||s.info(B.L_STT_RESPONSE_R,`[STT] response: ${a}, code: ${r}`);const c=this.timers.get(a);if(c&&(clearTimeout(c),this.timers.delete(a)),r===f.ErrorCode.SUCCESS){const u=l.text;for(this.cache.set(a,u);this.cache.size>qi.MAX_CACHE_SIZE;){const d=this.cache.keys().next().value||"";this.cache.delete(d)}this.errorTTSList.delete(a),this.convertingTTSList.delete(a),(n=this.logger)==null||n.info(B.L_STT_RESPONSE_O,`[STT] success: ${a}`),this.dispatchStateChange(a,"success",u)}else this.convertingTTSList.delete(a),this.errorTTSList.add(a),(i=this.logger)==null||i.warn(B.L_STT_RESPONSE_E,`[STT] failed: code=${r}, uid=${a}`),this.dispatchStateChange(a,"error")}catch(r){(o=this.logger)==null||o.warn(B.L_STT_RESPONSE_E,`[STT] exception: ${r}`)}});this.logger=t,this.eventDispatcher=s,f.addEventListener(f.Events.SPEECH_TO_TEXT_RESPONSE,yn(this,Ko))}dispatchStateChange(t,s,n,i){this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new ne(Z.SPEECH_TO_TEXT_STATE_CHANGE,{messageUId:t,status:s,text:n,errorCode:i}))}getSTTText(t){return this.cache.get(t)}isConverting(t){return this.convertingTTSList.has(t)}hasError(t){return this.errorTTSList.has(t)}hasConverted(t){return this.cache.has(t)}async requestForMessage(t){var i,o,r,a;const{messageUId:s}=t;if(this.cache.has(s)||this.convertingTTSList.has(s))return f.ErrorCode.SUCCESS;this.errorTTSList.delete(s),this.convertingTTSList.add(s),this.dispatchStateChange(s,"converting");const n={messageType:f.MessageType.HQ_VOICE,remoteUrl:t.content.remoteUrl,duration:t.content.duration,sampleRate:t.content.sampleRate,numberOfChannels:t.content.numberOfChannels};try{(i=this.logger)==null||i.info(B.L_STT_REQUEST_T,`[STT] request: ${s}, opts: ${JSON.stringify(n)}`);const{code:l,msg:c}=await f.requestSpeechToTextForMessage(s,n);if((o=this.logger)==null||o.info(B.L_STT_REQUEST_R,`[STT] request response: ${s}, code: ${l}`),l===f.ErrorCode.SUCCESS){const u=setTimeout(()=>{var d;this.timers.delete(s),this.convertingTTSList.has(s)&&(this.convertingTTSList.delete(s),this.errorTTSList.add(s),(d=this.logger)==null||d.warn(B.D,`[STT] timeout: ${s}`),this.dispatchStateChange(s,"error"))},qi.REQUEST_TIMEOUT);this.timers.set(s,u)}else this.convertingTTSList.delete(s),this.errorTTSList.add(s),(r=this.logger)==null||r.warn(B.L_STT_REQUEST_E,`[STT] request failed: code=${l}, uid=${s}, msg=${c}`),this.dispatchStateChange(s,"error",void 0,l);return l}catch(l){return this.convertingTTSList.delete(s),this.errorTTSList.add(s),(a=this.logger)==null||a.warn(B.L_STT_REQUEST_E,`[STT] request exception: ${l}`),this.dispatchStateChange(s,"error"),-1}}clearMemoryData(){this.cache.clear(),this.convertingTTSList.clear(),this.errorTTSList.clear(),this.timers.forEach(t=>clearTimeout(t)),this.timers.clear()}destroy(){f.removeEventListener(f.Events.SPEECH_TO_TEXT_RESPONSE,yn(this,Ko)),this.clearMemoryData()}};Ko=new WeakMap,q(qi,"MAX_CACHE_SIZE",200),q(qi,"REQUEST_TIMEOUT",3e4);let Cc=qi;var ut=(e=>(e[e.NONE=0]="NONE",e[e.AT_ALL=1]="AT_ALL",e[e.AT_ME=2]="AT_ME",e))(ut||{});const av=30002;class lv extends Ts{constructor(){super(...arguments);Zi(this,ya);q(this,"_list",[]);q(this,"_messageQueue",[]);q(this,"_converNtfQueue",[]);q(this,"_pool",new Map);q(this,"_getRemoteConversationTimer",null);q(this,"_pullOfflineMessageFinished",!1);Zi(this,hi,new Map);Zi(this,pi,!1);Zi(this,zo,!1);q(this,"_openedConversation",null);q(this,"_getRemoteConversationFinished",!1);q(this,"_handleQueueTimer");q(this,"_typingTime",null)}getOpenedConversation(){return this._openedConversation}setOpenedConversation(s,n=!0){this._setOpenedConversation(s,n)}_createCachedConversation(s){const n=vt(s);if(this._pool.has(n))return this._pool.get(n);const i={key:n,targetId:s.targetId,conversationType:s.conversationType,channelId:s.channelId||"",name:"",portraitUri:"",draft:"",latestMessage:null,isTop:!1,notificationLevel:f.NotificationLevel.ALL_MESSAGE,unreadCount:0,updateTime:0,online:!1,memberCount:0,mentionedType:0,markReaded:!1,markUnread:!1};return this._pool.set(n,i),i}_onInit(){this.ctx.addEventListener(Z.USER_PROFILES_UPDATE,this._onUserProfilesUpdate,this),this.ctx.addEventListener(Z.GROUP_PROFILES_UPDATE,this._onGroupProfilesUpdate,this),this.ctx.addEventListener(Z.SYSTEM_PROFILES_UPDATE,this._onSystemProfilesUpdate,this),this.ctx.addEventListener(Z.INSERT_NEW_MESSAGES,this._onInsertNewMessages,this),this.ctx.addEventListener(ge.MESSAGES_DELETED,this._onDeleteMessages,this),this.ctx.addEventListener(Z.MESSAGE_STATE_CHANGE,this._onMessageStateChange,this),f.addEventListener(f.Events.SYNC_READ_STATUS,this._onSyncReadStatus,this),f.addEventListener(f.Events.CONVERSATION,this._onRecvConversationNtf,this),f.addEventListener(f.Events.PULL_OFFLINE_MESSAGE_FINISHED,this._onPullOfflineMessageFinished,this),f.addEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse.bind(this)),f.addEventListener(f.Events.CONNECTED,this._onConnected,this),f.addEventListener(f.Events.CONVERSATIONS_SYNCED,this._onConversationsSynced.bind(this)),f.electronExtension.enable()&&this.ctx.addEventListener(Z.RECV_NEW_MESSAGES,this._onRecvNewMessages,this)}_onInitUserCache(){yn(this,pi)||this._getMoreRemoteConversation(!0)}_onDestroyUserCache(){this._list.length=0,this._pool.clear(),this._openedConversation=null,this._getRemoteConversationFinished=!1,this._pullOfflineMessageFinished=!1,this._getRemoteConversationTimer&&(clearTimeout(this._getRemoteConversationTimer),this._getRemoteConversationTimer=null),this._handleQueueTimer&&(clearTimeout(this._handleQueueTimer),this._handleQueueTimer=null),this._clearTypingStatus(),Yo(this,pi,!1),Yo(this,zo,!1)}destroy(){this._onDestroyUserCache(),this.ctx.removeEventListener(Z.USER_PROFILES_UPDATE,this._onUserProfilesUpdate,this),this.ctx.removeEventListener(Z.GROUP_PROFILES_UPDATE,this._onGroupProfilesUpdate,this),this.ctx.removeEventListener(Z.SYSTEM_PROFILES_UPDATE,this._onSystemProfilesUpdate,this),this.ctx.removeEventListener(Z.INSERT_NEW_MESSAGES,this._onInsertNewMessages,this),this.ctx.removeEventListener(ge.MESSAGES_DELETED,this._onDeleteMessages,this),this.ctx.removeEventListener(Z.MESSAGE_STATE_CHANGE,this._onMessageStateChange,this),f.removeEventListener(f.Events.SYNC_READ_STATUS,this._onSyncReadStatus,this),f.removeEventListener(f.Events.PULL_OFFLINE_MESSAGE_FINISHED,this._onPullOfflineMessageFinished,this),f.removeEventListener(f.Events.CONVERSATION,this._onRecvConversationNtf,this),f.removeEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse,this),f.removeEventListener(f.Events.CONNECTED,this._onConnected,this),f.removeEventListener(f.Events.CONVERSATIONS_SYNCED,this._onConversationsSynced.bind(this)),this.ctx.removeEventListener(Z.RECV_NEW_MESSAGES,this._onRecvNewMessages,this)}async _onDeleteMessages(s){const n=s.data,{target:i,recallMsg:o}=n[n.length-1],r=this._pool.get(vt(i));if(!r)return;if(f.electronExtension.enable()&&o){const{conversationType:l,targetId:c,channelId:u}=o,{data:d}=await f.getConversation({conversationType:l,targetId:c,channelId:u});if(!d)return;d.conversationType===f.ConversationType.GROUP&&d.hasMentioned?r.mentionedType=ut.AT_ME:r.mentionedType=ut.NONE,this._paddingData(r,d),this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[r]));return}const a=r.latestMessage;!a||a.transactionId!==i.transactionId&&a.messageUId!==i.messageUId||(r.latestMessage=o||this.ctx.message.getConversationLatestMessage(r),this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[r])))}async _onInsertNewMessages(s){const n=s.data,i=n[n.length-1],o=vt(i);let r=this._pool.get(o);r||(r=this._parseConversationList([{latestMessage:i,conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId,lastUnreadTime:0}])[0]),r.latestMessage=i,r.updateTime=i.sentTime,r.markReaded=!0,r.markUnread=!1,this._recalculatePosition(new Set([r]))}_onMessageStateChange(s){const n=s.data,i=[];n.forEach(o=>{const r=vt(o),a=this._pool.get(r);a&&a.latestMessage&&(a.latestMessage.transactionId===o.transactionId||a.latestMessage.messageUId==o.messageUId)&&(a.latestMessage=o,i.push(a))}),i.length&&this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,i))}_getMentionedType(s,n){if(!n)return ut.NONE;const{type:i,userIdList:o}=n;return i===f.MentionedType.ALL?ut.AT_ALL:!o||!Array.isArray(o)?ut.NONE:o.includes(s)?ut.AT_ME:ut.NONE}_onUserProfilesUpdate(s){const n=[];s.data.forEach(i=>{const o=this._pool.get(vt({conversationType:f.ConversationType.PRIVATE,targetId:i.userId}));o&&(o.name!==i.name||o.portraitUri!==i.portraitUri||o.online!==i.online)&&(o.name=i.name,o.portraitUri=i.portraitUri,o.online=i.online,n.push(o))}),n.length&&this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,n))}_onSystemProfilesUpdate(s){const n=[];s.data.forEach(i=>{const o=this._pool.get(vt({conversationType:f.ConversationType.SYSTEM,targetId:i.systemId}));o&&(o.name!==i.name||o.portraitUri!==i.portraitUri)&&(o.name=i.name,o.portraitUri=i.portraitUri,n.push(o))}),n.length&&this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,n))}_onGroupProfilesUpdate(s){const n=s.data,i=[];n.forEach(o=>{const r={conversationType:f.ConversationType.GROUP,targetId:o.groupId},a=this._pool.get(vt(r));a&&(a.name!==o.name||a.portraitUri!==o.portraitUri||a.memberCount!==o.memberCount)&&(a.name=o.name,a.portraitUri=o.portraitUri,a.memberCount=o.memberCount,i.push(a))}),i.length&&this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,i))}updateLatesMessageStatus(s){if(!(!s||s.length<=0)&&this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5){const n=s.filter(i=>i.conversationType===f.ConversationType.PRIVATE&&i.latestMessage&&i.latestMessage.senderUserId===this.ctx.userId);this._handleLatestReadReceiptInfoV5(n)}}async _onSyncReadStatus(s){const n={conversationType:s.conversationType,channelId:s.channelId||"",targetId:s.targetId},i=vt(n);let o=this._pool.get(i);if(!o)return;const{code:r,data:a}=await f.getUnreadCount(n);if(r===f.ErrorCode.SUCCESS&&o.unreadCount!==a){if(o.mentionedType=ut.NONE,f.electronExtension.enable()){const{data:l}=await f.getConversation(n);o.mentionedType=l&&l.hasMentioned?ut.AT_ME:ut.NONE}o.unreadCount=a,this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[o]))}}_onRecvConversationNtf(s){this._converNtfQueue.push(...s.conversationList)}_handleConversationNtf(s){const{conversation:n,updatedItems:i}=s,o=vt(n);let r=0,a=this._pool.get(o);return a&&i?this._handleUpdatedItems(a,i,n):!a&&(i!=null&&i.latestMessage)?(n.conversationType===f.ConversationType.PRIVATE?a=this._transPriConversation(n):n.conversationType===f.ConversationType.GROUP?a=this._transGroupConversation(n):a=this._transSystemConversation(n),{changeType:2,conversation:a}):{changeType:r}}_handleUpdatedItems(s,n,i){var r,a,l,c,u;let o=0;if(n.isTop&&(s.isTop=n.isTop.val,o=Math.max(2,o)),n.notificationLevel&&(s.notificationLevel=n.notificationLevel.val,o=Math.max(1,o)),(r=n.latestMessage)!=null&&r.val&&(i.conversationType===f.ConversationType.GROUP&&i.hasMentioned?s.mentionedType=i.mentionedInfo.type===f.MentionedType.ALL?ut.AT_ALL:ut.AT_ME:s.mentionedType=ut.NONE,this._paddingData(s,i),s.markReaded&&i.unreadMessageCount&&(s.markReaded=!1),o=Math.max(2,o)),n.unreadMessageCount&&!((a=n.latestMessage)!=null&&a.val)&&(s.unreadCount=i.unreadMessageCount||0,s.markReaded&&s.unreadCount>0&&(s.markReaded=!1),o=Math.max(1,o)),n.hasMentioned&&!((l=n.latestMessage)!=null&&l.val)&&(i.conversationType===f.ConversationType.GROUP&&i.hasMentioned?s.mentionedType=((c=i.mentionedInfo)==null?void 0:c.type)===f.MentionedType.ALL?ut.AT_ALL:ut.AT_ME:s.mentionedType=ut.NONE,o=Math.max(1,o)),this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5)try{const d=`${s.conversationType}|${s.targetId}|${s.channelId||""}|${((u=s.latestMessage)==null?void 0:u.messageUId)||""}`,h=yn(this,hi).get(d);h&&(s.latestMessage.kitReadReceiptInfo=h,o=Math.max(1,o))}catch(d){this.logger.warn(B.L_HANDLE_READ_RECEIPT_V5_E,`handle Updated Items error: ${d}`)}return{changeType:o,conversation:s}}_paddingData(s,n){s.latestMessage=n.latestMessage?_i(n.latestMessage):null,s.unreadCount=n.unreadMessageCount||0,s.isTop=!!n.isTop,f.electronExtension.enable()?(s.draft=n.draft||"",s.updateTime=n.operationTime||(n.latestMessage?n.latestMessage.sentTime:0)):s.updateTime=n.latestMessage?n.latestMessage.sentTime:0,n.notificationLevel&&(s.notificationLevel=n.notificationLevel)}_transPriConversation(s){const n=this.ctx.appData.getUserProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,i.online=n.online,this._paddingData(i,s),i}_transSystemConversation(s){const n=this.ctx.appData.getSystemProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,this._paddingData(i,s),i}_transGroupConversation(s){const n=this.ctx.appData.getGroupProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,i.memberCount=n.memberCount,s.hasMentioned?i.mentionedType=s.mentionedInfo.type===f.MentionedType.ALL?ut.AT_ALL:ut.AT_ME:i.mentionedType=ut.NONE,this._paddingData(i,s),i}_parseConversationList(s){const n=[];return s.forEach(i=>{const{targetId:o,conversationType:r,latestMessage:a}=i;switch(a&&this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&a.readReceiptInfo&&a.senderUserId===this.ctx.userId&&(a.sentStatus=f.SentStatus.READ),r){case f.ConversationType.PRIVATE:n.push(this._transPriConversation(i));return;case f.ConversationType.GROUP:n.push(this._transGroupConversation(i));return;case f.ConversationType.SYSTEM:n.push(this._transSystemConversation(i));return;default:this.logger.warn(B.L_PARSE_CONVERSATION_E,`unknown conversation type: ${r}, targetId: ${o}`);return}}),n}getCachedConversationList(){return this._list.slice()}_addToConversationList(s,n=!0){let i=this._list.findIndex(l=>Et(l,s));if(i>-1){if(!n)return{origin:i,current:i};this._list.splice(i,1)}const{isTop:o,updateTime:r}=s;let a=this._list.findIndex((l,c)=>o!==l.isTop?o:r!==l.updateTime?r>l.updateTime:i>-1&&c>=i);return a===-1&&(a=this._list.length),this._list.splice(a,0,s),{origin:i,current:a}}_onRecvNewMessages(s){this._messageQueue.push(...s.data)}_handleMessage(s){const n=this.ctx.userId;let i=0;const o=vt(s),{content:r,conversationType:a,targetId:l,channelId:c,sentTime:u,isCounted:d,senderUserId:h}=s;let p=this._pool.get(o);if(!p){const _={latestMessage:s,conversationType:a,targetId:l,channelId:c,lastUnreadTime:0};a===f.ConversationType.PRIVATE?p=this._transPriConversation(_):a===f.ConversationType.GROUP?p=this._transGroupConversation(_):p=this._transSystemConversation(_),i=2}return a===f.ConversationType.GROUP&&p.mentionedType!==ut.AT_ME&&h!==n&&(p.mentionedType=Math.max(this._getMentionedType(n,r.mentionedInfo),p.mentionedType),i=Math.max(i,1)),u>=p.updateTime&&(p.latestMessage=s,p.updateTime=u,i=2),d&&h!==n&&(p.unreadCount+=1,p.markReaded=!1,i=Math.max(i,1)),{changeType:i,conversation:p}}_recalculatePosition(s){const n=[];[...s].sort((o,r)=>o.updateTime-r.updateTime).forEach(o=>{const{current:r}=this._addToConversationList(o);n.push({order:r,conversation:o})}),this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_ORDER_CHANGE,n))}async _getMoreRemoteConversation(s=!1,n=0){const i=n===0?30:200,{code:o,data:r}=await f.getConversationListByTimestamp({count:i,startTime:n});if(s&&this._pullOfflineMessageFinished)return;if(o!==f.ErrorCode.SUCCESS&&!s){this.logger.error(B.L_GET_CONVERSATION_E,`get conversation list failed: code = ${o}, count = ${i}, startTime = ${n}`),this._getRemoteConversationTimer=setTimeout(()=>this._getMoreRemoteConversation(s,n),1e3);return}this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&this._handleLatestReadReceiptInfoV5(r||[]);const a=r||[];if(a.length===0||s){this._onGetRemoteConversationListDone(s);return}n===0&&!s&&(this._list.length=0);const c=this._parseConversationList(a);let u=n;if(u=this._handleNextRequestTimestamp(u,c),this.ctx.dispatchEvent(new ne(Z.CONVERSATION_LIST_RESET,this._list)),s||f.electronExtension.enable()||a.length<i){this._onGetRemoteConversationListDone(s);return}this._getRemoteConversationTimer=setTimeout(()=>this._getMoreRemoteConversation(!1,u),300)}_handleNextRequestTimestamp(s,n){return n.forEach(i=>{this._addToConversationList(i,!1),i.updateTime&&(s=s===0?i.updateTime:Math.min(i.updateTime,s))}),s}_onPullOfflineMessageFinished(){this._getRemoteConversationTimer&&(clearTimeout(this._getRemoteConversationTimer),this._getRemoteConversationTimer=null),this._handleQueueTimer&&(clearTimeout(this._handleQueueTimer),this._handleQueueTimer=null),this._pullOfflineMessageFinished?this._handleQueueDelay():this._getMoreRemoteConversation(!1),this._pullOfflineMessageFinished=!0}_onConnected(){J2(this,ya,X2).call(this),!this._getRemoteConversationFinished&&!yn(this,pi)&&this._getMoreRemoteConversation(!0)}_onConversationsSynced(){Yo(this,zo,!0),this._pullOfflineMessageFinished||setTimeout(()=>this._getMoreRemoteConversation(!1),100)}async _handleLatestReadReceiptInfoV5(s){var r;const n=this._buildIdentifiersForLatest(s);if(!n.length)return;const i=100,o=[];for(let a=0;a<n.length;a+=i)o.push(n.slice(a,a+i));try{(await Promise.all(o.map(l=>f.getMessageReadReceiptInfoV5ByIdentifiers(l)))).forEach(l=>{((l==null?void 0:l.data)||[]).forEach(u=>{const d=(u==null?void 0:u.identifier)||{},h=`${d.conversationType}|${d.targetId}|${d.channelId||""}|${u.messageUId}`;yn(this,hi).set(h,u)})}),this._list.forEach(l=>{if(l.conversationType!==f.ConversationType.PRIVATE)return;const c=l.latestMessage;if(!(c!=null&&c.messageUId))return;const u=`${l.conversationType}|${l.targetId}|${l.channelId||""}|${c.messageUId}`,d=yn(this,hi).get(u);d&&(l.latestMessage.kitReadReceiptInfo=d,this._pool.set(l.key,l))})}catch(a){(r=this.logger)==null||r.warn(B.L_GET_READ_RECEIPT_INFO_V5_E,`getMessageReadReceip·tInfoV5ByIdentifiers error: ${a}`)}}_buildIdentifiersForLatest(s){const n=[];return s.forEach(i=>{const o=i.latestMessage;i.conversationType===f.ConversationType.PRIVATE&&(o==null?void 0:o.messageDirection)===f.MessageDirection.SEND&&(o!=null&&o.messageUId)&&n.push({identifier:{conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId},messageUId:o.messageUId})}),n}_onV5ReceiptResponse(s){if(this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5)try{if(!s||!Array.isArray(s))return;s.forEach(n=>{const i=(n==null?void 0:n.identifier)||{},o=`${i.conversationType}|${i.targetId}|${i.channelId||""}|${n.messageUId}`;yn(this,hi).set(o,n);const r=vt({conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId}),a=this._pool.get(r);a&&a.latestMessage&&a.latestMessage.messageUId===(n==null?void 0:n.messageUId)&&(a.latestMessage.kitReadReceiptInfo=n,this._pool.set(r,a),this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[a])),this.logger.debug(B.L_V5_RECEIPT_RESPONSE_O,`onV5ReceiptResponse success: ${JSON.stringify(a)}`))})}catch(n){this.logger.warn(B.L_V5_RECEIPT_RESPONSE_E,`onV5ReceiptResponse error: ${n}`)}}_onGetRemoteConversationListDone(s){s||(this._getRemoteConversationFinished=!0),this._handleQueue()}_handleQueueDelay(){this._handleQueueTimer||(this._handleQueueTimer=setTimeout(()=>{this._handleQueueTimer=null,this._handleQueue()},20))}_handleQueue(){if(this._messageQueue.length===0&&this._converNtfQueue.length===0){this._handleQueueDelay();return}if(this._list.length>=20&&!this._getRemoteConversationFinished)return;const s=new Set,n=new Set,i=new Set,o=Number.MAX_SAFE_INTEGER,r=20,a=Date.now(),l=c=>{const{changeType:u,conversation:d}=c;u===1?(i.add(d),s.add(d)):u===2&&(n.add(d),s.add(d))};if(this._handleMessageQueue(l,s,o,r,a),this._handleQueueNotify(l,s,o,r,a),n.size&&this._recalculatePosition(n),i.size){const c=[...i].filter(u=>!n.has(u));c.length&&this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,c))}this._handleQueueDelay()}_handleMessageQueue(s,n,i,o,r){for(;this._messageQueue.length&&Date.now()-r<o&&n.size<i;){const a=this._messageQueue[0];if(!this._getRemoteConversationFinished&&!a.isOffLineMessage)break;if(this._getRemoteConversationFinished&&a.isOffLineMessage){this._messageQueue.shift();continue}const l=_i(this._messageQueue.shift());s(this._handleMessage(l))}}_handleQueueNotify(s,n,i,o,r){var a,l,c;if(!this._getRemoteConversationFinished){let u=0;for(;this._messageQueue.length===0&&u<this._converNtfQueue.length&&Date.now()-r<o&&n.size<i;){const d=this._converNtfQueue[u];if((a=d.updatedItems)!=null&&a.latestMessage){if(!d.updatedItems.latestMessage.val.isOffLineMessage)break;this._converNtfQueue.splice(u,1),s(this._handleConversationNtf(d));continue}u+=1}return}for(;this._messageQueue.length===0&&this._converNtfQueue.length&&Date.now()-r<o&&n.size<i;){const u=this._converNtfQueue.shift();(c=(l=u.updatedItems)==null?void 0:l.latestMessage)!=null&&c.val.isOffLineMessage||s(this._handleConversationNtf(u))}}async getMoreConversationList(s,n){let i=s?this._list.findIndex(l=>Et(l,s)):-1;i===-1?i=0:i=i+1;const o=i+(n||30),r=this._list.slice(i,o);return{hasMore:this._list.length>o||!this._getRemoteConversationFinished,code:f.ErrorCode.SUCCESS,list:r}}_alertImLibFailure(s){const n=s===av?"alert.imlib.failed.network":"alert.imlib.failed.generic";this.ctx.alert(n,s)}async removeConversation(s){const{code:n}=await f.removeConversation(s);if(n!==f.ErrorCode.SUCCESS){this._alertImLibFailure(n);return}const i=vt(s),o=this._list.findIndex(l=>Et(l,s));if(o>-1){const[l]=this._list.splice(o,1);this._pool.delete(i),this.ctx.dispatchEvent(new ne(Z.CONVERSATIN_ITEM_REMOVE,[l])),l===this._openedConversation&&this._setOpenedConversation(null,!1)}if(!this.ctx.store.getCommandSwitch(It.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION))return;this.ctx.message.removeCachedMessages(s);const a=f.getServerTime()+5e3;f.clearHistoryMessages(s,a),f.electronExtension.enable()&&f.electronExtension.deleteMessagesByTimestamp(s,a,!1)}async openConversation(s,n=!0){if($n(s))return{code:Ds.INVALID_CONVERSATION};if(!this._getRemoteConversationFinished||!this._pullOfflineMessageFinished)return{code:Ds.CONVERSATION_LIST_NOT_READY};if(this._openedConversation&&Et(this._openedConversation,s))return{code:f.ErrorCode.SUCCESS};const{targetId:i,conversationType:o,channelId:r=""}=s;let a=this._list.findIndex(c=>Et(c,s)),l=this._list[a];return l||([l]=this._parseConversationList([{targetId:i,conversationType:o,channelId:r,latestMessage:null,lastUnreadTime:0}]),l.updateTime=f.getServerTime(),this._recalculatePosition(new Set([l]))),this._setOpenedConversation(l,n),{code:f.ErrorCode.SUCCESS}}_setOpenedConversation(s,n=!0){this._clearTypingStatus(),this._openedConversation=s,this.ctx.emit(new ne(ge.CONVERSATION_SELECTED,{conversation:s,focusInput:n}),1)}async setConversationNotificationLevel(s,n){if($n(s))return{code:Ds.INVALID_CONVERSATION};const i=this._list.find(r=>Et(r,s));if(!i)return{code:f.ErrorCode.CONVER_GET_ERROR};if(i.notificationLevel===n)return{code:f.ErrorCode.SUCCESS};const{code:o}=await f.setConversationNotificationLevel(s,n);return o!==f.ErrorCode.SUCCESS?(this._alertImLibFailure(o),{code:o}):(i.notificationLevel=n,this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[i])),{code:o})}async setConversationToTop(s,n){if($n(s))return{code:Ds.INVALID_CONVERSATION};n=!!n;const i=this._list.find(r=>Et(r,s));if(!i)return{code:f.ErrorCode.CONVER_GET_ERROR};if(i.isTop===n)return{code:f.ErrorCode.SUCCESS};const{code:o}=await f.setConversationToTop(s,n);return o!==f.ErrorCode.SUCCESS?(this._alertImLibFailure(o),{code:o}):(i.isTop=n,this._recalculatePosition(new Set([i])),{code:o})}async markConversationReaded(s){var o;const{data:n}=await f.getFirstUnreadMessage(s);await this.clearUnreadCountByTimestamp(s,((o=s.latestMessage)==null?void 0:o.sentTime)||Date.now());const i=[];n&&i.push(_i(n)),s.latestMessage&&i.push(s.latestMessage),this.ctx.message.sendReadReceiptMessage(s,i)}markConversationUnread(s){s.markReaded=!1,s.markUnread=!0,this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[s]))}getCachedConversationByKey(s){return this._pool.get(s)}async clearUnreadCountByTimestamp(s,n){const i=this.getCachedConversationByKey(vt(s));if(!f.electronExtension.enable())await f.clearMessagesUnreadStatus(s),i.unreadCount=0,i.mentionedType=ut.NONE,i.markReaded=!0,i.markUnread=!1;else{await f.clearUnreadCountByTimestamp(s,n);const{data:o}=await f.getUnreadCount(s);i.unreadCount=o,i.markReaded=!0,i.markUnread=!1,i.mentionedType=ut.NONE}return this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[i])),await f.sendSyncReadStatusMessage(s,n+1||Date.now()),{code:f.ErrorCode.SUCCESS}}async handleConversationDraft(s,n){if(!s)return;const{data:i}=await f.getTextMessageDraft(s);if(i===n)return;const o=vt(s);let r=this._pool.get(o);if(n){const{code:l}=await f.saveTextMessageDraft(s,n);if(l!==f.ErrorCode.SUCCESS||!r)return;r.draft=n,r.updateTime=f.getServerTime();const{current:c}=this._addToConversationList(r);this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_ORDER_CHANGE,[{order:c,conversation:r}]));return}if(await f.clearTextMessageDraft(s),!r)return;r.draft="",r.latestMessage&&(r.updateTime=r.latestMessage.sentTime);const{current:a}=this._addToConversationList(r);this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_ORDER_CHANGE,[{order:a,conversation:r}]))}updateLastReadTime(s,n){if(!this.ctx.conversationStore)return;const{conversationType:i,targetId:o,channelId:r=""}=s,a=this.ctx.conversationStore.get(i,o,r);n>a.lastReadTime&&this.ctx.conversationStore.set(i,o,{lastReadTime:n},r)}getLastReadTime(s){if(!this.ctx.conversationStore)return 0;const{conversationType:n,targetId:i,channelId:o=""}=s;return this.ctx.conversationStore.get(n,i,o).lastReadTime||0}sendTypingStatus(s=f.MessageType.TEXT){!this._openedConversation||this._openedConversation.conversationType!==f.ConversationType.PRIVATE||this._typingTime||(this._typingTime=setTimeout(()=>{this._typingTime=null},5e3),f.sendTypingStatusMessage(this._openedConversation,s))}_clearTypingStatus(){this._typingTime&&(clearTimeout(this._typingTime),this._typingTime=null)}}hi=new WeakMap,pi=new WeakMap,zo=new WeakMap,ya=new WeakSet,X2=function(){const{isConversationListIncludeUltraGroup:s}=f.getAppSettings()||{};Yo(this,pi,!!s)};const cv=e=>({...e}),$2={radius:20,portraitSize:"large",topBackgroundColor:"#EFF4FF",hoverBackgroundColor:"#F3F5FA",activeBackgroundColor:"#D2E1FE"};class uv extends Ts{constructor(s){super(s);q(this,"conversationItemCfg",{});this.setConversationItemCfg($2)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this.setConversationItemCfg($2)}cloneConversationItemCfg(){return cv(this.conversationItemCfg)}setConversationItemCfg(s){this.conversationItemCfg={...this.conversationItemCfg,...s}}}class dv extends Ac{constructor(s,n,i,o){super();q(this,"store");q(this,"conversationStore",null);q(this,"i18n");q(this,"appData");q(this,"message");q(this,"conversation");q(this,"conversationItem");q(this,"input");q(this,"bubble");q(this,"audioPlayer");q(this,"conversationMenu");q(this,"msgMenu");q(this,"speechToTextStore");q(this,"_stat");q(this,"_originUserId","");q(this,"_readReceiptVersion");q(this,"_status",j.RCConnectionStatus.DISCONNECTED);q(this,"isElectronRuntime",!1);q(this,"modalContainerId","");q(this,"allowedToRecallTime");q(this,"allowedToReEditTime");this.context=s,this.logger=n,this._emittor=i,this._stat=new cc(s),this.modalContainerId=o.modalContainerId||"",this.allowedToRecallTime=o.allowedToRecallTime||120,this.allowedToReEditTime=o.allowedToReEditTime||60,this.store=new fh(n),this.i18n=new wp(this),this.audioPlayer=new rv(this),this.appData=new Rp(this,o.hooks),this.message=new iv(this),this.conversation=new lv(this),this.conversationItem=new uv(this),this.input=new dm(this),this.bubble=new Km(this),this.conversationMenu=new ov(this),this.msgMenu=new zm(this),this.speechToTextStore=new Cc(n,this),this.msgMenu.setSpeechToTextStore(this.speechToTextStore),o.language&&this.i18n.setLanguage(o.language),f.addEventListener(f.Events.CONNECTED,this._onConnected,this),f.addEventListener(f.Events.DISCONNECT,this._onDisconnected,this),f.addEventListener(f.Events.SUSPEND,this._onSuspend,this),f.addEventListener(f.Events.CONNECTING,this._onConnecting,this)}get readReceiptVersion(){return this._readReceiptVersion}get userId(){return this._originUserId}get isQuoteMessageV2Enabled(){return this.store.getCommandSwitch(It.USE_QUOTE_MESSAGE_V2)}get status(){return this._status}_onConnecting(){this._status=j.RCConnectionStatus.CONNECTING,this.dispatchEvent(new Yi(j.RCConnectionStatus.CONNECTING))}_onDisconnected(s){this._status=j.RCConnectionStatus.DISCONNECTED,this.dispatchEvent(new Yi(j.RCConnectionStatus.DISCONNECTED,s))}_onSuspend(s){this._status=j.RCConnectionStatus.SUSPENDED,this.dispatchEvent(new Yi(j.RCConnectionStatus.SUSPENDED,s))}_onConnected(){var n;this._status=j.RCConnectionStatus.CONNECTED,this._readReceiptVersion=(n=f.getAppSettings())==null?void 0:n.readReceiptVersion;const s=f.getCurrentUserId();if(this._originUserId===s){this.dispatchEvent(new Yi(j.RCConnectionStatus.CONNECTED));return}this._originUserId&&this._originUserId!==s&&(this._originUserId=s,this.dispatchEvent(new ne(Z.DESTROY_USER_CACHE),!1)),this._originUserId=s,this.dispatchEvent(new ne(Z.INIT_USER_CACHE),!1),this.dispatchEvent(new Yi(j.RCConnectionStatus.CONNECTED)),this.conversationStore=new mh(window,this.getAppkey(),this.userId,this.logger)}destroy(){f.removeEventListener(f.Events.CONNECTED,this._onConnected,this),f.removeEventListener(f.Events.DISCONNECT,this._onDisconnected,this),f.removeEventListener(f.Events.SUSPEND,this._onSuspend,this),f.removeEventListener(f.Events.CONNECTING,this._onConnecting,this),this.i18n.destroy(),this.appData.destroy(),this.message.destroy(),this.conversation.destroy(),this.input.destroy(),this.bubble.destroy(),this.conversationMenu.destroy(),this.msgMenu.destroy(),this.speechToTextStore.destroy(),this._originUserId="",this._readReceiptVersion=void 0}alert(s,...n){this.emit(new ne(ge.ALERT_EVENT,this.i18n.format(s,...n)))}confirm(s,...n){const i=new ne(ge.CONFIRM_EVENT,this.i18n.format(s,...n));return this.emit(i),i.awaitResult()}emit(s,n=0){const i=s.clone(n!==0);this._emittor.dispatchEvent(i,!1),!(n===2||n===0&&i.isDefaultPrevented())&&this.dispatchEvent(s)}getAppkey(){return this.context.getAppkey()}statistic(s){this._stat.report(s)}}const fv=["src"],hv={class:"progress"},pv={class:"time"},gv=Re(Te({__name:"hq-voice-message.ce",props:{value:{type:Object},isQuote:{type:Boolean}},setup(e){const t=e,s=t.value,n=t.isQuote||!1,i=h=>`${Math.max(0,Math.floor(h))}s`,o=me(()=>i(s.duration)),r=gp,a=_p;s.isOwner;const l=new Array(20).fill(0).map(h=>(Math.floor(Math.random()*9)+3)*2),c=me(()=>Math.floor(s.progress/100*20)||-1),u=me(()=>s.playing?a:r),d=()=>s.toggle();return(h,p)=>(R(),D("div",null,[y("div",{class:Fe(["voice",{"is-quote":N(n)}])},[y("img",{src:u.value,alt:"Button Icon",class:"control",onClick:d},null,8,fv),y("div",hv,[(R(!0),D(Ne,null,Lt(N(l),(_,m)=>(R(),D("div",{class:Fe(["line",{active:c.value>=m}]),style:rt({height:_+"px"})},null,6))),256))]),y("div",pv,re(o.value),1)],2)]))}}),[["styles",[`.voice{display:flex;align-items:center;padding:20px;gap:10px}.voice.is-quote{padding:0;gap:6px}.voice .control{width:20px;height:20px;cursor:pointer}.voice.is-quote .control{width:16px;height:16px}.voice .progress{height:22px;display:flex;align-items:center}.voice .progress .line{margin-right:4px;width:3px;border-radius:3px;animation:bounce-in 2s;background:#020814}.voice .progress .line.active{transition:all .5s;background:#0047FF}.voice.is-quote .progress{height:16px}.voice.is-quote .progress .line{margin-right:2px;width:2px}.voice .time{font-size:14px}.voice.is-quote .time{font-size:12px}
|
|
381
|
+
`]]]);var H2=(e=>(e.HQVoiceMessageComponent="rc-hq-voice-message",e))(H2||{});const G2={"rc-hq-voice-message":gv};var B2=(e=>(e.HQVoiceMessageComponent="HQVoiceMessageComponent",e))(B2||{});class _v{constructor(t){q(this,"logger");q(this,"_customMessageComponents",{});q(this,"_overrideAbleComponents",{...G2});q(this,"_overrideCtx");this.ctx=t,this.logger=t.logger,this._overrideCtx={computed:me,ref:U,reactive:on,getLanguage:()=>li.value,getCurrentUserId:()=>this.ctx.userId},r_(t),ZE(t)}registerCustomElement(t,s){const n=H2[t];if(!n){this.logger.error(B.A_REGISTER_CUSTOM_ELEMENT_O,`Tag is either illegal or cannot be rewritten: OverrideAbleComponentTag[${t}]`);return}this.logger.info(B.A_REGISTER_CUSTOM_ELEMENT_O,`tag: ${n}`),this.ctx.statistic(`Override_${t}`);const i=G2[n],o=n.replace(/^rc-/,"rc-override-");this._overrideAbleComponents[o]=i;const r=this._overrideCtx;this._overrideAbleComponents[n]={props:{...i.props},setup(a){return s.setup(a,r)},template:s.template.replace(/rc-origin/g,o),styles:s.styles}}registerDOMElements(){this.logger.info(B.L_REGISTER_DOM_ELEMENTS_O),Object.entries(this._overrideAbleComponents).forEach(([t,s])=>{customElements.get(t)||customElements.define(t,Di(s))}),Object.entries(P9).forEach(([t,s])=>{customElements.get(t)||customElements.define(t,Di(s))}),Object.entries(this._customMessageComponents).forEach(([t,s])=>{customElements.get(t)||customElements.define(t,s)}),Object.entries(zE).forEach(([t,s])=>{customElements.get(t)||customElements.define(t,Di(s))})}registerMessageType(t,s){const n=f.registerMessageType(t,!!s.isPersited,!!s.isCounted,s.searchProps,!!s.isStatusMessage);if(s.digest&&Ec(t,s.digest),s.component){const{component:i}=s,o=`rc-custom-${i.tag}`;sv(t,o);const r=this._overrideCtx,{setup:a,styles:l,template:c}=i;this._customMessageComponents[o]=Di({props:["message"],setup(u){return a(u,r)},styles:l,template:c})}return n}destroy(){A2(),li.value="zh_CN"}}var mv=Object.defineProperty,Ev=Object.getOwnPropertyDescriptor,Mt=(e,t,s,n)=>{for(var i=n>1?void 0:n?Ev(t,s):t,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(n?r(t,s,i):r(i))||i);return n&&i&&mv(t,s,i),i};function zs(e){return function(t,s,n){const i=n.value;n.value=function(...o){if(this._isReady){this._logger.error(e,`RCKitApplication.${s} must be called before 'ready'`);return}return i.apply(this,o)}}}function Qs(e){return function(t,s,n){const i=n.value;n.value=function(...o){if(!this._isReady){this._logger.error(e,`'RCKitApplication.${s}' failed: not ready yet.`);return}return i.apply(this,o)}}}class _t extends Ac{constructor(s,n,i){super();q(this,"_ctx");q(this,"_uiModule");q(this,"_isReady",!1);this.context=s,this._logger=n,this._ctx=new dv(this.context,n,this,i),this._uiModule=new _v(this._ctx),this.context.ondestroy=this._onIMDestroy.bind(this)}_onIMDestroy(){this.destroy()}setCommandSwitch(s,n){this._ctx.store.setCommandSwitch(s,n)}getCommandSwitch(s){return this._ctx.store.getCommandSwitch(s)}setConversationBarSwitch(s){this._ctx.store.setConversationBarSwitch(s),this._ctx.dispatchEvent(new ne(Z.CONVERSATION_BAR_SWITCH_CHANGE,s))}setConversationDetailBackSwitch(s){this._ctx.store.setConversationDetailBackSwitch(s),this._ctx.dispatchEvent(new ne(Z.CONVERSATION_DETAIL_BACK_SWITCH_CHANGE,s))}setConversationBarTitle(s){this._ctx.store.setConversationBarTitle(s),this._ctx.dispatchEvent(new ne(Z.CONVERSATION_BAR_TITLE_CHANGE,s))}registerCustomElement(s,n){this._uiModule.registerCustomElement(s,n)}registerMessageType(s,n){return this._uiModule.registerMessageType(s,n)}cloneLanguageEntries(s){return this._ctx.i18n.cloneLanguageEntries(s)}registerLanguagePack(s,n,i="ltr"){this._ctx.i18n.registerLanguagePack(s,n,i)}setLanguage(s){this._ctx.i18n.setLanguage(s)}getLanguage(){return this._ctx.i18n.getLanguage()}getSupportedLanguages(){return this._ctx.i18n.getSupportedLanguages()}setPushConfigHook(s){this._ctx.store.setPushConfigHook(s)}updateUserProfile(s){this._ctx.appData.updateUserProfile(s)}updateGroupProfile(s){this._ctx.appData.updateGroupProfile(s)}updateUserOnlineStatus(s,n){this._ctx.appData.updateUserOnlineStatus(s,n)}updateGroupMembers(s,n){this._ctx.appData.updateGroupMembers(s,n)}addGroupMembers(s,n){this._ctx.appData.addGroupMembers(s,n)}removeGroupMembers(s,n){this._ctx.appData.removeGroupMembers(s,n)}cloneConversationMenu(){return this._ctx.conversationMenu.cloneConversationMenu()}setConversationMenu(s){this._ctx.conversationMenu.setConversationMenu(s)}cloneMessageMenu(){return this._ctx.msgMenu.cloneMessageMenu()}setMessageMenu(s){this._ctx.msgMenu.setMessageMenu(s)}openConversation(s,n=!0){return this._ctx.conversation.openConversation(s,n)}removeConversation(s){return this._ctx.conversation.removeConversation(s)}getOpenedConversation(){const s=this._ctx.conversation.getOpenedConversation();return s?{...s}:null}setConversationExtension(s){this._ctx.store.setConversationExtension(s)}cloneInputMenu(){return this._ctx.input.cloneInputMenu()}setInputMenu(s){this._ctx.input.setInputMenu(s)}cloneMessageBubbleCfg(){return this._ctx.bubble.cloneMessageBubbleCfg()}setMessageBubbleCfg(s){this._ctx.bubble.setMessageBubbleCfg(s)}cloneConversationItemCfg(){return this._ctx.conversationItem.cloneConversationItemCfg()}setConversationItemCfg(s){this._ctx.conversationItem.setConversationItemCfg(s)}cloneImageEmojiLibraries(){return this._ctx.input.cloneImageEmojiLibraries()}setImageEmojiLibraries(s){this._ctx.input.setImageEmojiLibraries(s)}cloneChatEmojiLibrary(){return this._ctx.input.cloneChatEmojiLibrary()}setChatEmojiLibrary(s){this._ctx.input.setChatEmojiLibrary(s)}setQuoteEnableMessageTypeList(s){this._ctx.input.setQuoteEnableMessageTypeList(s)}getQuoteEnableMessageTypeList(){return this._ctx.input.getQuoteEnableMessageTypeList()}sendMessage(s,n,i){return this._ctx.message.sendMessage(s,n,i)}insertMessage(s,n){return this._ctx.message.insertMessage(s,n)}ready(){if(this._isReady){this._logger.warn(B.A_READY_O,"RCKitApplication repeat call 'ready()'");return}this._logger.info(B.A_READY_O,"RCKitApplication 'ready'"),this._uiModule.registerDOMElements(),this._isReady=!0}ifReady(){return this._isReady}getCurrentUserId(){return this._ctx.userId}destroy(){this.removeAllEventListeners(),this._ctx.destroy(),this._uiModule.destroy()}}Mt([zs(B.A_SET_COMMAND_SWITCH_O)],_t.prototype,"setCommandSwitch",1),Mt([zs(B.A_REGISTER_CUSTOM_ELEMENT_O)],_t.prototype,"registerCustomElement",1),Mt([zs(B.A_REGISTER_MESSAGE_TYPE_O)],_t.prototype,"registerMessageType",1),Mt([zs(B.A_REGISTER_LANGUAGE_PACK_O)],_t.prototype,"registerLanguagePack",1),Mt([Qs(B.A_UPDATE_USER_PROFILE_E)],_t.prototype,"updateUserProfile",1),Mt([Qs(B.A_UPDATE_GROUP_PROFILE_E)],_t.prototype,"updateGroupProfile",1),Mt([Qs(B.A_UPDATE_USER_ONLINE_STATE_E)],_t.prototype,"updateUserOnlineStatus",1),Mt([Qs(B.A_UPDATE_GROUP_MEMBERS_E)],_t.prototype,"updateGroupMembers",1),Mt([Qs(B.A_ADD_GROUP_MEMBERS_E)],_t.prototype,"addGroupMembers",1),Mt([Qs(B.A_REMOVE_GROUP_MEMBERS_E)],_t.prototype,"removeGroupMembers",1),Mt([Qs(B.A_OPEN_CONVERSATION_E)],_t.prototype,"openConversation",1),Mt([Qs(B.A_REMOVE_CONVERSATION_E)],_t.prototype,"removeConversation",1),Mt([zs(B.A_SET_CONVERSATION_EXTENSION_E)],_t.prototype,"setConversationExtension",1),Mt([zs(B.A_SET_INPUT_MENU_E)],_t.prototype,"setInputMenu",1),Mt([zs(B.A_SET_MESSAGE_BUBBLE_CFG_E)],_t.prototype,"setMessageBubbleCfg",1),Mt([zs(B.A_SET_CONVERSATION_ITEM_CFG_E)],_t.prototype,"setConversationItemCfg",1),Mt([zs(B.A_SET_CHAT_EMOJI_LIBRARY_E)],_t.prototype,"setChatEmojiLibrary",1),Mt([zs(B.A_SET_QUOTE_ENABLE_MESSAGE_TYPE_LIST_O)],_t.prototype,"setQuoteEnableMessageTypeList",1),Mt([Qs(B.A_SEND_MESSAGE_E)],_t.prototype,"sendMessage",1),Mt([Qs(B.A_INSERT_MESSAGE_E)],_t.prototype,"insertMessage",1),j.VersionManage.add("IMKit",lc);const vv={tag:"IMKit",verify(e){return e.tag==="browser"&&typeof customElements<"u"},setup(e,t,s){const n=e.createLogger("IMKit","IM");return s.logLevel&&n.setOutputLevel(s.logLevel),n.warn(B.A_INIT_O,`Commit: ${h2}, Version: ${lc}`),new _t(e,n,s)}};Oe.RCKIT_COMMIT_VERSION=h2,Oe.RCKIT_VERSION=lc,Oe.RCKitApplication=_t,Oe.RCKitBubbleLayout=hc,Oe.RCKitChatEmojiLibraryID=cm,Oe.RCKitCommand=It,Oe.RCKitConversationMenuID=V2,Oe.RCKitEvent=ne,Oe.RCKitEvents=ge,Oe.RCKitInputMenuID=ui,Oe.RCKitInputMenuPosition=p2,Oe.RCKitInstaller=vv,Oe.RCKitMentionedType=ut,Oe.RCKitMessageMenuID=Qt,Oe.RCKitModalBtnType=Tn,Oe.RCKitModalForwardingType=Hn,Oe.RCKitOverrideAbleComponent=B2,Oe.isMobileDevice=gs,Object.defineProperty(Oe,Symbol.toStringTag,{value:"Module"})});
|