@besovideo/webrtc-player 0.2.7 → 0.3.1

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.
Files changed (45) hide show
  1. package/dist/main.browser.css +1 -1
  2. package/dist/main.browser.js +10 -10
  3. package/dist/main.es.css +1 -1
  4. package/dist/main.es.js +10 -10
  5. package/dist/types/api/var.d.ts +5 -0
  6. package/dist/types/app.d.ts +2 -4
  7. package/dist/types/components/bvWebrtc/index.d.ts +2 -0
  8. package/dist/types/components/puPlayer.d.ts +1 -1
  9. package/dist/types/components/types.d.ts +2 -0
  10. package/dist/types/core/customElement.d.ts +4 -0
  11. package/dist/types/core/dom.d.ts +22 -0
  12. package/dist/types/core/events.d.ts +21 -8
  13. package/dist/types/core/field.d.ts +4 -0
  14. package/dist/types/core/index.d.ts +20 -3
  15. package/dist/types/core/jsx.d.ts +8 -0
  16. package/dist/types/core/style.d.ts +10 -0
  17. package/dist/types/core/types.d.ts +7 -1
  18. package/dist/types/index.d.ts +1 -1
  19. package/dist/types/instances/bvWebrtc.d.ts +8 -2
  20. package/dist/types/instances/common.d.ts +7 -1
  21. package/dist/types/main.d.ts +1 -1
  22. package/dist/types/plugins/controller/button.d.ts +13 -0
  23. package/dist/types/plugins/controller/event.d.ts +13 -0
  24. package/dist/types/plugins/controller/index.d.ts +22 -0
  25. package/dist/types/plugins/decorators.d.ts +2 -0
  26. package/dist/types/plugins/mixins/visible.d.ts +13 -0
  27. package/dist/types/plugins/modal.d.ts +33 -0
  28. package/dist/types/plugins/player/event.d.ts +18 -0
  29. package/dist/types/plugins/player/index.d.ts +25 -7
  30. package/dist/types/plugins/player/infoList.d.ts +14 -0
  31. package/dist/types/plugins/player/panel.d.ts +15 -0
  32. package/dist/types/plugins/player/reducers/types.d.ts +36 -0
  33. package/dist/types/plugins/types.d.ts +16 -23
  34. package/dist/types/plugins/video.d.ts +12 -2
  35. package/dist/types/templates/button.d.ts +8 -0
  36. package/dist/types/templates/icons.d.ts +18 -0
  37. package/dist/types/templates/type.d.ts +0 -0
  38. package/dist/types/utils/dev.d.ts +4 -0
  39. package/dist/types/utils/lang.d.ts +11 -0
  40. package/dist/types/utils/logger.d.ts +2 -0
  41. package/dist/types/utils/util.d.ts +2 -2
  42. package/dist/types/z_test/puPlayer.d.ts +1 -1
  43. package/dist/types/z_unuse/index.d.ts +5 -0
  44. package/package.json +68 -58
  45. package/dist/types/core/classes.d.ts +0 -2
@@ -1 +1 @@
1
- .bvplayer-core-player{position:relative;height:100%;width:100%;background-color:#000}.bvplayer-core-player .bvplayer-core-spinner{z-index:1}.bvplayer-core-player .bvplayer-core-mask{z-index:2}.bvplayer-core-video{position:absolute;display:block;pointer-events:none;box-sizing:border-box;width:100%;height:100%}.bvplayer-core-spinner{position:absolute;top:0;left:0;height:100%;width:100%}.bvplayer-core-spinner>span{display:inline-block;position:absolute;top:50%;left:50%;margin:-18px 0 0 -18px;height:36px;width:36px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIg0KICAgICB2aWV3Qm94PSIwIDAgMjQgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUwIDUwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCiAgICAgICAgPHJlY3QgeD0iMCIgeT0iNy42NDE2IiB3aWR0aD0iNCIgaGVpZ2h0PSIxNC43MTY4IiBvcGFjaXR5PSIwLjIiPg0KICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIwLjI7IDE7IC4yIiBiZWdpbj0iMHMiIGR1cj0iMC42cyINCiAgICAgICAg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AgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIxMDsgNTsgMTAiIGJlZ2luPSIwLjNzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDwvcmVjdD4NCiAgICAgIDwvc3ZnPg==)}.bvplayer-core-spinner>span svg{height:100%}.bvplayer-core-mask{height:100%;width:100%;position:absolute;top:0;left:0;display:grid;align-content:center;justify-content:center;place-content:center;background-color:#000;color:#fff;font-size:14px}html,body{margin:0}*,*:after,*:before{box-sizing:border-box}#root{height:400px;width:600px}
1
+ .bvplayer-common-flex-space{display:inline-block;flex:1}.bvplayer-icon{display:inline-block;height:22px;width:100%;vertical-align:middle}.bvplayer-icon svg{height:100%;width:100%}.bvplayer-modal{position:absolute;top:0;left:0;padding:12px 16px;font-size:14px;border:1px solid #2b303b;border-radius:3px;background:rgba(22,27,29,.8);color:#e8e8fd;box-shadow:0 0 20px -6px #000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);overflow:hidden;visibility:hidden;opacity:0;transform:scale(0);will-change:transform,opacity;transition:all .3s cubic-bezier(.785,.135,.15,.86)}.bvplayer-modal.bvplayer-common-is-visible{visibility:visible;opacity:1;transform:scale(1)}.bvplayer-modal--center{top:50%;left:50%;margin:auto;transform:translate(-50%,-50%) scale(0)}.bvplayer-modal--center.bvplayer-common-is-visible{transform:translate(-50%,-50%)}.bvplayer-modal_title-bar{display:flex;justify-content:space-between;margin-bottom:8px;font-size:16px}.bvplayer-modal_title-bar_close{cursor:pointer}.bvplayer-modal_body{padding:8px;overflow:hidden;overflow-y:auto}.bvplayer-spinner{position:absolute;top:0;left:0;height:100%;width:100%}.bvplayer-spinner>span{display:inline-block;position:absolute;top:50%;left:50%;margin:-18px 0 0 -18px;height:36px;width:36px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIg0KICAgICB2aWV3Qm94PSIwIDAgMjQgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUwIDUwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCiAgICAgICAgPHJlY3QgeD0iMCIgeT0iNy42NDE2IiB3aWR0aD0iNCIgaGVpZ2h0PSIxNC43MTY4IiBvcGFjaXR5PSIwLjIiPg0KICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIwLjI7IDE7IC4yIiBiZWdpbj0iMHMiIGR1cj0iMC42cyINCiAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltYXRlPg0KICAgICAgICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iaGVpZ2h0IiBhdHRyaWJ1dGVUeXBlPSJYTUwiIHZhbHVlcz0iMTA7IDIwOyAxMCIgYmVnaW49IjBzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltYXRlPg0KICAgICAgICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ieSIgYXR0cmlidXRlVHlwZT0iWE1MIiB2YWx1ZXM9IjEwOyA1OyAxMCIgYmVnaW49IjBzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltYXRlPg0KICAgICAgICA8L3JlY3Q+DQogICAgPHJlY3QgeD0iOCIgeT0iNS4xNDE2IiB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cmVjdD4NCiAgICA8cmVjdCB4PSIxNiIgeT0iNy4zNTg0IiB3aWR0aD0iNCIgaGVpZ2h0PSIxNS4yODMyIiBvcGFjaXR5PSIwLjIiPg0KICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIwLjI7IDE7IC4yIiBiZWdpbj0iMC4zcyIgZHVyPSIwLjZzIg0KICAgICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImhlaWdodCIgYXR0cmlidXRlVHlwZT0iWE1MIiB2YWx1ZXM9IjEwOyAyMDsgMTAiIGJlZ2luPSIwLjNzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIxMDsgNTsgMTAiIGJlZ2luPSIwLjNzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDwvcmVjdD4NCiAgICAgIDwvc3ZnPg==)}.bvplayer-spinner>span svg{height:100%}.bvplayer-mask{height:100%;width:100%;position:absolute;top:0;left:0;display:grid;align-content:center;justify-content:center;place-content:center;background-color:#000;color:#fff;font-size:14px}.bvplayer-controller{position:absolute;bottom:0;left:0;right:0;width:100%;height:98px;color:#fff;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;opacity:0;transform:translateY(100%);will-change:visibility,opacity,transform;transition:all .3s cubic-bezier(.455,.03,.515,.955)}.bvplayer-controller.bvplayer-common-is-visible{visibility:visible;opacity:1;transform:translateY(0)}.bvplayer-controller_mask{position:absolute;bottom:0;height:100%;width:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==) repeat-x bottom}.bvplayer-controller_inner{position:absolute;bottom:0;left:0;right:0;width:100%;height:41px;padding:0 20px;display:flex;align-items:stretch;justify-content:space-between}.bvplayer-controller_inner_bar{display:block}.bvplayer-controller_inner_left{cursor:default}.bvplayer-controller_inner_right{cursor:default}.bvplayer-controller_button{cursor:pointer;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:36px;height:100%;border:none;outline:none;padding:0;background:none;color:inherit}.bvplayer-controller_button:not(:last-child){margin-right:8px}.bvplayer-controller_button>*{transition:all .2s ease-in-out;opacity:.8}.bvplayer-controller_button:hover>*{opacity:1}.bvplayer-video{display:block;pointer-events:none;box-sizing:border-box;width:100%;height:100%}.bvplayer-player{position:relative;height:100%;width:100%;background-color:#000;overflow:hidden}.bvplayer-player_info-modal{width:60%;height:70%}.bvplayer-player_info-modal_section{margin-bottom:16px}.bvplayer-player_info-modal_section_title{display:inline-block;font-weight:bold;font-size:12px;margin-bottom:8px}.bvplayer-player_info-modal_list{color:#e8e8fdd9;font-size:12px}.bvplayer-player_info-modal_list_item:not(:last-child){margin-bottom:8px}.bvplayer-player_info-modal_list_item_label{display:inline-block;width:90px;margin-right:14px;text-indent:-99em;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}.bvplayer-player_info-modal_list_item_value{margin-right:8px;white-space:normal;word-break:break-all}
@@ -1,26 +1,26 @@
1
- var bv_webrtc_player=(()=>{var fe=Object.defineProperty,Qe=Object.defineProperties;var Ze=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var Ye=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable;var be=(t,e,r)=>e in t?fe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,O=(t,e)=>{for(var r in e||(e={}))Ye.call(e,r)&&be(t,r,e[r]);if(he)for(var r of he(e))et.call(e,r)&&be(t,r,e[r]);return t},V=(t,e)=>Qe(t,Ze(e));var tt=(t,e)=>{for(var r in e)fe(t,r,{get:e[r],enumerable:!0})};var l=(t,e,r)=>new Promise((o,i)=>{var s=b=>{try{y(r.next(b))}catch(P){i(P)}},c=b=>{try{y(r.throw(b))}catch(P){i(P)}},y=b=>b.done?o(b.value):Promise.resolve(b.value).then(s,c);y((r=r.apply(t,e)).next())});var Us={};tt(Us,{Conference:()=>Xe,Intercom:()=>Ke,PuPlayer:()=>ze,RemoteSdpFetcher:()=>G,clearAllDialog:()=>$s});var nt="C:\\ProgramData",rt="C:\\Users\\Administrator\\AppData\\Roaming",ot="False",it="C:\\ProgramData\\chocolatey",st="132633801270330519",at="\\\\.\\pipe\\crashpad_11812_WNASUNCBRKEMKCLE",lt="truecolor",ct="C:\\Program Files\\Common Files",dt="C:\\Program Files (x86)\\Common Files",pt="C:\\Program Files\\Common Files",ut="DESKTOP-0PI1EL3",mt="C:\\Windows\\system32\\cmd.exe",gt="C:\\Windows\\System32\\Drivers\\DriverData",ft="C:\\ProgramData\\scoop\\apps\\git\\2.31.1.windows.1\\gbash",ht="Internet Explorer",bt="Default",yt="d:\\software\\Microsoft VS Code Insiders\\resources\\app\\extensions\\git\\dist\\askpass.sh",vt="C:\\ProgramData\\scoop\\apps\\git\\current",Pt="C:\\Users\\Administrator\\go",It="C:\\Users\\Administrator\\scoop\\apps\\go\\current",Ct="C:\\Users\\Administrator",xt="C:",Et="\\Users\\Administrator",Ft="C:\\dev\\bvwebclient\\packages\\components\\player-core",wt="D:\\software\\IntelliJ IDEA 2021.1.1\\bin;",_t="zh_CN.UTF-8",St="C:\\Users\\Administrator\\AppData\\Local",Ot="\\\\DESKTOP-0PI1EL3",Rt="",Tt="1",kt="CONOUT$",Dt="CONOUT$",Lt="",Mt="MINGW64",Wt="haha",At="D:\\software\\node\\node.exe",Vt="production",Bt="",Nt="",Ht="",jt="",$t='{"remain":[],"cooked":["run","build"],"original":["run","build"]}',Ut="true",Gt="low",qt="legacy",zt="",Jt="true",Kt="",Xt="",Qt="C:\\Users\\Administrator\\AppData\\Roaming\\npm-cache",Zt="10",Yt="60000",en="10000",tn="Infinity",nn="10",rn="",on="",sn="",an="true",ln="true",cn="Infinity",dn="true",pn="",un="",mn="notepad.exe",gn="",fn="2",hn="10",bn="60000",yn="10000",vn="",Pn="true",In="true",Cn="git",xn="true",En="",Fn="C:\\Users\\Administrator\\AppData\\Roaming\\npm\\etc\\npmrc",wn="C:\\Users\\Administrator\\AppData\\Roaming\\npm\\etc\\npmignore",_n="",Sn="",On="",Rn="npm",Tn="",kn="",Dn="",Ln="",Mn="",Wn="Shirtiny",An="",Vn="ISC",Bn="C:\\Users\\Administrator\\.npm-init.js",Nn="1.0.0",Hn="",jn="",$n="",Un="",Gn="",qn="notice",zn="10",Jn="",Kn="50",Xn="%s",Qn="https://registry.npmjs.org/",Zn="D:\\software\\node\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",Yn="",er="14.16.1",tr="",nr="",rr="",or="",ir="true",sr="",ar="true",lr="",cr="",dr="",pr="",ur="C:\\Users\\Administrator\\AppData\\Roaming\\npm",mr="",gr="",fr="true",hr="",br="",yr="true",vr="https://registry.npmjs.org/",Pr="true",Ir="true",Cr="",xr="",Er="",Fr="",wr="^",_r="",Sr="",Or="warn-only",Rr="",Tr="",kr="20",Dr="",Lr="900",Mr="",Wr="C:\\Windows\\system32\\cmd.exe",Ar="true",Vr="",Br="",Nr="500",Hr="oauth",jr="true",$r="latest",Ur="v",Gr="",qr="C:\\Users\\ADMINI~1\\AppData\\Local\\Temp",zr="0000",Jr="",Kr="true",Xr="true",Qr="",Zr="",Yr="C:\\Users\\Administrator\\.npmrc",eo="npm/6.14.12 node/v14.16.1 win32 x64",to="",no="",ro="browser",oo="D:\\software\\node\\node_modules\\npm\\bin\\npm-cli.js",io="build",so="npm run clean && dotenv -c production node .node/builder.js",ao="D:\\software\\node\\node.exe",lo="^2.1.8",co="@besovideo/webrtc-player desc",po="^10.2.6",uo="^4.1.1",mo="^4.0.0",go="0.12.5",fo="^1.4.8",ho="^7.28.0",bo="^8.3.0",yo="^3.4.0",vo="^27.2.2",Po="^8.2.0",Io="^8.3.5",Co="^6.7.0",xo="^2.3.0",Eo="^0.3.3",Fo="^27.0.5",wo="10.0.0",_o="^4.3.3",So="^4.27.0",Oo="^4.27.0",Ro="26.0.23",To="15.6.1",ko="./dist/main.es.css",Do="./dist/main.es.js",Lo="dist",Mo="ts-jest",Wo="bvwebclient",Ao="besovideo",Vo="./dist/main.es.js",Bo="./dist/main.es.js",No="@besovideo/webrtc-player",Ho="README.md",jo="npm run clean && dotenv -c production node .node/builder.js",$o="shx rm -rf dist",Uo="eslint --max-warnings 0 . --ext .ts",Go="dotenv -c development node .node/server.js",qo="jest",zo="ts-node",Jo="./dist/types/main.d.ts",Ko="0.2.7",Xo="4",Qo="C:\\Users\\Administrator\\OneDrive",Zo="C:\\Users\\Administrator\\OneDrive",Yo="undefined",ei="Windows_NT",ti="D:\\software\\node\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;C:\\dev\\bvwebclient\\packages\\components\\player-core\\node_modules\\.bin;C:\\ProgramData\\scoop\\apps\\git\\2.31.1.windows.1\\mingw64\\bin;C:\\ProgramData\\scoop\\apps\\git\\2.31.1.windows.1\\usr\\bin;C:\\Users\\Administrator\\bin;C:\\Users\\Administrator\\scoop\\apps\\go\\current\\bin;C:\\ProgramData\\scoop\\shims;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;D:\\software\\node;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\Administrator\\go\\bin;C:\\Users\\Administrator\\scoop\\shims;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\Bandizip;C:\\Users\\Administrator\\AppData\\Roaming\\npm;D:\\software\\Microsoft VS Code Insiders\\bin;D:\\software\\IntelliJ IDEA 2021.1.1\\bin;C:\\Users\\Administrator\\.dotnet\\tools;C:\\ProgramData\\scoop\\apps\\git\\current\\gbash;C:\\Users\\Administrator\\scoop\\apps\\python\\current\\Scripts;D:\\software\\hyper\\resources\\bin",ni="D:\\software\\node\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;C:\\dev\\bvwebclient\\packages\\components\\player-core\\node_modules\\.bin;C:\\ProgramData\\scoop\\apps\\git\\2.31.1.windows.1\\mingw64\\bin;C:\\ProgramData\\scoop\\apps\\git\\2.31.1.windows.1\\usr\\bin;C:\\Users\\Administrator\\bin;C:\\Users\\Administrator\\scoop\\apps\\go\\current\\bin;C:\\ProgramData\\scoop\\shims;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;D:\\software\\node;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\Administrator\\go\\bin;C:\\Users\\Administrator\\scoop\\shims;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\Bandizip;C:\\Users\\Administrator\\AppData\\Roaming\\npm;D:\\software\\Microsoft VS Code Insiders\\bin;D:\\software\\IntelliJ IDEA 2021.1.1\\bin;C:\\Users\\Administrator\\.dotnet\\tools;C:\\ProgramData\\scoop\\apps\\git\\current\\gbash;C:\\Users\\Administrator\\scoop\\apps\\python\\current\\Scripts;D:\\software\\hyper\\resources\\bin",ri=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",oi="ssh",ii=" [master \u2261 +1 ~8 -0 !]",si="AMD64",ai="Intel64 Family 6 Model 158 Stepping 11, GenuineIntel",li="6",ci="9e0b",di="C:\\ProgramData",pi="C:\\Program Files",ui="C:\\Program Files (x86)",mi="C:\\Program Files",gi="$P$G",fi="C:\\Users\\Administrator\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules",hi="C:\\Users\\Public",bi="C:/dev/bvwebclient/packages/components/player-core",yi="Console",vi="3",Pi="bvplayer-core-",Ii="@besovideo/webrtc-player",Ci="0.2.7",xi="bvplayerCore",Ei="C:",Fi="C:\\Windows",wi="C:\\Users\\ADMINI~1\\AppData\\Local\\Temp",_i="xterm-256color",Si="vscode",Oi="1.61.0-insider",Ri="C:\\Users\\ADMINI~1\\AppData\\Local\\Temp",Ti="DESKTOP-0PI1EL3",ki="DESKTOP-0PI1EL3",Di="Administrator",Li="C:\\Users\\Administrator",Mi="d:\\software\\Microsoft VS Code Insiders\\resources\\app\\extensions\\git\\dist\\askpass-main.js",Wi="D:\\software\\Microsoft VS Code Insiders\\Code - Insiders.exe",Ai="\\\\.\\pipe\\vscode-git-eee3851946-sock",Vi="C:\\Windows",Bi="1",Ni="D:/software/node/node.exe",p={ALLUSERSPROFILE:nt,APPDATA:rt,AZ_ENABLED:ot,ChocolateyInstall:it,ChocolateyLastPathUpdate:st,CHROME_CRASHPAD_PIPE_NAME:at,COLORTERM:lt,COMMONPROGRAMFILES:ct,"CommonProgramFiles(x86)":dt,CommonProgramW6432:pt,COMPUTERNAME:ut,COMSPEC:mt,DriverData:gt,EXEPATH:ft,FPS_BROWSER_APP_PROFILE_STRING:ht,FPS_BROWSER_USER_PROFILE_STRING:bt,GIT_ASKPASS:yt,GIT_INSTALL_ROOT:vt,GOPATH:Pt,GOROOT:It,HOME:Ct,HOMEDRIVE:xt,HOMEPATH:Et,INIT_CWD:Ft,"IntelliJ IDEA":wt,LANG:_t,LOCALAPPDATA:St,LOGONSERVER:Ot,MAKEFLAGS:Rt,MAKELEVEL:Tt,MAKE_TERMERR:kt,MAKE_TERMOUT:Dt,MFLAGS:Lt,MSYSTEM:Mt,MY_ENV:Wt,NODE:At,NODE_ENV:Vt,npm_config_access:Bt,npm_config_allow_same_version:Nt,npm_config_also:Ht,npm_config_always_auth:jt,npm_config_argv:$t,npm_config_audit:Ut,npm_config_audit_level:Gt,npm_config_auth_type:qt,npm_config_before:zt,npm_config_bin_links:Jt,npm_config_browser:Kt,npm_config_ca:Xt,npm_config_cache:Qt,npm_config_cache_lock_retries:Zt,npm_config_cache_lock_stale:Yt,npm_config_cache_lock_wait:en,npm_config_cache_max:tn,npm_config_cache_min:nn,npm_config_cafile:rn,npm_config_cert:on,npm_config_cidr:sn,npm_config_color:an,npm_config_commit_hooks:ln,npm_config_depth:cn,npm_config_description:dn,npm_config_dev:pn,npm_config_dry_run:un,npm_config_editor:mn,npm_config_engine_strict:gn,npm_config_fetch_retries:fn,npm_config_fetch_retry_factor:hn,npm_config_fetch_retry_maxtimeout:bn,npm_config_fetch_retry_mintimeout:yn,npm_config_force:vn,npm_config_format_package_lock:Pn,npm_config_fund:In,npm_config_git:Cn,npm_config_git_tag_version:xn,npm_config_global:En,npm_config_globalconfig:Fn,npm_config_globalignorefile:wn,npm_config_global_style:_n,npm_config_group:Sn,npm_config_ham_it_up:On,npm_config_heading:Rn,npm_config_https_proxy:Tn,npm_config_if_present:kn,npm_config_ignore_prepublish:Dn,npm_config_ignore_scripts:Ln,npm_config_init_author_email:Mn,npm_config_init_author_name:Wn,npm_config_init_author_url:An,npm_config_init_license:Vn,npm_config_init_module:Bn,npm_config_init_version:Nn,npm_config_json:Hn,npm_config_key:jn,npm_config_legacy_bundling:$n,npm_config_link:Un,npm_config_local_address:Gn,npm_config_loglevel:qn,npm_config_logs_max:zn,npm_config_long:Jn,npm_config_maxsockets:Kn,npm_config_message:Xn,npm_config_metrics_registry:Qn,npm_config_node_gyp:Zn,npm_config_node_options:Yn,npm_config_node_version:er,npm_config_noproxy:tr,npm_config_offline:nr,npm_config_onload_script:rr,npm_config_only:or,npm_config_optional:ir,npm_config_otp:sr,npm_config_package_lock:ar,npm_config_package_lock_only:lr,npm_config_parseable:cr,npm_config_prefer_offline:dr,npm_config_prefer_online:pr,npm_config_prefix:ur,npm_config_preid:mr,npm_config_production:gr,npm_config_progress:fr,npm_config_proxy:hr,npm_config_read_only:br,npm_config_rebuild_bundle:yr,npm_config_registry:vr,npm_config_rollback:Pr,npm_config_save:Ir,npm_config_save_bundle:Cr,npm_config_save_dev:xr,npm_config_save_exact:Er,npm_config_save_optional:Fr,npm_config_save_prefix:wr,npm_config_save_prod:_r,npm_config_scope:Sr,npm_config_scripts_prepend_node_path:Or,npm_config_script_shell:Rr,npm_config_searchexclude:Tr,npm_config_searchlimit:kr,npm_config_searchopts:Dr,npm_config_searchstaleness:Lr,npm_config_send_metrics:Mr,npm_config_shell:Wr,npm_config_shrinkwrap:Ar,npm_config_sign_git_commit:Vr,npm_config_sign_git_tag:Br,npm_config_sso_poll_frequency:Nr,npm_config_sso_type:Hr,npm_config_strict_ssl:jr,npm_config_tag:$r,npm_config_tag_version_prefix:Ur,npm_config_timing:Gr,npm_config_tmp:qr,npm_config_umask:zr,npm_config_unicode:Jr,npm_config_unsafe_perm:Kr,npm_config_update_notifier:Xr,npm_config_usage:Qr,npm_config_user:Zr,npm_config_userconfig:Yr,npm_config_user_agent:eo,npm_config_version:to,npm_config_versions:no,npm_config_viewer:ro,npm_execpath:oo,npm_lifecycle_event:io,npm_lifecycle_script:so,npm_node_execpath:ao,npm_package_dependencies__shirtiny_logger:lo,npm_package_description:co,npm_package_devDependencies_autoprefixer:po,npm_package_devDependencies_chalk:uo,npm_package_devDependencies_dotenv_cli:mo,npm_package_devDependencies_esbuild:go,npm_package_devDependencies_esbuild_sass_plugin:fo,npm_package_devDependencies_eslint:ho,npm_package_devDependencies_eslint_config_prettier:bo,npm_package_devDependencies_eslint_plugin_prettier:yo,npm_package_devDependencies_jest:vo,npm_package_devDependencies_open:Po,npm_package_devDependencies_postcss:Io,npm_package_devDependencies_postcss_preset_env:Co,npm_package_devDependencies_prettier:xo,npm_package_devDependencies_shx:Eo,npm_package_devDependencies_ts_jest:Fo,npm_package_devDependencies_ts_node:wo,npm_package_devDependencies_typescript:_o,npm_package_devDependencies__typescript_eslint_eslint_plugin:So,npm_package_devDependencies__typescript_eslint_parser:Oo,npm_package_devDependencies__types_jest:Ro,npm_package_devDependencies__types_node:To,npm_package_exports___dist_main_es_css:ko,npm_package_exports___import:Do,npm_package_files_0:Lo,npm_package_jest_preset:Mo,npm_package_keywords_0:Wo,npm_package_keywords_1:Ao,npm_package_main:Vo,npm_package_module:Bo,npm_package_name:No,npm_package_readmeFilename:Ho,npm_package_scripts_build:jo,npm_package_scripts_clean:$o,npm_package_scripts_lint:Uo,npm_package_scripts_start:Go,npm_package_scripts_test:qo,npm_package_scripts_ts_node:zo,npm_package_types:Jo,npm_package_version:Ko,NUMBER_OF_PROCESSORS:Xo,OneDrive:Qo,OneDriveConsumer:Zo,ORIGINAL_XDG_CURRENT_DESKTOP:Yo,OS:ei,Path:ti,PATH:ni,PATHEXT:ri,PLINK_PROTOCOL:oi,POSH_GIT_STATUS:ii,PROCESSOR_ARCHITECTURE:si,PROCESSOR_IDENTIFIER:ai,PROCESSOR_LEVEL:li,PROCESSOR_REVISION:ci,ProgramData:di,PROGRAMFILES:pi,"ProgramFiles(x86)":ui,ProgramW6432:mi,PROMPT:gi,PSModulePath:fi,PUBLIC:hi,PWD:bi,SESSIONNAME:yi,SHLVL:vi,SH_CSS_CLASS_PREFIX:Pi,SH_LIB_NAME:Ii,SH_LIB_VERSION:Ci,SH_STORAGE_FIELD_PREFIX:xi,SYSTEMDRIVE:Ei,SYSTEMROOT:Fi,TEMP:wi,TERM:_i,TERM_PROGRAM:Si,TERM_PROGRAM_VERSION:Oi,TMP:Ri,USERDOMAIN:Ti,USERDOMAIN_ROAMINGPROFILE:ki,USERNAME:Di,USERPROFILE:Li,VSCODE_GIT_ASKPASS_MAIN:Mi,VSCODE_GIT_ASKPASS_NODE:Wi,VSCODE_GIT_IPC_HANDLE:Ai,WINDIR:Vi,ZES_ENABLE_SYSMAN:Bi,_:Ni};var oe=t=>{let e;return t?e=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()):e=Date.now(),Math.floor(e/1e3)},ye=t=>{let e=typeof t=="number"?t:oe(t),r=oe();return e-r},Hi=t=>ye(t)>0,ji={getUTCSecond:oe,pastNow:ye,compare:Hi},ie=ji;var $i=Object.defineProperty,Ui=Object.defineProperties,Gi=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,qi=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable,Pe=(t,e,r)=>e in t?$i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,H=(t,e)=>{for(var r in e||(e={}))qi.call(e,r)&&Pe(t,r,e[r]);if(ve)for(var r of ve(e))zi.call(e,r)&&Pe(t,r,e[r]);return t},Ji=(t,e)=>Ui(t,Gi(e)),F;(function(t){t.red="#e72528",t.blue="#2a79af",t.weakBlue="#6eb6f4",t.geekblue="#85a5ff",t.gold="#ffd666",t.orange="#ffa940",t.cyan="#13c2c2",t.green="#52c41a",t.volcano="#fa541c",t.lime="#389e0d",t.pink="#eb2f96",t.purple="#722ed1",t.darkPurple="#292F4C",t.gray="#8c8c8c"})(F||(F={}));var Ie=class{constructor(){this.colors=F,this.shapes={slider:new Ce}}},Ce=class{constructor(){}title(t=""){return j`
1
+ var bvPlayerCore=(()=>{var Ze=Object.defineProperty,zt=Object.defineProperties;var Ut=Object.getOwnPropertyDescriptors;var Ye=Object.getOwnPropertySymbols;var Kt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable;var et=(t,e,n)=>e in t?Ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e)=>{for(var n in e||(e={}))Kt.call(e,n)&&et(t,n,e[n]);if(Ye)for(var n of Ye(e))Jt.call(e,n)&&et(t,n,e[n]);return t},j=(t,e)=>zt(t,Ut(e));var Gt=(t,e)=>{for(var n in e)Ze(t,n,{get:e[n],enumerable:!0})};var d=(t,e,n)=>new Promise((o,r)=>{var i=a=>{try{m(n.next(a))}catch(g){r(g)}},l=a=>{try{m(n.throw(a))}catch(g){r(g)}},m=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,l);m((n=n.apply(t,e)).next())});var Uo={};Gt(Uo,{Conference:()=>$t,Intercom:()=>jt,PuPlayer:()=>Wt,RemoteSdpFetcher:()=>te,clearAllDialog:()=>zo});var Xt="production",qt="@besovideo/webrtc-player",Qt="0.3.1",c={NODE_ENV:Xt,SH_LIB_NAME:qt,SH_LIB_VERSION:Qt};var ve=t=>{let e;return t?e=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()):e=Date.now(),Math.floor(e/1e3)},tt=t=>{let e=typeof t=="number"?t:ve(t),n=ve();return e-n},Zt=t=>tt(t)>0,Yt={getUTCSecond:ve,pastNow:tt,compare:Zt},ye=Yt;var en=Object.defineProperty,tn=Object.defineProperties,nn=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,ot=(t,e,n)=>e in t?en(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,K=(t,e)=>{for(var n in e||(e={}))on.call(e,n)&&ot(t,n,e[n]);if(nt)for(var n of nt(e))rn.call(e,n)&&ot(t,n,e[n]);return t},sn=(t,e)=>tn(t,nn(e)),S;(function(t){t.red="#e72528",t.blue="#2a79af",t.weakBlue="#6eb6f4",t.geekblue="#85a5ff",t.gold="#ffd666",t.orange="#ffa940",t.cyan="#13c2c2",t.green="#52c41a",t.volcano="#fa541c",t.lime="#389e0d",t.pink="#eb2f96",t.purple="#722ed1",t.darkPurple="#292F4C",t.gray="#8c8c8c"})(S||(S={}));var rt=class{constructor(){this.colors=S,this.shapes={slider:new it}}},it=class{constructor(){}title(t=""){return J`
2
2
  color: ${t};
3
3
  border-left: 3px solid ${t};
4
4
  padding: 2px;
5
5
  font-weight: 600;
6
- `}message(t=""){return j`
6
+ `}message(t=""){return J`
7
7
  color: ${t};
8
- `}message_button(t="#eee",e=F.darkPurple,r="#fff"){return j`
8
+ `}message_button(t="#eee",e=S.darkPurple,n="#fff"){return J`
9
9
  background-color: ${e};
10
10
  color: ${t};
11
11
  padding: 2px 5px;
12
12
  border-radius: 3px;
13
- text-shadow: 0 0 2px ${r};
14
- `}},j=(t,...e)=>{if(e.length===0)return t[0];let r="";return e.forEach((o,i)=>{r+=t[i]+o}),r+=t[t.length-1],r},B;(function(t){t[t.title=1]="title",t[t.message=2]="message",t[t.message_button=3]="message_button"})(B||(B={}));var q=({color:t},e=new Ce,r)=>{switch(r){case 1:return e.title(t);case 2:return e.message(t);case 3:return e.message_button();default:return""}},Ki=class{constructor(t){let e={log:window.console.log,enable:!0};this._option=Ji(H({},e),{enable:typeof(t==null?void 0:t.enable)=="boolean"?t.enable:e.enable,log:(t==null?void 0:t.log)||e.log})}log(...t){let{enable:e,log:r}=this._option;e&&r&&r(...t)}set baseOption(t){this._option=t}get baseOption(){return this._option}setEnable(t){this._option.enable=!!t}},xe=class{constructor(t){let e={enable:!0,log:window.console.log,level:39,shape:new Ie().shapes.slider};this.enable=t&&typeof t.enable=="boolean"?t.enable:e.enable,this.log=t&&t.log||e.log,this.level=t&&typeof t.level=="number"?t.level:e.level,this.shape=t&&t.shape?t.shape:e.shape}},Xi=class extends Ki{constructor(t){super(t||new xe);this.loggerOption=H(H({},new xe),t)}setLoggerOption(t){let e=H(H({},this.loggerOption),t);this.loggerOption=e,super.baseOption={enable:e.enable,log:e.log}}getLoggerOption(){return this.loggerOption}setLevel(t){typeof t=="number"&&(this.loggerOption.level=t)}formatLog(t,e,r,o,i,...s){!this.loggerOption.level&&this.loggerOption.level!==0||this.loggerOption.level<t||super.log(`%c${e}%c${r}`,o,i,...s)}},Ee;(function(t){t[t.log=0]="log",t[t.version=0]="version",t[t.error=0]="error",t[t.key=0]="key",t[t.warn=1]="warn",t[t.interval=1]="interval",t[t.service=2]="service",t[t.api=3]="api",t[t.http=3]="http",t[t.debug=3]="debug"})(Ee||(Ee={}));var M={debug:{name:"debug",title:" Debug :",color:F.lime,level:3},http:{name:"http",title:" Http :",color:F.weakBlue,level:3},api:{name:"api",title:" Api :",color:F.cyan,level:3},service:{name:"service",title:" Service :",color:F.purple,level:2},interval:{name:"interval",title:" Interval :",color:F.pink,level:1},warn:{name:"warn",title:" WARN :",color:F.orange,level:1},error:{name:"error",title:" ERR :",color:F.red,level:0},key:{name:"key",title:" Key :",color:F.darkPurple,level:0}},se=class extends Xi{constructor(){super(...arguments);this.error=(t,...e)=>{this.formatLogWrapper(M.error,`${t.stack}
15
- `,...e)},this.key=(t,...e)=>{let r=M.key;this.formatLog(r.level,r.title,t.toUpperCase(),q({color:r.color},this.getLoggerOption().shape,B.title),q({},this.getLoggerOption().shape,B.message_button),...e)},this.version=(t="",e,...r)=>{this.formatLog(0,t.toUpperCase(),e,j`
13
+ text-shadow: 0 0 2px ${n};
14
+ `}},J=(t,...e)=>{if(e.length===0)return t[0];let n="";return e.forEach((o,r)=>{n+=t[r]+o}),n+=t[t.length-1],n},$;(function(t){t[t.title=1]="title",t[t.message=2]="message",t[t.message_button=3]="message_button"})($||($={}));var oe=({color:t},e=new it,n)=>{switch(n){case 1:return e.title(t);case 2:return e.message(t);case 3:return e.message_button();default:return""}},an=class{constructor(t){let e={log:window.console.log,enable:!0};this._option=sn(K({},e),{enable:typeof(t==null?void 0:t.enable)=="boolean"?t.enable:e.enable,log:(t==null?void 0:t.log)||e.log})}log(...t){let{enable:e,log:n}=this._option;e&&n&&n(...t)}set baseOption(t){this._option=t}get baseOption(){return this._option}setEnable(t){this._option.enable=!!t}},st=class{constructor(t){let e={enable:!0,log:window.console.log,level:39,shape:new rt().shapes.slider};this.enable=t&&typeof t.enable=="boolean"?t.enable:e.enable,this.log=t&&t.log||e.log,this.level=t&&typeof t.level=="number"?t.level:e.level,this.shape=t&&t.shape?t.shape:e.shape}},ln=class extends an{constructor(t){super(t||new st);this.loggerOption=K(K({},new st),t)}setLoggerOption(t){let e=K(K({},this.loggerOption),t);this.loggerOption=e,super.baseOption={enable:e.enable,log:e.log}}getLoggerOption(){return this.loggerOption}setLevel(t){typeof t=="number"&&(this.loggerOption.level=t)}formatLog(t,e,n,o,r,...i){!this.loggerOption.level&&this.loggerOption.level!==0||this.loggerOption.level<t||super.log(`%c${e}%c${n}`,o,r,...i)}},at;(function(t){t[t.log=0]="log",t[t.version=0]="version",t[t.error=0]="error",t[t.key=0]="key",t[t.warn=1]="warn",t[t.interval=1]="interval",t[t.service=2]="service",t[t.api=3]="api",t[t.http=3]="http",t[t.debug=3]="debug"})(at||(at={}));var B={debug:{name:"debug",title:" Debug :",color:S.lime,level:3},http:{name:"http",title:" Http :",color:S.weakBlue,level:3},api:{name:"api",title:" Api :",color:S.cyan,level:3},service:{name:"service",title:" Service :",color:S.purple,level:2},interval:{name:"interval",title:" Interval :",color:S.pink,level:1},warn:{name:"warn",title:" WARN :",color:S.orange,level:1},error:{name:"error",title:" ERR :",color:S.red,level:0},key:{name:"key",title:" Key :",color:S.darkPurple,level:0}},be=class extends ln{constructor(){super(...arguments);this.error=(t,...e)=>{this.formatShapeLog(B.error,`${t instanceof Error?t.stack:t}
15
+ `,...e)},this.key=(t,...e)=>{let n=B.key;this.formatLog(n.level,n.title,t.toUpperCase(),oe({color:n.color},this.getLoggerOption().shape,$.title),oe({},this.getLoggerOption().shape,$.message_button),...e)},this.version=(t="",e,...n)=>{this.formatLog(0,t.toUpperCase(),e,J`
16
16
  background: linear-gradient(to right, #009fff, #ec2f4b);
17
17
  color: white;
18
18
  padding: 2px 5px;
19
19
  border-top-left-radius: 3px;
20
20
  border-bottom-left-radius: 3px;
21
- `,j`
22
- background-color: ${F.darkPurple};
21
+ `,J`
22
+ background-color: ${S.darkPurple};
23
23
  color: white;
24
24
  padding: 2px 5px;
25
- `,...r)}}formatLogWrapper(t,e,...r){!t||this.formatLog(t.level,t.title,e,q({color:t.color},this.getLoggerOption().shape,B.title),q({color:t.color},this.getLoggerOption().shape,B.message),...r)}debug(t,...e){this.formatLogWrapper(M.debug,t,...e)}http(t,...e){this.formatLogWrapper(M.http,t,...e)}api(t,...e){this.formatLogWrapper(M.api,t,...e)}service(t,...e){this.formatLogWrapper(M.service,t,...e)}interval(t,...e){this.formatLogWrapper(M.interval,t,...e)}warn(t,...e){this.formatLogWrapper(M.warn,t,...e)}},ae=new Ie,Qi=new se,Zi=Qi,R=Zi;var Fe=class extends se{constructor(){super(...arguments);this.test=(e,...r)=>{let o=4;this.formatLog(o," Test ",e,ae.shapes.slider.title("#3f6600"),ae.shapes.slider.message("#999"),...r)}}},le=new Fe;le.debug("player-core env:",p);le.version(p.SH_LIB_NAME,p.SH_LIB_VERSION||"");var a=le;var we=(t,e,r)=>{let o={value:e,expire:r},i=JSON.stringify(o);return localStorage.setItem(t,i),o},Yi=(t,e,r)=>{let i=ie.getUTCSecond()+r;return we(t,e,i)},es=(t,e=!1)=>{let r=localStorage.getItem(t);if(!r)return null;try{let o=JSON.parse(r);return e?o:o.expire?ie.compare(o.expire)?o.value:null:o.value}catch(o){a.error(o,r,"Storage\u8BFB\u53D6\u6570\u636E\u65F6\uFF0C JSON\u89E3\u6790\u51FA\u9519")}},ts=t=>localStorage.removeItem(t),ns={set:we,setTimeout:Yi,get:es,remove:ts},k=ns;var z;(function(r){r.GET="GET",r.POST="POST"})(z||(z={}));var _e=(t,e)=>l(void 0,null,function*(){let r=new AbortController;if(e.signal&&e.signal.addEventListener("abort",()=>{r.abort()}),e.timeout){let c=setTimeout(()=>{r.abort()},e.timeout);r.signal.addEventListener("abort",()=>{clearTimeout(c)})}let o=e.bodyData,i=o&&(typeof o=="object"?JSON.stringify(o):o),s={credentials:"same-origin",method:e.method,headers:new Headers(O({},e.headers)),signal:r.signal};i&&(s.body=i),a.http("\u53D1\u9001\u8BF7\u6C42\uFF1A",t,V(O({},s),{body:o}));try{let c=yield fetch(t,s);if(a.http("\u8BF7\u6C42\u54CD\u5E94\uFF1A",t,c),c.ok||c.status>=200&&c.status<300){let y=c.headers.get("content-type")||"";if(/application\/json/i.test(y))return yield c.json()}else throw new Error(`${c.status} ${c.statusText}`)}catch(c){if(c.name==="AbortError"){a.http("\u8BF7\u6C42\u53D6\u6D88\uFF1A",s);return}throw c}}),rs=(t,e,r)=>l(void 0,null,function*(){let o=e?e.toString():"";return yield _e(t+o,{method:z.GET,headers:r==null?void 0:r.headers})}),os=(t,e,r)=>l(void 0,null,function*(){return yield _e(t,{method:z.POST,headers:O({"Content-Type":"application/json;charset=UTF-8"},r==null?void 0:r.headers),bodyData:e})}),is={get:rs,post:os},J=is;function Se(t){return t!==t}function ss(t,e=[]){let r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}function as(t,e,r){let o=r-1,i=t.length;for(;++o<i;)if(t[o]===e)return o;return-1}function ls(t,e,r,o=!1){let i=t.length,s=r+(o?1:-1);for(;o?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function cs(t,e,r){return e===e?as(t,e,r):ls(t,Se,r)}function ds(t,e){let r=-1,o=e.length,i=t;for(t===e&&(e=ss(e));++r<o;){let s=0,c=e[r],y=c;for(;(s=cs(i,y,s))>-1;)i!==t&&[].splice.call(i,s,1),[].splice.call(t,s,1)}return t}var ps=(t,e)=>!t||!t.length||!e||!e.length?t:ds(t,e),us={pullAll:ps,baseIsNaN:Se},Oe=us;var Re={BVCSP_V1:{path:"/bvcsp/v1",prefix:""}},ce=t=>{let e=Re[t];return e.prefix+e.path},ms=(t,e)=>{let r=Re[t];return r.prefix=e||"",ce(t)},$={setApiPrefix:ms,getApiURL:ce,bvscpV1:()=>ce("BVCSP_V1")},U=t=>{$.setApiPrefix("BVCSP_V1",t)};var gs=t=>{if(!t)return null;if(t.nodeType===Node.DOCUMENT_NODE)return t.documentElement;if(t.nodeType===Node.ELEMENT_NODE){let e=t;return e.hasChildNodes()&&e.childNodes.forEach(r=>{let o=r;o.className&&new RegExp(".*bvplayer-core-player.*").test(o.className)&&e.removeChild(o)}),t}return null},fs=(t,e,r)=>{if(!t)return;let o=document.createDocumentFragment();o.appendChild(t);let i=gs(e);!i||(i.appendChild(o),r==null||r())},Te=fs;var ke=(...t)=>{let e=[];for(let r=0;r<t.length;r++){let o=t[r];if(!o)continue;let i=typeof o;if(i==="string"||i==="number")e.push(o);else if(Array.isArray(o)){if(o.length){let s=ke(...o);s&&e.push(s)}}else if(i==="object")if(o.toString==={}.toString)for(let s in o)({}).hasOwnProperty.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}return e.join(" ")},K=ke;var hs={render:Te,cls:K},De=p.SH_CSS_CLASS_PREFIX,Le=p.SH_STORAGE_FIELD_PREFIX,I=hs;var W=`${Le}DialogIds`,bs=(t,e)=>l(void 0,null,function*(){let r={Authorization:e||""},o={id:t.id,index:t.index,sdp:t.sdp},i=yield J.post(`${$.bvscpV1()}/dialog/device/webrtc`,o,{headers:r});if(a.api("\u8BBE\u5907\u97F3\u89C6\u9891\u6D41 webrtc\u65B9\u5F0F\u6253\u5F00dialog: ",{params:o,data:i}),!i||i.code!==0||!i.dialog)throw new Error(`\u6253\u5F00\u4F20\u8F93\u901A\u9053\u5931\u8D25\uFF0C ${i==null?void 0:i.msg}`);let{dialog:s}=i;if(s.dialogid){let c=k.get(W)||[];c.push(s.dialogid),k.set(W,c)}return{dialogId:s.dialogid,sdp:s.sdp}}),ys=(t,e)=>l(void 0,null,function*(){let r={Authorization:e||""},o={id:t.id,index:t.index,sdp:t.sdp},i=yield J.post(`${$.bvscpV1()}/dialog/conference/webrtc`,o,{headers:r});if(a.api("\u4F1A\u8BAE\u97F3\u89C6\u9891\u6D41 webrtc\u65B9\u5F0F\u6253\u5F00dialog: ",{params:o,data:i}),!i||i.code!==0||!i.dialog)throw new Error(`\u6253\u5F00\u4F20\u8F93\u901A\u9053\u5931\u8D25\uFF0C ${i==null?void 0:i.msg}`);let{dialog:s}=i;if(s.dialogid){let c=k.get(W)||[];c.push(s.dialogid),k.set(W,c)}return{dialogId:s.dialogid,sdp:s.sdp}}),vs=(t,e)=>l(void 0,null,function*(){if(!t)return;let r={Authorization:e||""};return a.api("\u5173\u95EDdialog\uFF1A",t),J.post(`${$.bvscpV1()}/dialog/close/${t}`,{},{headers:r})}),Me=(t,e)=>l(void 0,null,function*(){let r=k.get(W)||[];Oe.pullAll(r,t),k.set(W,r,0);let i=(yield Promise.allSettled(t.map(s=>vs(s,e)))).filter(s=>s.status==="rejected");i&&i.length>0&&a.error(new Error(`"\u5173\u95ED\u5B58\u50A8\u7684dialog\u65F6\u5931\u8D25\uFF1A", ${i}`))}),Ps=t=>l(void 0,null,function*(){let e=k.get(W);!e||e.length<1||(k.remove(W),yield Me(e,t))}),Is={getDeviceWebrtc:bs,getConferenceWebrtc:ys,closeDialogs:Me,closeAllStorageDialog:Ps},w=Is;var D=class{constructor(e,r){let o=document.createElement(e);o.className=De+r.trim(),this.el=o}unmount(){var e,r,o,i;return a.debug("unmount",this.el,(e=this.el)==null?void 0:e.parentNode),(o=(r=this.el)==null?void 0:r.parentNode)==null||o.removeChild(this.el),(i=this.el)==null?void 0:i.parentNode}destroy(){this.beforeDestroy(),this.unmount(),a.debug("destroy",this.el),this.el=null}getEl(){return this.el}};var We=class extends D{constructor(e){super("div",I.cls("mask"));this._visible=!!(e==null?void 0:e.visible),this._text=e==null?void 0:e.text,this._textEl=document.createElement("span"),this._textEl.className=K("text")}set visible(e){this._visible=e,this.el.style.display=this._visible?"grid":"none"}set text(e){this._text=e,this._textEl.textContent=e}beforeDestroy(){}init(){a.debug("mask visible: ",this._visible);let e=this.el;e.style.display=this._visible?"block":"none";let r=document.createDocumentFragment();return this._textEl.textContent=this._text||"",r.appendChild(this._textEl),e.appendChild(r),e}},Ae=We;var Ve=class extends D{constructor(e){super("div",I.cls("spinner"));this._spin=!!(e==null?void 0:e.spin)}set spin(e){this._spin=e,this.el.style.display=this._spin?"block":"none"}beforeDestroy(){}init(){a.debug("spinner spin: ",this._spin);let e=this.el;e.style.display=this._spin?"block":"none";let r=document.createDocumentFragment(),o=document.createElement("span");return o.style.backgroundColor="#FFF",r.appendChild(o),e.appendChild(r),e}},Be=Ve;var Ne={contain:"contain",fill:"fill"},He=class extends D{constructor(e){super("video",I.cls("video"));this._url=e==null?void 0:e.url,this._srcObject=(e==null?void 0:e.srcObject)||null,this._fit=(e==null?void 0:e.fit)||Ne.contain,this._autoPlay=!!(e==null?void 0:e.autoPlay),this._muted=!!(e==null?void 0:e.muted)}set url(e){typeof this._url!="undefined"&&(this.el.src=this._url),this._url=e}set srcObject(e){this._srcObject=e||null,this.el.srcObject=this._srcObject}set muted(e){if(e===this._muted)return;let r=this.el;this._muted=e,r.muted=e}set autoPlay(e){if(!e!==this._autoPlay)return;this._autoPlay=e,this.muted=e;let r=this.el;r.autoplay=this._autoPlay}set fit(e){this._fit=Ne[e],this.el.style.objectFit=this._fit}getVideoFit(){return this._fit}init(){a.debug("\u6E32\u67D3VideoPlugin\u89C6\u9891\u5BF9\u8C61",this,this.el);let e=this.el;return typeof this._url!="undefined"&&(e.src=this._url),e.srcObject=this._srcObject,e.autoplay=this._autoPlay,e.muted=this._muted,e.style.objectFit=this._fit,e.playsInline=!0,e}play(){return l(this,null,function*(){let e=this.el;try{a.debug("video \u5C1D\u8BD5\u64AD\u653E"),yield e.play()}catch(r){a.error(r,"video \u64AD\u653E \u5931\u8D25")}})}beforeDestroy(){}},je=He;var Cs=(t,e)=>{R.debug(`webrtc my ICE candidate:
26
- ${e.candidate?e.candidate.candidate:"(null)"}`)},xs=(t,e,r)=>{R.debug("webrtc ICE state change event: ",e),R.debug(`webrtc my ICE state: ${t==null?void 0:t.iceConnectionState}`),t&&t.iceConnectionState==="disconnected"&&r&&r()},Es=(t,e)=>{R.debug("webrtc Connection state change, \u5F53\u524D\u8FDE\u63A5\u72B6\u6001: ",t,t.connectionState)},Fs=(t,e,r)=>{R.debug("webrtc \u5F53\u524D\u7684 stream: ",e.streams[0]);let o=e.streams[0];r(o)},ws=(t,e)=>l(void 0,null,function*(){let{offerParam:r,productRemoteSdp:o,customerRTCPeerConnection:i,onConnected:s,onConnectedFailed:c,onIceDisconnected:y,onPcEventAdded:b,onLocalDescriptionReady:P}=t,x=!!i&&i instanceof RTCPeerConnection,h={},d=x?i:new RTCPeerConnection(h);if(d.addEventListener("icecandidate",g=>Cs(d,g)),d.addEventListener("iceconnectionstatechange",g=>xs(d,g,y)),d.addEventListener("connectionstatechange",g=>Es(d,g)),d.addEventListener("track",g=>Fs(d,g,e)),b&&(yield b(d)),x)return{pc:d};try{let g=yield d.createOffer(r);R.debug("\u521B\u5EFAoffer\uFF0C\u53C2\u6570\uFF1A",r,"\uFF0C \u7ED3\u679C\uFF1A",g),yield d.setLocalDescription(g),P&&P(d);let S=yield o(new RTCSessionDescription(g));R.debug("webrtc recv open answer",S);let T=new RTCSessionDescription({type:"answer",sdp:S});yield d.setRemoteDescription(T),R.debug("getTransceivers",d.getTransceivers()),s&&s(d)}catch(g){throw c&&c(d),R.error(new Error(`webrtc Failed to create session description: ${g.toString()}`)),d.close(),g}return{pc:d}}),_s=t=>{if(!t)return;let{pc:e}=t;e.close()},Ss={connect:ws,disconnect:_s},de=Ss;var _;(function(o){o.DIRECT="direct",o.PLUGIN="plugin",o.REJECT="reject"})(_||(_={}));var X;(function(s){s.MP4="mp4",s.FLAC="flac",s.OGG="Ogg",s.WEBM="webm",s.AUTO="auto"})(X||(X={}));var pe;(function(e){e.WEBRTC="webrtc"})(pe||(pe={}));var $e;(function(r){r[r.DIRECT_SUPORT_TYPES=0]="DIRECT_SUPORT_TYPES",r[r.PLUGIN_SUPORT_TYPES=1]="PLUGIN_SUPORT_TYPES"})($e||($e={}));var Ue=class extends D{constructor(e){super("div",I.cls("player"));this._video=new je,this._spinner=new Be({spin:!1}),this._mask=new Ae({visible:!1}),this._videoOption=e==null?void 0:e.video,this._pluginOption=e==null?void 0:e.pluginOption,this._playerConfig=e==null?void 0:e.playerConfig,this._mode=this._restrictPlayerMode(e==null?void 0:e.video,e==null?void 0:e.pluginOption)}justifyVideoType(e,r){return(e==null?void 0:e.url)&&!e.type?X.AUTO:(e==null?void 0:e.type)||Object.keys(r||{})[0]}_restrictPlayerMode(e,r){let o=this.justifyVideoType(e,r);if(!o&&!(e==null?void 0:e.url))return _.REJECT;if(!o)return _.DIRECT;let i=Object.values(X),s=Object.values(pe);return i.includes(o)?_.DIRECT:s.includes(o)?_.PLUGIN:_.DIRECT}init(){var s;a.debug("\u6E32\u67D3PlayerPlugin",this.el),this.prepare();let e=document.createDocumentFragment(),r=this._video.init(),o=this._spinner.init(),i=this._mask.init();return e.appendChild(r),e.appendChild(o),e.appendChild(i),(s=this.el)==null||s.appendChild(e),this.el}get video(){return this._video}get spinner(){return this._spinner}get mask(){return this._mask}play(e){return l(this,null,function*(){this.mute(!0),yield this._video.play(),this.mute(e)})}mute(e){var r;this._video.muted=!!e,a.debug("player mute: ",(r=this._video.getEl())==null?void 0:r.muted)}setProductRemoteSdp(e){!this._pluginOption||!this._pluginOption.webrtc||(this._pluginOption.webrtc.productRemoteSdp=e)}prepareWebrtc(){return l(this,null,function*(){var r;if(this._mode!==_.PLUGIN)return;a.debug("PuPlayer Plugin prepareWebrtc");let e=(r=this._pluginOption)==null?void 0:r.webrtc;!e||(this._video.autoPlay=!0,this._spinner.spin=!0,this._webrtcConnect=yield de.connect(e,o=>{var s;if(!o)return;(s=this.video.getEl())==null||s.addEventListener("canplay",()=>{console.log("Video canplay"),this.video.play()}),this._video.srcObject=o;let i=o.getTracks()[0];i.onended=c=>{console.log("\u6D41\u89C6\u9891\u8F68\u9053\u5DF2\u7ECF\u7EC8\u6B62",c)},i.onmute=c=>{console.log("\u6D41\u89C6\u9891\u8F68\u9053\u6682\u65F6\u65E0\u6CD5\u63D0\u4F9B\u5A92\u4F53",c),this.onMuted()},i.onunmute=c=>{console.log("\u6D41\u89C6\u9891\u8F68\u9053\u63D0\u4F9B\u5A92\u4F53",c),this.onUnMuted()}}))})}close(){this.closeWebrtc()}beforeDestroy(){this.close()}onMuted(){}onUnMuted(){}loadPlayerConfig(){var e,r,o;this.video.autoPlay=!!((e=this._playerConfig)==null?void 0:e.autoPlay),(r=this.video.getEl())==null||r.addEventListener("canplay",()=>{console.log("Video canplay"),this._spinner.spin=!1,this._mask.visible=!1}),(o=this.video.getEl())==null||o.addEventListener("waiting",()=>{console.log("Video is waiting for more data."),this._spinner.spin=!0})}prepare(){if(a.debug("PlayerPlugin mode: ",this._mode),this.loadPlayerConfig(),this._mode===_.REJECT){a.error(new Error("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u7C7B\u578B"),this._mode,this._videoOption);return}if(this._mode===_.DIRECT){this.prepareDirect();return}if(this._mode===_.PLUGIN){switch(this.justifyVideoType(this._videoOption,this._pluginOption)){case"webrtc":break;default:break}return}}prepareDirect(){var e;this._video.url=((e=this._videoOption)==null?void 0:e.url)||"",setTimeout(()=>{this.play()},300)}closeWebrtc(){de.disconnect(this._webrtcConnect),this._webrtcConnect=null,this._video.srcObject=null}},Q=Ue;var N=document.documentElement,Z="requestFullscreen",Y="exitFullscreen",ee="fullscreenElement",te="onfullscreenchange";if("webkitRequestFullScreen"in N)Z="webkitRequestFullScreen",Y="webkitExitFullscreen",ee="webkitFullscreenElement",te="onwebkitfullscreenchange";else if("msRequestFullscreen"in N)Z="msRequestFullscreen",Y="msExitFullscreen",ee="msFullscreenElement",te="MSFullscreenChange";else if("mozRequestFullScreen"in N)Z="mozRequestFullScreen",Y="mozCancelFullScreen",ee="mozFullScreenElement",te="onmozfullscreenchange";else if(!("requestFullscreen"in N))throw"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301Fullscreen API !";function Os(t=N,e){return t[Z](e)}function Rs(){return document[Y]()}function Ge(t){return t===document[ee]}function Ts(t=N,e){return Ge(t)?Rs():Os(t,e)}function ks(t,e){let r=()=>{t.onfullscreenchange=null},o=i=>{i.target!==null&&e(Ge(i.target))};return t[te]=o,{cancel:r}}var Ds={toggle:Ts,watch:ks},qe=Ds;var Ls=(t,e,r)=>o=>l(void 0,null,function*(){if(o.type==="offer"){a.debug("\u8BF7\u6C42\u8FDC\u7AEFsdp\uFF0C \u8BBE\u5907\u914D\u7F6E\u4FE1\u606F\uFF1A",t,"token: ",e),a.debug("\u672C\u5730sdp",o);try{let{id:i,index:s}=t||{},c=yield w.getDeviceWebrtc({id:i,index:s,sdp:o.sdp},e);return r&&r(c.dialogId),c.sdp}catch(i){throw a.error(i,"\u8BF7\u6C42\u8FDC\u7AEFsdp\u65F6\u51FA\u9519"),new Error(`PUPlayer open \u5931\u8D25 , ${i.message}`)}}}),Ms=t=>{let{container:e,token:r,puOption:o,defaultMediaOption:i={audio:!0,video:!0},testUrl:s,videoFit:c="fill",muted:y,apiPrefix:b,onConnected:P,onConnectedFailed:x,onDisConnected:h,fullScreenOnDblclick:d=!0}=t||{},g,S=r,T=o,v=e,f=typeof y=="boolean"?y:!i.audio;U(b);let L=()=>l(void 0,null,function*(){if(!!g&&(a.debug("PuPlayer close",g),u.mask.visible=!0,u.mask.text="Video Closed",u.close(),g))try{yield w.closeDialogs([g],S)}catch(m){throw a.error(m,"PuPlayer close \u5931\u8D25"),new Error(`PuPlayer close \u5931\u8D25 , ${m.message}`)}}),u=new Q({video:{url:s},pluginOption:{webrtc:{offerParam:{offerToReceiveAudio:i.audio,offerToReceiveVideo:i.video},productRemoteSdp:m=>l(void 0,null,function*(){return Ls(T,S,A=>{g=A})(m)}),onIceDisconnected:()=>{u.mask.visible=!0,u.mask.text="lost connection",u.close(),h&&h()},onConnected:()=>{P&&P()},onConnectedFailed:()=>{x&&x()}}},playerConfig:{autoPlay:!0}});u.mute(f),u.video.fit=c;let C=u.init();d&&(C==null||C.addEventListener("dblclick",()=>{a.debug("\u53CC\u51FBplayer\uFF1A",C),qe.toggle(C)}));let re={instance:{getVideoElement:()=>u.video.getEl(),getPlayerElement:()=>u.getEl(),open:(m=!1)=>l(void 0,null,function*(){a.debug("PuPlayer open"),yield L(),u.mask.visible=!1,u.mask.text="connecting",u.mute(!!m);try{yield u.prepareWebrtc()}catch(E){throw u.mask.visible=!0,u.mask.text="connect failed",E}if(typeof m=="boolean"&&m){let E=()=>{a.debug("\u76D1\u542C\u5230\u7528\u6237\u6709click tap\u4EA4\u4E92\uFF0C \u6539\u53D8\u9759\u97F3\uFF0C muted\uFF1A",f),a.debug("\u6B64\u90E8\u5206\u67E5\u770B\uFF1Ahttps://developers.google.com/web/updates/2017/09/autoplay-policy-changes"),u.mute(f),document.removeEventListener("click",E),document.removeEventListener("touchend",E)};document.addEventListener("click",E),document.addEventListener("touchend",E)}}),play:()=>l(void 0,null,function*(){yield u.play(f)}),mute:(m=!1)=>{f=m,u.mute(m)},hidden:m=>l(void 0,null,function*(){let E=C,A=u.video.getEl();E.style.display="none",document.body.appendChild(E),A.muted=!0;try{typeof m!="undefined"&&(f=m),yield u.play(f)}catch(Gs){a.debug("player.play() \u64AD\u653E\u672A\u6210\u529F")}a.debug("\u6DFB\u52A0\u5230body\u5E76\u9690\u85CF\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",A.paused)}),display:m=>l(void 0,null,function*(){let E=C,A=u.video.getEl();I.render(E,v,()=>l(void 0,null,function*(){E.style.display="block",typeof m!="undefined"&&(f=m),yield u.play(f)})),a.debug("\u663E\u793A\u5230\u5F53\u524D\u5BB9\u5668\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",A.paused)}),moveTo:m=>{a.debug("\u79FB\u52A8\u81F3\uFF1A",m),v=m,I.render(C,v,()=>l(void 0,null,function*(){}))},getCurrentContainer:()=>v,setPuOption:m=>{T=m},setVideoFit:m=>{a.debug("PuPlayer setVideoFit",m),u.video.fit=m},setToken:m=>{a.debug("PuPlayer setToken",m),S=m},setApiPrefix:U,close:L,render:u.init,destroy:()=>l(void 0,null,function*(){a.debug("PuPlayer destroy"),yield L(),u.destroy()})},element:C};return v&&(I.render(C,v),re.element=null),re},ze=Ms;var ue=class{constructor(e,r){this._plugin=e,this._el=this._plugin.init(),this._currentContainer=r}moveTo(e,r){a.debug("\u79FB\u52A8\u81F3\uFF1A",e),this._currentContainer=e,I.render(this._el,this._currentContainer,r)}getCurrentContainer(){return this._currentContainer}render(){return this._plugin.init()}destroy(){a.debug("destroy",this._plugin),this._plugin.destroy()}};var G=class{constructor(e,r,o,i){this.token="";this.fetchSdpFunc=e,this.token=r||"",this.param=o,this.prefix=i}fetch(e){return l(this,null,function*(){a.debug("RemoteSdpFetcher fetch \u8BF7\u6C42\u8FDC\u7AEFsdp\uFF0C param\uFF1A",this.param,"token: ",this.token);let r=yield this.fetchSdpFunc(e,this.param,this.token,this.prefix),{sdp:o,dialogId:i}=r||{};return this.dialogId=i,a.debug(`RemoteSdpFetcher fetch \u83B7\u5F97\u7684remoteSdp ${o}, dialogId: ${i}`),o})}close(){return l(this,null,function*(){a.debug(`remoteSdpFetcher close\uFF0C \u68C0\u67E5dialogId: ${this.dialogId}`),this.dialogId&&(yield w.closeDialogs([this.dialogId]))})}},me=class extends ue{constructor(e,r,o,i,s){super(e,s);this._muted=!1;this._videoFit="contain";this.setRemoteSdpFetcher(i),this.setVideoFit(r),this.setMuted(o)}get player(){return this._plugin}getPlayerElement(){return this.player.getEl()}getVideoElement(){return console.log(this._plugin),console.log(this.player),this.player.video.getEl()}setRemoteSdpFetcher(e){this._remoteSdpFetcher=e,this._plugin.setProductRemoteSdp(r=>l(this,null,function*(){var o;return(o=this._remoteSdpFetcher)==null?void 0:o.fetch(r)}))}getRemoteSdpFetcher(){return this._remoteSdpFetcher}setVideoFit(e){a.debug("BvWebrtcInstance setVideoFit",e),this._videoFit=e,this.player.video.fit=e}getVideoFit(){return this._videoFit}setMuted(e=!1){this._muted=e,this.player.mute(e)}getMuted(){return this._muted}mute(e=!1){return this.setMuted(e)}open(e=!1){return l(this,null,function*(){a.debug("PuPlayer open"),yield this.close(),this.player.mask.visible=!1,this.player.mask.text="connecting",this.player.mute(!!e);try{yield this.player.prepareWebrtc()}catch(r){throw this.player.mask.visible=!0,this.player.mask.text="connect failed",r}if(e){let r=()=>{a.debug("\u76D1\u542C\u5230\u7528\u6237\u6709click tap\u4EA4\u4E92\uFF0C \u6539\u53D8\u9759\u97F3\uFF0C muted\uFF1A",this._muted),a.debug("\u6B64\u90E8\u5206\u67E5\u770B\uFF1Ahttps://developers.google.com/web/updates/2017/09/autoplay-policy-changes"),this.player.mute(this._muted),document.removeEventListener("click",r),document.removeEventListener("touchend",r)};document.addEventListener("click",r),document.addEventListener("touchend",r)}})}play(){return l(this,null,function*(){yield this.player.play(this._muted)})}hidden(e){return l(this,null,function*(){let r=this._el,o=this.player.video.getEl();r.style.display="none",document.body.appendChild(r),o.muted=!0;try{typeof e!="undefined"&&(this._muted=e),yield this.player.play(this._muted)}catch(i){a.debug("player.play() \u64AD\u653E\u672A\u6210\u529F")}a.debug("\u6DFB\u52A0\u5230body\u5E76\u9690\u85CF\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",o.paused)})}display(e){return l(this,null,function*(){let r=this._el,o=this.player.video.getEl();I.render(r,this._currentContainer,()=>l(this,null,function*(){r.style.display="block",typeof e!="undefined"&&(this._muted=e),yield this.player.play(this._muted)})),a.debug("\u663E\u793A\u5230\u5F53\u524D\u5BB9\u5668\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",o.paused)})}close(){return l(this,null,function*(){if(a.debug("BvWebrtcInstance close",`_dialogId: ${this._dialogId}`),this.player.mask.visible=!0,this.player.mask.text="Video Closed",this.player.close(),a.debug("BvWebrtcInstance close\uFF0C player closed\uFF0C\u68C0\u67E5 remoteSdpFetcher: ",this._remoteSdpFetcher),this._remoteSdpFetcher)try{yield this._remoteSdpFetcher.close()}catch(e){throw a.error(e,"BvWebrtcInstance close \u5931\u8D25"),new Error(`BvWebrtcInstance close \u5931\u8D25 , ${e.message}`)}})}destroy(){a.debug("PuPlayer destroy"),this.close(),this.player.destroy()}};var Ws=t=>{let{container:e,sdpFetcher:r,offerParam:o,videoFit:i,muted:s,autoPlay:c,onConnected:y,onConnectedFailed:b,onDisConnected:P,onPcEventAdded:x}=t,h=new Q({pluginOption:{webrtc:{offerParam:o,productRemoteSdp:()=>l(void 0,null,function*(){return""}),onIceDisconnected:()=>{h.mask.visible=!0,h.mask.text="lost connection",h.close(),P&&P()},onPcEventAdded:x,onConnected:()=>{h.mask.visible=!1,h.mask.text="connected",y&&y()},onConnectedFailed:()=>{b&&b()}}},playerConfig:{autoPlay:c}}),d=new me(h,i,s,r,e),g={open:()=>l(void 0,null,function*(){a.debug("BvWebrtc open"),yield d.open()}),setOption:v=>{a.debug("BvWebrtc setOption");let f=d.getRemoteSdpFetcher();f&&(f.param=v)},setToken:v=>{a.debug("BvWebrtc setToken",v);let f=d.getRemoteSdpFetcher();f&&(f.token=v)},setApiPrefix:v=>{a.debug("BvWebrtc setApiPrefix",v);let f=d.getRemoteSdpFetcher();f&&(f.prefix=v)},getRemoteSdpFetcher:()=>d.getRemoteSdpFetcher(),close:()=>l(void 0,null,function*(){a.debug("BvWebrtc close"),yield d.close()}),render:()=>(a.debug("BvWebrtc render"),d.render()),destroy:()=>{a.debug("BvWebrtc destroy"),d.destroy()}},S=d.render(),T={instance:g,element:S};return e&&(I.render(S,e),T.element=null),T},Je=Ws;var As=()=>l(void 0,null,function*(){a.debug("\u8BF7\u6C42\u9EA6\u514B\u98CE...");let t=yield navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),e=t.getAudioTracks();return a.debug("\u9EA6\u514B\u98CE \u97F3\u9891\u8F68\u9053\uFF1A",e),t}),Vs=t=>{let{container:e,token:r,getRemoteSdpParam:o,apiPrefix:i,getRemoteSdpResult:s,onConnected:c,onConnectedFailed:y,onDisConnected:b,onGetUserMediaFailed:P}=t||{},x=(v,f,L,u)=>l(void 0,null,function*(){if(a.debug("audioPlayer productRemoteSdp",{param:{localDescription:v,param:f,token:L,prefix:u}}),v.type==="offer"&&(U(u),a.debug("\u672C\u5730sdp",v),!!s))try{let{sdp:C,dialogId:ge}=yield s(v.sdp,L,f);return{sdp:C,dialogId:ge}}catch(C){throw a.error(C,"\u8BF7\u6C42\u8FDC\u7AEFsdp\u65F6\u51FA\u9519"),new Error(`productRemoteSdp \u5931\u8D25 , ${C.message}`)}}),h=new G(x,r,o,i),{instance:d,element:g}=Je({container:e,sdpFetcher:h,offerParam:{offerToReceiveAudio:!0},videoFit:"contain",muted:!1,autoPlay:!0,onConnected:c,onConnectedFailed:y,onDisConnected:b,onPcEventAdded:v=>l(void 0,null,function*(){try{let f=yield As();f.getTracks().forEach(L=>v.addTrack(L,f))}catch(f){P&&P()}})});return{instance:O({},d),element:g}},ne=Vs;var Bs=(t,e,r)=>l(void 0,null,function*(){let{id:o,index:i}=r||{};return yield w.getDeviceWebrtc({id:o,index:i,sdp:t},e)}),Ns=t=>{let{container:e,token:r,puOption:o,apiPrefix:i,onConnected:s,onConnectedFailed:c,onDisConnected:y,onGetUserMediaFailed:b}=t||{},{instance:P,element:x}=ne({container:e,token:r,getRemoteSdpParam:o,getRemoteSdpResult:Bs,apiPrefix:i,onConnected:s,onConnectedFailed:c,onDisConnected:y,onGetUserMediaFailed:b}),h=V(O({},P),{setPuOption:g=>h.setOption&&h.setOption(g)});return delete h.setOption,{instance:h,element:x}},Ke=Ns;var Hs=(t,e,r)=>l(void 0,null,function*(){let{id:o,index:i}=r||{};return yield w.getConferenceWebrtc({id:o,index:i,sdp:t},e)}),js=t=>{let{container:e,token:r,confOption:o,apiPrefix:i,onConnected:s,onConnectedFailed:c,onDisConnected:y,onGetUserMediaFailed:b}=t||{},{instance:P,element:x}=ne({container:e,token:r,getRemoteSdpParam:o,getRemoteSdpResult:Hs,apiPrefix:i,onConnected:s,onConnectedFailed:c,onDisConnected:y,onGetUserMediaFailed:b}),h=V(O({},P),{setConfOption:g=>h.setOption&&h.setOption(g)});return delete h.setOption,{instance:h,element:x}},Xe=js;var $s=w.closeAllStorageDialog;return Us;})();
25
+ `,...n)}}formatShapeLog({level:t,title:e,color:n},o,...r){this.formatLog(t,e,o,oe({color:n},this.getLoggerOption().shape,$.title),oe({color:n},this.getLoggerOption().shape,$.message),...r)}debug(t,...e){this.formatShapeLog(B.debug,t,...e)}http(t,...e){this.formatShapeLog(B.http,t,...e)}api(t,...e){this.formatShapeLog(B.api,t,...e)}service(t,...e){this.formatShapeLog(B.service,t,...e)}interval(t,...e){this.formatShapeLog(B.interval,t,...e)}warn(t,...e){this.formatShapeLog(B.warn,t,...e)}},qo=new rt,cn=new be,dn=cn,N=dn;var lt=class extends be{constructor(){super(...arguments);this.test=(e,...n)=>{let o=4;this.formatShapeLog({level:o,title:" Test ",color:"#3f6600"},e,...n)};this.libWarn=(e,...n)=>{this.warn("bvplayer-core ",e,...n),console.warn(new Error().stack)};this.libError=(e,...n)=>{this.error(new Error(`bvplayer-core ${e}`),...n)}}},Ie=new lt;Ie.debug("player-core env:",c);Ie.version(c.SH_LIB_NAME,c.SH_LIB_VERSION||"");var s=Ie;var ct=(t,e,n)=>{let o={value:e,expire:n},r=JSON.stringify(o);return localStorage.setItem(t,r),o},un=(t,e,n)=>{let r=ye.getUTCSecond()+n;return ct(t,e,r)},pn=(t,e=!1)=>{let n=localStorage.getItem(t);if(!n)return null;try{let o=JSON.parse(n);return e?o:o.expire?ye.compare(o.expire)?o.value:null:o.value}catch(o){s.error(o,n,"Storage\u8BFB\u53D6\u6570\u636E\u65F6\uFF0C JSON\u89E3\u6790\u51FA\u9519")}},mn=t=>localStorage.removeItem(t),gn={set:ct,setTimeout:un,get:pn,remove:mn},D=gn;var re;(function(n){n.GET="GET",n.POST="POST"})(re||(re={}));var dt=(t,e)=>d(void 0,null,function*(){let n=new AbortController;if(e.signal&&e.signal.addEventListener("abort",()=>{n.abort()}),e.timeout){let l=setTimeout(()=>{n.abort()},e.timeout);n.signal.addEventListener("abort",()=>{clearTimeout(l)})}let o=e.bodyData,r=o&&(typeof o=="object"?JSON.stringify(o):o),i={credentials:"same-origin",method:e.method,headers:new Headers(R({},e.headers)),signal:n.signal};r&&(i.body=r),s.http("\u53D1\u9001\u8BF7\u6C42\uFF1A",t,j(R({},i),{body:o}));try{let l=yield fetch(t,i);if(s.http("\u8BF7\u6C42\u54CD\u5E94\uFF1A",t,l,yield l.clone().text()),l.ok||l.status>=200&&l.status<300){let m=l.headers.get("content-type")||"";if(/application\/json/i.test(m))return yield l.json()}else throw new Error(`${l.status} ${l.statusText}`)}catch(l){if(l.name==="AbortError"){s.http("\u8BF7\u6C42\u53D6\u6D88\uFF1A",i);return}throw l}}),fn=(t,e,n)=>d(void 0,null,function*(){let o=e?e.toString():"";return yield dt(t+o,{method:re.GET,headers:n==null?void 0:n.headers})}),hn=(t,e,n)=>d(void 0,null,function*(){return yield dt(t,{method:re.POST,headers:R({"Content-Type":"application/json;charset=UTF-8"},n==null?void 0:n.headers),bodyData:e})}),vn={get:fn,post:hn},ie=vn;var yn=Array.isArray,bn=t=>t!==t,ut=t=>typeof t=="number",pt=t=>typeof t=="string",In=t=>ut(t)||pt(t),Cn=t=>typeof t=="function",Pn=t=>typeof t=="undefined",wn=t=>t?!1:!!(t!=null?t:!0),xn={isArr:yn,baseIsNaN:bn,isString:pt,isNumber:ut,isText:In,isFn:Cn,isUndefined:Pn,isNullOrUndefined:wn},O=xn;function En(t,e=[]){let n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e}function _n(t,e,n){let o=n-1,r=t.length;for(;++o<r;)if(t[o]===e)return o;return-1}function Sn(t,e,n,o=!1){let r=t.length,i=n+(o?1:-1);for(;o?i--:++i<r;)if(e(t[i],i,t))return i;return-1}function Tn(t,e,n){return e===e?_n(t,e,n):Sn(t,O.baseIsNaN,n)}function Rn(t,e){let n=-1,o=e.length,r=t;for(t===e&&(e=En(e));++n<o;){let i=0,l=e[n],m=l;for(;(i=Tn(r,m,i))>-1;)r!==t&&[].splice.call(r,i,1),[].splice.call(t,i,1)}return t}var kn=t=>t?O.isArr(t)?t:[t]:[],Fn=(t,e)=>!t||!t.length||!e||!e.length?t:Rn(t,e),Mn=(t,e="")=>{let n=document.createElement("canvas");n.width=t.videoWidth,n.height=t.videoHeight,n.getContext("2d").drawImage(t,0,0,n.width,n.height),n.toBlob(o=>{if(!o){s.libError("util screenshot canvas\u7684\u8F93\u51FA\u4E3A\u7A7A\u503C");return}let r=URL.createObjectURL(o),i=document.createElement("a");i.href=r,i.download=`${e}.png`,i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)})},Ln={pullAll:Fn,toArray:kn,screenshot:Mn},G=Ln;var mt={BVCSP_V1:{path:"/bvcsp/v1",prefix:""}},Ce=t=>{let e=mt[t];return e.prefix+e.path},Nn=(t,e)=>{let n=mt[t];return n.prefix=e||"",Ce(t)},X={setApiPrefix:Nn,getApiURL:Ce,bvscpV1:()=>Ce("BVCSP_V1")},q=t=>{X.setApiPrefix("BVCSP_V1",t)};var On=t=>{if(!t)return null;if(t.nodeType===Node.DOCUMENT_NODE)return t.documentElement;if(t.nodeType===Node.ELEMENT_NODE){let e=t;return e.hasChildNodes()&&e.childNodes.forEach(n=>{let o=n;o.className&&new RegExp(".*bvplayer-core-player.*").test(o.className)&&e.removeChild(o)}),t}return null},Dn=(t,e,n)=>{if(!t)return;let o=document.createDocumentFragment();o.appendChild(t);let r=On(e);!r||(r.appendChild(o),n==null||n())},gt=Dn;var se=(...t)=>{let e=[];for(let n=0;n<t.length;n++){let o=t[n];if(!o)continue;let r=typeof o;if(O.isText(o))e.push(o);else if(Array.isArray(o)){if(o.length){let i=se(...o);i&&e.push(i)}}else if(r==="object")if(o.toString==={}.toString)for(let i in o)({}).hasOwnProperty.call(o,i)&&o[i]&&e.push(i);else e.push(o.toString())}return e.join(" ")},ft=t=>t?t.replace(/\s*(;|\{|\})+\s*[\n\r]*/g,"$1"):"",Vn=(t,...e)=>{if(!e.length)return ft(t[0]);let n="";return e.forEach((o,r)=>{n+=t[r]+o}),n+=t[t.length-1],ft(n)},Pe="bvplayer-",Bn="common-",ht=t=>new RegExp(Pe).test(t),An=(...t)=>se(t).split(" ").map(e=>ht(e)?e:Pe+e).join(" "),Wn=(...t)=>se(t).split(" ").map(e=>ht(e)?e:Pe+Bn+e).join(" ");var Hn={cls:se,css:Vn,prefixCls:An,commonCls:Wn},Q=Hn;function jn(t={},e){if(!e)return;Object.keys(t).forEach(o=>{if(o==="children")return;let r=t[o];O.isNullOrUndefined(r)||(o.startsWith("on")?e.addEventListener(o.substring(2).toLowerCase(),r):e instanceof Element?e.setAttribute(o==="className"?"class":o,r):e[o]=r)})}function $n(t,e){return t===""?document.createTextNode(""):e?document.createElementNS(e,t):document.createElement(t)}function Z(t,e,n){let o=e?e(t):t;if(!o)return null;if(O.isArr(o)){let l=document.createDocumentFragment();return o.forEach(m=>{let a=Z(m,e);a&&l.appendChild(a)}),l}let{props:r,type:i}=o;if(!r)return o instanceof Node||o instanceof Text?(s.libWarn("jsx grow","\u63D0\u793A",o,"\u5E76\u4E0D\u662F\u6709\u6548\u7684jsx element \u5DF2\u7ECF\u539F\u6837\u8F93\u51FA\uFF0C\u4E0D\u5F71\u54CDui \u4F46\u5C3D\u91CF\u5C11\u6DF7\u7528jsx\u548Cdom"),o):(s.libWarn("jsx grow","\u672A\u89E3\u6790",o,"\u56E0\u4E3A\u5B83\u4E0D\u662F\u6709\u6548\u7684jsx element\uFF0C\u5E76\u4E14\u4E5F\u4E0D\u662FRenderTarget\u7C7B\u578B"),null);if(O.isString(i)){let l=$n(i,r.xmlns||n);return jn(r,l),(r.children||[]).forEach(a=>{let g=Z(a,e,r.xmlns);!g||l.appendChild(g)}),l}if(O.isFn(i)){let l=i(r);return Z(l,e)}return null}function zn(t){return document.createRange().createContextualFragment(t)}function Un(t,e){let n=document.createElement(t);return e&&(n.className=e),n}function we(){return document.createDocumentFragment()}function Kn(t,e){let n=document.createElement(t);return e&&(n.className=e),n}function Jn(t,...e){if(!t)return;let n=we();n.append(...e.filter(o=>o)),t.appendChild(n)}function Gn(t){if(!!t)if(t instanceof Element){t.innerHTML="";return}else for(;t.firstChild;)t.removeChild(t.firstChild)}function Xn(t,...e){if(!e.length||!(t==null?void 0:t.parentNode))return;let n=e.filter(o=>o);if(t instanceof Element)t.replaceWith(...n);else{let o=we();o.append(...n),t.parentNode.replaceChild(o,t)}}function qn(t){var e;if(!!t)if(t instanceof Element){t.remove();return}else(e=t.parentNode)==null||e.removeChild(t)}function Qn(t){if(!t||!t.props)return t;let{props:e}=t;return e.withCommonNamespace&&(e.className=Q.commonCls(e.className),delete e.withCommonNamespace),e.withNamespace&&(e.className=Q.prefixCls(e.className),delete e.withNamespace),t}function Zn(t){return t?Z(t,Qn):null}var Yn={parseHtml:zn,create:Un,createFragment:we,createHtmlElement:Kn,createByJsx:Zn,append:Jn,empty:Gn,replace:Xn,removeSelf:qn},vt=Yn;var eo="bvplayerCore",to=t=>eo+t,no={createPrefixStorageField:to},yt=no;var oo={render:gt,style:Q,dom:vt,field:yt},u=oo;var A=u.field.createPrefixStorageField("DialogIds"),ro=(t,e)=>d(void 0,null,function*(){var l;let n={Authorization:e||""},o={id:t.id,index:t.index,sdp:t.sdp},r=yield ie.post(`${X.bvscpV1()}/dialog/device/webrtc`,o,{headers:n});if(s.api("\u8BBE\u5907\u97F3\u89C6\u9891\u6D41 webrtc\u65B9\u5F0F\u6253\u5F00dialog: ",{params:o,resData:r}),!r||r.code!==0||!((l=r.data)==null?void 0:l.dialogid))throw new Error(`\u6253\u5F00\u4F20\u8F93\u901A\u9053\u5931\u8D25\uFF0C ${r.msg}`);let{data:i}=r;if(i.dialogid){let m=D.get(A)||[];m.push(i.dialogid),D.set(A,m)}return{dialogId:i.dialogid,sdp:i.sdp}}),io=(t,e)=>d(void 0,null,function*(){var m;let n={Authorization:e||""},o={id:t.id,index:t.index,sdp:t.sdp},r=yield ie.post(`${X.bvscpV1()}/dialog/conference/webrtc`,o,{headers:n});if(s.api("\u4F1A\u8BAE\u97F3\u89C6\u9891\u6D41 webrtc\u65B9\u5F0F\u6253\u5F00dialog: ",{params:o,resData:r}),!r||r.code!==0||!((m=r.data)==null?void 0:m.dialogid))throw new Error(`\u6253\u5F00\u4F20\u8F93\u901A\u9053\u5931\u8D25\uFF0C ${r==null?void 0:r.msg}`);let{data:i}=r,l=D.get(A)||[];return l.push(i.dialogid),D.set(A,l),{dialogId:i.dialogid,sdp:i.sdp}}),so=(t,e)=>d(void 0,null,function*(){if(!t)return;let n={Authorization:e||""};return s.api("\u5173\u95EDdialog\uFF1A",t),yield ie.post(`${X.bvscpV1()}/dialog/close/${t}`,{},{headers:n})}),bt=(t,e)=>d(void 0,null,function*(){let n=D.get(A)||[];G.pullAll(n,t),D.set(A,n,0);let r=(yield Promise.allSettled(t.map(i=>so(i,e)))).filter(i=>i.status==="rejected");r&&r.length>0&&s.error(new Error(`"\u5173\u95ED\u5B58\u50A8\u7684dialog\u65F6\u5931\u8D25\uFF1A", ${r}`))}),ao=t=>d(void 0,null,function*(){let e=D.get(A);!e||e.length<1||(D.remove(A),yield bt(e,t))}),lo={getDeviceWebrtc:ro,getConferenceWebrtc:io,closeDialogs:bt,closeAllStorageDialog:ao},k=lo;var It=class{constructor(){this._map=new Map}findExecutor(e,n){let o=this._map.get(e);return{index:o?o.findIndex(i=>Object.is(n,i)):-1,que:o}}publish(e,n){let o=this._map.get(e)||[],r=o.length;for(let i=0;i<r;i++){let l=o[i];l&&l(n)}}subscribe(e,n){let{index:o,que:r=[]}=this.findExecutor(e,n);return o>=0?r[o]=n:r.push(n),this._map.set(e,r),{unSubscribe:()=>{this.unSubscribe(e,n)}}}unSubscribe(e,n){let{index:o,que:r=[]}=this.findExecutor(e,n);o<0||(r.splice(o,1),this._map.set(e,r))}},Y=class{constructor(){this._notifier=new It}addEventListener(e,n){this._notifier.subscribe(e,n)}removeEventListener(e,n){this._notifier.unSubscribe(e,n)}dispatch(e,n){this._notifier.publish(e,n)}};var w=class extends Y{constructor(e,n,o){super();this.name="";let r=n.trim().toLowerCase(),i=o?o.trim():r,l=u.dom.create(e,u.style.prefixCls(i));this.name=r,this.el=l}empty(){u.dom.empty(this.el)}unmount(){var e;s.debug("unmount",this.el,(e=this.el)==null?void 0:e.parentNode),u.dom.removeSelf(this.el)}destroy(){if(this.beforeDestroy(),this.empty(),this.unmount(),this.el=null,this.dispatch("destroy"),!!this){for(let e in this)this[e]=void 0;s.debug("destroy complete",this)}}getEl(){return this.el}};var Ct=class extends w{constructor(e){super("div","mask",u.style.cls("mask"));this._visible=!!(e==null?void 0:e.visible),this._text=e==null?void 0:e.text,this._textEl=u.dom.create("span",u.style.cls("text"))}set visible(e){this._visible=e,this.el.style.display=this._visible?"grid":"none"}set text(e){this._text=e,this._textEl.textContent=e}beforeDestroy(){}init(){s.debug("mask visible: ",this._visible);let e=this.el;return e.style.display=this._visible?"block":"none",this._textEl.textContent=this._text||"",u.dom.append(e,this._textEl),e}},Pt=Ct;var wt=class extends w{constructor(e){super("div","spinner",u.style.cls("spinner"));this._spin=!!(e==null?void 0:e.spin)}set spin(e){this._spin=e,this.el.style.display=this._spin?"block":"none"}beforeDestroy(){}init(){s.debug("spinner spin: ",this._spin);let e=this.el;e.style.display=this._spin?"block":"none";let n=u.dom.create("span");return n.style.backgroundColor="#FFF",u.dom.append(e,n),e}},xt=wt;var Et={contain:"contain",fill:"fill"},_t=class extends w{constructor(e){super("video","video",u.style.cls("video"));this._url=e==null?void 0:e.url,this._srcObject=(e==null?void 0:e.srcObject)||null,this._fit=(e==null?void 0:e.fit)||Et.contain,this._autoPlay=!!(e==null?void 0:e.autoPlay),this._muted=!!(e==null?void 0:e.muted)}set url(e){typeof this._url!="undefined"&&(this.el.src=this._url),this._url=e}set srcObject(e){this._srcObject=e||null,this.el.srcObject=this._srcObject}set muted(e){let n=this.el;this._muted=e,n.muted=e}set paused(e){let n=this.el;e?n.pause():n.play()}get paused(){var e;return!!((e=this.el)==null?void 0:e.paused)}set autoPlay(e){if(!e!==this._autoPlay)return;this._autoPlay=e,this.muted=e;let n=this.el;n.autoplay=this._autoPlay}set fit(e){this._fit=Et[e],this.el.style.objectFit=this._fit}getVideoFit(){return this._fit}init(){s.debug("\u6E32\u67D3VideoPlugin\u89C6\u9891\u5BF9\u8C61dom\u7684children",this,this.el);let e=this.el;return e.addEventListener("play",()=>this.dispatch("play",{target:this})),e.addEventListener("pause",()=>this.dispatch("pause",{target:this})),e.addEventListener("loadedmetadata",n=>{s.debug("video loadedmetadata",n),this.dispatch("loadedmetadata",{target:this})}),typeof this._url!="undefined"&&(e.src=this._url),e.srcObject=this._srcObject,e.autoplay=this._autoPlay,e.muted=this._muted,e.style.objectFit=this._fit,e.playsInline=!0,e}play(){return d(this,null,function*(){let e=this.el;try{s.debug("video \u5C1D\u8BD5\u64AD\u653E"),yield e.play()}catch(n){s.error(n,"video \u64AD\u653E \u5931\u8D25")}})}beforeDestroy(){}},St=_t;function ee(t){return class extends t{constructor(...e){super(...e);this._visible=!1}get visible(){return this._visible}set visible(e){let n=!!e;if(this._visible===n)return;this._visible=n;let o=u.style.commonCls("is-visible");this._visible?(this.show&&this.show(),this.el.setAttribute("aria-hidden","false"),this.el.classList.add(o)):(this.hide&&this.hide(),this.el.setAttribute("aria-hidden","true"),this.el.classList.remove(o))}}}function xe({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}))}function Ee({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},jsx.h("path",{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 0 1-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 0 1 .947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 0 1 2.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 0 1 2.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 0 1 .947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 0 1-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 0 1-2.287-.947zM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z","clip-rule":"evenodd"}))}function _e({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 0 1 2-2h.93a2 2 0 0 0 1.664-.89l.812-1.22A2 2 0 0 1 10.07 4h3.86a2 2 0 0 1 1.664.89l.812 1.22A2 2 0 0 0 18.07 7H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9z"}),jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}))}function Se({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},jsx.h("path",{"fill-rule":"evenodd",d:"M4 5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-1.586a1 1 0 0 1-.707-.293l-1.121-1.121A2 2 0 0 0 11.172 3H8.828a2 2 0 0 0-1.414.586L6.293 4.707A1 1 0 0 1 5.586 5H4zm6 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z","clip-rule":"evenodd"}))}function Te({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0-5 5M4 16v4m0 0h4m-4 0 5-5m11 5-5-5m5 5v-4m0 4h-4"}))}function Re({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},jsx.h("path",{"fill-rule":"evenodd",d:"M3 4a1 1 0 0 1 1-1h4a1 1 0 0 1 0 2H6.414l2.293 2.293a1 1 0 0 1-1.414 1.414L5 6.414V8a1 1 0 0 1-2 0V4zm9 1a1 1 0 1 1 0-2h4a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V6.414l-2.293 2.293a1 1 0 1 1-1.414-1.414L13.586 5H12zm-9 7a1 1 0 1 1 2 0v1.586l2.293-2.293a1 1 0 0 1 1.414 1.414L6.414 15H8a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1v-4zm13-1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 1 1 0-2h1.586l-2.293-2.293a1 1 0 0 1 1.414-1.414L15 13.586V12a1 1 0 0 1 1-1z","clip-rule":"evenodd"}))}function ke({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"}))}function Fe({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},jsx.h("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM9 9a1 1 0 0 0 0 2v3a1 1 0 0 0 1 1h1a1 1 0 1 0 0-2v-3a1 1 0 0 0-1-1H9z","clip-rule":"evenodd"}))}function Me({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m10 14 2-2m0 0 2-2m-2 2-2-2m2 2 2 2m7-2a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"}))}function Le({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},jsx.h("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM8.707 7.293a1 1 0 0 0-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 1 0 1.414 1.414L10 11.414l1.293 1.293a1 1 0 0 0 1.414-1.414L11.414 10l1.293-1.293a1 1 0 0 0-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"}))}function Ne({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 18 6M6 6l12 12"}))}function Oe({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},jsx.h("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 0 1 1.414 0L10 8.586l4.293-4.293a1 1 0 1 1 1.414 1.414L11.414 10l4.293 4.293a1 1 0 0 1-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 0 1-1.414-1.414L8.586 10 4.293 5.707a1 1 0 0 1 0-1.414z","clip-rule":"evenodd"}))}function De({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.536 8.464a5 5 0 0 1 0 7.072m2.828-9.9a9 9 0 0 1 0 12.728M5.586 15H4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z"}))}function Ve({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},jsx.h("path",{"fill-rule":"evenodd",d:"M9.383 3.076A1 1 0 0 1 10 4v12a1 1 0 0 1-1.707.707L4.586 13H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h2.586l3.707-3.707a1 1 0 0 1 1.09-.217zm5.274-.147a1 1 0 0 1 1.414 0A9.972 9.972 0 0 1 19 10a9.972 9.972 0 0 1-2.929 7.071 1 1 0 0 1-1.414-1.414A7.971 7.971 0 0 0 17 10a7.97 7.97 0 0 0-2.343-5.657 1 1 0 0 1 0-1.414zm-2.829 2.828a1 1 0 0 1 1.415 0A5.983 5.983 0 0 1 15 10a5.984 5.984 0 0 1-1.757 4.243 1 1 0 0 1-1.415-1.415A3.984 3.984 0 0 0 13 10a3.983 3.983 0 0 0-1.172-2.828 1 1 0 0 1 0-1.415z","clip-rule":"evenodd"}))}function Be({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5.586 15H4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z","clip-rule":"evenodd"}),jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m17 14 2-2m0 0 2-2m-2 2-2-2m2 2 2 2"}))}function Ae({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},jsx.h("path",{"fill-rule":"evenodd",d:"M9.383 3.076A1 1 0 0 1 10 4v12a1 1 0 0 1-1.707.707L4.586 13H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h2.586l3.707-3.707a1 1 0 0 1 1.09-.217zm2.91 4.217a1 1 0 0 1 1.414 0L15 8.586l1.293-1.293a1 1 0 1 1 1.414 1.414L16.414 10l1.293 1.293a1 1 0 0 1-1.414 1.414L15 11.414l-1.293 1.293a1 1 0 0 1-1.414-1.414L13.586 10l-1.293-1.293a1 1 0 0 1 0-1.414z","clip-rule":"evenodd"}))}function We({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14.752 11.168-3.197-2.132A1 1 0 0 0 10 9.87v4.263a1 1 0 0 0 1.555.832l3.197-2.132a1 1 0 0 0 0-1.664z"}),jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"}))}function He({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},jsx.h("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM9.555 7.168A1 1 0 0 0 8 8v4a1 1 0 0 0 1.555.832l3-2a1 1 0 0 0 0-1.664l-3-2z","clip-rule":"evenodd"}))}function je({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},jsx.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 9v6m4-6v6m7-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"}))}function $e({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},jsx.h("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0zM7 8a1 1 0 0 1 2 0v4a1 1 0 1 1-2 0V8zm5-1a1 1 0 0 0-1 1v4a1 1 0 1 0 2 0V8a1 1 0 0 0-1-1z","clip-rule":"evenodd"}))}function ze({className:t}){return jsx.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 33",fill:"currentColor"},jsx.h("path",{d:"M6.667 28H1.334c-.8 0-1.333-.533-1.333-1.333v-5.333c0-.8.533-1.333 1.333-1.333s1.333.533 1.333 1.333v4h4c.8 0 1.333.533 1.333 1.333S7.467 28 6.667 28zm24 0h-5.333c-.8 0-1.333-.533-1.333-1.333s.533-1.333 1.333-1.333h4v-4c0-.8.533-1.333 1.333-1.333S32 20.534 32 21.334v5.333c0 .8-.533 1.333-1.333 1.333zm0-16c-.8 0-1.333-.533-1.333-1.333v-4h-4c-.8 0-1.333-.533-1.333-1.333s.533-1.333 1.333-1.333h5.333c.8 0 1.333.533 1.333 1.333v5.333c0 .8-.533 1.333-1.333 1.333zM1.333 12C.533 12 0 11.467 0 10.667V5.334c0-.8.533-1.333 1.333-1.333h5.333c.8 0 1.333.533 1.333 1.333s-.533 1.333-1.333 1.333h-4v4c0 .8-.533 1.333-1.333 1.333z"}))}var F=({children:t,className:e})=>{let n=u.style.cls(["icon",e]);return jsx.h("span",{className:n,withNamespace:!0},t)},co=({filled:t})=>jsx.h(F,null,jsx.h(t?Ee:xe,null)),uo=({filled:t})=>jsx.h(F,null,jsx.h(t?Se:_e,null)),po=({filled:t})=>jsx.h(F,null,jsx.h(t?Fe:ke,null)),mo=({filled:t})=>jsx.h(F,null,jsx.h(t?Re:Te,null)),go=({filled:t,circle:e})=>e?jsx.h(F,null,jsx.h(t?Le:Me,null)):jsx.h(F,null,jsx.h(t?Oe:Ne,null)),fo=({filled:t,off:e})=>e?jsx.h(F,null,jsx.h(t?Ae:Be,null)):jsx.h(F,null,jsx.h(t?Ve:De,null)),ho=({filled:t,off:e})=>e?jsx.h(F,null,jsx.h(t?$e:je,null)):jsx.h(F,null,jsx.h(t?He:We,null)),vo=()=>jsx.h(F,null,jsx.h(ze,null)),yo={Cog:co,Camera:uo,Info:po,ArrowsExpand:mo,X:go,Volume:fo,Play:ho,Full:vo};var x=yo;var W="modal",Tt=class extends w{constructor(e){super("div",W,u.style.cls([W,e.className,{[`${W}--center`]:e.center}]));this.container=e.container,this.title=e.title,this._content=e.content||u.dom.create("div","test"),this._center=!!e.center}set content(e){let n=u.dom.createByJsx(e);s.debug("modal update content",n,this._content),u.dom.replace(this._content,n),this._content=n}show(){var e;(e=this.el)==null||e.classList.toggle(u.style.prefixCls(`${W}--center`),!!this._center),u.dom.append(this.container,this.el)}hide(){}clear(){!this.el||(this.el.innerHTML="")}beforeDestroy(){}init(){this.clear(),s.debug("\u6E32\u67D3ModalPlugin \u5F39\u7A97\u5BF9\u8C61",this,this.el);let e=this.el,n=u.dom.createByJsx(jsx.h(jsx.Fragment,null,jsx.h("div",{className:`${W}_title-bar`,onClick:()=>this.dispatch("hide"),withNamespace:!0},jsx.h("span",{className:`${W}_title-bar_title`,withNamespace:!0},this.title),jsx.h("span",{className:`${W}_title-bar_close`,withNamespace:!0},jsx.h(x.X,null))),jsx.h("div",{className:`${W}_body`,withNamespace:!0},this._content)));return u.dom.append(e,n),e}},bo=ee(Tt),Ue=class extends bo{},Rt=Ue;var Io="controller_button",kt=class extends w{constructor(e,n){super("button",Io);this._Children=e,this.title=n}set Children(e){!this.el||(this._Children=e,this.empty(),u.dom.append(this.el,u.dom.createByJsx(e)))}beforeDestroy(){}init(){let e=this.el;return e.addEventListener("click",()=>this.dispatch("click")),e.title=this.title||"",u.dom.append(e,u.dom.createByJsx(this._Children)),e}},z=kt;var Ft="controller",Mt=class extends w{constructor(e){super("div",Ft,u.style.cls(Ft));this._controls=(e==null?void 0:e.controls)||[],this.PlayButton=new z(jsx.h(x.Play,null)),this.VolumeButton=new z(jsx.h(x.Volume,{off:!0}),"volume"),this.InformationButton=new z(jsx.h(x.Info,null),"information"),this.ScreenshotButton=new z(jsx.h(x.Camera,null),"screenshot"),this.FullscreenButton=new z(jsx.h(x.ArrowsExpand,null),"fullscreen"),this.PlayButton.addEventListener("click",()=>{this.dispatch("play")}),this.VolumeButton.addEventListener("click",()=>{this.dispatch("volume")}),this.InformationButton.addEventListener("click",()=>this.dispatch("information")),this.ScreenshotButton.addEventListener("click",()=>this.dispatch("screenshot")),this.FullscreenButton.addEventListener("click",()=>this.dispatch("fullscreen"))}beforeDestroy(){}init(){s.debug("\u6E32\u67D3ControllerPlugin \u64AD\u653E\u63A7\u5236\u5668\u5BF9\u8C61",this,this.el,this._controls);let e=this.el,n=u.style.cls([`${this.name}_inner_bar`,`${this.name}_inner_left`]),o=u.style.cls([`${this.name}_inner_bar`,`${this.name}_inner_right`]),r=u.dom.createByJsx(jsx.h(jsx.Fragment,null,jsx.h("div",{className:`${this.name}_mask`,withNamespace:!0}),jsx.h("div",{className:`${this.name}_inner`,withNamespace:!0},jsx.h("div",{className:n,withNamespace:!0},this.PlayButton.init(),this.VolumeButton.init()),jsx.h("div",{className:"flex-space",withCommonNamespace:!0}),jsx.h("div",{className:o,withNamespace:!0},this.InformationButton.init(),this.ScreenshotButton.init(),this.FullscreenButton.init()))));return u.dom.append(e,r),e}},Co=ee(Mt),Ke=class extends Co{},Lt=Ke;var Nt=class{constructor(){this._els=[];this.disableAutoHide=!1;this._controller=new Lt}init(){let e=this._controller.init();return this._els.push(e),this._els}get els(){return this._els}get controller(){return this._controller}show(){this._controller.visible=!0}hide(){window.clearTimeout(this._autoHideTimeout),this._controller.visible=!1}showThenHide(){this.show(),window.clearTimeout(this._autoHideTimeout),this._autoHideTimeout=window.setTimeout(()=>{this.disableAutoHide||this.hide()},3e3)}},Ot=Nt;var ae=class{constructor(e){this.pc=e}getReceiversMap(){let e=new Map([["audio",[]],["video",[]]]),n=this.pc.getReceivers();return(n==null?void 0:n.length)&&n.forEach(o=>{let{kind:r}=o.track,i=e.get(r)||[];i.push(o),e.set(r,i)}),e}getStatsInfos(){return d(this,null,function*(){let e=this.getReceiversMap();s.debug("receivers map : ",e);let n=yield Promise.all(e.get("audio").map(r=>d(this,null,function*(){let i={},l=yield r.getStats(),m=[];return l.forEach(a=>{m.push(a),a.type==="codec"&&(i.mimeType=a.mimeType,i.clockRate=a.clockRate,i.channels=a.channels),a.type==="track"&&(i.totalSamplesReceived=a.totalSamplesReceived,i.totalSamplesDuration=a.totalSamplesDuration)}),s.debug("audio stats report: ",m),i}))),o=yield Promise.all(e.get("video").map(r=>d(this,null,function*(){let i={},l=yield r.getStats(),m=[];return l.forEach(a=>{m.push(a),a.type==="codec"&&(i.mimeType=a.mimeType,i.clockRate=a.clockRate),a.type==="inbound-rtp"&&(i.frameWidth=a.frameWidth,i.frameHeight=a.frameHeight,i.framesPerSecond=a.framesPerSecond,i.framesReceived=a.framesReceived,i.framesDecoded=a.framesDecoded,i.totalInterFrameDelay=a.totalInterFrameDelay,i.keyFramesDecoded=a.keyFramesDecoded,i.packetsLost=a.packetsLost,i.lastPacketReceivedTimestamp=a.lastPacketReceivedTimestamp,i.bytesReceived=a.bytesReceived,i.totalDecodeTime=a.totalDecodeTime)}),s.debug("video stats report: ",m),i})));return{audios:n,videos:o}})}};var Po=(t,e)=>{N.debug(`webrtc my ICE candidate:
26
+ ${e.candidate?e.candidate.candidate:"(null)"}`)},wo=(t,e,n)=>{N.debug("webrtc ICE state change event: ",e),N.debug(`webrtc my ICE state: ${t==null?void 0:t.iceConnectionState}`),t&&t.iceConnectionState==="disconnected"&&n&&n()},xo=(t,e)=>{N.debug("webrtc Connection state change, \u5F53\u524D\u8FDE\u63A5\u72B6\u6001: ",t,t.connectionState)},Eo=(t,e,n)=>{N.debug("webrtc \u5F53\u524D\u7684 stream: ",e.streams[0]);let o=e.streams[0];n(o)},_o=(t,e)=>d(void 0,null,function*(){let{offerParam:n,productRemoteSdp:o,customerRTCPeerConnection:r,onConnected:i,onConnectedFailed:l,onIceDisconnected:m,onPcEventAdded:a,onLocalDescriptionReady:g}=t,y=!!r&&r instanceof RTCPeerConnection,b={},v=y?r:new RTCPeerConnection(b);if(v.addEventListener("icecandidate",f=>Po(v,f)),v.addEventListener("iceconnectionstatechange",f=>wo(v,f,m)),v.addEventListener("connectionstatechange",f=>xo(v,f)),v.addEventListener("track",f=>Eo(v,f,e)),a&&(yield a(v)),y)return new ae(v);try{let f=yield v.createOffer(n);N.debug("\u521B\u5EFAoffer\uFF0C\u53C2\u6570\uFF1A",n,"\uFF0C \u7ED3\u679C\uFF1A",f),yield v.setLocalDescription(f),g&&g(v);let I=yield o(new RTCSessionDescription(f));N.debug("webrtc recv open answer",I);let T=new RTCSessionDescription({type:"answer",sdp:I});yield v.setRemoteDescription(T),N.debug("getTransceivers",v.getTransceivers()),i&&i(v)}catch(f){throw l&&l(v),N.error(new Error(`webrtc Failed to create session description: ${f.toString()}`)),v.close(),f}return new ae(v)}),So=t=>{if(!t)return;let{pc:e}=t;e.close()},To={connect:_o,disconnect:So},Je=To;var U=document.documentElement,le="requestFullscreen",ce="exitFullscreen",de="fullscreenElement",ue="onfullscreenchange";if("webkitRequestFullScreen"in U)le="webkitRequestFullScreen",ce="webkitExitFullscreen",de="webkitFullscreenElement",ue="onwebkitfullscreenchange";else if("msRequestFullscreen"in U)le="msRequestFullscreen",ce="msExitFullscreen",de="msFullscreenElement",ue="MSFullscreenChange";else if("mozRequestFullScreen"in U)le="mozRequestFullScreen",ce="mozCancelFullScreen",de="mozFullScreenElement",ue="onmozfullscreenchange";else if(!("requestFullscreen"in U))throw"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301Fullscreen API !";function Ro(t=U,e){return t[le](e)}function ko(){return document[ce]()}function Dt(t){return t===document[de]}function Fo(t=U,e){return Dt(t)?ko():Ro(t,e)}function Mo(t,e){let n=()=>{t.onfullscreenchange=null},o=r=>{r.target!==null&&e(Dt(r.target))};return t[ue]=o,{cancel:n}}var Lo={toggle:Fo,watch:Mo},pe=Lo;var No=({label:t,value:e,suffix:n})=>jsx.h("div",{className:"player_info-modal_list_item",withNamespace:!0},jsx.h("span",{className:"player_info-modal_list_item_label",withNamespace:!0},t),jsx.h("span",{className:"player_info-modal_list_item_value",withNamespace:!0},e),jsx.h("span",{className:"player_info-modal_list_item_suffix",withNamespace:!0},n)),Vt=({list:t,factory:e})=>(t==null?void 0:t.length)?e?jsx.h(jsx.Fragment,null,t.map(n=>jsx.h(Vt,{list:Object.keys(n).map(o=>e[o]?e[o](n[o],n):!1).filter(o=>o!==!1)}))):jsx.h("div",{className:"player_info-modal_list",withNamespace:!0},t.map(n=>jsx.h(No,R({},n)))):null,Ge=Vt;var M;(function(o){o.DIRECT="direct",o.PLUGIN="plugin",o.REJECT="reject"})(M||(M={}));var me;(function(i){i.MP4="MP4",i.FLAC="FLAC",i.OGG="OGG",i.WEBM="WEBM",i.AUTO="AUTO"})(me||(me={}));var Xe;(function(e){e.WEBRTC="WEBRTC"})(Xe||(Xe={}));var Bt="player",At=class extends w{constructor(e){super("div",Bt);this._lastTotalReceivedBytes=0;this._video=new St,this._spinner=new xt({spin:!1}),this._mask=new Pt({visible:!1}),this._panel=new Ot,this._infoModal=new Rt({container:this.el,title:"Info",center:!0,className:`${Bt}_info-modal`}),this._videoOption=e==null?void 0:e.video,this._pluginOption=e==null?void 0:e.pluginOption,this._playerConfig=e==null?void 0:e.playerConfig,this._mode=this._restrictPlayerMode(e==null?void 0:e.video,e==null?void 0:e.pluginOption),s.debug("PlayerMode",this._mode)}justifyVideoType(e,n){if((e==null?void 0:e.url)&&!e.type)return me.AUTO;let o="".toUpperCase.call((e==null?void 0:e.type)||Object.keys(n||{})[0]||"");return s.debug("justifyVideoType ",e,o),o}_restrictPlayerMode(e,n){let o=this.justifyVideoType(e,n);if(!o&&!(e==null?void 0:e.url))return M.REJECT;if(!o)return M.DIRECT;let r=Object.keys(me),i=Object.keys(Xe);return r.includes(o)?M.DIRECT:i.includes(o)?M.PLUGIN:M.DIRECT}init(){s.debug("\u6E32\u67D3PlayerPlugin",this.el),this.prepare();let e=this._video.init(),n=this._spinner.init(),o=this._mask.init(),r=this._panel.init(),i=this._infoModal.init();return u.dom.append(this.el,e,n,o,...r,i),this.initEvents(),this.dispatch("init",{name:"initEvent",target:this,mode:this._mode}),this.el}get video(){return this._video}get spinner(){return this._spinner}get mask(){return this._mask}play(e){return d(this,null,function*(){this.mute(!0),yield this._video.play(),this.mute(e)})}mute(e){var n;this._video.muted=!!e,s.debug("player mute: ",(n=this._video.getEl())==null?void 0:n.muted)}setProductRemoteSdp(e){!this._pluginOption||!this._pluginOption.webrtc||(this._pluginOption.webrtc.productRemoteSdp=e)}prepareWebrtc(){return d(this,null,function*(){var n;if(this._mode!==M.PLUGIN)return;s.debug("PuPlayer Plugin prepareWebrtc");let e=(n=this._pluginOption)==null?void 0:n.webrtc;!e||(this._video.autoPlay=!0,this._spinner.spin=!0,this._webrtcConnect=yield Je.connect(e,o=>{var i;if(!o)return;(i=this.video.getEl())==null||i.addEventListener("canplay",()=>{s.debug("Video canplay"),this.video.play()}),this._video.srcObject=o;let r=o.getTracks()[0];r.onended=l=>{s.debug("\u6D41\u89C6\u9891\u8F68\u9053\u5DF2\u7ECF\u7EC8\u6B62",l)},r.onmute=l=>{s.debug("\u6D41\u89C6\u9891\u8F68\u9053\u6682\u65F6\u65E0\u6CD5\u63D0\u4F9B\u5A92\u4F53",l),this.onMuted()},r.onunmute=l=>{s.debug("\u6D41\u89C6\u9891\u8F68\u9053\u63D0\u4F9B\u5A92\u4F53",l),this.onUnMuted()}}))})}close(){this.closeWebrtc()}beforeDestroy(){this.close()}onMuted(){}onUnMuted(){}loadPlayerConfig(){var e;this.video.autoPlay=!!((e=this._playerConfig)==null?void 0:e.autoPlay)}initEvents(){var o,r,i,l,m;(o=this.video.getEl())==null||o.addEventListener("canplay",()=>{this._spinner.spin=!1,this._mask.visible=!1}),(r=this.video.getEl())==null||r.addEventListener("waiting",()=>{s.debug("Video is waiting for more data."),this._spinner.spin=!0}),(i=this.el)==null||i.addEventListener("mousemove",()=>{this._panel.showThenHide()}),(l=this.el)==null||l.addEventListener("click",()=>{this._panel.showThenHide()});let e=(a=!1)=>{let g=this._panel.controller.PlayButton;a||(this._video.paused=!this._video.paused),console.log("oalyer,",this._video.paused),this._video.paused?g.Children=jsx.h(x.Play,null):g.Children=jsx.h(x.Play,{off:!0})};e(!0),this._panel.controller.addEventListener("play",()=>e()),this._video.addEventListener("play",()=>{s.debug("video play"),this._panel.showThenHide();let a=this._panel.controller.PlayButton;a.Children=jsx.h(x.Play,{off:!0})}),this._video.addEventListener("pause",()=>{s.debug("video pause"),this._panel.showThenHide();let a=this._panel.controller.PlayButton;a.Children=jsx.h(x.Play,null)}),this._panel.controller.addEventListener("screenshot",()=>{let a=this._video.getEl();if(!a){s.libError("playerPlugin screenshot videoEl\u4E3A\u7A7A\u503C");return}G.screenshot(a,`screenshot_${Date.now()}`)}),this._panel.controller.addEventListener("fullscreen",()=>{if(!this.el){s.libError("playerPlugin fullscreen playerEL\u4E3A\u7A7A\u503C");return}pe.toggle(this.el)}),(m=this._infoModal)==null||m.addEventListener("hide",()=>{this._infoModal.visible=!1,window.clearInterval(this._timer)}),this._panel.controller.addEventListener("information",()=>d(this,null,function*(){if(!this._video.getEl()){s.libError("playerPlugin information videoEl\u4E3A\u7A7A\u503C");return}this.refreshInfoModal()}));let n=(a=!1)=>{var b;let g=this._panel.controller.VolumeButton,y=(b=this._video.getEl())==null?void 0:b.muted;a||(this._video.muted=!y),y?g.Children=jsx.h(x.Volume,null):g.Children=jsx.h(x.Volume,{off:!0})};n(!0),this._panel.controller.addEventListener("volume",()=>n())}prepare(){if(s.debug("PlayerPlugin mode: ",this._mode),this.loadPlayerConfig(),this._mode===M.REJECT){s.error(new Error("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u7C7B\u578B"),this._mode,this._videoOption);return}if(this._mode===M.DIRECT){this.prepareDirect();return}if(this._mode===M.PLUGIN){switch(this.justifyVideoType(this._videoOption,this._pluginOption)){case"webrtc":break;default:break}return}}prepareDirect(){var e;this._video.url=((e=this._videoOption)==null?void 0:e.url)||"",setTimeout(()=>{this.play()},300)}closeWebrtc(){var e;Je.disconnect(this._webrtcConnect),this.dispatch("closeWebrtc",{name:"closeWebrtcEvent",target:this,peerConnection:(e=this._webrtcConnect)==null?void 0:e.pc}),this._webrtcConnect=null,this._video.srcObject=null}refreshInfoModal(){return d(this,null,function*(){if(window.clearInterval(this._timer),!this._webrtcConnect)return;let e=3,n=()=>d(this,null,function*(){if(!this._webrtcConnect)return;let o=yield this._webrtcConnect.getStatsInfos();s.debug("player get result: ",o);let r={mimeType:(a="")=>({label:"Mime Type:",value:a}),totalSamplesReceived:(a=0,g)=>{let y={label:"Sample Rate:",value:""};return!a||!g.totalSamplesDuration||(y.value=Number(a/g.totalSamplesDuration).toFixed(3)+"Hz"),y}},i={mimeType:(a="")=>({label:"Mime Type:",value:a}),framesPerSecond:(a,g)=>({label:"Resolution:",value:`${g.frameWidth} x ${g.frameHeight}@${a}`}),bytesReceived:(a,g)=>{let y=a||0,b=(y-this._lastTotalReceivedBytes)*8/(e*1e3);return this._lastTotalReceivedBytes=y,{label:"Data Received:",value:`${Math.round(b)} kbps , lost ${g.packetsLost}`}}},l=jsx.h(Ge,{list:o.audios,factory:r}),m=jsx.h(Ge,{list:o.videos,factory:i});s.debug("audioInfoList",u.dom.createByJsx(l)),!!this._infoModal&&(this._infoModal.content=jsx.h("div",{style:"padding-left: 24px;"},jsx.h("section",{className:"player_info-modal_section",withNamespace:!0},jsx.h("span",{className:"player_info-modal_section_title",withNamespace:!0},"Audio"),l),jsx.h("section",{className:"player_info-modal_section",withNamespace:!0},jsx.h("span",{className:"player_info-modal_section_title",withNamespace:!0},"Video"),m)),this._infoModal.visible=!0)});n(),this._timer=window.setInterval(n,e*1e3)})}},ge=At;var Oo=(t,e,n)=>o=>d(void 0,null,function*(){if(o.type==="offer"){s.debug("\u8BF7\u6C42\u8FDC\u7AEFsdp\uFF0C \u8BBE\u5907\u914D\u7F6E\u4FE1\u606F\uFF1A",t,"token: ",e),s.debug("\u672C\u5730sdp",o);try{let{id:r,index:i}=t||{},l=yield k.getDeviceWebrtc({id:r,index:i,sdp:o.sdp},e);return n&&n(l.dialogId),l.sdp}catch(r){throw s.error(r,"\u8BF7\u6C42\u8FDC\u7AEFsdp\u65F6\u51FA\u9519"),new Error(`PUPlayer open \u5931\u8D25 , ${r.message}`)}}}),Do=t=>{let{container:e,token:n,puOption:o,defaultMediaOption:r={audio:!0,video:!0},testUrl:i,videoFit:l="fill",muted:m,apiPrefix:a,onConnected:g,onConnectedFailed:y,onDisConnected:b,fullScreenOnDblclick:v=!0}=t||{},f,I=n,T=o,L=e,E=typeof m=="boolean"?m:!r.audio;q(a);let C=()=>d(void 0,null,function*(){if(!!f&&(s.debug("PuPlayer close",f),p.mask.visible=!0,p.mask.text="Video Closed",p.close(),f))try{yield k.closeDialogs([f],I)}catch(h){throw s.error(h,"PuPlayer close \u5931\u8D25"),new Error(`PuPlayer close \u5931\u8D25 , ${h.message}`)}}),p=new ge({video:{url:i},pluginOption:{webrtc:{offerParam:{offerToReceiveAudio:r.audio,offerToReceiveVideo:r.video},productRemoteSdp:h=>d(void 0,null,function*(){return Oo(T,I,H=>{f=H})(h)}),onIceDisconnected:()=>{p.mask.visible=!0,p.mask.text="lost connection",p.close(),b&&b()},onConnected:()=>{g&&g()},onConnectedFailed:()=>{y&&y()}}},playerConfig:{autoPlay:!0}});p.addEventListener("init",h=>{s.debug("\u76D1\u542C\u5230\u4E86 player\u5DF2\u7ECF\u521D\u59CB\u5316",h)}),p.mute(E),p.video.fit=l;let P=p.init();v&&(P==null||P.addEventListener("dblclick",()=>{s.debug("\u53CC\u51FBplayer\uFF1A",P),pe.toggle(P)}));let V={instance:{getVideoElement:()=>p.video.getEl(),getPlayerElement:()=>p.getEl(),open:(h=!1)=>d(void 0,null,function*(){s.debug("PuPlayer open"),yield C(),s.debug("PuPlayer close before open"),p.mask.visible=!1,p.mask.text="connecting",p.mute(!!h);try{yield p.prepareWebrtc()}catch(_){throw p.mask.visible=!0,p.mask.text="connect failed",_}if(typeof h=="boolean"&&h){let _=()=>{s.debug("\u76D1\u542C\u5230\u7528\u6237\u6709click tap\u4EA4\u4E92\uFF0C \u6539\u53D8\u9759\u97F3\uFF0C muted\uFF1A",E),s.debug("\u6B64\u90E8\u5206\u67E5\u770B\uFF1Ahttps://developers.google.com/web/updates/2017/09/autoplay-policy-changes"),p.mute(E),document.removeEventListener("click",_),document.removeEventListener("touchend",_)};document.addEventListener("click",_),document.addEventListener("touchend",_)}}),play:()=>d(void 0,null,function*(){yield p.play(E)}),mute:(h=!1)=>{E=h,p.mute(h)},hidden:h=>d(void 0,null,function*(){let _=P,H=p.video.getEl();_.style.display="none",document.body.appendChild(_),H.muted=!0;try{typeof h!="undefined"&&(E=h),yield p.play(E)}catch(Ko){s.debug("player.play() \u64AD\u653E\u672A\u6210\u529F")}s.debug("\u6DFB\u52A0\u5230body\u5E76\u9690\u85CF\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",H.paused)}),display:h=>d(void 0,null,function*(){let _=P,H=p.video.getEl();u.render(_,L,()=>d(void 0,null,function*(){_.style.display="block",typeof h!="undefined"&&(E=h),yield p.play(E)})),s.debug("\u663E\u793A\u5230\u5F53\u524D\u5BB9\u5668\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",H.paused)}),moveTo:h=>{s.debug("\u79FB\u52A8\u81F3\uFF1A",h),L=h,u.render(P,L,()=>d(void 0,null,function*(){}))},getCurrentContainer:()=>L,setPuOption:h=>{T=h},setVideoFit:h=>{s.debug("PuPlayer setVideoFit",h),p.video.fit=h},setToken:h=>{s.debug("PuPlayer setToken",h),I=h},setApiPrefix:q,close:C,render:p.init,destroy:()=>d(void 0,null,function*(){s.debug("PuPlayer destroy"),yield C(),p.destroy()})},element:P};return L&&(u.render(P,L),V.element=null),V},Wt=Do;var qe=class extends Y{constructor(e,n){super();this._plugin=e,this._el=this._plugin.init(),this._currentContainer=n}moveTo(e,n){s.debug("\u79FB\u52A8\u81F3\uFF1A",e),this._currentContainer=e,u.render(this._el,this._currentContainer,n)}getCurrentContainer(){return this._currentContainer}render(){return this._plugin.init()}destroy(){s.debug("destroy",this._plugin),this._plugin.destroy(),this.dispatch("destroy")}};var te=class{constructor(e,n,o,r){this.token="";this.fetchSdpFunc=e,this.token=n||"",this.param=o,this.prefix=r}fetch(e){return d(this,null,function*(){s.debug("RemoteSdpFetcher fetch \u8BF7\u6C42\u8FDC\u7AEFsdp\uFF0C param\uFF1A",this.param,"token: ",this.token);let n=yield this.fetchSdpFunc(e,this.param,this.token,this.prefix),{sdp:o,dialogId:r}=n||{};return this.dialogId=r,s.debug(`RemoteSdpFetcher fetch \u83B7\u5F97\u7684remoteSdp ${o}, dialogId: ${r}`),o})}close(){return d(this,null,function*(){s.debug(`remoteSdpFetcher close\uFF0C \u68C0\u67E5dialogId: ${this.dialogId}`),this.dialogId&&(yield k.closeDialogs([this.dialogId]))})}},Qe=class extends qe{constructor(e,n,o,r,i){super(e,i);this._muted=!1;this._videoFit="contain";this.setRemoteSdpFetcher(r),this.setVideoFit(n),this.setMuted(o)}get player(){return this._plugin}getPlayerElement(){return this.player.getEl()}getVideoElement(){return this.player.video.getEl()}setRemoteSdpFetcher(e){this._remoteSdpFetcher=e,this._plugin.setProductRemoteSdp(n=>d(this,null,function*(){var o;return(o=this._remoteSdpFetcher)==null?void 0:o.fetch(n)}))}getRemoteSdpFetcher(){return this._remoteSdpFetcher}setVideoFit(e){s.debug("BvWebrtcInstance setVideoFit",e),this._videoFit=e,this.player.video.fit=e}getVideoFit(){return this._videoFit}setMuted(e=!1){this._muted=e,this.player.mute(e)}getMuted(){return this._muted}mute(e=!1){return this.setMuted(e)}open(e=!1){return d(this,null,function*(){s.debug("BvWebrtc open"),yield this.close(),this.player.mask.visible=!1,this.player.mask.text="connecting",this.player.mute(!!e);try{yield this.player.prepareWebrtc()}catch(n){throw this.player.mask.visible=!0,this.player.mask.text="connect failed",n}if(e){let n=()=>{s.debug("\u76D1\u542C\u5230\u7528\u6237\u6709click tap\u4EA4\u4E92\uFF0C \u6539\u53D8\u9759\u97F3\uFF0C muted\uFF1A",this._muted),s.debug("\u6B64\u90E8\u5206\u67E5\u770B\uFF1Ahttps://developers.google.com/web/updates/2017/09/autoplay-policy-changes"),this.player.mute(this._muted),document.removeEventListener("click",n),document.removeEventListener("touchend",n)};document.addEventListener("click",n),document.addEventListener("touchend",n)}})}play(){return d(this,null,function*(){yield this.player.play(this._muted)})}hidden(e){return d(this,null,function*(){let n=this._el,o=this.player.video.getEl();n.style.display="none",document.body.appendChild(n),o.muted=!0;try{typeof e!="undefined"&&(this._muted=e),yield this.player.play(this._muted)}catch(r){s.debug("player.play() \u64AD\u653E\u672A\u6210\u529F")}s.debug("\u6DFB\u52A0\u5230body\u5E76\u9690\u85CF\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",o.paused)})}display(e){return d(this,null,function*(){let n=this._el,o=this.player.video.getEl();u.render(n,this._currentContainer,()=>d(this,null,function*(){n.style.display="block",typeof e!="undefined"&&(this._muted=e),yield this.player.play(this._muted)})),s.debug("\u663E\u793A\u5230\u5F53\u524D\u5BB9\u5668\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",o.paused)})}close(){return d(this,null,function*(){if(s.debug("BvWebrtcInstance close",`_dialogId: ${this._dialogId}`),this.player.mask.visible=!0,this.player.mask.text="Video Closed",this.player.close(),s.debug("BvWebrtcInstance close\uFF0C player closed\uFF0C\u68C0\u67E5 remoteSdpFetcher: ",this._remoteSdpFetcher),this.dispatch("close"),this._remoteSdpFetcher)try{yield this._remoteSdpFetcher.close()}catch(e){throw s.error(e,"BvWebrtcInstance close \u5931\u8D25"),new Error(`BvWebrtcInstance close \u5931\u8D25 , ${e.message}`)}})}destroy(){s.debug("PuPlayer destroy"),this.close(),this.player.destroy()}};var Vo=t=>{let{container:e,sdpFetcher:n,offerParam:o,videoFit:r,muted:i,autoPlay:l,onConnected:m,onClose:a,onDestroy:g,onConnectedFailed:y,onDisConnected:b,onPcEventAdded:v}=t,f=new ge({pluginOption:{webrtc:{offerParam:o,productRemoteSdp:()=>d(void 0,null,function*(){return""}),onIceDisconnected:()=>{f.mask.visible=!0,f.mask.text="lost connection",f.close(),b&&b()},onPcEventAdded:v,onConnected:()=>{f.mask.visible=!1,f.mask.text="connected",m&&m()},onConnectedFailed:()=>{y&&y()}}},playerConfig:{autoPlay:l}}),I=new Qe(f,r,i,n,e);I.addEventListener("close",()=>{a&&a()}),I.addEventListener("destroy",()=>{g&&g()});let T={open:()=>d(void 0,null,function*(){s.debug("BvWebrtc open"),yield I.open()}),setOption:C=>{s.debug("BvWebrtc setOption");let p=I.getRemoteSdpFetcher();p&&(p.param=C)},setToken:C=>{s.debug("BvWebrtc setToken",C);let p=I.getRemoteSdpFetcher();p&&(p.token=C)},setApiPrefix:C=>{s.debug("BvWebrtc setApiPrefix",C);let p=I.getRemoteSdpFetcher();p&&(p.prefix=C)},getRemoteSdpFetcher:()=>I.getRemoteSdpFetcher(),close:()=>d(void 0,null,function*(){s.debug("BvWebrtc close"),yield I.close()}),render:()=>(s.debug("BvWebrtc render"),I.render()),destroy:()=>{s.debug("BvWebrtc destroy"),I.destroy()}},L=I.render(),E={instance:T,element:L};return e&&(u.render(L,e),E.element=null),E},Ht=Vo;var Bo=()=>d(void 0,null,function*(){s.debug("\u8BF7\u6C42\u9EA6\u514B\u98CE...");let t=yield navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),e=t.getAudioTracks();return s.debug("\u9EA6\u514B\u98CE \u97F3\u9891\u8F68\u9053\uFF1A",e),t}),Ao=t=>{let{container:e,token:n,getRemoteSdpParam:o,apiPrefix:r,getRemoteSdpResult:i,onConnected:l,onClose:m,onDestroy:a,onConnectedFailed:g,onDisConnected:y,onGetUserMediaFailed:b}=t||{},v=(C,p,P,he)=>d(void 0,null,function*(){if(s.debug("audioPlayer productRemoteSdp",{param:{localDescription:C,param:p,token:P,prefix:he}}),C.type==="offer"&&(q(he),s.debug("\u672C\u5730sdp",C),!!i))try{let{sdp:V,dialogId:h}=yield i(C.sdp,P,p);return{sdp:V,dialogId:h}}catch(V){throw s.error(V,"\u8BF7\u6C42\u8FDC\u7AEFsdp\u65F6\u51FA\u9519"),new Error(`productRemoteSdp \u5931\u8D25 , ${V.message}`)}}),f=new te(v,n,o,r),{instance:I,element:T}=Ht({container:e,sdpFetcher:f,offerParam:{offerToReceiveAudio:!0},videoFit:"contain",muted:!1,autoPlay:!0,onConnected:l,onClose:m,onDestroy:a,onConnectedFailed:g,onDisConnected:y,onPcEventAdded:C=>d(void 0,null,function*(){try{let p=yield Bo();p.getTracks().forEach(P=>C.addTrack(P,p))}catch(p){b&&b()}})});return{instance:R({},I),element:T}},fe=Ao;var Wo=(t,e,n)=>d(void 0,null,function*(){let{id:o,index:r}=n||{};return yield k.getDeviceWebrtc({id:o,index:r,sdp:t},e)}),Ho=t=>{let{container:e,token:n,puOption:o,apiPrefix:r,onConnected:i,onClose:l,onDestroy:m,onConnectedFailed:a,onDisConnected:g,onGetUserMediaFailed:y}=t||{},{instance:b,element:v}=fe({container:e,token:n,getRemoteSdpParam:o,getRemoteSdpResult:Wo,apiPrefix:r,onConnected:i,onClose:l,onDestroy:m,onConnectedFailed:a,onDisConnected:g,onGetUserMediaFailed:y}),f=j(R({},b),{setPuOption:T=>b.setOption&&b.setOption(T)});return delete f.setOption,{instance:f,element:v}},jt=Ho;var jo=(t,e,n)=>d(void 0,null,function*(){let{id:o,index:r}=n||{};return yield k.getConferenceWebrtc({id:o,index:r,sdp:t},e)}),$o=t=>{let{container:e,token:n,confOption:o,apiPrefix:r,onConnected:i,onClose:l,onDestroy:m,onConnectedFailed:a,onDisConnected:g,onGetUserMediaFailed:y}=t||{},{instance:b,element:v}=fe({container:e,token:n,getRemoteSdpParam:o,getRemoteSdpResult:jo,apiPrefix:r,onConnected:i,onClose:l,onDestroy:m,onConnectedFailed:a,onDisConnected:g,onGetUserMediaFailed:y}),f=j(R({},b),{setConfOption:T=>b.setOption&&b.setOption(T)});return delete f.setOption,{instance:f,element:v}},$t=$o;var zo=k.closeAllStorageDialog;return Uo;})();
package/dist/main.es.css CHANGED
@@ -1 +1 @@
1
- .bvplayer-core-player{position:relative;height:100%;width:100%;background-color:#000}.bvplayer-core-player .bvplayer-core-spinner{z-index:1}.bvplayer-core-player .bvplayer-core-mask{z-index:2}.bvplayer-core-video{position:absolute;display:block;pointer-events:none;box-sizing:border-box;width:100%;height:100%}.bvplayer-core-spinner{position:absolute;top:0;left:0;height:100%;width:100%}.bvplayer-core-spinner>span{display:inline-block;position:absolute;top:50%;left:50%;margin:-18px 0 0 -18px;height:36px;width:36px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIg0KICAgICB2aWV3Qm94PSIwIDAgMjQgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUwIDUwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCiAgICAgICAgPHJlY3QgeD0iMCIgeT0iNy42NDE2IiB3aWR0aD0iNCIgaGVpZ2h0PSIxNC43MTY4IiBvcGFjaXR5PSIwLjIiPg0KICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIwLjI7IDE7IC4yIiBiZWdpbj0iMHMiIGR1cj0iMC42cyINCiAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltYXRlPg0KICAgICAgICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iaGVpZ2h0IiBhdHRyaWJ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iDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDwvcmVjdD4NCiAgICAgIDwvc3ZnPg==)}.bvplayer-core-spinner>span svg{height:100%}.bvplayer-core-mask{height:100%;width:100%;position:absolute;top:0;left:0;display:grid;align-content:center;justify-content:center;place-content:center;background-color:#000;color:#fff;font-size:14px}html,body{margin:0}*,*:after,*:before{box-sizing:border-box}#root{height:400px;width:600px}
1
+ .bvplayer-common-flex-space{display:inline-block;flex:1}.bvplayer-icon{display:inline-block;height:22px;width:100%;vertical-align:middle}.bvplayer-icon svg{height:100%;width:100%}.bvplayer-modal{position:absolute;top:0;left:0;padding:12px 16px;font-size:14px;border:1px solid #2b303b;border-radius:3px;background:rgba(22,27,29,.8);color:#e8e8fd;box-shadow:0 0 20px -6px #000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);overflow:hidden;visibility:hidden;opacity:0;transform:scale(0);will-change:transform,opacity;transition:all .3s cubic-bezier(.785,.135,.15,.86)}.bvplayer-modal.bvplayer-common-is-visible{visibility:visible;opacity:1;transform:scale(1)}.bvplayer-modal--center{top:50%;left:50%;margin:auto;transform:translate(-50%,-50%) scale(0)}.bvplayer-modal--center.bvplayer-common-is-visible{transform:translate(-50%,-50%)}.bvplayer-modal_title-bar{display:flex;justify-content:space-between;margin-bottom:8px;font-size:16px}.bvplayer-modal_title-bar_close{cursor:pointer}.bvplayer-modal_body{padding:8px;overflow:hidden;overflow-y:auto}.bvplayer-spinner{position:absolute;top:0;left:0;height:100%;width:100%}.bvplayer-spinner>span{display:inline-block;position:absolute;top:50%;left:50%;margin:-18px 0 0 -18px;height:36px;width:36px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJod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RlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIwLjI7IDE7IC4yIiBiZWdpbj0iMC4zcyIgZHVyPSIwLjZzIg0KICAgICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImhlaWdodCIgYXR0cmlidXRlVHlwZT0iWE1MIiB2YWx1ZXM9IjEwOyAyMDsgMTAiIGJlZ2luPSIwLjNzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIxMDsgNTsgMTAiIGJlZ2luPSIwLjNzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDwvcmVjdD4NCiAgICAgIDwvc3ZnPg==)}.bvplayer-spinner>span svg{height:100%}.bvplayer-mask{height:100%;width:100%;position:absolute;top:0;left:0;display:grid;align-content:center;justify-content:center;place-content:center;background-color:#000;color:#fff;font-size:14px}.bvplayer-controller{position:absolute;bottom:0;left:0;right:0;width:100%;height:98px;color:#fff;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;opacity:0;transform:translateY(100%);will-change:visibility,opacity,transform;transition:all .3s cubic-bezier(.455,.03,.515,.955)}.bvplayer-controller.bvplayer-common-is-visible{visibility:visible;opacity:1;transform:translateY(0)}.bvplayer-controller_mask{position:absolute;bottom:0;height:100%;width:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==) repeat-x bottom}.bvplayer-controller_inner{position:absolute;bottom:0;left:0;right:0;width:100%;height:41px;padding:0 20px;display:flex;align-items:stretch;justify-content:space-between}.bvplayer-controller_inner_bar{display:block}.bvplayer-controller_inner_left{cursor:default}.bvplayer-controller_inner_right{cursor:default}.bvplayer-controller_button{cursor:pointer;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:36px;height:100%;border:none;outline:none;padding:0;background:none;color:inherit}.bvplayer-controller_button:not(:last-child){margin-right:8px}.bvplayer-controller_button>*{transition:all .2s ease-in-out;opacity:.8}.bvplayer-controller_button:hover>*{opacity:1}.bvplayer-video{display:block;pointer-events:none;box-sizing:border-box;width:100%;height:100%}.bvplayer-player{position:relative;height:100%;width:100%;background-color:#000;overflow:hidden}.bvplayer-player_info-modal{width:60%;height:70%}.bvplayer-player_info-modal_section{margin-bottom:16px}.bvplayer-player_info-modal_section_title{display:inline-block;font-weight:bold;font-size:12px;margin-bottom:8px}.bvplayer-player_info-modal_list{color:#e8e8fdd9;font-size:12px}.bvplayer-player_info-modal_list_item:not(:last-child){margin-bottom:8px}.bvplayer-player_info-modal_list_item_label{display:inline-block;width:90px;margin-right:14px;text-indent:-99em;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}.bvplayer-player_info-modal_list_item_value{margin-right:8px;white-space:normal;word-break:break-all}