jiuyiUniapp/jiuyi/node_modules/trtc-sdk-v5/plugins/debug/debug.iife.js

55 lines
83 KiB
JavaScript

"use strict";var Debug=(()=>{var st=Object.defineProperty;var Rr=Object.getOwnPropertyDescriptor;var $o=Object.getOwnPropertyNames;var Ho=Object.prototype.hasOwnProperty;var Wo=(e,t,r)=>t in e?st(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Vo=(e,t)=>{for(var r in t)st(e,r,{get:t[r],enumerable:!0})},zo=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of $o(t))!Ho.call(e,i)&&i!==r&&st(e,i,{get:()=>t[i],enumerable:!(o=Rr(t,i))||o.enumerable});return e};var jo=e=>zo(st({},"__esModule",{value:!0}),e),Zt=(e,t,r,o)=>{for(var i=o>1?void 0:o?Rr(t,r):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(i=(o?s(t,r,i):s(i))||i);return o&&i&&st(t,r,i),i};var D=(e,t,r)=>(Wo(e,typeof t!="symbol"?t+"":t,r),r);var Ji={};Vo(Ji,{Debug:()=>Xt,default:()=>Yi});function kr(){return{name:"StartDebugOptions",required:!1}}function Pr(){return{name:"UpdateDebugOptions",required:!1}}function Ir(){return{name:"StopDebugOptions",required:!1}}var Ur=typeof location=="undefined"?!1:location.protocol==="file:"||location.hostname==="localhost"||location.hostname==="127.0.0.1",er=()=>{let e=window.navigator&&window.navigator.userAgent||"",t=/iPad/i.test(e)||/iPhone/i.test(e),r=/Android/i.test(e);return t||r},qo=()=>{let e=navigator.language;return e=e.substring(0,2),e==="zh"},z=qo(),Y={LOG_BUTTON:z?"\u65E5\u5FD7":"Log",NETWORK_BUTTON:z?"\u7F51\u7EDC":"Network",UPLOAD_BUTTON:z?"\u4E0A\u4F20":"Upload",EXPORT_BUTTON:z?"\u5BFC\u51FA":"Export",HIDE_BUTTON:z?"\u9690\u85CF":"Hide",GO_BOTTOM:z?"\u5E95\u90E8":"goBottom",BACK_TOP:z?"\u9876\u90E8":"backTop",UPLINK:z?"\u4E0A\u884C":"Uplink",Downlink:z?"\u4E0B\u884C":"Downlink",NO_DATA:z?"\u6682\u65E0\u6570\u636E":"No Data",BASIC:z?"\u57FA\u7840":"Basic"},Nr=e=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(">","&gt;").replace(">","&lt;"),te={"play() error: NotAllowedError:":{tips_zh:e=>e.includes("main <video>")||e.includes("main <audio>")?"\u8FDC\u7AEF\u6D41\u81EA\u52A8\u64AD\u653E\u53D7\u9650\u5BFC\u81F4\u64AD\u653E\u5931\u8D25":"\u672C\u5730\u6D41\u51FA\u73B0\u81EA\u52A8\u64AD\u653E\u5931\u8D25\u62A5\u9519\uFF0C\u4E00\u822C\u53EA\u51FA\u73B0\u5728 Android \u5FAE\u4FE1\u8BBE\u5907\uFF0C\u65E0\u9700\u5904\u7406",tips_en:e=>e.includes("main <video>")||e.includes("main <audio>")?"Remote stream auto play is restricted and playback fails":"Local stream playback failure, generally only occurs in Android WeChat devices, no need to handle",color:"red",class:"red"},"updateStream() try to recover local stream":{tips_zh:"\u8BBE\u5907\u91C7\u96C6\u5F02\u5E38\uFF0C\u6B63\u5728\u5C1D\u8BD5\u81EA\u52A8\u6062\u590D\u91C7\u96C6",tips_en:"Device acquisition exception, automatic recovery is in progress"},"updateStream() recover local stream successfully":{tips_zh:"\u8BBE\u5907\u91C7\u96C6\u5F02\u5E38\uFF0C\u81EA\u52A8\u6062\u590D\u91C7\u96C6\u6210\u529F",tips_en:"Device acquisition exception, automatic recovery is successful"},"updateStream() failed to recover local stream":{tips_zh:"\u8BBE\u5907\u91C7\u96C6\u5F02\u5E38\uFF0C\u81EA\u52A8\u6062\u590D\u91C7\u96C6\u5931\u8D25",tips_en:"Device acquisition exception, automatic recovery failed"},"main stream - video track is muted":{tips_zh:"\u8868\u793A\u6536\u5230\u7684\u89C6\u9891\u6570\u636E\u6682\u4E0D\u8DB3\u4EE5\u64AD\u653E\uFF0C\u4E00\u822C\u662F\u7F51\u7EDC\u539F\u56E0\u5F15\u8D77\uFF0C\u5F53\u6536\u5230\u8DB3\u591F\u64AD\u653E\u7684\u6570\u636E\u4F1A\u53D8\u6210 unmuted \u72B6\u6001\u3002",tips_en:"Indicates that the received video data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - audio track is muted":{tips_zh:"\u8868\u793A\u6536\u5230\u7684\u97F3\u9891\u6570\u636E\u6682\u4E0D\u8DB3\u4EE5\u64AD\u653E\uFF0C\u4E00\u822C\u662F\u7F51\u7EDC\u539F\u56E0\u5F15\u8D77\uFF0C\u5F53\u6536\u5230\u8DB3\u591F\u64AD\u653E\u7684\u6570\u636E\u4F1A\u53D8\u6210 unmuted \u72B6\u6001\u3002",tips_en:"Indicates that the received audio data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"auxiliary stream - video track is muted":{tips_zh:"\u8868\u793A\u6536\u5230\u7684\u5C4F\u5E55\u5206\u4EAB\u6570\u636E\u6682\u4E0D\u8DB3\u4EE5\u64AD\u653E\uFF0C\u4E00\u822C\u662F\u7F51\u7EDC\u539F\u56E0\u5F15\u8D77\uFF0C\u5F53\u6536\u5230\u8DB3\u591F\u64AD\u653E\u7684\u6570\u636E\u4F1A\u53D8\u6210 unmuted \u72B6\u6001\u3002",tips_en:"Indicates that the received screen sharing data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - video track is unable to provide media output":{tips_zh:"\u8868\u793A\u6536\u5230\u7684\u89C6\u9891\u6570\u636E\u6682\u4E0D\u8DB3\u4EE5\u64AD\u653E\uFF0C\u4E00\u822C\u662F\u7F51\u7EDC\u539F\u56E0\u5F15\u8D77\uFF0C\u5F53\u6536\u5230\u8DB3\u591F\u64AD\u653E\u7684\u6570\u636E\u4F1A\u53D8\u6210 unmuted \u72B6\u6001\u3002",tips_en:"Indicates that the received video data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - audio track is unable to provide media output":{tips_zh:"\u8868\u793A\u6536\u5230\u7684\u97F3\u9891\u6570\u636E\u6682\u4E0D\u8DB3\u4EE5\u64AD\u653E\uFF0C\u4E00\u822C\u662F\u7F51\u7EDC\u539F\u56E0\u5F15\u8D77\uFF0C\u5F53\u6536\u5230\u8DB3\u591F\u64AD\u653E\u7684\u6570\u636E\u4F1A\u53D8\u6210 unmuted \u72B6\u6001\u3002",tips_en:"Indicates that the received audio data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"auxiliary stream - video track is unable to provide media output":{tips_zh:"\u8868\u793A\u6536\u5230\u7684\u5C4F\u5E55\u5206\u4EAB\u6570\u636E\u6682\u4E0D\u8DB3\u4EE5\u64AD\u653E\uFF0C\u4E00\u822C\u662F\u7F51\u7EDC\u539F\u56E0\u5F15\u8D77\uFF0C\u5F53\u6536\u5230\u8DB3\u591F\u64AD\u653E\u7684\u6570\u636E\u4F1A\u53D8\u6210 unmuted \u72B6\u6001\u3002",tips_en:"Indicates that the received screen sharing data is not enough for playback. This is usually caused by network reasons. When enough data is received for playback, the state will change to unmuted."},"main stream - video track is unmuted":{tips_zh:"\u6536\u5230\u4E86\u8DB3\u591F\u64AD\u653E\u7684\u89C6\u9891\u6570\u636E",tips_en:"Received enough playback video data"},"main stream - audio track is unmuted":{tips_zh:"\u6536\u5230\u4E86\u8DB3\u591F\u64AD\u653E\u7684\u97F3\u9891\u6570\u636E",tips_en:"Received enough playback audio data"},"auxiliary stream - video track is unmuted":{tips_zh:"\u6536\u5230\u4E86\u8DB3\u591F\u64AD\u653E\u7684\u5C4F\u5E55\u5206\u4EAB\u6570\u636E",tips_en:"Received enough playback screen sharing data"},"main stream - audio player track is ended":{tips_zh:"\u8FDC\u7AEF\u97F3\u9891\u8F68\u9053\u505C\u6B62",tips_en:"Remote audio track stopped"},"main stream - video player track is ended":{tips_zh:"\u8FDC\u7AEF\u89C6\u9891\u8F68\u9053\u505C\u6B62",tips_en:"Remote video track stopped"},"auxiliary stream - video player track is ended":{tips_zh:"\u8FDC\u7AEF\u5C4F\u5E55\u5206\u4EAB\u8F68\u9053\u505C\u6B62",tips_en:"Received enough playback screen sharing data"},"stream - video track is muted":{tips_zh:"\u6444\u50CF\u5934\u91C7\u96C6\u6682\u505C\uFF0C\u901A\u5E38\u662F\u8BBE\u5907\u88AB\u5176\u4ED6\u5E94\u7528\u5360\u7528\u3001\u6D4F\u89C8\u5668\u5A92\u4F53\u6743\u9650\u88AB\u56DE\u6536\u5BFC\u81F4\uFF0C\u9700\u8981\u5BA2\u6237\u91CD\u65B0\u91C7\u96C6\u3002",tips_en:"Camera capture is paused, usually due to the device being occupied by other applications or the browser media permission being revoked. The client needs to re-capture.",color:"orange"},"stream - video track is unable to provide media output":{tips_zh:"\u6444\u50CF\u5934\u91C7\u96C6\u6682\u505C\uFF0C\u901A\u5E38\u662F\u8BBE\u5907\u88AB\u5176\u4ED6\u5E94\u7528\u5360\u7528\u3001\u6D4F\u89C8\u5668\u5A92\u4F53\u6743\u9650\u88AB\u56DE\u6536\u5BFC\u81F4\uFF0C\u9700\u8981\u5BA2\u6237\u91CD\u65B0\u91C7\u96C6\u3002v4.11.4+ \u7248\u672C SDK \u4F1A\u81EA\u52A8\u6062\u590D\u91C7\u96C6\uFF0C\u65E0\u9700\u5BA2\u6237\u5904\u7406",tips_en:"The camera acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked, and the customer needs to re-acquire. SDK v4.11.4+ will automatically resume acquisition without customer intervention",color:"orange"},"video track is unable to provide media output":{tips_zh:e=>e.includes("\u2193")?"\u8FDC\u7AEF track \u6682\u65F6\u65E0\u6CD5\u89E3\u7801\u6570\u636E\uFF0C\u53EF\u80FD\u662F\u7F51\u7EDC\u6CE2\u52A8\u5BFC\u81F4":"\u6444\u50CF\u5934\u91C7\u96C6\u6682\u505C\uFF0C\u901A\u5E38\u662F\u8BBE\u5907\u88AB\u5176\u4ED6\u5E94\u7528\u5360\u7528\u3001\u6D4F\u89C8\u5668\u5A92\u4F53\u6743\u9650\u88AB\u56DE\u6536\u5BFC\u81F4\u3002SDK \u4F1A\u81EA\u52A8\u6062\u590D\u91C7\u96C6\u3002",tips_en:e=>e.includes("\u2193")?"The remote track is temporarily unable to decode data, which may be caused by network fluctuations":"The camera acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - video player track is ended":{tips_zh:"\u6444\u50CF\u5934\u91C7\u96C6\u505C\u6B62\uFF0C\u901A\u5E38\u662F\u8BBE\u5907\u88AB\u62D4\u51FA\u5BFC\u81F4\uFF0C\u8FD9\u79CD\u60C5\u51B5 SDK \u4F1A\u81EA\u52A8\u6062\u590D\u91C7\u96C6\uFF0C\u63A5\u5165\u4FA7\u65E0\u9700\u5904\u7406\u3002\u4E5F\u6709\u53EF\u80FD\u662F\u8BBE\u5907\u88AB\u5176\u4ED6\u5E94\u7528\u5360\u7528\u3001\u6D4F\u89C8\u5668\u5A92\u4F53\u6743\u9650\u88AB\u56DE\u6536\u5BFC\u81F4\uFF0Cv4.11.4+ \u7248\u672C SDK \u4F1A\u81EA\u52A8\u6062\u590D\u91C7\u96C6\uFF0C\u65E0\u9700\u5BA2\u6237\u5904\u7406",tips_en:"The camera acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"video player track is ended":{tips_zh:"\u6444\u50CF\u5934\u91C7\u96C6\u505C\u6B62\uFF0C\u901A\u5E38\u662F\u8BBE\u5907\u88AB\u62D4\u51FA\u5BFC\u81F4\uFF0C\u8FD9\u79CD\u60C5\u51B5 SDK \u4F1A\u81EA\u52A8\u6062\u590D\u91C7\u96C6\uFF0C\u63A5\u5165\u4FA7\u65E0\u9700\u5904\u7406\u3002\u4E5F\u6709\u53EF\u80FD\u662F\u8BBE\u5907\u88AB\u5176\u4ED6\u5E94\u7528\u5360\u7528\u3001\u6D4F\u89C8\u5668\u5A92\u4F53\u6743\u9650\u88AB\u56DE\u6536\u5BFC\u81F4\uFF0Cv4.11.4+ \u7248\u672C SDK \u4F1A\u81EA\u52A8\u6062\u590D\u91C7\u96C6\uFF0C\u65E0\u9700\u5BA2\u6237\u5904\u7406",tips_en:"The camera acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"stream - audio track is muted":{tips_zh:"\u9EA6\u514B\u98CE\u91C7\u96C6\u6682\u505C\uFF0C\u901A\u5E38\u662F\u8BBE\u5907\u88AB\u5176\u4ED6\u5E94\u7528\u5360\u7528\u3001\u6D4F\u89C8\u5668\u5A92\u4F53\u6743\u9650\u88AB\u56DE\u6536\u5BFC\u81F4\uFF0C\u9700\u8981\u5BA2\u6237\u91CD\u65B0\u91C7\u96C6\u3002",tips_en:"Microphone capture is paused, usually due to the device being occupied by other applications or the browser media permission being revoked. The client needs to re-capture.",color:"orange"},"audio track is unable to provide media output":{tips_zh:e=>e.includes("\u2193")?"\u8FDC\u7AEF track \u6682\u65F6\u65E0\u6CD5\u89E3\u7801\u6570\u636E\uFF0C\u53EF\u80FD\u662F\u7F51\u7EDC\u6CE2\u52A8\u5BFC\u81F4":"\u9EA6\u514B\u98CE\u91C7\u96C6\u6682\u505C\uFF0C\u901A\u5E38\u662F\u8BBE\u5907\u88AB\u5176\u4ED6\u5E94\u7528\u5360\u7528\u3001\u6D4F\u89C8\u5668\u5A92\u4F53\u6743\u9650\u88AB\u56DE\u6536\u5BFC\u81F4\u3002SDK \u4F1A\u81EA\u52A8\u6062\u590D\u91C7\u96C6\u3002",tips_en:e=>e.includes("\u2193")?"The remote track is temporarily unable to decode data, which may be caused by network fluctuations":"Microphone acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - audio track is unable to provide media output":{tips_zh:"\u9EA6\u514B\u98CE\u91C7\u96C6\u6682\u505C\uFF0C\u901A\u5E38\u662F\u8BBE\u5907\u88AB\u5176\u4ED6\u5E94\u7528\u5360\u7528\u3001\u6D4F\u89C8\u5668\u5A92\u4F53\u6743\u9650\u88AB\u56DE\u6536\u5BFC\u81F4\uFF0C\u9700\u8981\u5BA2\u6237\u91CD\u65B0\u91C7\u96C6\u3002v4.11.4+ \u7248\u672C SDK \u4F1A\u81EA\u52A8\u6062\u590D\u91C7\u96C6\uFF0C\u65E0\u9700\u5BA2\u6237\u5904\u7406",tips_en:"The microphone acquisition is paused, usually because the device is occupied by other applications or the browser media permissions are revoked. The SDK will automatically resume the acquisition.",color:"orange"},"stream - audio player track is ended":{tips_zh:"\u9EA6\u514B\u98CE\u91C7\u96C6\u505C\u6B62\uFF0C\u901A\u5E38\u662F\u8BBE\u5907\u88AB\u62D4\u51FA\u5BFC\u81F4\uFF0C\u8FD9\u79CD\u60C5\u51B5 SDK \u4F1A\u81EA\u52A8\u6062\u590D\u91C7\u96C6\uFF0C\u63A5\u5165\u4FA7\u65E0\u9700\u5904\u7406\u3002\u4E5F\u6709\u53EF\u80FD\u662F\u8BBE\u5907\u88AB\u5176\u4ED6\u5E94\u7528\u5360\u7528\u3001\u6D4F\u89C8\u5668\u5A92\u4F53\u6743\u9650\u88AB\u56DE\u6536\u5BFC\u81F4\uFF0C\u5EFA\u8BAE\u6B64\u65F6\u5728\u9875\u9762\u63D0\u9192\u7528\u6237\u91CD\u65B0\u91C7\u96C6\u3002",tips_en:"The microphone acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"audio player track is ended":{tips_zh:"\u9EA6\u514B\u98CE\u91C7\u96C6\u505C\u6B62\uFF0C\u901A\u5E38\u662F\u8BBE\u5907\u88AB\u62D4\u51FA\u5BFC\u81F4\uFF0C\u8FD9\u79CD\u60C5\u51B5 SDK \u4F1A\u81EA\u52A8\u6062\u590D\u91C7\u96C6\uFF0C\u63A5\u5165\u4FA7\u65E0\u9700\u5904\u7406\u3002\u4E5F\u6709\u53EF\u80FD\u662F\u8BBE\u5907\u88AB\u5176\u4ED6\u5E94\u7528\u5360\u7528\u3001\u6D4F\u89C8\u5668\u5A92\u4F53\u6743\u9650\u88AB\u56DE\u6536\u5BFC\u81F4\uFF0C\u5EFA\u8BAE\u6B64\u65F6\u5728\u9875\u9762\u63D0\u9192\u7528\u6237\u91CD\u65B0\u91C7\u96C6\u3002",tips_en:"The microphone acquisition stops, usually because the device is unplugged. In this case, the SDK will automatically resume acquisition, and the access side does not need to handle it. It may also be caused by the device being occupied by other applications or the browser media permissions being reclaimed. It is recommended to remind the user to re-acquire on the page."},"is adding audio track to current published local stream":{tips_zh:"\u6DFB\u52A0\u97F3\u9891\u8F68",tips_en:"add audio track",color:"orange"},"is removing audio track from current published local stream":{tips_zh:"\u79FB\u9664\u97F3\u9891\u8F68",tips_en:"remove audio track",color:"orange"},"is removing video track from current published local stream":{tips_zh:"\u79FB\u9664\u89C6\u9891\u8F68",tips_en:"remove video track",color:"orange"},"is adding video track to current published local stream":{tips_zh:"\u6DFB\u52A0\u89C6\u9891\u8F68",tips_en:"add video track",color:"orange"},"is replacing audio track to current published local main stream":{tips_zh:"\u66FF\u6362\u97F3\u9891\u8F68",tips_en:"replace audio track",color:"orange"},"is replacing video track to current published local main stream":{tips_zh:"\u66FF\u6362\u89C6\u9891\u8F68",tips_en:"replace video track",color:"orange"},"downlink network quality change":{tips_zh:"\u4E0B\u884C\u7F51\u7EDC\u53D8\u66F4\uFF0C1: \u6781\u4F73\uFF0C2\uFF1A\u8F83\u597D\uFF0C3\uFF1A\u4E00\u822C\uFF0C4\uFF1A\u8F83\u5DEE\uFF0C5\uFF1A\u6781\u5DEE",tips_en:"Downstream network quality change: 1: excellent, 2: good, 3: average, 4: poor, 5: extremely poor"},"uplink network quality change":{tips_zh:"\u4E0A\u884C\u7F51\u7EDC\u53D8\u66F4\uFF0C1: \u6781\u4F73\uFF0C2\uFF1A\u8F83\u597D\uFF0C3\uFF1A\u4E00\u822C\uFF0C4\uFF1A\u8F83\u5DEE\uFF0C5\uFF1A\u6781\u5DEE",tips_en:"Upstream network quality change: 1: excellent, 2: good, 3: average, 4: poor, 5: extremely poor"},"localStream mute video":{tips_zh:"mute \u4E0A\u884C\u89C6\u9891\u6D41",tips_en:"mute upstream video stream",color:"orange"},"localStream unmute video":{tips_zh:"unmute \u4E0A\u884C\u89C6\u9891\u6D41",tips_en:"unmute upstream video stream",color:"orange"},"localStream mute audio":{tips_zh:"mute \u4E0A\u884C\u97F3\u9891\u6D41",tips_en:"mute upstream audio stream",color:"orange"},"localStream unmute audio":{tips_zh:"unmute \u4E0A\u884C\u97F3\u9891\u6D41",tips_en:"unmute upstream audio stream",color:"orange"},"black detected":{tips_zh:"\u68C0\u6D4B\u5230\u9ED1\u5C4F\uFF0C\u8868\u793A\u5F53\u524D fps = 0\u3002\u901A\u5E38\u662F\u7F51\u7EDC\u5F15\u8D77\uFF0C\u7F51\u7EDC\u6062\u590D\u540E\u4F1A\u6062\u590D\u6B63\u5E38\u3002\u82E5\u7F51\u7EDC\u6B63\u5E38\u65F6\uFF0C\u4E00\u76F4\u672A\u6062\u590D\uFF0C\u5219\u4E3A\u5F02\u5E38\u60C5\u51B5\u3002",tips_en:"Detect black screen, which means fps = 0. It is usually caused by network, and the network will be recovered after a while. If the network is normal but has not been restored, it is an abnormal situation."},'main stream start to play with options: {"muted":true}':{tips_zh:"\u5DF2\u9759\u97F3\u7684\u65B9\u5F0F\u64AD\u653E\u8FDC\u7AEF\u6D41\uFF0C\u4E00\u822C\u8FDC\u7AEF\u6D41\u4E0D\u9700\u8981\u9759\u97F3\u64AD\u653E\uFF0C\u9700\u786E\u8BA4\u5BA2\u6237 stream.play \u63A5\u53E3\u8C03\u7528\u7684\u4F20\u53C2\u662F\u5426\u6B63\u786E\u3002",tips_en:"Play the remote stream in silent mode. Generally, the remote stream does not need to be played in silent mode. You need to confirm whether the parameters passed in the client stream.play API call are correct.",color:"orange"},"main stream - audio player is starting playing":{tips_zh:"\u8FDC\u7AEF\u6D41\u97F3\u9891\u64AD\u653E\u6210\u529F",tips_en:"Remote stream audio playback success",color:"#0dd90d",class:"success"},"main stream - video player is starting playing":{tips_zh:"\u8FDC\u7AEF\u6D41\u89C6\u9891\u64AD\u653E\u6210\u529F",tips_en:"Remote stream video playback success",color:"#0dd90d",class:"success"},"video player is playing":{tips_zh:"\u672C\u5730\u89C6\u9891\u64AD\u653E\u6210\u529F",tips_en:"Local video playback success",color:"#0dd90d",class:"success"},"audio player is playing":{tips_zh:"\u672C\u5730\u97F3\u9891\u64AD\u653E\u6210\u529F",tips_en:"Local audio playback success",color:"#0dd90d",class:"success"},"stream - video player is starting playing":{tips_zh:"\u672C\u5730\u89C6\u9891\u64AD\u653E\u6210\u529F",tips_en:"Local video playback success",color:"#0dd90d",class:"success"},"stream - audio player is starting playing":{tips_zh:"\u672C\u5730\u97F3\u9891\u64AD\u653E\u6210\u529F",tips_en:"Local audio playback success",color:"#0dd90d",class:"success"},"switch camera success":{tips_zh:"\u5207\u6362\u6444\u50CF\u5934\u6210\u529F",tips_en:"Switch camera success",color:"#0dd90d",class:"success"},"switch microphone success":{tips_zh:"\u5207\u6362\u9EA6\u514B\u98CE\u6210\u529F",tips_en:"Switch microphone success",color:"#0dd90d",class:"success"},gotStream:{tips_zh:"\u672C\u5730\u6D41\u91C7\u96C6\u6210\u529F",tips_en:"Local stream capture success"},"local stream is published successfully":{tips_zh:"\u63A8\u6D41\u6210\u529F",tips_en:"Publish success",color:"#0dd90d",class:"success"},"encoderImplementation change to OpenH264":{tips_zh:"\u4F7F\u7528\u8F6F\u7F16",tips_en:"Use software encoding"},"encoderImplementation change to ExternalEncoder":{tips_zh:"\u4F7F\u7528\u786C\u7F16",tips_en:"Use hardware encoding"},"getUserMedia with constraints":{tips_zh:"\u5F00\u59CB\u5A92\u4F53\uFF08\u6444\u50CF\u5934/\u9EA6\u514B\u98CE\uFF09\u91C7\u96C6",tips_en:"Start media (camera/microphone) capture"},"getDisplayMedia with constraints":{tips_zh:"\u5F00\u59CB\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6",tips_en:"Start screen sharing capture"},"client-banned":{tips_zh:"\u88AB\u8E22\u51FA\u623F\u95F4",tips_en:"Kicked out of the room",color:"red",class:"red",textColor:"#fff"},user_timeout:{tips_zh:"\u540E\u53F0\u957F\u65F6\u95F4\u6CA1\u6536\u5230 sdk \u5FC3\u8DF3\u5BFC\u81F4\u88AB\u8E22\uFF0C\u901A\u5E38\u662F\u7528\u6237 JS \u7EBF\u7A0B\u957F\u65F6\u95F4\u963B\u585E\u5BFC\u81F4\uFF0C\u82E5\u590D\u73B0\u6982\u7387\u8F83\u9AD8\uFF0C\u5E94\u7528\u6D4F\u89C8\u5668 Performance \u5DE5\u5177\u5206\u6790\u662F\u54EA\u91CC\u5BFC\u81F4 JS \u7EBF\u7A0B\u963B\u585E\u3002",tips_en:"The backend is too long without receiving SDK heartbeat, which is usually caused by the JS thread being blocked for a long time. If the reproduction probability is high, the application browser Performance tool analyzes where the JS thread is blocked.",color:"red",class:"red",textColor:"#fff"},"schedule failed":{tips_zh:"\u4FE1\u4EE4\u8C03\u5EA6\u8BF7\u6C42\u5931\u8D25\uFF0C\u4E0D\u5F71\u54CD\u6B63\u5E38\u8FDB\u623F\u6D41\u7A0B\uFF0CSDK \u4F1A\u8FDE\u63A5\u9ED8\u8BA4\u7684\u4FE1\u4EE4\u57DF\u540D\u3002",tips_en:"Signaling request failed, does not affect the normal room entry process, SDK will connect to the default signaling domain."},"updateStream() video flag is true, but no camera detected, set video to false":{tips_zh:"\u5C1D\u8BD5\u6062\u590D\u6444\u50CF\u5934\u91C7\u96C6\u65F6\uFF0C\u7531\u4E8E\u68C0\u6D4B\u5230\u6CA1\u6709\u6444\u50CF\u5934\uFF0C\u4E0D\u6062\u590D\u6444\u50CF\u5934\u91C7\u96C6",tips_en:"When trying to resume camera acquisition, the camera acquisition is not resumed because it is detected that there is no camera.",color:"orange",class:"orange",textColor:"#fff"},"qualityLimitationReason change to bandwidth":{tips_zh:"\u5E26\u5BBD\u9884\u4F30\u4E0D\u591F\u5BFC\u81F4\u7F16\u7801\u8D28\u91CF\u53D7\u9650\uFF0C\u53EF\u80FD\u4F1A\u51FA\u73B0\u7F16\u7801\u7801\u7387\u3001\u5E27\u7387\u3001\u5206\u8FA8\u7387\u964D\u4F4E\u95EE\u9898\u3002\u901A\u5E38\u662F\u7F51\u7EDC\u5BFC\u81F4\u3002",tips_en:"bandwidth estimation is not enough to limit the quality of the encoding, which may cause the code rate, frame rate, and resolution to be lowered.",color:"orange",class:"orange",textColor:"#fff"},"qualityLimitationReason change to cpu":{tips_zh:"cpu \u8D1F\u8377\u592A\u9AD8\u5BFC\u81F4\u7F16\u7801\u8D28\u91CF\u53D7\u9650\uFF0C\u53EF\u80FD\u4F1A\u51FA\u73B0\u7F16\u7801\u7801\u7387\u3001\u5E27\u7387\u3001\u5206\u8FA8\u7387\u964D\u4F4E\u95EE\u9898\u3002",tips_en:"cpu load is too high to limit the quality of the encoding, which may cause the code rate, frame rate, and resolution to be lowered.",color:"orange",class:"orange",textColor:"#fff"},"visibility change: hidden":{tips_zh:"\u7528\u6237\u9875\u9762\u5207\u540E\u53F0\uFF0C\u5728\u79FB\u52A8\u7AEF\u8FD9\u4F1A\u5BFC\u81F4\u8BBE\u5907\u91C7\u96C6\u6682\u505C\uFF0C\u5207\u56DE\u524D\u53F0\u65F6\u4F1A\u6062\u590D\u91C7\u96C6",tips_en:"User page switched to backend, in mobile devices, this will cause the device to pause the capture, and it will be restored when the user switches backend to the frontend.",color:"orange",class:"orange",textColor:"#fff"},"visibility change: visible":{tips_zh:"\u7528\u6237\u9875\u9762\u5207\u56DE\u524D\u53F0",tips_en:"User page switched to frontend",color:"orange",class:"orange",textColor:"#fff"},"main stream - audio player is paused":{tips_zh:`\u8FDC\u7AEF\u6D41\u97F3\u9891\u64AD\u653E\u6682\u505C\uFF0C\u4E00\u822C\u6709\u4E24\u79CD\u53EF\u80FD\uFF1A
1. \u4E1A\u52A1\u4FA7\u4F20\u5165\u7528\u4E8E\u64AD\u653E\u97F3\u89C6\u9891\u7684 div \u6807\u7B7E\u5BB9\u5668\u88AB\u4E1A\u52A1\u4FA7\u4ECE DOM \u79FB\u9664\u3002
2. \u7528\u6237\u5728 Chrome 70 \u53CA\u4EE5\u4E0B\u7248\u672C\uFF0C\u5F53\u79FB\u52A8 div \u5BB9\u5668\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u64AD\u653E\u6682\u505C\u3002`,tips_en:`The remote stream audio playback is paused, which usually has two possibilities:
1. The business side passes in the div tag container for playing audio and video to be removed by the business side from the DOM.
2. If the user is in Chrome 70 and below, when the div container is moved, the playback will be paused.`,color:"orange",class:"orange",textColor:"#fff"},"main stream - video player is paused":{tips_zh:`\u8FDC\u7AEF\u6D41\u89C6\u9891\u64AD\u653E\u6682\u505C\uFF0C\u4E00\u822C\u6709\u4E24\u79CD\u53EF\u80FD\uFF1A
1. \u4E1A\u52A1\u4FA7\u4F20\u5165\u7528\u4E8E\u64AD\u653E\u97F3\u89C6\u9891\u7684 div \u6807\u7B7E\u5BB9\u5668\u88AB\u4E1A\u52A1\u4FA7\u4ECE DOM \u79FB\u9664\u3002
2. \u7528\u6237\u5728 Chrome 70 \u53CA\u4EE5\u4E0B\u7248\u672C\uFF0C\u5F53\u79FB\u52A8 div \u5BB9\u5668\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u64AD\u653E\u6682\u505C\u3002`,tips_en:`The remote stream video playback is paused, which usually has two possibilities:
1. The business side passes in the div tag container for playing audio and video to be removed by the business side from the DOM.
2. If the user is in Chrome 70 and below, when the div container is moved, the playback will be paused.`,color:"orange",class:"orange",textColor:"#fff"},'"displaySurface":"window"':{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u4E86\u5E94\u7528\u7A97\u53E3",tips_en:"Screen sharing captures the application window",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"monitor"':{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u4E86\u6574\u4E2A\u5C4F\u5E55",tips_en:"Screen sharing captures the entire screen",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"browser"':{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u4E86\u67D0\u4E2A\u6807\u7B7E\u9875",tips_en:"Screen sharing captures a certain tab page",color:"blue",class:"blue",textColor:"#fff"},updateMediaSettings:{tips_zh:"\u8BE5\u65E5\u5FD7\u4E0B\u7684\u5206\u8FA8\u7387\u3001\u5E27\u7387\u4E3A\u5B9E\u9645\u91C7\u96C6\u51FA\u7684\u5206\u8FA8\u7387\u53CA\u5E27\u7387",tips_en:"The resolution and frame rate below are the actual resolution and frame rate captured",color:"blue",class:"blue",textColor:"#fff"},"main stream start to play with":{tips_zh:"\u8C03\u7528 remoteStream.play \u63A5\u53E3",tips_en:"Call remoteStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"stream start to play with":{tips_zh:"\u8C03\u7528 localStream.play \u63A5\u53E3",tips_en:"Call localStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"main setAudioVolume to 0":{tips_zh:"\u4E1A\u52A1\u4FA7\u8C03\u7528 remoteStream.setAudioVolume(0) \u63A5\u53E3\uFF0C\u5C06\u64AD\u653E\u97F3\u91CF\u8BBE\u7F6E\u4E3A 0\uFF0C\u4F1A\u5BFC\u81F4\u64AD\u653E\u65E0\u58F0",tips_en:"Business side calls remoteStream.setAudioVolume(0) interface to set the playback volume to 0, which will cause the playback to be silent",color:"orange",class:"orange",textColor:"#fff"},"screen sharing was stopped because the video track is ended":{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u505C\u6B62\uFF0C\u53EF\u80FD\u539F\u56E0\uFF1A\u7528\u6237\u70B9\u51FB\u505C\u6B62\u91C7\u96C6\u6309\u94AE\u3001\u5206\u4EAB\u7684\u7A97\u53E3/\u9875\u9762\u88AB\u5173\u95ED\u7B49\u3002",tips_en:"Screen sharing capture stopped, possible reasons: user clicks the stop button, the window/page shared by the user is closed, etc.",color:"orange",class:"orange",textColor:"#fff"},"Join() => joining room":{tips_zh:"\u8C03\u7528 client.join \u63A5\u53E3",tips_en:"Call client.join interface",color:"blue",class:"blue",textColor:"#fff"},"publish() => publishing local stream":{tips_zh:"\u8C03\u7528 client.publish \u63A5\u53E3",tips_en:"Call client.publish interface",color:"blue",class:"blue",textColor:"#fff"},"subscribe() => subscribe to":{tips_zh:"\u8C03\u7528 client.subscribe \u63A5\u53E3",tips_en:"Call client.subscribe interface",color:"blue",class:"blue",textColor:"#fff"},"switchRole() => switch role":{tips_zh:"\u8C03\u7528 client.switchRole \u63A5\u53E3",tips_en:"Call client.switchRole interface",color:"blue",class:"blue",textColor:"#fff"}};["enterRoom","exitRoom","switchRole","destroy","startLocalAudio","updateLocalAudio","stopLocalAudio","startLocalVideo","updateLocalVideo","stopLocalVideo","startScreenShare","updateScreenShare","stopScreenShare","startRemoteVideo","updateRemoteVideo","stopRemoteVideo","muteRemoteAudio","setRemoteAudioVolume"].forEach(e=>{te[`${e}()`]={tips_zh:`\u8C03\u7528 trtc.${e}`,tips_en:`Call trtc.${e}`,color:"blue",class:"blue",textColor:"#fff"}});var Mr=Object.keys(te);function Br(e){return function(t,r,o){return o.value=e(o.value,r),o}}var kt=new WeakMap;function tr(e,t){return Br((r,o)=>function(...i){var l,c;let a=(l=kt.get(this))==null?void 0:l.get(t(...i));a&&a>0&&clearTimeout(a);let s=window.setTimeout(()=>{r.apply(this,i)},e);kt.has(this)?(c=kt.get(this))==null||c.set(t(...i),s):kt.set(this,new Map([[t(...i),s]]))})}var M="top",W="bottom",$="right",B="left",Pt="auto",De=[M,W,$,B],ye="start",Pe="end",$r="clippingParents",It="viewport",Xe="popper",Hr="reference",rr=De.reduce(function(e,t){return e.concat([t+"-"+ye,t+"-"+Pe])},[]),Ut=[].concat(De,[Pt]).reduce(function(e,t){return e.concat([t,t+"-"+ye,t+"-"+Pe])},[]),Go="beforeRead",Ko="read",Fo="afterRead",Xo="beforeMain",Yo="main",Jo="afterMain",Qo="beforeWrite",Zo="write",ei="afterWrite",Wr=[Go,Ko,Fo,Xo,Yo,Jo,Qo,Zo,ei];function j(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oe(e){var t=k(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=k(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ye(e){if(typeof ShadowRoot=="undefined")return!1;var t=k(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ti(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!V(a)||!j(a)||(Object.assign(a.style,o),Object.keys(i).forEach(function(s){var l=i[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function ri(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var i=t.elements[o],a=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),l=s.reduce(function(c,d){return c[d]="",c},{});!V(i)||!j(i)||(Object.assign(i.style,l),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}var lt={name:"applyStyles",enabled:!0,phase:"write",fn:ti,effect:ri,requires:["computeStyles"]};function q(e){return e.split("-")[0]}var se=Math.max,Ie=Math.min,_e=Math.round;function Je(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ct(){return!/^((?!chrome|android).)*safari/i.test(Je())}function ie(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),i=1,a=1;t&&V(e)&&(i=e.offsetWidth>0&&_e(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&_e(o.height)/e.offsetHeight||1);var s=oe(e)?k(e):window,l=s.visualViewport,c=!ct()&&r,d=(o.left+(c&&l?l.offsetLeft:0))/i,u=(o.top+(c&&l?l.offsetTop:0))/a,b=o.width/i,h=o.height/a;return{width:b,height:h,top:u,right:d+b,bottom:u+h,left:d,x:d,y:u}}function Ue(e){var t=ie(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function ut(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ye(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Q(e){return k(e).getComputedStyle(e)}function or(e){return["table","td","th"].indexOf(j(e))>=0}function K(e){return((oe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Te(e){return j(e)==="html"?e:e.assignedSlot||e.parentNode||(Ye(e)?e.host:null)||K(e)}function Vr(e){return!V(e)||Q(e).position==="fixed"?null:e.offsetParent}function oi(e){var t=/firefox/i.test(Je()),r=/Trident/i.test(Je());if(r&&V(e)){var o=Q(e);if(o.position==="fixed")return null}var i=Te(e);for(Ye(i)&&(i=i.host);V(i)&&["html","body"].indexOf(j(i))<0;){var a=Q(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function le(e){for(var t=k(e),r=Vr(e);r&&or(r)&&Q(r).position==="static";)r=Vr(r);return r&&(j(r)==="html"||j(r)==="body"&&Q(r).position==="static")?t:r||oi(e)||t}function Ne(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Me(e,t,r){return se(e,Ie(t,r))}function zr(e,t,r){var o=Me(e,t,r);return o>r?r:o}function pt(){return{top:0,right:0,bottom:0,left:0}}function dt(e){return Object.assign({},pt(),e)}function ft(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var ii=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,dt(typeof t!="number"?t:ft(t,De))};function ai(e){var t,r=e.state,o=e.name,i=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,l=q(r.placement),c=Ne(l),d=[B,$].indexOf(l)>=0,u=d?"height":"width";if(!(!a||!s)){var b=ii(i.padding,r),h=Ue(a),f=c==="y"?M:B,y=c==="y"?W:$,_=r.rects.reference[u]+r.rects.reference[c]-s[c]-r.rects.popper[u],S=s[c]-r.rects.reference[c],w=le(a),E=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,L=_/2-S/2,n=b[f],x=E-h[u]-b[y],m=E/2-h[u]/2+L,v=Me(n,m,x),A=c;r.modifiersData[o]=(t={},t[A]=v,t.centerOffset=v-m,t)}}function ni(e){var t=e.state,r=e.options,o=r.element,i=o===void 0?"[data-popper-arrow]":o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||ut(t.elements.popper,i)&&(t.elements.arrow=i))}var jr={name:"arrow",enabled:!0,phase:"main",fn:ai,effect:ni,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ae(e){return e.split("-")[1]}var si={top:"auto",right:"auto",bottom:"auto",left:"auto"};function li(e,t){var r=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:_e(r*i)/i||0,y:_e(o*i)/i||0}}function qr(e){var t,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,b=e.isFixed,h=s.x,f=h===void 0?0:h,y=s.y,_=y===void 0?0:y,S=typeof u=="function"?u({x:f,y:_}):{x:f,y:_};f=S.x,_=S.y;var w=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),L=B,n=M,x=window;if(d){var m=le(r),v="clientHeight",A="clientWidth";if(m===k(r)&&(m=K(r),Q(m).position!=="static"&&l==="absolute"&&(v="scrollHeight",A="scrollWidth")),m=m,i===M||(i===B||i===$)&&a===Pe){n=W;var R=b&&m===x&&x.visualViewport?x.visualViewport.height:m[v];_-=R-o.height,_*=c?1:-1}if(i===B||(i===M||i===W)&&a===Pe){L=$;var U=b&&m===x&&x.visualViewport?x.visualViewport.width:m[A];f-=U-o.width,f*=c?1:-1}}var H=Object.assign({position:l},d&&si),N=u===!0?li({x:f,y:_},k(r)):{x:f,y:_};if(f=N.x,_=N.y,c){var I;return Object.assign({},H,(I={},I[n]=E?"0":"",I[L]=w?"0":"",I.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+_+"px)":"translate3d("+f+"px, "+_+"px, 0)",I))}return Object.assign({},H,(t={},t[n]=E?_+"px":"",t[L]=w?f+"px":"",t.transform="",t))}function ci(e){var t=e.state,r=e.options,o=r.gpuAcceleration,i=o===void 0?!0:o,a=r.adaptive,s=a===void 0?!0:a,l=r.roundOffsets,c=l===void 0?!0:l,d={placement:q(t.placement),variation:ae(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qr(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qr(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Gr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ci,data:{}};var Nt={passive:!0};function ui(e){var t=e.state,r=e.instance,o=e.options,i=o.scroll,a=i===void 0?!0:i,s=o.resize,l=s===void 0?!0:s,c=k(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(u){u.addEventListener("scroll",r.update,Nt)}),l&&c.addEventListener("resize",r.update,Nt),function(){a&&d.forEach(function(u){u.removeEventListener("scroll",r.update,Nt)}),l&&c.removeEventListener("resize",r.update,Nt)}}var Kr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ui,data:{}};var pi={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e){return e.replace(/left|right|bottom|top/g,function(t){return pi[t]})}var di={start:"end",end:"start"};function Mt(e){return e.replace(/start|end/g,function(t){return di[t]})}function Be(e){var t=k(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function $e(e){return ie(K(e)).left+Be(e).scrollLeft}function ir(e,t){var r=k(e),o=K(e),i=r.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){a=i.width,s=i.height;var d=ct();(d||!d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:l+$e(e),y:c}}function ar(e){var t,r=K(e),o=Be(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=se(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=se(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-o.scrollLeft+$e(e),c=-o.scrollTop;return Q(i||r).direction==="rtl"&&(l+=se(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function He(e){var t=Q(e),r=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+o)}function Bt(e){return["html","body","#document"].indexOf(j(e))>=0?e.ownerDocument.body:V(e)&&He(e)?e:Bt(Te(e))}function Ee(e,t){var r;t===void 0&&(t=[]);var o=Bt(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=k(o),s=i?[a].concat(a.visualViewport||[],He(o)?o:[]):o,l=t.concat(s);return i?l:l.concat(Ee(Te(s)))}function Ze(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fi(e,t){var r=ie(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Fr(e,t,r){return t===It?Ze(ir(e,r)):oe(t)?fi(t,r):Ze(ar(K(e)))}function mi(e){var t=Ee(Te(e)),r=["absolute","fixed"].indexOf(Q(e).position)>=0,o=r&&V(e)?le(e):e;return oe(o)?t.filter(function(i){return oe(i)&&ut(i,o)&&j(i)!=="body"}):[]}function nr(e,t,r,o){var i=t==="clippingParents"?mi(e):[].concat(t),a=[].concat(i,[r]),s=a[0],l=a.reduce(function(c,d){var u=Fr(e,d,o);return c.top=se(u.top,c.top),c.right=Ie(u.right,c.right),c.bottom=Ie(u.bottom,c.bottom),c.left=se(u.left,c.left),c},Fr(e,s,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function mt(e){var t=e.reference,r=e.element,o=e.placement,i=o?q(o):null,a=o?ae(o):null,s=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(i){case M:c={x:s,y:t.y-r.height};break;case W:c={x:s,y:t.y+t.height};break;case $:c={x:t.x+t.width,y:l};break;case B:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var d=i?Ne(i):null;if(d!=null){var u=d==="y"?"height":"width";switch(a){case ye:c[d]=c[d]-(t[u]/2-r[u]/2);break;case Pe:c[d]=c[d]+(t[u]/2-r[u]/2);break;default:}}return c}function ce(e,t){t===void 0&&(t={});var r=t,o=r.placement,i=o===void 0?e.placement:o,a=r.strategy,s=a===void 0?e.strategy:a,l=r.boundary,c=l===void 0?$r:l,d=r.rootBoundary,u=d===void 0?It:d,b=r.elementContext,h=b===void 0?Xe:b,f=r.altBoundary,y=f===void 0?!1:f,_=r.padding,S=_===void 0?0:_,w=dt(typeof S!="number"?S:ft(S,De)),E=h===Xe?Hr:Xe,L=e.rects.popper,n=e.elements[y?E:h],x=nr(oe(n)?n:n.contextElement||K(e.elements.popper),c,u,s),m=ie(e.elements.reference),v=mt({reference:m,element:L,strategy:"absolute",placement:i}),A=Ze(Object.assign({},L,v)),R=h===Xe?A:m,U={top:x.top-R.top+w.top,bottom:R.bottom-x.bottom+w.bottom,left:x.left-R.left+w.left,right:R.right-x.right+w.right},H=e.modifiersData.offset;if(h===Xe&&H){var N=H[i];Object.keys(U).forEach(function(I){var Z=[$,W].indexOf(I)>=0?1:-1,ee=[M,W].indexOf(I)>=0?"y":"x";U[I]+=N[ee]*Z})}return U}function sr(e,t){t===void 0&&(t={});var r=t,o=r.placement,i=r.boundary,a=r.rootBoundary,s=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,d=c===void 0?Ut:c,u=ae(o),b=u?l?rr:rr.filter(function(y){return ae(y)===u}):De,h=b.filter(function(y){return d.indexOf(y)>=0});h.length===0&&(h=b);var f=h.reduce(function(y,_){return y[_]=ce(e,{placement:_,boundary:i,rootBoundary:a,padding:s})[q(_)],y},{});return Object.keys(f).sort(function(y,_){return f[y]-f[_]})}function hi(e){if(q(e)===Pt)return[];var t=Qe(e);return[Mt(e),t,Mt(t)]}function gi(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!0:s,c=r.fallbackPlacements,d=r.padding,u=r.boundary,b=r.rootBoundary,h=r.altBoundary,f=r.flipVariations,y=f===void 0?!0:f,_=r.allowedAutoPlacements,S=t.options.placement,w=q(S),E=w===S,L=c||(E||!y?[Qe(S)]:hi(S)),n=[S].concat(L).reduce(function(he,ne){return he.concat(q(ne)===Pt?sr(t,{placement:ne,boundary:u,rootBoundary:b,padding:d,flipVariations:y,allowedAutoPlacements:_}):ne)},[]),x=t.rects.reference,m=t.rects.popper,v=new Map,A=!0,R=n[0],U=0;U<n.length;U++){var H=n[U],N=q(H),I=ae(H)===ye,Z=[M,W].indexOf(N)>=0,ee=Z?"width":"height",F=ce(t,{placement:H,boundary:u,rootBoundary:b,altBoundary:h,padding:d}),X=Z?I?$:B:I?W:M;x[ee]>m[ee]&&(X=Qe(X));var G=Qe(X),pe=[];if(a&&pe.push(F[N]<=0),l&&pe.push(F[X]<=0,F[G]<=0),pe.every(function(he){return he})){R=H,A=!1;break}v.set(H,pe)}if(A)for(var de=y?3:1,Ce=function(ne){var ge=n.find(function(je){var ve=v.get(je);if(ve)return ve.slice(0,ne).every(function(qe){return qe})});if(ge)return R=ge,"break"},fe=de;fe>0;fe--){var Le=Ce(fe);if(Le==="break")break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}}var Xr={name:"flip",enabled:!0,phase:"main",fn:gi,requiresIfExists:["offset"],data:{_skip:!1}};function Yr(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Jr(e){return[M,$,W,B].some(function(t){return e[t]>=0})}function vi(e){var t=e.state,r=e.name,o=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=ce(t,{elementContext:"reference"}),l=ce(t,{altBoundary:!0}),c=Yr(s,o),d=Yr(l,i,a),u=Jr(c),b=Jr(d);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":b})}var Qr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vi};function bi(e,t,r){var o=q(e),i=[B,M].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],l=a[1];return s=s||0,l=(l||0)*i,[B,$].indexOf(o)>=0?{x:l,y:s}:{x:s,y:l}}function yi(e){var t=e.state,r=e.options,o=e.name,i=r.offset,a=i===void 0?[0,0]:i,s=Ut.reduce(function(u,b){return u[b]=bi(b,t.rects,a),u},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=s}var Zr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yi};function _i(e){var t=e.state,r=e.name;t.modifiersData[r]=mt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var eo={name:"popperOffsets",enabled:!0,phase:"read",fn:_i,data:{}};function lr(e){return e==="x"?"y":"x"}function Ti(e){var t=e.state,r=e.options,o=e.name,i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!1:s,c=r.boundary,d=r.rootBoundary,u=r.altBoundary,b=r.padding,h=r.tether,f=h===void 0?!0:h,y=r.tetherOffset,_=y===void 0?0:y,S=ce(t,{boundary:c,rootBoundary:d,padding:b,altBoundary:u}),w=q(t.placement),E=ae(t.placement),L=!E,n=Ne(w),x=lr(n),m=t.modifiersData.popperOffsets,v=t.rects.reference,A=t.rects.popper,R=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,U=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(m){if(a){var I,Z=n==="y"?M:B,ee=n==="y"?W:$,F=n==="y"?"height":"width",X=m[n],G=X+S[Z],pe=X-S[ee],de=f?-A[F]/2:0,Ce=E===ye?v[F]:A[F],fe=E===ye?-A[F]:-v[F],Le=t.elements.arrow,he=f&&Le?Ue(Le):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pt(),ge=ne[Z],je=ne[ee],ve=Me(0,v[F],he[F]),qe=L?v[F]/2-de-ve-ge-U.mainAxis:Ce-ve-ge-U.mainAxis,Oe=L?-v[F]/2+de+ve+je+U.mainAxis:fe+ve+je+U.mainAxis,Ge=t.elements.arrow&&le(t.elements.arrow),Tt=Ge?n==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,rt=(I=H==null?void 0:H[n])!=null?I:0,St=X+qe-rt-Tt,xt=X+Oe-rt,ot=Me(f?Ie(G,St):G,X,f?se(pe,xt):pe);m[n]=ot,N[n]=ot-X}if(l){var it,Ot=n==="x"?M:B,wt=n==="x"?W:$,be=m[x],we=x==="y"?"height":"width",at=be+S[Ot],Re=be-S[wt],nt=[M,B].indexOf(w)!==-1,Dt=(it=H==null?void 0:H[x])!=null?it:0,Et=nt?at:be-v[we]-A[we]-Dt+U.altAxis,At=nt?be+v[we]+A[we]-Dt-U.altAxis:Re,Ct=f&&nt?zr(Et,be,At):Me(f?Et:at,be,f?At:Re);m[x]=Ct,N[x]=Ct-be}t.modifiersData[o]=N}}var to={name:"preventOverflow",enabled:!0,phase:"main",fn:Ti,requiresIfExists:["offset"]};function cr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ur(e){return e===k(e)||!V(e)?Be(e):cr(e)}function Si(e){var t=e.getBoundingClientRect(),r=_e(t.width)/e.offsetWidth||1,o=_e(t.height)/e.offsetHeight||1;return r!==1||o!==1}function pr(e,t,r){r===void 0&&(r=!1);var o=V(t),i=V(t)&&Si(t),a=K(t),s=ie(e,i,r),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!r)&&((j(t)!=="body"||He(a))&&(l=ur(t)),V(t)?(c=ie(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=$e(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function xi(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&i(c)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),o}function dr(e){var t=xi(e);return Wr.reduce(function(r,o){return r.concat(t.filter(function(i){return i.phase===o}))},[])}function fr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mr(e){var t=e.reduce(function(r,o){var i=r[o.name];return r[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var ro={placement:"bottom",modifiers:[],strategy:"absolute"};function oo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function io(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?ro:i;return function(l,c,d){d===void 0&&(d=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ro,a),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},b=[],h=!1,f={state:u,setOptions:function(w){var E=typeof w=="function"?w(u.options):w;_(),u.options=Object.assign({},a,u.options,E),u.scrollParents={reference:oe(l)?Ee(l):l.contextElement?Ee(l.contextElement):[],popper:Ee(c)};var L=dr(mr([].concat(o,u.options.modifiers)));return u.orderedModifiers=L.filter(function(n){return n.enabled}),y(),f.update()},forceUpdate:function(){if(!h){var w=u.elements,E=w.reference,L=w.popper;if(oo(E,L)){u.rects={reference:pr(E,le(L),u.options.strategy==="fixed"),popper:Ue(L)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(U){return u.modifiersData[U.name]=Object.assign({},U.data)});for(var n=0;n<u.orderedModifiers.length;n++){if(u.reset===!0){u.reset=!1,n=-1;continue}var x=u.orderedModifiers[n],m=x.fn,v=x.options,A=v===void 0?{}:v,R=x.name;typeof m=="function"&&(u=m({state:u,options:A,name:R,instance:f})||u)}}}},update:fr(function(){return new Promise(function(S){f.forceUpdate(),S(u)})}),destroy:function(){_(),h=!0}};if(!oo(l,c))return f;f.setOptions(d).then(function(S){!h&&d.onFirstUpdate&&d.onFirstUpdate(S)});function y(){u.orderedModifiers.forEach(function(S){var w=S.name,E=S.options,L=E===void 0?{}:E,n=S.effect;if(typeof n=="function"){var x=n({state:u,name:w,instance:f,options:L}),m=function(){};b.push(x||m)}})}function _(){b.forEach(function(S){return S()}),b=[]}return f}}var Oi=[Kr,eo,Gr,lt,Zr,Xr,to,jr,Qr],hr=io({defaultModifiers:Oi});var wi="tippy-box",ho="tippy-content",Di="tippy-backdrop",go="tippy-arrow",vo="tippy-svg-arrow",We={passive:!0,capture:!0},bo=function(){return document.body};function gr(e,t,r){if(Array.isArray(e)){var o=e[t];return o==null?Array.isArray(r)?r[t]:r:o}return e}function Sr(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function yo(e,t){return typeof e=="function"?e.apply(void 0,t):e}function ao(e,t){if(t===0)return e;var r;return function(o){clearTimeout(r),r=setTimeout(function(){e(o)},t)}}function Ei(e){return e.split(/\s+/).filter(Boolean)}function et(e){return[].concat(e)}function no(e,t){e.indexOf(t)===-1&&e.push(t)}function Ai(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function Ci(e){return e.split("-")[0]}function Ht(e){return[].slice.call(e)}function so(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function ht(){return document.createElement("div")}function Wt(e){return["Element","Fragment"].some(function(t){return Sr(e,t)})}function Li(e){return Sr(e,"NodeList")}function Ri(e){return Sr(e,"MouseEvent")}function ki(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Pi(e){return Wt(e)?[e]:Li(e)?Ht(e):Array.isArray(e)?e:Ht(document.querySelectorAll(e))}function vr(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function lo(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function Ii(e){var t,r=et(e),o=r[0];return o!=null&&(t=o.ownerDocument)!=null&&t.body?o.ownerDocument:document}function Ui(e,t){var r=t.clientX,o=t.clientY;return e.every(function(i){var a=i.popperRect,s=i.popperState,l=i.props,c=l.interactiveBorder,d=Ci(s.placement),u=s.modifiersData.offset;if(!u)return!0;var b=d==="bottom"?u.top.y:0,h=d==="top"?u.bottom.y:0,f=d==="right"?u.left.x:0,y=d==="left"?u.right.x:0,_=a.top-o+b>c,S=o-a.bottom-h>c,w=a.left-r+f>c,E=r-a.right-y>c;return _||S||w||E})}function br(e,t,r){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[o](i,r)})}function co(e,t){for(var r=t;r;){var o;if(e.contains(r))return!0;r=r.getRootNode==null||(o=r.getRootNode())==null?void 0:o.host}return!1}var me={isTouch:!1},uo=0;function Ni(){me.isTouch||(me.isTouch=!0,window.performance&&document.addEventListener("mousemove",_o))}function _o(){var e=performance.now();e-uo<20&&(me.isTouch=!1,document.removeEventListener("mousemove",_o)),uo=e}function Mi(){var e=document.activeElement;if(ki(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Bi(){document.addEventListener("touchstart",Ni,We),window.addEventListener("blur",Mi)}var $i=typeof window!="undefined"&&typeof document!="undefined",Hi=$i?!!window.msCrypto:!1;var Wi={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Vi={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},ue=Object.assign({appendTo:bo,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Wi,Vi),zi=Object.keys(ue),ji=function(t){var r=Object.keys(t);r.forEach(function(o){ue[o]=t[o]})};function To(e){var t=e.plugins||[],r=t.reduce(function(o,i){var a=i.name,s=i.defaultValue;if(a){var l;o[a]=e[a]!==void 0?e[a]:(l=ue[a])!=null?l:s}return o},{});return Object.assign({},e,r)}function qi(e,t){var r=t?Object.keys(To(Object.assign({},ue,{plugins:t}))):zi,o=r.reduce(function(i,a){var s=(e.getAttribute("data-tippy-"+a)||"").trim();if(!s)return i;if(a==="content")i[a]=s;else try{i[a]=JSON.parse(s)}catch(l){i[a]=s}return i},{});return o}function po(e,t){var r=Object.assign({},t,{content:yo(t.content,[e])},t.ignoreAttributes?{}:qi(e,t.plugins));return r.aria=Object.assign({},ue.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var Gi=function(){return"innerHTML"};function _r(e,t){e[Gi()]=t}function fo(e){var t=ht();return e===!0?t.className=go:(t.className=vo,Wt(e)?t.appendChild(e):_r(t,e)),t}function mo(e,t){Wt(t.content)?(_r(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?_r(e,t.content):e.textContent=t.content)}function Tr(e){var t=e.firstElementChild,r=Ht(t.children);return{box:t,content:r.find(function(o){return o.classList.contains(ho)}),arrow:r.find(function(o){return o.classList.contains(go)||o.classList.contains(vo)}),backdrop:r.find(function(o){return o.classList.contains(Di)})}}function So(e){var t=ht(),r=ht();r.className=wi,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var o=ht();o.className=ho,o.setAttribute("data-state","hidden"),mo(o,e.props),t.appendChild(r),r.appendChild(o),i(e.props,e.props);function i(a,s){var l=Tr(t),c=l.box,d=l.content,u=l.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(a.content!==s.content||a.allowHTML!==s.allowHTML)&&mo(d,e.props),s.arrow?u?a.arrow!==s.arrow&&(c.removeChild(u),c.appendChild(fo(s.arrow))):c.appendChild(fo(s.arrow)):u&&c.removeChild(u)}return{popper:t,onUpdate:i}}So.$$tippy=!0;var Ki=1,$t=[],yr=[];function Fi(e,t){var r=po(e,Object.assign({},ue,To(so(t)))),o,i,a,s=!1,l=!1,c=!1,d=!1,u,b,h,f=[],y=ao(St,r.interactiveDebounce),_,S=Ki++,w=null,E=Ai(r.plugins),L={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},n={id:S,reference:e,popper:ht(),popperInstance:w,props:r,state:L,plugins:E,clearDelayTimeouts:Et,setProps:At,setContent:Ct,show:Po,hide:Io,hideWithInteractivity:Uo,enable:nt,disable:Dt,unmount:No,destroy:Mo};if(!r.render)return n;var x=r.render(n),m=x.popper,v=x.onUpdate;m.setAttribute("data-tippy-root",""),m.id="tippy-"+n.id,n.popper=m,e._tippy=n,m._tippy=n;var A=E.map(function(p){return p.fn(n)}),R=e.hasAttribute("aria-expanded");return Ge(),de(),X(),G("onCreate",[n]),r.showOnCreate&&at(),m.addEventListener("mouseenter",function(){n.props.interactive&&n.state.isVisible&&n.clearDelayTimeouts()}),m.addEventListener("mouseleave",function(){n.props.interactive&&n.props.trigger.indexOf("mouseenter")>=0&&Z().addEventListener("mousemove",y)}),n;function U(){var p=n.props.touch;return Array.isArray(p)?p:[p,0]}function H(){return U()[0]==="hold"}function N(){var p;return!!((p=n.props.render)!=null&&p.$$tippy)}function I(){return _||e}function Z(){var p=I().parentNode;return p?Ii(p):document}function ee(){return Tr(m)}function F(p){return n.state.isMounted&&!n.state.isVisible||me.isTouch||u&&u.type==="focus"?0:gr(n.props.delay,p?0:1,ue.delay)}function X(p){p===void 0&&(p=!1),m.style.pointerEvents=n.props.interactive&&!p?"":"none",m.style.zIndex=""+n.props.zIndex}function G(p,g,T){if(T===void 0&&(T=!0),A.forEach(function(O){O[p]&&O[p].apply(O,g)}),T){var C;(C=n.props)[p].apply(C,g)}}function pe(){var p=n.props.aria;if(p.content){var g="aria-"+p.content,T=m.id,C=et(n.props.triggerTarget||e);C.forEach(function(O){var J=O.getAttribute(g);if(n.state.isVisible)O.setAttribute(g,J?J+" "+T:T);else{var re=J&&J.replace(T,"").trim();re?O.setAttribute(g,re):O.removeAttribute(g)}})}}function de(){if(!(R||!n.props.aria.expanded)){var p=et(n.props.triggerTarget||e);p.forEach(function(g){n.props.interactive?g.setAttribute("aria-expanded",n.state.isVisible&&g===I()?"true":"false"):g.removeAttribute("aria-expanded")})}}function Ce(){Z().removeEventListener("mousemove",y),$t=$t.filter(function(p){return p!==y})}function fe(p){if(!(me.isTouch&&(c||p.type==="mousedown"))){var g=p.composedPath&&p.composedPath()[0]||p.target;if(!(n.props.interactive&&co(m,g))){if(et(n.props.triggerTarget||e).some(function(T){return co(T,g)})){if(me.isTouch||n.state.isVisible&&n.props.trigger.indexOf("click")>=0)return}else G("onClickOutside",[n,p]);n.props.hideOnClick===!0&&(n.clearDelayTimeouts(),n.hide(),l=!0,setTimeout(function(){l=!1}),n.state.isMounted||ge())}}}function Le(){c=!0}function he(){c=!1}function ne(){var p=Z();p.addEventListener("mousedown",fe,!0),p.addEventListener("touchend",fe,We),p.addEventListener("touchstart",he,We),p.addEventListener("touchmove",Le,We)}function ge(){var p=Z();p.removeEventListener("mousedown",fe,!0),p.removeEventListener("touchend",fe,We),p.removeEventListener("touchstart",he,We),p.removeEventListener("touchmove",Le,We)}function je(p,g){qe(p,function(){!n.state.isVisible&&m.parentNode&&m.parentNode.contains(m)&&g()})}function ve(p,g){qe(p,g)}function qe(p,g){var T=ee().box;function C(O){O.target===T&&(br(T,"remove",C),g())}if(p===0)return g();br(T,"remove",b),br(T,"add",C),b=C}function Oe(p,g,T){T===void 0&&(T=!1);var C=et(n.props.triggerTarget||e);C.forEach(function(O){O.addEventListener(p,g,T),f.push({node:O,eventType:p,handler:g,options:T})})}function Ge(){H()&&(Oe("touchstart",rt,{passive:!0}),Oe("touchend",xt,{passive:!0})),Ei(n.props.trigger).forEach(function(p){if(p!=="manual")switch(Oe(p,rt),p){case"mouseenter":Oe("mouseleave",xt);break;case"focus":Oe(Hi?"focusout":"blur",ot);break;case"focusin":Oe("focusout",ot);break}})}function Tt(){f.forEach(function(p){var g=p.node,T=p.eventType,C=p.handler,O=p.options;g.removeEventListener(T,C,O)}),f=[]}function rt(p){var g,T=!1;if(!(!n.state.isEnabled||it(p)||l)){var C=((g=u)==null?void 0:g.type)==="focus";u=p,_=p.currentTarget,de(),!n.state.isVisible&&Ri(p)&&$t.forEach(function(O){return O(p)}),p.type==="click"&&(n.props.trigger.indexOf("mouseenter")<0||s)&&n.props.hideOnClick!==!1&&n.state.isVisible?T=!0:at(p),p.type==="click"&&(s=!T),T&&!C&&Re(p)}}function St(p){var g=p.target,T=I().contains(g)||m.contains(g);if(!(p.type==="mousemove"&&T)){var C=we().concat(m).map(function(O){var J,re=O._tippy,Ke=(J=re.popperInstance)==null?void 0:J.state;return Ke?{popperRect:O.getBoundingClientRect(),popperState:Ke,props:r}:null}).filter(Boolean);Ui(C,p)&&(Ce(),Re(p))}}function xt(p){var g=it(p)||n.props.trigger.indexOf("click")>=0&&s;if(!g){if(n.props.interactive){n.hideWithInteractivity(p);return}Re(p)}}function ot(p){n.props.trigger.indexOf("focusin")<0&&p.target!==I()||n.props.interactive&&p.relatedTarget&&m.contains(p.relatedTarget)||Re(p)}function it(p){return me.isTouch?H()!==p.type.indexOf("touch")>=0:!1}function Ot(){wt();var p=n.props,g=p.popperOptions,T=p.placement,C=p.offset,O=p.getReferenceClientRect,J=p.moveTransition,re=N()?Tr(m).arrow:null,Ke=O?{getBoundingClientRect:O,contextElement:O.contextElement||I()}:e,Lr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Lt){var Fe=Lt.state;if(N()){var Bo=ee(),Qt=Bo.box;["placement","reference-hidden","escaped"].forEach(function(Rt){Rt==="placement"?Qt.setAttribute("data-placement",Fe.placement):Fe.attributes.popper["data-popper-"+Rt]?Qt.setAttribute("data-"+Rt,""):Qt.removeAttribute("data-"+Rt)}),Fe.attributes.popper={}}}},ke=[{name:"offset",options:{offset:C}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!J}},Lr];N()&&re&&ke.push({name:"arrow",options:{element:re,padding:3}}),ke.push.apply(ke,(g==null?void 0:g.modifiers)||[]),n.popperInstance=hr(Ke,m,Object.assign({},g,{placement:T,onFirstUpdate:h,modifiers:ke}))}function wt(){n.popperInstance&&(n.popperInstance.destroy(),n.popperInstance=null)}function be(){var p=n.props.appendTo,g,T=I();n.props.interactive&&p===bo||p==="parent"?g=T.parentNode:g=yo(p,[T]),g.contains(m)||g.appendChild(m),n.state.isMounted=!0,Ot()}function we(){return Ht(m.querySelectorAll("[data-tippy-root]"))}function at(p){n.clearDelayTimeouts(),p&&G("onTrigger",[n,p]),ne();var g=F(!0),T=U(),C=T[0],O=T[1];me.isTouch&&C==="hold"&&O&&(g=O),g?o=setTimeout(function(){n.show()},g):n.show()}function Re(p){if(n.clearDelayTimeouts(),G("onUntrigger",[n,p]),!n.state.isVisible){ge();return}if(!(n.props.trigger.indexOf("mouseenter")>=0&&n.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(p.type)>=0&&s)){var g=F(!1);g?i=setTimeout(function(){n.state.isVisible&&n.hide()},g):a=requestAnimationFrame(function(){n.hide()})}}function nt(){n.state.isEnabled=!0}function Dt(){n.hide(),n.state.isEnabled=!1}function Et(){clearTimeout(o),clearTimeout(i),cancelAnimationFrame(a)}function At(p){if(!n.state.isDestroyed){G("onBeforeUpdate",[n,p]),Tt();var g=n.props,T=po(e,Object.assign({},g,so(p),{ignoreAttributes:!0}));n.props=T,Ge(),g.interactiveDebounce!==T.interactiveDebounce&&(Ce(),y=ao(St,T.interactiveDebounce)),g.triggerTarget&&!T.triggerTarget?et(g.triggerTarget).forEach(function(C){C.removeAttribute("aria-expanded")}):T.triggerTarget&&e.removeAttribute("aria-expanded"),de(),X(),v&&v(g,T),n.popperInstance&&(Ot(),we().forEach(function(C){requestAnimationFrame(C._tippy.popperInstance.forceUpdate)})),G("onAfterUpdate",[n,p])}}function Ct(p){n.setProps({content:p})}function Po(){var p=n.state.isVisible,g=n.state.isDestroyed,T=!n.state.isEnabled,C=me.isTouch&&!n.props.touch,O=gr(n.props.duration,0,ue.duration);if(!(p||g||T||C)&&!I().hasAttribute("disabled")&&(G("onShow",[n],!1),n.props.onShow(n)!==!1)){if(n.state.isVisible=!0,N()&&(m.style.visibility="visible"),X(),ne(),n.state.isMounted||(m.style.transition="none"),N()){var J=ee(),re=J.box,Ke=J.content;vr([re,Ke],0)}h=function(){var ke;if(!(!n.state.isVisible||d)){if(d=!0,m.offsetHeight,m.style.transition=n.props.moveTransition,N()&&n.props.animation){var Jt=ee(),Lt=Jt.box,Fe=Jt.content;vr([Lt,Fe],O),lo([Lt,Fe],"visible")}pe(),de(),no(yr,n),(ke=n.popperInstance)==null||ke.forceUpdate(),G("onMount",[n]),n.props.animation&&N()&&ve(O,function(){n.state.isShown=!0,G("onShown",[n])})}},be()}}function Io(){var p=!n.state.isVisible,g=n.state.isDestroyed,T=!n.state.isEnabled,C=gr(n.props.duration,1,ue.duration);if(!(p||g||T)&&(G("onHide",[n],!1),n.props.onHide(n)!==!1)){if(n.state.isVisible=!1,n.state.isShown=!1,d=!1,s=!1,N()&&(m.style.visibility="hidden"),Ce(),ge(),X(!0),N()){var O=ee(),J=O.box,re=O.content;n.props.animation&&(vr([J,re],C),lo([J,re],"hidden"))}pe(),de(),n.props.animation?N()&&je(C,n.unmount):n.unmount()}}function Uo(p){Z().addEventListener("mousemove",y),no($t,y),y(p)}function No(){n.state.isVisible&&n.hide(),n.state.isMounted&&(wt(),we().forEach(function(p){p._tippy.unmount()}),m.parentNode&&m.parentNode.removeChild(m),yr=yr.filter(function(p){return p!==n}),n.state.isMounted=!1,G("onHidden",[n]))}function Mo(){n.state.isDestroyed||(n.clearDelayTimeouts(),n.unmount(),Tt(),delete e._tippy,n.state.isDestroyed=!0,G("onDestroy",[n]))}}function gt(e,t){t===void 0&&(t={});var r=ue.plugins.concat(t.plugins||[]);Bi();var o=Object.assign({},t,{plugins:r}),i=Pi(e);if(!1)var a,s;var l=i.reduce(function(c,d){var u=d&&Fi(d,o);return u&&c.push(u),c},[]);return Wt(e)?l[0]:l}gt.defaultProps=ue;gt.setDefaultProps=ji;gt.currentInput=me;var nc=Object.assign({},lt,{effect:function(t){var r=t.state,o={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow)}});gt.setDefaultProps({render:So});var xo=gt;var P="trtc_debug_dialog",Ae=`${P}_activated`,Vt=`${P}_switch`,xr=`${P}_mask`,zt=`${P}_pannel`,Or=`${P}_tabber`,jt=`${P}_tab`,wr=`${P}_topbar`,Ve=`${P}_toptab`,Se=`${P}_content`,qt=`${P}_has_topbar`,Oo=`${Se}_log`,ze=`${Se}_network`,Gt=`${ze}_title`,Dr=`${ze}_basic`,Er=`${ze}_local`,Ar=`${ze}_remote`,Kt=`${P}_banner`,wo=`${Kt}_item`,Do=`${P}_toolbar`,vt=`${P}_tool`,xe=`${P}_item`,Eo=`${xe}_debug`,Ao=`${xe}_info`,Co=`${xe}_warn`,Lo=`${xe}_error`,bt=`${P}_back_top`,yt=`${P}_go_bottom`,Ro="success",Xi="failed",Cr=!1,_t=class{constructor(t,r){D(this,"_dialogStyle",null);D(this,"_dialogNode",null);D(this,"_switchNode",null);D(this,"_maskNode",null);D(this,"_pannelNode",null);D(this,"_logContentNode",null);D(this,"_networkContentNode",null);D(this,"_tabNodes",[]);D(this,"_toptabNodes",[]);D(this,"_backTopButton",null);D(this,"_goBottomButton",null);D(this,"_hasMove",!1);D(this,"_showDialog",!1);D(this,"_isMobile",!1);D(this,"_showLogType","all");D(this,"prevBytesSent",0);D(this,"prevBytesReceived",0);D(this,"_core");D(this,"_log");D(this,"_logList",[]);D(this,"_networkQuality");D(this,"tippyCount",0);D(this,"isUploading",!1);D(this,"handleNetworkQuality",t=>{this._networkQuality=t});D(this,"handleHeartbeatReport",t=>{var f,y,_,S,w,E,L,n,x,m;let o={2:"big",3:"small",7:"sub"},i={rtt:t.msg_up_stream_info.msg_network_status.uint32_rtt||((f=t.msg_down_stream_info[0])==null?void 0:f.msg_network_status.uint32_rtt)||((y=this._networkQuality)==null?void 0:y.uplinkRTT)||((_=this._networkQuality)==null?void 0:_.downlinkRTT)||0,upLoss:((S=this._networkQuality)==null?void 0:S.uplinkLoss)||0,downLoss:((w=this._networkQuality)==null?void 0:w.downlinkLoss)||0,bytesSent:t.bytes_sent||0,bytesReceived:t.bytes_received||0,localStatistics:{audio:{bitrate:(((E=t.msg_up_stream_info.msg_audio_status)==null?void 0:E.uint32_audio_codec_bitrate)||0)/1e3,audioLevel:(((L=t.msg_up_stream_info.msg_audio_status)==null?void 0:L.uint32_audio_level)||0)/1e8},video:t.msg_up_stream_info.msg_video_status.filter(v=>o[v.uint32_video_stream_type]).map(v=>({bitrate:(v.uint32_video_codec_bitrate||0)/1e3,width:v.uint32_video_width,height:v.uint32_video_height,frameRate:v.uint32_video_enc_fps,videoType:o[v.uint32_video_stream_type]}))},remoteStatistics:t.msg_down_stream_info.map(v=>({userId:v.msg_user_info.str_identifier,audio:{bitrate:(v.msg_audio_status.uint32_audio_codec_bitrate||0)/1e3,audioLevel:(v.msg_audio_status.uint32_audio_level||0)/1e8},video:v.msg_video_status.map(A=>({bitrate:(A.uint32_video_codec_bitrate||0)/1e3,width:A.uint32_video_width,height:A.uint32_video_height,frameRate:A.uint32_video_dec_fps,videoType:o[A.uint32_video_stream_type]}))}))},a=(i.bytesSent-this.prevBytesSent)/2,s=(i.bytesReceived-this.prevBytesReceived)/2;this.prevBytesSent=i.bytesSent,this.prevBytesReceived=i.bytesReceived;let l=(n=this._dialogNode)==null?void 0:n.querySelector(`.${Dr}`),c=`rtt: ${i.rtt} ms upLoss: ${i.upLoss} downLoss: ${i.downLoss} <br>
\u2191 ${a/1e3} KB/s (${8*a/1e3} Kb/s) <br>
\u2193 ${s/1e3} KB/s (${8*s/1e3} Kb/s) <br>
`;l.innerHTML=c;let d=(x=this._dialogNode)==null?void 0:x.querySelector(`.${Er}`),u="";i.localStatistics.audio.bitrate&&(u=`<li>local audio: ${i.localStatistics.audio.bitrate} Kb/s audioLevel: ${i.localStatistics.audio.audioLevel.toFixed(5)}</li>`),i.localStatistics.video.length>0&&(u+=`${i.localStatistics.video.map(v=>`<li>local ${v.videoType} video: ${v.bitrate} Kb/s ${v.width}*${v.height} ${v.frameRate}fps</li>`).join("")}`),d.innerHTML=u===""?`${Y.NO_DATA}`:u;let b=(m=this._dialogNode)==null?void 0:m.querySelector(`.${Ar}`),h="";i.remoteStatistics.length>0&&i.remoteStatistics.forEach(v=>{let A=`remote ${v.userId}:`;v.audio.bitrate>0&&(A+=`<li>audio: ${v.audio.bitrate} Kb/s audioLevel: ${v.audio.audioLevel.toFixed(5)}</li>`),v.video.length>0&&v.video.forEach(R=>{A+=`<li>${R.videoType} video: ${R.bitrate} Kb/s ${R.width}*${R.height} ${R.frameRate}fps</li>`}),h+=A}),b.innerHTML=h===""?`${Y.NO_DATA}`:h});Cr=!0,this._core=t,this._log=r,this.addStyle(),this.addDialog(),this.synchronizeLog(),this.installEvents()}synchronizeLog(){this._core.loggerManager.getQueue().forEach(r=>{this.updateLog(r)})}addStyle(){this._dialogStyle=document.createElement("style"),this._dialogStyle.innerHTML=`
#${P}
{--DD-BG-0:#ededed;--DD-BG-1:#f7f7f7;--DD-BG-2:#fff;--DD-BODER:rgba(0,0,0,0.1);--DD-ERROR:red;--DD-WARN:#fa9d3b;--DD-INFO:#000;--DD-DEBUG:#10aeff;--DD-WARN-BG:#fff3cc;--DD-ERROR-BG:#ffe6e6;}
#${P} a,.${Vt}{cursor:pointer;}
.${P}{color:black;}
.${Vt}{display:block;position:fixed;right:50px;bottom:150px;border-radius:5px;background-color:#07c160;color:#fff;padding:5px 10px;z-index:10000;}
.${xr}{display:none;position:fixed;left:0;top:0;right:0;bottom:0;z-index:10001;background-color:rgb(0,0,0,0.6);}
.${zt}{background-color:#ededed;display:none;position:fixed;min-height:85%;left:60%;right:0;bottom:0;z-index:10002;border:1px solid var(--DD-BG-0);}
@media (max-width:768px) {.${zt}{left:0;}}
.${Or}{display:flex;height:2rem;border-bottom:1px solid var(--DD-BODER);}
.${jt}{padding:0 20px;border-right:1px solid rgba(0, 0, 0, 0.1);line-height:2rem;color: black;}
.${jt}.${Ae}{background-color:var(--DD-BG-2);}
.${wr}{height:2rem;display:flex;flex-direction:row;}
.${Ve}{width:20%;text-align:center;line-height:2rem;border-right:1px solid var(--DD-BODER);border-bottom:1px solid var(--DD-BODER);color:black;}
.${Ve}.${Ae}{border-bottom:1px solid #1485ee;background-color:var(--DD-BG-2);}
.${Se}{background-color:#fff;position:absolute;left:0;right:0;top:2rem;bottom:6rem;overflow-y:scroll;overflow-x:hidden;}
.${Se}.${qt}{top:4rem;}
.${ze}{display:flex;display:none;}
.${Gt}{text-align:center;background-color:var(--DD-BG-0);border-bottom:1px solid var(--DD-BODER);}
.${Dr},.${Er},.${Ar}{text-align:center;border-bottom:1px solid var(--DD-BODER);}
.${xe}{border-bottom:1px solid var(--DD-BG-0);padding:5px 10px;overflow-wrap: break-word;}
.${Lo}{color:var(--DD-ERROR);background-color:var(--DD-ERROR-BG);}
.${Co}{color:var(--DD-WARN);background-color:var(--DD-WARN-BG);}
.${Ao}{color:var(--DD-INFO);}
.${Eo}{color:var(--DD-DEBUG);}
.${Kt}{position:absolute;left:0;right:0;bottom:2rem;height:4rem;border-bottom:1px solid var(--DD-BODER);display:flex;flex-direction:column;overflow-y:scroll;background-color:var(--DD-BG-1);}
.${wo}{border-bottom:1px solid var(--DD-BODER);padding:5px 10px;overflow-wrap: break-word;}
.${Do}{position:absolute;line-height:2rem;display:flex;flex-direction:row;left:0;right:0;bottom:0;}
.${vt}{flex:1;color:black;text-align:center;background-color:#ededed;border-right:1px solid var(--DD-BODER);}
#${P} .${bt},#${P} .${yt}{position:absolute;height:2rem;width:6rem;right:2rem;border-radius:5px;background-color:rgba(30, 136, 229, 0.8);z-index:10003;cursor:pointer;padding:0 5px;line-height:2rem;color:white;text-align:center;}
.${yt}{bottom:7rem;}
.${bt}{bottom:9.5rem;}
#${P} .${vt}.disable {cursor: not-allowed;background-color: #ededed;color: #999;}
.tippy-box {position: relative;background-color: #333;color: #fff;border-radius: 4px;font-size: 14px;line-height: 1.4; white-space: normal;outline: 0;transition-property: transform, visibility, opacity;}
.tippy-content {position: relative;padding: 5px 9px;}
.tippy-arrow {width: 16px;height: 16px;color: #333;}
.tippy-arrow:before {content: "";position: absolute;border-color: transparent;border-style: solid;}.tippy-box[data-placement^=top]>.tippy-arrow:before {bottom: -7px;left: 0;border-width: 8px 8px 0; border-top-color: initial;transform-origin: center top;}
.tippy-box[data-placement^=top]>.tippy-arrow {bottom: 0;}
`,document.body.appendChild(this._dialogStyle)}addDialog(){this._dialogNode=this.createDiaLog(),document.body.appendChild(this._dialogNode)}createDiaLog(){var s,l,c,d;this._isMobile=er();let t=document.createElement("template");t.innerHTML=`<div id="${P}" class="${P}"><div class="${Vt}">Debug</div><div class="${xr}"></div><div class="${zt}"><a class="${bt}">${Y.BACK_TOP}</a><a class="${yt}">${Y.GO_BOTTOM}</a><div class="${Or}"><a class="${jt} ${Ae}" data-tab="log">${Y.LOG_BUTTON}</a><a class="${jt}" data-tab="network">${Y.NETWORK_BUTTON}</a></div><div class="${wr}"><a class="${Ve} ${Ae}" data-type="all">All</a><a class="${Ve}" data-type="debug">Debug</a><a class="${Ve}" data-type="info">Info</a><a class="${Ve}" data-type="warn">Warn</a><a class="${Ve}" data-type="error">Error</a></div><div class="${Se} ${qt}"><div class="${Oo}"></div><div class="${ze}"><div class="${Gt}">${Y.BASIC}</div><div class="${Dr}">${Y.NO_DATA}</div><div class="${Gt}">${Y.UPLINK}</div><div class="${Er}">${Y.NO_DATA}</div><div class="${Gt}">${Y.Downlink}</div><div class="${Ar}">${Y.NO_DATA}</div></div></div><div class="${Kt}"></div><div class="${Do}"><a id="trtc_upload" class="${vt}">${Y.UPLOAD_BUTTON}</a><a id="trtc_export" class="${vt}">${Y.EXPORT_BUTTON}</a><a id="trtc_hide" class="${vt}">${Y.HIDE_BUTTON}</a></div></div></div>`;let r=t.content.firstChild;this._switchNode=r.querySelector(`.${Vt}`),(s=this._switchNode)==null||s.addEventListener("click",this.onSwitchClick.bind(this)),this.dragable(this._switchNode),this._maskNode=r.querySelector(`.${xr}`),(l=this._maskNode)==null||l.addEventListener("click",this.onMaskClick.bind(this)),this._pannelNode=r.querySelector(`.${zt}`),(c=r.querySelector(`.${bt}`))==null||c.addEventListener("click",this.onBackTopClick.bind(this)),(d=r.querySelector(`.${yt}`))==null||d.addEventListener("click",this.onGoBottomClick.bind(this)),this._logContentNode=r.querySelector(`.${Oo}`),this._networkContentNode=r.querySelector(`.${ze}`),this._tabNodes=Array.from(r.querySelector(`.${Or}`).children),this._tabNodes.forEach(u=>{u.addEventListener("click",this.onTabClick.bind(this))}),this._toptabNodes=Array.from(r.querySelector(`.${wr}`).children),this._toptabNodes.forEach(u=>{u.addEventListener("click",this.onToptabClick.bind(this))}),this._backTopButton=r.querySelector(`.${bt}`),this._goBottomButton=r.querySelector(`.${yt}`);let o=r.querySelector("#trtc_upload");o==null||o.addEventListener("click",this.onUploadClick.bind(this));let i=r.querySelector("#trtc_export");i==null||i.addEventListener("click",this.onExportClick.bind(this));let a=r.querySelector("#trtc_hide");return a==null||a.addEventListener("click",this.onHideClick.bind(this)),r}deleteDialog(){Cr&&(Cr=!1,this.uninstallEvents(),this._dialogNode&&(document.body.removeChild(this._dialogNode),this._dialogNode=null),this._dialogStyle&&(document.body.removeChild(this._dialogStyle),this._dialogStyle=null))}updateLog(t){var o;this._logList.push(t);let r=document.createElement("div");switch(r.classList.add(xe),t.level){case 4:r.classList.add(Lo);break;case 2:r.classList.add(Ao);break;case 3:r.classList.add(Co);break;case 1:r.classList.add(Eo);break;default:break}r.textContent=t.log,this._showLogType!=="all"&&!r.classList.contains(`${xe}_${this._showLogType}`)&&(r.style.display="none"),(o=this._logContentNode)==null||o.appendChild(r),this.addHelper(r)}onSwitchClick(){if(this._hasMove){this._hasMove=!1;return}this._showDialog?this.hideDialog():(this._isMobile&&(this._maskNode.style.display="block"),this._pannelNode.style.display="block",this._switchNode.style.display="none",this._showDialog=!0)}onTabClick(t){var i,a,s,l,c;let r=t.target;(i=this._tabNodes)==null||i.forEach(d=>{d.classList.remove(Ae)}),r.classList.add(Ae);let o=r.getAttribute("data-tab");o==="log"?((s=(a=this._dialogNode)==null?void 0:a.querySelector(`.${Se}`))==null||s.classList.add(qt),this._logContentNode.style.display="block",this._networkContentNode.style.display="none",this._goBottomButton.style.display="block",this._backTopButton.style.display="block"):o==="network"&&((c=(l=this._dialogNode)==null?void 0:l.querySelector(`.${Se}`))==null||c.classList.remove(qt),this._networkContentNode.style.display="block",this._logContentNode.style.display="none",this._backTopButton.style.display="none",this._goBottomButton.style.display="none")}onToptabClick(t){var a,s;let r=t.target;(a=this._toptabNodes)==null||a.forEach(l=>{l.classList.remove(Ae)}),r.classList.add(Ae),this._showLogType=r.getAttribute("data-type");let o=(s=this._logContentNode)==null?void 0:s.querySelectorAll(`.${xe}`),i=`${xe}_${this._showLogType}`;o.forEach(l=>{l.classList.contains(i)||this._showLogType==="all"?l.style.display="block":l.style.display="none"})}onExportClick(){var s,l,c,d,u,b;let t=this._logList.reduce((h,f)=>`${h+f.log}
`,""),r=new Blob([t],{type:"text/plain"}),o=document.createElement("a"),i=URL.createObjectURL(r);o.href=i;let a=`trtc_${((s=this._core)==null?void 0:s.room.sdkAppId)===void 0?"EmptySdkAppId":(c=(l=this._core)==null?void 0:l.room)==null?void 0:c.sdkAppId}_${((d=this._core)==null?void 0:d.room.userId)===void 0?"EmptyUserId":(u=this._core)==null?void 0:u.room.userId}_${new Date().getTime()}.log`;o.download=a,o.style.display="none",document.body.appendChild(o),o.click(),URL.revokeObjectURL(i),document.body.removeChild(o),this.addInfoToBanner(Ro,z?`\u5BFC\u51FA\u6210\u529F\uFF1A\u65E5\u5FD7\u6587\u4EF6\u540D\u4E3A${a}`:`Export success: The log file name is ${a}`),(b=this._log)==null||b.info("Export success: The log file name is ${fileName}")}addInfoToBanner(t,r){var a;let o=(a=this._dialogNode)==null?void 0:a.querySelector(`.${Kt}`),i=document.createElement("div");i.classList.add(wo),i.innerText=`${t===Ro?"\u{1F7E9}":"\u{1F7E5} "} ${r}`,o.appendChild(i),o.scrollTop=o.scrollHeight}async onUploadClick(){var l,c,d;if(this.isUploading)return;this.isUploading=!0;let t=(l=this._dialogNode)==null?void 0:l.querySelector("#trtc_upload");t.innerText=z?"\u4E0A\u4F20\u4E2D...":"Uploading...",t==null||t.classList.add(".disable");let r=this._logList.reduce((u,b)=>`${u+b.log}
`,""),o=new Blob([r],{type:"text/plain"}),i=new FormData,a="trtc.log";i.append("file",o,a),i.append("sdkAppId",`${((c=this._core)==null?void 0:c.room.sdkAppId)||"EmptySdkAppId"}`),i.append("userId",`${((d=this._core)==null?void 0:d.room.userId)||"EmptyUserId"}`),fetch("https://service.trtc.qcloud.com/api/uploadLogFile",{method:"POST",body:i}).then(u=>u.json()).then(u=>{var b;this.addInfoToBanner(u==null?void 0:u.type,z?u==null?void 0:u.message_zh:u==null?void 0:u.message_en),this.isUploading=!1,(b=this._log)==null||b.info(u==null?void 0:u.message_en)}).catch(()=>{var u;this.addInfoToBanner(Xi,z?"\u4E0A\u4F20\u5931\u8D25\uFF1A\u8BF7\u4F7F\u7528\u672C\u5730\u5BFC\u51FA":"Upload Failed: Please use local export"),(u=this._log)==null||u.info("Upload Failed: Please use local export")}).finally(()=>{t.innerText=z?"\u4E0A\u4F20":"Upload",t==null||t.classList.remove(".disable"),this.isUploading=!1})}onHideClick(){this.hideDialog()}onMaskClick(){this.hideDialog()}hideDialog(){this._isMobile&&(this._maskNode.style.display="none"),this._pannelNode.style.display="none",this._switchNode.style.display="block",this._showDialog=!1}onBackTopClick(){var t,r;(r=(t=this._dialogNode)==null?void 0:t.querySelector(`.${Se}`))==null||r.scrollTo(0,0)}onGoBottomClick(){var r;let t=(r=this._dialogNode)==null?void 0:r.querySelector(`.${Se}`);t==null||t.scrollTo(0,t==null?void 0:t.scrollHeight)}dragable(t){var u,b;let r={x:0,y:0,startX:0,startY:0,endX:0,endY:0,isTouchEnd:!1};r.x=((u=this._switchNode)==null?void 0:u.offsetLeft)||50,r.y=((b=this._switchNode)==null?void 0:b.offsetTop)||150;let o=h=>{h.preventDefault(),r.startX=h.pageX,r.startY=h.pageY,document.addEventListener("mousemove",i),document.addEventListener("mouseup",a)},i=h=>{h.cancelable&&h.preventDefault(),this._hasMove=!0;let f=r.x-(h.pageX-r.startX),y=r.y-(h.pageY-r.startY);[f,y]=d(f,y),this._switchNode.style.right=`${f}px`,this._switchNode.style.bottom=`${y}px`,r.endX=f,r.endY=y},a=()=>{r.startX=0,r.startY=0,r.x=r.endX,r.y=r.endY,document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a)},s=h=>{r.startX=h.touches[0].pageX,r.startY=h.touches[0].pageY,r.isTouchEnd=!1},l=()=>{r.isTouchEnd&&(r.startX=0,r.startY=0,r.isTouchEnd=!1,r.x=r.endX,r.y=r.endY)},c=h=>{if(h.touches.length<=0)return;let f=h.touches[0].pageX-r.startX,y=h.touches[0].pageY-r.startY,_=Math.floor(r.x-f),S=Math.floor(r.y-y);[_,S]=d(_,S),this._switchNode.style.right=`${_}px`,this._switchNode.style.bottom=`${S}px`,r.endX=_,r.endY=S,r.isTouchEnd=!0,h.cancelable&&h.preventDefault()},d=(h,f)=>{let y=Math.max(document.documentElement.offsetWidth,window.innerWidth),_=Math.max(document.documentElement.offsetHeight,window.innerHeight);return h+this._switchNode.offsetWidth>y&&(h=y-this._switchNode.offsetWidth),f+this._switchNode.offsetHeight>_&&(f=_-this._switchNode.offsetHeight),h<0&&(h=0),f<20&&(f=20),[h,f]};er()?(t.addEventListener("touchstart",s,{passive:!1}),t.addEventListener("touchend",l,{passive:!1}),t.addEventListener("touchmove",c,{passive:!1})):t.addEventListener("mousedown",o)}installEvents(){this._core.innerEmitter.on("264",this.handleLog,this),this._core.room.on("network-quality",this.handleNetworkQuality,this),this._core.room.on("heartbeat-report",this.handleHeartbeatReport,this)}uninstallEvents(){this._core.innerEmitter.off("264",this.handleLog,this),this._core.room.off("network-quality",this.handleNetworkQuality,this),this._core.room.off("heartbeat-report",this.handleHeartbeatReport,this)}handleLog(t){this.updateLog(t.log)}addHelper(t){let r=/((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/g,o=Mr,i=t.innerText;i=i.split(`
`).map(a=>{if(a=a.replaceAll("<","&lt;").replaceAll(">","&gt;"),a.includes("failed"))return a.includes("on autoplay-failed")?a:`<span class='red' style="background:red; color:#fff;">${a}</span>`;if(a.includes("clientIp:")){let s=a.match(r);return s==null||s.forEach(l=>{a=a.replaceAll(l,`<a href="javascript:void(0);" target=""><span class='ip' style="background:#e1dfdf">${l}</span></a>`)}),a}return a.includes("URL of current page")&&(a=a.replace(/URL of current page: (.+)/,'URL of current page: <a href="$1">$1</a>')),a}).join(`
`),o.forEach(a=>{if(t.innerText.includes(a)){let s=`tooltip-${this.tippyCount}`;i=i.replace(new RegExp(`${Nr(a)}`,"gi"),`<span id="${s}" class='${te[a].class||te[a].color||"gray"}' style="background:${te[a].color||"#e1dfdf"}; color: ${te[a].textColor||"#000"}">${a}</span>`),setTimeout(()=>{let l="";z?l=typeof te[a].tips_zh=="function"?te[a].tips_zh(t.innerText):te[a].tips_zh:l=typeof te[a].tips_en=="function"?te[a].tips_en(t.innerText):te[a].tips_en;let c=document.getElementById(`${s}`);c&&xo(c,{content:l,zIndex:10004,placement:"top"})},500),this.tippyCount+=1}}),t.innerHTML=i}};Zt([tr(300,()=>"export")],_t.prototype,"onExportClick",1),Zt([tr(300,()=>"upload")],_t.prototype,"onUploadClick",1);var ko=_t;var tt=null,Ft=null,Yt=class Yt{constructor(t){this.core=t;D(this,"seq");D(this,"_core");D(this,"log");return Ft||(this._core=t,this.log=t.log.createChild({id:this.getAlias()}),this.log.info("created"),Ft=this,Ft)}getName(){return Yt.Name}getAlias(){return"dm"}getGroup(){return"dm"}getValidateRule(t){switch(t){case"start":return kr();case"update":return Pr();case"stop":return Ir()}}start(){Ur&&(this._openDebugDiaLog(),this.log.warn("if you are in production environment, please use URL param `trtcDebug=ture` to open debug dialog")),new URLSearchParams(location.search).get("trtcDebug")&&this._openDebugDiaLog()}update(){}stop(){this._closeDebugDiaLog()}destroy(){this.log.info("destroyed")}_openDebugDiaLog(){tt||(tt=new ko(this._core,this.log))}_closeDebugDiaLog(){tt==null||tt.deleteDialog(),tt=null}};D(Yt,"Name","Debug");var Xt=Yt;var Yi=Xt;return jo(Ji);})().default;